@ycodium-ai/plugin-api 0.2.6054 → 0.2.6114
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 +7 -1
- package/dist/_private/ycodium-ui-hooks/ProviderSignInChallenge.d.ts +1 -1
- package/dist/_private/ycodium-ui-hooks/ProviderSignInChallenge.js +1 -1
- package/dist/dataPorts.gen.d.ts +367 -0
- package/dist/dataPorts.gen.d.ts.map +1 -1
- package/dist/dataPorts.gen.js.map +1 -1
- package/dist/executor.d.ts +8 -4
- package/dist/executor.d.ts.map +1 -1
- package/dist/executor.js.map +1 -1
- package/dist/executorCard.d.ts +6 -0
- package/dist/executorCard.d.ts.map +1 -1
- package/dist/executorCard.js.map +1 -1
- package/dist/runtime-maintenance.d.ts +46 -0
- package/dist/runtime-maintenance.d.ts.map +1 -1
- package/dist/runtime-maintenance.js +317 -31
- package/dist/runtime-maintenance.js.map +1 -1
- package/dist/source/_private/ycodium-ui-hooks/ProviderSignInChallenge.tsx +21 -20
- package/dist/source/dataPorts.gen.ts +19 -15
- package/dist/source/executor.ts +8 -3
- package/dist/source/executorCard.ts +7 -0
- package/dist/source/runtime-maintenance.ts +413 -33
- package/dist/source/version.ts +2 -2
- package/dist/version.d.ts +2 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -5
|
@@ -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 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 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;
|
|
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 };
|
|
@@ -259,7 +259,7 @@ export type ApprovalsPendingListOutput = ReadonlyArray<{ readonly requestId: str
|
|
|
259
259
|
export type MachineSettingsEditorsGetInput = { };
|
|
260
260
|
export type MachineSettingsEditorsGetOutput = { readonly availableEditors: ReadonlyArray<"file-manager">, readonly editorDiscovery?: "pending" | undefined, readonly shellRevealInFileManager?: boolean, readonly shellRevealInFileManagerKind?: "finder" | "file-explorer" | "files" };
|
|
261
261
|
export type MachineSettingsProvidersGetInput = { };
|
|
262
|
-
export type MachineSettingsProvidersGetOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate: boolean, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly userCode: string, readonly verificationUrl: string } } }> };
|
|
262
|
+
export type MachineSettingsProvidersGetOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate: boolean, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
|
|
263
263
|
export type MachineSettingsKeybindingsGetInput = { };
|
|
264
264
|
export type MachineSettingsKeybindingsGetOutput = { readonly keybindings: ReadonlyArray<{ readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly shortcut: { readonly key: string, readonly metaKey: boolean, readonly ctrlKey: boolean, readonly shiftKey: boolean, readonly altKey: boolean, readonly modKey: boolean }, readonly whenAst?: Union_ | undefined }>, readonly issues: ReadonlyArray<{ readonly kind: "keybindings.malformed-config", readonly message: string } | { readonly kind: "keybindings.invalid-entry", readonly message: string, readonly index: number }>, readonly keybindingsConfigPath: string };
|
|
265
265
|
export type MachineSettingsUpdateInput = { readonly patch: { readonly settingsRevision?: number, readonly enableProviderUpdateChecks?: boolean, readonly enableAgentBrowserAccess?: boolean, readonly browserRetentionBudgetEnabled?: boolean, readonly machineBrowserDefaultViewport?: { readonly _tag: "fill" } | { readonly _tag: "freeform", readonly width: number, readonly height: number } | { readonly _tag: "preset", readonly width: number, readonly height: number, readonly presetId: "iphone-se" | "iphone-xr" | "iphone-12-pro" | "iphone-14-pro-max" | "pixel-7" | "samsung-galaxy-s8-plus" | "samsung-galaxy-s20-ultra" | "ipad-mini" | "ipad-air" | "ipad-pro" | "surface-pro-7" | "surface-duo" | "galaxy-z-fold-5" | "asus-zenbook-fold" | "samsung-galaxy-a51-71" | "nest-hub" | "nest-hub-max" | "desktop-1920x1080" | "desktop-1440x900" | "laptop-1366x768" | "laptop-1280x800" | "ipad-pro-11" | "iphone-15-pro" | "pixel-8" | "galaxy-s24" }, readonly machineBrowserDefaultZoomFactor?: 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5, readonly machineBrowserDefaultAppearance?: "system" | "light" | "dark", readonly enableAgentThreadDelegation?: boolean, readonly agentThreadDelegationMaxDepth?: number, readonly enableAgentSelfDevelopment?: boolean, readonly machineTaskConfirmation?: { readonly actionIds: ReadonlyArray<string>, readonly projectIds: ReadonlyArray<string>, readonly remoteProjectTrust?: ReadonlyArray<{ readonly homeEnvironmentId: string, readonly projectId: string }> }, readonly backgroundActivity?: { readonly schemaVersion?: 1, readonly profile?: "balanced" | "performance" | "battery-saver" | "custom", readonly baseProfile?: "balanced" | "performance" | "battery-saver", readonly overrides?: { readonly automaticGitFetchInterval?: number, readonly providerHealthRefreshInterval?: number, readonly hostPowerMonitorActiveInterval?: number, readonly hostPowerMonitorIdleInterval?: number, readonly idleClientTtl?: number, readonly pauseWhenHostLocked?: boolean, readonly pauseWhenHostLowPower?: boolean, readonly pauseWhenClientLowPower?: boolean, readonly pauseWhenOnBattery?: boolean } }, readonly automaticGitFetchInterval?: number, readonly providerHealthRefreshInterval?: number, readonly npmRegistry?: string, readonly pluginUpdateCheck?: boolean, readonly backgroundActivityProfile?: "balanced" | "performance" | "battery-saver", readonly environmentIcon?: "server" | "cloud" | "linux" | "desktop" | "laptop" | "mac-mini" | "mac-studio" | null, readonly defaultRuntimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly addProjectBaseDirectory?: string, readonly textGenerationModelSelection?: { readonly instanceId?: string, readonly model?: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } } | null, readonly sourceControlWritingStyle?: { readonly mode?: "repo_conventions" | "conventional_commits" | "custom", readonly customInstructions?: string, readonly followChangeRequestTemplates?: boolean }, readonly sourceControlWriterModelSelection?: { readonly provider?: unknown, readonly instanceId?: unknown, readonly model: unknown, readonly options?: unknown } | null, readonly observability?: { readonly otlpTracesUrl?: string, readonly otlpMetricsUrl?: string, readonly otlpLogsUrl?: string, readonly fullTraceUntil?: number, readonly fullTraceForMs?: number }, readonly providerInstances?: { readonly [x: string]: { readonly driver: string, readonly displayName?: string, readonly accentColor?: string, readonly environment?: ReadonlyArray<{ readonly name: string, readonly value?: string, readonly sensitive?: boolean, readonly valueRedacted?: boolean }>, readonly proxyId?: null | string | { readonly required: string }, readonly keepBackgroundServices?: boolean, readonly enabled?: boolean, readonly localEnabled?: boolean, readonly syncSetupRequired?: boolean, readonly hiddenModels?: ReadonlyArray<string>, readonly modelOrder?: ReadonlyArray<string>, readonly defaultModel?: string, readonly config?: unknown, readonly configSecretRefs?: { readonly [x: string]: string }, readonly configRedacted?: boolean, readonly configSecretFields?: ReadonlyArray<string> } }, readonly dismissedDiscoveredDrivers?: ReadonlyArray<string>, readonly proxies?: { readonly [x: string]: { readonly displayName?: string, readonly protocol: "http" | "https", readonly host: string, readonly port: number, readonly username?: string, readonly bypass?: string, readonly credentials?: ReadonlyArray<{ readonly name: string, readonly value?: string, readonly sensitive?: boolean, readonly valueRedacted?: boolean }> } }, readonly defaultProxyId?: string | null, readonly plugins?: { readonly mcpServers?: { readonly [x: string]: { readonly name: string, readonly transport: { readonly type: "stdio", readonly command: string, readonly args?: ReadonlyArray<string>, readonly env?: { readonly [x: string]: string } } | { readonly type: "http", readonly url: string, readonly headers?: { readonly [x: string]: string } } | { readonly type: "sse", readonly url: string, readonly headers?: { readonly [x: string]: string } }, readonly enabled?: boolean, readonly providers?: { readonly [x: string]: boolean }, readonly catalogId?: string, readonly oauth?: { readonly status: "none" | "required" | "authorized" } } }, readonly skills?: { readonly [x: string]: { readonly name: string, readonly source: { readonly kind: "inline", readonly skillMd: string } | { readonly kind: "builtin", readonly id: string } | { readonly kind: "catalog", readonly catalogId: string, readonly version: string }, readonly enabled?: boolean, readonly modelInvocable?: boolean, readonly userInvocable?: boolean, readonly providers?: { readonly [x: string]: boolean } } } }, readonly requireManualPairingForNewDevices?: boolean, readonly wallpaper?: { readonly base: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number }, readonly sidebar: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null, readonly workspace: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null, readonly chat: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null } } };
|
|
@@ -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 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 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 };
|
|
279
279
|
export type MachineSettingsNpmRegistryGetInput = { };
|
|
280
280
|
export type MachineSettingsNpmRegistryGetOutput = { readonly registry: string, readonly source: "setting" | "npm" | "default" };
|
|
281
281
|
export type MachineSettingsPresetsListInput = { };
|
|
@@ -321,7 +321,7 @@ export type ProvidersSessionsListOutput = { readonly sessions: ReadonlyArray<{ r
|
|
|
321
321
|
export type ProvidersSessionsSetResumeCursorInput = { readonly instanceId: string, readonly threadId: string, readonly cursor: unknown };
|
|
322
322
|
export type ProvidersSessionsSetResumeCursorOutput = { };
|
|
323
323
|
export type ProvidersExecutorsListInput = { };
|
|
324
|
-
export type ProvidersExecutorsListOutput = { readonly entries: ReadonlyArray<{ readonly pluginId: string, readonly entryId: string, readonly loadedAt: string, readonly card: { readonly driverKind: string, readonly displayName: string, readonly iconUrl: string, readonly commandName: string, readonly launchArgs: string, readonly homeEnvVar: string, readonly homeLayout?: { readonly accountConfigKey: string, readonly transcriptSubdir: string, readonly accountEnvVar?: string | undefined } | undefined, readonly accountDirectory?: { readonly configKeys: readonly [string, ...Array<string>], readonly defaultDirectory: string, readonly brandAliases?: ReadonlyArray<string>, readonly holdsThreads?: boolean } | undefined, readonly resumeCommand?: { readonly cursorKeys: readonly [string, ...Array<string>], readonly command: string } | undefined, readonly repositoryInstructionsFile?: string | undefined, readonly signInNotNeededWhen?: { readonly configKey: string, readonly equals: string } | undefined, readonly mcpToolNameStyle?: "server_tool" | undefined, readonly environment: ReadonlyArray<{ readonly name: string, readonly sensitive: boolean }>, readonly install: { readonly kind: "vendorScript", readonly posixCommand: string, readonly windowsCommand: string, readonly installedPathSegment: string } | { readonly kind: "npm" } | { readonly kind: "downloadPage", readonly url: string } | null, readonly signIn: ReadonlyArray<{ readonly kind: "device-code" } | { readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string } | { readonly kind: "api-key", readonly variable: string }>, readonly deviceCodeSignInArgs: ReadonlyArray<string>, readonly npmPackage: string, readonly homebrewFormula: string, readonly selfUpdateArgs: ReadonlyArray<string>, readonly docsUrl: string, readonly setupNote: string, readonly defaultModel: string, readonly customModelIdExample: string, readonly modelSlugAliases: { readonly [x: string]: string } | null, readonly modelCatalogAuthoritative?: boolean | undefined, readonly mcpToolCallCeilingSeconds?: number | undefined, readonly mcpTransports: ReadonlyArray<"stdio" | "http" | "sse"> | null, readonly pluginManaged: boolean, readonly verifiedSkills: boolean, readonly everydayHarness: boolean, readonly capabilities: { readonly sessionModelSwitch: "in-session" | "unsupported", readonly sessionOptionSwitch?: "in-session" | "unsupported" | undefined, readonly runtimeModeSwitch: "in-session" | "next-turn", readonly contextCompaction?: "native" | "unsupported" | undefined, readonly nativeModeSwitch?: boolean | undefined, readonly turnSteering?: boolean | undefined, readonly reportsSpawnedAgents?: boolean | undefined, readonly handlesSkillInvocations?: boolean | undefined, readonly discoversRepoSkills?: boolean | undefined, readonly confirmsToolTermination?: boolean | undefined, readonly acceptsAdditionalDirectories?: boolean | undefined, readonly blocksHostMcpWritesInAuto?: boolean | undefined, readonly recoversMcpByRelaunch?: boolean | undefined, readonly hostTaskList?: boolean | undefined, readonly hostMcpToolListing?: "compact" | "full" | undefined, readonly inlineImages?: { readonly maxBytes: number, readonly maxEdgePixels?: number | undefined, readonly maxTotalBytes?: number | undefined, readonly mimeTypes?: ReadonlyArray<string> | undefined } | undefined }, readonly credentialSources: ReadonlyArray<{ readonly kind: "json-file", readonly pathFromHome: string, readonly jsonPointer: string } | { readonly kind: "json-file-os-home", readonly pathFromOsHome: string, readonly jsonPointer: string } | { readonly kind: "macos-keychain", readonly service: string, readonly accountFromEnv?: string | undefined, readonly defaultHomeOnly: boolean }>, readonly diagnostics: ReadonlyArray<{ readonly id: string, readonly labelKey: string }>, readonly effectiveCommand?: string | undefined, readonly configSchema: { readonly [x: string]: unknown }, readonly modelConnectivity: { readonly dialects: ReadonlyArray<"anthropic-messages" | "openai-responses" | "openai-chat-completions" | "google-cloud-code">, readonly acceptsExternalEndpoints: boolean, readonly nativePathSuffix?: "/v1/messages" | "/responses" | "/chat/completions" | undefined, readonly credentialEnvKey?: string | undefined, readonly baseUrlEnvKey?: string | undefined, readonly alternateCredentialEnvKeys?: ReadonlyArray<string> | undefined, readonly backendSwitchEnvKeys?: ReadonlyArray<string> | undefined, readonly extraEnv?: ReadonlyArray<{ readonly name: string, readonly value: string }> | undefined, readonly extraLaunchArgs?: ReadonlyArray<{ readonly key: string, readonly value: string | boolean }> | undefined, readonly supportsNativeSubscription?: boolean | undefined }, readonly maxConcurrentProcesses?: number | undefined, readonly keepsBackgroundServices?: boolean | undefined }, readonly origin: "bundled" | "installed" }> };
|
|
324
|
+
export type ProvidersExecutorsListOutput = { readonly entries: ReadonlyArray<{ readonly pluginId: string, readonly entryId: string, readonly loadedAt: string, readonly card: { readonly driverKind: string, readonly displayName: string, readonly iconUrl: string, readonly commandName: string, readonly launchArgs: string, readonly homeEnvVar: string, readonly homeLayout?: { readonly accountConfigKey: string, readonly transcriptSubdir: string, readonly accountEnvVar?: string | undefined } | undefined, readonly accountDirectory?: { readonly configKeys: readonly [string, ...Array<string>], readonly defaultDirectory: string, readonly brandAliases?: ReadonlyArray<string>, readonly holdsThreads?: boolean } | undefined, readonly resumeCommand?: { readonly cursorKeys: readonly [string, ...Array<string>], readonly command: string } | undefined, readonly repositoryInstructionsFile?: string | undefined, readonly signInNotNeededWhen?: { readonly configKey: string, readonly equals: string } | undefined, readonly mcpToolNameStyle?: "server_tool" | undefined, readonly environment: ReadonlyArray<{ readonly name: string, readonly sensitive: boolean }>, readonly install: { readonly kind: "vendorScript", readonly posixCommand: string, readonly windowsCommand: string, readonly installedPathSegment: string } | { readonly kind: "npm" } | { readonly kind: "downloadPage", readonly url: string } | null, readonly signIn: ReadonlyArray<{ readonly kind: "device-code" } | { readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string } | { readonly kind: "api-key", readonly variable: string }>, readonly signInInteraction?: "device-code" | "authorization-code" | "browser" | undefined, readonly deviceCodeSignInArgs: ReadonlyArray<string>, readonly npmPackage: string, readonly homebrewFormula: string, readonly selfUpdateArgs: ReadonlyArray<string>, readonly docsUrl: string, readonly setupNote: string, readonly defaultModel: string, readonly customModelIdExample: string, readonly modelSlugAliases: { readonly [x: string]: string } | null, readonly modelCatalogAuthoritative?: boolean | undefined, readonly mcpToolCallCeilingSeconds?: number | undefined, readonly mcpTransports: ReadonlyArray<"stdio" | "http" | "sse"> | null, readonly pluginManaged: boolean, readonly verifiedSkills: boolean, readonly everydayHarness: boolean, readonly capabilities: { readonly sessionModelSwitch: "in-session" | "unsupported", readonly sessionOptionSwitch?: "in-session" | "unsupported" | undefined, readonly runtimeModeSwitch: "in-session" | "next-turn", readonly contextCompaction?: "native" | "unsupported" | undefined, readonly nativeModeSwitch?: boolean | undefined, readonly turnSteering?: boolean | undefined, readonly reportsSpawnedAgents?: boolean | undefined, readonly handlesSkillInvocations?: boolean | undefined, readonly discoversRepoSkills?: boolean | undefined, readonly confirmsToolTermination?: boolean | undefined, readonly acceptsAdditionalDirectories?: boolean | undefined, readonly blocksHostMcpWritesInAuto?: boolean | undefined, readonly recoversMcpByRelaunch?: boolean | undefined, readonly hostTaskList?: boolean | undefined, readonly hostMcpToolListing?: "compact" | "full" | undefined, readonly inlineImages?: { readonly maxBytes: number, readonly maxEdgePixels?: number | undefined, readonly maxTotalBytes?: number | undefined, readonly mimeTypes?: ReadonlyArray<string> | undefined } | undefined }, readonly credentialSources: ReadonlyArray<{ readonly kind: "json-file", readonly pathFromHome: string, readonly jsonPointer: string } | { readonly kind: "json-file-os-home", readonly pathFromOsHome: string, readonly jsonPointer: string } | { readonly kind: "macos-keychain", readonly service: string, readonly accountFromEnv?: string | undefined, readonly defaultHomeOnly: boolean }>, readonly diagnostics: ReadonlyArray<{ readonly id: string, readonly labelKey: string }>, readonly effectiveCommand?: string | undefined, readonly configSchema: { readonly [x: string]: unknown }, readonly modelConnectivity: { readonly dialects: ReadonlyArray<"anthropic-messages" | "openai-responses" | "openai-chat-completions" | "google-cloud-code">, readonly acceptsExternalEndpoints: boolean, readonly nativePathSuffix?: "/v1/messages" | "/responses" | "/chat/completions" | undefined, readonly credentialEnvKey?: string | undefined, readonly baseUrlEnvKey?: string | undefined, readonly alternateCredentialEnvKeys?: ReadonlyArray<string> | undefined, readonly backendSwitchEnvKeys?: ReadonlyArray<string> | undefined, readonly extraEnv?: ReadonlyArray<{ readonly name: string, readonly value: string }> | undefined, readonly extraLaunchArgs?: ReadonlyArray<{ readonly key: string, readonly value: string | boolean }> | undefined, readonly supportsNativeSubscription?: boolean | undefined }, readonly maxConcurrentProcesses?: number | undefined, readonly keepsBackgroundServices?: boolean | undefined }, readonly origin: "bundled" | "installed" }> };
|
|
325
325
|
export type ProvidersWorkspaceInventoryGetInput = { readonly instanceId: string, readonly cwd: string, readonly threadId?: string, readonly refresh?: boolean };
|
|
326
326
|
export type ProvidersWorkspaceInventoryGetOutput = { readonly instanceId: string, readonly cwd: string, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly source: "workspace" | "machine", readonly sessionReported?: boolean, readonly checkedAt: string };
|
|
327
327
|
export type ProvidersListInput = { };
|
|
@@ -336,14 +336,16 @@ export type ProvidersAccountsProbeInput = { readonly driver: string, readonly ac
|
|
|
336
336
|
export type ProvidersAccountsProbeOutput = { readonly probes: ReadonlyArray<{ readonly accountPath: string, readonly directoryExists: boolean, readonly state: "signed-in" | "expired" | "signed-out" | "unreadable" | "unsupported", readonly email?: string | undefined, readonly name?: string | undefined, readonly expiresAt?: string | undefined, readonly authType?: "chatgpt" | "apiKey" | undefined }> };
|
|
337
337
|
export type ProvidersInstancesRefreshInput = { readonly instanceId?: string, readonly refreshModelCatalog?: boolean };
|
|
338
338
|
export type ProvidersInstancesRefreshOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName: string, readonly enabled: boolean, readonly readiness: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly readinessDetail?: string | undefined, readonly recovery?: ProviderProbeRecovery, readonly defaultModel: string | null, readonly concurrency?: { readonly live: number, readonly max: number } }> };
|
|
339
|
-
export type ProvidersInstancesInstallInput = { readonly provider: string, readonly instanceId?: string };
|
|
340
|
-
export type ProvidersInstancesInstallOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate: boolean, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly userCode: string, readonly verificationUrl: string } } }> };
|
|
341
|
-
export type ProvidersInstancesUpdateInput = { readonly provider: string, readonly instanceId?: string };
|
|
342
|
-
export type ProvidersInstancesUpdateOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate: boolean, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly userCode: string, readonly verificationUrl: string } } }> };
|
|
343
|
-
export type ProvidersInstancesSignInInput = { readonly provider: string, readonly instanceId?: string };
|
|
344
|
-
export type ProvidersInstancesSignInOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate: boolean, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly userCode: string, readonly verificationUrl: string } } }> };
|
|
345
|
-
export type
|
|
346
|
-
export type
|
|
339
|
+
export type ProvidersInstancesInstallInput = { readonly provider: string, readonly instanceId?: string, readonly clientRequestId?: string };
|
|
340
|
+
export type ProvidersInstancesInstallOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate: boolean, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
|
|
341
|
+
export type ProvidersInstancesUpdateInput = { readonly provider: string, readonly instanceId?: string, readonly clientRequestId?: string };
|
|
342
|
+
export type ProvidersInstancesUpdateOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate: boolean, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
|
|
343
|
+
export type ProvidersInstancesSignInInput = { readonly provider: string, readonly instanceId?: string, readonly clientRequestId?: string };
|
|
344
|
+
export type ProvidersInstancesSignInOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate: boolean, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
|
|
345
|
+
export type ProvidersInstancesSubmitSignInInput = { readonly provider: string, readonly instanceId?: string, readonly operationId: string, readonly code: string };
|
|
346
|
+
export type ProvidersInstancesSubmitSignInOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate: boolean, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
|
|
347
|
+
export type ProvidersInstancesCancelMaintenanceInput = { readonly provider: string, readonly instanceId?: string, readonly clientRequestId?: string };
|
|
348
|
+
export type ProvidersInstancesCancelMaintenanceOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate: boolean, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly signInMode?: "device-code" | "authorization-code" | "command", readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly operationId?: string, readonly clientRequestId?: string, readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly operationId?: string, readonly userCode: string, readonly verificationUrl: string }, readonly browserSignIn?: { readonly operationId: string, readonly verificationUrl: string }, readonly authorizationCode?: { readonly operationId: string, readonly verificationUrl: string, readonly submitted?: boolean } } }> };
|
|
347
349
|
export type PluginsSignInStartInput = { readonly entryId: string, readonly name: string };
|
|
348
350
|
export type PluginsSignInStartOutput = { readonly attemptId: string, readonly expiresAt: string, readonly kind: "device", readonly userCode: string, readonly verificationUrl: string } | { readonly attemptId: string, readonly expiresAt: string, readonly kind: "browser", readonly authorizationUrl: string };
|
|
349
351
|
export type PluginsSignInCompleteInput = { readonly attemptId: string, readonly url: string };
|
|
@@ -730,15 +732,15 @@ export type ThreadsListEncodedOutput = { readonly items: ReadonlyArray<{ readonl
|
|
|
730
732
|
export type ThreadsArchivedListEncodedOutput = { readonly snapshotSequence: number, readonly projects: ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>, readonly threads: ReadonlyArray<{ readonly nativeSessionImported?: true, readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | null | undefined, readonly interactionMode?: "default" | "plan" | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly status?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined, readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly continuationCheck?: ThreadContinuationCheckOrNull_1, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }>, readonly updatedAt: string };
|
|
731
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 };
|
|
732
734
|
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;
|
|
733
|
-
export type ThreadsMessagesGetEncodedOutput = { readonly messageId: string, readonly role: string, readonly text: string, readonly turnId: string | null, readonly createdAt: string, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly attachments: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_4 } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> } | null;
|
|
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;
|
|
734
736
|
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 };
|
|
735
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 };
|
|
736
738
|
export type ProjectsListEncodedOutput = ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>;
|
|
737
739
|
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 };
|
|
738
740
|
export type MachineSettingsEditorsGetEncodedOutput = { readonly availableEditors: ReadonlyArray<"file-manager">, readonly editorDiscovery?: unknown, readonly shellRevealInFileManager?: boolean, readonly shellRevealInFileManagerKind?: "finder" | "file-explorer" | "files" };
|
|
739
|
-
export type MachineSettingsProvidersGetEncodedOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands?: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }> | undefined, readonly skills?: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }> | undefined, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate?: boolean | undefined, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly userCode: string, readonly verificationUrl: string } } }> };
|
|
741
|
+
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 } } }> };
|
|
740
742
|
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 } };
|
|
741
|
-
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 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 };
|
|
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 };
|
|
742
744
|
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 }> };
|
|
743
745
|
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 }> };
|
|
744
746
|
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 };
|
|
@@ -1379,6 +1381,8 @@ export interface PluginDataPorts {
|
|
|
1379
1381
|
readonly update: (input: ProvidersInstancesUpdateInput) => Promise<ProvidersInstancesUpdateOutput>;
|
|
1380
1382
|
/** Data capability: providers.instances.signIn. Plugin admission: {"restricted":"operator-only"} */
|
|
1381
1383
|
readonly signIn: (input: ProvidersInstancesSignInInput) => Promise<ProvidersInstancesSignInOutput>;
|
|
1384
|
+
/** Data capability: providers.instances.submitSignIn. Plugin admission: {"restricted":"operator-only"} */
|
|
1385
|
+
readonly submitSignIn: (input: ProvidersInstancesSubmitSignInInput) => Promise<ProvidersInstancesSubmitSignInOutput>;
|
|
1382
1386
|
/** Data capability: providers.instances.cancelMaintenance. Plugin admission: {"restricted":"operator-only"} */
|
|
1383
1387
|
readonly cancelMaintenance: (input: ProvidersInstancesCancelMaintenanceInput) => Promise<ProvidersInstancesCancelMaintenanceOutput>;
|
|
1384
1388
|
};
|
package/dist/source/executor.ts
CHANGED
|
@@ -26,7 +26,7 @@ import { raceAbort as raceAbortWithSignal } from "./_private/ycodium-executor-co
|
|
|
26
26
|
import type { ExecutorRuntimeMode } from "./executorCapabilities.ts";
|
|
27
27
|
import type { ExecutorLiveProcess, ExecutorOpenCommands } from "./executorProcesses.ts";
|
|
28
28
|
import type { ExecutorUsage } from "./usage.ts";
|
|
29
|
-
import type { ExecutorCard } from "./executorCard.ts";
|
|
29
|
+
import type { ExecutorCard, ExecutorSignInInteraction } from "./executorCard.ts";
|
|
30
30
|
import type {
|
|
31
31
|
ExecutorMcpServer,
|
|
32
32
|
ExecutorProbeResult,
|
|
@@ -61,6 +61,7 @@ export type * from "./executorErrors.ts";
|
|
|
61
61
|
export type {
|
|
62
62
|
ExecutorMcpTransport,
|
|
63
63
|
ExecutorInstall,
|
|
64
|
+
ExecutorSignInInteraction,
|
|
64
65
|
ExecutorSignInMethod,
|
|
65
66
|
ExecutorHomeLayout,
|
|
66
67
|
ExecutorResumeCommand,
|
|
@@ -457,14 +458,18 @@ export type ExecutorInstance = {
|
|
|
457
458
|
readonly signInCommandUnsetEnv?: readonly string[];
|
|
458
459
|
/** CLI 登录命令使用的实例账户环境,与实例的会话和探测使用同一套路径。 */
|
|
459
460
|
readonly signInCommandEnv?: Readonly<Record<string, string>>;
|
|
461
|
+
/** 实例级手动登录说明(如附带本实例凭据目录环境变量的命令);缺省沿用名片的 `signIn`。 */
|
|
462
|
+
readonly signInMethods?: ExecutorCard["signIn"];
|
|
460
463
|
readonly signIn?: {
|
|
461
|
-
/**
|
|
462
|
-
readonly interaction?:
|
|
464
|
+
/** 授权码由用户在设置中填回,设备码由用户在厂商网页输入,browser 由 CLI 无头轮询网页授权完成。默认设备码。 */
|
|
465
|
+
readonly interaction?: ExecutorSignInInteraction;
|
|
463
466
|
readonly start: (signal?: AbortSignal) => Promise<{
|
|
464
467
|
readonly operationId: string;
|
|
465
468
|
readonly userCode?: string;
|
|
466
469
|
readonly verificationUrl?: string;
|
|
467
470
|
}>;
|
|
471
|
+
/** 将用户在授权页拿到的授权码或完整回调地址交给本次登录。格式有误时直接抛错,登录保持等待供重填。 */
|
|
472
|
+
readonly submit?: (operationId: string, code: string, signal?: AbortSignal) => Promise<void>;
|
|
468
473
|
readonly cancel: (operationId: string, signal?: AbortSignal) => Promise<void>;
|
|
469
474
|
readonly verify: (signal?: AbortSignal) => Promise<ExecutorProbeResult>;
|
|
470
475
|
};
|
|
@@ -19,6 +19,8 @@ export type ExecutorInstall =
|
|
|
19
19
|
| { readonly kind: "npm" }
|
|
20
20
|
| { readonly kind: "downloadPage"; readonly url: string };
|
|
21
21
|
|
|
22
|
+
export type ExecutorSignInInteraction = "device-code" | "authorization-code" | "browser";
|
|
23
|
+
|
|
22
24
|
export type ExecutorSignInMethod =
|
|
23
25
|
| { readonly kind: "device-code" }
|
|
24
26
|
| { readonly kind: "command"; readonly command: string }
|
|
@@ -249,6 +251,11 @@ export type ExecutorCard = {
|
|
|
249
251
|
readonly environment: ReadonlyArray<{ readonly name: string; readonly sensitive: boolean }>;
|
|
250
252
|
readonly install: ExecutorInstall | null;
|
|
251
253
|
readonly signIn: ReadonlyArray<ExecutorSignInMethod>;
|
|
254
|
+
/**
|
|
255
|
+
* 宿主托管一键登录的交互协议(与 `ExecutorInstance.signIn.interaction` 同源)。
|
|
256
|
+
* 仅在实现了产出 `verificationUrl` 的 `ExecutorInstance.signIn` 时声明,供尚无实例快照的向导判断是否准备授权页。
|
|
257
|
+
*/
|
|
258
|
+
readonly signInInteraction?: ExecutorSignInInteraction;
|
|
252
259
|
readonly deviceCodeSignInArgs: ReadonlyArray<string>;
|
|
253
260
|
readonly npmPackage: string;
|
|
254
261
|
readonly homebrewFormula: string;
|