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

Method runHeadlessTask

src/workspaces/service.ts:147–147  ·  view source on GitHub ↗

* Dispatch a one-shot HEADLESS task: spawn the adapter's * `composeHeadlessCommand` (prompt placed) on a plain pipe, run to natural * exit (= done), return exit/duration + output tails. The automation * primitive — the agent reports via `inbox_push`; this just waits on exit. * Reuses the

(
    meta: WorkspaceMeta,
    adapter: CliAdapter,
    prompt: string,
    timeoutMs: number,
  )

Source from the content-addressed store, hash-verified

145 * headless mode.
146 */
147 runHeadlessTask(
148 meta: WorkspaceMeta,
149 adapter: CliAdapter,
150 prompt: string,

Callers 1

createWorkspaceRoutesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected