Skip to content

craft-hub / AgentTaskRecord

Interface: AgentTaskRecord ​

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

Persisted external agent task record.

Properties ​

actionId? ​

optional actionId?: "improve-project-config"

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


actionResult? ​

optional actionResult?: AgentActionResult

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


capabilityId? ​

optional capabilityId?: string

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

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


error? ​

optional error?: string

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


executionDirectory? ​

optional executionDirectory?: string

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

Host-verified directory used by the original agent execution.


externalThreadId? ​

optional externalThreadId?: string

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


finalResponse? ​

optional finalResponse?: string

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


finishedAt? ​

optional finishedAt?: string

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


id ​

id: string

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


output? ​

optional output?: string

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

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


outputTruncated? ​

optional outputTruncated?: boolean

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


parentTaskId? ​

optional parentTaskId?: string

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


primaryProjectId ​

primaryProjectId: string

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


primaryProjectRelativePath? ​

optional primaryProjectRelativePath?: string

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

Project-relative package selected as the task working directory.


projectIds ​

projectIds: string[]

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


prompt ​

prompt: string

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


provider ​

provider: string

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


startedAt ​

startedAt: string

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


status ​

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

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


workspaceId? ​

optional workspaceId?: string

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

Released under the MIT License.