Skip to content

craft-hub / AgentTaskRecord

Interface: AgentTaskRecord ​

Defined in: packages/craft-hub/src/types.ts:680

Persisted external agent task record.

Properties ​

actionId? ​

optional actionId?: "improve-project-config"

Defined in: packages/craft-hub/src/types.ts:685


actionResult? ​

optional actionResult?: AgentActionResult

Defined in: packages/craft-hub/src/types.ts:686


capabilityId? ​

optional capabilityId?: string

Defined in: packages/craft-hub/src/types.ts:684

Capability that originated this task, when launched from a capability detail.


error? ​

optional error?: string

Defined in: packages/craft-hub/src/types.ts:704


executionDirectory? ​

optional executionDirectory?: string

Defined in: packages/craft-hub/src/types.ts:695

Host-verified directory used by the original agent execution.


externalThreadId? ​

optional externalThreadId?: string

Defined in: packages/craft-hub/src/types.ts:693


finalResponse? ​

optional finalResponse?: string

Defined in: packages/craft-hub/src/types.ts:703


finishedAt? ​

optional finishedAt?: string

Defined in: packages/craft-hub/src/types.ts:698


id ​

id: string

Defined in: packages/craft-hub/src/types.ts:681


output? ​

optional output?: string

Defined in: packages/craft-hub/src/types.ts:701

Local, human-readable progress emitted by the task provider.


outputTruncated? ​

optional outputTruncated?: boolean

Defined in: packages/craft-hub/src/types.ts:702


parentTaskId? ​

optional parentTaskId?: string

Defined in: packages/craft-hub/src/types.ts:696


primaryProjectId ​

primaryProjectId: string

Defined in: packages/craft-hub/src/types.ts:689


primaryProjectRelativePath? ​

optional primaryProjectRelativePath?: string

Defined in: packages/craft-hub/src/types.ts:691

Project-relative package selected as the task working directory.


projectIds ​

projectIds: string[]

Defined in: packages/craft-hub/src/types.ts:688


prompt ​

prompt: string

Defined in: packages/craft-hub/src/types.ts:692


provider ​

provider: string

Defined in: packages/craft-hub/src/types.ts:682


startedAt ​

startedAt: string

Defined in: packages/craft-hub/src/types.ts:697


status ​

status: "running" | "completed" | "cancelled" | "failed"

Defined in: packages/craft-hub/src/types.ts:699


workspaceId? ​

optional workspaceId?: string

Defined in: packages/craft-hub/src/types.ts:687

Released under the MIT License.