* Whether an invocation should be treated as a WRITE for capability gating * (scope, watch-mode block, tab ownership, tunnel). A command is a write if it * mutates state (`WRITE_COMMANDS`) OR it carries an `--out` flag — `js`/`eval * --out` writes the evaluate result to local disk, so the capabil
(command: string, args: string[])
| 732 | * security gates consult this. |
| 733 | */ |
| 734 | function isWriteInvocation(command: string, args: string[]): boolean { |
| 735 | return WRITE_COMMANDS.has(command) || hasOutArg(args); |
| 736 | } |
| 737 | |
| 738 | // ─── Inspector State (in-memory) ────────────────────────────── |
| 739 | let inspectorData: InspectorResult | null = null; |
no test coverage detected