@ycodium-ai/plugin-api 0.2.6027 → 0.2.6054
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/dist/conversation-queue.d.ts +1 -0
- package/dist/conversation-queue.d.ts.map +1 -1
- package/dist/conversation.d.ts +31 -44
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js.map +1 -1
- package/dist/conversationHostModels.d.ts +2 -0
- package/dist/conversationHostModels.d.ts.map +1 -1
- package/dist/conversationWorkEntry.d.ts +1 -0
- package/dist/conversationWorkEntry.d.ts.map +1 -1
- package/dist/dataPorts.gen.d.ts +200 -6
- package/dist/dataPorts.gen.d.ts.map +1 -1
- package/dist/dataPorts.gen.js.map +1 -1
- package/dist/entity-names.d.ts +1 -0
- package/dist/entity-names.d.ts.map +1 -1
- package/dist/executorCapabilities.d.ts +2 -0
- package/dist/executorCapabilities.d.ts.map +1 -1
- package/dist/source/conversation-queue.ts +1 -0
- package/dist/source/conversation.ts +30 -37
- package/dist/source/conversationHostModels.ts +6 -1
- package/dist/source/conversationWorkEntry.ts +1 -0
- package/dist/source/dataPorts.gen.ts +38 -24
- package/dist/source/entity-names.ts +1 -0
- package/dist/source/executorCapabilities.ts +2 -0
- package/dist/source/ui.ts +6 -1
- package/dist/source/version.ts +2 -2
- package/dist/ui.d.ts +1 -1
- package/dist/ui.d.ts.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -6
|
@@ -169,15 +169,15 @@ export type ProjectsMachinesThreadsListOutput = { readonly items: ReadonlyArray<
|
|
|
169
169
|
export type ProjectsMachinesThreadsGetInput = { readonly projectId: string, readonly machineId: string, readonly threadId: string };
|
|
170
170
|
export type ProjectsMachinesThreadsGetOutput = { readonly thread: { readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit", readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }, readonly machineId: string }, readonly execution: { readonly threadId: string, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error" } | null, readonly queue: ReadonlyArray<{ readonly intentId: string, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly paused?: true, readonly position: number, readonly waitingForCapacity?: true }>, readonly truncated: boolean, readonly queuePaused: boolean, readonly pendingApprovalCount: number, readonly pendingUserInputCount: number, readonly continuation: "active" | "queued" | "blocked" | "paused" | "idle" }, readonly machine: { readonly machineId: string, readonly name: string, readonly online: boolean, readonly serverVersion?: string, readonly wireProtocolVersion?: number } };
|
|
171
171
|
export type ProjectsMachinesThreadsMessagesListInput = { readonly threadId: string, readonly messageId?: string, readonly cursor?: string | null, readonly limit?: number, readonly includeTotal?: boolean, readonly attachmentOffset?: number, readonly textOffset?: number, readonly textLimit?: number, readonly projectId: string, readonly machineId: string };
|
|
172
|
-
export type ProjectsMachinesThreadsMessagesListOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
|
|
172
|
+
export type ProjectsMachinesThreadsMessagesListOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
|
|
173
173
|
export type ThreadsListInput = { readonly collection?: "page" | "all", readonly include?: ReadonlyArray<"summary" | "runtime">, readonly projectId?: string, readonly threadIds?: ThreadDirectoryIds, readonly parentThreadId?: string, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId?: string }, readonly archived?: "exclude" | "include" | "only", readonly sessionStatus?: ReadonlyArray<"idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error">, readonly pendingApproval?: boolean, readonly pendingUserInput?: boolean, readonly cursor?: string | null, readonly limit?: number };
|
|
174
174
|
export type ThreadsListOutput = { readonly items: ReadonlyArray<{ readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit", readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly historyEpoch?: string };
|
|
175
175
|
export type ThreadsListSubscribeInput = { readonly include?: ReadonlyArray<"summary" | "runtime">, readonly projectId?: string, readonly threadIds?: ThreadDirectoryIds, readonly parentThreadId?: string, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId?: string }, readonly archived?: "exclude" | "include" | "only", readonly after?: { readonly epoch: string, readonly sequence: number } };
|
|
176
176
|
export type ThreadsListSubscribeOutput = { readonly _tag: "snapshot", readonly cursor: { readonly epoch: string, readonly sequence: number }, readonly value: { readonly items: ReadonlyArray<{ readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit", readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly historyEpoch?: string } } | { readonly change: { readonly _tag: "upserted", readonly thread: { readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit", readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined } } } | { readonly _tag: "removed", readonly threadId: string }, readonly _tag: "delta", readonly cursor: { readonly epoch: string, readonly sequence: number } } | { readonly threads: ReadonlyArray<{ readonly threadId: string, readonly status?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly nativeSessionImported?: true, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }, readonly members?: ThreadDirectoryRefreshMembers }>, readonly _tag: "refresh" } | { readonly _tag: "synchronized" };
|
|
177
177
|
export type ThreadsArchivedListInput = { };
|
|
178
|
-
export type ThreadsArchivedListOutput = { readonly snapshotSequence: number, readonly projects: ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>, readonly threads: ReadonlyArray<{ readonly nativeSessionImported?: true, readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | null | undefined, readonly interactionMode: "default" | "plan", readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly status?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined, readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly continuationCheck?: ThreadContinuationCheckOrNull, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }>, readonly updatedAt: string };
|
|
178
|
+
export type ThreadsArchivedListOutput = { readonly snapshotSequence: number, readonly projects: ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>, readonly threads: ReadonlyArray<{ readonly nativeSessionImported?: true, readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | null | undefined, readonly interactionMode: "default" | "plan", readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly status?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined, readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly continuationCheck?: ThreadContinuationCheckOrNull, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }>, readonly updatedAt: string };
|
|
179
179
|
export type ThreadsHistoryInput = { readonly threadId: string, readonly turnLimit?: number, readonly beforeCursor?: string, readonly afterCursor?: string, readonly aroundTurnId?: string, readonly boundedHistory?: boolean };
|
|
180
|
-
export type ThreadsHistoryOutput = { readonly snapshotSequence: number, readonly historyEpoch?: string, readonly thread: { readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly actualModel?: { readonly selection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly requested: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly source: "reported" | "echo", readonly turnId?: string | undefined, readonly recordedAt: string } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly continuationCheck?: ThreadContinuationCheckOrNull, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly pendingNotifications?: ReadonlyArray<{ readonly dedupeKey: string, readonly notification: { readonly kind: "child.settled" | "child.failed" | "child.approval" | "child.question" | "child.stopped" | "child.resolved", readonly childThreadId: string, readonly childTitle: string, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string } | { readonly kind: "plugin.notice" | "selfdev.resolved" | "cookie-import.resolved" | "remote.post", readonly sourceThreadId?: string | undefined, readonly sourceTitle?: string | undefined, readonly childThreadId?: string | undefined, readonly childTitle?: string | undefined, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string }, readonly queuedAt: string }> | undefined, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly turnIntents?: ReadonlyArray<{ readonly intentId: string, readonly threadId: string, readonly sequence: number, readonly commandId: string, readonly messageId: string, readonly paused?: boolean, readonly revision?: number, readonly action?: { readonly kind: "steer" | "interrupt", readonly turnId: string, readonly commandId: string, readonly source?: "automatic" } | null, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly legacyModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly runSettings?: { readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly nativeModeId?: string }, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly sourceBlocks?: ReadonlyArray<{ readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly textOffset: number, readonly textLength: number }>, readonly noticesFolded?: true, readonly binding?: { readonly bindingId: string, readonly generation: number, readonly selection: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly compatibility: { readonly match: "native" | "via-adapter" | "unsupported" | "unknown", readonly reasonCode: "native-protocol" | "native-source" | "protocol-conversion" | "wrong-environment" | "resource-missing" | "resource-disabled" | "revision-conflict" | "source-mismatch" | "endpoint-mismatch" | "model-mapping-missing" | "driver-missing" | "driver-unknown" | "driver-identity-mismatch" | "external-endpoint-unsupported" | "protocol-unknown" | "protocol-unsupported" | "auth-unsupported" | "source-ownership-mismatch" | "platform-unsupported" | "version-unknown" | "version-unsupported" | "feature-unsupported" | "feature-unknown" | "capability-validation-failed" | "invalid-options" | "endpoint-invalid", readonly endpointId: string | null, readonly requestedModelId: string | null, readonly effectiveOptions: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly conversion: { readonly id: string, readonly version: string, readonly from: string, readonly to: string, readonly enabled: boolean, readonly capabilities: { readonly text: "supported" | "unsupported" | "unknown", readonly streaming: "supported" | "unsupported" | "unknown", readonly "tool-calls": "supported" | "unsupported" | "unknown", readonly "image-input": "supported" | "unsupported" | "unknown", readonly "audio-input": "supported" | "unsupported" | "unknown", readonly "structured-output": "supported" | "unsupported" | "unknown", readonly reasoning: "supported" | "unsupported" | "unknown" }, readonly limitations: ReadonlyArray<string>, readonly validationRefs: ReadonlyArray<string> } | null, readonly limitations: ReadonlyArray<string>, readonly evidence: ReadonlyArray<{ readonly recordId: string, readonly freshness: "current" | "stale" }>, readonly fingerprint: string | null }, readonly credentialIdentity: { readonly id: string, readonly revision: number } | null, readonly requestedModelId: string, readonly executedModelId: string | null } | null, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly attempt?: { readonly attemptId: string, readonly intentId: string, readonly workerEpoch: number, readonly sourceBindingId: string | null, readonly targetBindingId: string | null, readonly nativeLocator: { readonly sessionId?: string, readonly turnId?: string, readonly generationId?: string } | null, readonly stage: "preparing" | "dispatching" | "running" | "reconciling", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly createdAt: string, readonly updatedAt: string } | null, readonly deliveredTurnId?: string | null, readonly blockedReason?: string | null, readonly replacementIntentId?: string | null, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly scheduledWakes?: ReadonlyArray<{ readonly wakeId: string, readonly threadId: string, readonly dueAt: string, readonly note: string, readonly createdBy: { readonly kind: "thread", readonly threadId: string } | { readonly kind: "person" } | { readonly kind: "plugin", readonly pluginId: string }, readonly state: "scheduled" | "fired" | "cancelled", readonly afterServerUpgrade: boolean, readonly scheduledOnServerVersion: string | null, readonly intentId: string | null, readonly skipped?: true, readonly firedAt: string | null, readonly cancelledAt: string | null, readonly upgrade?: { readonly requestedVersion: string, readonly updateId: string | null, readonly expectsVerdict?: boolean | undefined, readonly outcome: { readonly status: "committed" | "rolled-back" | "failed" | "unknown", readonly targetVersion?: string | undefined, readonly fromVersion: string | null, readonly reason: string | null } | null } | undefined, readonly repeat?: { readonly cron: string, readonly timeZone: string } | undefined, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly turnQueuePaused?: boolean | undefined, readonly turnQueuePauseSource?: "automatic-failure" | "manual" | "unknown" | undefined, readonly acceptedInteractionRequestIds?: ReadonlyArray<string> | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly deletedAt: string | null, readonly messages: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_ } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string }>, readonly proposedPlans: ReadonlyArray<{ readonly id: string, readonly turnId: string | null, readonly planMarkdown: string, readonly implementedAt: string | null, readonly implementationThreadId: string | null, readonly createdAt: string, readonly updatedAt: string }>, readonly activities: ReadonlyArray<{ readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly payload: unknown, readonly turnId: string | null, readonly sequence?: number | undefined, readonly createdAt: string }>, readonly checkpoints: ReadonlyArray<{ readonly turnId: string, readonly checkpointTurnCount: number, readonly checkpointRef: string, readonly status: "ready" | "missing" | "error", readonly files: ReadonlyArray<{ readonly path: string, readonly kind: string, readonly additions: number, readonly deletions: number }>, readonly assistantMessageId: string | null, readonly completedAt: string }>, readonly turnSummaries?: ReadonlyArray<{ readonly turnId: string, readonly userMessageId?: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }>, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> }> | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null }, readonly page?: { readonly beforeCursor: string | null, readonly hasMore: boolean, readonly afterCursor?: string | null, readonly hasNewer?: boolean, readonly boundedHistory?: boolean, readonly history?: { readonly turnIds: ReadonlyArray<string>, readonly messageIds: ReadonlyArray<string>, readonly activityIds: ReadonlyArray<string>, readonly proposedPlanIds: ReadonlyArray<string>, readonly checkpointTurnIds: ReadonlyArray<string>, readonly turnIntentIds: ReadonlyArray<string> }, readonly snapshotSequence: number, readonly threadSequence?: number } | undefined };
|
|
180
|
+
export type ThreadsHistoryOutput = { readonly snapshotSequence: number, readonly historyEpoch?: string, readonly thread: { readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly actualModel?: { readonly selection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly requested: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly source: "reported" | "echo", readonly turnId?: string | undefined, readonly recordedAt: string } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly continuationCheck?: ThreadContinuationCheckOrNull, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly pendingNotifications?: ReadonlyArray<{ readonly dedupeKey: string, readonly notification: { readonly kind: "child.settled" | "child.failed" | "child.approval" | "child.question" | "child.stopped" | "child.resolved", readonly childThreadId: string, readonly childTitle: string, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string } | { readonly kind: "plugin.notice" | "selfdev.resolved" | "cookie-import.resolved" | "remote.post", readonly sourceThreadId?: string | undefined, readonly sourceTitle?: string | undefined, readonly childThreadId?: string | undefined, readonly childTitle?: string | undefined, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string }, readonly queuedAt: string }> | undefined, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly turnIntents?: ReadonlyArray<{ readonly intentId: string, readonly threadId: string, readonly sequence: number, readonly commandId: string, readonly messageId: string, readonly paused?: boolean, readonly revision?: number, readonly action?: { readonly kind: "steer" | "interrupt", readonly turnId: string, readonly commandId: string, readonly source?: "automatic" } | null, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly legacyModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly runSettings?: { readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly nativeModeId?: string }, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly sourceBlocks?: ReadonlyArray<{ readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly textOffset: number, readonly textLength: number }>, readonly noticesFolded?: true, readonly binding?: { readonly bindingId: string, readonly generation: number, readonly selection: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly compatibility: { readonly match: "native" | "via-adapter" | "unsupported" | "unknown", readonly reasonCode: "native-protocol" | "native-source" | "protocol-conversion" | "wrong-environment" | "resource-missing" | "resource-disabled" | "revision-conflict" | "source-mismatch" | "endpoint-mismatch" | "model-mapping-missing" | "driver-missing" | "driver-unknown" | "driver-identity-mismatch" | "external-endpoint-unsupported" | "protocol-unknown" | "protocol-unsupported" | "auth-unsupported" | "source-ownership-mismatch" | "platform-unsupported" | "version-unknown" | "version-unsupported" | "feature-unsupported" | "feature-unknown" | "capability-validation-failed" | "invalid-options" | "endpoint-invalid", readonly endpointId: string | null, readonly requestedModelId: string | null, readonly effectiveOptions: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly conversion: { readonly id: string, readonly version: string, readonly from: string, readonly to: string, readonly enabled: boolean, readonly capabilities: { readonly text: "supported" | "unsupported" | "unknown", readonly streaming: "supported" | "unsupported" | "unknown", readonly "tool-calls": "supported" | "unsupported" | "unknown", readonly "image-input": "supported" | "unsupported" | "unknown", readonly "audio-input": "supported" | "unsupported" | "unknown", readonly "structured-output": "supported" | "unsupported" | "unknown", readonly reasoning: "supported" | "unsupported" | "unknown" }, readonly limitations: ReadonlyArray<string>, readonly validationRefs: ReadonlyArray<string> } | null, readonly limitations: ReadonlyArray<string>, readonly evidence: ReadonlyArray<{ readonly recordId: string, readonly freshness: "current" | "stale" }>, readonly fingerprint: string | null }, readonly credentialIdentity: { readonly id: string, readonly revision: number } | null, readonly requestedModelId: string, readonly executedModelId: string | null } | null, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly attempt?: { readonly attemptId: string, readonly intentId: string, readonly workerEpoch: number, readonly sourceBindingId: string | null, readonly targetBindingId: string | null, readonly nativeLocator: { readonly sessionId?: string, readonly turnId?: string, readonly generationId?: string } | null, readonly stage: "preparing" | "dispatching" | "running" | "reconciling", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly createdAt: string, readonly updatedAt: string } | null, readonly deliveredTurnId?: string | null, readonly blockedReason?: string | null, readonly replacementIntentId?: string | null, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly scheduledWakes?: ReadonlyArray<{ readonly wakeId: string, readonly threadId: string, readonly dueAt: string, readonly note: string, readonly createdBy: { readonly kind: "thread", readonly threadId: string } | { readonly kind: "person" } | { readonly kind: "plugin", readonly pluginId: string }, readonly state: "scheduled" | "fired" | "cancelled", readonly afterServerUpgrade: boolean, readonly scheduledOnServerVersion: string | null, readonly intentId: string | null, readonly skipped?: true, readonly firedAt: string | null, readonly cancelledAt: string | null, readonly upgrade?: { readonly requestedVersion: string, readonly updateId: string | null, readonly expectsVerdict?: boolean | undefined, readonly outcome: { readonly status: "committed" | "rolled-back" | "failed" | "unknown", readonly targetVersion?: string | undefined, readonly fromVersion: string | null, readonly reason: string | null } | null } | undefined, readonly repeat?: { readonly cron: string, readonly timeZone: string } | undefined, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly turnQueuePaused?: boolean | undefined, readonly turnQueuePauseSource?: "automatic-failure" | "manual" | "unknown" | undefined, readonly acceptedInteractionRequestIds?: ReadonlyArray<string> | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly deletedAt: string | null, readonly messages: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_ } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string }>, readonly proposedPlans: ReadonlyArray<{ readonly id: string, readonly turnId: string | null, readonly planMarkdown: string, readonly implementedAt: string | null, readonly implementationThreadId: string | null, readonly createdAt: string, readonly updatedAt: string }>, readonly activities: ReadonlyArray<{ readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly payload: unknown, readonly turnId: string | null, readonly sequence?: number | undefined, readonly createdAt: string }>, readonly checkpoints: ReadonlyArray<{ readonly turnId: string, readonly checkpointTurnCount: number, readonly checkpointRef: string, readonly status: "ready" | "missing" | "error", readonly files: ReadonlyArray<{ readonly path: string, readonly kind: string, readonly additions: number, readonly deletions: number }>, readonly assistantMessageId: string | null, readonly completedAt: string }>, readonly turnSummaries?: ReadonlyArray<{ readonly turnId: string, readonly userMessageId?: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }>, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> }> | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null }, readonly page?: { readonly beforeCursor: string | null, readonly hasMore: boolean, readonly afterCursor?: string | null, readonly hasNewer?: boolean, readonly boundedHistory?: boolean, readonly history?: { readonly turnIds: ReadonlyArray<string>, readonly messageIds: ReadonlyArray<string>, readonly activityIds: ReadonlyArray<string>, readonly proposedPlanIds: ReadonlyArray<string>, readonly checkpointTurnIds: ReadonlyArray<string>, readonly turnIntentIds: ReadonlyArray<string> }, readonly snapshotSequence: number, readonly threadSequence?: number } | undefined };
|
|
181
181
|
export type ThreadsSearchInput = { readonly query: string, readonly limit?: number, readonly includeArchived?: boolean, readonly createdAfter?: string, readonly createdBefore?: string, readonly cursor?: number, readonly projectId?: string };
|
|
182
182
|
export type ThreadsSearchOutput = { readonly matches: ReadonlyArray<{ readonly threadId: string, readonly projectId: string, readonly source: "user" | "assistant", readonly snippet: string, readonly messageCreatedAt: string | null, readonly messageId?: string, readonly threadTitle?: string, readonly projectName?: string, readonly archivedAt?: string | null }>, readonly filtersApplied?: boolean, readonly nextCursor?: number | null };
|
|
183
183
|
export type ThreadsResumeCommandGetInput = { readonly threadId: string };
|
|
@@ -223,15 +223,15 @@ export type ThreadsGetOutput = { readonly nativeSessionImported?: true, readonly
|
|
|
223
223
|
export type ThreadsTimeGetInput = { readonly threadId: string, readonly since?: string, readonly until?: string, readonly cursor?: string | null, readonly limit?: number };
|
|
224
224
|
export type ThreadsTimeGetOutput = { readonly readAt: string, readonly agentRunningMs: number, readonly waitingForYouMs: number, readonly approvalWaitMs: number, readonly userInputWaitMs: number, readonly turns: ReadonlyArray<{ readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly startedAt: string, readonly completedAt: string | null, readonly agentRunningMs: number, readonly waitingForYouMs: number, readonly approvalWaitMs: number, readonly userInputWaitMs: number }>, readonly nextCursor: string | null };
|
|
225
225
|
export type ThreadsToolCallsListInput = { readonly threadId: string, readonly source?: "native" | "ycodium" | "plugin" | "mcp" | "unknown", readonly pluginId?: string, readonly mcpServer?: string, readonly turnIds?: ReadonlyArray<string>, readonly cursor?: string | null, readonly limit?: number };
|
|
226
|
-
export type ThreadsToolCallsListOutput = { readonly calls: ReadonlyArray<{ readonly id: string, readonly kind: "tool-call", readonly createdAt: string, readonly turnId: string | null, readonly status: "running" | "completed" | "failed" | "declined" | "stopped" | "unknown", readonly summary: string, readonly durationMs?: number, readonly activityId: string, readonly updatedActivityId: string, readonly toolCallId?: string, readonly chatAnchorRowId?: string, readonly invocationId?: string, readonly rewrittenBy?: ReadonlyArray<string>, readonly builtinMcpTool?: string, readonly toolArgs?: { readonly threadId?: string, readonly projectId?: string, readonly instanceId?: string, readonly environmentId?: string, readonly machine?: string, readonly to?: { readonly threadId?: string, readonly environmentId?: string } }, readonly source: "native" | "ycodium" | "plugin" | "mcp" | "unknown", readonly toolName?: string, readonly pluginId?: string, readonly mcpServer?: string, readonly action?: "skill-read", readonly skillName?: string }>, readonly turnContexts: ReadonlyArray<{ readonly turnId: string | null, readonly counts: { readonly totalCalls: number, readonly failedCalls: number, readonly matchedCalls: number, readonly matchedFailedCalls: number }, readonly summary?: { readonly turnId: string, readonly userMessageId?: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }>, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> }, readonly userMessage?: { readonly id: string, readonly createdAt: string, readonly text: string, readonly truncated: boolean }, readonly assistantMessage?: { readonly id: string, readonly createdAt: string, readonly text: string, readonly truncated: boolean } }>, readonly sources: ReadonlyArray<{ readonly source: "native" | "ycodium" | "plugin" | "mcp" | "unknown", readonly pluginId?: string, readonly mcpServer?: string }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
|
|
226
|
+
export type ThreadsToolCallsListOutput = { readonly calls: ReadonlyArray<{ readonly id: string, readonly kind: "tool-call", readonly createdAt: string, readonly turnId: string | null, readonly status: "running" | "completed" | "failed" | "declined" | "stopped" | "unknown", readonly summary: string, readonly durationMs?: number, readonly activityId: string, readonly updatedActivityId: string, readonly toolCallId?: string, readonly chatAnchorRowId?: string, readonly invocationId?: string, readonly rewrittenBy?: ReadonlyArray<string>, readonly builtinMcpTool?: string, readonly toolArgs?: { readonly threadId?: string, readonly projectId?: string, readonly instanceId?: string, readonly environmentId?: string, readonly machine?: string, readonly to?: { readonly threadId?: string, readonly environmentId?: string } }, readonly source: "native" | "ycodium" | "plugin" | "mcp" | "unknown", readonly toolName?: string, readonly pluginId?: string, readonly pluginEntryId?: string, readonly mcpServer?: string, readonly action?: "skill-read", readonly skillName?: string }>, readonly turnContexts: ReadonlyArray<{ readonly turnId: string | null, readonly counts: { readonly totalCalls: number, readonly failedCalls: number, readonly matchedCalls: number, readonly matchedFailedCalls: number }, readonly summary?: { readonly turnId: string, readonly userMessageId?: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }>, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> }, readonly userMessage?: { readonly id: string, readonly createdAt: string, readonly text: string, readonly truncated: boolean }, readonly assistantMessage?: { readonly id: string, readonly createdAt: string, readonly text: string, readonly truncated: boolean } }>, readonly sources: ReadonlyArray<{ readonly source: "native" | "ycodium" | "plugin" | "mcp" | "unknown", readonly pluginId?: string, readonly mcpServer?: string }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
|
|
227
227
|
export type ThreadsMessagesListInput = { readonly threadId: string, readonly messageId?: string, readonly cursor?: string | null, readonly limit?: number, readonly includeTotal?: boolean, readonly attachmentOffset?: number, readonly textOffset?: number, readonly textLimit?: number };
|
|
228
|
-
export type ThreadsMessagesListOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
|
|
228
|
+
export type ThreadsMessagesListOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
|
|
229
229
|
export type ThreadsActivitiesListInput = { readonly threadId: string, readonly kinds: ReadonlyArray<string>, readonly inTurn?: "any" | "none", readonly cursor?: string | null, readonly limit?: number, readonly maxPayloadBytes?: number, readonly maxPageBytes?: number };
|
|
230
230
|
export type ThreadsActivitiesListOutput = { readonly items: ReadonlyArray<{ readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly turnId: string | null, readonly sequence?: number | undefined, readonly createdAt: string, readonly payload: unknown, readonly payloadOmitted?: undefined, readonly toolCallId?: undefined } | { readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly turnId: string | null, readonly sequence?: number | undefined, readonly createdAt: string, readonly payload?: undefined, readonly payloadOmitted: { readonly bytes: number }, readonly toolCallId?: string }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
|
|
231
231
|
export type ProjectsListInput = { readonly archived?: "exclude" | "include" | "only", readonly repositoryIdentity?: "resolve" | "skip" };
|
|
232
|
-
export type ProjectsListOutput = ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>;
|
|
232
|
+
export type ProjectsListOutput = ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>;
|
|
233
233
|
export type ProjectsGetInput = { readonly projectId: string };
|
|
234
|
-
export type ProjectsGetOutput = { readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined };
|
|
234
|
+
export type ProjectsGetOutput = { readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined };
|
|
235
235
|
export type ProjectsToolkitsGetInput = { readonly projectId: string };
|
|
236
236
|
export type ProjectsToolkitsGetOutput = { readonly projectId: string, readonly memoryInjection?: boolean, readonly toolkits: ReadonlyArray<{ readonly toolkit: "board" | "memory" | "messages", readonly enabled: boolean }> };
|
|
237
237
|
export type CommunicationRecordsGetInput = { readonly recordIds: ReadonlyArray<string>, readonly textOffset?: number, readonly textLimit?: number };
|
|
@@ -321,7 +321,7 @@ export type ProvidersSessionsListOutput = { readonly sessions: ReadonlyArray<{ r
|
|
|
321
321
|
export type ProvidersSessionsSetResumeCursorInput = { readonly instanceId: string, readonly threadId: string, readonly cursor: unknown };
|
|
322
322
|
export type ProvidersSessionsSetResumeCursorOutput = { };
|
|
323
323
|
export type ProvidersExecutorsListInput = { };
|
|
324
|
-
export type ProvidersExecutorsListOutput = { readonly entries: ReadonlyArray<{ readonly pluginId: string, readonly entryId: string, readonly loadedAt: string, readonly card: { readonly driverKind: string, readonly displayName: string, readonly iconUrl: string, readonly commandName: string, readonly launchArgs: string, readonly homeEnvVar: string, readonly homeLayout?: { readonly accountConfigKey: string, readonly transcriptSubdir: string, readonly accountEnvVar?: string | undefined } | undefined, readonly accountDirectory?: { readonly configKeys: readonly [string, ...Array<string>], readonly defaultDirectory: string, readonly brandAliases?: ReadonlyArray<string>, readonly holdsThreads?: boolean } | undefined, readonly resumeCommand?: { readonly cursorKeys: readonly [string, ...Array<string>], readonly command: string } | undefined, readonly repositoryInstructionsFile?: string | undefined, readonly signInNotNeededWhen?: { readonly configKey: string, readonly equals: string } | undefined, readonly mcpToolNameStyle?: "server_tool" | undefined, readonly environment: ReadonlyArray<{ readonly name: string, readonly sensitive: boolean }>, readonly install: { readonly kind: "vendorScript", readonly posixCommand: string, readonly windowsCommand: string, readonly installedPathSegment: string } | { readonly kind: "npm" } | { readonly kind: "downloadPage", readonly url: string } | null, readonly signIn: ReadonlyArray<{ readonly kind: "device-code" } | { readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string } | { readonly kind: "api-key", readonly variable: string }>, readonly deviceCodeSignInArgs: ReadonlyArray<string>, readonly npmPackage: string, readonly homebrewFormula: string, readonly selfUpdateArgs: ReadonlyArray<string>, readonly docsUrl: string, readonly setupNote: string, readonly defaultModel: string, readonly customModelIdExample: string, readonly modelSlugAliases: { readonly [x: string]: string } | null, readonly modelCatalogAuthoritative?: boolean | undefined, readonly mcpToolCallCeilingSeconds?: number | undefined, readonly mcpTransports: ReadonlyArray<"stdio" | "http" | "sse"> | null, readonly pluginManaged: boolean, readonly verifiedSkills: boolean, readonly everydayHarness: boolean, readonly capabilities: { readonly sessionModelSwitch: "in-session" | "unsupported", readonly sessionOptionSwitch?: "in-session" | "unsupported" | undefined, readonly runtimeModeSwitch: "in-session" | "next-turn", readonly contextCompaction?: "native" | "unsupported" | undefined, readonly nativeModeSwitch?: boolean | undefined, readonly turnSteering?: boolean | undefined, readonly reportsSpawnedAgents?: boolean | undefined, readonly handlesSkillInvocations?: boolean | undefined, readonly discoversRepoSkills?: boolean | undefined, readonly confirmsToolTermination?: boolean | undefined, readonly acceptsAdditionalDirectories?: boolean | undefined, readonly blocksHostMcpWritesInAuto?: boolean | undefined, readonly recoversMcpByRelaunch?: boolean | undefined, readonly hostMcpToolListing?: "compact" | "full" | undefined, readonly inlineImages?: { readonly maxBytes: number, readonly maxEdgePixels?: number | undefined, readonly maxTotalBytes?: number | undefined, readonly mimeTypes?: ReadonlyArray<string> | undefined } | undefined }, readonly credentialSources: ReadonlyArray<{ readonly kind: "json-file", readonly pathFromHome: string, readonly jsonPointer: string } | { readonly kind: "json-file-os-home", readonly pathFromOsHome: string, readonly jsonPointer: string } | { readonly kind: "macos-keychain", readonly service: string, readonly accountFromEnv?: string | undefined, readonly defaultHomeOnly: boolean }>, readonly diagnostics: ReadonlyArray<{ readonly id: string, readonly labelKey: string }>, readonly effectiveCommand?: string | undefined, readonly configSchema: { readonly [x: string]: unknown }, readonly modelConnectivity: { readonly dialects: ReadonlyArray<"anthropic-messages" | "openai-responses" | "openai-chat-completions" | "google-cloud-code">, readonly acceptsExternalEndpoints: boolean, readonly nativePathSuffix?: "/v1/messages" | "/responses" | "/chat/completions" | undefined, readonly credentialEnvKey?: string | undefined, readonly baseUrlEnvKey?: string | undefined, readonly alternateCredentialEnvKeys?: ReadonlyArray<string> | undefined, readonly backendSwitchEnvKeys?: ReadonlyArray<string> | undefined, readonly extraEnv?: ReadonlyArray<{ readonly name: string, readonly value: string }> | undefined, readonly extraLaunchArgs?: ReadonlyArray<{ readonly key: string, readonly value: string | boolean }> | undefined, readonly supportsNativeSubscription?: boolean | undefined }, readonly maxConcurrentProcesses?: number | undefined, readonly keepsBackgroundServices?: boolean | undefined }, readonly origin: "bundled" | "installed" }> };
|
|
324
|
+
export type ProvidersExecutorsListOutput = { readonly entries: ReadonlyArray<{ readonly pluginId: string, readonly entryId: string, readonly loadedAt: string, readonly card: { readonly driverKind: string, readonly displayName: string, readonly iconUrl: string, readonly commandName: string, readonly launchArgs: string, readonly homeEnvVar: string, readonly homeLayout?: { readonly accountConfigKey: string, readonly transcriptSubdir: string, readonly accountEnvVar?: string | undefined } | undefined, readonly accountDirectory?: { readonly configKeys: readonly [string, ...Array<string>], readonly defaultDirectory: string, readonly brandAliases?: ReadonlyArray<string>, readonly holdsThreads?: boolean } | undefined, readonly resumeCommand?: { readonly cursorKeys: readonly [string, ...Array<string>], readonly command: string } | undefined, readonly repositoryInstructionsFile?: string | undefined, readonly signInNotNeededWhen?: { readonly configKey: string, readonly equals: string } | undefined, readonly mcpToolNameStyle?: "server_tool" | undefined, readonly environment: ReadonlyArray<{ readonly name: string, readonly sensitive: boolean }>, readonly install: { readonly kind: "vendorScript", readonly posixCommand: string, readonly windowsCommand: string, readonly installedPathSegment: string } | { readonly kind: "npm" } | { readonly kind: "downloadPage", readonly url: string } | null, readonly signIn: ReadonlyArray<{ readonly kind: "device-code" } | { readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string } | { readonly kind: "api-key", readonly variable: string }>, readonly deviceCodeSignInArgs: ReadonlyArray<string>, readonly npmPackage: string, readonly homebrewFormula: string, readonly selfUpdateArgs: ReadonlyArray<string>, readonly docsUrl: string, readonly setupNote: string, readonly defaultModel: string, readonly customModelIdExample: string, readonly modelSlugAliases: { readonly [x: string]: string } | null, readonly modelCatalogAuthoritative?: boolean | undefined, readonly mcpToolCallCeilingSeconds?: number | undefined, readonly mcpTransports: ReadonlyArray<"stdio" | "http" | "sse"> | null, readonly pluginManaged: boolean, readonly verifiedSkills: boolean, readonly everydayHarness: boolean, readonly capabilities: { readonly sessionModelSwitch: "in-session" | "unsupported", readonly sessionOptionSwitch?: "in-session" | "unsupported" | undefined, readonly runtimeModeSwitch: "in-session" | "next-turn", readonly contextCompaction?: "native" | "unsupported" | undefined, readonly nativeModeSwitch?: boolean | undefined, readonly turnSteering?: boolean | undefined, readonly reportsSpawnedAgents?: boolean | undefined, readonly handlesSkillInvocations?: boolean | undefined, readonly discoversRepoSkills?: boolean | undefined, readonly confirmsToolTermination?: boolean | undefined, readonly acceptsAdditionalDirectories?: boolean | undefined, readonly blocksHostMcpWritesInAuto?: boolean | undefined, readonly recoversMcpByRelaunch?: boolean | undefined, readonly hostTaskList?: boolean | undefined, readonly hostMcpToolListing?: "compact" | "full" | undefined, readonly inlineImages?: { readonly maxBytes: number, readonly maxEdgePixels?: number | undefined, readonly maxTotalBytes?: number | undefined, readonly mimeTypes?: ReadonlyArray<string> | undefined } | undefined }, readonly credentialSources: ReadonlyArray<{ readonly kind: "json-file", readonly pathFromHome: string, readonly jsonPointer: string } | { readonly kind: "json-file-os-home", readonly pathFromOsHome: string, readonly jsonPointer: string } | { readonly kind: "macos-keychain", readonly service: string, readonly accountFromEnv?: string | undefined, readonly defaultHomeOnly: boolean }>, readonly diagnostics: ReadonlyArray<{ readonly id: string, readonly labelKey: string }>, readonly effectiveCommand?: string | undefined, readonly configSchema: { readonly [x: string]: unknown }, readonly modelConnectivity: { readonly dialects: ReadonlyArray<"anthropic-messages" | "openai-responses" | "openai-chat-completions" | "google-cloud-code">, readonly acceptsExternalEndpoints: boolean, readonly nativePathSuffix?: "/v1/messages" | "/responses" | "/chat/completions" | undefined, readonly credentialEnvKey?: string | undefined, readonly baseUrlEnvKey?: string | undefined, readonly alternateCredentialEnvKeys?: ReadonlyArray<string> | undefined, readonly backendSwitchEnvKeys?: ReadonlyArray<string> | undefined, readonly extraEnv?: ReadonlyArray<{ readonly name: string, readonly value: string }> | undefined, readonly extraLaunchArgs?: ReadonlyArray<{ readonly key: string, readonly value: string | boolean }> | undefined, readonly supportsNativeSubscription?: boolean | undefined }, readonly maxConcurrentProcesses?: number | undefined, readonly keepsBackgroundServices?: boolean | undefined }, readonly origin: "bundled" | "installed" }> };
|
|
325
325
|
export type ProvidersWorkspaceInventoryGetInput = { readonly instanceId: string, readonly cwd: string, readonly threadId?: string, readonly refresh?: boolean };
|
|
326
326
|
export type ProvidersWorkspaceInventoryGetOutput = { readonly instanceId: string, readonly cwd: string, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly source: "workspace" | "machine", readonly sessionReported?: boolean, readonly checkedAt: string };
|
|
327
327
|
export type ProvidersListInput = { };
|
|
@@ -357,15 +357,19 @@ export type ProjectsConfigGetOutput = { readonly actions?: ReadonlyArray<{ reado
|
|
|
357
357
|
export type ProjectsConfigUpdateInput = { readonly actions?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string, readonly autoOpenBrowser?: boolean }>, readonly tasks?: { readonly [x: string]: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly description?: string, readonly timeoutSeconds?: number, readonly variants?: { readonly [x: string]: ReadonlyArray<string> } } }, readonly mcpServers?: { readonly [x: string]: { readonly name: string, readonly transport: { readonly type: "stdio", readonly command: string, readonly args?: ReadonlyArray<string>, readonly env?: { readonly [x: string]: string | null } } | { readonly type: "http", readonly url: string, readonly headers?: { readonly [x: string]: string | null } } | { readonly type: "sse", readonly url: string, readonly headers?: { readonly [x: string]: string | null } }, readonly enabled?: boolean, readonly providers?: { readonly [x: string]: boolean }, readonly catalogId?: string } }, readonly skills?: { readonly [x: string]: { readonly name: string, readonly source: { readonly kind: "inline", readonly skillMd: string } | { readonly kind: "builtin", readonly id: string } | { readonly kind: "catalog", readonly catalogId: string, readonly version: string }, readonly enabled?: boolean, readonly modelInvocable?: boolean, readonly userInvocable?: boolean, readonly providers?: { readonly [x: string]: boolean } } }, readonly projectId: string, readonly revision: number };
|
|
358
358
|
export type ProjectsConfigUpdateOutput = { readonly revision: number };
|
|
359
359
|
export type PluginsInstalledListInput = { readonly includeRuntimeStats?: boolean, readonly entryId?: string, readonly limit?: number, readonly cursor?: string };
|
|
360
|
-
export type PluginsInstalledListOutput = { readonly plugins: ReadonlyArray<{ readonly signIns?: ReadonlyArray<{ readonly name: string, readonly label?: string, readonly labelKey?: string, readonly state: string, readonly account?: string, readonly kind: string, readonly redirectUri?: string, readonly attempt?: { readonly attemptId: string, readonly state: string, readonly error?: string } }>, readonly publicServices?: ReadonlyArray<{ readonly service: string, readonly publicPath: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> | undefined, readonly slashCommands?: ReadonlyArray<{ readonly name: string, readonly kind: "prompt" | "action", readonly description?: string | undefined, readonly argumentHint?: string | undefined, readonly translations?: { readonly [x: string]: { readonly description?: string | undefined, readonly argumentHint?: string | undefined } } | undefined }> | undefined, readonly entryId: string, readonly revision?: string | undefined, readonly pluginId: string, readonly presentation?: { readonly displayName: string, readonly description?: string | undefined, readonly translations?: { readonly [x: string]: { readonly displayName?: string | undefined, readonly description?: string | undefined } } | undefined, readonly author?: string | undefined, readonly homepage?: string | undefined, readonly icon?: string | undefined } | undefined, readonly origin: "builtin" | "package" | "directory" | "thread", readonly location: string | null, readonly version: string | null, readonly packageName?: string | null | undefined, readonly loadedAt?: string | undefined, readonly configRevision?: number | undefined, readonly uiDebug?: { readonly enabled: boolean, readonly phase: "idle" | "building" | "error", readonly error: string | null } | undefined, readonly uiRevision?: string | undefined, readonly uiDigest?: string | undefined, readonly assetDigests?: { readonly [x: string]: string } | undefined, readonly proxyIds?: ReadonlyArray<string> | undefined, readonly state: "loaded" | "failed" | "stopped" | "disabled", readonly contributions: ReadonlyArray<{ readonly kind: "signIn" | "toolkit" | "reactor" | "settingsCard" | "modelPreset" | "command" | "cli" | "interval" | "executor" | "protocolConversion" | "skill" | "filePreviewConverter" | "systemPrompt.section" | "systemPrompt.context" | "messages.beforeSend" | "slashCommand" | "tools.guard" | "ui.seats" | "agentPresets" | "sessionProjections" | "continuation", readonly name: string, readonly role?: string }>, readonly failure: { readonly phase: string, readonly message: string, readonly kind?: string | undefined } | null, readonly threadId: string | null, readonly runtimeStats?: { readonly eventsHandled: number, readonly toolCalls: number, readonly processesSpawned?: number | undefined, readonly lastEventAt: string | null } | undefined, readonly removable?: boolean | undefined, readonly permissions?: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string
|
|
361
|
-
export type PluginsInstalledSetEnabledInput = { readonly entryId: string, readonly enabled: boolean, readonly revision: string, readonly force?: boolean };
|
|
360
|
+
export type PluginsInstalledListOutput = { readonly plugins: ReadonlyArray<{ readonly canonicalMachineEntryId?: string, readonly signIns?: ReadonlyArray<{ readonly name: string, readonly label?: string, readonly labelKey?: string, readonly state: string, readonly account?: string, readonly kind: string, readonly redirectUri?: string, readonly attempt?: { readonly attemptId: string, readonly state: string, readonly error?: string } }>, readonly publicServices?: ReadonlyArray<{ readonly service: string, readonly publicPath: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> | undefined, readonly slashCommands?: ReadonlyArray<{ readonly name: string, readonly kind: "prompt" | "action", readonly description?: string | undefined, readonly argumentHint?: string | undefined, readonly translations?: { readonly [x: string]: { readonly description?: string | undefined, readonly argumentHint?: string | undefined } } | undefined }> | undefined, readonly entryId: string, readonly revision?: string | undefined, readonly pluginId: string, readonly presentation?: { readonly displayName: string, readonly description?: string | undefined, readonly translations?: { readonly [x: string]: { readonly displayName?: string | undefined, readonly description?: string | undefined } } | undefined, readonly author?: string | undefined, readonly homepage?: string | undefined, readonly icon?: string | undefined } | undefined, readonly origin: "builtin" | "package" | "directory" | "project" | "thread", readonly location: string | null, readonly version: string | null, readonly packageName?: string | null | undefined, readonly loadedAt?: string | undefined, readonly configRevision?: number | undefined, readonly uiDebug?: { readonly enabled: boolean, readonly phase: "idle" | "building" | "error", readonly error: string | null } | undefined, readonly uiRevision?: string | undefined, readonly uiDigest?: string | undefined, readonly assetDigests?: { readonly [x: string]: string } | undefined, readonly proxyIds?: ReadonlyArray<string> | undefined, readonly state: "loaded" | "failed" | "stopped" | "disabled", readonly contributions: ReadonlyArray<{ readonly kind: "signIn" | "toolkit" | "reactor" | "settingsCard" | "modelPreset" | "command" | "cli" | "interval" | "executor" | "protocolConversion" | "skill" | "filePreviewConverter" | "systemPrompt.section" | "systemPrompt.context" | "messages.beforeSend" | "slashCommand" | "tools.guard" | "ui.seats" | "agentPresets" | "sessionProjections" | "continuation", readonly name: string, readonly role?: string }>, readonly failure: { readonly phase: string, readonly message: string, readonly kind?: string | undefined } | null, readonly threadId: string | null, readonly projectId?: string | null | undefined, readonly projectPlugin?: { readonly needsApproval: boolean, readonly conflictWithMachine: boolean, readonly conflictChoice?: "project" | "machine" | undefined } | undefined, readonly runtimeStats?: { readonly eventsHandled: number, readonly toolCalls: number, readonly processesSpawned?: number | undefined, readonly lastEventAt: string | null } | undefined, readonly removable?: boolean | undefined, readonly permissions?: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: ReadonlyArray<"conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view"> } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<string> } | { readonly kind: "unknown", readonly reportedKind: string }> | undefined, readonly ui?: { readonly assetsPath: string, readonly entry?: string | undefined, readonly pages?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined, readonly chrome?: "host" | "own" | undefined, readonly placements?: ReadonlyArray<"web-pages" | "mobile-home" | "mobile-pages"> | undefined }> | undefined, readonly panels?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined }> | undefined, readonly providerSettings?: ReadonlyArray<{ readonly id: string, readonly driverKind: string, readonly ownedFields?: { readonly add?: ReadonlyArray<string> | undefined, readonly edit?: ReadonlyArray<string> | undefined } | undefined, readonly ownedEnvironment?: ReadonlyArray<string> | undefined, readonly genericFields?: "inline" | "collapsed" | undefined }> | undefined, readonly threadAnnotations?: { readonly command: string } | undefined, readonly appearance?: { readonly name: string, readonly wallpaper: string, readonly dimLight?: number | undefined, readonly dimDark?: number | undefined, readonly blur?: number | undefined } | undefined, readonly toolViews?: ReadonlyArray<{ readonly tool: string, readonly view?: string | undefined, readonly placement?: "inline" | "deliverable" | undefined, readonly titleKey?: string | undefined, readonly titleBy?: { readonly arg: string, readonly titleKeys: { readonly [x: string]: string } } | undefined, readonly summary?: ReadonlyArray<string> | undefined }> | undefined, readonly chatWatchers?: ReadonlyArray<string> | undefined, readonly teamViews?: ReadonlyArray<{ readonly key: string, readonly scopes: ReadonlyArray<"team" | "project">, readonly titleKey: string, readonly icon?: string | undefined, readonly order?: number | undefined }> | undefined, readonly development?: { readonly command: string, readonly args: ReadonlyArray<string>, readonly watch: ReadonlyArray<string> } | undefined } | undefined, readonly executors?: ReadonlyArray<unknown> | undefined }>, readonly nextCursor?: string | null };
|
|
361
|
+
export type PluginsInstalledSetEnabledInput = { readonly entryId: string, readonly enabled: boolean, readonly revision: string, readonly force?: boolean, readonly acceptedPermissions?: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: readonly ["conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view", ...Array<"conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view">] } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<"thread.artifact.deliver" | "thread.create" | "thread.fork" | "thread.import" | "thread.external-messages.append" | "thread.turn.interrupt" | "thread.approval.respond" | "thread.turn-intent.run" | "thread.turn-intent.cancel" | "thread.turn-queue.resume" | "thread.turn-intent.set-paused" | "thread.turn-intent.reorder" | "thread.turn-queue.pause" | "thread.user-input.dismiss" | "thread.scheduled-wake.schedule" | "thread.scheduled-wake.cancel" | "thread.snooze" | "thread.unsnooze" | "thread.reorder" | "thread.interaction-mode.set" | "thread.native-mode.set" | "thread.runtime-mode.set" | "thread.context.compact" | "thread.archive" | "thread.unarchive" | "thread.settle" | "thread.unsettle" | "machineSettings.update" | "machineSettings.keybindings.write" | "machineSettings.wallpaper.adopt" | "machineSettings.browser.cookies.import" | "projects.config.update" | "plugins.settingsCards.updateValues" | "plugins.installed.setEnabled" | "project.schedule.save" | "project.schedule.delete" | "project.create" | "projects.conversation.ensure" | "project.folder.attach" | "project.archive" | "project.unarchive" | "project.reorder" | "project.folder.detach" | "project.folder.relocate" | "thread.session.stop" | "thread.session.restart" | "plugins.notifications.markRead" | "plugins.notifications.clear" | "memory.experience.record" | "memory.experience.revise" | "memory.experience.forget" | "memory.experience.restore" | "wiki.page.create" | "wiki.page.edit" | "wiki.page.restore" | "wiki.handbook.publish" | "wiki.handbook.revert" | "work.item.create" | "work.item.update" | "work.item.claim" | "work.relation.add" | "work.relation.remove" | "communication.post.send" | "member.create" | "member.update" | "member.remove" | "member.restore" | "member.trial.record" | "member.externalWake.deliver" | "work.line.create" | "work.line.update" | "work.line.archive" | "work.line.restore" | "work.line.pause" | "work.line.resume" | "work.item.archive" | "work.item.unarchive" | "work.label.create" | "work.label.update" | "work.label.remove" | "work.label.restore" | "work.state.create" | "work.state.update" | "work.state.remove" | "work.state.restore" | "work.machine-task.create" | "thread.meta.update" | "thread.members.update" | "thread.turn.start" | "communication.message.send" | "communication.delivery.bind" | "thread.user-input.respond" | "thread.browser.capture" | "thread.browser.recording.start" | "thread.browser.recording.stop" | "thread.browser.download.cancel" | "thread.worktree.prepare"> }>, readonly conflictChoice?: "project" | "machine" };
|
|
362
362
|
export type PluginsInstalledSetEnabledOutput = { readonly revision: string };
|
|
363
|
-
export type
|
|
363
|
+
export type PluginsProjectInstallMachineInput = { readonly projectId: string, readonly pluginId: string, readonly pluginDir: string, readonly acceptedPermissions: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: readonly ["conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view", ...Array<"conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view">] } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<"thread.artifact.deliver" | "thread.create" | "thread.fork" | "thread.import" | "thread.external-messages.append" | "thread.turn.interrupt" | "thread.approval.respond" | "thread.turn-intent.run" | "thread.turn-intent.cancel" | "thread.turn-queue.resume" | "thread.turn-intent.set-paused" | "thread.turn-intent.reorder" | "thread.turn-queue.pause" | "thread.user-input.dismiss" | "thread.scheduled-wake.schedule" | "thread.scheduled-wake.cancel" | "thread.snooze" | "thread.unsnooze" | "thread.reorder" | "thread.interaction-mode.set" | "thread.native-mode.set" | "thread.runtime-mode.set" | "thread.context.compact" | "thread.archive" | "thread.unarchive" | "thread.settle" | "thread.unsettle" | "machineSettings.update" | "machineSettings.keybindings.write" | "machineSettings.wallpaper.adopt" | "machineSettings.browser.cookies.import" | "projects.config.update" | "plugins.settingsCards.updateValues" | "plugins.installed.setEnabled" | "project.schedule.save" | "project.schedule.delete" | "project.create" | "projects.conversation.ensure" | "project.folder.attach" | "project.archive" | "project.unarchive" | "project.reorder" | "project.folder.detach" | "project.folder.relocate" | "thread.session.stop" | "thread.session.restart" | "plugins.notifications.markRead" | "plugins.notifications.clear" | "memory.experience.record" | "memory.experience.revise" | "memory.experience.forget" | "memory.experience.restore" | "wiki.page.create" | "wiki.page.edit" | "wiki.page.restore" | "wiki.handbook.publish" | "wiki.handbook.revert" | "work.item.create" | "work.item.update" | "work.item.claim" | "work.relation.add" | "work.relation.remove" | "communication.post.send" | "member.create" | "member.update" | "member.remove" | "member.restore" | "member.trial.record" | "member.externalWake.deliver" | "work.line.create" | "work.line.update" | "work.line.archive" | "work.line.restore" | "work.line.pause" | "work.line.resume" | "work.item.archive" | "work.item.unarchive" | "work.label.create" | "work.label.update" | "work.label.remove" | "work.label.restore" | "work.state.create" | "work.state.update" | "work.state.remove" | "work.state.restore" | "work.machine-task.create" | "thread.meta.update" | "thread.members.update" | "thread.turn.start" | "communication.message.send" | "communication.delivery.bind" | "thread.user-input.respond" | "thread.browser.capture" | "thread.browser.recording.start" | "thread.browser.recording.stop" | "thread.browser.download.cancel" | "thread.worktree.prepare"> }>, readonly revision: string };
|
|
364
|
+
export type PluginsProjectInstallMachineOutput = { readonly entryId: string, readonly installedPath: string };
|
|
365
|
+
export type PluginsProjectScanInput = { readonly projectId: string };
|
|
366
|
+
export type PluginsProjectScanOutput = { };
|
|
367
|
+
export type PluginsSessionProjectionsGetInput = { readonly pluginId: string, readonly entryId?: string, readonly name: string, readonly threadId: string };
|
|
364
368
|
export type PluginsSessionProjectionsGetOutput = { readonly present: boolean, readonly value: unknown };
|
|
365
369
|
export type PluginsSessionProjectionsSetInput = { readonly name: string, readonly threadId: string, readonly value: unknown };
|
|
366
370
|
export type PluginsSessionProjectionsSetOutput = { };
|
|
367
371
|
export type PluginsNotificationsListInput = { };
|
|
368
|
-
export type PluginsNotificationsListOutput = { readonly notifications: ReadonlyArray<{ readonly id: string, readonly createdAt: string, readonly read: boolean, readonly kind: "task-succeeded", readonly taskKind: "install" | "update" | "uninstall", readonly subject: string, readonly pluginId?: string | undefined, readonly fallbackName?: string | undefined, readonly dataKeptFor?: string, readonly purged?: boolean } | { readonly id: string, readonly createdAt: string, readonly read: boolean, readonly kind: "task-failed", readonly taskKind: "install" | "update" | "uninstall", readonly subject: string, readonly pluginId?: string | undefined, readonly fallbackName?: string | undefined, readonly failure: { readonly kind: "npmTooOld" | "npmMissing" | "gitMissing" | "fileLocked" | "accessDenied" | "fsUnavailable" | "network" | "registryAuth" | "packageNotFound" | "buildScript" | "activation" | "missingDisplayName" | "unsupportedProcessProgram" | "plugin", readonly summary: string } } | { readonly id: string, readonly createdAt: string, readonly read: boolean, readonly kind: "sign-in-expired", readonly entryId: string, readonly pluginId: string, readonly name: string, readonly label?: string, readonly labelKey?: string }> };
|
|
372
|
+
export type PluginsNotificationsListOutput = { readonly notifications: ReadonlyArray<{ readonly id: string, readonly createdAt: string, readonly read: boolean, readonly kind: "task-succeeded", readonly taskKind: "install" | "update" | "uninstall", readonly subject: string, readonly pluginId?: string | undefined, readonly fallbackName?: string | undefined, readonly dataKeptFor?: string, readonly purged?: boolean } | { readonly id: string, readonly createdAt: string, readonly read: boolean, readonly kind: "task-failed", readonly taskKind: "install" | "update" | "uninstall", readonly subject: string, readonly pluginId?: string | undefined, readonly fallbackName?: string | undefined, readonly failure: { readonly kind: "npmTooOld" | "npmMissing" | "gitMissing" | "fileLocked" | "accessDenied" | "fsUnavailable" | "network" | "registryAuth" | "packageNotFound" | "buildScript" | "activation" | "missingDisplayName" | "unsupportedProcessProgram" | "plugin", readonly summary: string } } | { readonly id: string, readonly createdAt: string, readonly read: boolean, readonly kind: "sign-in-expired", readonly entryId: string, readonly pluginId: string, readonly name: string, readonly label?: string, readonly labelKey?: string } | { readonly id: string, readonly createdAt: string, readonly read: boolean, readonly kind: "folder-target-confirmation", readonly pluginId: string, readonly projectId: string, readonly folderId: string, readonly attachedAt: string, readonly path: string, readonly target: string }> };
|
|
369
373
|
export type PluginsNotificationsMarkReadInput = { readonly ids: readonly [string, ...Array<string>] };
|
|
370
374
|
export type PluginsNotificationsMarkReadOutput = { };
|
|
371
375
|
export type PluginsNotificationsClearInput = { readonly ids: readonly [string, ...Array<string>] };
|
|
@@ -397,11 +401,11 @@ export type WakesCancelOutput = { readonly wake: { readonly createdBy?: { readon
|
|
|
397
401
|
export type WakesListInput = { readonly threadId?: string, readonly state?: "scheduled" | "fired" | "cancelled" };
|
|
398
402
|
export type WakesListOutput = { readonly wakes: ReadonlyArray<{ readonly createdBy?: { readonly kind: "thread", readonly threadId: string } | { readonly kind: "person" } | { readonly kind: "plugin", readonly pluginId: string }, readonly wakeId: string, readonly threadId: string, readonly dueAt: string, readonly note: string, readonly state: "scheduled" | "fired" | "cancelled", readonly afterServerUpgrade: boolean, readonly firedAt: string | null, readonly cancelledAt: string | null, readonly upgrade?: { readonly requestedVersion: string, readonly updateId: string | null, readonly expectsVerdict?: boolean | undefined, readonly outcome: { readonly status: "committed" | "rolled-back" | "failed" | "unknown", readonly targetVersion?: string | undefined, readonly fromVersion: string | null, readonly reason: string | null } | null }, readonly repeat?: { readonly cron: string, readonly timeZone: string } }> };
|
|
399
403
|
export type SchedulesListInput = { readonly projectId: string };
|
|
400
|
-
export type SchedulesListOutput = { readonly schedules: ReadonlyArray<{ readonly scheduleId: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace: "project" | "worktree", readonly presetId?: string, readonly enabled: boolean, readonly nextRunAt: string, readonly createdBy: { readonly kind: "person" } | { readonly kind: "thread", readonly threadId: string } | { readonly kind: "plugin", readonly pluginId: string }, readonly createdAt: string, readonly updatedAt: string }> };
|
|
404
|
+
export type SchedulesListOutput = { readonly schedules: ReadonlyArray<{ readonly scheduleId: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace: "project" | "worktree", readonly presetId?: string, readonly enabled: boolean, readonly nextRunAt: string, readonly createdBy: { readonly kind: "person" } | { readonly kind: "thread", readonly threadId: string } | { readonly kind: "plugin", readonly pluginId: string, readonly entryId?: string }, readonly createdAt: string, readonly updatedAt: string }> };
|
|
401
405
|
export type SchedulesRunsListInput = { readonly scheduleId: string, readonly limit?: number };
|
|
402
406
|
export type SchedulesRunsListOutput = { readonly runs: ReadonlyArray<{ readonly runId: string, readonly scheduleId: string, readonly projectId: string, readonly scheduledFor: string, readonly outcome: "started" | "skipped" | "failed", readonly threadId: string | null, readonly detail: string | null, readonly at: string, readonly threadStatus: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | null }> };
|
|
403
407
|
export type SchedulesSaveInput = { readonly scheduleId?: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace?: "project" | "worktree", readonly presetId?: string, readonly enabled?: boolean, readonly requestId?: string };
|
|
404
|
-
export type SchedulesSaveOutput = { readonly schedule: { readonly scheduleId: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace: "project" | "worktree", readonly presetId?: string, readonly enabled: boolean, readonly nextRunAt: string, readonly createdBy: { readonly kind: "person" } | { readonly kind: "thread", readonly threadId: string } | { readonly kind: "plugin", readonly pluginId: string }, readonly createdAt: string, readonly updatedAt: string } };
|
|
408
|
+
export type SchedulesSaveOutput = { readonly schedule: { readonly scheduleId: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace: "project" | "worktree", readonly presetId?: string, readonly enabled: boolean, readonly nextRunAt: string, readonly createdBy: { readonly kind: "person" } | { readonly kind: "thread", readonly threadId: string } | { readonly kind: "plugin", readonly pluginId: string, readonly entryId?: string }, readonly createdAt: string, readonly updatedAt: string } };
|
|
405
409
|
export type SchedulesDeleteInput = { readonly scheduleId: string, readonly requestId?: string };
|
|
406
410
|
export type SchedulesDeleteOutput = { readonly scheduleId: string };
|
|
407
411
|
export type SkillsListInput = { readonly threadId?: string };
|
|
@@ -632,6 +636,8 @@ export type ProjectsDeleteInput = { readonly requestId?: string, readonly projec
|
|
|
632
636
|
export type ProjectsDeleteOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
|
|
633
637
|
export type ProjectsReorderInput = { readonly requestId?: string, readonly projectId: string, readonly orderKey: string };
|
|
634
638
|
export type ProjectsReorderOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
|
|
639
|
+
export type ProjectsFoldersConfirmTargetInput = { readonly notificationId: string };
|
|
640
|
+
export type ProjectsFoldersConfirmTargetOutput = { };
|
|
635
641
|
export type ProjectsFoldersDetachInput = { readonly requestId?: string, readonly projectId: string, readonly folderId: string };
|
|
636
642
|
export type ProjectsFoldersDetachOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
|
|
637
643
|
export type ProjectsFoldersRelocateInput = { readonly requestId?: string, readonly projectId: string, readonly folderId: string, readonly path: string };
|
|
@@ -719,16 +725,16 @@ export type ProjectsSharedSpacesLocalStatusSubscribeOutput = { readonly _tag: "s
|
|
|
719
725
|
export type ProjectsMachinesListEncodedOutput = { readonly accountDiscovery?: AccountMachineDiscoveryStatus, readonly items: ReadonlyArray<{ readonly platform?: { readonly os: "darwin" | "linux" | "windows" | "unknown", readonly arch: "arm64" | "x64" | "other", readonly machine?: unknown }, readonly serverVersion?: string, readonly wireProtocolVersion?: number, readonly threadDirectoryIds?: boolean, readonly actions?: ReadonlyArray<{ readonly actionId: string, readonly kind: "install" | "detect" | "sign-in" | "update" | "uninstall" | "health-check" | "restart" | "upgrade" | "command" | "diagnostics" | "project-task", readonly driver?: string, readonly displayName?: string, readonly description?: string, readonly variants?: ReadonlyArray<string>, readonly reversible: boolean }>, readonly autoApproved?: "all" | ReadonlyArray<string>, readonly projectTasks?: ReadonlyArray<{ readonly name: string, readonly description?: string, readonly variants?: ReadonlyArray<string> }>, readonly seatHealth?: SeatHealth, readonly projectFolderAttached?: boolean, readonly environmentId: string, readonly name: string, readonly online: boolean, readonly connection?: "stream" | "polling" | "none", readonly memberUpdateRequired?: true, readonly joinedAt: string, readonly lastSeenAt?: string, readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string }>, readonly defaultModel?: string, readonly readiness?: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly installed?: boolean, readonly auth?: "authenticated" | "unauthenticated" | "unknown", readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly failedAt?: string } }>, readonly providersReportedAt?: string, readonly principalId: string, readonly admittedBy?: "join-code" | "client-broker" | "account", readonly keyChangePending?: boolean, readonly replacementName?: string, readonly previousLastSeenAt?: string, readonly restoredFromRemovalId?: string }>, readonly removedEnvironmentIds?: ReadonlyArray<string>, readonly removedMachines?: ReadonlyArray<ProjectMachineRemoval_1>, readonly excludedEnvironmentIds?: ReadonlyArray<string>, readonly accountMachines?: ReadonlyArray<{ readonly environmentId: string, readonly name: string, readonly online: boolean, readonly connection?: "stream" | "polling" | "none", readonly lastSeenAt?: string, readonly excluded: boolean, readonly seatHealth?: SeatHealth, readonly removed?: boolean, readonly keyChangePending?: boolean, readonly pendingAdmission?: boolean, readonly replacementName?: string }> };
|
|
720
726
|
export type ProjectsMachinesThreadsListEncodedOutput = { readonly items: ReadonlyArray<{ readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: string, readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull_1 }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }, readonly machineId: string }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly historyEpoch?: string, readonly machine: { readonly machineId: string, readonly name: string, readonly online: boolean, readonly serverVersion?: string, readonly wireProtocolVersion?: number } };
|
|
721
727
|
export type ProjectsMachinesThreadsGetEncodedOutput = { readonly thread: { readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: string, readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull_1 }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }, readonly machineId: string }, readonly execution: { readonly threadId: string, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error" } | null, readonly queue: ReadonlyArray<{ readonly intentId: string, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly paused?: true, readonly position: number, readonly waitingForCapacity?: true }>, readonly truncated: boolean, readonly queuePaused: boolean, readonly pendingApprovalCount: number, readonly pendingUserInputCount: number, readonly continuation: "active" | "queued" | "blocked" | "paused" | "idle" }, readonly machine: { readonly machineId: string, readonly name: string, readonly online: boolean, readonly serverVersion?: string, readonly wireProtocolVersion?: number } };
|
|
722
|
-
export type ProjectsMachinesThreadsMessagesListEncodedOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
|
|
728
|
+
export type ProjectsMachinesThreadsMessagesListEncodedOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
|
|
723
729
|
export type ThreadsListEncodedOutput = { readonly items: ReadonlyArray<{ readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: string, readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull_1 }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly historyEpoch?: string };
|
|
724
|
-
export type ThreadsArchivedListEncodedOutput = { readonly snapshotSequence: number, readonly projects: ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>, readonly threads: ReadonlyArray<{ readonly nativeSessionImported?: true, readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | null | undefined, readonly interactionMode?: "default" | "plan" | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly status?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined, readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly continuationCheck?: ThreadContinuationCheckOrNull_1, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }>, readonly updatedAt: string };
|
|
725
|
-
export type ThreadsHistoryEncodedOutput = { readonly snapshotSequence: number, readonly historyEpoch?: string, readonly thread: { readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly actualModel?: { readonly selection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly requested: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly source: "reported" | "echo", readonly turnId?: string | undefined, readonly recordedAt: string } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode?: "default" | "plan" | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly continuationCheck?: ThreadContinuationCheckOrNull_1, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly pendingNotifications?: ReadonlyArray<{ readonly dedupeKey: string, readonly notification: { readonly kind: "child.settled" | "child.failed" | "child.approval" | "child.question" | "child.stopped" | "child.resolved", readonly childThreadId: string, readonly childTitle: string, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string } | { readonly kind: "plugin.notice" | "selfdev.resolved" | "cookie-import.resolved" | "remote.post", readonly sourceThreadId?: string | undefined, readonly sourceTitle?: string | undefined, readonly childThreadId?: string | undefined, readonly childTitle?: string | undefined, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string }, readonly queuedAt: string }> | undefined, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly turnIntents?: ReadonlyArray<{ readonly intentId: string, readonly threadId: string, readonly sequence: number, readonly commandId: string, readonly messageId: string, readonly paused?: boolean, readonly revision?: number, readonly action?: { readonly kind: "steer" | "interrupt", readonly turnId: string, readonly commandId: string, readonly source?: "automatic" } | null, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly legacyModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly runSettings?: { readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly nativeModeId?: string }, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly sourceBlocks?: ReadonlyArray<{ readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly textOffset: number, readonly textLength: number }>, readonly noticesFolded?: true, readonly binding?: { readonly bindingId: string, readonly generation: number, readonly selection: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly compatibility: { readonly match: "native" | "via-adapter" | "unsupported" | "unknown", readonly reasonCode: "native-protocol" | "native-source" | "protocol-conversion" | "wrong-environment" | "resource-missing" | "resource-disabled" | "revision-conflict" | "source-mismatch" | "endpoint-mismatch" | "model-mapping-missing" | "driver-missing" | "driver-unknown" | "driver-identity-mismatch" | "external-endpoint-unsupported" | "protocol-unknown" | "protocol-unsupported" | "auth-unsupported" | "source-ownership-mismatch" | "platform-unsupported" | "version-unknown" | "version-unsupported" | "feature-unsupported" | "feature-unknown" | "capability-validation-failed" | "invalid-options" | "endpoint-invalid", readonly endpointId: string | null, readonly requestedModelId: string | null, readonly effectiveOptions: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly conversion: { readonly id: string, readonly version: string, readonly from: string, readonly to: string, readonly enabled: boolean, readonly capabilities: { readonly text: "supported" | "unsupported" | "unknown", readonly streaming: "supported" | "unsupported" | "unknown", readonly "tool-calls": "supported" | "unsupported" | "unknown", readonly "image-input": "supported" | "unsupported" | "unknown", readonly "audio-input": "supported" | "unsupported" | "unknown", readonly "structured-output": "supported" | "unsupported" | "unknown", readonly reasoning: "supported" | "unsupported" | "unknown" }, readonly limitations: ReadonlyArray<string>, readonly validationRefs: ReadonlyArray<string> } | null, readonly limitations: ReadonlyArray<string>, readonly evidence: ReadonlyArray<{ readonly recordId: string, readonly freshness: "current" | "stale" }>, readonly fingerprint: string | null }, readonly credentialIdentity: { readonly id: string, readonly revision: number } | null, readonly requestedModelId: string, readonly executedModelId: string | null } | null, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly attempt?: { readonly attemptId: string, readonly intentId: string, readonly workerEpoch: number, readonly sourceBindingId: string | null, readonly targetBindingId: string | null, readonly nativeLocator: { readonly sessionId?: string, readonly turnId?: string, readonly generationId?: string } | null, readonly stage: "preparing" | "dispatching" | "running" | "reconciling", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly createdAt: string, readonly updatedAt: string } | null, readonly deliveredTurnId?: string | null, readonly blockedReason?: string | null, readonly replacementIntentId?: string | null, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly scheduledWakes?: ReadonlyArray<{ readonly wakeId: string, readonly threadId: string, readonly dueAt: string, readonly note: string, readonly createdBy: { readonly kind: "thread", readonly threadId: string } | { readonly kind: "person" } | { readonly kind: "plugin", readonly pluginId: string }, readonly state: "scheduled" | "fired" | "cancelled", readonly afterServerUpgrade: boolean, readonly scheduledOnServerVersion: string | null, readonly intentId: string | null, readonly skipped?: true, readonly firedAt: string | null, readonly cancelledAt: string | null, readonly upgrade?: { readonly requestedVersion: string, readonly updateId: string | null, readonly expectsVerdict?: boolean | undefined, readonly outcome: { readonly status: "committed" | "rolled-back" | "failed" | "unknown", readonly targetVersion?: string | undefined, readonly fromVersion: string | null, readonly reason: string | null } | null } | undefined, readonly repeat?: { readonly cron: string, readonly timeZone: string } | undefined, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly turnQueuePaused?: boolean | undefined, readonly turnQueuePauseSource?: "automatic-failure" | "manual" | "unknown" | undefined, readonly acceptedInteractionRequestIds?: ReadonlyArray<string> | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly deletedAt: string | null, readonly messages: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_4 } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string }>, readonly proposedPlans?: ReadonlyArray<{ readonly id: string, readonly turnId: string | null, readonly planMarkdown: string, readonly implementedAt?: string | null | undefined, readonly implementationThreadId?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly activities: ReadonlyArray<{ readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly payload: unknown, readonly turnId: string | null, readonly sequence?: number | undefined, readonly createdAt: string }>, readonly checkpoints: ReadonlyArray<{ readonly turnId: string, readonly checkpointTurnCount: number, readonly checkpointRef: string, readonly status: "ready" | "missing" | "error", readonly files: ReadonlyArray<{ readonly path: string, readonly kind: string, readonly additions: number, readonly deletions: number }>, readonly assistantMessageId: string | null, readonly completedAt: string }>, readonly turnSummaries?: ReadonlyArray<{ readonly turnId: string, readonly userMessageId?: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }>, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> }> | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null }, readonly page?: { readonly beforeCursor: string | null, readonly hasMore: boolean, readonly afterCursor?: string | null, readonly hasNewer?: boolean, readonly boundedHistory?: boolean, readonly history?: { readonly turnIds: ReadonlyArray<string>, readonly messageIds: ReadonlyArray<string>, readonly activityIds: ReadonlyArray<string>, readonly proposedPlanIds: ReadonlyArray<string>, readonly checkpointTurnIds: ReadonlyArray<string>, readonly turnIntentIds: ReadonlyArray<string> }, readonly snapshotSequence: number, readonly threadSequence?: number } | undefined };
|
|
730
|
+
export type ThreadsArchivedListEncodedOutput = { readonly snapshotSequence: number, readonly projects: ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>, readonly threads: ReadonlyArray<{ readonly nativeSessionImported?: true, readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | null | undefined, readonly interactionMode?: "default" | "plan" | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly status?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined, readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly continuationCheck?: ThreadContinuationCheckOrNull_1, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }>, readonly updatedAt: string };
|
|
731
|
+
export type ThreadsHistoryEncodedOutput = { readonly snapshotSequence: number, readonly historyEpoch?: string, readonly thread: { readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly actualModel?: { readonly selection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly requested: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly source: "reported" | "echo", readonly turnId?: string | undefined, readonly recordedAt: string } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode?: "default" | "plan" | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly continuationCheck?: ThreadContinuationCheckOrNull_1, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly pendingNotifications?: ReadonlyArray<{ readonly dedupeKey: string, readonly notification: { readonly kind: "child.settled" | "child.failed" | "child.approval" | "child.question" | "child.stopped" | "child.resolved", readonly childThreadId: string, readonly childTitle: string, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string } | { readonly kind: "plugin.notice" | "selfdev.resolved" | "cookie-import.resolved" | "remote.post", readonly sourceThreadId?: string | undefined, readonly sourceTitle?: string | undefined, readonly childThreadId?: string | undefined, readonly childTitle?: string | undefined, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string }, readonly queuedAt: string }> | undefined, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly turnIntents?: ReadonlyArray<{ readonly intentId: string, readonly threadId: string, readonly sequence: number, readonly commandId: string, readonly messageId: string, readonly paused?: boolean, readonly revision?: number, readonly action?: { readonly kind: "steer" | "interrupt", readonly turnId: string, readonly commandId: string, readonly source?: "automatic" } | null, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly legacyModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly runSettings?: { readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly nativeModeId?: string }, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly sourceBlocks?: ReadonlyArray<{ readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly textOffset: number, readonly textLength: number }>, readonly noticesFolded?: true, readonly binding?: { readonly bindingId: string, readonly generation: number, readonly selection: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly compatibility: { readonly match: "native" | "via-adapter" | "unsupported" | "unknown", readonly reasonCode: "native-protocol" | "native-source" | "protocol-conversion" | "wrong-environment" | "resource-missing" | "resource-disabled" | "revision-conflict" | "source-mismatch" | "endpoint-mismatch" | "model-mapping-missing" | "driver-missing" | "driver-unknown" | "driver-identity-mismatch" | "external-endpoint-unsupported" | "protocol-unknown" | "protocol-unsupported" | "auth-unsupported" | "source-ownership-mismatch" | "platform-unsupported" | "version-unknown" | "version-unsupported" | "feature-unsupported" | "feature-unknown" | "capability-validation-failed" | "invalid-options" | "endpoint-invalid", readonly endpointId: string | null, readonly requestedModelId: string | null, readonly effectiveOptions: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly conversion: { readonly id: string, readonly version: string, readonly from: string, readonly to: string, readonly enabled: boolean, readonly capabilities: { readonly text: "supported" | "unsupported" | "unknown", readonly streaming: "supported" | "unsupported" | "unknown", readonly "tool-calls": "supported" | "unsupported" | "unknown", readonly "image-input": "supported" | "unsupported" | "unknown", readonly "audio-input": "supported" | "unsupported" | "unknown", readonly "structured-output": "supported" | "unsupported" | "unknown", readonly reasoning: "supported" | "unsupported" | "unknown" }, readonly limitations: ReadonlyArray<string>, readonly validationRefs: ReadonlyArray<string> } | null, readonly limitations: ReadonlyArray<string>, readonly evidence: ReadonlyArray<{ readonly recordId: string, readonly freshness: "current" | "stale" }>, readonly fingerprint: string | null }, readonly credentialIdentity: { readonly id: string, readonly revision: number } | null, readonly requestedModelId: string, readonly executedModelId: string | null } | null, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly attempt?: { readonly attemptId: string, readonly intentId: string, readonly workerEpoch: number, readonly sourceBindingId: string | null, readonly targetBindingId: string | null, readonly nativeLocator: { readonly sessionId?: string, readonly turnId?: string, readonly generationId?: string } | null, readonly stage: "preparing" | "dispatching" | "running" | "reconciling", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly createdAt: string, readonly updatedAt: string } | null, readonly deliveredTurnId?: string | null, readonly blockedReason?: string | null, readonly replacementIntentId?: string | null, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly scheduledWakes?: ReadonlyArray<{ readonly wakeId: string, readonly threadId: string, readonly dueAt: string, readonly note: string, readonly createdBy: { readonly kind: "thread", readonly threadId: string } | { readonly kind: "person" } | { readonly kind: "plugin", readonly pluginId: string }, readonly state: "scheduled" | "fired" | "cancelled", readonly afterServerUpgrade: boolean, readonly scheduledOnServerVersion: string | null, readonly intentId: string | null, readonly skipped?: true, readonly firedAt: string | null, readonly cancelledAt: string | null, readonly upgrade?: { readonly requestedVersion: string, readonly updateId: string | null, readonly expectsVerdict?: boolean | undefined, readonly outcome: { readonly status: "committed" | "rolled-back" | "failed" | "unknown", readonly targetVersion?: string | undefined, readonly fromVersion: string | null, readonly reason: string | null } | null } | undefined, readonly repeat?: { readonly cron: string, readonly timeZone: string } | undefined, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly turnQueuePaused?: boolean | undefined, readonly turnQueuePauseSource?: "automatic-failure" | "manual" | "unknown" | undefined, readonly acceptedInteractionRequestIds?: ReadonlyArray<string> | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly deletedAt: string | null, readonly messages: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_4 } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string }>, readonly proposedPlans?: ReadonlyArray<{ readonly id: string, readonly turnId: string | null, readonly planMarkdown: string, readonly implementedAt?: string | null | undefined, readonly implementationThreadId?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly activities: ReadonlyArray<{ readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly payload: unknown, readonly turnId: string | null, readonly sequence?: number | undefined, readonly createdAt: string }>, readonly checkpoints: ReadonlyArray<{ readonly turnId: string, readonly checkpointTurnCount: number, readonly checkpointRef: string, readonly status: "ready" | "missing" | "error", readonly files: ReadonlyArray<{ readonly path: string, readonly kind: string, readonly additions: number, readonly deletions: number }>, readonly assistantMessageId: string | null, readonly completedAt: string }>, readonly turnSummaries?: ReadonlyArray<{ readonly turnId: string, readonly userMessageId?: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }>, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> }> | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null }, readonly page?: { readonly beforeCursor: string | null, readonly hasMore: boolean, readonly afterCursor?: string | null, readonly hasNewer?: boolean, readonly boundedHistory?: boolean, readonly history?: { readonly turnIds: ReadonlyArray<string>, readonly messageIds: ReadonlyArray<string>, readonly activityIds: ReadonlyArray<string>, readonly proposedPlanIds: ReadonlyArray<string>, readonly checkpointTurnIds: ReadonlyArray<string>, readonly turnIntentIds: ReadonlyArray<string> }, readonly snapshotSequence: number, readonly threadSequence?: number } | undefined };
|
|
726
732
|
export type ThreadsExecutionGetEncodedOutput = { readonly threadId: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode?: "default" | "plan" | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly origin: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string } | null, readonly session: { readonly activeTurnId: string | null, readonly lastError: string | null, readonly updatedAt: string, readonly endReason?: "server-restart", readonly failureCategory?: string, readonly status: string, readonly providerInstanceId: string | null } | null, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly turnIntents: ReadonlyArray<{ readonly intentId: string, readonly threadId: string, readonly sequence: number, readonly commandId: string, readonly messageId: string, readonly action?: { readonly kind: "steer" | "interrupt", readonly turnId: string, readonly commandId: string, readonly source?: "automatic" } | null, readonly deliveredTurnId?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly revision: number, readonly turn: { readonly turnId: string | null, readonly userMessageId: string, readonly state: "pending" | "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> } | null, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly attempt: { readonly attemptId: string, readonly workerEpoch: number, readonly sourceBindingId: string | null, readonly targetBindingId: string | null, readonly nativeLocator: { readonly sessionId?: string, readonly turnId?: string, readonly generationId?: string } | null, readonly stage: "preparing" | "dispatching" | "running" | "reconciling", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly createdAt: string, readonly updatedAt: string } | null, readonly blockedReason: string | null, readonly replacementIntentId: string | null }>, readonly queuePaused: boolean, readonly providerProcessLive: boolean, readonly hasPendingApprovals: boolean, readonly hasPendingUserInput: boolean, readonly pendingApprovalCount: number, readonly pendingUserInputCount: number, readonly turnStartCount: number } | null;
|
|
727
733
|
export type ThreadsMessagesGetEncodedOutput = { readonly messageId: string, readonly role: string, readonly text: string, readonly turnId: string | null, readonly createdAt: string, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly attachments: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_4 } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> } | null;
|
|
728
734
|
export type ThreadsGetEncodedOutput = { readonly nativeSessionImported?: true, readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | null | undefined, readonly interactionMode?: "default" | "plan" | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly status?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined, readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly continuationCheck?: ThreadContinuationCheckOrNull_1, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined };
|
|
729
|
-
export type ThreadsMessagesListEncodedOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
|
|
730
|
-
export type ProjectsListEncodedOutput = ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>;
|
|
731
|
-
export type ProjectsGetEncodedOutput = { readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined };
|
|
735
|
+
export type ThreadsMessagesListEncodedOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
|
|
736
|
+
export type ProjectsListEncodedOutput = ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>;
|
|
737
|
+
export type ProjectsGetEncodedOutput = { readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined };
|
|
732
738
|
export type MachineSettingsEditorsGetEncodedOutput = { readonly availableEditors: ReadonlyArray<"file-manager">, readonly editorDiscovery?: unknown, readonly shellRevealInFileManager?: boolean, readonly shellRevealInFileManagerKind?: "finder" | "file-explorer" | "files" };
|
|
733
739
|
export type MachineSettingsProvidersGetEncodedOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands?: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }> | undefined, readonly skills?: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }> | undefined, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate?: boolean | undefined, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly userCode: string, readonly verificationUrl: string } } }> };
|
|
734
740
|
export type MachineSettingsGetEncodedOutput = { readonly enableProviderUpdateChecks?: boolean | undefined, readonly enableAgentBrowserAccess?: boolean | undefined, readonly browserRetentionBudgetEnabled?: boolean | undefined, readonly machineBrowserDefaultViewport?: { readonly _tag: "fill" } | { readonly _tag: "freeform", readonly width: number, readonly height: number } | { readonly _tag: "preset", readonly width: number, readonly height: number, readonly presetId: "iphone-se" | "iphone-xr" | "iphone-12-pro" | "iphone-14-pro-max" | "pixel-7" | "samsung-galaxy-s8-plus" | "samsung-galaxy-s20-ultra" | "ipad-mini" | "ipad-air" | "ipad-pro" | "surface-pro-7" | "surface-duo" | "galaxy-z-fold-5" | "asus-zenbook-fold" | "samsung-galaxy-a51-71" | "nest-hub" | "nest-hub-max" | "desktop-1920x1080" | "desktop-1440x900" | "laptop-1366x768" | "laptop-1280x800" | "ipad-pro-11" | "iphone-15-pro" | "pixel-8" | "galaxy-s24" }, readonly machineBrowserDefaultZoomFactor?: 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5, readonly machineBrowserDefaultAppearance?: "system" | "light" | "dark", readonly enableAgentThreadDelegation?: boolean | undefined, readonly enableAgentSelfDevelopment?: boolean | undefined, readonly machineTaskConfirmation?: { readonly actionIds: ReadonlyArray<string>, readonly projectIds: ReadonlyArray<string>, readonly remoteProjectTrust?: ReadonlyArray<{ readonly homeEnvironmentId: string, readonly projectId: string }> } | undefined, readonly enableHeapSnapshot?: boolean | undefined, readonly agentThreadDelegationMaxDepth?: number | undefined, readonly pluginUpdateCheck?: boolean | undefined, readonly backgroundActivityProfile?: "balanced" | "performance" | "battery-saver" | undefined, readonly environmentIcon?: unknown | undefined, readonly defaultRuntimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly addProjectBaseDirectory?: string | undefined, readonly textGenerationModelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null | undefined, readonly sourceControlWritingStyle?: { readonly mode?: "repo_conventions" | "conventional_commits" | "custom" | undefined, readonly customInstructions?: string | undefined, readonly followChangeRequestTemplates?: boolean | undefined } | undefined, readonly sourceControlWriterModelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null | undefined, readonly dismissedDiscoveredDrivers?: ReadonlyArray<string> | undefined, readonly defaultProxyId?: string | null | undefined, readonly wallpaper?: { readonly base: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number }, readonly sidebar: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null, readonly workspace: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null, readonly chat: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null } | undefined, readonly requireManualPairingForNewDevices?: boolean | undefined, readonly automaticGitFetchInterval: number, readonly providerHealthRefreshInterval: number, readonly backgroundActivity: { readonly schemaVersion?: 1 | undefined, readonly profile?: "balanced" | "performance" | "battery-saver" | "custom" | undefined, readonly baseProfile?: "balanced" | "performance" | "battery-saver", readonly overrides: { readonly automaticGitFetchInterval?: number, readonly providerHealthRefreshInterval?: number, readonly hostPowerMonitorActiveInterval?: number, readonly hostPowerMonitorIdleInterval?: number, readonly idleClientTtl?: number, readonly pauseWhenHostLocked?: boolean, readonly pauseWhenHostLowPower?: boolean, readonly pauseWhenClientLowPower?: boolean, readonly pauseWhenOnBattery?: boolean } }, readonly npmRegistry: string, readonly proxies: { readonly [x: string]: { readonly displayName?: string | undefined, readonly protocol: "http" | "https", readonly host: string, readonly port: number, readonly bypass?: string } }, readonly plugins: { readonly mcpServers: { readonly [x: string]: { readonly name: string, readonly transport: { readonly type: "stdio", readonly command: string, readonly argCount: number, readonly envNames: ReadonlyArray<string> } | { readonly type: "http", readonly url: string, readonly headerNames: ReadonlyArray<string> } | { readonly type: "sse", readonly url: string, readonly headerNames: ReadonlyArray<string> }, readonly enabled?: boolean | undefined, readonly providers?: { readonly [x: string]: boolean } | undefined, readonly catalogId?: string | undefined, readonly oauth?: { readonly status: "none" | "required" | "authorized" } | undefined, readonly addedBy?: { readonly kind: "plugin", readonly pluginId: string } | undefined } }, readonly skills: { readonly [x: string]: { readonly name: string, readonly source: { readonly kind: "inline" } | { readonly kind: "builtin", readonly id: string } | { readonly kind: "catalog", readonly catalogId: string, readonly version: string }, readonly enabled?: boolean | undefined, readonly modelInvocable?: boolean | undefined, readonly userInvocable?: boolean | undefined, readonly providers?: { readonly [x: string]: boolean } | undefined } } }, readonly observability: { readonly otlpTracesUrl: string, readonly otlpMetricsUrl: string, readonly otlpLogsUrl: string, readonly fullTraceUntil?: number } };
|
|
@@ -737,8 +743,8 @@ export type MachineSettingsRuntimeHealthGetEncodedOutput = { readonly revision:
|
|
|
737
743
|
export type ProvidersSelectionResolveEncodedOutput = { readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly hints?: ReadonlyArray<{ readonly kind: "option-unsupported", readonly model: string | null, readonly optionId: string, readonly stored: string | boolean, readonly effective?: string | boolean } | { readonly kind: "effort-moved", readonly model: string | null, readonly optionId: string, readonly from: string, readonly to: string } | { readonly kind: "model-replaced", readonly from: string, readonly to: string | null }> };
|
|
738
744
|
export type ProvidersSessionsListEncodedOutput = { readonly sessions: ReadonlyArray<{ readonly threadId: string, readonly driver: string, readonly instanceId: string, readonly resumeCursor: unknown | null, readonly status: unknown, readonly lastSeenAt: string }>, readonly nextCursor: string | null };
|
|
739
745
|
export type ProjectsConfigGetEncodedOutput = { readonly actions?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly tasks?: { readonly [x: string]: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly description?: string, readonly timeoutSeconds?: number, readonly variants?: { readonly [x: string]: ReadonlyArray<string> } } }, readonly mcpServers?: { readonly [x: string]: { readonly name: string, readonly transport: { readonly type: "stdio", readonly command: string, readonly args?: ReadonlyArray<string> | undefined, readonly envNames: ReadonlyArray<string> } | { readonly type: "http", readonly url: string, readonly headerNames: ReadonlyArray<string> } | { readonly type: "sse", readonly url: string, readonly headerNames: ReadonlyArray<string> }, readonly enabled?: boolean | undefined, readonly providers?: { readonly [x: string]: boolean } | undefined, readonly catalogId?: string | undefined, readonly oauth?: { readonly status: "none" | "required" | "authorized" } | undefined, readonly addedBy?: { readonly kind: "plugin", readonly pluginId: string } | undefined, readonly missingSecrets?: ReadonlyArray<string> } }, readonly skills?: { readonly [x: string]: { readonly name: string, readonly source: { readonly kind: "inline", readonly skillMd: string } | { readonly kind: "builtin", readonly id: string } | { readonly kind: "catalog", readonly catalogId: string, readonly version: string }, readonly enabled?: boolean | undefined, readonly modelInvocable?: boolean | undefined, readonly userInvocable?: boolean | undefined, readonly providers?: { readonly [x: string]: boolean } | undefined } }, readonly projectId: string, readonly revision: number, readonly source: "home" | "copy", readonly homeEnvironmentId?: string, readonly syncedAt?: string, readonly homeOutdated?: true };
|
|
740
|
-
export type PluginsInstalledListEncodedOutput = { readonly plugins: ReadonlyArray<{ readonly signIns?: ReadonlyArray<{ readonly name: string, readonly label?: string, readonly labelKey?: string, readonly state: string, readonly account?: string, readonly kind: string, readonly redirectUri?: string, readonly attempt?: { readonly attemptId: string, readonly state: string, readonly error?: string } }>, readonly publicServices?: ReadonlyArray<{ readonly service: string, readonly publicPath: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> | undefined, readonly slashCommands?: ReadonlyArray<{ readonly name: string, readonly kind: "prompt" | "action", readonly description?: string | undefined, readonly argumentHint?: string | undefined, readonly translations?: { readonly [x: string]: { readonly description?: string | undefined, readonly argumentHint?: string | undefined } } | undefined }> | undefined, readonly entryId: string, readonly revision?: string | undefined, readonly pluginId: string, readonly presentation?: { readonly displayName: string, readonly description?: string | undefined, readonly translations?: { readonly [x: string]: { readonly displayName?: string | undefined, readonly description?: string | undefined } } | undefined, readonly author?: string | undefined, readonly homepage?: string | undefined, readonly icon?: string | undefined } | undefined, readonly origin: "builtin" | "package" | "directory" | "thread", readonly location: string | null, readonly version: string | null, readonly packageName?: string | null | undefined, readonly loadedAt?: string | undefined, readonly configRevision?: number | undefined, readonly uiDebug?: { readonly enabled: boolean, readonly phase: "idle" | "building" | "error", readonly error: string | null } | undefined, readonly uiRevision?: string | undefined, readonly uiDigest?: string | undefined, readonly assetDigests?: { readonly [x: string]: string } | undefined, readonly proxyIds?: ReadonlyArray<string> | undefined, readonly state: "loaded" | "failed" | "stopped" | "disabled", readonly contributions: ReadonlyArray<{ readonly kind: "signIn" | "toolkit" | "reactor" | "settingsCard" | "modelPreset" | "command" | "cli" | "interval" | "executor" | "protocolConversion" | "skill" | "filePreviewConverter" | "systemPrompt.section" | "systemPrompt.context" | "messages.beforeSend" | "slashCommand" | "tools.guard" | "ui.seats" | "agentPresets" | "sessionProjections" | "continuation", readonly name: string, readonly role?: string }>, readonly failure: { readonly phase: string, readonly message: string, readonly kind?: string | undefined } | null, readonly threadId: string | null, readonly runtimeStats?: { readonly eventsHandled: number, readonly toolCalls: number, readonly processesSpawned?: number | undefined, readonly lastEventAt: string | null } | undefined, readonly removable?: boolean | undefined, readonly permissions?: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string
|
|
741
|
-
export type SchedulesListEncodedOutput = { readonly schedules: ReadonlyArray<{ readonly scheduleId: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace: "project" | "worktree", readonly presetId?: string, readonly enabled: boolean, readonly nextRunAt: string, readonly createdBy: { readonly kind: "person" } | { readonly kind: "thread", readonly threadId: string } | { readonly kind: "plugin", readonly pluginId: string }, readonly createdAt: string, readonly updatedAt: string }> };
|
|
746
|
+
export type PluginsInstalledListEncodedOutput = { readonly plugins: ReadonlyArray<{ readonly canonicalMachineEntryId?: string, readonly signIns?: ReadonlyArray<{ readonly name: string, readonly label?: string, readonly labelKey?: string, readonly state: string, readonly account?: string, readonly kind: string, readonly redirectUri?: string, readonly attempt?: { readonly attemptId: string, readonly state: string, readonly error?: string } }>, readonly publicServices?: ReadonlyArray<{ readonly service: string, readonly publicPath: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> | undefined, readonly slashCommands?: ReadonlyArray<{ readonly name: string, readonly kind: "prompt" | "action", readonly description?: string | undefined, readonly argumentHint?: string | undefined, readonly translations?: { readonly [x: string]: { readonly description?: string | undefined, readonly argumentHint?: string | undefined } } | undefined }> | undefined, readonly entryId: string, readonly revision?: string | undefined, readonly pluginId: string, readonly presentation?: { readonly displayName: string, readonly description?: string | undefined, readonly translations?: { readonly [x: string]: { readonly displayName?: string | undefined, readonly description?: string | undefined } } | undefined, readonly author?: string | undefined, readonly homepage?: string | undefined, readonly icon?: string | undefined } | undefined, readonly origin: "builtin" | "package" | "directory" | "project" | "thread", readonly location: string | null, readonly version: string | null, readonly packageName?: string | null | undefined, readonly loadedAt?: string | undefined, readonly configRevision?: number | undefined, readonly uiDebug?: { readonly enabled: boolean, readonly phase: "idle" | "building" | "error", readonly error: string | null } | undefined, readonly uiRevision?: string | undefined, readonly uiDigest?: string | undefined, readonly assetDigests?: { readonly [x: string]: string } | undefined, readonly proxyIds?: ReadonlyArray<string> | undefined, readonly state: "loaded" | "failed" | "stopped" | "disabled", readonly contributions: ReadonlyArray<{ readonly kind: "signIn" | "toolkit" | "reactor" | "settingsCard" | "modelPreset" | "command" | "cli" | "interval" | "executor" | "protocolConversion" | "skill" | "filePreviewConverter" | "systemPrompt.section" | "systemPrompt.context" | "messages.beforeSend" | "slashCommand" | "tools.guard" | "ui.seats" | "agentPresets" | "sessionProjections" | "continuation", readonly name: string, readonly role?: string }>, readonly failure: { readonly phase: string, readonly message: string, readonly kind?: string | undefined } | null, readonly threadId: string | null, readonly projectId?: string | null | undefined, readonly projectPlugin?: { readonly needsApproval: boolean, readonly conflictWithMachine: boolean, readonly conflictChoice?: "project" | "machine" | undefined } | undefined, readonly runtimeStats?: { readonly eventsHandled: number, readonly toolCalls: number, readonly processesSpawned?: number | undefined, readonly lastEventAt: string | null } | undefined, readonly removable?: boolean | undefined, readonly permissions?: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: ReadonlyArray<string> } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<string> } | { readonly kind: string }> | undefined, readonly ui?: { readonly assetsPath: string, readonly entry?: string | undefined, readonly pages?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined, readonly chrome?: "host" | "own" | undefined, readonly placements?: ReadonlyArray<"web-pages" | "mobile-home" | "mobile-pages"> | undefined }> | undefined, readonly panels?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined }> | undefined, readonly providerSettings?: ReadonlyArray<{ readonly id: string, readonly driverKind: string, readonly ownedFields?: { readonly add?: ReadonlyArray<string> | undefined, readonly edit?: ReadonlyArray<string> | undefined } | undefined, readonly ownedEnvironment?: ReadonlyArray<string> | undefined, readonly genericFields?: "inline" | "collapsed" | undefined }> | undefined, readonly threadAnnotations?: { readonly command: string } | undefined, readonly appearance?: { readonly name: string, readonly wallpaper: string, readonly dimLight?: number | undefined, readonly dimDark?: number | undefined, readonly blur?: number | undefined } | undefined, readonly toolViews?: ReadonlyArray<{ readonly tool: string, readonly view?: string | undefined, readonly placement?: "inline" | "deliverable" | undefined, readonly titleKey?: string | undefined, readonly titleBy?: { readonly arg: string, readonly titleKeys: { readonly [x: string]: string } } | undefined, readonly summary?: ReadonlyArray<string> | undefined }> | undefined, readonly chatWatchers?: ReadonlyArray<string> | undefined, readonly teamViews?: ReadonlyArray<{ readonly key: string, readonly scopes: ReadonlyArray<"team" | "project">, readonly titleKey: string, readonly icon?: string | undefined, readonly order?: number | undefined }> | undefined, readonly development?: { readonly command: string, readonly args: ReadonlyArray<string>, readonly watch: ReadonlyArray<string> } | undefined } | undefined, readonly executors?: ReadonlyArray<unknown> | undefined }>, readonly nextCursor?: string | null };
|
|
747
|
+
export type SchedulesListEncodedOutput = { readonly schedules: ReadonlyArray<{ readonly scheduleId: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace: "project" | "worktree", readonly presetId?: string, readonly enabled: boolean, readonly nextRunAt: string, readonly createdBy: { readonly kind: "person" } | { readonly kind: "thread", readonly threadId: string } | { readonly kind: "plugin", readonly pluginId: string, readonly entryId?: string }, readonly createdAt: string, readonly updatedAt: string }> };
|
|
742
748
|
export type ThreadsArtifactsListEncodedOutput = { readonly items: ReadonlyArray<{ readonly attachmentId: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly title?: string | undefined, readonly note?: string | undefined, readonly sourcePath: string, readonly turnId: string | null, readonly messageId: string, readonly deliveredAt: string, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly homeSync?: "delivered" | "pending" | "needs-attention" | "refused" }>, readonly nextCursor: string | null };
|
|
743
749
|
export type MembersListEncodedOutput = { readonly items: ReadonlyArray<{ readonly memberId: string, readonly projectId: string, readonly kind: "human" | "agent", readonly name: string, readonly title: string, readonly responsibility: string, readonly avatar: { readonly pattern: string, readonly color: string } | null, readonly identity: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | null, readonly agent: { readonly environmentId: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly threadId?: string } | null, readonly workInstructionsRevision: number | null, readonly version: number, readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly updatedAt: string, readonly removedAt: string | null, readonly trial?: { readonly outcome: "passed" | "failed" | "skipped" | "not-run", readonly at: string, readonly by: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly summary?: string } }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
|
|
744
750
|
export type MembersGetEncodedOutput = { readonly member: { readonly memberId: string, readonly projectId: string, readonly kind: "human" | "agent", readonly name: string, readonly title: string, readonly responsibility: string, readonly avatar: { readonly pattern: string, readonly color: string } | null, readonly identity: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | null, readonly agent: { readonly environmentId: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly threadId?: string } | null, readonly workInstructionsRevision: number | null, readonly version: number, readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly updatedAt: string, readonly removedAt: string | null, readonly trial?: { readonly outcome: "passed" | "failed" | "skipped" | "not-run", readonly at: string, readonly by: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly summary?: string }, readonly workInstructions: string | null, readonly workInstructionsWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }, readonly snapshotSequence: number };
|
|
@@ -1259,6 +1265,8 @@ export interface PluginDataPorts {
|
|
|
1259
1265
|
/** Data capability: projects.reorder. Plugin admission: {"require":{"kind":"commands.dispatch","commands":["project.reorder"]}} */
|
|
1260
1266
|
readonly reorder: (input: ProjectsReorderInput) => Promise<ProjectsReorderOutput>;
|
|
1261
1267
|
readonly folders: {
|
|
1268
|
+
/** Data capability: projects.folders.confirmTarget. Plugin admission: {"restricted":"operator-only"} */
|
|
1269
|
+
readonly confirmTarget: (input: ProjectsFoldersConfirmTargetInput) => Promise<ProjectsFoldersConfirmTargetOutput>;
|
|
1262
1270
|
/** Data capability: projects.folders.detach. Plugin admission: {"require":{"kind":"commands.dispatch","commands":["project.folder.detach"]}} */
|
|
1263
1271
|
readonly detach: (input: ProjectsFoldersDetachInput) => Promise<ProjectsFoldersDetachOutput>;
|
|
1264
1272
|
/** Data capability: projects.folders.relocate. Plugin admission: {"require":{"kind":"commands.dispatch","commands":["project.folder.relocate"]}} */
|
|
@@ -1424,9 +1432,15 @@ export interface PluginDataPorts {
|
|
|
1424
1432
|
/** Data capability: plugins.installed.setEnabled. Plugin admission: {"require":{"kind":"commands.dispatch","commands":["plugins.installed.setEnabled"]}} */
|
|
1425
1433
|
readonly setEnabled: (input: PluginsInstalledSetEnabledInput) => Promise<PluginsInstalledSetEnabledOutput>;
|
|
1426
1434
|
};
|
|
1435
|
+
readonly project: {
|
|
1436
|
+
/** Data capability: plugins.project.installMachine. Plugin admission: {"restricted":"not-for-plugins"} */
|
|
1437
|
+
readonly installMachine: (input: PluginsProjectInstallMachineInput) => Promise<PluginsProjectInstallMachineOutput>;
|
|
1438
|
+
/** Data capability: plugins.project.scan. Plugin admission: {"restricted":"not-for-plugins"} */
|
|
1439
|
+
readonly scan: (input: PluginsProjectScanInput) => Promise<PluginsProjectScanOutput>;
|
|
1440
|
+
};
|
|
1427
1441
|
readonly sessionProjections: {
|
|
1428
1442
|
/** Data capability: plugins.sessionProjections.get. Plugin admission: {"require":{"kind":"sessionProjection"},"policy":"session-projection"} */
|
|
1429
|
-
readonly get: (input: Omit<PluginsSessionProjectionsGetInput, "pluginId">) => Promise<PluginsSessionProjectionsGetOutput>;
|
|
1443
|
+
readonly get: (input: Omit<PluginsSessionProjectionsGetInput, "pluginId" | "entryId">) => Promise<PluginsSessionProjectionsGetOutput>;
|
|
1430
1444
|
/** Data capability: plugins.sessionProjections.set. Plugin admission: {"require":{"kind":"sessionProjection"},"policy":"session-projection"} */
|
|
1431
1445
|
readonly set: (input: PluginsSessionProjectionsSetInput) => Promise<PluginsSessionProjectionsSetOutput>;
|
|
1432
1446
|
};
|
|
@@ -1841,7 +1855,7 @@ export interface PluginUiDataReads {
|
|
|
1841
1855
|
readonly "providers.accounts.probe": { readonly input: ProvidersAccountsProbeInput; readonly output: ProvidersAccountsProbeOutput };
|
|
1842
1856
|
readonly "projects.config.get": { readonly input: ProjectsConfigGetInput; readonly output: ProjectsConfigGetEncodedOutput };
|
|
1843
1857
|
readonly "plugins.installed.list": { readonly input: PluginsInstalledListInput; readonly output: PluginsInstalledListEncodedOutput };
|
|
1844
|
-
readonly "plugins.sessionProjections.get": { readonly input: Omit<PluginsSessionProjectionsGetInput, "pluginId">; readonly output: PluginsSessionProjectionsGetOutput };
|
|
1858
|
+
readonly "plugins.sessionProjections.get": { readonly input: Omit<PluginsSessionProjectionsGetInput, "pluginId" | "entryId">; readonly output: PluginsSessionProjectionsGetOutput };
|
|
1845
1859
|
readonly "plugins.notifications.list": { readonly input: PluginsNotificationsListInput; readonly output: PluginsNotificationsListOutput };
|
|
1846
1860
|
readonly "plugins.settingsCards.list": { readonly input: PluginsSettingsCardsListInput; readonly output: PluginsSettingsCardsListOutput };
|
|
1847
1861
|
readonly "plugins.skills.list": { readonly input: PluginsSkillsListInput; readonly output: PluginsSkillsListOutput };
|