You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c621cfb
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(commands): declare a command option once and derive its surfaces
Collapses the pass-through hops the #2410 hop trace named, so an option is
stated once and every surface reads that statement instead of a copy.
- The snapshot option/flag pair (`customActions` <-> `snapshotCustomActions`
and its seven siblings) is declared once in `@agent-device/kernel/snapshot`
with both projections, generalising the shipped screenshot pair. The nine
hand-written renames now read the declaration.
- The dispatch pass-through flags are declared once as
`DISPATCH_CONTEXT_FLAG_KEYS`; `DispatchContext` and the daemon's
`contextFromFlags` both derive from it, so an identically-named flag no
longer costs two files. The mapper keeps only what it decides.
- The snapshot capture option keys are one type
(`SnapshotCommandOptionFields`), referenced by the public SDK options, the
internal request bag and the command runtime options instead of four copies.
- An option's prose has one owner: its `FlagDefinition` now carries both
audiences (`usageDescription` for --help, `inputDescription` for the tool and
SDK field), and `optionField` derives the command's input field -- its JSON
schema shape, bounds and description -- from that declaration. The duplicate
doc comments in contracts are gone.
Adds planted-divergence tests: a divergence planted in the one declaration must
move the derived surface, which a second hand-written copy could not do.
No help text, MCP tool schema or wire shape changes.
'Name the affordances an element merged away (iOS UIAccessibilityCustomAction, React Native accessibilityActions) — a card whose reply/options controls are not separate elements still lists them here. The names are for PLANNING, not invocation: there is no API to trigger them, so reach the affordance through the element detail screen, through the same control exposed as a labeled element elsewhere, or by coordinates from its rect. iOS simulator only; costs one accessibility round trip per merged element.',
'open: keep normal app/device selection and return an initial snapshot; without an app, resolve the sole running app on the sole booted iOS simulator',
283
+
inputDescription:
284
+
'Include an initial interactive snapshot in a fresh open response. With no app argument, discover the sole running app on the sole booted iOS simulator; ambiguous environments fail closed.',
'Snapshot: name the affordances merged inside an element (iOS sim); not directly invokable — reach them via the detail screen, labeled children, or coordinates',
209
+
inputDescription:
210
+
'Name the affordances an element merged away (iOS UIAccessibilityCustomAction, React Native accessibilityActions) — a card whose reply/options controls are not separate elements still lists them here. The names are for PLANNING, not invocation: there is no API to trigger them, so reach the affordance through the element detail screen, through the same control exposed as a labeled element elsewhere, or by coordinates from its rect. iOS simulator only; costs one accessibility round trip per merged element.',
0 commit comments