From 45903c1db419acd73100ad9b89c924f40b333e30 Mon Sep 17 00:00:00 2001 From: garrytan Date: Sun, 1 Nov 2026 00:43:11 +0000 Subject: [PATCH] browse: name the Aside touch recipe's coordinates / with a numeric grammar The generated-bash lint (INV-3) rejected the free-text / placeholders. GSTA-227 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- browse/SKILL.md | 2 +- devex-review/SKILL.md | 2 +- scripts/resolvers/aside.ts | 2 +- test/helpers/placeholder-allowlist.ts | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/browse/SKILL.md b/browse/SKILL.md index 469c6970e..ca934a60b 100644 --- a/browse/SKILL.md +++ b/browse/SKILL.md @@ -324,7 +324,7 @@ console.log("ASIDE_DIR=" + pwd); await closeTab(pg); console.log("GSTACK_STEP_OK aside repl ' const pg = await openTab(""), t = (m, p) => pg._sendToTarget(m, p); await t("Emulation.setTouchEmulationEnabled", { enabled: true, maxTouchPoints: 5 }); -for (const [type, touchPoints] of [["touchStart", [{ x: , y: }]], ["touchEnd", []]]) await t("Input.dispatchTouchEvent", { type, touchPoints }); +for (const [type, touchPoints] of [["touchStart", [{ x: , y: }]], ["touchEnd", []]]) await t("Input.dispatchTouchEvent", { type, touchPoints }); await closeTab(pg); console.log("GSTACK_STEP_OK"); ' ``` diff --git a/devex-review/SKILL.md b/devex-review/SKILL.md index f5e02d978..f105da25a 100644 --- a/devex-review/SKILL.md +++ b/devex-review/SKILL.md @@ -337,7 +337,7 @@ console.log("ASIDE_DIR=" + pwd); await closeTab(pg); console.log("GSTACK_STEP_OK aside repl ' const pg = await openTab(""), t = (m, p) => pg._sendToTarget(m, p); await t("Emulation.setTouchEmulationEnabled", { enabled: true, maxTouchPoints: 5 }); -for (const [type, touchPoints] of [["touchStart", [{ x: , y: }]], ["touchEnd", []]]) await t("Input.dispatchTouchEvent", { type, touchPoints }); +for (const [type, touchPoints] of [["touchStart", [{ x: , y: }]], ["touchEnd", []]]) await t("Input.dispatchTouchEvent", { type, touchPoints }); await closeTab(pg); console.log("GSTACK_STEP_OK"); ' ``` diff --git a/scripts/resolvers/aside.ts b/scripts/resolvers/aside.ts index 5f21b54d4..f0751d694 100644 --- a/scripts/resolvers/aside.ts +++ b/scripts/resolvers/aside.ts @@ -246,7 +246,7 @@ console.log("ASIDE_DIR=" + pwd); await closeTab(pg); console.log("GSTACK_STEP_OK aside repl ' const pg = await openTab(""), t = (m, p) => pg._sendToTarget(m, p); await t("Emulation.setTouchEmulationEnabled", { enabled: true, maxTouchPoints: 5 }); -for (const [type, touchPoints] of [["touchStart", [{ x: , y: }]], ["touchEnd", []]]) await t("Input.dispatchTouchEvent", { type, touchPoints }); +for (const [type, touchPoints] of [["touchStart", [{ x: , y: }]], ["touchEnd", []]]) await t("Input.dispatchTouchEvent", { type, touchPoints }); await closeTab(pg); console.log("GSTACK_STEP_OK"); ' \`\`\` diff --git a/test/helpers/placeholder-allowlist.ts b/test/helpers/placeholder-allowlist.ts index 16f064075..a2c1b461b 100644 --- a/test/helpers/placeholder-allowlist.ts +++ b/test/helpers/placeholder-allowlist.ts @@ -56,6 +56,8 @@ export const IDENTIFIER_PLACEHOLDERS: Record = { // /eval-plan (plan E1): the pilot's ledger inputs. '': { grammar: NUMBER, what: 'spend cap in USD' }, '': { grammar: NUM, what: 'items in the full eval run' }, + '': { grammar: NUM, what: 'viewport x in CSS pixels for the Aside touch recipe' }, + '': { grammar: NUM, what: 'viewport y in CSS pixels for the Aside touch recipe' }, '': { grammar: NUM, what: 'concurrent eval workers' }, '': { grammar: ID, what: 'PILOT_ATTEMPT id printed by pilot start' }, '': { grammar: /^(?:[0-9]+(?:\.[0-9]+)?|unknown)$/, what: 'actual cost in USD from the provider usage field, or unknown' },