(_base: readonly string[], _ctx: SpawnContext, prompt: string)
| 107 | // prompt is the trailing positional after a `--` end-of-options terminator |
| 108 | // (so a `-`-leading prompt isn't read as a flag). |
| 109 | composeHeadlessCommand(_base: readonly string[], _ctx: SpawnContext, prompt: string): readonly string[] { |
| 110 | return ['opencode', 'run', '--format', 'json', '--', prompt]; |
| 111 | }, |
| 112 | |
| 113 | // `opencode run --format json` events carry a top-level `sessionID` |
| 114 | // (`ses_…`) from the first line (verified 2026-06-11) — resumable via |
nothing calls this directly
no outgoing calls
no test coverage detected