/** * The opencode descriptor: facts about the OpenCode CLI (`opencode`) as * data, verified against opencode 1.19.5 (npm package `opencode-ai`, * 1.19.5; captures in test/fixtures/opencode-1.19.5). * * What the captures establish: * - One JSON object per line on stdout: `{type, timestamp, sessionID, * part|error}`. The types are `step_start`, `tool_use`, `text`, * `step_finish`, `reasoning` (only with `--thinking`) and `error`. * - Identity is harness-minted: every line carries `sessionID` * (`ses_` plus 26 base62 characters), so the FIRST line announces the * session even when that line is the error line. * - `text` carries the whole text part when it ends - there are no deltas, * so the stream is message-granular. * - `tool_use` carries the tool call AND its completed state (input, * output or error) on one line, so one line is one tool and one result. * - `step_finish` carries that step's token counts (`part.tokens`) and its * cost (`part.cost`); `part.reason` is `tool-calls` mid-turn and `stop` * at the end of the turn. * - An unknown session id is a refusal, not a fresh session: exit 1, an * empty stdout and `Error: Session not found` on stderr. * - An unknown model is a plain terminal error (`UnknownError`), not an * auth or a limit wall. * * What is NOT claimed here (the first slice): a persistent session mode, * transcript reading, context inspection, compaction, tool selection and * the read access preset. The free model roster rotates - `opencode * models` lists a different set between releases - so the vocabulary holds * no model list and stays extensible. */ import { type HarnessDescriptor } from "./descriptor.js"; export declare const opencodeCli: HarnessDescriptor; //# sourceMappingURL=opencode.d.ts.map