@ycodium-ai/plugin-api 0.2.6153 → 0.2.6182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/dist/_private/ycodium-composer-tokens/sessionContextSummaryFormat.d.ts +8 -1
- package/dist/_private/ycodium-composer-tokens/sessionContextSummaryFormat.js +13 -1
- package/dist/conversation-view.d.ts +2 -0
- package/dist/conversation-view.d.ts.map +1 -1
- package/dist/conversation-view.js.map +1 -1
- package/dist/conversationHostModels.d.ts +6 -0
- package/dist/conversationHostModels.d.ts.map +1 -1
- package/dist/dataPorts.gen.d.ts +741 -6
- package/dist/dataPorts.gen.d.ts.map +1 -1
- package/dist/dataPorts.gen.js.map +1 -1
- package/dist/source/_private/ycodium-composer-tokens/sessionContextSummaryFormat.ts +25 -2
- package/dist/source/conversation-view.ts +2 -0
- package/dist/source/conversationHostModels.ts +3 -0
- package/dist/source/dataPorts.gen.ts +90 -35
- package/dist/source/version.ts +3 -3
- package/dist/version.d.ts +3 -3
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +2 -2
- package/package.json +4 -4
|
@@ -169,7 +169,7 @@ export type ProjectsMachinesThreadsListOutput = { readonly items: ReadonlyArray<
|
|
|
169
169
|
export type ProjectsMachinesThreadsGetInput = { readonly projectId: string, readonly machineId: string, readonly threadId: string };
|
|
170
170
|
export type ProjectsMachinesThreadsGetOutput = { readonly thread: { readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit", readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }, readonly machineId: string }, readonly execution: { readonly threadId: string, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error" } | null, readonly queue: ReadonlyArray<{ readonly intentId: string, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly paused?: true, readonly position: number, readonly waitingForCapacity?: true }>, readonly truncated: boolean, readonly queuePaused: boolean, readonly pendingApprovalCount: number, readonly pendingUserInputCount: number, readonly continuation: "active" | "queued" | "blocked" | "paused" | "idle" }, readonly machine: { readonly machineId: string, readonly name: string, readonly online: boolean, readonly serverVersion?: string, readonly wireProtocolVersion?: number } };
|
|
171
171
|
export type ProjectsMachinesThreadsMessagesListInput = { readonly threadId: string, readonly messageId?: string, readonly cursor?: string | null, readonly limit?: number, readonly includeTotal?: boolean, readonly attachmentOffset?: number, readonly textOffset?: number, readonly textLimit?: number, readonly projectId: string, readonly machineId: string };
|
|
172
|
-
export type ProjectsMachinesThreadsMessagesListOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
|
|
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
174
|
export type ThreadsListOutput = { readonly items: ReadonlyArray<{ readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit", readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly historyEpoch?: string };
|
|
175
175
|
export type ThreadsListSubscribeInput = { readonly include?: ReadonlyArray<"summary" | "runtime">, readonly projectId?: string, readonly threadIds?: ThreadDirectoryIds, readonly parentThreadId?: string, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId?: string }, readonly archived?: "exclude" | "include" | "only", readonly after?: { readonly epoch: string, readonly sequence: number } };
|
|
@@ -177,7 +177,7 @@ export type ThreadsListSubscribeOutput = { readonly _tag: "snapshot", readonly c
|
|
|
177
177
|
export type ThreadsArchivedListInput = { };
|
|
178
178
|
export type ThreadsArchivedListOutput = { readonly snapshotSequence: number, readonly projects: ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>, readonly threads: ReadonlyArray<{ readonly nativeSessionImported?: true, readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | null | undefined, readonly interactionMode: "default" | "plan", readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly status?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined, readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly continuationCheck?: ThreadContinuationCheckOrNull, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }>, readonly updatedAt: string };
|
|
179
179
|
export type ThreadsHistoryInput = { readonly threadId: string, readonly turnLimit?: number, readonly beforeCursor?: string, readonly afterCursor?: string, readonly aroundTurnId?: string, readonly boundedHistory?: boolean };
|
|
180
|
-
export type ThreadsHistoryOutput = { readonly snapshotSequence: number, readonly historyEpoch?: string, readonly thread: { readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly actualModel?: { readonly selection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly requested: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly source: "reported" | "echo", readonly turnId?: string | undefined, readonly recordedAt: string } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly continuationCheck?: ThreadContinuationCheckOrNull, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly pendingNotifications?: ReadonlyArray<{ readonly dedupeKey: string, readonly notification: { readonly kind: "child.settled" | "child.failed" | "child.approval" | "child.question" | "child.stopped" | "child.resolved", readonly childThreadId: string, readonly childTitle: string, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string } | { readonly kind: "plugin.notice" | "selfdev.resolved" | "cookie-import.resolved" | "remote.post", readonly sourceThreadId?: string | undefined, readonly sourceTitle?: string | undefined, readonly childThreadId?: string | undefined, readonly childTitle?: string | undefined, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string }, readonly queuedAt: string }> | undefined, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly turnIntents?: ReadonlyArray<{ readonly intentId: string, readonly threadId: string, readonly sequence: number, readonly commandId: string, readonly messageId: string, readonly paused?: boolean, readonly revision?: number, readonly action?: { readonly kind: "steer" | "interrupt", readonly turnId: string, readonly commandId: string, readonly source?: "automatic" } | null, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly legacyModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly runSettings?: { readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly nativeModeId?: string }, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly sourceBlocks?: ReadonlyArray<{ readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly textOffset: number, readonly textLength: number }>, readonly noticesFolded?: true, readonly binding?: { readonly bindingId: string, readonly generation: number, readonly selection: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly compatibility: { readonly match: "native" | "via-adapter" | "unsupported" | "unknown", readonly reasonCode: "native-protocol" | "native-source" | "protocol-conversion" | "wrong-environment" | "resource-missing" | "resource-disabled" | "revision-conflict" | "source-mismatch" | "endpoint-mismatch" | "model-mapping-missing" | "driver-missing" | "driver-unknown" | "driver-identity-mismatch" | "external-endpoint-unsupported" | "protocol-unknown" | "protocol-unsupported" | "auth-unsupported" | "source-ownership-mismatch" | "platform-unsupported" | "version-unknown" | "version-unsupported" | "feature-unsupported" | "feature-unknown" | "capability-validation-failed" | "invalid-options" | "endpoint-invalid", readonly endpointId: string | null, readonly requestedModelId: string | null, readonly effectiveOptions: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly conversion: { readonly id: string, readonly version: string, readonly from: string, readonly to: string, readonly enabled: boolean, readonly capabilities: { readonly text: "supported" | "unsupported" | "unknown", readonly streaming: "supported" | "unsupported" | "unknown", readonly "tool-calls": "supported" | "unsupported" | "unknown", readonly "image-input": "supported" | "unsupported" | "unknown", readonly "audio-input": "supported" | "unsupported" | "unknown", readonly "structured-output": "supported" | "unsupported" | "unknown", readonly reasoning: "supported" | "unsupported" | "unknown" }, readonly limitations: ReadonlyArray<string>, readonly validationRefs: ReadonlyArray<string> } | null, readonly limitations: ReadonlyArray<string>, readonly evidence: ReadonlyArray<{ readonly recordId: string, readonly freshness: "current" | "stale" }>, readonly fingerprint: string | null }, readonly credentialIdentity: { readonly id: string, readonly revision: number } | null, readonly requestedModelId: string, readonly executedModelId: string | null } | null, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly attempt?: { readonly attemptId: string, readonly intentId: string, readonly workerEpoch: number, readonly sourceBindingId: string | null, readonly targetBindingId: string | null, readonly nativeLocator: { readonly sessionId?: string, readonly turnId?: string, readonly generationId?: string } | null, readonly stage: "preparing" | "dispatching" | "running" | "reconciling", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly createdAt: string, readonly updatedAt: string } | null, readonly deliveredTurnId?: string | null, readonly blockedReason?: string | null, readonly replacementIntentId?: string | null, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly scheduledWakes?: ReadonlyArray<{ readonly wakeId: string, readonly threadId: string, readonly dueAt: string, readonly note: string, readonly createdBy: { readonly kind: "thread", readonly threadId: string } | { readonly kind: "person" } | { readonly kind: "plugin", readonly pluginId: string }, readonly state: "scheduled" | "fired" | "cancelled", readonly afterServerUpgrade: boolean, readonly scheduledOnServerVersion: string | null, readonly intentId: string | null, readonly skipped?: true, readonly firedAt: string | null, readonly cancelledAt: string | null, readonly upgrade?: { readonly requestedVersion: string, readonly updateId: string | null, readonly expectsVerdict?: boolean | undefined, readonly outcome: { readonly status: "committed" | "rolled-back" | "failed" | "unknown", readonly targetVersion?: string | undefined, readonly fromVersion: string | null, readonly reason: string | null } | null } | undefined, readonly repeat?: { readonly cron: string, readonly timeZone: string } | undefined, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly turnQueuePaused?: boolean | undefined, readonly turnQueuePauseSource?: "automatic-failure" | "manual" | "unknown" | undefined, readonly acceptedInteractionRequestIds?: ReadonlyArray<string> | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly deletedAt: string | null, readonly messages: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_ } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string }>, readonly proposedPlans: ReadonlyArray<{ readonly id: string, readonly turnId: string | null, readonly planMarkdown: string, readonly implementedAt: string | null, readonly implementationThreadId: string | null, readonly createdAt: string, readonly updatedAt: string }>, readonly activities: ReadonlyArray<{ readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly payload: unknown, readonly turnId: string | null, readonly sequence?: number | undefined, readonly createdAt: string }>, readonly checkpoints: ReadonlyArray<{ readonly turnId: string, readonly checkpointTurnCount: number, readonly checkpointRef: string, readonly status: "ready" | "missing" | "error", readonly files: ReadonlyArray<{ readonly path: string, readonly kind: string, readonly additions: number, readonly deletions: number }>, readonly assistantMessageId: string | null, readonly completedAt: string }>, readonly turnSummaries?: ReadonlyArray<{ readonly turnId: string, readonly userMessageId?: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }>, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> }> | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null }, readonly page?: { readonly beforeCursor: string | null, readonly hasMore: boolean, readonly afterCursor?: string | null, readonly hasNewer?: boolean, readonly boundedHistory?: boolean, readonly history?: { readonly turnIds: ReadonlyArray<string>, readonly messageIds: ReadonlyArray<string>, readonly activityIds: ReadonlyArray<string>, readonly proposedPlanIds: ReadonlyArray<string>, readonly checkpointTurnIds: ReadonlyArray<string>, readonly turnIntentIds: ReadonlyArray<string> }, readonly snapshotSequence: number, readonly threadSequence?: number } | undefined };
|
|
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 };
|
|
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 };
|
|
@@ -209,7 +209,7 @@ export type ThreadsExecutionGetOutput = { readonly threadId: string, readonly pr
|
|
|
209
209
|
export type ThreadsTurnStartsCountInput = { readonly threadIds: ReadonlyArray<string> };
|
|
210
210
|
export type ThreadsTurnStartsCountOutput = number;
|
|
211
211
|
export type ThreadsMessagesGetInput = { readonly messageId: string };
|
|
212
|
-
export type ThreadsMessagesGetOutput = { 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 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly 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 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 }> } | null;
|
|
212
|
+
export type ThreadsMessagesGetOutput = { 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 } | { 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 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 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 }> } | null;
|
|
213
213
|
export type ThreadsUserInputPendingListInput = { readonly threadId: string };
|
|
214
214
|
export type ThreadsUserInputPendingListOutput = ReadonlyArray<{ readonly requestId: string, readonly createdAt: string, readonly questions: ReadonlyArray<{ readonly id: string, readonly header: string, readonly question: string, readonly options: ReadonlyArray<{ readonly value: string, readonly label: string, readonly description: string, readonly planAction?: "approve" | "revise" | "stop", readonly displayKind?: "acknowledge" }>, readonly multiSelect: boolean, readonly allowFreeform: boolean, readonly kind: "question" | "plan" }> }>;
|
|
215
215
|
export type ThreadsCommandReceiptsGetInput = { readonly commandId: string, readonly commandType: string, readonly threadId?: string };
|
|
@@ -225,7 +225,7 @@ export type ThreadsTimeGetOutput = { readonly readAt: string, readonly agentRunn
|
|
|
225
225
|
export type ThreadsToolCallsListInput = { readonly threadId: string, readonly source?: "native" | "ycodium" | "plugin" | "mcp" | "unknown", readonly pluginId?: string, readonly mcpServer?: string, readonly turnIds?: ReadonlyArray<string>, readonly cursor?: string | null, readonly limit?: number };
|
|
226
226
|
export type ThreadsToolCallsListOutput = { readonly calls: ReadonlyArray<{ readonly id: string, readonly kind: "tool-call", readonly createdAt: string, readonly turnId: string | null, readonly status: "running" | "completed" | "failed" | "declined" | "stopped" | "unknown", readonly summary: string, readonly durationMs?: number, readonly activityId: string, readonly updatedActivityId: string, readonly toolCallId?: string, readonly chatAnchorRowId?: string, readonly invocationId?: string, readonly rewrittenBy?: ReadonlyArray<string>, readonly builtinMcpTool?: string, readonly toolArgs?: { readonly threadId?: string, readonly projectId?: string, readonly instanceId?: string, readonly environmentId?: string, readonly machine?: string, readonly to?: { readonly threadId?: string, readonly environmentId?: string } }, readonly source: "native" | "ycodium" | "plugin" | "mcp" | "unknown", readonly toolName?: string, readonly pluginId?: string, readonly pluginEntryId?: string, readonly mcpServer?: string, readonly action?: "skill-read", readonly skillName?: string }>, readonly turnContexts: ReadonlyArray<{ readonly turnId: string | null, readonly counts: { readonly totalCalls: number, readonly failedCalls: number, readonly matchedCalls: number, readonly matchedFailedCalls: number }, readonly summary?: { readonly turnId: string, readonly userMessageId?: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }>, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> }, readonly userMessage?: { readonly id: string, readonly createdAt: string, readonly text: string, readonly truncated: boolean }, readonly assistantMessage?: { readonly id: string, readonly createdAt: string, readonly text: string, readonly truncated: boolean } }>, readonly sources: ReadonlyArray<{ readonly source: "native" | "ycodium" | "plugin" | "mcp" | "unknown", readonly pluginId?: string, readonly mcpServer?: string }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
|
|
227
227
|
export type ThreadsMessagesListInput = { readonly threadId: string, readonly messageId?: string, readonly cursor?: string | null, readonly limit?: number, readonly includeTotal?: boolean, readonly attachmentOffset?: number, readonly textOffset?: number, readonly textLimit?: number };
|
|
228
|
-
export type ThreadsMessagesListOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
|
|
228
|
+
export type ThreadsMessagesListOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine", readonly 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 };
|
|
229
229
|
export type ThreadsActivitiesListInput = { readonly threadId: string, readonly kinds: ReadonlyArray<string>, readonly inTurn?: "any" | "none", readonly cursor?: string | null, readonly limit?: number, readonly maxPayloadBytes?: number, readonly maxPageBytes?: number };
|
|
230
230
|
export type ThreadsActivitiesListOutput = { readonly items: ReadonlyArray<{ readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly turnId: string | null, readonly sequence?: number | undefined, readonly createdAt: string, readonly payload: unknown, readonly payloadOmitted?: undefined, readonly toolCallId?: undefined } | { readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly turnId: string | null, readonly sequence?: number | undefined, readonly createdAt: string, readonly payload?: undefined, readonly payloadOmitted: { readonly bytes: number }, readonly toolCallId?: string }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
|
|
231
231
|
export type ProjectsListInput = { readonly archived?: "exclude" | "include" | "only", readonly repositoryIdentity?: "resolve" | "skip" };
|
|
@@ -255,7 +255,7 @@ export type CommunicationDeliveriesListUnboundOutput = { readonly items: Readonl
|
|
|
255
255
|
export type CommunicationRecordsNotifyInput = { readonly threadId: string, readonly sourceThreadId: string, readonly summary: string, readonly requestId?: string };
|
|
256
256
|
export type CommunicationRecordsNotifyOutput = { readonly sequence: number, readonly result: { readonly recordId: string }, readonly replayed?: boolean };
|
|
257
257
|
export type ApprovalsPendingListInput = { readonly threadId: string };
|
|
258
|
-
export type ApprovalsPendingListOutput = ReadonlyArray<{ readonly requestId: string, readonly activityId?: string | undefined, readonly decision?: { readonly askedBy: { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "host", readonly feature: string }, readonly options: ReadonlyArray<{ readonly id: string, readonly label: { readonly text: string, readonly key?: string | undefined, readonly params?: { readonly [x: string]: string | number } | undefined }, readonly tone?: "default" | "primary" | "danger" | undefined }> } | undefined, readonly requestKind: "command" | "file-read" | "file-change" | "web-fetch" | "web-search" | "skill" | "mcp-tool" | "mcp-elicitation" | "tool", readonly createdAt: string, readonly summary?: string | undefined, readonly detail?: string | undefined, readonly appName?: string | undefined, readonly options?: ReadonlyArray<{ readonly decision: "accept" | "acceptForSession" | "acceptAlways" | "decline" | "cancel", readonly label: string, readonly displayKind?: "standard" | undefined }> | undefined, readonly statement?: { readonly description?: string | undefined, readonly justification?: string | undefined, readonly command?: string | undefined, readonly outsideSandbox?: true | undefined, readonly coveredArgs?: ReadonlyArray<string> | undefined } | undefined, readonly declineReasonRelay?: "native" | "queued" | "none" | undefined }>;
|
|
258
|
+
export type ApprovalsPendingListOutput = ReadonlyArray<{ readonly recipient?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly requestId: string, readonly activityId?: string | undefined, readonly decision?: { readonly askedBy: { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "host", readonly feature: string }, readonly options: ReadonlyArray<{ readonly id: string, readonly label: { readonly text: string, readonly key?: string | undefined, readonly params?: { readonly [x: string]: string | number } | undefined }, readonly tone?: "default" | "primary" | "danger" | undefined }> } | undefined, readonly requestKind: "command" | "file-read" | "file-change" | "web-fetch" | "web-search" | "skill" | "mcp-tool" | "mcp-elicitation" | "tool", readonly createdAt: string, readonly summary?: string | undefined, readonly detail?: string | undefined, readonly appName?: string | undefined, readonly options?: ReadonlyArray<{ readonly decision: "accept" | "acceptForSession" | "acceptAlways" | "decline" | "cancel", readonly label: string, readonly displayKind?: "standard" | undefined }> | undefined, readonly statement?: { readonly description?: string | undefined, readonly justification?: string | undefined, readonly command?: string | undefined, readonly outsideSandbox?: true | undefined, readonly coveredArgs?: ReadonlyArray<string> | undefined } | undefined, readonly declineReasonRelay?: "native" | "queued" | "none" | undefined }>;
|
|
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 = { };
|
|
@@ -275,7 +275,7 @@ export type MachineSettingsConnectPreferencesUpdateOutput = { readonly linked: b
|
|
|
275
275
|
export type MachineSettingsGetInput = { };
|
|
276
276
|
export type MachineSettingsGetOutput = { 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 } };
|
|
277
277
|
export type MachineSettingsConfigGetInput = { };
|
|
278
|
-
export type MachineSettingsConfigGetOutput = { 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?: "server" | "cloud" | "linux" | "desktop" | "laptop" | "mac-mini" | "mac-studio" | undefined }, 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, 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 projectCloneInBackground?: boolean, readonly projectMultiFolder?: boolean, readonly workLines?: boolean, readonly workBoard?: 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, readonly localTraceFullForced?: boolean }, readonly runtimeMaintenanceRoot?: string };
|
|
278
|
+
export type MachineSettingsConfigGetOutput = { 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?: "server" | "cloud" | "linux" | "desktop" | "laptop" | "mac-mini" | "mac-studio" | undefined }, 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, 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, readonly localTraceFullForced?: boolean }, readonly runtimeMaintenanceRoot?: string };
|
|
279
279
|
export type MachineSettingsNpmRegistryGetInput = { };
|
|
280
280
|
export type MachineSettingsNpmRegistryGetOutput = { readonly registry: string, readonly source: "setting" | "npm" | "default" };
|
|
281
281
|
export type MachineSettingsPresetsListInput = { };
|
|
@@ -359,10 +359,10 @@ export type ProjectsConfigGetOutput = { readonly actions?: ReadonlyArray<{ reado
|
|
|
359
359
|
export type ProjectsConfigUpdateInput = { readonly actions?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string, readonly autoOpenBrowser?: boolean }>, readonly tasks?: { readonly [x: string]: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly description?: string, readonly timeoutSeconds?: number, readonly variants?: { readonly [x: string]: ReadonlyArray<string> } } }, readonly mcpServers?: { readonly [x: string]: { readonly name: string, readonly transport: { readonly type: "stdio", readonly command: string, readonly args?: ReadonlyArray<string>, readonly env?: { readonly [x: string]: string | null } } | { readonly type: "http", readonly url: string, readonly headers?: { readonly [x: string]: string | null } } | { readonly type: "sse", readonly url: string, readonly headers?: { readonly [x: string]: string | null } }, readonly enabled?: boolean, readonly providers?: { readonly [x: string]: boolean }, readonly catalogId?: string } }, readonly skills?: { readonly [x: string]: { readonly name: string, readonly source: { readonly kind: "inline", readonly skillMd: string } | { readonly kind: "builtin", readonly id: string } | { readonly kind: "catalog", readonly catalogId: string, readonly version: string }, readonly enabled?: boolean, readonly modelInvocable?: boolean, readonly userInvocable?: boolean, readonly providers?: { readonly [x: string]: boolean } } }, readonly projectId: string, readonly revision: number };
|
|
360
360
|
export type ProjectsConfigUpdateOutput = { readonly revision: number };
|
|
361
361
|
export type PluginsInstalledListInput = { readonly includeRuntimeStats?: boolean, readonly entryId?: string, readonly limit?: number, readonly cursor?: string };
|
|
362
|
-
export type PluginsInstalledListOutput = { readonly plugins: ReadonlyArray<{ readonly canonicalMachineEntryId?: string, readonly signIns?: ReadonlyArray<{ readonly name: string, readonly label?: string, readonly labelKey?: string, readonly state: string, readonly account?: string, readonly kind: string, readonly redirectUri?: string, readonly attempt?: { readonly attemptId: string, readonly state: string, readonly error?: string } }>, readonly publicServices?: ReadonlyArray<{ readonly service: string, readonly publicPath: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> | undefined, readonly slashCommands?: ReadonlyArray<{ readonly name: string, readonly kind: "prompt" | "action", readonly description?: string | undefined, readonly argumentHint?: string | undefined, readonly translations?: { readonly [x: string]: { readonly description?: string | undefined, readonly argumentHint?: string | undefined } } | undefined }> | undefined, readonly entryId: string, readonly revision?: string | undefined, readonly pluginId: string, readonly presentation?: { readonly displayName: string, readonly description?: string | undefined, readonly translations?: { readonly [x: string]: { readonly displayName?: string | undefined, readonly description?: string | undefined } } | undefined, readonly author?: string | undefined, readonly homepage?: string | undefined, readonly icon?: string | undefined } | undefined, readonly origin: "builtin" | "package" | "directory" | "project" | "thread", readonly location: string | null, readonly version: string | null, readonly packageName?: string | null | undefined, readonly loadedAt?: string | undefined, readonly configRevision?: number | undefined, readonly uiDebug?: { readonly enabled: boolean, readonly phase: "idle" | "building" | "error", readonly error: string | null } | undefined, readonly uiRevision?: string | undefined, readonly uiDigest?: string | undefined, readonly assetDigests?: { readonly [x: string]: string } | undefined, readonly proxyIds?: ReadonlyArray<string> | undefined, readonly state: "loaded" | "failed" | "stopped" | "disabled", readonly contributions: ReadonlyArray<{ readonly kind: "signIn" | "toolkit" | "reactor" | "settingsCard" | "modelPreset" | "command" | "cli" | "interval" | "executor" | "protocolConversion" | "skill" | "filePreviewConverter" | "systemPrompt.section" | "systemPrompt.context" | "messages.beforeSend" | "slashCommand" | "tools.guard" | "ui.seats" | "agentPresets" | "sessionProjections" | "continuation", readonly name: string, readonly role?: string }>, readonly failure: { readonly phase: string, readonly message: string, readonly kind?: string | undefined } | null, readonly threadId: string | null, readonly projectId?: string | null | undefined, readonly projectPlugin?: { readonly needsApproval: boolean, readonly conflictWithMachine: boolean, readonly conflictChoice?: "project" | "machine" | undefined } | undefined, readonly runtimeStats?: { readonly eventsHandled: number, readonly toolCalls: number, readonly processesSpawned?: number | undefined, readonly lastEventAt: string | null } | undefined, readonly removable?: boolean | undefined, readonly permissions?: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: ReadonlyArray<"conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view"> } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<string> } | { readonly kind: "unknown", readonly reportedKind: string }> | undefined, readonly ui?: { readonly assetsPath: string, readonly entry?: string | undefined, readonly pages?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined, readonly chrome?: "host" | "own" | undefined, readonly placements?: ReadonlyArray<"web-pages" | "mobile-home" | "mobile-pages"> | undefined }> | undefined, readonly panels?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined }> | undefined, readonly providerSettings?: ReadonlyArray<{ readonly id: string, readonly driverKind: string, readonly ownedFields?: { readonly add?: ReadonlyArray<string> | undefined, readonly edit?: ReadonlyArray<string> | undefined } | undefined, readonly ownedEnvironment?: ReadonlyArray<string> | undefined, readonly genericFields?: "inline" | "collapsed" | undefined }> | undefined, readonly threadAnnotations?: { readonly command: string } | undefined, readonly appearance?: { readonly name: string, readonly wallpaper: string, readonly dimLight?: number | undefined, readonly dimDark?: number | undefined, readonly blur?: number | undefined } | undefined, readonly toolViews?: ReadonlyArray<{ readonly tool: string, readonly view?: string | undefined, readonly placement?: "inline" | "deliverable" | undefined, readonly titleKey?: string | undefined, readonly titleBy?: { readonly arg: string, readonly titleKeys: { readonly [x: string]: string } } | undefined, readonly summary?: ReadonlyArray<string> | undefined }> | undefined, readonly chatWatchers?: ReadonlyArray<string> | undefined, readonly teamViews?: ReadonlyArray<{ readonly key: string, readonly scopes: ReadonlyArray<"team" | "project">, readonly titleKey: string, readonly icon?: string | undefined, readonly order?: number | undefined }> | undefined, readonly development?: { readonly command: string, readonly args: ReadonlyArray<string>, readonly watch: ReadonlyArray<string> } | undefined } | undefined, readonly executors?: ReadonlyArray<unknown> | undefined }>, readonly nextCursor?: string | null };
|
|
363
|
-
export type PluginsInstalledSetEnabledInput = { readonly entryId: string, readonly enabled: boolean, readonly revision: string, readonly force?: boolean, readonly acceptedPermissions?: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: readonly ["conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view", ...Array<"conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view">] } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<"thread.artifact.deliver" | "thread.create" | "thread.fork" | "thread.import" | "thread.external-messages.append" | "thread.turn.interrupt" | "thread.approval.respond" | "thread.turn-intent.run" | "thread.turn-intent.cancel" | "thread.turn-queue.resume" | "thread.turn-intent.set-paused" | "thread.turn-intent.reorder" | "thread.turn-queue.pause" | "thread.user-input.dismiss" | "thread.scheduled-wake.schedule" | "thread.scheduled-wake.cancel" | "thread.snooze" | "thread.unsnooze" | "thread.reorder" | "thread.interaction-mode.set" | "thread.native-mode.set" | "thread.runtime-mode.set" | "thread.context.compact" | "thread.archive" | "thread.unarchive" | "thread.settle" | "thread.unsettle" | "machineSettings.update" | "machineSettings.keybindings.write" | "machineSettings.wallpaper.adopt" | "machineSettings.browser.cookies.import" | "projects.config.update" | "plugins.settingsCards.updateValues" | "plugins.installed.setEnabled" | "project.schedule.save" | "project.schedule.delete" | "project.create" | "projects.conversation.ensure" | "project.folder.attach" | "project.archive" | "project.unarchive" | "project.reorder" | "project.folder.detach" | "project.folder.relocate" | "thread.session.stop" | "thread.session.restart" | "plugins.notifications.markRead" | "plugins.notifications.clear" | "memory.experience.record" | "memory.experience.revise" | "memory.experience.forget" | "memory.experience.restore" | "wiki.page.create" | "wiki.page.edit" | "wiki.page.restore" | "wiki.handbook.publish" | "wiki.handbook.revert" | "work.item.create" | "work.item.update" | "work.item.claim" | "work.relation.add" | "work.relation.remove" | "communication.post.send" | "member.create" | "member.update" | "member.remove" | "member.restore" | "member.trial.record" | "member.externalWake.deliver" | "work.line.create" | "work.line.update" | "work.line.archive" | "work.line.restore" | "work.line.pause" | "work.line.resume" | "work.item.archive" | "work.item.unarchive" | "work.label.create" | "work.label.update" | "work.label.remove" | "work.label.restore" | "work.state.create" | "work.state.update" | "work.state.remove" | "work.state.restore" | "work.machine-task.create" | "thread.meta.update" | "thread.members.update" | "thread.turn.start" | "communication.message.send" | "communication.delivery.bind" | "thread.user-input.respond" | "thread.browser.capture" | "thread.browser.recording.start" | "thread.browser.recording.stop" | "thread.browser.download.cancel" | "thread.worktree.prepare"> }>, readonly conflictChoice?: "project" | "machine" };
|
|
362
|
+
export type PluginsInstalledListOutput = { readonly plugins: ReadonlyArray<{ readonly canonicalMachineEntryId?: string, readonly signIns?: ReadonlyArray<{ readonly name: string, readonly label?: string, readonly labelKey?: string, readonly state: string, readonly account?: string, readonly kind: string, readonly redirectUri?: string, readonly attempt?: { readonly attemptId: string, readonly state: string, readonly error?: string } }>, readonly publicServices?: ReadonlyArray<{ readonly service: string, readonly publicPath: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> | undefined, readonly slashCommands?: ReadonlyArray<{ readonly name: string, readonly kind: "prompt" | "action", readonly description?: string | undefined, readonly argumentHint?: string | undefined, readonly translations?: { readonly [x: string]: { readonly description?: string | undefined, readonly argumentHint?: string | undefined } } | undefined }> | undefined, readonly entryId: string, readonly revision?: string | undefined, readonly pluginId: string, readonly presentation?: { readonly displayName: string, readonly description?: string | undefined, readonly translations?: { readonly [x: string]: { readonly displayName?: string | undefined, readonly description?: string | undefined } } | undefined, readonly author?: string | undefined, readonly homepage?: string | undefined, readonly icon?: string | undefined } | undefined, readonly origin: "builtin" | "package" | "directory" | "project" | "thread", readonly location: string | null, readonly version: string | null, readonly packageName?: string | null | undefined, readonly loadedAt?: string | undefined, readonly configRevision?: number | undefined, readonly uiDebug?: { readonly enabled: boolean, readonly phase: "idle" | "building" | "error", readonly error: string | null } | undefined, readonly uiRevision?: string | undefined, readonly uiDigest?: string | undefined, readonly assetDigests?: { readonly [x: string]: string } | undefined, readonly proxyIds?: ReadonlyArray<string> | undefined, readonly state: "loaded" | "failed" | "stopped" | "disabled", readonly contributions: ReadonlyArray<{ readonly kind: "signIn" | "toolkit" | "reactor" | "settingsCard" | "modelPreset" | "command" | "cli" | "interval" | "executor" | "protocolConversion" | "skill" | "filePreviewConverter" | "systemPrompt.section" | "systemPrompt.context" | "messages.beforeSend" | "slashCommand" | "tools.guard" | "ui.seats" | "agentPresets" | "sessionProjections" | "continuation", readonly name: string, readonly role?: string }>, readonly failure: { readonly phase: string, readonly message: string, readonly kind?: string | undefined } | null, readonly threadId: string | null, readonly projectId?: string | null | undefined, readonly projectPlugin?: { readonly needsApproval: boolean, readonly conflictWithMachine: boolean, readonly conflictChoice?: "project" | "machine" | undefined } | undefined, readonly runtimeStats?: { readonly eventsHandled: number, readonly toolCalls: number, readonly processesSpawned?: number | undefined, readonly lastEventAt: string | null } | undefined, readonly removable?: boolean | undefined, readonly permissions?: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "attention.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: ReadonlyArray<"conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view"> } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<string> } | { readonly kind: "unknown", readonly reportedKind: string }> | undefined, readonly ui?: { readonly assetsPath: string, readonly entry?: string | undefined, readonly pages?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined, readonly chrome?: "host" | "own" | undefined, readonly placements?: ReadonlyArray<"web-pages" | "mobile-home" | "mobile-pages"> | undefined }> | undefined, readonly panels?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined }> | undefined, readonly providerSettings?: ReadonlyArray<{ readonly id: string, readonly driverKind: string, readonly ownedFields?: { readonly add?: ReadonlyArray<string> | undefined, readonly edit?: ReadonlyArray<string> | undefined } | undefined, readonly ownedEnvironment?: ReadonlyArray<string> | undefined, readonly genericFields?: "inline" | "collapsed" | undefined }> | undefined, readonly threadAnnotations?: { readonly command: string } | undefined, readonly appearance?: { readonly name: string, readonly wallpaper: string, readonly dimLight?: number | undefined, readonly dimDark?: number | undefined, readonly blur?: number | undefined } | undefined, readonly toolViews?: ReadonlyArray<{ readonly tool: string, readonly view?: string | undefined, readonly placement?: "inline" | "deliverable" | undefined, readonly titleKey?: string | undefined, readonly titleBy?: { readonly arg: string, readonly titleKeys: { readonly [x: string]: string } } | undefined, readonly summary?: ReadonlyArray<string> | undefined }> | undefined, readonly chatWatchers?: ReadonlyArray<string> | undefined, readonly teamViews?: ReadonlyArray<{ readonly key: string, readonly scopes: ReadonlyArray<"team" | "project">, readonly titleKey: string, readonly icon?: string | undefined, readonly order?: number | undefined }> | undefined, readonly development?: { readonly command: string, readonly args: ReadonlyArray<string>, readonly watch: ReadonlyArray<string> } | undefined } | undefined, readonly executors?: ReadonlyArray<unknown> | undefined }>, readonly nextCursor?: string | null };
|
|
363
|
+
export type PluginsInstalledSetEnabledInput = { readonly entryId: string, readonly enabled: boolean, readonly revision: string, readonly force?: boolean, readonly acceptedPermissions?: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "attention.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: readonly ["conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view", ...Array<"conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view">] } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<"thread.artifact.deliver" | "thread.create" | "thread.fork" | "thread.import" | "thread.external-messages.append" | "thread.turn.interrupt" | "thread.approval.respond" | "thread.turn-intent.run" | "thread.turn-intent.cancel" | "thread.turn-queue.resume" | "thread.turn-intent.set-paused" | "thread.turn-intent.reorder" | "thread.turn-queue.pause" | "thread.user-input.dismiss" | "thread.scheduled-wake.schedule" | "thread.scheduled-wake.cancel" | "thread.snooze" | "thread.unsnooze" | "thread.reorder" | "thread.interaction-mode.set" | "thread.native-mode.set" | "thread.runtime-mode.set" | "thread.context.compact" | "thread.archive" | "thread.unarchive" | "thread.settle" | "thread.unsettle" | "machineSettings.update" | "machineSettings.keybindings.write" | "machineSettings.wallpaper.adopt" | "machineSettings.browser.cookies.import" | "projects.config.update" | "plugins.settingsCards.updateValues" | "plugins.installed.setEnabled" | "project.schedule.save" | "project.schedule.delete" | "project.create" | "projects.conversation.ensure" | "project.folder.attach" | "project.archive" | "project.unarchive" | "project.reorder" | "project.folder.detach" | "project.folder.relocate" | "thread.session.stop" | "thread.session.restart" | "plugins.notifications.markRead" | "plugins.notifications.clear" | "memory.experience.record" | "memory.overview.edit" | "memory.overview.restore" | "memory.experience.revise" | "memory.experience.forget" | "memory.experience.restore" | "wiki.page.create" | "wiki.page.edit" | "wiki.page.restore" | "wiki.handbook.publish" | "wiki.handbook.revert" | "work.item.create" | "work.item.update" | "work.item.claim" | "work.relation.add" | "work.relation.remove" | "communication.post.send" | "member.create" | "member.update" | "member.remove" | "member.restore" | "member.trial.record" | "member.externalWake.deliver" | "work.line.create" | "work.line.update" | "work.line.archive" | "work.line.restore" | "work.line.pause" | "work.line.resume" | "work.item.archive" | "work.item.unarchive" | "work.label.create" | "work.label.update" | "work.label.remove" | "work.label.restore" | "work.state.create" | "work.state.update" | "work.state.remove" | "work.state.restore" | "work.machine-task.create" | "thread.meta.update" | "thread.members.update" | "thread.turn.start" | "communication.message.send" | "communication.delivery.bind" | "thread.user-input.respond" | "thread.browser.capture" | "thread.browser.recording.start" | "thread.browser.recording.stop" | "thread.browser.download.cancel" | "thread.worktree.prepare"> }>, readonly conflictChoice?: "project" | "machine" };
|
|
364
364
|
export type PluginsInstalledSetEnabledOutput = { readonly revision: string };
|
|
365
|
-
export type PluginsProjectInstallMachineInput = { readonly projectId: string, readonly pluginId: string, readonly pluginDir: string, readonly acceptedPermissions: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: readonly ["conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view", ...Array<"conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view">] } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<"thread.artifact.deliver" | "thread.create" | "thread.fork" | "thread.import" | "thread.external-messages.append" | "thread.turn.interrupt" | "thread.approval.respond" | "thread.turn-intent.run" | "thread.turn-intent.cancel" | "thread.turn-queue.resume" | "thread.turn-intent.set-paused" | "thread.turn-intent.reorder" | "thread.turn-queue.pause" | "thread.user-input.dismiss" | "thread.scheduled-wake.schedule" | "thread.scheduled-wake.cancel" | "thread.snooze" | "thread.unsnooze" | "thread.reorder" | "thread.interaction-mode.set" | "thread.native-mode.set" | "thread.runtime-mode.set" | "thread.context.compact" | "thread.archive" | "thread.unarchive" | "thread.settle" | "thread.unsettle" | "machineSettings.update" | "machineSettings.keybindings.write" | "machineSettings.wallpaper.adopt" | "machineSettings.browser.cookies.import" | "projects.config.update" | "plugins.settingsCards.updateValues" | "plugins.installed.setEnabled" | "project.schedule.save" | "project.schedule.delete" | "project.create" | "projects.conversation.ensure" | "project.folder.attach" | "project.archive" | "project.unarchive" | "project.reorder" | "project.folder.detach" | "project.folder.relocate" | "thread.session.stop" | "thread.session.restart" | "plugins.notifications.markRead" | "plugins.notifications.clear" | "memory.experience.record" | "memory.experience.revise" | "memory.experience.forget" | "memory.experience.restore" | "wiki.page.create" | "wiki.page.edit" | "wiki.page.restore" | "wiki.handbook.publish" | "wiki.handbook.revert" | "work.item.create" | "work.item.update" | "work.item.claim" | "work.relation.add" | "work.relation.remove" | "communication.post.send" | "member.create" | "member.update" | "member.remove" | "member.restore" | "member.trial.record" | "member.externalWake.deliver" | "work.line.create" | "work.line.update" | "work.line.archive" | "work.line.restore" | "work.line.pause" | "work.line.resume" | "work.item.archive" | "work.item.unarchive" | "work.label.create" | "work.label.update" | "work.label.remove" | "work.label.restore" | "work.state.create" | "work.state.update" | "work.state.remove" | "work.state.restore" | "work.machine-task.create" | "thread.meta.update" | "thread.members.update" | "thread.turn.start" | "communication.message.send" | "communication.delivery.bind" | "thread.user-input.respond" | "thread.browser.capture" | "thread.browser.recording.start" | "thread.browser.recording.stop" | "thread.browser.download.cancel" | "thread.worktree.prepare"> }>, readonly revision: string };
|
|
365
|
+
export type PluginsProjectInstallMachineInput = { readonly projectId: string, readonly pluginId: string, readonly pluginDir: string, readonly acceptedPermissions: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "attention.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: readonly ["conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view", ...Array<"conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view">] } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<"thread.artifact.deliver" | "thread.create" | "thread.fork" | "thread.import" | "thread.external-messages.append" | "thread.turn.interrupt" | "thread.approval.respond" | "thread.turn-intent.run" | "thread.turn-intent.cancel" | "thread.turn-queue.resume" | "thread.turn-intent.set-paused" | "thread.turn-intent.reorder" | "thread.turn-queue.pause" | "thread.user-input.dismiss" | "thread.scheduled-wake.schedule" | "thread.scheduled-wake.cancel" | "thread.snooze" | "thread.unsnooze" | "thread.reorder" | "thread.interaction-mode.set" | "thread.native-mode.set" | "thread.runtime-mode.set" | "thread.context.compact" | "thread.archive" | "thread.unarchive" | "thread.settle" | "thread.unsettle" | "machineSettings.update" | "machineSettings.keybindings.write" | "machineSettings.wallpaper.adopt" | "machineSettings.browser.cookies.import" | "projects.config.update" | "plugins.settingsCards.updateValues" | "plugins.installed.setEnabled" | "project.schedule.save" | "project.schedule.delete" | "project.create" | "projects.conversation.ensure" | "project.folder.attach" | "project.archive" | "project.unarchive" | "project.reorder" | "project.folder.detach" | "project.folder.relocate" | "thread.session.stop" | "thread.session.restart" | "plugins.notifications.markRead" | "plugins.notifications.clear" | "memory.experience.record" | "memory.overview.edit" | "memory.overview.restore" | "memory.experience.revise" | "memory.experience.forget" | "memory.experience.restore" | "wiki.page.create" | "wiki.page.edit" | "wiki.page.restore" | "wiki.handbook.publish" | "wiki.handbook.revert" | "work.item.create" | "work.item.update" | "work.item.claim" | "work.relation.add" | "work.relation.remove" | "communication.post.send" | "member.create" | "member.update" | "member.remove" | "member.restore" | "member.trial.record" | "member.externalWake.deliver" | "work.line.create" | "work.line.update" | "work.line.archive" | "work.line.restore" | "work.line.pause" | "work.line.resume" | "work.item.archive" | "work.item.unarchive" | "work.label.create" | "work.label.update" | "work.label.remove" | "work.label.restore" | "work.state.create" | "work.state.update" | "work.state.remove" | "work.state.restore" | "work.machine-task.create" | "thread.meta.update" | "thread.members.update" | "thread.turn.start" | "communication.message.send" | "communication.delivery.bind" | "thread.user-input.respond" | "thread.browser.capture" | "thread.browser.recording.start" | "thread.browser.recording.stop" | "thread.browser.download.cancel" | "thread.worktree.prepare"> }>, readonly revision: string };
|
|
366
366
|
export type PluginsProjectInstallMachineOutput = { readonly entryId: string, readonly installedPath: string };
|
|
367
367
|
export type PluginsProjectScanInput = { readonly projectId: string };
|
|
368
368
|
export type PluginsProjectScanOutput = { };
|
|
@@ -403,11 +403,11 @@ export type WakesCancelOutput = { readonly wake: { readonly createdBy?: { readon
|
|
|
403
403
|
export type WakesListInput = { readonly threadId?: string, readonly state?: "scheduled" | "fired" | "cancelled" };
|
|
404
404
|
export type WakesListOutput = { readonly wakes: ReadonlyArray<{ readonly createdBy?: { readonly kind: "thread", readonly threadId: string } | { readonly kind: "person" } | { readonly kind: "plugin", readonly pluginId: string }, readonly wakeId: string, readonly threadId: string, readonly dueAt: string, readonly note: string, readonly state: "scheduled" | "fired" | "cancelled", readonly afterServerUpgrade: boolean, readonly firedAt: string | null, readonly cancelledAt: string | null, readonly upgrade?: { readonly requestedVersion: string, readonly updateId: string | null, readonly expectsVerdict?: boolean | undefined, readonly outcome: { readonly status: "committed" | "rolled-back" | "failed" | "unknown", readonly targetVersion?: string | undefined, readonly fromVersion: string | null, readonly reason: string | null } | null }, readonly repeat?: { readonly cron: string, readonly timeZone: string } }> };
|
|
405
405
|
export type SchedulesListInput = { readonly projectId: string };
|
|
406
|
-
export type SchedulesListOutput = { readonly schedules: ReadonlyArray<{ readonly scheduleId: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace: "project" | "worktree", readonly presetId?: string, readonly enabled: boolean, readonly nextRunAt: string, readonly createdBy: { readonly kind: "person" } | { readonly kind: "thread", readonly threadId: string } | { readonly kind: "plugin", readonly pluginId: string, readonly entryId?: string }, readonly createdAt: string, readonly updatedAt: string }> };
|
|
406
|
+
export type SchedulesListOutput = { readonly schedules: ReadonlyArray<{ readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly scheduleId: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace: "project" | "worktree", readonly presetId?: string, readonly enabled: boolean, readonly nextRunAt: string, readonly createdBy: { readonly kind: "person" } | { readonly kind: "thread", readonly threadId: string } | { readonly kind: "plugin", readonly pluginId: string, readonly entryId?: string }, readonly createdAt: string, readonly updatedAt: string }> };
|
|
407
407
|
export type SchedulesRunsListInput = { readonly scheduleId: string, readonly limit?: number };
|
|
408
408
|
export type SchedulesRunsListOutput = { readonly runs: ReadonlyArray<{ readonly runId: string, readonly scheduleId: string, readonly projectId: string, readonly scheduledFor: string, readonly outcome: "started" | "skipped" | "failed", readonly threadId: string | null, readonly detail: string | null, readonly at: string, readonly threadStatus: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | null }> };
|
|
409
409
|
export type SchedulesSaveInput = { readonly scheduleId?: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace?: "project" | "worktree", readonly presetId?: string, readonly enabled?: boolean, readonly requestId?: string };
|
|
410
|
-
export type SchedulesSaveOutput = { readonly schedule: { readonly scheduleId: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace: "project" | "worktree", readonly presetId?: string, readonly enabled: boolean, readonly nextRunAt: string, readonly createdBy: { readonly kind: "person" } | { readonly kind: "thread", readonly threadId: string } | { readonly kind: "plugin", readonly pluginId: string, readonly entryId?: string }, readonly createdAt: string, readonly updatedAt: string } };
|
|
410
|
+
export type SchedulesSaveOutput = { readonly schedule: { readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly scheduleId: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace: "project" | "worktree", readonly presetId?: string, readonly enabled: boolean, readonly nextRunAt: string, readonly createdBy: { readonly kind: "person" } | { readonly kind: "thread", readonly threadId: string } | { readonly kind: "plugin", readonly pluginId: string, readonly entryId?: string }, readonly createdAt: string, readonly updatedAt: string } };
|
|
411
411
|
export type SchedulesDeleteInput = { readonly scheduleId: string, readonly requestId?: string };
|
|
412
412
|
export type SchedulesDeleteOutput = { readonly scheduleId: string };
|
|
413
413
|
export type SkillsListInput = { readonly threadId?: string };
|
|
@@ -415,16 +415,16 @@ export type SkillsListOutput = { readonly skills: ReadonlyArray<{ readonly name:
|
|
|
415
415
|
export type SkillsReadInput = { readonly threadId?: string, readonly name: string, readonly textOffset?: number, readonly textLimit?: number };
|
|
416
416
|
export type SkillsReadOutput = { readonly name: string, readonly directory: string, readonly content: string, readonly contentWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } };
|
|
417
417
|
export type MemoryExperiencesListInput = { readonly projectId: string, readonly status?: "active" | "forgotten" | "erased", readonly order?: "created" | "leastRecentlyUsed", readonly cursor?: string, readonly limit?: number };
|
|
418
|
-
export type MemoryExperiencesListOutput = { readonly items: ReadonlyArray<{ readonly experienceId: string, readonly status: "active" | "forgotten" | "erased", readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly sourceThreadId: string | null, readonly sourceTurnId: string | null, readonly currentRevision: number, readonly createdAt: string, readonly updatedAt: string, readonly supersedes: ReadonlyArray<string>, readonly supersededBy?: ReadonlyArray<string>, readonly bodyState: "present" | "erased" | "unavailable", readonly usage?: { readonly searched: number, readonly read: number, readonly delivered: number, readonly lastUsedAt: string | null, readonly approximate: true }, readonly title?: string, readonly applicability?: string, readonly excerpt: string | null }>, readonly nextCursor: string | null };
|
|
419
|
-
export type MemoryExperiencesGetInput = { readonly projectId: string, readonly experienceId: string, readonly textOffset?: number, readonly textLimit?: number };
|
|
420
|
-
export type MemoryExperiencesGetOutput = { readonly experienceId: string, readonly status: "active" | "forgotten" | "erased", readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly sourceThreadId: string | null, readonly sourceTurnId: string | null, readonly currentRevision: number, readonly createdAt: string, readonly updatedAt: string, readonly supersedes: ReadonlyArray<string>, readonly supersededBy?: ReadonlyArray<string>, readonly bodyState: "present" | "erased" | "unavailable", readonly usage?: { readonly searched: number, readonly read: number, readonly delivered: number, readonly lastUsedAt: string | null, readonly approximate: true }, readonly title?: string, readonly applicability?: string, readonly body: string | null, readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly forgottenAt: string | null, readonly forgottenBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" } | null, readonly erasedAt: string | null, readonly erasedBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" } | null };
|
|
418
|
+
export type MemoryExperiencesListOutput = { readonly items: ReadonlyArray<{ readonly experienceId: string, readonly status: "active" | "forgotten" | "erased", readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly sourceEnvironmentId?: string | null, readonly sourceThreadId: string | null, readonly sourceTurnId: string | null, readonly currentRevision: number, readonly createdAt: string, readonly updatedAt: string, readonly supersedes: ReadonlyArray<string>, readonly supersededBy?: ReadonlyArray<string>, readonly bodyState: "present" | "erased" | "unavailable", readonly usage?: { readonly searched: number, readonly read: number, readonly delivered: number, readonly lastUsedAt: string | null, readonly approximate: true }, readonly title?: string, readonly applicability?: string, readonly excerpt: string | null }>, readonly nextCursor: string | null };
|
|
419
|
+
export type MemoryExperiencesGetInput = { readonly includeEraseImpact?: boolean, readonly projectId: string, readonly experienceId: string, readonly textOffset?: number, readonly textLimit?: number };
|
|
420
|
+
export type MemoryExperiencesGetOutput = { readonly eraseImpact?: { readonly confirmation: string, readonly pages: ReadonlyArray<{ readonly pageId: string, readonly currentRevision: number, readonly revisions: ReadonlyArray<number> }>, readonly overview: { readonly eraseGeneration: number, readonly currentRevision: number, readonly revisions: ReadonlyArray<number> } | null }, readonly experienceId: string, readonly status: "active" | "forgotten" | "erased", readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly sourceEnvironmentId?: string | null, readonly sourceThreadId: string | null, readonly sourceTurnId: string | null, readonly currentRevision: number, readonly createdAt: string, readonly updatedAt: string, readonly supersedes: ReadonlyArray<string>, readonly supersededBy?: ReadonlyArray<string>, readonly bodyState: "present" | "erased" | "unavailable", readonly usage?: { readonly searched: number, readonly read: number, readonly delivered: number, readonly lastUsedAt: string | null, readonly approximate: true }, readonly title?: string, readonly applicability?: string, readonly body: string | null, readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly forgottenAt: string | null, readonly forgottenBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" } | null, readonly erasedAt: string | null, readonly erasedBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" } | null };
|
|
421
421
|
export type MemoryExperiencesHistoryInput = { readonly projectId: string, readonly experienceId: string, readonly cursor?: string, readonly limit?: number, readonly textOffset?: number, readonly textLimit?: number };
|
|
422
422
|
export type MemoryExperiencesHistoryOutput = { readonly items: ReadonlyArray<{ readonly experienceId: string, readonly revision: number, readonly baseRevision: number | null, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly title?: string, readonly applicability?: string, readonly body: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null };
|
|
423
423
|
export type MemoryRevisionsGetInput = { readonly projectId: string, readonly experienceId: string, readonly revision: number, readonly textOffset?: number, readonly textLimit?: number };
|
|
424
424
|
export type MemoryRevisionsGetOutput = { readonly experienceId: string, readonly revision: number, readonly baseRevision: number | null, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly title?: string, readonly applicability?: string, readonly body: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } };
|
|
425
425
|
export type MemorySearchInput = { readonly projectId: string, readonly text: string, readonly mode?: "recall" | "keyword", readonly limit?: number };
|
|
426
426
|
export type MemorySearchOutput = { readonly status: "ok" | "unavailable", readonly hits: ReadonlyArray<{ readonly subject: { readonly kind: "experience", readonly id: string } | { readonly kind: "page", readonly id: string }, readonly revision: number, readonly title?: string, readonly headingPath: string, readonly snippet: string, readonly score: number, readonly unmatched?: true }>, readonly code?: "fts_unavailable" | "index_damaged" | "not_initialized" };
|
|
427
|
-
export type MemoryExperiencesRecordInput = { readonly projectId: string, readonly requestId?: string, readonly experienceId?: string, readonly body: string, readonly title?: string, readonly applicability?: string, readonly
|
|
427
|
+
export type MemoryExperiencesRecordInput = { readonly projectId: string, readonly requestId?: string, readonly experienceId?: string, readonly body: string, readonly title?: string, readonly applicability?: string, readonly supersedes?: ReadonlyArray<string> };
|
|
428
428
|
export type MemoryExperiencesRecordOutput = { readonly sequence: number, readonly result: { readonly experienceId: string, readonly revision: number }, readonly replayed?: boolean } | { readonly _tag: "queued", readonly outboxId: string, readonly homeEnvironmentId: string };
|
|
429
429
|
export type MemoryExperiencesReviseInput = { readonly projectId: string, readonly requestId?: string, readonly experienceId: string, readonly baseRevision: number, readonly body: string, readonly title?: string, readonly applicability?: string };
|
|
430
430
|
export type MemoryExperiencesReviseOutput = { readonly sequence: number, readonly result: { readonly experienceId: string, readonly revision: number }, readonly replayed?: boolean };
|
|
@@ -432,19 +432,19 @@ export type MemoryExperiencesForgetInput = { readonly projectId: string, readonl
|
|
|
432
432
|
export type MemoryExperiencesForgetOutput = { readonly sequence: number, readonly result: { readonly experienceId: string, readonly status: "active" | "forgotten" }, readonly replayed?: boolean };
|
|
433
433
|
export type MemoryExperiencesRestoreInput = { readonly projectId: string, readonly requestId?: string, readonly experienceId: string };
|
|
434
434
|
export type MemoryExperiencesRestoreOutput = { readonly sequence: number, readonly result: { readonly experienceId: string, readonly status: "active" | "forgotten" }, readonly replayed?: boolean };
|
|
435
|
-
export type MemoryExperiencesEraseInput = { readonly projectId: string, readonly requestId?: string, readonly experienceId: string };
|
|
435
|
+
export type MemoryExperiencesEraseInput = { readonly projectId: string, readonly requestId?: string, readonly experienceId: string, readonly cascadeConfirmation?: string };
|
|
436
436
|
export type MemoryExperiencesEraseOutput = { readonly sequence: number, readonly result: { readonly experienceId: string }, readonly replayed?: boolean };
|
|
437
437
|
export type MemoryPagesListInput = { readonly projectId: string, readonly status?: "active" | "erased", readonly cursor?: string, readonly limit?: number };
|
|
438
438
|
export type MemoryPagesListOutput = { readonly items: ReadonlyArray<{ readonly pageId: string, readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress" | "doc" | "skill", readonly parentPageId: string | null, readonly currentRevision: number, readonly locked: boolean, readonly archivedAt: string | null, readonly erasedAt: string | null, readonly createdAt: string, readonly revisedAt: string, readonly updatedAt: string, readonly title: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly excerpt: string | null }>, readonly nextCursor: string | null };
|
|
439
439
|
export type MemoryPagesGetInput = { readonly projectId: string, readonly pageId: string, readonly textOffset?: number, readonly textLimit?: number };
|
|
440
|
-
export type MemoryPagesGetOutput = { readonly pageId: string, readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress" | "doc" | "skill", readonly parentPageId: string | null, readonly currentRevision: number, readonly locked: boolean, readonly archivedAt: string | null, readonly erasedAt: string | null, readonly createdAt: string, readonly revisedAt: string, readonly updatedAt: string, readonly title: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly body: string | null, readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly erasedBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" } | null };
|
|
440
|
+
export type MemoryPagesGetOutput = { readonly pageId: string, readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress" | "doc" | "skill", readonly parentPageId: string | null, readonly currentRevision: number, readonly locked: boolean, readonly archivedAt: string | null, readonly erasedAt: string | null, readonly createdAt: string, readonly revisedAt: string, readonly updatedAt: string, readonly title: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly derivedFromExperienceIds?: ReadonlyArray<string>, readonly body: string | null, readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly erasedBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" } | null };
|
|
441
441
|
export type MemoryPagesHistoryInput = { readonly projectId: string, readonly pageId: string, readonly cursor?: string, readonly limit?: number, readonly textOffset?: number, readonly textLimit?: number };
|
|
442
|
-
export type MemoryPagesHistoryOutput = { readonly items: ReadonlyArray<{ readonly pageId: string, readonly revision: number, readonly baseRevision: number | null, readonly restoredFromRevision: number | null, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly title: string | null, readonly changeSummary: string | null, readonly body: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null };
|
|
442
|
+
export type MemoryPagesHistoryOutput = { readonly items: ReadonlyArray<{ readonly pageId: string, readonly revision: number, readonly baseRevision: number | null, readonly restoredFromRevision: number | null, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly derivedFromExperienceIds?: ReadonlyArray<string>, readonly createdAt: string, readonly title: string | null, readonly changeSummary: string | null, readonly body: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null };
|
|
443
443
|
export type MemoryPageRevisionsGetInput = { readonly projectId: string, readonly pageId: string, readonly revision: number, readonly textOffset?: number, readonly textLimit?: number };
|
|
444
|
-
export type MemoryPageRevisionsGetOutput = { readonly pageId: string, readonly revision: number, readonly baseRevision: number | null, readonly restoredFromRevision: number | null, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly title: string | null, readonly changeSummary: string | null, readonly body: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } };
|
|
445
|
-
export type MemoryPagesCreateInput = { readonly projectId: string, readonly requestId?: string, readonly pageId?: string, readonly kind: "doc" | "skill", readonly parentPageId?: string, readonly title: string, readonly body: string, readonly changeSummary?: string };
|
|
444
|
+
export type MemoryPageRevisionsGetOutput = { readonly pageId: string, readonly revision: number, readonly baseRevision: number | null, readonly restoredFromRevision: number | null, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly derivedFromExperienceIds?: ReadonlyArray<string>, readonly createdAt: string, readonly title: string | null, readonly changeSummary: string | null, readonly body: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } };
|
|
445
|
+
export type MemoryPagesCreateInput = { readonly projectId: string, readonly requestId?: string, readonly pageId?: string, readonly kind: "doc" | "skill", readonly parentPageId?: string, readonly title: string, readonly body: string, readonly changeSummary?: string, readonly derivedFromExperienceIds?: ReadonlyArray<string> };
|
|
446
446
|
export type MemoryPagesCreateOutput = { readonly sequence: number, readonly result: { readonly pageId: string, readonly revision: number }, readonly replayed?: boolean };
|
|
447
|
-
export type MemoryPagesEditInput = { readonly projectId: string, readonly requestId?: string, readonly pageId: string, readonly baseRevision: number, readonly title?: string, readonly body: string, readonly changeSummary?: string };
|
|
447
|
+
export type MemoryPagesEditInput = { readonly projectId: string, readonly requestId?: string, readonly pageId: string, readonly baseRevision: number, readonly title?: string, readonly body: string, readonly changeSummary?: string, readonly derivedFromExperienceIds?: ReadonlyArray<string> };
|
|
448
448
|
export type MemoryPagesEditOutput = { readonly sequence: number, readonly result: { readonly pageId: string, readonly revision: number }, readonly replayed?: boolean };
|
|
449
449
|
export type MemoryPagesRestoreInput = { readonly projectId: string, readonly requestId?: string, readonly pageId: string, readonly baseRevision: number, readonly fromRevision: number };
|
|
450
450
|
export type MemoryPagesRestoreOutput = { readonly sequence: number, readonly result: { readonly pageId: string, readonly revision: number }, readonly replayed?: boolean };
|
|
@@ -457,7 +457,7 @@ export type ProjectsArtifactsListOutput = { readonly items: ReadonlyArray<{ read
|
|
|
457
457
|
export type ThreadsArtifactsDeliverInput = { readonly threadId: string, readonly requestId: string, readonly workItemId?: string, readonly path?: string, readonly files?: ReadonlyArray<{ readonly path: string, readonly title?: string, readonly note?: string }>, readonly title?: string, readonly note?: string };
|
|
458
458
|
export type ThreadsArtifactsDeliverOutput = { readonly sequence: number, readonly result: { readonly deliveryId?: string, readonly files: ReadonlyArray<{ readonly attachmentId: string, readonly name: string, readonly sizeBytes: number, readonly alreadyDelivered: boolean, readonly homeSync?: "delivered" | "pending" | "needs-attention" | "refused" }> }, readonly replayed?: boolean };
|
|
459
459
|
export type MemoryHandbookGetInput = { readonly projectId: string, readonly textOffset?: number, readonly textLimit?: number };
|
|
460
|
-
export type MemoryHandbookGetOutput = { readonly head: { readonly current: { readonly release: number, readonly pages: ReadonlyArray<{ readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress", readonly pageId: string, readonly revision: number }>, readonly itemCount: number, readonly itemHighWater: number, readonly requiresAck: boolean, readonly restoredFromRelease: number | null, readonly sourceExperience: { readonly experienceId: string, readonly revision: number } | null, readonly publishedBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly publishedAt: string }, readonly pages: ReadonlyArray<{ readonly pageId: string, readonly revision: number, readonly baseRevision: number | null, readonly restoredFromRevision: number | null, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly title: string | null, readonly changeSummary: string | null, readonly body: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }> } | null };
|
|
460
|
+
export type MemoryHandbookGetOutput = { readonly head: { readonly current: { readonly release: number, readonly pages: ReadonlyArray<{ readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress", readonly pageId: string, readonly revision: number }>, readonly itemCount: number, readonly itemHighWater: number, readonly requiresAck: boolean, readonly restoredFromRelease: number | null, readonly sourceExperience: { readonly experienceId: string, readonly revision: number } | null, readonly publishedBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly publishedAt: string }, readonly pages: ReadonlyArray<{ readonly pageId: string, readonly revision: number, readonly baseRevision: number | null, readonly restoredFromRevision: number | null, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly derivedFromExperienceIds?: ReadonlyArray<string>, readonly createdAt: string, readonly title: string | null, readonly changeSummary: string | null, readonly body: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }> } | null };
|
|
461
461
|
export type MemoryHandbookReleasesListInput = { readonly projectId: string, readonly cursor?: string, readonly limit?: number };
|
|
462
462
|
export type MemoryHandbookReleasesListOutput = { readonly items: ReadonlyArray<{ readonly release: number, readonly pages: ReadonlyArray<{ readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress", readonly pageId: string, readonly revision: number }>, readonly itemCount: number, readonly itemHighWater: number, readonly requiresAck: boolean, readonly restoredFromRelease: number | null, readonly sourceExperience: { readonly experienceId: string, readonly revision: number } | null, readonly publishedBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly publishedAt: string }>, readonly nextCursor: string | null };
|
|
463
463
|
export type MemoryHandbookReleasesGetInput = { readonly projectId: string, readonly release: number };
|
|
@@ -466,8 +466,20 @@ export type MemoryHandbookPublishInput = { readonly projectId: string, readonly
|
|
|
466
466
|
export type MemoryHandbookPublishOutput = { readonly sequence: number, readonly result: { readonly changed: boolean, readonly release: number, readonly pages: ReadonlyArray<{ readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress", readonly pageId: string, readonly revision: number }> }, readonly replayed?: boolean };
|
|
467
467
|
export type MemoryHandbookRevertInput = { readonly projectId: string, readonly requestId?: string, readonly expectedRelease: number, readonly toRelease: number, readonly requireAck?: boolean };
|
|
468
468
|
export type MemoryHandbookRevertOutput = { readonly sequence: number, readonly result: { readonly changed: boolean, readonly release: number, readonly pages: ReadonlyArray<{ readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress", readonly pageId: string, readonly revision: number }> }, readonly replayed?: boolean };
|
|
469
|
+
export type MemoryOverviewGetInput = { readonly projectId: string };
|
|
470
|
+
export type MemoryOverviewGetOutput = { readonly projectId: string, readonly currentRevision: number | null, readonly eraseGeneration: number, readonly body: string | null, readonly bodyState: "present" | "unavailable" };
|
|
471
|
+
export type MemoryOverviewListRevisionsInput = { readonly projectId: string, readonly beforeRevision?: number, readonly limit?: number };
|
|
472
|
+
export type MemoryOverviewListRevisionsOutput = { readonly items: ReadonlyArray<{ readonly revision: number, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly restoredFromRevision?: number, readonly derivedFromExperienceIds?: ReadonlyArray<string> }>, readonly nextBeforeRevision: number | null };
|
|
473
|
+
export type MemoryOverviewGetRevisionInput = { readonly projectId: string, readonly revision: number };
|
|
474
|
+
export type MemoryOverviewGetRevisionOutput = { readonly revision: number, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly restoredFromRevision?: number, readonly derivedFromExperienceIds?: ReadonlyArray<string>, readonly body: string | null, readonly bodyState: "present" | "unavailable", readonly changeSummary: string | null };
|
|
475
|
+
export type MemoryOverviewEditInput = { readonly projectId: string, readonly requestId?: string, readonly baseRevision: number | null, readonly eraseGeneration?: number, readonly body: string, readonly changeSummary?: string, readonly derivedFromExperienceIds?: ReadonlyArray<string> };
|
|
476
|
+
export type MemoryOverviewEditOutput = { readonly sequence: number, readonly result: { readonly projectId: string, readonly currentRevision: number | null, readonly eraseGeneration: number }, readonly replayed?: boolean };
|
|
477
|
+
export type MemoryOverviewRestoreInput = { readonly projectId: string, readonly requestId?: string, readonly baseRevision: number | null, readonly eraseGeneration?: number, readonly revision: number };
|
|
478
|
+
export type MemoryOverviewRestoreOutput = { readonly sequence: number, readonly result: { readonly projectId: string, readonly currentRevision: number | null, readonly eraseGeneration: number }, readonly replayed?: boolean };
|
|
479
|
+
export type MemoryOverviewEraseInput = { readonly projectId: string, readonly requestId?: string };
|
|
480
|
+
export type MemoryOverviewEraseOutput = { readonly sequence: number, readonly result: { readonly projectId: string, readonly currentRevision: number | null, readonly eraseGeneration: number }, readonly replayed?: boolean };
|
|
469
481
|
export type WorkRemoteAgentPendingGetInput = { readonly projectId: string, readonly principalId?: string, readonly memberId?: string };
|
|
470
|
-
export type WorkRemoteAgentPendingGetOutput = { readonly batchId: string, readonly threadWakesUnavailable?: true, readonly threadBatchId?: string, readonly snapshotSequence: number, readonly work: { readonly count: number, readonly truncated: boolean, readonly items: ReadonlyArray<{ readonly workItemId: string, readonly blocked: boolean, readonly groupId?: string, readonly round?: number, readonly memberId?: string }> }, readonly wakes: { readonly count: number, readonly truncated: boolean, readonly items: ReadonlyArray<{ readonly wakeId: string, readonly reason: string, readonly memberId?: string, readonly pausedThreads?: ReadonlyArray<string>, readonly targetThreadId?: string, readonly targetKey?: string, readonly groupId?: string, readonly groupWorkLineId?: string }> }, readonly machineTasks?: { readonly count: number, readonly truncated: boolean, readonly items: ReadonlyArray<{ readonly workItemId: string, readonly actionId: string, readonly input?: { readonly projectTask?: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number }, readonly instanceId?: string, readonly variant?: string, readonly targetVersion?: string, readonly command?: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number, readonly minutes?: number }, readonly status: "queued" | "running", readonly autoApproved?: true, readonly accountOriginEnvironmentId?: string, readonly rememberProject?: boolean, readonly approval?: string }> } };
|
|
482
|
+
export type WorkRemoteAgentPendingGetOutput = { readonly batchId: string, readonly threadWakesUnavailable?: true, readonly threadBatchId?: string, readonly snapshotSequence: number, readonly work: { readonly count: number, readonly truncated: boolean, readonly items: ReadonlyArray<{ readonly workItemId: string, readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly workLineId?: string, readonly blocked: boolean, readonly groupId?: string, readonly round?: number, readonly memberId?: string }> }, readonly wakes: { readonly count: number, readonly truncated: boolean, readonly items: ReadonlyArray<{ readonly wakeId: string, readonly reason: string, readonly memberId?: string, readonly pausedThreads?: ReadonlyArray<string>, readonly targetThreadId?: string, readonly targetKey?: string, readonly groupId?: string, readonly groupWorkLineId?: string }> }, readonly machineTasks?: { readonly count: number, readonly truncated: boolean, readonly items: ReadonlyArray<{ readonly workItemId: string, readonly actionId: string, readonly input?: { readonly projectTask?: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number }, readonly instanceId?: string, readonly variant?: string, readonly targetVersion?: string, readonly command?: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number, readonly minutes?: number }, readonly status: "queued" | "running", readonly autoApproved?: true, readonly accountOriginEnvironmentId?: string, readonly rememberProject?: boolean, readonly approval?: string }> } };
|
|
471
483
|
export type WorkStatesListInput = { readonly projectId: string, readonly includeRemoved?: boolean };
|
|
472
484
|
export type WorkStatesListOutput = { readonly states: ReadonlyArray<{ readonly stateId: string, readonly name: string, readonly description: string, readonly color: string, readonly group: "backlog" | "unstarted" | "started" | "completed" | "cancelled", readonly sequence: number, readonly isDefault: boolean, readonly defaultKey?: "backlog" | "todo" | "in-progress" | "done" | "cancelled" | undefined, readonly removedAt?: string }>, readonly snapshotSequence: number };
|
|
473
485
|
export type WorkItemsListInput = { readonly projectId: string, readonly stateIds?: ReadonlyArray<string>, readonly stateGroups?: ReadonlyArray<"backlog" | "unstarted" | "started" | "completed" | "cancelled">, readonly assignees?: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "member", readonly memberId: string } | "me" | "none">, readonly workLineIds?: ReadonlyArray<"none" | string>, readonly parentIds?: ReadonlyArray<string | "none">, readonly priorities?: ReadonlyArray<"urgent" | "high" | "medium" | "low" | "none">, readonly labelIds?: ReadonlyArray<string>, readonly archived?: "exclude" | "include" | "only", readonly orderBy?: "created" | "updated" | "priority", readonly cursor?: string | null, readonly limit?: number };
|
|
@@ -481,7 +493,7 @@ export type WorkCommentsListOutput = { readonly items: ReadonlyArray<{ readonly
|
|
|
481
493
|
export type WorkCommentsGetInput = { readonly projectId: string, readonly commentId: string, readonly textOffset?: number, readonly textLimit?: number };
|
|
482
494
|
export type WorkCommentsGetOutput = { readonly comment: { readonly commentId: string, readonly workItemId: string, readonly projectId: string, readonly sequence: number, readonly revision: number, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly body: string | null, readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly bodyState: "present" | "erased" | "unavailable", readonly mentions: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string }>, readonly parentId: string | null, readonly createdAt: string, readonly editedAt: string | null }, readonly snapshotSequence: number };
|
|
483
495
|
export type WorkHistoryListInput = { readonly projectId: string, readonly workItemId?: string, readonly workLineId?: string, readonly afterSequence?: number, readonly order?: "oldest" | "newest", readonly cursor?: string | null, readonly limit?: number };
|
|
484
|
-
export type WorkHistoryListOutput = { readonly items: ReadonlyArray<{ readonly sequence: number, readonly workItemId: string | null, readonly actor: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly viaPlugin?: string, readonly at: string, readonly target: { readonly kind: "item" | "comment" | "state" | "label" | "relation" | "work-line" | "member", readonly id: string }, readonly verb: "created" | "updated" | "claimed" | "commented" | "relation-added" | "relation-removed" | "archived" | "restored" | "paused" | "resumed" | "trial-passed" | "trial-failed" | "trial-skipped" | "dispatch-decided" | "offline-rejected" | "imported" | "import-diverged" | "delivered", readonly changes: ReadonlyArray<{ readonly field: "title" | "description" | "body", readonly oldRevision: number | null, readonly newRevision: number | null } | { readonly field: "state", readonly old: { readonly stateId: string, readonly group: "backlog" | "unstarted" | "started" | "completed" | "cancelled" } | null, readonly new: { readonly stateId: string, readonly group: "backlog" | "unstarted" | "started" | "completed" | "cancelled" } | null } | { readonly field: "assignees", readonly old: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "member", readonly memberId: string }>, readonly new: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "member", readonly memberId: string }> } | { readonly field: "mentions", readonly old: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string }>, readonly new: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string }> } | { readonly field: "completedAt", readonly old: string | null, readonly new: string | null } | { readonly field: "workLine", readonly old: string | null, readonly new: string | null } | { readonly field: "parent", readonly old: string | null, readonly new: string | null } | { readonly field: "parent-start", readonly byChild: string } | { readonly field: "name", readonly old: string | null, readonly new: string } | { readonly field: "lead", readonly old: string | null, readonly new: string | null } | { readonly field: "members", readonly added: ReadonlyArray<string>, readonly removed: ReadonlyArray<string> } | { readonly field: "priority", readonly old: "urgent" | "high" | "medium" | "low" | "none", readonly new: "urgent" | "high" | "medium" | "low" | "none" } | { readonly field: "labels", readonly added: ReadonlyArray<string>, readonly removed: ReadonlyArray<string> } | { readonly field: "member", readonly memberId: string } | { readonly field: "note", readonly text: string } | { readonly field: "dispatch", readonly environmentId: string, readonly outcome: "thread-opened" | "woken" | "skipped", readonly reason?: "busy" | "project-not-ready" | "thread-unavailable" | "member-not-ready" | "binding-changed", readonly detail?: "no-model" | "no-workspace", readonly threadId?: string, readonly memberId?: string } | { readonly field: "offline-rejection", readonly capabilityId: string, readonly operationId: string, readonly sourceEnvironmentId: string, readonly reason: string, readonly input: string } | { readonly field: "import", readonly importId: string, readonly sourceEnvironmentId: string, readonly sourceSequenceId: number } | { readonly field: "delivery", readonly postId: string, readonly files: ReadonlyArray<string> }> }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
|
|
496
|
+
export type WorkHistoryListOutput = { readonly items: ReadonlyArray<{ readonly sequence: number, readonly workItemId: string | null, readonly actor: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly viaPlugin?: string, readonly at: string, readonly target: { readonly kind: "item" | "comment" | "state" | "label" | "relation" | "work-line" | "member", readonly id: string }, readonly verb: "created" | "updated" | "claimed" | "commented" | "relation-added" | "relation-removed" | "archived" | "restored" | "paused" | "resumed" | "trial-passed" | "trial-failed" | "trial-skipped" | "dispatch-decided" | "offline-rejected" | "imported" | "import-diverged" | "delivered", readonly changes: ReadonlyArray<{ readonly field: "title" | "description" | "body", readonly oldRevision: number | null, readonly newRevision: number | null } | { readonly field: "state", readonly old: { readonly stateId: string, readonly group: "backlog" | "unstarted" | "started" | "completed" | "cancelled" } | null, readonly new: { readonly stateId: string, readonly group: "backlog" | "unstarted" | "started" | "completed" | "cancelled" } | null } | { readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly field: "assignees", readonly old: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "member", readonly memberId: string }>, readonly new: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "member", readonly memberId: string }> } | { readonly field: "mentions", readonly old: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string }>, readonly new: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string }> } | { readonly field: "completedAt", readonly old: string | null, readonly new: string | null } | { readonly field: "workLine", readonly old: string | null, readonly new: string | null } | { readonly field: "parent", readonly old: string | null, readonly new: string | null } | { readonly field: "parent-start", readonly byChild: string } | { readonly field: "name", readonly old: string | null, readonly new: string } | { readonly field: "lead", readonly old: string | null, readonly new: string | null } | { readonly field: "members", readonly added: ReadonlyArray<string>, readonly removed: ReadonlyArray<string> } | { readonly field: "priority", readonly old: "urgent" | "high" | "medium" | "low" | "none", readonly new: "urgent" | "high" | "medium" | "low" | "none" } | { readonly field: "labels", readonly added: ReadonlyArray<string>, readonly removed: ReadonlyArray<string> } | { readonly field: "member", readonly memberId: string } | { readonly field: "note", readonly text: string } | { readonly field: "dispatch", readonly environmentId: string, readonly outcome: "thread-opened" | "woken" | "skipped", readonly reason?: "busy" | "project-not-ready" | "thread-unavailable" | "member-not-ready" | "binding-changed", readonly detail?: "no-model" | "no-workspace", readonly threadId?: string, readonly memberId?: string } | { readonly field: "offline-rejection", readonly capabilityId: string, readonly operationId: string, readonly sourceEnvironmentId: string, readonly reason: string, readonly input: string } | { readonly field: "import", readonly importId: string, readonly sourceEnvironmentId: string, readonly sourceSequenceId: number } | { readonly field: "delivery", readonly postId: string, readonly files: ReadonlyArray<string> }> }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
|
|
485
497
|
export type WorkItemsCreateInput = { readonly projectId: string, readonly requestId?: string, readonly workItemId?: string, readonly title: string, readonly description?: string, readonly stateId?: string, readonly assignees?: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "member", readonly memberId: string }>, readonly workLineId?: string, readonly parentId?: string, readonly priority?: "urgent" | "high" | "medium" | "low" | "none", readonly labelIds?: ReadonlyArray<string> };
|
|
486
498
|
export type WorkItemsCreateOutput = { readonly sequence: number, readonly result: { readonly workItemId: string, readonly sequenceId: number, readonly version: number, readonly revision: number }, readonly replayed?: boolean };
|
|
487
499
|
export type WorkItemsUpdateInput = { readonly projectId: string, readonly requestId?: string, readonly workItemId: string, readonly expectedVersion: number, readonly title?: string, readonly description?: string, readonly stateId?: string, readonly assignees?: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "member", readonly memberId: string }>, readonly workLineId?: string | null, readonly parentId?: string | null, readonly priority?: "urgent" | "high" | "medium" | "low" | "none", readonly labelIds?: ReadonlyArray<string> };
|
|
@@ -545,9 +557,9 @@ export type MembersRestoreOutput = { readonly sequence: number, readonly result:
|
|
|
545
557
|
export type MembersTrialRecordInput = { readonly projectId: string, readonly requestId?: string, readonly memberId: string, readonly outcome: "passed" | "failed" | "skipped" | "not-run", readonly summary?: string };
|
|
546
558
|
export type MembersTrialRecordOutput = { readonly sequence: number, readonly result: { readonly memberId: string }, readonly replayed?: boolean };
|
|
547
559
|
export type MembersRuntimeListInput = { readonly projectId: string };
|
|
548
|
-
export type MembersRuntimeListOutput = { readonly items: ReadonlyArray<{ readonly memberId: string, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly lastAction?: string, readonly lastActionLabel?: { readonly name: string, readonly path?: string, readonly detail?: string }, readonly requestSummary?: string, readonly waitId?: string, readonly workItemId?: string, readonly threadId: string, readonly environmentId: string, readonly online: boolean, readonly stale?: boolean, readonly since: string, readonly seenAt: string, readonly state?: "waiting" | "error" | "stuck" | "offline" | "paused" | "working" | "idle", readonly openWorkItemCount?: number, readonly openWorkItemIds?: ReadonlyArray<string> }> };
|
|
560
|
+
export type MembersRuntimeListOutput = { readonly items: ReadonlyArray<{ readonly memberId: string, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly lastAction?: string, readonly lastActionLabel?: { readonly name: string, readonly path?: string, readonly detail?: string }, readonly requestSummary?: string, readonly waitingPeople?: { readonly people: ReadonlyArray<{ readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly count: number }>, readonly unassignedCount: number }, readonly waitId?: string, readonly workItemId?: string, readonly threadId: string, readonly environmentId: string, readonly online: boolean, readonly stale?: boolean, readonly since: string, readonly seenAt: string, readonly state?: "waiting" | "error" | "stuck" | "offline" | "paused" | "working" | "idle", readonly openWorkItemCount?: number, readonly openWorkItemIds?: ReadonlyArray<string> }> };
|
|
549
561
|
export type MembersRuntimeSubscribeInput = { readonly projectId: string };
|
|
550
|
-
export type MembersRuntimeSubscribeOutput = { readonly _tag: "snapshot", readonly value: { readonly items: ReadonlyArray<{ readonly memberId: string, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly lastAction?: string, readonly lastActionLabel?: { readonly name: string, readonly path?: string, readonly detail?: string }, readonly requestSummary?: string, readonly waitId?: string, readonly workItemId?: string, readonly threadId: string, readonly environmentId: string, readonly online: boolean, readonly stale?: boolean, readonly since: string, readonly seenAt: string, readonly state?: "waiting" | "error" | "stuck" | "offline" | "paused" | "working" | "idle", readonly openWorkItemCount?: number, readonly openWorkItemIds?: ReadonlyArray<string> }> } } | { readonly _tag: "synchronized" };
|
|
562
|
+
export type MembersRuntimeSubscribeOutput = { readonly _tag: "snapshot", readonly value: { readonly items: ReadonlyArray<{ readonly memberId: string, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly lastAction?: string, readonly lastActionLabel?: { readonly name: string, readonly path?: string, readonly detail?: string }, readonly requestSummary?: string, readonly waitingPeople?: { readonly people: ReadonlyArray<{ readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly count: number }>, readonly unassignedCount: number }, readonly waitId?: string, readonly workItemId?: string, readonly threadId: string, readonly environmentId: string, readonly online: boolean, readonly stale?: boolean, readonly since: string, readonly seenAt: string, readonly state?: "waiting" | "error" | "stuck" | "offline" | "paused" | "working" | "idle", readonly openWorkItemCount?: number, readonly openWorkItemIds?: ReadonlyArray<string> }> } } | { readonly _tag: "synchronized" };
|
|
551
563
|
export type WorkMachineTasksCreateInput = { readonly projectId: string, readonly requestId?: string, readonly workItemId?: string, readonly environmentId: string, readonly actionId: string, readonly input?: { readonly projectTask?: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number }, readonly instanceId?: string, readonly variant?: string, readonly targetVersion?: string, readonly command?: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number, readonly minutes?: number }, readonly title?: string, readonly approval?: string };
|
|
552
564
|
export type WorkMachineTasksCreateOutput = { readonly sequence: number, readonly result: { readonly workItemId: string, readonly sequenceId: number, readonly status: "awaiting-approval" | "queued", readonly approvalReason?: "remote-caller" | "account-connection-inactive" | "other-account" }, readonly replayed?: boolean };
|
|
553
565
|
export type WorkMachineTasksRunInput = { readonly projectId: string, readonly requestId?: string, readonly workItemId?: string, readonly machine: string, readonly task?: string, readonly variant?: string, readonly command?: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number, readonly waitSeconds?: number };
|
|
@@ -677,9 +689,9 @@ export type CommunicationPostsDeleteOutput = { readonly sequence: number, readon
|
|
|
677
689
|
export type CommunicationPostsBindInput = { readonly projectId: string, readonly requestId?: string, readonly postId: string, readonly targetKey: string, readonly to: CommunicationPostBindParticipantInput };
|
|
678
690
|
export type CommunicationPostsBindOutput = { readonly sequence: number, readonly result: CommunicationPostBindResult, readonly replayed?: boolean };
|
|
679
691
|
export type CommunicationPostsGetInput = { readonly refs?: ReadonlyArray<CommunicationPostReplyInput>, readonly recordIds?: ReadonlyArray<string>, readonly projectId?: string, readonly textOffset?: number, readonly textLimit?: number };
|
|
680
|
-
export type CommunicationPostsGetOutput = ReadonlyArray<{ readonly kind: "post", readonly postId: string, readonly projectId: string, readonly sequence: number, readonly anchor: { readonly kind: "work-item", readonly workItemId: string } | { readonly kind: "thread", readonly environmentId: string, readonly threadId: string } | { readonly kind: "person", readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "principal", readonly principalId: string, readonly memberId?: string }, readonly inGroup?: true, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly notification?: CommunicationPostNotification, readonly notificationResolution?: CommunicationPostNotificationResolution, readonly authorName?: string, readonly authorMemberId?: string, readonly authorRemoteThreadId?: string, readonly replyTo?: { readonly kind: "post", readonly id: string } | { readonly kind: "record", readonly id: string } | { readonly kind: "comment", readonly id: string }, readonly delivery?: "quiet" | "wake" | "steer", readonly mentions?: ReadonlyArray<{ readonly kind: "member", readonly memberId: string } | { readonly kind: "person", readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "thread", readonly environmentId: string, readonly threadId: string } | { readonly kind: "principal", readonly principalId: string, readonly memberId?: 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 path?: string } | { 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, readonly path?: string }>, readonly purpose?: "artifact", readonly targets: ReadonlyArray<{ readonly key: string, readonly role: "addressee" | "mention" | "reply" | "coordinator" | "copy", readonly participant: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly scope?: { readonly workLineId: string }, readonly readAt: string | null, readonly readTurnId?: string, readonly deliveryState?: "claimed" | "accepted" | "failed" | "withdrawn" | "held", readonly deliveryFailure?: { readonly reason: string, readonly recovery?: string } }>, readonly revision: number, readonly text: string | null, readonly bodyState: "present" | "withdrawn" | "deleted" | "unavailable", readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly createdAt: string } | { readonly kind: "record", readonly recordId: string, readonly from: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly to: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly replyTo: string | null, readonly text: string | null, readonly delivery: "quiet" | "wake" | "steer", readonly createdAt: string, readonly stages: { readonly persisted: string, readonly handedOff: { readonly certainty: "not-dispatched" | "confirmed" | "unknown", readonly evidence?: "pickup" | undefined, readonly intentId?: string | undefined, readonly turnId?: string | undefined, readonly at?: string | undefined }, readonly replied: { readonly recordId?: string | undefined, readonly turnId?: string | undefined, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | "expired" | "cancelled" | undefined, readonly at: string } | null }, readonly idempotencyKey?: string | undefined, readonly runId?: string | undefined, readonly toRole?: string | 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_ } | 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 path?: string } | { 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, readonly path?: string }> | undefined, readonly bodyState: "present" | "withdrawn" | "deleted" | "unavailable", readonly projectId: string | null, readonly sequence: number, readonly claim: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly group?: { readonly threadId: string }, readonly mentions?: ReadonlyArray<{ readonly memberId: string }>, readonly targets?: ReadonlyArray<{ readonly key: string, readonly role: "process" | "background", readonly member?: string, readonly participant: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly scope: { readonly workLineId: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly stages: { readonly handedOff: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly replied: { readonly recordId: string, readonly at: string } | null } }>, readonly workItem?: { readonly workItemId: string, readonly commentId?: string }, readonly childReport?: CommunicationChildReport } | { readonly kind: "comment", readonly commentId: string, readonly workItemId: string, readonly projectId: string, readonly sequence: number, readonly revision: number, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly body: string | null, readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly bodyState: "present" | "erased" | "unavailable", readonly mentions: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string }>, readonly parentId: string | null, readonly createdAt: string, readonly editedAt: string | null }>;
|
|
692
|
+
export type CommunicationPostsGetOutput = ReadonlyArray<{ readonly kind: "post", readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly postId: string, readonly projectId: string, readonly sequence: number, readonly anchor: { readonly kind: "work-item", readonly workItemId: string } | { readonly kind: "thread", readonly environmentId: string, readonly threadId: string } | { readonly kind: "person", readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "principal", readonly principalId: string, readonly memberId?: string }, readonly inGroup?: true, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly notification?: CommunicationPostNotification, readonly notificationResolution?: CommunicationPostNotificationResolution, readonly authorName?: string, readonly authorMemberId?: string, readonly authorRemoteThreadId?: string, readonly replyTo?: { readonly kind: "post", readonly id: string } | { readonly kind: "record", readonly id: string } | { readonly kind: "comment", readonly id: string }, readonly delivery?: "quiet" | "wake" | "steer", readonly mentions?: ReadonlyArray<{ readonly kind: "member", readonly memberId: string } | { readonly kind: "person", readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "thread", readonly environmentId: string, readonly threadId: string } | { readonly kind: "principal", readonly principalId: string, readonly memberId?: 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 path?: string } | { 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, readonly path?: string }>, readonly purpose?: "artifact", readonly targets: ReadonlyArray<{ readonly key: string, readonly role: "addressee" | "mention" | "reply" | "coordinator" | "copy", readonly participant: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly scope?: { readonly workLineId: string }, readonly readAt: string | null, readonly readTurnId?: string, readonly deliveryState?: "claimed" | "accepted" | "failed" | "withdrawn" | "held", readonly deliveryFailure?: { readonly reason: string, readonly recovery?: string } }>, readonly revision: number, readonly text: string | null, readonly bodyState: "present" | "withdrawn" | "deleted" | "unavailable", readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly createdAt: string } | { readonly kind: "record", readonly recordId: string, readonly from: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly to: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly replyTo: string | null, readonly text: string | null, readonly delivery: "quiet" | "wake" | "steer", readonly createdAt: string, readonly stages: { readonly persisted: string, readonly handedOff: { readonly certainty: "not-dispatched" | "confirmed" | "unknown", readonly evidence?: "pickup" | undefined, readonly intentId?: string | undefined, readonly turnId?: string | undefined, readonly at?: string | undefined }, readonly replied: { readonly recordId?: string | undefined, readonly turnId?: string | undefined, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | "expired" | "cancelled" | undefined, readonly at: string } | null }, readonly idempotencyKey?: string | undefined, readonly runId?: string | undefined, readonly toRole?: string | 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_ } | 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 path?: string } | { 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, readonly path?: string }> | undefined, readonly bodyState: "present" | "withdrawn" | "deleted" | "unavailable", readonly projectId: string | null, readonly sequence: number, readonly claim: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly group?: { readonly threadId: string }, readonly mentions?: ReadonlyArray<{ readonly memberId: string }>, readonly targets?: ReadonlyArray<{ readonly key: string, readonly role: "process" | "background", readonly member?: string, readonly participant: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly scope: { readonly workLineId: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly stages: { readonly handedOff: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly replied: { readonly recordId: string, readonly at: string } | null } }>, readonly workItem?: { readonly workItemId: string, readonly commentId?: string }, readonly childReport?: CommunicationChildReport } | { readonly kind: "comment", readonly commentId: string, readonly workItemId: string, readonly projectId: string, readonly sequence: number, readonly revision: number, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly body: string | null, readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly bodyState: "present" | "erased" | "unavailable", readonly mentions: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string }>, readonly parentId: string | null, readonly createdAt: string, readonly editedAt: string | null }>;
|
|
681
693
|
export type CommunicationPostsListInput = { readonly projectId: string, readonly since?: string | null, readonly until?: string | null, readonly cursor?: string | null, readonly limit?: number } | { readonly projectId: string, readonly since?: string | null, readonly until?: string | null, readonly cursor?: string | null, readonly limit?: number, readonly threadIds: ReadonlyArray<string> } | { readonly projectId: string, readonly since?: string | null, readonly until?: string | null, readonly cursor?: string | null, readonly limit?: number, readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly projectId: string, readonly since?: string | null, readonly until?: string | null, readonly cursor?: string | null, readonly limit?: number, readonly groupThreadId: string } | { readonly projectId: string, readonly since?: string | null, readonly until?: string | null, readonly cursor?: string | null, readonly limit?: number, readonly workItemId: string };
|
|
682
|
-
export type CommunicationPostsListOutput = { readonly items: ReadonlyArray<{ readonly kind: "post", readonly sequence: number, readonly post: { readonly postId: string, readonly projectId: string, readonly sequence: number, readonly anchor: { readonly kind: "work-item", readonly workItemId: string } | { readonly kind: "thread", readonly environmentId: string, readonly threadId: string } | { readonly kind: "person", readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "principal", readonly principalId: string, readonly memberId?: string }, readonly inGroup?: true, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly notification?: CommunicationPostNotification, readonly notificationResolution?: CommunicationPostNotificationResolution, readonly authorName?: string, readonly authorMemberId?: string, readonly authorRemoteThreadId?: string, readonly replyTo?: { readonly kind: "post", readonly id: string } | { readonly kind: "record", readonly id: string } | { readonly kind: "comment", readonly id: string }, readonly delivery?: "quiet" | "wake" | "steer", readonly mentions?: ReadonlyArray<{ readonly kind: "member", readonly memberId: string } | { readonly kind: "person", readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "thread", readonly environmentId: string, readonly threadId: string } | { readonly kind: "principal", readonly principalId: string, readonly memberId?: 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 path?: string } | { 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, readonly path?: string }>, readonly purpose?: "artifact", readonly targets: ReadonlyArray<{ readonly key: string, readonly role: "addressee" | "mention" | "reply" | "coordinator" | "copy", readonly participant: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly scope?: { readonly workLineId: string }, readonly readAt: string | null, readonly readTurnId?: string, readonly deliveryState?: "claimed" | "accepted" | "failed" | "withdrawn" | "held", readonly deliveryFailure?: { readonly reason: string, readonly recovery?: string } }>, readonly revision: number, readonly bodyState: "present" | "withdrawn" | "deleted" | "unavailable", readonly createdAt: string, readonly textPreview: string | null, readonly textTruncated: boolean } } | { readonly kind: "record", readonly sequence: number, readonly record: { readonly recordId: string, readonly from: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly to: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly replyTo: string | null, readonly delivery: "quiet" | "wake" | "steer", readonly createdAt: string, readonly stages: { readonly persisted: string, readonly handedOff: { readonly certainty: "not-dispatched" | "confirmed" | "unknown", readonly evidence?: "pickup" | undefined, readonly intentId?: string | undefined, readonly turnId?: string | undefined, readonly at?: string | undefined }, readonly replied: { readonly recordId?: string | undefined, readonly turnId?: string | undefined, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | "expired" | "cancelled" | undefined, readonly at: string } | null }, readonly idempotencyKey?: string | undefined, readonly runId?: string | undefined, readonly toRole?: string | 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_ } | 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 path?: string } | { 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, readonly path?: string }> | undefined, readonly bodyState: "present" | "withdrawn" | "deleted" | "unavailable", readonly projectId: string | null, readonly sequence: number, readonly claim: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly group?: { readonly threadId: string }, readonly mentions?: ReadonlyArray<{ readonly memberId: string }>, readonly targets?: ReadonlyArray<{ readonly key: string, readonly role: "process" | "background", readonly member?: string, readonly participant: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly scope: { readonly workLineId: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly stages: { readonly handedOff: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly replied: { readonly recordId: string, readonly at: string } | null } }>, readonly workItem?: { readonly workItemId: string, readonly commentId?: string }, readonly childReport?: CommunicationChildReport, readonly textPreview: string | null, readonly textTruncated: boolean } } | { readonly kind: "comment", readonly sequence: number, readonly comment: { readonly commentId: string, readonly workItemId: string, readonly projectId: string, readonly sequence: number, readonly revision: number, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly body: string | null, readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly bodyState: "present" | "erased" | "unavailable", readonly mentions: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string }>, readonly parentId: string | null, readonly createdAt: string, readonly editedAt: string | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
|
|
694
|
+
export type CommunicationPostsListOutput = { readonly items: ReadonlyArray<{ readonly kind: "post", readonly sequence: number, readonly post: { readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly postId: string, readonly projectId: string, readonly sequence: number, readonly anchor: { readonly kind: "work-item", readonly workItemId: string } | { readonly kind: "thread", readonly environmentId: string, readonly threadId: string } | { readonly kind: "person", readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "principal", readonly principalId: string, readonly memberId?: string }, readonly inGroup?: true, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly notification?: CommunicationPostNotification, readonly notificationResolution?: CommunicationPostNotificationResolution, readonly authorName?: string, readonly authorMemberId?: string, readonly authorRemoteThreadId?: string, readonly replyTo?: { readonly kind: "post", readonly id: string } | { readonly kind: "record", readonly id: string } | { readonly kind: "comment", readonly id: string }, readonly delivery?: "quiet" | "wake" | "steer", readonly mentions?: ReadonlyArray<{ readonly kind: "member", readonly memberId: string } | { readonly kind: "person", readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "thread", readonly environmentId: string, readonly threadId: string } | { readonly kind: "principal", readonly principalId: string, readonly memberId?: 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 path?: string } | { 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, readonly path?: string }>, readonly purpose?: "artifact", readonly targets: ReadonlyArray<{ readonly key: string, readonly role: "addressee" | "mention" | "reply" | "coordinator" | "copy", readonly participant: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly scope?: { readonly workLineId: string }, readonly readAt: string | null, readonly readTurnId?: string, readonly deliveryState?: "claimed" | "accepted" | "failed" | "withdrawn" | "held", readonly deliveryFailure?: { readonly reason: string, readonly recovery?: string } }>, readonly revision: number, readonly bodyState: "present" | "withdrawn" | "deleted" | "unavailable", readonly createdAt: string, readonly textPreview: string | null, readonly textTruncated: boolean } } | { readonly kind: "record", readonly sequence: number, readonly record: { readonly recordId: string, readonly from: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly to: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly replyTo: string | null, readonly delivery: "quiet" | "wake" | "steer", readonly createdAt: string, readonly stages: { readonly persisted: string, readonly handedOff: { readonly certainty: "not-dispatched" | "confirmed" | "unknown", readonly evidence?: "pickup" | undefined, readonly intentId?: string | undefined, readonly turnId?: string | undefined, readonly at?: string | undefined }, readonly replied: { readonly recordId?: string | undefined, readonly turnId?: string | undefined, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | "expired" | "cancelled" | undefined, readonly at: string } | null }, readonly idempotencyKey?: string | undefined, readonly runId?: string | undefined, readonly toRole?: string | 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_ } | 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 path?: string } | { 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, readonly path?: string }> | undefined, readonly bodyState: "present" | "withdrawn" | "deleted" | "unavailable", readonly projectId: string | null, readonly sequence: number, readonly claim: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly group?: { readonly threadId: string }, readonly mentions?: ReadonlyArray<{ readonly memberId: string }>, readonly targets?: ReadonlyArray<{ readonly key: string, readonly role: "process" | "background", readonly member?: string, readonly participant: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly scope: { readonly workLineId: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly stages: { readonly handedOff: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly replied: { readonly recordId: string, readonly at: string } | null } }>, readonly workItem?: { readonly workItemId: string, readonly commentId?: string }, readonly childReport?: CommunicationChildReport, readonly textPreview: string | null, readonly textTruncated: boolean } } | { readonly kind: "comment", readonly sequence: number, readonly comment: { readonly commentId: string, readonly workItemId: string, readonly projectId: string, readonly sequence: number, readonly revision: number, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly body: string | null, readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly bodyState: "present" | "erased" | "unavailable", readonly mentions: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string }>, readonly parentId: string | null, readonly createdAt: string, readonly editedAt: string | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
|
|
683
695
|
export type CommunicationPostsMarkReadInput = { readonly projectId: string, readonly requestId?: string, readonly items: ReadonlyArray<CommunicationPostMarkReadItem> };
|
|
684
696
|
export type CommunicationPostsMarkReadOutput = { readonly sequence: number, readonly result: CommunicationPostMarkReadResult, readonly replayed?: boolean };
|
|
685
697
|
export type MembersExternalWakesClaimInput = { readonly requestId?: string };
|
|
@@ -724,29 +736,35 @@ export type ProjectsSharedSpacesLocalStatusGetInput = { readonly projectId: stri
|
|
|
724
736
|
export type ProjectsSharedSpacesLocalStatusGetOutput = { readonly items: ReadonlyArray<{ readonly projectId: string, readonly spaceId: string, readonly folderId: string | null, readonly canonicalRoot: string | null, readonly attachState: "unattached" | "attaching" | "ready" | "detaching" | "failed", readonly lastSyncedOid: string | null, readonly lastSyncedAt: string | null, readonly hasPendingOutbox: boolean, readonly pendingOutboxCommitOid: string | null, readonly blockedFiles: ReadonlyArray<{ readonly relativePath: string, readonly reason: "busy" | "modified-during-stage" | "baseline-mismatch", readonly recoveryPath?: string | null }>, readonly oversizedFiles: ReadonlyArray<{ readonly relativePath: string, readonly size: number, readonly previouslyTracked: boolean }>, readonly skippedNestedGitPaths: ReadonlyArray<string>, readonly inFlightPhase: "preflight" | "pulling" | "staging" | "pushing" | "materializing" | null, readonly bytesTransferred: number, readonly bytesTotal: number, readonly lastError: string | null }> };
|
|
725
737
|
export type ProjectsSharedSpacesLocalStatusSubscribeInput = { readonly projectId: string, readonly spaceId?: string };
|
|
726
738
|
export type ProjectsSharedSpacesLocalStatusSubscribeOutput = { readonly _tag: "snapshot", readonly value: { readonly items: ReadonlyArray<{ readonly projectId: string, readonly spaceId: string, readonly folderId: string | null, readonly canonicalRoot: string | null, readonly attachState: "unattached" | "attaching" | "ready" | "detaching" | "failed", readonly lastSyncedOid: string | null, readonly lastSyncedAt: string | null, readonly hasPendingOutbox: boolean, readonly pendingOutboxCommitOid: string | null, readonly blockedFiles: ReadonlyArray<{ readonly relativePath: string, readonly reason: "busy" | "modified-during-stage" | "baseline-mismatch", readonly recoveryPath?: string | null }>, readonly oversizedFiles: ReadonlyArray<{ readonly relativePath: string, readonly size: number, readonly previouslyTracked: boolean }>, readonly skippedNestedGitPaths: ReadonlyArray<string>, readonly inFlightPhase: "preflight" | "pulling" | "staging" | "pushing" | "materializing" | null, readonly bytesTransferred: number, readonly bytesTotal: number, readonly lastError: string | null }> } } | { readonly _tag: "synchronized" };
|
|
739
|
+
export type AttentionPendingListInput = { readonly projectId?: string, readonly kind?: "approval" | "question" | "decision" | "plan" | "mention" | "work" | "failure" | "remote" | "acceptance", readonly snoozed?: boolean, readonly workLineId?: string, readonly cursor?: string | null, readonly limit?: number };
|
|
740
|
+
export type AttentionPendingListOutput = { readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly kind?: "approval" | "question" | "decision" | "plan" | "mention" | "work" | "failure" | "remote" | "acceptance", readonly workLineId?: string, readonly items: ReadonlyArray<{ readonly key: { readonly kind: "approval" | "question" | "decision" | "plan" | "mention" | "work" | "failure" | "remote" | "acceptance", readonly id: string }, readonly projectId: string, readonly homeProjectId?: string, readonly createdAt: string | null, readonly recipient?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly snoozedUntil?: string, readonly snoozeKey?: { readonly kind: "approval" | "question" | "decision" | "plan" | "mention" | "work" | "failure" | "remote" | "acceptance", readonly id: string }, readonly threadId?: string, readonly requestId?: string, readonly activityId?: string, readonly asynchronous?: boolean, readonly workItemId?: string, readonly workLineId?: string, readonly memberId?: string, readonly postId?: string, readonly recordId?: string, readonly sourceEnvironmentId?: string, readonly projectHomeEnvironmentId?: string, readonly summary?: string, readonly count?: number }>, readonly total: number, readonly notificationKeys?: ReadonlyArray<string>, readonly threadProjects?: ReadonlyArray<{ readonly threadId: string, readonly projectId: string }>, readonly nextCursor: string | null, readonly remoteWaits: ReadonlyArray<{ readonly key: { readonly kind: "approval" | "question" | "decision" | "plan" | "mention" | "work" | "failure" | "remote" | "acceptance", readonly id: string }, readonly projectId: string, readonly homeProjectId?: string, readonly createdAt: string | null, readonly recipient?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly snoozedUntil?: string, readonly snoozeKey?: { readonly kind: "approval" | "question" | "decision" | "plan" | "mention" | "work" | "failure" | "remote" | "acceptance", readonly id: string }, readonly threadId?: string, readonly requestId?: string, readonly activityId?: string, readonly asynchronous?: boolean, readonly workItemId?: string, readonly workLineId?: string, readonly memberId?: string, readonly postId?: string, readonly recordId?: string, readonly sourceEnvironmentId?: string, readonly projectHomeEnvironmentId?: string, readonly summary?: string, readonly count?: number }>, readonly threadCounts: ReadonlyArray<{ readonly threadId: string, readonly projectId?: string, readonly count: number, readonly unassignedCount?: number, readonly workLineId?: string, readonly projectHomeEnvironmentId?: string }>, readonly lineCounts: ReadonlyArray<{ readonly workLineId: string, readonly count: number, readonly projectHomeEnvironmentId?: string }> };
|
|
741
|
+
export type AttentionPendingSubscribeInput = { readonly projectId?: string, readonly kind?: "approval" | "question" | "decision" | "plan" | "mention" | "work" | "failure" | "remote" | "acceptance", readonly snoozed?: boolean, readonly workLineId?: string, readonly limit?: number };
|
|
742
|
+
export type AttentionPendingSubscribeOutput = { readonly _tag: "snapshot", readonly value: { readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly kind?: "approval" | "question" | "decision" | "plan" | "mention" | "work" | "failure" | "remote" | "acceptance", readonly workLineId?: string, readonly items: ReadonlyArray<{ readonly key: { readonly kind: "approval" | "question" | "decision" | "plan" | "mention" | "work" | "failure" | "remote" | "acceptance", readonly id: string }, readonly projectId: string, readonly homeProjectId?: string, readonly createdAt: string | null, readonly recipient?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly snoozedUntil?: string, readonly snoozeKey?: { readonly kind: "approval" | "question" | "decision" | "plan" | "mention" | "work" | "failure" | "remote" | "acceptance", readonly id: string }, readonly threadId?: string, readonly requestId?: string, readonly activityId?: string, readonly asynchronous?: boolean, readonly workItemId?: string, readonly workLineId?: string, readonly memberId?: string, readonly postId?: string, readonly recordId?: string, readonly sourceEnvironmentId?: string, readonly projectHomeEnvironmentId?: string, readonly summary?: string, readonly count?: number }>, readonly total: number, readonly notificationKeys?: ReadonlyArray<string>, readonly threadProjects?: ReadonlyArray<{ readonly threadId: string, readonly projectId: string }>, readonly nextCursor: string | null, readonly remoteWaits: ReadonlyArray<{ readonly key: { readonly kind: "approval" | "question" | "decision" | "plan" | "mention" | "work" | "failure" | "remote" | "acceptance", readonly id: string }, readonly projectId: string, readonly homeProjectId?: string, readonly createdAt: string | null, readonly recipient?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly snoozedUntil?: string, readonly snoozeKey?: { readonly kind: "approval" | "question" | "decision" | "plan" | "mention" | "work" | "failure" | "remote" | "acceptance", readonly id: string }, readonly threadId?: string, readonly requestId?: string, readonly activityId?: string, readonly asynchronous?: boolean, readonly workItemId?: string, readonly workLineId?: string, readonly memberId?: string, readonly postId?: string, readonly recordId?: string, readonly sourceEnvironmentId?: string, readonly projectHomeEnvironmentId?: string, readonly summary?: string, readonly count?: number }>, readonly threadCounts: ReadonlyArray<{ readonly threadId: string, readonly projectId?: string, readonly count: number, readonly unassignedCount?: number, readonly workLineId?: string, readonly projectHomeEnvironmentId?: string }>, readonly lineCounts: ReadonlyArray<{ readonly workLineId: string, readonly count: number, readonly projectHomeEnvironmentId?: string }> } } | { readonly _tag: "synchronized" };
|
|
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
|
+
export type AttentionSnoozeOutput = { readonly sequence: number, readonly result: { }, readonly replayed?: boolean };
|
|
727
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 }> };
|
|
728
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 } };
|
|
729
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 } };
|
|
730
|
-
export type ProjectsMachinesThreadsMessagesListEncodedOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
|
|
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 };
|
|
731
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 };
|
|
732
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 };
|
|
733
|
-
export type ThreadsHistoryEncodedOutput = { readonly snapshotSequence: number, readonly historyEpoch?: string, readonly thread: { readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly actualModel?: { readonly selection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly requested: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly source: "reported" | "echo", readonly turnId?: string | undefined, readonly recordedAt: string } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode?: "default" | "plan" | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly continuationCheck?: ThreadContinuationCheckOrNull_1, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly pendingNotifications?: ReadonlyArray<{ readonly dedupeKey: string, readonly notification: { readonly kind: "child.settled" | "child.failed" | "child.approval" | "child.question" | "child.stopped" | "child.resolved", readonly childThreadId: string, readonly childTitle: string, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string } | { readonly kind: "plugin.notice" | "selfdev.resolved" | "cookie-import.resolved" | "remote.post", readonly sourceThreadId?: string | undefined, readonly sourceTitle?: string | undefined, readonly childThreadId?: string | undefined, readonly childTitle?: string | undefined, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string }, readonly queuedAt: string }> | undefined, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly turnIntents?: ReadonlyArray<{ readonly intentId: string, readonly threadId: string, readonly sequence: number, readonly commandId: string, readonly messageId: string, readonly paused?: boolean, readonly revision?: number, readonly action?: { readonly kind: "steer" | "interrupt", readonly turnId: string, readonly commandId: string, readonly source?: "automatic" } | null, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly legacyModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly runSettings?: { readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly nativeModeId?: string }, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly sourceBlocks?: ReadonlyArray<{ readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly textOffset: number, readonly textLength: number }>, readonly noticesFolded?: true, readonly binding?: { readonly bindingId: string, readonly generation: number, readonly selection: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly compatibility: { readonly match: "native" | "via-adapter" | "unsupported" | "unknown", readonly reasonCode: "native-protocol" | "native-source" | "protocol-conversion" | "wrong-environment" | "resource-missing" | "resource-disabled" | "revision-conflict" | "source-mismatch" | "endpoint-mismatch" | "model-mapping-missing" | "driver-missing" | "driver-unknown" | "driver-identity-mismatch" | "external-endpoint-unsupported" | "protocol-unknown" | "protocol-unsupported" | "auth-unsupported" | "source-ownership-mismatch" | "platform-unsupported" | "version-unknown" | "version-unsupported" | "feature-unsupported" | "feature-unknown" | "capability-validation-failed" | "invalid-options" | "endpoint-invalid", readonly endpointId: string | null, readonly requestedModelId: string | null, readonly effectiveOptions: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly conversion: { readonly id: string, readonly version: string, readonly from: string, readonly to: string, readonly enabled: boolean, readonly capabilities: { readonly text: "supported" | "unsupported" | "unknown", readonly streaming: "supported" | "unsupported" | "unknown", readonly "tool-calls": "supported" | "unsupported" | "unknown", readonly "image-input": "supported" | "unsupported" | "unknown", readonly "audio-input": "supported" | "unsupported" | "unknown", readonly "structured-output": "supported" | "unsupported" | "unknown", readonly reasoning: "supported" | "unsupported" | "unknown" }, readonly limitations: ReadonlyArray<string>, readonly validationRefs: ReadonlyArray<string> } | null, readonly limitations: ReadonlyArray<string>, readonly evidence: ReadonlyArray<{ readonly recordId: string, readonly freshness: "current" | "stale" }>, readonly fingerprint: string | null }, readonly credentialIdentity: { readonly id: string, readonly revision: number } | null, readonly requestedModelId: string, readonly executedModelId: string | null } | null, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly attempt?: { readonly attemptId: string, readonly intentId: string, readonly workerEpoch: number, readonly sourceBindingId: string | null, readonly targetBindingId: string | null, readonly nativeLocator: { readonly sessionId?: string, readonly turnId?: string, readonly generationId?: string } | null, readonly stage: "preparing" | "dispatching" | "running" | "reconciling", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly createdAt: string, readonly updatedAt: string } | null, readonly deliveredTurnId?: string | null, readonly blockedReason?: string | null, readonly replacementIntentId?: string | null, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly scheduledWakes?: ReadonlyArray<{ readonly wakeId: string, readonly threadId: string, readonly dueAt: string, readonly note: string, readonly createdBy: { readonly kind: "thread", readonly threadId: string } | { readonly kind: "person" } | { readonly kind: "plugin", readonly pluginId: string }, readonly state: "scheduled" | "fired" | "cancelled", readonly afterServerUpgrade: boolean, readonly scheduledOnServerVersion: string | null, readonly intentId: string | null, readonly skipped?: true, readonly firedAt: string | null, readonly cancelledAt: string | null, readonly upgrade?: { readonly requestedVersion: string, readonly updateId: string | null, readonly expectsVerdict?: boolean | undefined, readonly outcome: { readonly status: "committed" | "rolled-back" | "failed" | "unknown", readonly targetVersion?: string | undefined, readonly fromVersion: string | null, readonly reason: string | null } | null } | undefined, readonly repeat?: { readonly cron: string, readonly timeZone: string } | undefined, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly turnQueuePaused?: boolean | undefined, readonly turnQueuePauseSource?: "automatic-failure" | "manual" | "unknown" | undefined, readonly acceptedInteractionRequestIds?: ReadonlyArray<string> | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly deletedAt: string | null, readonly messages: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_4 } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string }>, readonly proposedPlans?: ReadonlyArray<{ readonly id: string, readonly turnId: string | null, readonly planMarkdown: string, readonly implementedAt?: string | null | undefined, readonly implementationThreadId?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly activities: ReadonlyArray<{ readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly payload: unknown, readonly turnId: string | null, readonly sequence?: number | undefined, readonly createdAt: string }>, readonly checkpoints: ReadonlyArray<{ readonly turnId: string, readonly checkpointTurnCount: number, readonly checkpointRef: string, readonly status: "ready" | "missing" | "error", readonly files: ReadonlyArray<{ readonly path: string, readonly kind: string, readonly additions: number, readonly deletions: number }>, readonly assistantMessageId: string | null, readonly completedAt: string }>, readonly turnSummaries?: ReadonlyArray<{ readonly turnId: string, readonly userMessageId?: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }>, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> }> | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null }, readonly page?: { readonly beforeCursor: string | null, readonly hasMore: boolean, readonly afterCursor?: string | null, readonly hasNewer?: boolean, readonly boundedHistory?: boolean, readonly history?: { readonly turnIds: ReadonlyArray<string>, readonly messageIds: ReadonlyArray<string>, readonly activityIds: ReadonlyArray<string>, readonly proposedPlanIds: ReadonlyArray<string>, readonly checkpointTurnIds: ReadonlyArray<string>, readonly turnIntentIds: ReadonlyArray<string> }, readonly snapshotSequence: number, readonly threadSequence?: number } | undefined };
|
|
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 };
|
|
734
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;
|
|
735
|
-
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 kind: "restart-resume" } | { readonly kind: "remote-post", 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;
|
|
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;
|
|
736
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 };
|
|
737
|
-
export type ThreadsMessagesListEncodedOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
|
|
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 };
|
|
738
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 }>;
|
|
739
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 };
|
|
740
758
|
export type MachineSettingsEditorsGetEncodedOutput = { readonly availableEditors: ReadonlyArray<"file-manager">, readonly editorDiscovery?: unknown, readonly shellRevealInFileManager?: boolean, readonly shellRevealInFileManagerKind?: "finder" | "file-explorer" | "files" };
|
|
741
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 } } }> };
|
|
742
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 } };
|
|
743
|
-
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 projectCloneInBackground?: boolean, readonly projectMultiFolder?: boolean, readonly workLines?: boolean, readonly workBoard?: 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 };
|
|
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 };
|
|
744
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 }> };
|
|
745
763
|
export type ProvidersSelectionResolveEncodedOutput = { readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly hints?: ReadonlyArray<{ readonly kind: "option-unsupported", readonly model: string | null, readonly optionId: string, readonly stored: string | boolean, readonly effective?: string | boolean } | { readonly kind: "effort-moved", readonly model: string | null, readonly optionId: string, readonly from: string, readonly to: string } | { readonly kind: "model-replaced", readonly from: string, readonly to: string | null }> };
|
|
746
764
|
export type ProvidersSessionsListEncodedOutput = { readonly sessions: ReadonlyArray<{ readonly threadId: string, readonly driver: string, readonly instanceId: string, readonly resumeCursor: unknown | null, readonly status: unknown, readonly lastSeenAt: string }>, readonly nextCursor: string | null };
|
|
747
765
|
export type ProjectsConfigGetEncodedOutput = { readonly actions?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly tasks?: { readonly [x: string]: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly description?: string, readonly timeoutSeconds?: number, readonly variants?: { readonly [x: string]: ReadonlyArray<string> } } }, readonly mcpServers?: { readonly [x: string]: { readonly name: string, readonly transport: { readonly type: "stdio", readonly command: string, readonly args?: ReadonlyArray<string> | undefined, readonly envNames: ReadonlyArray<string> } | { readonly type: "http", readonly url: string, readonly headerNames: ReadonlyArray<string> } | { readonly type: "sse", readonly url: string, readonly headerNames: ReadonlyArray<string> }, readonly enabled?: boolean | undefined, readonly providers?: { readonly [x: string]: boolean } | undefined, readonly catalogId?: string | undefined, readonly oauth?: { readonly status: "none" | "required" | "authorized" } | undefined, readonly addedBy?: { readonly kind: "plugin", readonly pluginId: string } | undefined, readonly missingSecrets?: ReadonlyArray<string> } }, readonly skills?: { readonly [x: string]: { readonly name: string, readonly source: { readonly kind: "inline", readonly skillMd: string } | { readonly kind: "builtin", readonly id: string } | { readonly kind: "catalog", readonly catalogId: string, readonly version: string }, readonly enabled?: boolean | undefined, readonly modelInvocable?: boolean | undefined, readonly userInvocable?: boolean | undefined, readonly providers?: { readonly [x: string]: boolean } | undefined } }, readonly projectId: string, readonly revision: number, readonly source: "home" | "copy", readonly homeEnvironmentId?: string, readonly syncedAt?: string, readonly homeOutdated?: true };
|
|
748
|
-
export type PluginsInstalledListEncodedOutput = { readonly plugins: ReadonlyArray<{ readonly canonicalMachineEntryId?: string, readonly signIns?: ReadonlyArray<{ readonly name: string, readonly label?: string, readonly labelKey?: string, readonly state: string, readonly account?: string, readonly kind: string, readonly redirectUri?: string, readonly attempt?: { readonly attemptId: string, readonly state: string, readonly error?: string } }>, readonly publicServices?: ReadonlyArray<{ readonly service: string, readonly publicPath: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> | undefined, readonly slashCommands?: ReadonlyArray<{ readonly name: string, readonly kind: "prompt" | "action", readonly description?: string | undefined, readonly argumentHint?: string | undefined, readonly translations?: { readonly [x: string]: { readonly description?: string | undefined, readonly argumentHint?: string | undefined } } | undefined }> | undefined, readonly entryId: string, readonly revision?: string | undefined, readonly pluginId: string, readonly presentation?: { readonly displayName: string, readonly description?: string | undefined, readonly translations?: { readonly [x: string]: { readonly displayName?: string | undefined, readonly description?: string | undefined } } | undefined, readonly author?: string | undefined, readonly homepage?: string | undefined, readonly icon?: string | undefined } | undefined, readonly origin: "builtin" | "package" | "directory" | "project" | "thread", readonly location: string | null, readonly version: string | null, readonly packageName?: string | null | undefined, readonly loadedAt?: string | undefined, readonly configRevision?: number | undefined, readonly uiDebug?: { readonly enabled: boolean, readonly phase: "idle" | "building" | "error", readonly error: string | null } | undefined, readonly uiRevision?: string | undefined, readonly uiDigest?: string | undefined, readonly assetDigests?: { readonly [x: string]: string } | undefined, readonly proxyIds?: ReadonlyArray<string> | undefined, readonly state: "loaded" | "failed" | "stopped" | "disabled", readonly contributions: ReadonlyArray<{ readonly kind: "signIn" | "toolkit" | "reactor" | "settingsCard" | "modelPreset" | "command" | "cli" | "interval" | "executor" | "protocolConversion" | "skill" | "filePreviewConverter" | "systemPrompt.section" | "systemPrompt.context" | "messages.beforeSend" | "slashCommand" | "tools.guard" | "ui.seats" | "agentPresets" | "sessionProjections" | "continuation", readonly name: string, readonly role?: string }>, readonly failure: { readonly phase: string, readonly message: string, readonly kind?: string | undefined } | null, readonly threadId: string | null, readonly projectId?: string | null | undefined, readonly projectPlugin?: { readonly needsApproval: boolean, readonly conflictWithMachine: boolean, readonly conflictChoice?: "project" | "machine" | undefined } | undefined, readonly runtimeStats?: { readonly eventsHandled: number, readonly toolCalls: number, readonly processesSpawned?: number | undefined, readonly lastEventAt: string | null } | undefined, readonly removable?: boolean | undefined, readonly permissions?: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: ReadonlyArray<string> } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<string> } | { readonly kind: string }> | undefined, readonly ui?: { readonly assetsPath: string, readonly entry?: string | undefined, readonly pages?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined, readonly chrome?: "host" | "own" | undefined, readonly placements?: ReadonlyArray<"web-pages" | "mobile-home" | "mobile-pages"> | undefined }> | undefined, readonly panels?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined }> | undefined, readonly providerSettings?: ReadonlyArray<{ readonly id: string, readonly driverKind: string, readonly ownedFields?: { readonly add?: ReadonlyArray<string> | undefined, readonly edit?: ReadonlyArray<string> | undefined } | undefined, readonly ownedEnvironment?: ReadonlyArray<string> | undefined, readonly genericFields?: "inline" | "collapsed" | undefined }> | undefined, readonly threadAnnotations?: { readonly command: string } | undefined, readonly appearance?: { readonly name: string, readonly wallpaper: string, readonly dimLight?: number | undefined, readonly dimDark?: number | undefined, readonly blur?: number | undefined } | undefined, readonly toolViews?: ReadonlyArray<{ readonly tool: string, readonly view?: string | undefined, readonly placement?: "inline" | "deliverable" | undefined, readonly titleKey?: string | undefined, readonly titleBy?: { readonly arg: string, readonly titleKeys: { readonly [x: string]: string } } | undefined, readonly summary?: ReadonlyArray<string> | undefined }> | undefined, readonly chatWatchers?: ReadonlyArray<string> | undefined, readonly teamViews?: ReadonlyArray<{ readonly key: string, readonly scopes: ReadonlyArray<"team" | "project">, readonly titleKey: string, readonly icon?: string | undefined, readonly order?: number | undefined }> | undefined, readonly development?: { readonly command: string, readonly args: ReadonlyArray<string>, readonly watch: ReadonlyArray<string> } | undefined } | undefined, readonly executors?: ReadonlyArray<unknown> | undefined }>, readonly nextCursor?: string | null };
|
|
749
|
-
export type SchedulesListEncodedOutput = { readonly schedules: ReadonlyArray<{ readonly scheduleId: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace: "project" | "worktree", readonly presetId?: string, readonly enabled: boolean, readonly nextRunAt: string, readonly createdBy: { readonly kind: "person" } | { readonly kind: "thread", readonly threadId: string } | { readonly kind: "plugin", readonly pluginId: string, readonly entryId?: string }, readonly createdAt: string, readonly updatedAt: string }> };
|
|
766
|
+
export type PluginsInstalledListEncodedOutput = { readonly plugins: ReadonlyArray<{ readonly canonicalMachineEntryId?: string, readonly signIns?: ReadonlyArray<{ readonly name: string, readonly label?: string, readonly labelKey?: string, readonly state: string, readonly account?: string, readonly kind: string, readonly redirectUri?: string, readonly attempt?: { readonly attemptId: string, readonly state: string, readonly error?: string } }>, readonly publicServices?: ReadonlyArray<{ readonly service: string, readonly publicPath: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> | undefined, readonly slashCommands?: ReadonlyArray<{ readonly name: string, readonly kind: "prompt" | "action", readonly description?: string | undefined, readonly argumentHint?: string | undefined, readonly translations?: { readonly [x: string]: { readonly description?: string | undefined, readonly argumentHint?: string | undefined } } | undefined }> | undefined, readonly entryId: string, readonly revision?: string | undefined, readonly pluginId: string, readonly presentation?: { readonly displayName: string, readonly description?: string | undefined, readonly translations?: { readonly [x: string]: { readonly displayName?: string | undefined, readonly description?: string | undefined } } | undefined, readonly author?: string | undefined, readonly homepage?: string | undefined, readonly icon?: string | undefined } | undefined, readonly origin: "builtin" | "package" | "directory" | "project" | "thread", readonly location: string | null, readonly version: string | null, readonly packageName?: string | null | undefined, readonly loadedAt?: string | undefined, readonly configRevision?: number | undefined, readonly uiDebug?: { readonly enabled: boolean, readonly phase: "idle" | "building" | "error", readonly error: string | null } | undefined, readonly uiRevision?: string | undefined, readonly uiDigest?: string | undefined, readonly assetDigests?: { readonly [x: string]: string } | undefined, readonly proxyIds?: ReadonlyArray<string> | undefined, readonly state: "loaded" | "failed" | "stopped" | "disabled", readonly contributions: ReadonlyArray<{ readonly kind: "signIn" | "toolkit" | "reactor" | "settingsCard" | "modelPreset" | "command" | "cli" | "interval" | "executor" | "protocolConversion" | "skill" | "filePreviewConverter" | "systemPrompt.section" | "systemPrompt.context" | "messages.beforeSend" | "slashCommand" | "tools.guard" | "ui.seats" | "agentPresets" | "sessionProjections" | "continuation", readonly name: string, readonly role?: string }>, readonly failure: { readonly phase: string, readonly message: string, readonly kind?: string | undefined } | null, readonly threadId: string | null, readonly projectId?: string | null | undefined, readonly projectPlugin?: { readonly needsApproval: boolean, readonly conflictWithMachine: boolean, readonly conflictChoice?: "project" | "machine" | undefined } | undefined, readonly runtimeStats?: { readonly eventsHandled: number, readonly toolCalls: number, readonly processesSpawned?: number | undefined, readonly lastEventAt: string | null } | undefined, readonly removable?: boolean | undefined, readonly permissions?: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "attention.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: ReadonlyArray<string> } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<string> } | { readonly kind: string }> | undefined, readonly ui?: { readonly assetsPath: string, readonly entry?: string | undefined, readonly pages?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined, readonly chrome?: "host" | "own" | undefined, readonly placements?: ReadonlyArray<"web-pages" | "mobile-home" | "mobile-pages"> | undefined }> | undefined, readonly panels?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined }> | undefined, readonly providerSettings?: ReadonlyArray<{ readonly id: string, readonly driverKind: string, readonly ownedFields?: { readonly add?: ReadonlyArray<string> | undefined, readonly edit?: ReadonlyArray<string> | undefined } | undefined, readonly ownedEnvironment?: ReadonlyArray<string> | undefined, readonly genericFields?: "inline" | "collapsed" | undefined }> | undefined, readonly threadAnnotations?: { readonly command: string } | undefined, readonly appearance?: { readonly name: string, readonly wallpaper: string, readonly dimLight?: number | undefined, readonly dimDark?: number | undefined, readonly blur?: number | undefined } | undefined, readonly toolViews?: ReadonlyArray<{ readonly tool: string, readonly view?: string | undefined, readonly placement?: "inline" | "deliverable" | undefined, readonly titleKey?: string | undefined, readonly titleBy?: { readonly arg: string, readonly titleKeys: { readonly [x: string]: string } } | undefined, readonly summary?: ReadonlyArray<string> | undefined }> | undefined, readonly chatWatchers?: ReadonlyArray<string> | undefined, readonly teamViews?: ReadonlyArray<{ readonly key: string, readonly scopes: ReadonlyArray<"team" | "project">, readonly titleKey: string, readonly icon?: string | undefined, readonly order?: number | undefined }> | undefined, readonly development?: { readonly command: string, readonly args: ReadonlyArray<string>, readonly watch: ReadonlyArray<string> } | undefined } | undefined, readonly executors?: ReadonlyArray<unknown> | undefined }>, readonly nextCursor?: string | null };
|
|
767
|
+
export type SchedulesListEncodedOutput = { readonly schedules: ReadonlyArray<{ readonly initiatingPerson?: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly scheduleId: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace: "project" | "worktree", readonly presetId?: string, readonly enabled: boolean, readonly nextRunAt: string, readonly createdBy: { readonly kind: "person" } | { readonly kind: "thread", readonly threadId: string } | { readonly kind: "plugin", readonly pluginId: string, readonly entryId?: string }, readonly createdAt: string, readonly updatedAt: string }> };
|
|
750
768
|
export type ThreadsArtifactsListEncodedOutput = { readonly items: ReadonlyArray<{ readonly attachmentId: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly title?: string | undefined, readonly note?: string | undefined, readonly sourcePath: string, readonly turnId: string | null, readonly messageId: string, readonly deliveredAt: string, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly homeSync?: "delivered" | "pending" | "needs-attention" | "refused" }>, readonly nextCursor: string | null };
|
|
751
769
|
export type MembersListEncodedOutput = { readonly items: ReadonlyArray<{ readonly memberId: string, readonly projectId: string, readonly kind: "human" | "agent", readonly name: string, readonly title: string, readonly responsibility: string, readonly avatar: { readonly pattern: string, readonly color: string } | null, readonly identity: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | null, readonly agent: { readonly environmentId: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly threadId?: string } | null, readonly workInstructionsRevision: number | null, readonly version: number, readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly updatedAt: string, readonly removedAt: string | null, readonly trial?: { readonly outcome: "passed" | "failed" | "skipped" | "not-run", readonly at: string, readonly by: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly summary?: string } }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
|
|
752
770
|
export type MembersGetEncodedOutput = { readonly member: { readonly memberId: string, readonly projectId: string, readonly kind: "human" | "agent", readonly name: string, readonly title: string, readonly responsibility: string, readonly avatar: { readonly pattern: string, readonly color: string } | null, readonly identity: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | null, readonly agent: { readonly environmentId: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly threadId?: string } | null, readonly workInstructionsRevision: number | null, readonly version: number, readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly updatedAt: string, readonly removedAt: string | null, readonly trial?: { readonly outcome: "passed" | "failed" | "skipped" | "not-run", readonly at: string, readonly by: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly summary?: string }, readonly workInstructions: string | null, readonly workInstructionsWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }, readonly snapshotSequence: number };
|
|
@@ -1582,6 +1600,20 @@ export interface PluginDataPorts {
|
|
|
1582
1600
|
/** Data capability: memory.handbook.revert. Plugin admission: {"require":{"kind":"commands.dispatch","commands":["wiki.handbook.revert"]}} */
|
|
1583
1601
|
readonly revert: (input: MemoryHandbookRevertInput) => Promise<MemoryHandbookRevertOutput>;
|
|
1584
1602
|
};
|
|
1603
|
+
readonly overview: {
|
|
1604
|
+
/** Data capability: memory.overview.get. Plugin admission: {"require":{"kind":"memory.read"}} */
|
|
1605
|
+
readonly get: (input: MemoryOverviewGetInput) => Promise<MemoryOverviewGetOutput>;
|
|
1606
|
+
/** Data capability: memory.overview.listRevisions. Plugin admission: {"require":{"kind":"memory.read"}} */
|
|
1607
|
+
readonly listRevisions: (input: MemoryOverviewListRevisionsInput) => Promise<MemoryOverviewListRevisionsOutput>;
|
|
1608
|
+
/** Data capability: memory.overview.getRevision. Plugin admission: {"require":{"kind":"memory.read"}} */
|
|
1609
|
+
readonly getRevision: (input: MemoryOverviewGetRevisionInput) => Promise<MemoryOverviewGetRevisionOutput>;
|
|
1610
|
+
/** Data capability: memory.overview.edit. Plugin admission: {"require":{"kind":"commands.dispatch","commands":["memory.overview.edit"]}} */
|
|
1611
|
+
readonly edit: (input: MemoryOverviewEditInput) => Promise<MemoryOverviewEditOutput>;
|
|
1612
|
+
/** Data capability: memory.overview.restore. Plugin admission: {"require":{"kind":"commands.dispatch","commands":["memory.overview.restore"]}} */
|
|
1613
|
+
readonly restore: (input: MemoryOverviewRestoreInput) => Promise<MemoryOverviewRestoreOutput>;
|
|
1614
|
+
/** Data capability: memory.overview.erase. Plugin admission: {"restricted":"operator-only"} */
|
|
1615
|
+
readonly erase: (input: MemoryOverviewEraseInput) => Promise<MemoryOverviewEraseOutput>;
|
|
1616
|
+
};
|
|
1585
1617
|
};
|
|
1586
1618
|
readonly work: {
|
|
1587
1619
|
readonly remoteAgentPending: {
|
|
@@ -1709,6 +1741,16 @@ export interface PluginDataPorts {
|
|
|
1709
1741
|
readonly get: (input: MembersExternalWakesGetInput) => Promise<MembersExternalWakesGetOutput>;
|
|
1710
1742
|
};
|
|
1711
1743
|
};
|
|
1744
|
+
readonly attention: {
|
|
1745
|
+
readonly pending: {
|
|
1746
|
+
/** Data capability: attention.pending.list. Plugin admission: {"require":{"kind":"attention.read"}} */
|
|
1747
|
+
readonly list: (input: AttentionPendingListInput) => Promise<AttentionPendingListOutput>;
|
|
1748
|
+
/** Data capability: attention.pending.subscribe. Plugin admission: {"require":{"kind":"attention.read"}} */
|
|
1749
|
+
readonly subscribe: (input: AttentionPendingSubscribeInput, emit: (frame: AttentionPendingSubscribeOutput) => void | Promise<void>, signal: AbortSignal) => Promise<void>;
|
|
1750
|
+
};
|
|
1751
|
+
/** Data capability: attention.snooze. Plugin admission: {"restricted":"operator-only"} */
|
|
1752
|
+
readonly snooze: (input: AttentionSnoozeInput) => Promise<AttentionSnoozeOutput>;
|
|
1753
|
+
};
|
|
1712
1754
|
}
|
|
1713
1755
|
|
|
1714
1756
|
/** 以人的身份写的端口(`invocation.asPerson`):只有登记表代人写白名单里的几条,形状与上面同名成员相同。 */
|
|
@@ -1741,6 +1783,10 @@ export interface PluginAsPersonPorts {
|
|
|
1741
1783
|
readonly publish: (input: MemoryHandbookPublishInput) => Promise<MemoryHandbookPublishOutput>;
|
|
1742
1784
|
readonly revert: (input: MemoryHandbookRevertInput) => Promise<MemoryHandbookRevertOutput>;
|
|
1743
1785
|
};
|
|
1786
|
+
readonly overview: {
|
|
1787
|
+
readonly edit: (input: MemoryOverviewEditInput) => Promise<MemoryOverviewEditOutput>;
|
|
1788
|
+
readonly restore: (input: MemoryOverviewRestoreInput) => Promise<MemoryOverviewRestoreOutput>;
|
|
1789
|
+
};
|
|
1744
1790
|
};
|
|
1745
1791
|
readonly members: {
|
|
1746
1792
|
readonly create: (input: MembersCreateInput) => Promise<MembersCreateOutput>;
|
|
@@ -1766,6 +1812,11 @@ export interface PluginViewerPorts {
|
|
|
1766
1812
|
readonly current: (input: CommunicationPeopleCurrentInput) => Promise<CommunicationPeopleCurrentOutput>;
|
|
1767
1813
|
};
|
|
1768
1814
|
};
|
|
1815
|
+
readonly attention: {
|
|
1816
|
+
readonly pending: {
|
|
1817
|
+
readonly list: (input: AttentionPendingListInput) => Promise<AttentionPendingListOutput>;
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1769
1820
|
}
|
|
1770
1821
|
|
|
1771
1822
|
/** 本次本机会话 agent 工具调用的代领端口(`invocation.asCaller`)。 */
|
|
@@ -1887,6 +1938,9 @@ export interface PluginUiDataReads {
|
|
|
1887
1938
|
readonly "memory.handbook.get": { readonly input: MemoryHandbookGetInput; readonly output: MemoryHandbookGetOutput };
|
|
1888
1939
|
readonly "memory.handbook.releases.list": { readonly input: MemoryHandbookReleasesListInput; readonly output: MemoryHandbookReleasesListOutput };
|
|
1889
1940
|
readonly "memory.handbook.releases.get": { readonly input: MemoryHandbookReleasesGetInput; readonly output: MemoryHandbookReleasesGetOutput };
|
|
1941
|
+
readonly "memory.overview.get": { readonly input: MemoryOverviewGetInput; readonly output: MemoryOverviewGetOutput };
|
|
1942
|
+
readonly "memory.overview.listRevisions": { readonly input: MemoryOverviewListRevisionsInput; readonly output: MemoryOverviewListRevisionsOutput };
|
|
1943
|
+
readonly "memory.overview.getRevision": { readonly input: MemoryOverviewGetRevisionInput; readonly output: MemoryOverviewGetRevisionOutput };
|
|
1890
1944
|
readonly "work.remoteAgentPending.get": { readonly input: WorkRemoteAgentPendingGetInput; readonly output: WorkRemoteAgentPendingGetOutput };
|
|
1891
1945
|
readonly "work.states.list": { readonly input: WorkStatesListInput; readonly output: WorkStatesListOutput };
|
|
1892
1946
|
readonly "work.items.list": { readonly input: WorkItemsListInput; readonly output: WorkItemsListOutput };
|
|
@@ -1916,6 +1970,7 @@ export interface PluginUiDataReads {
|
|
|
1916
1970
|
readonly "projects.sharedSpaces.files.read": { readonly input: ProjectsSharedSpacesFilesReadInput; readonly output: ProjectsSharedSpacesFilesReadOutput };
|
|
1917
1971
|
readonly "projects.sharedSpaces.history.list": { readonly input: ProjectsSharedSpacesHistoryListInput; readonly output: ProjectsSharedSpacesHistoryListOutput };
|
|
1918
1972
|
readonly "projects.sharedSpaces.local.status.get": { readonly input: ProjectsSharedSpacesLocalStatusGetInput; readonly output: ProjectsSharedSpacesLocalStatusGetOutput };
|
|
1973
|
+
readonly "attention.pending.list": { readonly input: AttentionPendingListInput; readonly output: AttentionPendingListOutput };
|
|
1919
1974
|
}
|
|
1920
1975
|
|
|
1921
1976
|
export type PluginUiDataReadId = keyof PluginUiDataReads;
|