mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-25 09:31:43 +01:00
* feat(loadouts): Opus 5.5 lite loadout with explicit model detection (GSTA-161)
modules/loadouts.json gains the lite loadout (eleven coaching preamble
pieces dropped; upgrade-check and brain-sync kept) and a models map that
sends only claude-opus-5-5 (and its dated snapshots) to it. Detection is
explicit: Capy passes --model to the installer, Claude Code opts in with
./setup --loadout lite; anything unmapped, invalid or unreadable serves full.
The checkout always stays the full render.
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* docs(loadouts): Opus 5.5 lite, detection order, Capy SKILL_ROOT, setup --loadout; troubleshooting anchors; changelog fragment (GSTA-161)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix(loadouts): claude_loadout read through CONFIG_BIN; capy skill context ceiling for the --model line (GSTA-161)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: pre-landing review fixes (prune keeps a reused loadout folder, GSTACK_LOADOUT_SKILL_ROOT, claude_loadout guard test) (GSTA-161)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: pre-landing review fixes (Capy skill passes the model as GSTACK_MODEL so an older installer ignores it) (GSTA-161)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: pre-landing review fixes (prune only owned, unused folders; full root from the canonical Claude install; fallback reason and source) (GSTA-161)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* docs: loadout source example, install and resolve commands, Capy launch-file note (GSTA-161)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* feat(autoplan): --ceo-only runs the CEO review alone with zero questions (GST-537)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: pre-landing review fixes
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* test: classify autoplan-ceo-only in the Codex host metadata
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: select autoplan-ceo-only on the skills it runs; say it needs Claude Code
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* test: run autoplan-ceo-only in the marathon lane
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* docs: changelog entry for /autoplan --ceo-only
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* test: count the autoplan-ceo-only paid file in the shard inventory
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* feat: gstack-autoplan next --ceo-only runs the CEO review alone and ends reviewed (GST-537)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: budget and close recover a budget-stopped CEO-only run; reviewed is at rest for checkpoints
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: CEO-only finish leaves owner-only cap items undecided, refuses marker phase flags and a plan at the report path, and replaces ceo-review.md atomically
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: the CEO-only report-path guard compares real paths and refuses at the finish when the report file is the plan
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* docs: CEO_ONLY_CONFLICT covers a plan linked to the report path
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* test(browse): failing-first device and touch tests (GSTA-227 F3, #3058)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: the report-path guard keeps the lexical check, skips safe hard links and compares bigint file ids
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* browse: per-session tabs for parallel agents; tab pins stop moving the shared active tab (#1961)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* browse: keep the server.ts tab-pin anchor comment for source guards
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* feat(browse): per-tab phone emulation and touch input ($B device, tap, swipe, pinch, touch; #3058, GSTA-227 F3)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* test: copy lib/result-codes-autoplan.ts into the fixtures that copy the result-code tables, and keep it out of derived closures
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* docs(qa, aside): touch pointer in /qa, Aside touch recipe verified on Aside 1.26, report Phones row (GSTA-227 F3, #3058)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* browse: drop the sessions paragraph from /browse to stay inside the parity cap
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* changelog: F3 phone emulation and touch entry
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* browse: hide the ps window in the session harness walk
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* docs: the decisions.jsonl status list names auto_kept
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* test(browse): session cap, LRU eviction, headed release and scoped auto-session rows
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* browse: sessions keep tab <id> picks, sidebar claude stays on the user's tab, pinned rebuild and state load rebind the scope
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: pre-landing review fixes (touch cancel with no finger held is a no-op)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: Step 11 review fixes (headed tab adoption, pinned viewport reset, CLI retry keeps --session, rebuild id remap, --json notice, evicted-session reset, device kept after annotated captures, render opts out of sessions, session: client ids reserved)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: headed viewport auto keeps the user's active tab; render's closetab opts out of sessions
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* docs: sessions, phone emulation and touch in BROWSER.md; session: client ids reserved; TODOS #1961/#3058 shipped
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* test: copy lib/result-codes-browse.ts into the fixtures that copy the result-code modules
lib/result-codes.ts imports ./result-codes-browse, so fixtures with an explicit
lib list failed with 'Cannot find module'. pr-dependencies lists it with the other
reason-code modules as selection data. GSTA-227
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* feat: gstack-clean reclaims per-repo .gstack scratch and logs, dry run by default (#2627)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* 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>
* fix(clean): leave hard-linked and unreadable logs alone; cut through a no-follow descriptor checked against the evaluated inode
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* test(clean): tests that expect tmp removal see a quiet ps, so a codex elsewhere on the host cannot flake them
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix(clean): an unlistable tmp/ skips its group; liveness asked once per group on apply; BROWSER.md says which logs reset at daemon start
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix(clean): write output synchronously so --json reaches a pipe whole; test fixes for root, wrapper git and the ps stub
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix(clean): every change rechecks the verified folder and the measured file; full writes; EPIPE ends output quietly
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* test(clean): the early-close test checks the bin's own exit status
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* docs: list gstack-clean among the standalone CLIs
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* test(clean): copied-install fixtures and the dependency list carry lib/result-codes-clean.ts
The remote pregate failed 11 cases in gstack-doctor, plan-tune-cathedral and
timeline-stop-hook-slug: each copies an explicit list of lib/result-codes-*.ts
files into a temp install, and lib/result-codes.ts now imports
./result-codes-clean. Same lists GSTA-168 extended for result-codes-eval.
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* chore: regenerate gstack-doctor-components.sh for the gstack-clean result codes
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* qa: fold the touch pointer into the Phases sentence to fit the parity size cap after the main merge
qa's union was 95988 bytes (ratio 1.142 > maxSizeRatio 1.142, train 75). Now 95975 (1.1419). GSTA-227
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* docs: #3058 troubleshooting 'Fixed in' lines name v1.92.10.0 after the main merge
GSTA-227
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* test(clean): classify gstack-tasks rows files (tasks-*) as kept, after main added the producer
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* docs: #3058 troubleshooting 'Fixed in' lines name v1.92.20.0 after the main merge
GSTA-227
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: pre-landing review fixes (restore the lib/result-codes-plan.ts ratchet row the base merge dropped)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* test(clean): the producer scan ends a name at a colon, so prose after a path names the file (train 78)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* docs: #3058 troubleshooting 'Fixed in' lines name v1.92.30.0 after the main merge
GSTA-227
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* outside-voice-api: caller receipts, stop_reason, OpenAI max_completion_tokens
A caller can write its own egress receipt (sink, consent, payload class);
the default stays the outside-voice receipt, so existing callers send and
record the same bytes. The result carries the provider's stop reason, and
an OpenAI request gets max_completion_tokens only when the caller sets an
output limit (GST-537 PR 3).
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* autoplan gate: item classes and the owner's answer provenance
Gate items carry item_class, ruleKept() names the keep-direction pick, and
answered decision rows record owner_mode, owner_named, rec_hash and
answered_role parsed from the owner's own words (GST-537 PR 3).
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* autoplan: shadow-mode decider module, frozen prompt and spend accounting
The switch (off by default, fixed at init), the lease, one model call per
gate with a page retry and a truncation retry under one deadline, the
once-per-revision record with its journaled sha256, the 10% audit mark,
and shadow-labeled ledger rows that count against the cap, show as
shadow= on GATE_SPEND and stay out of the per-voice price (GST-537 PR 3).
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* gstack-autoplan: shadow every published gate, the shadow export, config and docs
Every driver command that prints a gate records the shadow first and
checkpoints after it; answer waits for a live lease and records a dead
one retrospectively; gstack-autoplan shadow exports answered revisions
for taste-replay R2 (SHADOW_BEFORE_ANSWER otherwise); gstack-config
autoplan_shadow / autoplan_shadow_model; gstack-artifact validate checks
the record's hash (GST-537 PR 3).
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* changelog: shadow mode for the CEO-only decider (GST-537 PR 3)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* autoplan shadow: /ship review fixes
- register test/fixtures/shadow-fake-model.ts in FREE_FIXTURES (free-fixtures inventory failed)
- withRunLock: count dead-owner reclaims apart from waitMs iterations, so a long wait can still reclaim
- buildPage: fill the decider template in one pass, so slot names inside the plan stay plan text
- revise regate: the shared publish step prints the GATE and ESCALATE lines once
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* autoplan shadow: reply files never follow a link; the retry reserves against the current cap
- a model reply is written by temp file and rename, so a link at the reply path is replaced, not written through
- each shadow reservation reads the run's current spend cap, so a budget change during the call is not undone
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* outside-voice-api: write the egress receipt under the caller's env
callModel resolved the receipt's state root from process.env even when the caller passed env, so the shadow
tests wrote to the real ~/.gstack (the free-suite home-containment guard caught it). The receipt now uses
req.env; the shadow tests give the fake model a private HOME, GSTACK_HOME and GSTACK_STATE_ROOT, and the receipt
test no longer sets process.env to pass.
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix(autoplan): CEO-only runs leave main's open Critical/High finding items to the owner (no decision row)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix(autoplan): shadow pages carry main's finding items; a finding item is never ceo_eligible
After merging #3767 (main 90a170c), open Critical/High findings are gate items
(item_class finding). The shadow records one row per gate item, so its pages now
include them. A CEO-only run leaves those items to the owner, so their rows are
ceo_eligible false (rule_pick was already null). The shadow fixtures follow
main's gate (items, counts, "Do it" tokens); the two merge adapters follow
main's doNext(out, rest, price) and its per-voice reservation (--estimate-usd).
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* docs: #3058 troubleshooting 'Fixed in' lines name v1.92.61.0 after the main merge
GSTA-227
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix(investigate): drop the five-phase step procedure (GST-938)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* changelog: GST-938 fragment wording
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix(investigate): keep the web-search sanitize guard; update BROWSER.md and docs/skills.md (review pass 1)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* changelog: GST-938 wording
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* test(investigate): pin the web-search guard; changelog size (adversarial review)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* test(clean): classify restamp-staging.json, the restamp producer main gained after #3779's base (wave browse)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: pre-landing review fixes (wave browse): scoped newtab keeps a concurrent tab switch; shadow validate catches a deleted record; a failed shadow publish is journaled
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: a failed shadow publish journals under the run lock and never throws (wave browse review pass 2)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* docs(unattended): shadow publish failures and the missing-record validate check (wave browse docs audit)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* changelog: wave browse integrator fixes fragment
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix: shadow reader dedupes by run folder, so two runs started in the same second both count (wave browse CI free-suite 16)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* chore: regenerate doctor result anchors in generator order (wave browse rebuild without #3818)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* changelog: name the wave fragment after the rebuilt wave
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
---------
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
211 lines
16 KiB
TypeScript
211 lines
16 KiB
TypeScript
/**
|
|
* Reviewed identifier placeholders for generated bash (CEO-12, DX-5, ENG-8).
|
|
*
|
|
* A `<placeholder>` the model fills in may appear in a command only when it is
|
|
* listed here. Free text (bodies, titles, messages, briefs, prompts, error
|
|
* output, reviewer or diff text) is never listed: it reaches a command only as
|
|
* the contents of a `mktemp` file the agent writes with its file-write tool.
|
|
*
|
|
* Each entry names the grammar a value must match before the skill uses it; a
|
|
* value that fails is not used. `quoted` entries may appear only inside single
|
|
* or double quotes (or a quoted heredoc), and their grammar excludes every
|
|
* character that can end or expand those quotes: `'`, `"`, backtick, `$`, `\`
|
|
* and newline. Every other entry may appear unquoted, so its grammar also
|
|
* excludes `;|&()<>?[]{}!#` and, unless it is a `list`, whitespace and `*`. test/generated-bash-placeholders
|
|
* .test.ts proves each grammar rejects those characters.
|
|
*/
|
|
|
|
/** `list`: a space-separated list where word splitting is intended (spaces, and `*` globs, allowed). */
|
|
export interface IdentifierGrammar { grammar: RegExp; what: string; quoted?: true; list?: true }
|
|
|
|
const NUM = /^[0-9]+$/;
|
|
const ID = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
/** Shell-safe subset of git ref names; the posting skills also run `git check-ref-format --branch`. */
|
|
const REF = /^[\p{L}\p{N}_][\p{L}\p{N}._/@+-]*$/u;
|
|
const PATH = /^[\p{L}\p{N}._/@+:,%=~-]+$/u;
|
|
/** Space-separated path lists (word splitting intended); `*` may glob. */
|
|
const PATHS = /^[\p{L}\p{N}._/@+:,%=~* -]+$/u;
|
|
/** Inside quotes only: anything that cannot end or expand the quotes. */
|
|
const QUOTED = /^[^'"`$\\\n]+$/;
|
|
const DATE = /^[0-9]{4}-[0-9]{2}-[0-9]{2}$/;
|
|
const NUMBER = /^-?[0-9]+(?:\.[0-9]+)?$/;
|
|
const URL = /^https?:\/\/[^'"`$\\\s<>]+$/;
|
|
const oneOf = (...alts: string[]) => new RegExp(`^(?:${alts.map(a => a.replace(/[.*+?^${}()|[\]\\/-]/g, '\\$&')).join('|')})$`);
|
|
|
|
export const IDENTIFIER_PLACEHOLDERS: Record<string, IdentifierGrammar> = {
|
|
// Enumerations: the value is one of the listed literals.
|
|
'<approval|clarification|routing|cherry-pick|feedback-loop>': { grammar: oneOf('approval', 'clarification', 'routing', 'cherry-pick', 'feedback-loop'), what: 'question category' },
|
|
'<one-way|two-way>': { grammar: oneOf('one-way', 'two-way'), what: 'door type' },
|
|
'<never-ask|always-ask|ask-only-for-one-way>': { grammar: oneOf('never-ask', 'always-ask', 'ask-only-for-one-way'), what: 'question preference' },
|
|
'<pref>': { grammar: oneOf('never-ask', 'always-ask', 'ask-only-for-one-way'), what: 'question preference' },
|
|
'<clean|flagged>': { grammar: oneOf('clean', 'flagged'), what: 'semantic review outcome' },
|
|
'<N|null>': { grammar: /^(?:[0-9]+(?:\.[0-9]+)?|null)$/, what: 'health score or null' },
|
|
'<platform>': { grammar: oneOf('github', 'gitlab', 'unknown'), what: 'detected git platform' },
|
|
'<effort-level>': { grammar: /^[a-z]*$/, what: "the request's /codex --effort level, or empty for none (the probe validates the level)", quoted: true },
|
|
|
|
// Ids, keys and numbers.
|
|
'<id>': { grammar: ID, what: 'question or record id (kebab-case)' },
|
|
'<key>': { grammar: ID, what: 'option key' },
|
|
'<summary-slug>': { grammar: ID, what: 'question summary as a kebab-case slug' },
|
|
'<comment-id>': { grammar: NUM, what: 'GitHub comment id from the fetched JSON' },
|
|
'<opened-at>': { grammar: NUM, what: 'EARLY_PR_OPENED_AT epoch seconds printed by gstack-greptile-early open' },
|
|
'<pr-number>': { grammar: NUM, what: 'PR/MR number from the open-PR lookup or the early-PR create output' },
|
|
'<new-version>': { grammar: /^[0-9]+(?:\.[0-9]+)*$/, what: 'NEW_VERSION from the version bump (dot-separated digits)' },
|
|
'<issue-number>': { grammar: /^[0-9]*$/, what: 'filed issue number, or empty when none was filed' },
|
|
'<check-number>': { grammar: NUM, what: 'canary check number' },
|
|
// /eval-plan (plan E1): the pilot's ledger inputs.
|
|
'<cap-usd>': { grammar: NUMBER, what: 'spend cap in USD' },
|
|
'<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' },
|
|
'<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' },
|
|
'<run-id>': { grammar: NUM, what: 'GitHub Actions run id' },
|
|
'<PID>': { grammar: NUM, what: 'process id printed by an earlier block' },
|
|
'<retained-owner-token>': { grammar: ID, what: 'freeze owner token printed by acquire' },
|
|
'<RUN_ID>': { grammar: ID, what: 'run id printed by Setup' },
|
|
'<RUN_ID from Setup>': { grammar: ID, what: 'run id printed by Setup' },
|
|
'<PHASE>': { grammar: oneOf('ceo', 'design', 'dx', 'eng'), what: 'autoplan phase' },
|
|
'<VARIANT>': { grammar: /^[A-Z]$/, what: 'variant letter' },
|
|
'<SCREEN>': { grammar: ID, what: 'screen name slug' },
|
|
'<screen-name>': { grammar: ID, what: 'screen name slug' },
|
|
'<page-name>': { grammar: ID, what: 'page name slug' },
|
|
'<name>': { grammar: ID, what: 'slug' },
|
|
'<slug>': { grammar: ID, what: 'slug' },
|
|
'<dimension>': { grammar: ID, what: 'design dimension slug' },
|
|
'<dim>': { grammar: ID, what: 'profile dimension name' },
|
|
// /design-motion (GSTA-92 plan item 15): capture and export arguments the skill's plan fixes.
|
|
'<frame-size>': { grammar: /^[0-9]+x[0-9]+$/, what: 'design frame size in CSS pixels, WxH' },
|
|
'<cycle-seconds>': { grammar: NUMBER, what: 'loop cycle length in seconds' },
|
|
'<app|cards>': { grammar: oneOf('app', 'cards'), what: 'motion layout: joined app surfaces or separate cards' },
|
|
'<hex-color>': { grammar: /^#(?:[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/, what: 'page background colour as hex', quoted: true },
|
|
'<figma-file-key>': { grammar: ID, what: 'Figma file key from the link' },
|
|
'<figma-node-id>': { grammar: /^[0-9]+[:-][0-9]+$/, what: 'Figma node id from the link' },
|
|
'<new_value>': { grammar: NUMBER, what: 'profile dimension value' },
|
|
'<Q1_VALUE>': { grammar: NUMBER, what: 'profile answer value' },
|
|
'<Q2_VALUE>': { grammar: NUMBER, what: 'profile answer value' },
|
|
'<Q3_VALUE>': { grammar: NUMBER, what: 'profile answer value' },
|
|
'<Q4_VALUE>': { grammar: NUMBER, what: 'profile answer value' },
|
|
'<Q5_VALUE>': { grammar: NUMBER, what: 'profile answer value' },
|
|
'<actual-harness>': { grammar: oneOf('claude', 'codex'), what: 'harness name' },
|
|
'<suite>': { grammar: ID, what: 'eval suite name' },
|
|
'<picked-models>': { grammar: /^[A-Za-z0-9._:,-]+$/, what: 'comma-separated model ids' },
|
|
'<github-username>': { grammar: /^[A-Za-z0-9](?:[A-Za-z0-9-]{0,38})$/, what: 'GitHub login' },
|
|
'<gitlab-username>': { grammar: /^[A-Za-z0-9_][A-Za-z0-9_.-]*$/, what: 'GitLab username' },
|
|
|
|
// Dates.
|
|
'<today>': { grammar: DATE, what: 'YYYY-MM-DD' },
|
|
'<start_date>': { grammar: DATE, what: 'YYYY-MM-DD' },
|
|
'<since>': { grammar: /^[0-9]+[dhwm]$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$/, what: 'retro window (7d, 24h, 2w) or date' },
|
|
'<window>': { grammar: /^[0-9]+[dhwm]$/, what: 'retro window (7d, 24h, 2w)' },
|
|
'<window-days>': { grammar: NUM, what: 'retro window in whole days' },
|
|
|
|
// Git refs. Branch names from remote data travel as data (ENG-8), never through this list.
|
|
'<base>': { grammar: REF, what: 'base branch detected by the skill' },
|
|
'<default>': { grammar: REF, what: 'default branch detected by the skill' },
|
|
'<diff-base>': { grammar: REF, what: 'diff base ref detected by the skill' },
|
|
'<detected-base-branch>': { grammar: REF, what: 'base branch detected by the skill' },
|
|
'<branch-name>': { grammar: REF, what: 'current branch (git branch --show-current)' },
|
|
'<prior-review-commit>': { grammar: /^[0-9a-f]{7,40}$/, what: 'commit sha' },
|
|
|
|
// Paths printed by earlier gstack blocks or chosen by the skill.
|
|
'<body-file-name>': { grammar: ID, what: 'basename of the mktemp body file printed by the previous block' },
|
|
'<title-file-name>': { grammar: ID, what: 'basename of the mktemp title file printed by the previous block' },
|
|
'<gate-file-name>': { grammar: ID, what: 'basename of the mktemp gate-command file printed by the previous block (/eval-plan price-gate)' },
|
|
'<reply-file-name>': { grammar: ID, what: 'basename of the mktemp reply file printed by the previous block' },
|
|
'<redact-file-name>': { grammar: ID, what: 'basename of the mktemp draft file printed by the free-text block' },
|
|
'<approach-file-name>': { grammar: ID, what: 'basename of the mktemp approach file printed by the free-text block' },
|
|
'<greptile-dir>': { grammar: PATH, what: 'mktemp directory printed by the Greptile fetch block' },
|
|
'<SNAPSHOT_TOOL>': { grammar: QUOTED, what: 'snapshot tool path printed by autoplan', quoted: true },
|
|
'<SOURCE_PLAN>': { grammar: QUOTED, what: 'plan path', quoted: true },
|
|
'<ACTIVE_PLAN>': { grammar: QUOTED, what: 'plan path', quoted: true },
|
|
'<RESTORE_PATH>': { grammar: QUOTED, what: 'restore path printed by autoplan', quoted: true },
|
|
'<methodologyPath>': { grammar: QUOTED, what: 'methodology path printed by autoplan', quoted: true },
|
|
'<CEO_STEP0_CHECKPOINT>': { grammar: QUOTED, what: 'checkpoint path printed by autoplan', quoted: true },
|
|
'<AMENDMENT_CHECKPOINT>': { grammar: QUOTED, what: 'checkpoint path printed by autoplan', quoted: true },
|
|
'<prepared-prompt-file>': { grammar: QUOTED, what: 'prompt file path printed by the prepare step', quoted: true },
|
|
'<run-dir>': { grammar: QUOTED, what: 'run directory printed by an earlier block', quoted: true },
|
|
'<ASIDE_DIR>': { grammar: QUOTED, what: 'Aside output directory printed by an earlier block', quoted: true },
|
|
'<ASIDE_DIR or $_TMP>': { grammar: QUOTED, what: 'Aside output directory printed by an earlier block', quoted: true },
|
|
'<REPORT_DIR from Setup>': { grammar: QUOTED, what: 'report directory printed by Setup', quoted: true },
|
|
'<the FILE path printed above>': { grammar: QUOTED, what: 'file path printed by the previous block', quoted: true },
|
|
'<install dir from Step 2>': { grammar: QUOTED, what: 'install directory printed by Step 2', quoted: true },
|
|
'<APPROVED path>': { grammar: QUOTED, what: 'approved design path', quoted: true },
|
|
'<first path from the printed saved list>': { grammar: QUOTED, what: 'image path printed by the design tool', quoted: true },
|
|
'<design-path>': { grammar: QUOTED, what: 'design doc path', quoted: true },
|
|
'<review-directory>': { grammar: QUOTED, what: 'review directory printed by mktemp', quoted: true },
|
|
'<round-1.json>': { grammar: QUOTED, what: 'round file path', quoted: true },
|
|
'<round-1.json if present>': { grammar: QUOTED, what: 'round file path', quoted: true },
|
|
'<round-2.json if present>': { grammar: QUOTED, what: 'round file path', quoted: true },
|
|
'<round-3.json if present>': { grammar: QUOTED, what: 'round file path', quoted: true },
|
|
'<source-dir>': { grammar: QUOTED, what: 'app source directory', quoted: true },
|
|
'<user-provided-path>': { grammar: QUOTED, what: 'directory the user named', quoted: true },
|
|
'<detected-directory>': { grammar: QUOTED, what: 'directory detected by the skill', quoted: true },
|
|
'<staged>': { grammar: QUOTED, what: 'staged HTML path', quoted: true },
|
|
'<stagedDir>': { grammar: QUOTED, what: 'staged directory printed by an earlier block', quoted: true },
|
|
'<outdir>': { grammar: PATH, what: 'output directory' },
|
|
'<path>': { grammar: PATH, what: 'repository path from discovery' },
|
|
'<plan-path>': { grammar: PATH, what: 'bound plan file path' },
|
|
'<prereg-path>': { grammar: PATH, what: 'preregistration file path' },
|
|
'<results-path>': { grammar: PATH, what: 'results table file path' },
|
|
'<sketch-dir>': { grammar: PATH, what: 'sketch directory printed by an earlier block' },
|
|
'<path-to-finalized.html>': { grammar: PATH, what: 'finalized HTML path' },
|
|
'<path-to-page.html>': { grammar: PATH, what: 'saved page HTML path' },
|
|
'<finalized.html>': { grammar: PATH, what: 'finalized HTML path' },
|
|
'<motion-dir>': { grammar: PATH, what: 'run directory printed by the /design-motion Step 0 MOTION_DIR line' },
|
|
'<approved-variant.png>': { grammar: PATH, what: 'approved variant image path' },
|
|
'<failing-test-file>': { grammar: PATH, what: 'test file path' },
|
|
'<source-file-under-test>': { grammar: PATH, what: 'source file path' },
|
|
'<affected-files>': { grammar: PATHS, what: 'space-separated file paths', list: true },
|
|
'<only-changed-files>': { grammar: PATHS, what: 'space-separated file paths', list: true },
|
|
'<only-verified-source-and-regression-files>': { grammar: PATHS, what: 'space-separated file paths', list: true },
|
|
'<scope>': { grammar: PATHS, what: 'path or glob', list: true },
|
|
|
|
'<project eval command>': { grammar: /^[A-Za-z0-9._/@+:,%=~ -]+$/, what: 'the eval command the project documents (words and flags only)', list: true },
|
|
|
|
// Quoted-only values: URLs, selectors, search words and commands.
|
|
'<url>': { grammar: URL, what: 'http(s) URL', quoted: true },
|
|
'<page-url>': { grammar: URL, what: 'http(s) URL', quoted: true },
|
|
'<base-url>': { grammar: URL, what: 'http(s) URL', quoted: true },
|
|
'<target-url>': { grammar: URL, what: 'http(s) URL', quoted: true },
|
|
'<TARGET_URL>': { grammar: URL, what: 'http(s) URL', quoted: true },
|
|
'<site>': { grammar: URL, what: 'http(s) URL', quoted: true },
|
|
'<selector>': { grammar: QUOTED, what: 'CSS selector', quoted: true },
|
|
'<row-selector>': { grammar: QUOTED, what: 'CSS selector', quoted: true },
|
|
'<title-selector>': { grammar: QUOTED, what: 'CSS selector', quoted: true },
|
|
'<your-keyword>': { grammar: QUOTED, what: 'search words', quoted: true },
|
|
'<keywords>': { grammar: QUOTED, what: 'search words', quoted: true },
|
|
'<keyword1>': { grammar: QUOTED, what: 'search word', quoted: true },
|
|
'<keyword2>': { grammar: QUOTED, what: 'search word', quoted: true },
|
|
'<keyword3>': { grammar: QUOTED, what: 'search word', quoted: true },
|
|
'<tests>': { grammar: QUOTED, what: 'test command', quoted: true },
|
|
'<vitest>': { grammar: QUOTED, what: 'test command', quoted: true },
|
|
|
|
// External-host renders: Claude Code outside voice and the gbrain page save.
|
|
'<gstack-runtime-root>': { grammar: QUOTED, what: 'installed runtime path', quoted: true },
|
|
'<fresh-or-resume>': { grammar: oneOf('fresh', 'resume'), what: 'Claude Code session mode' },
|
|
'<feature-slug>': { grammar: ID, what: 'feature slug for the gbrain page' },
|
|
'<page-file>': { grammar: QUOTED, what: 'mktemp page file path printed by the previous command', quoted: true },
|
|
|
|
// A3 group 1 (Aside prompts, design briefs, design approval feedback): mktemp basenames.
|
|
'<prompt-file-name>': { grammar: ID, what: 'basename of the mktemp prompt file (Aside, Codex, benchmark) printed by the previous block' },
|
|
'<brief-file-name>': { grammar: ID, what: 'basename of the mktemp design brief file printed by the free-text block' },
|
|
'<feedback-file-name>': { grammar: ID, what: 'basename of the mktemp design feedback file printed by the previous block' },
|
|
|
|
// A3 group 2 (Codex prompts and misc): mktemp basenames, mode switches,
|
|
// the benchmark prompt path and the sync-gbrain orchestrator flags.
|
|
'<focus-file-name>': { grammar: ID, what: 'basename of the mktemp Codex review focus file printed by the free-text block' },
|
|
'<receipt line>': { grammar: /^OFFICE_HOURS_VERDICT round=[1-3] sha256=[0-9a-f]{64} path=\/[^'"`$\\\n]+$/, what: 'office-hours reviewer verdict receipt (one line)', quoted: true },
|
|
'<body-top-file-name>': { grammar: ID, what: 'basename of the mktemp PR body draft (through ## Documentation) printed by the free-text block' },
|
|
'<body-rest-file-name>': { grammar: ID, what: 'basename of the mktemp PR body draft (after the documentation section) printed by the free-text block' },
|
|
'<rejected-file-name>': { grammar: ID, what: 'basename of the mktemp rejected-test list printed by the free-text block' },
|
|
'<new|resume>': { grammar: oneOf('new', 'resume'), what: 'Codex consult session mode' },
|
|
'<prompt-path>': { grammar: QUOTED, what: 'benchmark prompt file path', quoted: true },
|
|
'<user-args>': {
|
|
grammar: /^(?:(?:--(?:incremental|full|dry-run|quiet|no-code|no-memory|no-brain-sync|code-only|dream|no-dream|allow-reclone|prune-gone-worktrees)|--sources [a-z][a-z0-9_,-]*)(?: (?=-)|$))*$/,
|
|
what: 'gstack-gbrain-sync flags (space-separated; --sources takes one comma-separated type list)',
|
|
list: true,
|
|
},
|
|
};
|