browse: name the Aside touch recipe's coordinates <tap-x>/<tap-y> with a numeric grammar

The generated-bash lint (INV-3) rejected the free-text <x>/<y> placeholders. GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-11-01 00:43:11 +00:00
1 parent 6cf64ab871
commit 45903c1db4
4 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -324,7 +324,7 @@ console.log("ASIDE_DIR=" + pwd); await closeTab(pg); console.log("GSTACK_STEP_OK
aside repl ' aside repl '
const pg = await openTab("<url>"), t = (m, p) => pg._sendToTarget(m, p); const pg = await openTab("<url>"), t = (m, p) => pg._sendToTarget(m, p);
await t("Emulation.setTouchEmulationEnabled", { enabled: true, maxTouchPoints: 5 }); await t("Emulation.setTouchEmulationEnabled", { enabled: true, maxTouchPoints: 5 });
for (const [type, touchPoints] of [["touchStart", [{ x: <x>, y: <y> }]], ["touchEnd", []]]) await t("Input.dispatchTouchEvent", { type, touchPoints }); for (const [type, touchPoints] of [["touchStart", [{ x: <tap-x>, y: <tap-y> }]], ["touchEnd", []]]) await t("Input.dispatchTouchEvent", { type, touchPoints });
await closeTab(pg); console.log("GSTACK_STEP_OK"); await closeTab(pg); console.log("GSTACK_STEP_OK");
' '
``` ```
+1 -1
View File
@@ -337,7 +337,7 @@ console.log("ASIDE_DIR=" + pwd); await closeTab(pg); console.log("GSTACK_STEP_OK
aside repl ' aside repl '
const pg = await openTab("<url>"), t = (m, p) => pg._sendToTarget(m, p); const pg = await openTab("<url>"), t = (m, p) => pg._sendToTarget(m, p);
await t("Emulation.setTouchEmulationEnabled", { enabled: true, maxTouchPoints: 5 }); await t("Emulation.setTouchEmulationEnabled", { enabled: true, maxTouchPoints: 5 });
for (const [type, touchPoints] of [["touchStart", [{ x: <x>, y: <y> }]], ["touchEnd", []]]) await t("Input.dispatchTouchEvent", { type, touchPoints }); for (const [type, touchPoints] of [["touchStart", [{ x: <tap-x>, y: <tap-y> }]], ["touchEnd", []]]) await t("Input.dispatchTouchEvent", { type, touchPoints });
await closeTab(pg); console.log("GSTACK_STEP_OK"); await closeTab(pg); console.log("GSTACK_STEP_OK");
' '
``` ```
+1 -1
View File
@@ -246,7 +246,7 @@ console.log("ASIDE_DIR=" + pwd); await closeTab(pg); console.log("GSTACK_STEP_OK
aside repl ' aside repl '
const pg = await openTab("<url>"), t = (m, p) => pg._sendToTarget(m, p); const pg = await openTab("<url>"), t = (m, p) => pg._sendToTarget(m, p);
await t("Emulation.setTouchEmulationEnabled", { enabled: true, maxTouchPoints: 5 }); await t("Emulation.setTouchEmulationEnabled", { enabled: true, maxTouchPoints: 5 });
for (const [type, touchPoints] of [["touchStart", [{ x: <x>, y: <y> }]], ["touchEnd", []]]) await t("Input.dispatchTouchEvent", { type, touchPoints }); for (const [type, touchPoints] of [["touchStart", [{ x: <tap-x>, y: <tap-y> }]], ["touchEnd", []]]) await t("Input.dispatchTouchEvent", { type, touchPoints });
await closeTab(pg); console.log("GSTACK_STEP_OK"); await closeTab(pg); console.log("GSTACK_STEP_OK");
' '
\`\`\` \`\`\`
+2
View File
@@ -56,6 +56,8 @@ export const IDENTIFIER_PLACEHOLDERS: Record<string, IdentifierGrammar> = {
// /eval-plan (plan E1): the pilot's ledger inputs. // /eval-plan (plan E1): the pilot's ledger inputs.
'<cap-usd>': { grammar: NUMBER, what: 'spend cap in USD' }, '<cap-usd>': { grammar: NUMBER, what: 'spend cap in USD' },
'<total-items>': { grammar: NUM, what: 'items in the full eval run' }, '<total-items>': { grammar: NUM, what: 'items in the full eval run' },
'<tap-x>': { grammar: NUM, what: 'viewport x in CSS pixels for the Aside touch recipe' },
'<tap-y>': { grammar: NUM, what: 'viewport y in CSS pixels for the Aside touch recipe' },
'<workers>': { grammar: NUM, what: 'concurrent eval workers' }, '<workers>': { grammar: NUM, what: 'concurrent eval workers' },
'<attempt-id>': { grammar: ID, what: 'PILOT_ATTEMPT id printed by pilot start' }, '<attempt-id>': { grammar: ID, what: 'PILOT_ATTEMPT id printed by pilot start' },
'<usd|unknown>': { grammar: /^(?:[0-9]+(?:\.[0-9]+)?|unknown)$/, what: 'actual cost in USD from the provider usage field, or unknown' }, '<usd|unknown>': { grammar: /^(?:[0-9]+(?:\.[0-9]+)?|unknown)$/, what: 'actual cost in USD from the provider usage field, or unknown' },