@ycodium-ai/plugin-api 0.2.6182 → 0.2.6212

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.
Files changed (36) hide show
  1. package/README.md +5 -1
  2. package/dist/_private/ycodium-composer-tokens/composerLogic.d.ts +1 -1
  3. package/dist/_private/ycodium-composer-tokens/composerTrigger.d.ts +3 -4
  4. package/dist/_private/ycodium-composer-tokens/composerTrigger.js +2 -4
  5. package/dist/_private/ycodium-composer-tokens/providerSkills.d.ts +25 -3
  6. package/dist/_private/ycodium-composer-tokens/providerSkills.js +45 -3
  7. package/dist/_private/ycodium-composer-tokens/slashMenu.d.ts +20 -11
  8. package/dist/_private/ycodium-composer-tokens/slashMenu.js +24 -21
  9. package/dist/_private/ycodium-executor-common/eventTypes.d.ts +1 -1
  10. package/dist/composer.d.ts +1 -1
  11. package/dist/composer.d.ts.map +1 -1
  12. package/dist/composer.js +1 -1
  13. package/dist/composer.js.map +1 -1
  14. package/dist/conversationComposerEnvironment.d.ts +2 -0
  15. package/dist/conversationComposerEnvironment.d.ts.map +1 -1
  16. package/dist/conversationSkills.d.ts +5 -0
  17. package/dist/conversationSkills.d.ts.map +1 -1
  18. package/dist/conversationTrajectory.d.ts +3 -0
  19. package/dist/conversationTrajectory.d.ts.map +1 -1
  20. package/dist/dataPorts.gen.d.ts +68 -6
  21. package/dist/dataPorts.gen.d.ts.map +1 -1
  22. package/dist/source/_private/ycodium-composer-tokens/composerLogic.ts +1 -1
  23. package/dist/source/_private/ycodium-composer-tokens/composerTrigger.ts +3 -5
  24. package/dist/source/_private/ycodium-composer-tokens/providerSkills.ts +83 -7
  25. package/dist/source/_private/ycodium-composer-tokens/slashMenu.ts +52 -26
  26. package/dist/source/_private/ycodium-executor-common/eventTypes.ts +1 -0
  27. package/dist/source/composer.ts +4 -0
  28. package/dist/source/conversationComposerEnvironment.ts +2 -0
  29. package/dist/source/conversationSkills.ts +6 -0
  30. package/dist/source/conversationTrajectory.ts +4 -0
  31. package/dist/source/dataPorts.gen.ts +26 -26
  32. package/dist/source/version.ts +2 -2
  33. package/dist/version.d.ts +2 -2
  34. package/dist/version.d.ts.map +1 -1
  35. package/dist/version.js +1 -1
  36. package/package.json +4 -4
@@ -165,19 +165,19 @@ export type MachineSettingsMachineTasksApproveOutput = { readonly approval: stri
165
165
  export type ProjectsMachinesActionsListInput = { readonly projectId: string, readonly environmentId: string };
166
166
  export type ProjectsMachinesActionsListOutput = { readonly items: 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 unavailable?: ReadonlyArray<{ readonly actionPattern: "project.*", readonly reason: "no-project-folder" | "machine-needs-update" }> };
167
167
  export type ProjectsMachinesThreadsListInput = { readonly collection?: "page" | "all", readonly include?: ReadonlyArray<"summary" | "runtime">, 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, readonly projectId: string, readonly machineId: string };
168
- export type ProjectsMachinesThreadsListOutput = { 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 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 } };
168
+ export type ProjectsMachinesThreadsListOutput = { 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 dispatchHold?: boolean | undefined, 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 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 } };
169
169
  export type ProjectsMachinesThreadsGetInput = { readonly projectId: string, readonly machineId: string, readonly threadId: string };
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 } };
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 dispatchHold?: boolean | undefined, 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
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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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
- 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 };
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 dispatchHold?: boolean | undefined, 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
- 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" };
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 dispatchHold?: boolean | undefined, 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 dispatchHold?: boolean | undefined, 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 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 };
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 dispatchHold?: boolean | undefined, 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 initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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" | "attention.snoozed", readonly sourceThreadId?: string | undefined, readonly sourceTitle?: string | undefined, readonly childThreadId?: string | undefined, readonly childTitle?: string | undefined, readonly remotePost?: { readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly textOffset: number, readonly textLength: number }>, readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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" | "attention.snoozed", readonly sourceThreadId?: string | undefined, readonly sourceTitle?: string | undefined, readonly childThreadId?: string | undefined, readonly childTitle?: string | undefined, readonly remotePost?: { readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly textOffset: number, readonly textLength: number }>, readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 dispatchHold?: boolean | undefined, 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 };
@@ -219,7 +219,7 @@ export type ThreadsDecisionsRequestOutput = { readonly requestId: string };
219
219
  export type ThreadsDecisionsCancelInput = { readonly requestId: string, readonly summary?: string };
220
220
  export type ThreadsDecisionsCancelOutput = { };
221
221
  export type ThreadsGetInput = { readonly threadId: string };
222
- export type ThreadsGetOutput = { 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 };
222
+ export type ThreadsGetOutput = { 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 dispatchHold?: boolean | undefined, 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 };
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 };
@@ -259,15 +259,15 @@ export type ApprovalsPendingListOutput = ReadonlyArray<{ readonly recipient?: {
259
259
  export type MachineSettingsEditorsGetInput = { };
260
260
  export type MachineSettingsEditorsGetOutput = { readonly availableEditors: ReadonlyArray<"file-manager">, readonly editorDiscovery?: "pending" | undefined, readonly shellRevealInFileManager?: boolean, readonly shellRevealInFileManagerKind?: "finder" | "file-explorer" | "files" };
261
261
  export type MachineSettingsProvidersGetInput = { };
262
- export type MachineSettingsProvidersGetOutput = { 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 }>, 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 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, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", 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 operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
262
+ export type MachineSettingsProvidersGetOutput = { 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 }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly originScope?: "repo" | "project" | "global" | "builtin" | undefined, readonly originLabel?: string | undefined, readonly overridesGlobal?: boolean | undefined, readonly summary?: { readonly [x: string]: string } | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | 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, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", 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 operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
263
263
  export type MachineSettingsKeybindingsGetInput = { };
264
- export type MachineSettingsKeybindingsGetOutput = { readonly keybindings: ReadonlyArray<{ readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly shortcut: { readonly key: string, readonly metaKey: boolean, readonly ctrlKey: boolean, readonly shiftKey: boolean, readonly altKey: boolean, readonly modKey: boolean }, readonly whenAst?: Union_ | undefined }>, readonly issues: ReadonlyArray<{ readonly kind: "keybindings.malformed-config", readonly message: string } | { readonly kind: "keybindings.invalid-entry", readonly message: string, readonly index: number }>, readonly keybindingsConfigPath: string };
264
+ export type MachineSettingsKeybindingsGetOutput = { readonly keybindings: ReadonlyArray<{ readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "composer.steer" | "composer.sendBackground" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly shortcut: { readonly key: string, readonly metaKey: boolean, readonly ctrlKey: boolean, readonly shiftKey: boolean, readonly altKey: boolean, readonly modKey: boolean }, readonly whenAst?: Union_ | undefined }>, readonly issues: ReadonlyArray<{ readonly kind: "keybindings.malformed-config", readonly message: string } | { readonly kind: "keybindings.invalid-entry", readonly message: string, readonly index: number }>, readonly keybindingsConfigPath: string };
265
265
  export type MachineSettingsUpdateInput = { readonly patch: { readonly settingsRevision?: number, readonly enableProviderUpdateChecks?: boolean, readonly enableAgentBrowserAccess?: boolean, readonly browserRetentionBudgetEnabled?: boolean, 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, readonly agentThreadDelegationMaxDepth?: number, readonly enableAgentSelfDevelopment?: boolean, readonly machineTaskConfirmation?: { readonly actionIds: ReadonlyArray<string>, readonly projectIds: ReadonlyArray<string>, readonly remoteProjectTrust?: ReadonlyArray<{ readonly homeEnvironmentId: string, readonly projectId: string }> }, readonly backgroundActivity?: { readonly schemaVersion?: 1, readonly profile?: "balanced" | "performance" | "battery-saver" | "custom", 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 automaticGitFetchInterval?: number, readonly providerHealthRefreshInterval?: number, readonly npmRegistry?: string, readonly pluginUpdateCheck?: boolean, readonly backgroundActivityProfile?: "balanced" | "performance" | "battery-saver", readonly environmentIcon?: "server" | "cloud" | "linux" | "desktop" | "laptop" | "mac-mini" | "mac-studio" | null, readonly defaultRuntimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly addProjectBaseDirectory?: string, readonly textGenerationModelSelection?: { readonly instanceId?: string, readonly model?: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } } | null, readonly sourceControlWritingStyle?: { readonly mode?: "repo_conventions" | "conventional_commits" | "custom", readonly customInstructions?: string, readonly followChangeRequestTemplates?: boolean }, readonly sourceControlWriterModelSelection?: { readonly provider?: unknown, readonly instanceId?: unknown, readonly model: unknown, readonly options?: unknown } | null, readonly observability?: { readonly otlpTracesUrl?: string, readonly otlpMetricsUrl?: string, readonly otlpLogsUrl?: string, readonly fullTraceUntil?: number, readonly fullTraceForMs?: number }, readonly providerInstances?: { readonly [x: string]: { readonly driver: string, readonly displayName?: string, readonly accentColor?: string, readonly environment?: ReadonlyArray<{ readonly name: string, readonly value?: string, readonly sensitive?: boolean, readonly valueRedacted?: boolean }>, readonly proxyId?: null | string | { readonly required: string }, readonly keepBackgroundServices?: boolean, readonly enabled?: boolean, readonly localEnabled?: boolean, readonly syncSetupRequired?: boolean, readonly hiddenModels?: ReadonlyArray<string>, readonly modelOrder?: ReadonlyArray<string>, readonly defaultModel?: string, readonly config?: unknown, readonly configSecretRefs?: { readonly [x: string]: string }, readonly configRedacted?: boolean, readonly configSecretFields?: ReadonlyArray<string> } }, readonly dismissedDiscoveredDrivers?: ReadonlyArray<string>, readonly proxies?: { readonly [x: string]: { readonly displayName?: string, readonly protocol: "http" | "https", readonly host: string, readonly port: number, readonly username?: string, readonly bypass?: string, readonly credentials?: ReadonlyArray<{ readonly name: string, readonly value?: string, readonly sensitive?: boolean, readonly valueRedacted?: boolean }> } }, readonly defaultProxyId?: string | null, readonly plugins?: { 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 } } | { readonly type: "http", readonly url: string, readonly headers?: { readonly [x: string]: string } } | { readonly type: "sse", readonly url: string, readonly headers?: { readonly [x: string]: string } }, readonly enabled?: boolean, readonly providers?: { readonly [x: string]: boolean }, readonly catalogId?: string, readonly oauth?: { readonly status: "none" | "required" | "authorized" } } }, 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 requireManualPairingForNewDevices?: boolean, 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 } } };
266
266
  export type MachineSettingsUpdateOutput = { readonly enableProviderUpdateChecks: boolean, readonly enableAgentBrowserAccess: boolean, readonly browserRetentionBudgetEnabled: boolean, 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, readonly enableAgentSelfDevelopment: boolean, readonly machineTaskConfirmation: { readonly actionIds: ReadonlyArray<string>, readonly projectIds: ReadonlyArray<string>, readonly remoteProjectTrust?: ReadonlyArray<{ readonly homeEnvironmentId: string, readonly projectId: string }> }, readonly enableHeapSnapshot: boolean, readonly agentThreadDelegationMaxDepth: number, readonly pluginUpdateCheck: boolean, readonly backgroundActivityProfile: "balanced" | "performance" | "battery-saver", readonly environmentIcon: "server" | "cloud" | "linux" | "desktop" | "laptop" | "mac-mini" | "mac-studio" | null, readonly defaultRuntimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly addProjectBaseDirectory: string, readonly textGenerationModelSelection: { 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 sourceControlWritingStyle: { readonly mode: "repo_conventions" | "conventional_commits" | "custom", readonly customInstructions: string, readonly followChangeRequestTemplates: boolean }, readonly sourceControlWriterModelSelection: { 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 dismissedDiscoveredDrivers: ReadonlyArray<string>, readonly defaultProxyId: string | null, 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 }, readonly requireManualPairingForNewDevices: boolean, readonly automaticGitFetchInterval: number, readonly providerHealthRefreshInterval: number, readonly backgroundActivity: { readonly schemaVersion: 1, readonly profile: "balanced" | "performance" | "battery-saver" | "custom", 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, readonly providers: { readonly [x: string]: boolean }, 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, readonly userInvocable: boolean, readonly providers: { readonly [x: string]: boolean } } } }, readonly observability: { readonly otlpTracesUrl: string, readonly otlpMetricsUrl: string, readonly otlpLogsUrl: string, readonly fullTraceUntil?: number } };
267
- export type MachineSettingsKeybindingsUpsertInput = { readonly key: string, readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly when?: string, readonly replace?: { readonly key: string, readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly when?: string } };
268
- export type MachineSettingsKeybindingsUpsertOutput = { readonly keybindings: ReadonlyArray<{ readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly shortcut: { readonly key: string, readonly metaKey: boolean, readonly ctrlKey: boolean, readonly shiftKey: boolean, readonly altKey: boolean, readonly modKey: boolean }, readonly whenAst?: Union_ | undefined }>, readonly issues: ReadonlyArray<{ readonly kind: "keybindings.malformed-config", readonly message: string } | { readonly kind: "keybindings.invalid-entry", readonly message: string, readonly index: number }> };
269
- export type MachineSettingsKeybindingsRemoveInput = { readonly key: string, readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly when?: string };
270
- export type MachineSettingsKeybindingsRemoveOutput = { readonly keybindings: ReadonlyArray<{ readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly shortcut: { readonly key: string, readonly metaKey: boolean, readonly ctrlKey: boolean, readonly shiftKey: boolean, readonly altKey: boolean, readonly modKey: boolean }, readonly whenAst?: Union_ | undefined }>, readonly issues: ReadonlyArray<{ readonly kind: "keybindings.malformed-config", readonly message: string } | { readonly kind: "keybindings.invalid-entry", readonly message: string, readonly index: number }> };
267
+ export type MachineSettingsKeybindingsUpsertInput = { readonly key: string, readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "composer.steer" | "composer.sendBackground" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly when?: string, readonly replace?: { readonly key: string, readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "composer.steer" | "composer.sendBackground" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly when?: string } };
268
+ export type MachineSettingsKeybindingsUpsertOutput = { readonly keybindings: ReadonlyArray<{ readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "composer.steer" | "composer.sendBackground" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly shortcut: { readonly key: string, readonly metaKey: boolean, readonly ctrlKey: boolean, readonly shiftKey: boolean, readonly altKey: boolean, readonly modKey: boolean }, readonly whenAst?: Union_ | undefined }>, readonly issues: ReadonlyArray<{ readonly kind: "keybindings.malformed-config", readonly message: string } | { readonly kind: "keybindings.invalid-entry", readonly message: string, readonly index: number }> };
269
+ export type MachineSettingsKeybindingsRemoveInput = { readonly key: string, readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "composer.steer" | "composer.sendBackground" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly when?: string };
270
+ export type MachineSettingsKeybindingsRemoveOutput = { readonly keybindings: ReadonlyArray<{ readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "composer.steer" | "composer.sendBackground" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly shortcut: { readonly key: string, readonly metaKey: boolean, readonly ctrlKey: boolean, readonly shiftKey: boolean, readonly altKey: boolean, readonly modKey: boolean }, readonly whenAst?: Union_ | undefined }>, readonly issues: ReadonlyArray<{ readonly kind: "keybindings.malformed-config", readonly message: string } | { readonly kind: "keybindings.invalid-entry", readonly message: string, readonly index: number }> };
271
271
  export type MachineSettingsWallpaperAdoptInput = { readonly attachmentId: string };
272
272
  export type MachineSettingsWallpaperAdoptOutput = { readonly wallpaperId: string };
273
273
  export type MachineSettingsConnectPreferencesUpdateInput = { readonly publishAgentActivity: boolean };
@@ -323,7 +323,7 @@ export type ProvidersSessionsSetResumeCursorOutput = { };
323
323
  export type ProvidersExecutorsListInput = { };
324
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 signInInteraction?: "device-code" | "authorization-code" | "browser" | undefined, 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
- 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 };
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 originScope?: "repo" | "project" | "global" | "builtin" | undefined, readonly originLabel?: string | undefined, readonly overridesGlobal?: boolean | undefined, readonly summary?: { readonly [x: string]: 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 = { };
328
328
  export type ProvidersListOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName: string, readonly enabled: boolean, readonly readiness: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly readinessDetail?: string | undefined, readonly recovery?: ProviderProbeRecovery, readonly defaultModel: string | null, readonly concurrency?: { readonly live: number, readonly max: number } }> };
329
329
  export type ProvidersModelsListInput = { readonly instanceId: string, readonly includeHidden?: boolean };
@@ -337,15 +337,15 @@ export type ProvidersAccountsProbeOutput = { readonly probes: ReadonlyArray<{ re
337
337
  export type ProvidersInstancesRefreshInput = { readonly instanceId?: string, readonly refreshModelCatalog?: boolean };
338
338
  export type ProvidersInstancesRefreshOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName: string, readonly enabled: boolean, readonly readiness: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly readinessDetail?: string | undefined, readonly recovery?: ProviderProbeRecovery, readonly defaultModel: string | null, readonly concurrency?: { readonly live: number, readonly max: number } }> };
339
339
  export type ProvidersInstancesInstallInput = { readonly provider: string, readonly instanceId?: string, readonly clientRequestId?: string };
340
- export type ProvidersInstancesInstallOutput = { 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 }>, 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 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, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", 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 operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
340
+ export type ProvidersInstancesInstallOutput = { 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 }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly originScope?: "repo" | "project" | "global" | "builtin" | undefined, readonly originLabel?: string | undefined, readonly overridesGlobal?: boolean | undefined, readonly summary?: { readonly [x: string]: string } | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | 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, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", 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 operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
341
341
  export type ProvidersInstancesUpdateInput = { readonly provider: string, readonly instanceId?: string, readonly clientRequestId?: string };
342
- export type ProvidersInstancesUpdateOutput = { 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 }>, 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 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, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", 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 operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
342
+ export type ProvidersInstancesUpdateOutput = { 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 }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly originScope?: "repo" | "project" | "global" | "builtin" | undefined, readonly originLabel?: string | undefined, readonly overridesGlobal?: boolean | undefined, readonly summary?: { readonly [x: string]: string } | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | 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, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", 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 operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
343
343
  export type ProvidersInstancesSignInInput = { readonly provider: string, readonly instanceId?: string, readonly clientRequestId?: string };
344
- export type ProvidersInstancesSignInOutput = { 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 }>, 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 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, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", 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 operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
344
+ export type ProvidersInstancesSignInOutput = { 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 }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly originScope?: "repo" | "project" | "global" | "builtin" | undefined, readonly originLabel?: string | undefined, readonly overridesGlobal?: boolean | undefined, readonly summary?: { readonly [x: string]: string } | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | 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, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", 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 operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
345
345
  export type ProvidersInstancesSubmitSignInInput = { readonly provider: string, readonly instanceId?: string, readonly operationId: string, readonly code: string };
346
- export type ProvidersInstancesSubmitSignInOutput = { 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 }>, 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 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, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", 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 operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
346
+ export type ProvidersInstancesSubmitSignInOutput = { 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 }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly originScope?: "repo" | "project" | "global" | "builtin" | undefined, readonly originLabel?: string | undefined, readonly overridesGlobal?: boolean | undefined, readonly summary?: { readonly [x: string]: string } | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | 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, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", 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 operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
347
347
  export type ProvidersInstancesCancelMaintenanceInput = { readonly provider: string, readonly instanceId?: string, readonly clientRequestId?: string };
348
- export type ProvidersInstancesCancelMaintenanceOutput = { 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 }>, 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 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, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", 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 operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
348
+ export type ProvidersInstancesCancelMaintenanceOutput = { 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 }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly originScope?: "repo" | "project" | "global" | "builtin" | undefined, readonly originLabel?: string | undefined, readonly overridesGlobal?: boolean | undefined, readonly summary?: { readonly [x: string]: string } | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | 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, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", 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 operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
349
349
  export type PluginsSignInStartInput = { readonly entryId: string, readonly name: string };
350
350
  export type PluginsSignInStartOutput = { readonly attemptId: string, readonly expiresAt: string, readonly kind: "device", readonly userCode: string, readonly verificationUrl: string } | { readonly attemptId: string, readonly expiresAt: string, readonly kind: "browser", readonly authorizationUrl: string };
351
351
  export type PluginsSignInCompleteInput = { readonly attemptId: string, readonly url: string };
@@ -743,20 +743,20 @@ export type AttentionPendingSubscribeOutput = { readonly _tag: "snapshot", reado
743
743
  export type AttentionSnoozeInput = { readonly projectId: string, readonly key: { readonly kind: "approval" | "question" | "decision" | "plan" | "mention" | "work" | "failure" | "remote" | "acceptance", readonly id: string }, readonly until: string | null, readonly requestId?: string };
744
744
  export type AttentionSnoozeOutput = { readonly sequence: number, readonly result: { }, readonly replayed?: boolean };
745
745
  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 }> };
746
- 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 } };
747
- 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 } };
746
+ 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 dispatchHold?: boolean | undefined, 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 } };
747
+ 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 dispatchHold?: boolean | undefined, 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 } };
748
748
  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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 };
749
- 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 };
750
- 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 };
751
- 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 initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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" | "attention.snoozed", readonly sourceThreadId?: string | undefined, readonly sourceTitle?: string | undefined, readonly childThreadId?: string | undefined, readonly childTitle?: string | undefined, readonly remotePost?: { readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly textOffset: number, readonly textLength: number }>, readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 };
749
+ 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 dispatchHold?: boolean | undefined, 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 };
750
+ 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 dispatchHold?: boolean | undefined, 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 };
751
+ 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 initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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" | "attention.snoozed", readonly sourceThreadId?: string | undefined, readonly sourceTitle?: string | undefined, readonly childThreadId?: string | undefined, readonly childTitle?: string | undefined, readonly remotePost?: { readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly textOffset: number, readonly textLength: number }>, readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 dispatchHold?: boolean | undefined, 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 };
752
752
  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;
753
753
  export type ThreadsMessagesGetEncodedOutput = { readonly messageId: string, readonly role: string, readonly text: string, readonly turnId: string | null, readonly createdAt: string, readonly confirmedSequence?: number | null | 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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: 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 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;
754
- 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 };
754
+ 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 dispatchHold?: boolean | undefined, 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 };
755
755
  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 homeWork?: { readonly projectId: string, readonly environmentId: string, readonly workLineId?: string } } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, 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 };
756
756
  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 }>;
757
757
  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 };
758
758
  export type MachineSettingsEditorsGetEncodedOutput = { readonly availableEditors: ReadonlyArray<"file-manager">, readonly editorDiscovery?: unknown, readonly shellRevealInFileManager?: boolean, readonly shellRevealInFileManagerKind?: "finder" | "file-explorer" | "files" };
759
- 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 signInMode?: "device-code" | "authorization-code" | "command", 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 operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
759
+ 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 originScope?: "repo" | "project" | "global" | "builtin" | undefined, readonly originLabel?: string | undefined, readonly overridesGlobal?: boolean | undefined, readonly summary?: { readonly [x: string]: 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 signInMode?: "device-code" | "authorization-code" | "command", 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 operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
760
760
  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 } };
761
761
  export type MachineSettingsConfigGetEncodedOutput = { readonly pluginApiVersionRange?: PluginApiVersionRange, readonly environment: { readonly environmentId: string, readonly label: string, readonly platform: { readonly os: "darwin" | "linux" | "windows" | "unknown", readonly arch: "arm64" | "x64" | "other", readonly machine?: unknown }, readonly serverVersion: string, readonly wireProtocolVersion?: number, readonly minClientWireProtocolVersion?: number, readonly capabilities: { readonly threadDirectoryIds?: boolean, readonly threadMembers?: boolean, readonly providerMaintenanceCancel?: boolean, readonly providerSignInSubmit?: boolean, readonly repositoryIdentity?: boolean | undefined, readonly connectionProbe?: boolean, readonly reviewDiffFiles?: boolean, readonly worktreeProbePaths?: boolean, readonly attachmentUploads?: boolean, readonly questionAttachments?: boolean, readonly threadSettlement?: boolean, readonly threadSnooze?: boolean, readonly scheduledWakeRepeat?: boolean, readonly threadPinning?: boolean, readonly threadPinReorder?: boolean, readonly manualOrdering?: boolean, readonly projectCopies?: boolean, readonly projectArchive?: boolean, readonly memoryDerivation?: boolean, readonly projectCloneInBackground?: boolean, readonly projectMultiFolder?: boolean, readonly workLines?: boolean, readonly workBoard?: boolean, readonly humanAttention?: boolean, readonly workParents?: boolean, readonly projectConfig?: boolean, readonly groupMessages?: boolean, readonly machineTasks?: boolean, readonly machineLog?: boolean, readonly tolerantMachineActions?: boolean, readonly machineAdmissionIdentityCheck?: boolean, readonly projectMachineExclusion?: boolean, readonly threadTitleRegeneration?: boolean, readonly threadRestart?: boolean, readonly liveCommandOutput?: boolean, readonly threadPullRequestLinking?: boolean, readonly environmentIcon?: boolean, readonly serverSelfUpdate?: "boot-service" | "respawn" | "desktop-managed", readonly serverSelfUpdateProgress?: boolean, readonly downloadBaseUrl?: string, readonly agentActivityPublishing?: boolean, readonly noiseIk?: boolean, readonly browserArtifactDelivery?: boolean, readonly browserPageOperations?: boolean, readonly browserZoomOperations?: boolean, readonly browserSiteDataOperations?: boolean, readonly browserDevtoolsOperations?: boolean, readonly browserRuntime?: boolean, readonly pluginNotifications?: boolean, readonly pluginSignIn?: boolean, readonly pluginSlashCommands?: boolean, readonly pluginPurge?: boolean, readonly pluginUpdateAdvisories?: boolean }, readonly noiseStaticPublicKey?: string, readonly environmentPublicKey?: string }, readonly auth: { readonly policy: "desktop-managed-local" | "loopback-browser" | "remote-reachable" | "unsafe-no-auth", readonly bootstrapMethods: ReadonlyArray<"desktop-bootstrap" | "one-time-token">, readonly sessionMethods: ReadonlyArray<"browser-session-cookie" | "bearer-access-token" | "dpop-access-token">, readonly sessionCookieName: string }, readonly cwd: string, readonly observability: { readonly logsDirectoryPath: string, readonly localTracingEnabled: boolean, readonly otlpTracesUrl?: string, readonly otlpTracesEnabled: boolean, readonly otlpMetricsUrl?: string, readonly otlpMetricsEnabled: boolean, readonly otlpLogsUrl?: string, readonly otlpLogsEnabled?: boolean | undefined, readonly localTraceFullForced?: boolean }, readonly runtimeMaintenanceRoot?: string };
762
762
  export type MachineSettingsRuntimeHealthGetEncodedOutput = { readonly revision: string, readonly status: "healthy" | "stopped" | "conflict" | "unknown", readonly stateDir: string, readonly runtimeRoot: string, readonly currentVersion: string | null, readonly instances: ReadonlyArray<{ readonly pid: number, readonly startToken: string, readonly launcher: { readonly pid: number, readonly startToken: string } | null, readonly version: string | null, readonly port: number | null, readonly stateDir: string, readonly managed: boolean, readonly ready: boolean, readonly supportsDrain: boolean, readonly activity: "idle" | "busy" | "unknown", readonly tasks: ReadonlyArray<{ readonly threadId: string, readonly turnId: string | null }> }>, readonly repairSupported: boolean, readonly operation: { readonly id: string, readonly policy: "when-idle" | "now", readonly phase: "waiting" | "stopping" | "backing-up" | "starting" | "verifying" | "succeeded" | "cancelled" | "failed", readonly targetVersion: string, readonly startedAt: string, readonly updatedAt: string, readonly reason: unknown, readonly detail?: string, readonly backupPath: string | null } | null, readonly windowsProcessTreeProtection?: unknown, readonly windowsProcessTreeProtectionExemptions?: ReadonlyArray<{ readonly pluginId?: string, readonly program: string }>, readonly windowsProcessTreeProtectionExplicitBreakaways?: ReadonlyArray<{ readonly pluginId?: string, readonly program: string }> };