Skip to content

craft-hub / StartAgentTaskOptions

Interface: StartAgentTaskOptions ​

Defined in: packages/craft-hub/src/agent-tasks.ts:28

Optional work to perform after an agent task completes.

Properties ​

onCompleted? ​

optional onCompleted?: (result, task) => Promise<AgentActionResult>

Defined in: packages/craft-hub/src/agent-tasks.ts:29

Parameters ​

result ​

AgentTaskProviderResult

task ​

AgentTaskRecord

Returns ​

Promise<AgentActionResult>


resumeTaskId? ​

optional resumeTaskId?: string

Defined in: packages/craft-hub/src/agent-tasks.ts:35

Resume a finished task through a provider that supports its original external thread.


taskId? ​

optional taskId?: string

Defined in: packages/craft-hub/src/agent-tasks.ts:31

Host-owned idempotency identity. It is not accepted from ordinary task HTTP input.


worktreePath? ​

optional worktreePath?: string

Defined in: packages/craft-hub/src/agent-tasks.ts:33

Host-prepared Git worktree belonging to the trusted primary repository.

Released under the MIT License.