MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / composeHeadlessCommand

Method composeHeadlessCommand

src/workspaces/cli-adapter.ts:182–182  ·  view source on GitHub ↗

* One-shot HEADLESS argv for an automation task — like `composeCommand`, but * the process consumes `prompt` and EXITS at the turn boundary (vs the * interactive TUI that waits for input). The adapter places `prompt` at the * CLI-correct position (claude right after `-p`; codex/opencode/pi

(base: readonly string[], ctx: SpawnContext, prompt: string)

Source from the content-addressed store, hash-verified

180 * pi: [pi, -p, --mode, json, <prompt>]
181 */
182 composeHeadlessCommand?(base: readonly string[], ctx: SpawnContext, prompt: string): readonly string[];
183
184 /**
185 * Extract the agent's OWN session id from one line of headless stdout.

Callers 1

runHeadlessTaskMethodFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected