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

Method dispatchHeadlessTask

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

* ASYNC dispatch — records the task, spawns it in the background, returns the * taskId immediately (the automation path). Throws `HeadlessCapacityError` * when the concurrency cap is hit.

(
    meta: WorkspaceMeta,
    adapter: CliAdapter,
    prompt: string,
    timeoutMs: number,
    /** The firing issue's id, when dispatched by the ScheduleScanner; recorded on
     *  the run as `issueId` so the issue detail's Activity feed can join on it.
     *  Manual/external runs omit it. */
    issueId?: string,
  )

Source from the content-addressed store, hash-verified

156 * when the concurrency cap is hit.
157 */
158 dispatchHeadlessTask(
159 meta: WorkspaceMeta,
160 adapter: CliAdapter,
161 prompt: string,

Callers 1

createWorkspaceRoutesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected