From 000bf0903ce21aea7a9b1f2cc2030378e0580bfb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 18 Nov 2026 13:40:27 +0000 Subject: [PATCH] chore(codex-acp): update codex to 0.170.0 --- .changeset/codex-update-0-170-0.md | 5 ++ packages/codex-acp/package.json | 2 +- .../codex-acp/src/app-server/ClientRequest.ts | 8 ++- .../codex-acp/src/app-server/ContentItem.ts | 2 +- .../FunctionCallOutputContentItem.ts | 2 +- .../app-server/ImageGenerationInputImage.ts | 13 ++++ .../src/app-server/ImageGenerationItem.ts | 11 +++- .../src/app-server/InitializeCapabilities.ts | 10 +++ .../codex-acp/src/app-server/MessagePhase.ts | 4 +- packages/codex-acp/src/app-server/PlanType.ts | 2 +- .../codex-acp/src/app-server/RealtimeVoice.ts | 2 +- .../src/app-server/RealtimeVoicesList.ts | 2 +- .../codex-acp/src/app-server/ResponseItem.ts | 4 +- .../src/app-server/ServerNotification.ts | 6 +- .../app-server/ServerNotificationEnvelope.ts | 6 +- .../src/app-server/WebSearchProvider.ts | 8 +++ packages/codex-acp/src/app-server/index.ts | 2 + .../codex-acp/src/app-server/v2/Account.ts | 6 +- .../v2/AccountSecuritySetupAction.ts | 5 ++ .../v2/AccountSecuritySetupNotice.ts | 6 ++ .../src/app-server/v2/AccountSession.ts | 6 ++ .../app-server/v2/AccountSessionWorkspace.ts | 6 ++ .../v2/AccountSessionWorkspaceKind.ts | 5 ++ .../app-server/v2/AdditionalContextEntry.ts | 6 +- .../src/app-server/v2/AgentMessageDisplay.ts | 12 ++++ .../app-server/v2/AgentMessageModeration.ts | 6 ++ .../src/app-server/v2/AnswerAnnotation.ts | 6 ++ .../src/app-server/v2/AnswerReplacement.ts | 5 ++ .../app-server/v2/ApplicationRequirements.ts | 3 +- .../v2/ApplicationStorageRequirements.ts | 9 +++ .../src/app-server/v2/BedrockProviderId.ts | 5 ++ .../app-server/v2/BedrockSettingsParams.ts | 9 +++ .../src/app-server/v2/BlockReason.ts | 9 +++ .../v2/BrowserUseExtensionRequirements.ts | 6 ++ .../app-server/v2/BrowserUseRequirements.ts | 3 +- .../src/app-server/v2/CodexErrorInfo.ts | 2 +- .../v2/CommandExecutionApprovalKind.ts | 2 +- .../codex-acp/src/app-server/v2/Config.ts | 6 +- .../src/app-server/v2/ConfigRequirements.ts | 3 +- .../v2/ConfigRequirementsReadResponse.ts | 5 ++ .../v2/CustomGatewaySettingsParams.ts | 9 +++ .../src/app-server/v2/CyberAccessProgram.ts | 2 +- .../app-server/v2/EnvironmentSkillsParams.ts | 9 +++ .../src/app-server/v2/FeedbackSaveParams.ts | 11 ++++ .../src/app-server/v2/FeedbackSaveResponse.ts | 10 +++ .../src/app-server/v2/GatewayAuth.ts | 5 ++ .../v2/GatewayOAuthCancelResponse.ts | 5 ++ .../v2/GatewayOAuthChangedNotification.ts | 14 +++++ .../app-server/v2/GatewayOAuthLoginParams.ts | 16 +++++ .../v2/GatewayOAuthLoginResponse.ts | 6 ++ .../src/app-server/v2/GatewayOAuthPrompt.ts | 5 ++ .../app-server/v2/GatewayOAuthReadParams.ts | 12 ++++ .../app-server/v2/GatewayOAuthReadResponse.ts | 21 +++++++ .../src/app-server/v2/GatewayOAuthStatus.ts | 5 ++ .../src/app-server/v2/GcpProviderId.ts | 5 ++ .../src/app-server/v2/GcpSettingsParams.ts | 9 +++ .../src/app-server/v2/GetAccountResponse.ts | 5 +- .../v2/GetAccountSecuritySetupResponse.ts | 10 +++ .../src/app-server/v2/HelplineSubject.ts | 5 ++ .../src/app-server/v2/HookEventName.ts | 2 +- .../src/app-server/v2/HookMetadata.ts | 6 +- .../src/app-server/v2/HookRunSummary.ts | 4 +- .../src/app-server/v2/HooksListParams.ts | 8 ++- .../v2/ItemCompletedNotification.ts | 5 ++ .../v2/ListMcpServerStatusParams.ts | 6 +- .../app-server/v2/ManagedHooksRequirements.ts | 2 +- .../app-server/v2/McpResourceReadParams.ts | 14 ++++- .../app-server/v2/McpResourceReadTarget.ts | 9 +++ ...cpServerOauthLoginCompletedNotification.ts | 6 +- .../v2/McpServerOauthLoginResponse.ts | 7 ++- .../src/app-server/v2/McpServerStatus.ts | 13 +++- .../app-server/v2/MisalignmentErrorDetails.ts | 6 +- .../src/app-server/v2/ModelListParams.ts | 4 ++ .../ModelProviderCapabilitiesReadResponse.ts | 2 +- .../v2/ModelProviderConfigWriteParams.ts | 6 ++ .../v2/ModelProviderConfigWriteResponse.ts | 6 ++ .../src/app-server/v2/ModelProviderError.ts | 8 +++ .../app-server/v2/ModelProviderListParams.ts | 5 ++ .../v2/ModelProviderListResponse.ts | 6 ++ .../src/app-server/v2/ModelProviderSummary.ts | 14 +++++ .../src/app-server/v2/NetworkRequirements.ts | 8 ++- .../src/app-server/v2/OtelExporter.ts | 15 +++++ .../src/app-server/v2/OtelHttpProtocol.ts | 5 ++ .../src/app-server/v2/OtelRequirements.ts | 7 +++ .../src/app-server/v2/OtelTlsConfig.ts | 5 ++ .../app-server/v2/OtelToolResultLogConfig.ts | 5 ++ .../src/app-server/v2/PluginInterface.ts | 2 +- .../v2/ProcessExitedNotification.ts | 5 ++ .../src/app-server/v2/ProviderSettings.ts | 10 +++ .../app-server/v2/ProviderSettingsPatch.ts | 11 ++++ .../src/app-server/v2/QueuedSubmission.ts | 6 +- .../src/app-server/v2/RequestHeader.ts | 5 ++ .../src/app-server/v2/ReviewDelivery.ts | 2 +- .../src/app-server/v2/ReviewStartParams.ts | 6 +- .../src/app-server/v2/ReviewStartResponse.ts | 5 +- .../src/app-server/v2/SkillMetadata.ts | 4 +- .../src/app-server/v2/SkillSummary.ts | 4 +- .../app-server/v2/ThreadAttachmentOwner.ts | 12 ++++ .../v2/ThreadAttachmentOwnerListParams.ts | 12 ++++ .../v2/ThreadAttachmentOwnerListResponse.ts | 9 +++ .../app-server/v2/ThreadGoalClearParams.ts | 7 ++- .../app-server/v2/ThreadGoalMutationOrigin.ts | 8 +++ .../src/app-server/v2/ThreadGoalSetParams.ts | 7 ++- .../codex-acp/src/app-server/v2/ThreadItem.ts | 24 +++++++- .../src/app-server/v2/ThreadItemEntry.ts | 11 +++- .../app-server/v2/ThreadItemOutputDeferral.ts | 5 ++ .../app-server/v2/ThreadItemsListAnchor.ts | 8 +++ .../app-server/v2/ThreadItemsListCursor.ts | 9 +++ .../app-server/v2/ThreadItemsListParams.ts | 14 ++++- .../src/app-server/v2/ThreadListParams.ts | 8 +++ .../src/app-server/v2/ThreadListResponse.ts | 8 +-- .../app-server/v2/ThreadPredictionResult.ts | 5 ++ .../v2/ThreadPredictionUpdatedNotification.ts | 6 ++ .../src/app-server/v2/ThreadReadResponse.ts | 2 +- .../src/app-server/v2/ThreadReadState.ts | 10 +++ .../v2/ThreadReadStateChangedNotification.ts | 6 ++ .../app-server/v2/ThreadReadStateOperation.ts | 5 ++ .../v2/ThreadSectionChangedNotification.ts | 12 ++++ .../src/app-server/v2/ThreadUnreadPosition.ts | 5 ++ .../src/app-server/v2/ThreadUsage.ts | 6 +- .../src/app-server/v2/TrustedContacts.ts | 5 ++ packages/codex-acp/src/app-server/v2/Turn.ts | 8 ++- .../src/app-server/v2/TurnStartParams.ts | 17 +++++- .../src/app-server/v2/TurnToolOutput.ts | 6 +- .../codex-acp/src/app-server/v2/UserInput.ts | 2 +- packages/codex-acp/src/app-server/v2/index.ts | 61 +++++++++++++++++++ pnpm-lock.yaml | 60 +++++++++--------- 127 files changed, 878 insertions(+), 108 deletions(-) create mode 100644 .changeset/codex-update-0-170-0.md create mode 100644 packages/codex-acp/src/app-server/ImageGenerationInputImage.ts create mode 100644 packages/codex-acp/src/app-server/WebSearchProvider.ts create mode 100644 packages/codex-acp/src/app-server/v2/AccountSecuritySetupAction.ts create mode 100644 packages/codex-acp/src/app-server/v2/AccountSecuritySetupNotice.ts create mode 100644 packages/codex-acp/src/app-server/v2/AccountSession.ts create mode 100644 packages/codex-acp/src/app-server/v2/AccountSessionWorkspace.ts create mode 100644 packages/codex-acp/src/app-server/v2/AccountSessionWorkspaceKind.ts create mode 100644 packages/codex-acp/src/app-server/v2/AgentMessageDisplay.ts create mode 100644 packages/codex-acp/src/app-server/v2/AgentMessageModeration.ts create mode 100644 packages/codex-acp/src/app-server/v2/AnswerAnnotation.ts create mode 100644 packages/codex-acp/src/app-server/v2/AnswerReplacement.ts create mode 100644 packages/codex-acp/src/app-server/v2/ApplicationStorageRequirements.ts create mode 100644 packages/codex-acp/src/app-server/v2/BedrockProviderId.ts create mode 100644 packages/codex-acp/src/app-server/v2/BedrockSettingsParams.ts create mode 100644 packages/codex-acp/src/app-server/v2/BlockReason.ts create mode 100644 packages/codex-acp/src/app-server/v2/BrowserUseExtensionRequirements.ts create mode 100644 packages/codex-acp/src/app-server/v2/CustomGatewaySettingsParams.ts create mode 100644 packages/codex-acp/src/app-server/v2/EnvironmentSkillsParams.ts create mode 100644 packages/codex-acp/src/app-server/v2/FeedbackSaveParams.ts create mode 100644 packages/codex-acp/src/app-server/v2/FeedbackSaveResponse.ts create mode 100644 packages/codex-acp/src/app-server/v2/GatewayAuth.ts create mode 100644 packages/codex-acp/src/app-server/v2/GatewayOAuthCancelResponse.ts create mode 100644 packages/codex-acp/src/app-server/v2/GatewayOAuthChangedNotification.ts create mode 100644 packages/codex-acp/src/app-server/v2/GatewayOAuthLoginParams.ts create mode 100644 packages/codex-acp/src/app-server/v2/GatewayOAuthLoginResponse.ts create mode 100644 packages/codex-acp/src/app-server/v2/GatewayOAuthPrompt.ts create mode 100644 packages/codex-acp/src/app-server/v2/GatewayOAuthReadParams.ts create mode 100644 packages/codex-acp/src/app-server/v2/GatewayOAuthReadResponse.ts create mode 100644 packages/codex-acp/src/app-server/v2/GatewayOAuthStatus.ts create mode 100644 packages/codex-acp/src/app-server/v2/GcpProviderId.ts create mode 100644 packages/codex-acp/src/app-server/v2/GcpSettingsParams.ts create mode 100644 packages/codex-acp/src/app-server/v2/GetAccountSecuritySetupResponse.ts create mode 100644 packages/codex-acp/src/app-server/v2/HelplineSubject.ts create mode 100644 packages/codex-acp/src/app-server/v2/McpResourceReadTarget.ts create mode 100644 packages/codex-acp/src/app-server/v2/ModelProviderConfigWriteParams.ts create mode 100644 packages/codex-acp/src/app-server/v2/ModelProviderConfigWriteResponse.ts create mode 100644 packages/codex-acp/src/app-server/v2/ModelProviderError.ts create mode 100644 packages/codex-acp/src/app-server/v2/ModelProviderListParams.ts create mode 100644 packages/codex-acp/src/app-server/v2/ModelProviderListResponse.ts create mode 100644 packages/codex-acp/src/app-server/v2/ModelProviderSummary.ts create mode 100644 packages/codex-acp/src/app-server/v2/OtelExporter.ts create mode 100644 packages/codex-acp/src/app-server/v2/OtelHttpProtocol.ts create mode 100644 packages/codex-acp/src/app-server/v2/OtelRequirements.ts create mode 100644 packages/codex-acp/src/app-server/v2/OtelTlsConfig.ts create mode 100644 packages/codex-acp/src/app-server/v2/OtelToolResultLogConfig.ts create mode 100644 packages/codex-acp/src/app-server/v2/ProviderSettings.ts create mode 100644 packages/codex-acp/src/app-server/v2/ProviderSettingsPatch.ts create mode 100644 packages/codex-acp/src/app-server/v2/RequestHeader.ts create mode 100644 packages/codex-acp/src/app-server/v2/ThreadAttachmentOwner.ts create mode 100644 packages/codex-acp/src/app-server/v2/ThreadAttachmentOwnerListParams.ts create mode 100644 packages/codex-acp/src/app-server/v2/ThreadAttachmentOwnerListResponse.ts create mode 100644 packages/codex-acp/src/app-server/v2/ThreadGoalMutationOrigin.ts create mode 100644 packages/codex-acp/src/app-server/v2/ThreadItemOutputDeferral.ts create mode 100644 packages/codex-acp/src/app-server/v2/ThreadItemsListAnchor.ts create mode 100644 packages/codex-acp/src/app-server/v2/ThreadItemsListCursor.ts create mode 100644 packages/codex-acp/src/app-server/v2/ThreadPredictionResult.ts create mode 100644 packages/codex-acp/src/app-server/v2/ThreadPredictionUpdatedNotification.ts create mode 100644 packages/codex-acp/src/app-server/v2/ThreadReadState.ts create mode 100644 packages/codex-acp/src/app-server/v2/ThreadReadStateChangedNotification.ts create mode 100644 packages/codex-acp/src/app-server/v2/ThreadReadStateOperation.ts create mode 100644 packages/codex-acp/src/app-server/v2/ThreadSectionChangedNotification.ts create mode 100644 packages/codex-acp/src/app-server/v2/ThreadUnreadPosition.ts create mode 100644 packages/codex-acp/src/app-server/v2/TrustedContacts.ts diff --git a/.changeset/codex-update-0-170-0.md b/.changeset/codex-update-0-170-0.md new file mode 100644 index 00000000..9145aa82 --- /dev/null +++ b/.changeset/codex-update-0-170-0.md @@ -0,0 +1,5 @@ +--- +"@automatalabs/codex-acp": patch +--- + +Update `@openai/codex` to 0.170.0 and regenerate the app-server types. diff --git a/packages/codex-acp/package.json b/packages/codex-acp/package.json index cfc9c452..c2d33ba9 100644 --- a/packages/codex-acp/package.json +++ b/packages/codex-acp/package.json @@ -68,7 +68,7 @@ }, "dependencies": { "@agentclientprotocol/sdk": "^1.5.0", - "@openai/codex": "^0.156.1", + "@openai/codex": "^0.170.0", "diff": "^9.0.0", "open": "^11.0.1", "vscode-jsonrpc": "^9.0.1", diff --git a/packages/codex-acp/src/app-server/ClientRequest.ts b/packages/codex-acp/src/app-server/ClientRequest.ts index 45ed6aa9..de12ebd4 100644 --- a/packages/codex-acp/src/app-server/ClientRequest.ts +++ b/packages/codex-acp/src/app-server/ClientRequest.ts @@ -24,6 +24,7 @@ import type { ExperimentalFeatureListParams } from "./v2/ExperimentalFeatureList import type { ExternalAgentConfigDetectParams } from "./v2/ExternalAgentConfigDetectParams"; import type { ExternalAgentConfigImportHistoryRecordParams } from "./v2/ExternalAgentConfigImportHistoryRecordParams"; import type { ExternalAgentConfigImportParams } from "./v2/ExternalAgentConfigImportParams"; +import type { FeedbackSaveParams } from "./v2/FeedbackSaveParams"; import type { FeedbackUploadParams } from "./v2/FeedbackUploadParams"; import type { FsCopyParams } from "./v2/FsCopyParams"; import type { FsCreateDirectoryParams } from "./v2/FsCreateDirectoryParams"; @@ -34,6 +35,8 @@ import type { FsRemoveParams } from "./v2/FsRemoveParams"; import type { FsUnwatchParams } from "./v2/FsUnwatchParams"; import type { FsWatchParams } from "./v2/FsWatchParams"; import type { FsWriteFileParams } from "./v2/FsWriteFileParams"; +import type { GatewayOAuthLoginParams } from "./v2/GatewayOAuthLoginParams"; +import type { GatewayOAuthReadParams } from "./v2/GatewayOAuthReadParams"; import type { GetAccountParams } from "./v2/GetAccountParams"; import type { GetAccountRateLimitsParams } from "./v2/GetAccountRateLimitsParams"; import type { GetAccountTokenUsageParams } from "./v2/GetAccountTokenUsageParams"; @@ -48,6 +51,8 @@ import type { McpServerOauthLoginParams } from "./v2/McpServerOauthLoginParams"; import type { McpServerToolCallParams } from "./v2/McpServerToolCallParams"; import type { ModelListParams } from "./v2/ModelListParams"; import type { ModelProviderCapabilitiesReadParams } from "./v2/ModelProviderCapabilitiesReadParams"; +import type { ModelProviderConfigWriteParams } from "./v2/ModelProviderConfigWriteParams"; +import type { ModelProviderListParams } from "./v2/ModelProviderListParams"; import type { PermissionProfileListParams } from "./v2/PermissionProfileListParams"; import type { PluginInstallParams } from "./v2/PluginInstallParams"; import type { PluginInstalledParams } from "./v2/PluginInstalledParams"; @@ -70,6 +75,7 @@ import type { ThreadApproveGuardianDeniedActionParams } from "./v2/ThreadApprove import type { ThreadArchiveParams } from "./v2/ThreadArchiveParams"; import type { ThreadAttachmentAddParams } from "./v2/ThreadAttachmentAddParams"; import type { ThreadAttachmentListParams } from "./v2/ThreadAttachmentListParams"; +import type { ThreadAttachmentOwnerListParams } from "./v2/ThreadAttachmentOwnerListParams"; import type { ThreadAttachmentRemoveParams } from "./v2/ThreadAttachmentRemoveParams"; import type { ThreadCompactStartParams } from "./v2/ThreadCompactStartParams"; import type { ThreadDeleteParams } from "./v2/ThreadDeleteParams"; @@ -104,4 +110,4 @@ import type { WindowsSandboxSetupStartParams } from "./v2/WindowsSandboxSetupSta /** * Request from the client to the server. */ -export type ClientRequest ={ "method": "initialize", id: RequestId, params: InitializeParams, } | { "method": "thread/start", id: RequestId, params: ThreadStartParams, } | { "method": "thread/resume", id: RequestId, params: ThreadResumeParams, } | { "method": "thread/fork", id: RequestId, params: ThreadForkParams, } | { "method": "thread/archive", id: RequestId, params: ThreadArchiveParams, } | { "method": "thread/delete", id: RequestId, params: ThreadDeleteParams, } | { "method": "thread/unsubscribe", id: RequestId, params: ThreadUnsubscribeParams, } | { "method": "thread/name/set", id: RequestId, params: ThreadSetNameParams, } | { "method": "thread/goal/set", id: RequestId, params: ThreadGoalSetParams, } | { "method": "thread/goal/get", id: RequestId, params: ThreadGoalGetParams, } | { "method": "thread/goal/clear", id: RequestId, params: ThreadGoalClearParams, } | { "method": "thread/metadata/update", id: RequestId, params: ThreadMetadataUpdateParams, } | { "method": "thread/attachment/add", id: RequestId, params: ThreadAttachmentAddParams, } | { "method": "thread/attachment/list", id: RequestId, params: ThreadAttachmentListParams, } | { "method": "thread/attachment/remove", id: RequestId, params: ThreadAttachmentRemoveParams, } | { "method": "thread/section/move", id: RequestId, params: ThreadSectionMoveParams, } | { "method": "thread/unarchive", id: RequestId, params: ThreadUnarchiveParams, } | { "method": "thread/compact/start", id: RequestId, params: ThreadCompactStartParams, } | { "method": "thread/shellCommand", id: RequestId, params: ThreadShellCommandParams, } | { "method": "thread/approveGuardianDeniedAction", id: RequestId, params: ThreadApproveGuardianDeniedActionParams, } | { "method": "thread/revert", id: RequestId, params: ThreadRevertParams, } | { "method": "thread/list", id: RequestId, params: ThreadListParams, } | { "method": "threadSection/list", id: RequestId, params: ThreadSectionListParams, } | { "method": "threadSection/create", id: RequestId, params: ThreadSectionCreateParams, } | { "method": "threadSection/update", id: RequestId, params: ThreadSectionUpdateParams, } | { "method": "threadSection/delete", id: RequestId, params: ThreadSectionDeleteParams, } | { "method": "thread/loaded/list", id: RequestId, params: ThreadLoadedListParams, } | { "method": "thread/read", id: RequestId, params: ThreadReadParams, } | { "method": "thread/turns/list", id: RequestId, params: ThreadTurnsListParams, } | { "method": "thread/items/list", id: RequestId, params: ThreadItemsListParams, } | { "method": "thread/inject_items", id: RequestId, params: ThreadInjectItemsParams, } | { "method": "skills/list", id: RequestId, params: SkillsListParams, } | { "method": "skills/extraRoots/set", id: RequestId, params: SkillsExtraRootsSetParams, } | { "method": "hooks/list", id: RequestId, params: HooksListParams, } | { "method": "marketplace/add", id: RequestId, params: MarketplaceAddParams, } | { "method": "marketplace/remove", id: RequestId, params: MarketplaceRemoveParams, } | { "method": "marketplace/upgrade", id: RequestId, params: MarketplaceUpgradeParams, } | { "method": "plugin/list", id: RequestId, params: PluginListParams, } | { "method": "plugin/installed", id: RequestId, params: PluginInstalledParams, } | { "method": "plugin/reconcile", id: RequestId, params: PluginReconcileParams, } | { "method": "plugin/read", id: RequestId, params: PluginReadParams, } | { "method": "plugin/skill/read", id: RequestId, params: PluginSkillReadParams, } | { "method": "plugin/share/save", id: RequestId, params: PluginShareSaveParams, } | { "method": "plugin/share/updateTargets", id: RequestId, params: PluginShareUpdateTargetsParams, } | { "method": "plugin/share/list", id: RequestId, params: PluginShareListParams, } | { "method": "plugin/share/checkout", id: RequestId, params: PluginShareCheckoutParams, } | { "method": "plugin/share/delete", id: RequestId, params: PluginShareDeleteParams, } | { "method": "app/read", id: RequestId, params: AppsReadParams, } | { "method": "app/list", id: RequestId, params: AppsListParams, } | { "method": "app/installed", id: RequestId, params: AppsInstalledParams, } | { "method": "fs/readFile", id: RequestId, params: FsReadFileParams, } | { "method": "fs/writeFile", id: RequestId, params: FsWriteFileParams, } | { "method": "fs/createDirectory", id: RequestId, params: FsCreateDirectoryParams, } | { "method": "fs/getMetadata", id: RequestId, params: FsGetMetadataParams, } | { "method": "fs/readDirectory", id: RequestId, params: FsReadDirectoryParams, } | { "method": "fs/remove", id: RequestId, params: FsRemoveParams, } | { "method": "fs/copy", id: RequestId, params: FsCopyParams, } | { "method": "fs/watch", id: RequestId, params: FsWatchParams, } | { "method": "fs/unwatch", id: RequestId, params: FsUnwatchParams, } | { "method": "skills/config/write", id: RequestId, params: SkillsConfigWriteParams, } | { "method": "plugin/install", id: RequestId, params: PluginInstallParams, } | { "method": "plugin/uninstall", id: RequestId, params: PluginUninstallParams, } | { "method": "turn/start", id: RequestId, params: TurnStartParams, } | { "method": "turn/steer", id: RequestId, params: TurnSteerParams, } | { "method": "turn/interrupt", id: RequestId, params: TurnInterruptParams, } | { "method": "review/start", id: RequestId, params: ReviewStartParams, } | { "method": "model/list", id: RequestId, params: ModelListParams, } | { "method": "modelProvider/capabilities/read", id: RequestId, params: ModelProviderCapabilitiesReadParams, } | { "method": "experimentalFeature/list", id: RequestId, params: ExperimentalFeatureListParams, } | { "method": "permissionProfile/list", id: RequestId, params: PermissionProfileListParams, } | { "method": "experimentalFeature/enablement/set", id: RequestId, params: ExperimentalFeatureEnablementSetParams, } | { "method": "mcpServer/oauth/login", id: RequestId, params: McpServerOauthLoginParams, } | { "method": "config/mcpServer/reload", id: RequestId, params: undefined, } | { "method": "mcpServerStatus/list", id: RequestId, params: ListMcpServerStatusParams, } | { "method": "mcpServer/resource/read", id: RequestId, params: McpResourceReadParams, } | { "method": "mcpServer/tool/call", id: RequestId, params: McpServerToolCallParams, } | { "method": "windowsSandbox/setupStart", id: RequestId, params: WindowsSandboxSetupStartParams, } | { "method": "windowsSandbox/readiness", id: RequestId, params: undefined, } | { "method": "account/login/start", id: RequestId, params: LoginAccountParams, } | { "method": "account/login/cancel", id: RequestId, params: CancelLoginAccountParams, } | { "method": "account/logout", id: RequestId, params: undefined, } | { "method": "account/rateLimits/read", id: RequestId, params?: GetAccountRateLimitsParams | undefined, } | { "method": "account/rateLimitResetCredit/consume", id: RequestId, params: ConsumeAccountRateLimitResetCreditParams, } | { "method": "account/usage/read", id: RequestId, params?: GetAccountTokenUsageParams | undefined, } | { "method": "account/workspaceMessages/read", id: RequestId, params: undefined, } | { "method": "account/sendAddCreditsNudgeEmail", id: RequestId, params: SendAddCreditsNudgeEmailParams, } | { "method": "feedback/upload", id: RequestId, params: FeedbackUploadParams, } | { "method": "command/exec", id: RequestId, params: CommandExecParams, } | { "method": "command/exec/write", id: RequestId, params: CommandExecWriteParams, } | { "method": "command/exec/terminate", id: RequestId, params: CommandExecTerminateParams, } | { "method": "command/exec/resize", id: RequestId, params: CommandExecResizeParams, } | { "method": "config/read", id: RequestId, params: ConfigReadParams, } | { "method": "externalAgentConfig/detect", id: RequestId, params: ExternalAgentConfigDetectParams, } | { "method": "externalAgentConfig/import", id: RequestId, params: ExternalAgentConfigImportParams, } | { "method": "externalAgentConfig/import/recordHistory", id: RequestId, params: ExternalAgentConfigImportHistoryRecordParams, } | { "method": "externalAgentConfig/import/readHistories", id: RequestId, params: undefined, } | { "method": "config/value/write", id: RequestId, params: ConfigValueWriteParams, } | { "method": "config/batchWrite", id: RequestId, params: ConfigBatchWriteParams, } | { "method": "configRequirements/read", id: RequestId, params: undefined, } | { "method": "account/read", id: RequestId, params: GetAccountParams, } | { "method": "getConversationSummary", id: RequestId, params: GetConversationSummaryParams, } | { "method": "gitDiffToRemote", id: RequestId, params: GitDiffToRemoteParams, } | { "method": "getAuthStatus", id: RequestId, params: GetAuthStatusParams, } | { "method": "fuzzyFileSearch", id: RequestId, params: FuzzyFileSearchParams, }; +export type ClientRequest ={ "method": "initialize", id: RequestId, params: InitializeParams, } | { "method": "thread/start", id: RequestId, params: ThreadStartParams, } | { "method": "thread/resume", id: RequestId, params: ThreadResumeParams, } | { "method": "thread/fork", id: RequestId, params: ThreadForkParams, } | { "method": "thread/archive", id: RequestId, params: ThreadArchiveParams, } | { "method": "thread/delete", id: RequestId, params: ThreadDeleteParams, } | { "method": "thread/unsubscribe", id: RequestId, params: ThreadUnsubscribeParams, } | { "method": "thread/name/set", id: RequestId, params: ThreadSetNameParams, } | { "method": "thread/goal/set", id: RequestId, params: ThreadGoalSetParams, } | { "method": "thread/goal/get", id: RequestId, params: ThreadGoalGetParams, } | { "method": "thread/goal/clear", id: RequestId, params: ThreadGoalClearParams, } | { "method": "thread/metadata/update", id: RequestId, params: ThreadMetadataUpdateParams, } | { "method": "thread/attachment/add", id: RequestId, params: ThreadAttachmentAddParams, } | { "method": "thread/attachment/list", id: RequestId, params: ThreadAttachmentListParams, } | { "method": "thread/attachmentOwner/list", id: RequestId, params: ThreadAttachmentOwnerListParams, } | { "method": "thread/attachment/remove", id: RequestId, params: ThreadAttachmentRemoveParams, } | { "method": "thread/section/move", id: RequestId, params: ThreadSectionMoveParams, } | { "method": "thread/unarchive", id: RequestId, params: ThreadUnarchiveParams, } | { "method": "thread/compact/start", id: RequestId, params: ThreadCompactStartParams, } | { "method": "thread/shellCommand", id: RequestId, params: ThreadShellCommandParams, } | { "method": "thread/approveGuardianDeniedAction", id: RequestId, params: ThreadApproveGuardianDeniedActionParams, } | { "method": "thread/revert", id: RequestId, params: ThreadRevertParams, } | { "method": "thread/list", id: RequestId, params: ThreadListParams, } | { "method": "threadSection/list", id: RequestId, params: ThreadSectionListParams, } | { "method": "threadSection/create", id: RequestId, params: ThreadSectionCreateParams, } | { "method": "threadSection/update", id: RequestId, params: ThreadSectionUpdateParams, } | { "method": "threadSection/delete", id: RequestId, params: ThreadSectionDeleteParams, } | { "method": "thread/loaded/list", id: RequestId, params: ThreadLoadedListParams, } | { "method": "thread/read", id: RequestId, params: ThreadReadParams, } | { "method": "thread/turns/list", id: RequestId, params: ThreadTurnsListParams, } | { "method": "thread/items/list", id: RequestId, params: ThreadItemsListParams, } | { "method": "thread/inject_items", id: RequestId, params: ThreadInjectItemsParams, } | { "method": "skills/list", id: RequestId, params: SkillsListParams, } | { "method": "skills/extraRoots/set", id: RequestId, params: SkillsExtraRootsSetParams, } | { "method": "hooks/list", id: RequestId, params: HooksListParams, } | { "method": "marketplace/add", id: RequestId, params: MarketplaceAddParams, } | { "method": "marketplace/remove", id: RequestId, params: MarketplaceRemoveParams, } | { "method": "marketplace/upgrade", id: RequestId, params: MarketplaceUpgradeParams, } | { "method": "plugin/list", id: RequestId, params: PluginListParams, } | { "method": "plugin/installed", id: RequestId, params: PluginInstalledParams, } | { "method": "plugin/reconcile", id: RequestId, params: PluginReconcileParams, } | { "method": "plugin/read", id: RequestId, params: PluginReadParams, } | { "method": "plugin/skill/read", id: RequestId, params: PluginSkillReadParams, } | { "method": "plugin/share/save", id: RequestId, params: PluginShareSaveParams, } | { "method": "plugin/share/updateTargets", id: RequestId, params: PluginShareUpdateTargetsParams, } | { "method": "plugin/share/list", id: RequestId, params: PluginShareListParams, } | { "method": "plugin/share/checkout", id: RequestId, params: PluginShareCheckoutParams, } | { "method": "plugin/share/delete", id: RequestId, params: PluginShareDeleteParams, } | { "method": "app/read", id: RequestId, params: AppsReadParams, } | { "method": "app/list", id: RequestId, params: AppsListParams, } | { "method": "app/installed", id: RequestId, params: AppsInstalledParams, } | { "method": "fs/readFile", id: RequestId, params: FsReadFileParams, } | { "method": "fs/writeFile", id: RequestId, params: FsWriteFileParams, } | { "method": "fs/createDirectory", id: RequestId, params: FsCreateDirectoryParams, } | { "method": "fs/getMetadata", id: RequestId, params: FsGetMetadataParams, } | { "method": "fs/readDirectory", id: RequestId, params: FsReadDirectoryParams, } | { "method": "fs/remove", id: RequestId, params: FsRemoveParams, } | { "method": "fs/copy", id: RequestId, params: FsCopyParams, } | { "method": "fs/watch", id: RequestId, params: FsWatchParams, } | { "method": "fs/unwatch", id: RequestId, params: FsUnwatchParams, } | { "method": "skills/config/write", id: RequestId, params: SkillsConfigWriteParams, } | { "method": "plugin/install", id: RequestId, params: PluginInstallParams, } | { "method": "plugin/uninstall", id: RequestId, params: PluginUninstallParams, } | { "method": "turn/start", id: RequestId, params: TurnStartParams, } | { "method": "turn/steer", id: RequestId, params: TurnSteerParams, } | { "method": "turn/interrupt", id: RequestId, params: TurnInterruptParams, } | { "method": "review/start", id: RequestId, params: ReviewStartParams, } | { "method": "model/list", id: RequestId, params: ModelListParams, } | { "method": "account/gatewayOAuth/read", id: RequestId, params?: GatewayOAuthReadParams | null | undefined, } | { "method": "account/gatewayOAuth/login", id: RequestId, params?: GatewayOAuthLoginParams | null | undefined, } | { "method": "account/gatewayOAuth/cancel", id: RequestId, params: undefined, } | { "method": "modelProvider/list", id: RequestId, params: ModelProviderListParams, } | { "method": "modelProvider/config/write", id: RequestId, params: ModelProviderConfigWriteParams, } | { "method": "modelProvider/capabilities/read", id: RequestId, params: ModelProviderCapabilitiesReadParams, } | { "method": "experimentalFeature/list", id: RequestId, params: ExperimentalFeatureListParams, } | { "method": "permissionProfile/list", id: RequestId, params: PermissionProfileListParams, } | { "method": "experimentalFeature/enablement/set", id: RequestId, params: ExperimentalFeatureEnablementSetParams, } | { "method": "mcpServer/oauth/login", id: RequestId, params: McpServerOauthLoginParams, } | { "method": "config/mcpServer/reload", id: RequestId, params: undefined, } | { "method": "mcpServerStatus/list", id: RequestId, params: ListMcpServerStatusParams, } | { "method": "mcpServer/resource/read", id: RequestId, params: McpResourceReadParams, } | { "method": "mcpServer/tool/call", id: RequestId, params: McpServerToolCallParams, } | { "method": "windowsSandbox/setupStart", id: RequestId, params: WindowsSandboxSetupStartParams, } | { "method": "windowsSandbox/readiness", id: RequestId, params: undefined, } | { "method": "account/login/start", id: RequestId, params: LoginAccountParams, } | { "method": "account/login/cancel", id: RequestId, params: CancelLoginAccountParams, } | { "method": "account/logout", id: RequestId, params: undefined, } | { "method": "account/securitySetup/read", id: RequestId, params: undefined, } | { "method": "account/rateLimits/read", id: RequestId, params?: GetAccountRateLimitsParams | undefined, } | { "method": "account/rateLimitResetCredit/consume", id: RequestId, params: ConsumeAccountRateLimitResetCreditParams, } | { "method": "account/usage/read", id: RequestId, params?: GetAccountTokenUsageParams | undefined, } | { "method": "account/workspaceMessages/read", id: RequestId, params: undefined, } | { "method": "account/sendAddCreditsNudgeEmail", id: RequestId, params: SendAddCreditsNudgeEmailParams, } | { "method": "feedback/upload", id: RequestId, params: FeedbackUploadParams, } | { "method": "feedback/save", id: RequestId, params: FeedbackSaveParams, } | { "method": "command/exec", id: RequestId, params: CommandExecParams, } | { "method": "command/exec/write", id: RequestId, params: CommandExecWriteParams, } | { "method": "command/exec/terminate", id: RequestId, params: CommandExecTerminateParams, } | { "method": "command/exec/resize", id: RequestId, params: CommandExecResizeParams, } | { "method": "config/read", id: RequestId, params: ConfigReadParams, } | { "method": "externalAgentConfig/detect", id: RequestId, params: ExternalAgentConfigDetectParams, } | { "method": "externalAgentConfig/import", id: RequestId, params: ExternalAgentConfigImportParams, } | { "method": "externalAgentConfig/import/recordHistory", id: RequestId, params: ExternalAgentConfigImportHistoryRecordParams, } | { "method": "externalAgentConfig/import/readHistories", id: RequestId, params: undefined, } | { "method": "config/value/write", id: RequestId, params: ConfigValueWriteParams, } | { "method": "config/batchWrite", id: RequestId, params: ConfigBatchWriteParams, } | { "method": "configRequirements/read", id: RequestId, params: undefined, } | { "method": "account/read", id: RequestId, params: GetAccountParams, } | { "method": "getConversationSummary", id: RequestId, params: GetConversationSummaryParams, } | { "method": "gitDiffToRemote", id: RequestId, params: GitDiffToRemoteParams, } | { "method": "getAuthStatus", id: RequestId, params: GetAuthStatusParams, } | { "method": "fuzzyFileSearch", id: RequestId, params: FuzzyFileSearchParams, }; diff --git a/packages/codex-acp/src/app-server/ContentItem.ts b/packages/codex-acp/src/app-server/ContentItem.ts index 0ad09f18..8ca1832b 100644 --- a/packages/codex-acp/src/app-server/ContentItem.ts +++ b/packages/codex-acp/src/app-server/ContentItem.ts @@ -3,4 +3,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ImageDetail } from "./ImageDetail"; -export type ContentItem = { "type": "input_text", text: string, } | { "type": "input_image", detail?: ImageDetail, } & ({ image_url: string, } | { file_id: string, }) | { "type": "input_audio", audio_url: string, } | { "type": "output_text", text: string, }; +export type ContentItem = { "type": "input_text", text: string, } | { "type": "input_image", detail?: ImageDetail, } & ({ image_url: string, } | { file_id: string, }) | { "type": "input_audio", } & ({ audio_url: string, } | { file_id: string, }) | { "type": "output_text", text: string, annotations?: unknown[], logprobs?: unknown[], }; diff --git a/packages/codex-acp/src/app-server/FunctionCallOutputContentItem.ts b/packages/codex-acp/src/app-server/FunctionCallOutputContentItem.ts index 5fa3d63a..80d237be 100644 --- a/packages/codex-acp/src/app-server/FunctionCallOutputContentItem.ts +++ b/packages/codex-acp/src/app-server/FunctionCallOutputContentItem.ts @@ -7,4 +7,4 @@ import type { ImageDetail } from "./ImageDetail"; * Responses API compatible content items that can be returned by a tool call. * This is a subset of ContentItem with the types we support as function call outputs. */ -export type FunctionCallOutputContentItem = { "type": "input_text", text: string, } | { "type": "input_image", detail?: ImageDetail, } & ({ image_url: string, } | { file_id: string, }) | { "type": "input_audio", audio_url: string, } | { "type": "encrypted_content", encrypted_content: string, }; +export type FunctionCallOutputContentItem = { "type": "input_text", text: string, } | { "type": "input_image", detail?: ImageDetail, } & ({ image_url: string, } | { file_id: string, }) | { "type": "input_audio", } & ({ audio_url: string, } | { file_id: string, }) | { "type": "encrypted_content", encrypted_content: string, }; diff --git a/packages/codex-acp/src/app-server/ImageGenerationInputImage.ts b/packages/codex-acp/src/app-server/ImageGenerationInputImage.ts new file mode 100644 index 00000000..fe604dfc --- /dev/null +++ b/packages/codex-acp/src/app-server/ImageGenerationInputImage.ts @@ -0,0 +1,13 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AbsolutePathBuf } from "./AbsolutePathBuf"; + +/** + * A local image file successfully read for this exact image-generation request. + */ +export type ImageGenerationInputImage = { path: AbsolutePathBuf, +/** + * Lowercase SHA-256 of the file bytes read before image normalization. + */ +sha256: string, }; diff --git a/packages/codex-acp/src/app-server/ImageGenerationItem.ts b/packages/codex-acp/src/app-server/ImageGenerationItem.ts index 645d275e..e43fb299 100644 --- a/packages/codex-acp/src/app-server/ImageGenerationItem.ts +++ b/packages/codex-acp/src/app-server/ImageGenerationItem.ts @@ -3,5 +3,14 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { AbsolutePathBuf } from "./AbsolutePathBuf"; import type { ImageGenerationFailure } from "./ImageGenerationFailure"; +import type { ImageGenerationInputImage } from "./ImageGenerationInputImage"; -export type ImageGenerationItem = { id: string, status: string, revisedPrompt: string | null, result: string, transparentBackground?: boolean, failure: ImageGenerationFailure | null, savedPath?: AbsolutePathBuf, }; +export type ImageGenerationItem = { id: string, status: string, revisedPrompt: string | null, transparentBackground?: boolean, failure: ImageGenerationFailure | null, savedPath?: AbsolutePathBuf, +/** + * Observed local inputs for a completed generation, absent on older items. + */ +inputImages?: Array, +/** + * Image generation identifier for the generated image, when provided by the image backend. + */ +generationId: string | null, } & ({ fileId: string, } | { result: string, }); diff --git a/packages/codex-acp/src/app-server/InitializeCapabilities.ts b/packages/codex-acp/src/app-server/InitializeCapabilities.ts index 6b4afd16..c9f74b30 100644 --- a/packages/codex-acp/src/app-server/InitializeCapabilities.ts +++ b/packages/codex-acp/src/app-server/InitializeCapabilities.ts @@ -7,6 +7,16 @@ import type { JsonValue } from "./serde_json/JsonValue"; * Client-declared capabilities negotiated during initialize. */ export type InitializeCapabilities = { +/** + * Present `humanCommand` approvals to a person and return only a one-time decision. + * Requires `experimentalApi`. Pending requests can be replayed to compatible clients. + */ +requiredHumanApproval?: boolean, +/** + * Use explicit gateway OAuth login instead of automatic browser authorization. + * Applies to this app-server's gateway runtime; later connections cannot undo it. + */ +explicitGatewayOauth?: boolean, /** * Opt into receiving experimental API methods and fields. */ diff --git a/packages/codex-acp/src/app-server/MessagePhase.ts b/packages/codex-acp/src/app-server/MessagePhase.ts index 9e16021b..737f1431 100644 --- a/packages/codex-acp/src/app-server/MessagePhase.ts +++ b/packages/codex-acp/src/app-server/MessagePhase.ts @@ -3,9 +3,9 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. /** - * Classifies an assistant message as interim commentary or final answer text. + * Classifies assistant text as commentary, a partial answer, or a terminal answer. * * Providers do not emit this consistently, so callers must treat `None` as * "phase unknown" and keep compatibility behavior for legacy models. */ -export type MessagePhase = "commentary" | "final_answer"; +export type MessagePhase = "commentary" | "partial_answer" | "final_answer"; diff --git a/packages/codex-acp/src/app-server/PlanType.ts b/packages/codex-acp/src/app-server/PlanType.ts index 3f27f240..45ed6968 100644 --- a/packages/codex-acp/src/app-server/PlanType.ts +++ b/packages/codex-acp/src/app-server/PlanType.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type PlanType = "free" | "go" | "plus" | "pro" | "prolite" | "team" | "self_serve_business_prolite" | "self_serve_business_usage_based" | "business" | "ent26" | "enterprise_cbp_automation" | "enterprise_cbp_usage_based" | "enterprise" | "edu" | "edu_plus" | "edu_pro" | "unknown"; +export type PlanType = "free" | "go" | "plus" | "pro" | "prolite" | "promax" | "team" | "self_serve_business_prolite" | "self_serve_business_usage_based" | "business" | "ent26" | "enterprise_cbp_automation" | "enterprise_cbp_usage_based" | "enterprise" | "edu" | "edu_plus" | "edu_pro" | "sci" | "sci_plus" | "unknown"; diff --git a/packages/codex-acp/src/app-server/RealtimeVoice.ts b/packages/codex-acp/src/app-server/RealtimeVoice.ts index c3a434e9..d6328c3e 100644 --- a/packages/codex-acp/src/app-server/RealtimeVoice.ts +++ b/packages/codex-acp/src/app-server/RealtimeVoice.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type RealtimeVoice = "alloy" | "arbor" | "ash" | "ballad" | "breeze" | "cedar" | "coral" | "cove" | "echo" | "ember" | "juniper" | "maple" | "marin" | "sage" | "shimmer" | "sol" | "spruce" | "vale" | "verse"; +export type RealtimeVoice = "alloy" | "arbor" | "ash" | "aube" | "ballad" | "breeze" | "bubbie" | "cedar" | "coral" | "cove" | "echo" | "ember" | "haetsal" | "hanul" | "himari" | "juniper" | "leher" | "maple" | "marin" | "miko" | "neer" | "porto" | "rindo" | "rio" | "rivage" | "sage" | "selva" | "shimmer" | "sol" | "sonna" | "spruce" | "tinta" | "vale" | "verse" | "viola"; diff --git a/packages/codex-acp/src/app-server/RealtimeVoicesList.ts b/packages/codex-acp/src/app-server/RealtimeVoicesList.ts index b81cbc0a..5b43b67b 100644 --- a/packages/codex-acp/src/app-server/RealtimeVoicesList.ts +++ b/packages/codex-acp/src/app-server/RealtimeVoicesList.ts @@ -3,4 +3,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { RealtimeVoice } from "./RealtimeVoice"; -export type RealtimeVoicesList = { v1: Array, v2: Array, defaultV1: RealtimeVoice, defaultV2: RealtimeVoice, }; +export type RealtimeVoicesList = { v1: Array, v2: Array, v3?: Array, defaultV1: RealtimeVoice, defaultV2: RealtimeVoice, }; diff --git a/packages/codex-acp/src/app-server/ResponseItem.ts b/packages/codex-acp/src/app-server/ResponseItem.ts index 80e7095f..2e6d8f60 100644 --- a/packages/codex-acp/src/app-server/ResponseItem.ts +++ b/packages/codex-acp/src/app-server/ResponseItem.ts @@ -14,7 +14,7 @@ import type { ReasoningItemReasoningSummary } from "./ReasoningItemReasoningSumm import type { ResponseItemId } from "./ResponseItemId"; import type { WebSearchAction } from "./WebSearchAction"; -export type ResponseItem = { "type": "message", id?: ResponseItemId, role: string, content: Array, phase?: MessagePhase, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "agent_message", id?: ResponseItemId, author: string, recipient: string, content: Array, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "reasoning", id?: ResponseItemId, summary: Array, content?: Array, encrypted_content: string | null, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "local_shell_call", +export type ResponseItem = { "type": "additional_tools", id?: ResponseItemId, role: string, tools: unknown[], } | { "type": "message", encrypted_content?: string, status?: string, id?: ResponseItemId, role: string, content: Array, phase?: MessagePhase, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "agent_message", id?: ResponseItemId, author: string, recipient: string, content: Array, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "reasoning", id?: ResponseItemId, summary: Array, content?: Array, encrypted_content: string | null, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "local_shell_call", encrypted_content?: string, /** * Legacy id field retained for compatibility with older payloads. */ @@ -22,4 +22,4 @@ id?: ResponseItemId, /** * Set when using the Responses API. */ -call_id: string | null, status: LocalShellStatus, action: LocalShellAction, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "function_call", id?: ResponseItemId, name: string, namespace?: string, arguments: string, encrypted_function_args?: Array, call_id: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "tool_search_call", id?: ResponseItemId, call_id: string | null, status?: string, execution: string, arguments: unknown, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "function_call_output", id?: ResponseItemId, call_id?: string, name?: string, namespace?: string, output: FunctionCallOutputBody, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "custom_tool_call", id?: ResponseItemId, status?: string, call_id: string, name: string, namespace?: string, input: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "custom_tool_call_output", id?: ResponseItemId, call_id: string, name?: string, output: FunctionCallOutputBody, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "tool_search_output", id?: ResponseItemId, call_id: string | null, status: string, execution: string, tools: unknown[], internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "web_search_call", id?: ResponseItemId, status?: string, action?: WebSearchAction, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "image_generation_call", id?: ResponseItemId, status: string, revised_prompt?: string, result: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "compaction", id?: ResponseItemId, encrypted_content: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "configuration_update", reasoning: ConfigurationReasoning, } | { "type": "compaction_trigger", } | { "type": "context_compaction", id?: ResponseItemId, encrypted_content?: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "other" }; +call_id: string | null, status: LocalShellStatus, action: LocalShellAction, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "function_call", encrypted_content?: string, status?: string, id?: ResponseItemId, name: string, namespace?: string, arguments: string, encrypted_function_args?: Array, call_id: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "tool_search_call", encrypted_content?: string, id?: ResponseItemId, call_id: string | null, status?: string, execution: string, arguments: unknown, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "function_call_output", id?: ResponseItemId, call_id?: string, name?: string, namespace?: string, output: FunctionCallOutputBody, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "custom_tool_call", encrypted_content?: string, id?: ResponseItemId, status?: string, call_id: string, name: string, namespace?: string, input: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "custom_tool_call_output", id?: ResponseItemId, call_id: string, name?: string, output: FunctionCallOutputBody, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "tool_search_output", id?: ResponseItemId, call_id: string | null, status: string, execution: string, tools: unknown[], internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "web_search_call", encrypted_content?: string, id?: ResponseItemId, status?: string, action?: WebSearchAction, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "image_generation_call", encrypted_content?: string, id?: ResponseItemId, status: string, revised_prompt?: string, result: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "compaction", id?: ResponseItemId, encrypted_content: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "configuration_update", reasoning: ConfigurationReasoning, } | { "type": "compaction_trigger", } | { "type": "context_compaction", id?: ResponseItemId, encrypted_content?: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "other" }; diff --git a/packages/codex-acp/src/app-server/ServerNotification.ts b/packages/codex-acp/src/app-server/ServerNotification.ts index da1360df..87fcbcbb 100644 --- a/packages/codex-acp/src/app-server/ServerNotification.ts +++ b/packages/codex-acp/src/app-server/ServerNotification.ts @@ -21,6 +21,7 @@ import type { ExternalAgentConfigImportProgressNotification } from "./v2/Externa import type { FileChangeOutputDeltaNotification } from "./v2/FileChangeOutputDeltaNotification"; import type { FileChangePatchUpdatedNotification } from "./v2/FileChangePatchUpdatedNotification"; import type { FsChangedNotification } from "./v2/FsChangedNotification"; +import type { GatewayOAuthChangedNotification } from "./v2/GatewayOAuthChangedNotification"; import type { GuardianWarningNotification } from "./v2/GuardianWarningNotification"; import type { HookCompletedNotification } from "./v2/HookCompletedNotification"; import type { HookStartedNotification } from "./v2/HookStartedNotification"; @@ -56,8 +57,10 @@ import type { ThreadDeletedNotification } from "./v2/ThreadDeletedNotification"; import type { ThreadGoalClearedNotification } from "./v2/ThreadGoalClearedNotification"; import type { ThreadGoalUpdatedNotification } from "./v2/ThreadGoalUpdatedNotification"; import type { ThreadNameUpdatedNotification } from "./v2/ThreadNameUpdatedNotification"; +import type { ThreadPredictionUpdatedNotification } from "./v2/ThreadPredictionUpdatedNotification"; import type { ThreadProjectUpdatedNotification } from "./v2/ThreadProjectUpdatedNotification"; import type { ThreadQueueChangedNotification } from "./v2/ThreadQueueChangedNotification"; +import type { ThreadReadStateChangedNotification } from "./v2/ThreadReadStateChangedNotification"; import type { ThreadRealtimeClosedNotification } from "./v2/ThreadRealtimeClosedNotification"; import type { ThreadRealtimeErrorNotification } from "./v2/ThreadRealtimeErrorNotification"; import type { ThreadRealtimeItemAddedNotification } from "./v2/ThreadRealtimeItemAddedNotification"; @@ -70,6 +73,7 @@ import type { ThreadRealtimeStartedNotification } from "./v2/ThreadRealtimeStart import type { ThreadRealtimeTranscriptDeltaNotification } from "./v2/ThreadRealtimeTranscriptDeltaNotification"; import type { ThreadRealtimeTranscriptDoneNotification } from "./v2/ThreadRealtimeTranscriptDoneNotification"; import type { ThreadRevertedNotification } from "./v2/ThreadRevertedNotification"; +import type { ThreadSectionChangedNotification } from "./v2/ThreadSectionChangedNotification"; import type { ThreadSettingsUpdatedNotification } from "./v2/ThreadSettingsUpdatedNotification"; import type { ThreadStartedNotification } from "./v2/ThreadStartedNotification"; import type { ThreadStatusChangedNotification } from "./v2/ThreadStatusChangedNotification"; @@ -87,4 +91,4 @@ import type { WindowsWorldWritableWarningNotification } from "./v2/WindowsWorldW /** * Notification sent from the server to the client. */ -export type ServerNotification = { "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/status/changed", "params": ThreadStatusChangedNotification } | { "method": "thread/archived", "params": ThreadArchivedNotification } | { "method": "thread/deleted", "params": ThreadDeletedNotification } | { "method": "thread/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "thread/reverted", "params": ThreadRevertedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "method": "thread/attachment/updated", "params": ThreadAttachmentUpdatedNotification } | { "method": "thread/goal/updated", "params": ThreadGoalUpdatedNotification } | { "method": "thread/goal/cleared", "params": ThreadGoalClearedNotification } | { "method": "thread/queue/changed", "params": ThreadQueueChangedNotification } | { "method": "project/changed", "params": ProjectChangedNotification } | { "method": "thread/project/updated", "params": ThreadProjectUpdatedNotification } | { "method": "thread/environment/connected", "params": EnvironmentConnectionNotification } | { "method": "thread/environment/disconnected", "params": EnvironmentConnectionNotification } | { "method": "thread/settings/updated", "params": ThreadSettingsUpdatedNotification } | { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification } | { "method": "turn/started", "params": TurnStartedNotification } | { "method": "hook/started", "params": HookStartedNotification } | { "method": "turn/completed", "params": TurnCompletedNotification } | { "method": "hook/completed", "params": HookCompletedNotification } | { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification } | { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification } | { "method": "item/started", "params": ItemStartedNotification } | { "method": "item/autoApprovalReview/started", "params": ItemGuardianApprovalReviewStartedNotification } | { "method": "item/autoApprovalReview/completed", "params": ItemGuardianApprovalReviewCompletedNotification } | { "method": "autoApprovalReview/strictReviewRequired", "params": StrictReviewRequiredNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "rawResponse/completed", "params": RawResponseCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "process/outputDelta", "params": ProcessOutputDeltaNotification } | { "method": "process/exited", "params": ProcessExitedNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "item/fileChange/patchUpdated", "params": FileChangePatchUpdatedNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "mcpServer/event/stream/notification", "params": McpServerEventStreamNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "app/list/updated", "params": AppListUpdatedNotification } | { "method": "remoteControl/status/changed", "params": RemoteControlStatusChangedNotification } | { "method": "externalAgentConfig/import/progress", "params": ExternalAgentConfigImportProgressNotification } | { "method": "externalAgentConfig/import/completed", "params": ExternalAgentConfigImportCompletedNotification } | { "method": "fs/changed", "params": FsChangedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "model/rerouted", "params": ModelReroutedNotification } | { "method": "model/verification", "params": ModelVerificationNotification } | { "method": "modelProvider/authRecoveryStarted", "params": AuthRecoveryNotification } | { "method": "modelProvider/authRecoveryCompleted", "params": AuthRecoveryNotification } | { "method": "turn/moderationMetadata", "params": TurnModerationMetadataNotification } | { "method": "model/safetyBuffering/updated", "params": ModelSafetyBufferingUpdatedNotification } | { "method": "warning", "params": WarningNotification } | { "method": "guardianWarning", "params": GuardianWarningNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "fuzzyFileSearch/sessionUpdated", "params": FuzzyFileSearchSessionUpdatedNotification } | { "method": "fuzzyFileSearch/sessionCompleted", "params": FuzzyFileSearchSessionCompletedNotification } | { "method": "thread/realtime/started", "params": ThreadRealtimeStartedNotification } | { "method": "thread/realtime/itemAdded", "params": ThreadRealtimeItemAddedNotification } | { "method": "thread/realtime/item/started", "params": ThreadRealtimeItemStartedNotification } | { "method": "thread/realtime/item/transcript/delta", "params": ThreadRealtimeItemTranscriptDeltaNotification } | { "method": "thread/realtime/item/completed", "params": ThreadRealtimeItemCompletedNotification } | { "method": "thread/realtime/transcript/delta", "params": ThreadRealtimeTranscriptDeltaNotification } | { "method": "thread/realtime/transcript/done", "params": ThreadRealtimeTranscriptDoneNotification } | { "method": "thread/realtime/outputAudio/delta", "params": ThreadRealtimeOutputAudioDeltaNotification } | { "method": "thread/realtime/sdp", "params": ThreadRealtimeSdpNotification } | { "method": "thread/realtime/error", "params": ThreadRealtimeErrorNotification } | { "method": "thread/realtime/closed", "params": ThreadRealtimeClosedNotification } | { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification } | { "method": "windowsSandbox/setupCompleted", "params": WindowsSandboxSetupCompletedNotification } | { "method": "account/login/completed", "params": AccountLoginCompletedNotification }; +export type ServerNotification = { "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/status/changed", "params": ThreadStatusChangedNotification } | { "method": "thread/readState/changed", "params": ThreadReadStateChangedNotification } | { "method": "thread/archived", "params": ThreadArchivedNotification } | { "method": "thread/deleted", "params": ThreadDeletedNotification } | { "method": "thread/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "thread/reverted", "params": ThreadRevertedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "method": "thread/section/changed", "params": ThreadSectionChangedNotification } | { "method": "thread/attachment/updated", "params": ThreadAttachmentUpdatedNotification } | { "method": "thread/goal/updated", "params": ThreadGoalUpdatedNotification } | { "method": "thread/prediction/updated", "params": ThreadPredictionUpdatedNotification } | { "method": "thread/goal/cleared", "params": ThreadGoalClearedNotification } | { "method": "thread/queue/changed", "params": ThreadQueueChangedNotification } | { "method": "project/changed", "params": ProjectChangedNotification } | { "method": "thread/project/updated", "params": ThreadProjectUpdatedNotification } | { "method": "thread/environment/connected", "params": EnvironmentConnectionNotification } | { "method": "thread/environment/disconnected", "params": EnvironmentConnectionNotification } | { "method": "thread/settings/updated", "params": ThreadSettingsUpdatedNotification } | { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification } | { "method": "turn/started", "params": TurnStartedNotification } | { "method": "hook/started", "params": HookStartedNotification } | { "method": "turn/completed", "params": TurnCompletedNotification } | { "method": "hook/completed", "params": HookCompletedNotification } | { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification } | { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification } | { "method": "item/started", "params": ItemStartedNotification } | { "method": "item/autoApprovalReview/started", "params": ItemGuardianApprovalReviewStartedNotification } | { "method": "item/autoApprovalReview/completed", "params": ItemGuardianApprovalReviewCompletedNotification } | { "method": "autoApprovalReview/strictReviewRequired", "params": StrictReviewRequiredNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "rawResponse/completed", "params": RawResponseCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "process/outputDelta", "params": ProcessOutputDeltaNotification } | { "method": "process/exited", "params": ProcessExitedNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "item/fileChange/patchUpdated", "params": FileChangePatchUpdatedNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "mcpServer/event/stream/notification", "params": McpServerEventStreamNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/gatewayOAuth/changed", "params": GatewayOAuthChangedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "app/list/updated", "params": AppListUpdatedNotification } | { "method": "remoteControl/status/changed", "params": RemoteControlStatusChangedNotification } | { "method": "externalAgentConfig/import/progress", "params": ExternalAgentConfigImportProgressNotification } | { "method": "externalAgentConfig/import/completed", "params": ExternalAgentConfigImportCompletedNotification } | { "method": "fs/changed", "params": FsChangedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "model/rerouted", "params": ModelReroutedNotification } | { "method": "model/verification", "params": ModelVerificationNotification } | { "method": "modelProvider/authRecoveryStarted", "params": AuthRecoveryNotification } | { "method": "modelProvider/authRecoveryCompleted", "params": AuthRecoveryNotification } | { "method": "turn/moderationMetadata", "params": TurnModerationMetadataNotification } | { "method": "model/safetyBuffering/updated", "params": ModelSafetyBufferingUpdatedNotification } | { "method": "warning", "params": WarningNotification } | { "method": "guardianWarning", "params": GuardianWarningNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "fuzzyFileSearch/sessionUpdated", "params": FuzzyFileSearchSessionUpdatedNotification } | { "method": "fuzzyFileSearch/sessionCompleted", "params": FuzzyFileSearchSessionCompletedNotification } | { "method": "thread/realtime/started", "params": ThreadRealtimeStartedNotification } | { "method": "thread/realtime/itemAdded", "params": ThreadRealtimeItemAddedNotification } | { "method": "thread/realtime/item/started", "params": ThreadRealtimeItemStartedNotification } | { "method": "thread/realtime/item/transcript/delta", "params": ThreadRealtimeItemTranscriptDeltaNotification } | { "method": "thread/realtime/item/completed", "params": ThreadRealtimeItemCompletedNotification } | { "method": "thread/realtime/transcript/delta", "params": ThreadRealtimeTranscriptDeltaNotification } | { "method": "thread/realtime/transcript/done", "params": ThreadRealtimeTranscriptDoneNotification } | { "method": "thread/realtime/outputAudio/delta", "params": ThreadRealtimeOutputAudioDeltaNotification } | { "method": "thread/realtime/sdp", "params": ThreadRealtimeSdpNotification } | { "method": "thread/realtime/error", "params": ThreadRealtimeErrorNotification } | { "method": "thread/realtime/closed", "params": ThreadRealtimeClosedNotification } | { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification } | { "method": "windowsSandbox/setupCompleted", "params": WindowsSandboxSetupCompletedNotification } | { "method": "account/login/completed", "params": AccountLoginCompletedNotification }; diff --git a/packages/codex-acp/src/app-server/ServerNotificationEnvelope.ts b/packages/codex-acp/src/app-server/ServerNotificationEnvelope.ts index 47f35db0..3bc76db4 100644 --- a/packages/codex-acp/src/app-server/ServerNotificationEnvelope.ts +++ b/packages/codex-acp/src/app-server/ServerNotificationEnvelope.ts @@ -21,6 +21,7 @@ import type { ExternalAgentConfigImportProgressNotification } from "./v2/Externa import type { FileChangeOutputDeltaNotification } from "./v2/FileChangeOutputDeltaNotification"; import type { FileChangePatchUpdatedNotification } from "./v2/FileChangePatchUpdatedNotification"; import type { FsChangedNotification } from "./v2/FsChangedNotification"; +import type { GatewayOAuthChangedNotification } from "./v2/GatewayOAuthChangedNotification"; import type { GuardianWarningNotification } from "./v2/GuardianWarningNotification"; import type { HookCompletedNotification } from "./v2/HookCompletedNotification"; import type { HookStartedNotification } from "./v2/HookStartedNotification"; @@ -56,8 +57,10 @@ import type { ThreadDeletedNotification } from "./v2/ThreadDeletedNotification"; import type { ThreadGoalClearedNotification } from "./v2/ThreadGoalClearedNotification"; import type { ThreadGoalUpdatedNotification } from "./v2/ThreadGoalUpdatedNotification"; import type { ThreadNameUpdatedNotification } from "./v2/ThreadNameUpdatedNotification"; +import type { ThreadPredictionUpdatedNotification } from "./v2/ThreadPredictionUpdatedNotification"; import type { ThreadProjectUpdatedNotification } from "./v2/ThreadProjectUpdatedNotification"; import type { ThreadQueueChangedNotification } from "./v2/ThreadQueueChangedNotification"; +import type { ThreadReadStateChangedNotification } from "./v2/ThreadReadStateChangedNotification"; import type { ThreadRealtimeClosedNotification } from "./v2/ThreadRealtimeClosedNotification"; import type { ThreadRealtimeErrorNotification } from "./v2/ThreadRealtimeErrorNotification"; import type { ThreadRealtimeItemAddedNotification } from "./v2/ThreadRealtimeItemAddedNotification"; @@ -70,6 +73,7 @@ import type { ThreadRealtimeStartedNotification } from "./v2/ThreadRealtimeStart import type { ThreadRealtimeTranscriptDeltaNotification } from "./v2/ThreadRealtimeTranscriptDeltaNotification"; import type { ThreadRealtimeTranscriptDoneNotification } from "./v2/ThreadRealtimeTranscriptDoneNotification"; import type { ThreadRevertedNotification } from "./v2/ThreadRevertedNotification"; +import type { ThreadSectionChangedNotification } from "./v2/ThreadSectionChangedNotification"; import type { ThreadSettingsUpdatedNotification } from "./v2/ThreadSettingsUpdatedNotification"; import type { ThreadStartedNotification } from "./v2/ThreadStartedNotification"; import type { ThreadStatusChangedNotification } from "./v2/ThreadStatusChangedNotification"; @@ -97,4 +101,4 @@ export type ServerNotificationEnvelope = { * Optional so clients can decode notifications from older app-server * versions. Current app-server versions always populate it. */ -emittedAtMs?: number, } & ({ "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/status/changed", "params": ThreadStatusChangedNotification } | { "method": "thread/archived", "params": ThreadArchivedNotification } | { "method": "thread/deleted", "params": ThreadDeletedNotification } | { "method": "thread/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "thread/reverted", "params": ThreadRevertedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "method": "thread/attachment/updated", "params": ThreadAttachmentUpdatedNotification } | { "method": "thread/goal/updated", "params": ThreadGoalUpdatedNotification } | { "method": "thread/goal/cleared", "params": ThreadGoalClearedNotification } | { "method": "thread/queue/changed", "params": ThreadQueueChangedNotification } | { "method": "project/changed", "params": ProjectChangedNotification } | { "method": "thread/project/updated", "params": ThreadProjectUpdatedNotification } | { "method": "thread/environment/connected", "params": EnvironmentConnectionNotification } | { "method": "thread/environment/disconnected", "params": EnvironmentConnectionNotification } | { "method": "thread/settings/updated", "params": ThreadSettingsUpdatedNotification } | { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification } | { "method": "turn/started", "params": TurnStartedNotification } | { "method": "hook/started", "params": HookStartedNotification } | { "method": "turn/completed", "params": TurnCompletedNotification } | { "method": "hook/completed", "params": HookCompletedNotification } | { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification } | { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification } | { "method": "item/started", "params": ItemStartedNotification } | { "method": "item/autoApprovalReview/started", "params": ItemGuardianApprovalReviewStartedNotification } | { "method": "item/autoApprovalReview/completed", "params": ItemGuardianApprovalReviewCompletedNotification } | { "method": "autoApprovalReview/strictReviewRequired", "params": StrictReviewRequiredNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "rawResponse/completed", "params": RawResponseCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "process/outputDelta", "params": ProcessOutputDeltaNotification } | { "method": "process/exited", "params": ProcessExitedNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "item/fileChange/patchUpdated", "params": FileChangePatchUpdatedNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "mcpServer/event/stream/notification", "params": McpServerEventStreamNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "app/list/updated", "params": AppListUpdatedNotification } | { "method": "remoteControl/status/changed", "params": RemoteControlStatusChangedNotification } | { "method": "externalAgentConfig/import/progress", "params": ExternalAgentConfigImportProgressNotification } | { "method": "externalAgentConfig/import/completed", "params": ExternalAgentConfigImportCompletedNotification } | { "method": "fs/changed", "params": FsChangedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "model/rerouted", "params": ModelReroutedNotification } | { "method": "model/verification", "params": ModelVerificationNotification } | { "method": "modelProvider/authRecoveryStarted", "params": AuthRecoveryNotification } | { "method": "modelProvider/authRecoveryCompleted", "params": AuthRecoveryNotification } | { "method": "turn/moderationMetadata", "params": TurnModerationMetadataNotification } | { "method": "model/safetyBuffering/updated", "params": ModelSafetyBufferingUpdatedNotification } | { "method": "warning", "params": WarningNotification } | { "method": "guardianWarning", "params": GuardianWarningNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "fuzzyFileSearch/sessionUpdated", "params": FuzzyFileSearchSessionUpdatedNotification } | { "method": "fuzzyFileSearch/sessionCompleted", "params": FuzzyFileSearchSessionCompletedNotification } | { "method": "thread/realtime/started", "params": ThreadRealtimeStartedNotification } | { "method": "thread/realtime/itemAdded", "params": ThreadRealtimeItemAddedNotification } | { "method": "thread/realtime/item/started", "params": ThreadRealtimeItemStartedNotification } | { "method": "thread/realtime/item/transcript/delta", "params": ThreadRealtimeItemTranscriptDeltaNotification } | { "method": "thread/realtime/item/completed", "params": ThreadRealtimeItemCompletedNotification } | { "method": "thread/realtime/transcript/delta", "params": ThreadRealtimeTranscriptDeltaNotification } | { "method": "thread/realtime/transcript/done", "params": ThreadRealtimeTranscriptDoneNotification } | { "method": "thread/realtime/outputAudio/delta", "params": ThreadRealtimeOutputAudioDeltaNotification } | { "method": "thread/realtime/sdp", "params": ThreadRealtimeSdpNotification } | { "method": "thread/realtime/error", "params": ThreadRealtimeErrorNotification } | { "method": "thread/realtime/closed", "params": ThreadRealtimeClosedNotification } | { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification } | { "method": "windowsSandbox/setupCompleted", "params": WindowsSandboxSetupCompletedNotification } | { "method": "account/login/completed", "params": AccountLoginCompletedNotification }); +emittedAtMs?: number, } & ({ "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/status/changed", "params": ThreadStatusChangedNotification } | { "method": "thread/readState/changed", "params": ThreadReadStateChangedNotification } | { "method": "thread/archived", "params": ThreadArchivedNotification } | { "method": "thread/deleted", "params": ThreadDeletedNotification } | { "method": "thread/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "thread/reverted", "params": ThreadRevertedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "method": "thread/section/changed", "params": ThreadSectionChangedNotification } | { "method": "thread/attachment/updated", "params": ThreadAttachmentUpdatedNotification } | { "method": "thread/goal/updated", "params": ThreadGoalUpdatedNotification } | { "method": "thread/prediction/updated", "params": ThreadPredictionUpdatedNotification } | { "method": "thread/goal/cleared", "params": ThreadGoalClearedNotification } | { "method": "thread/queue/changed", "params": ThreadQueueChangedNotification } | { "method": "project/changed", "params": ProjectChangedNotification } | { "method": "thread/project/updated", "params": ThreadProjectUpdatedNotification } | { "method": "thread/environment/connected", "params": EnvironmentConnectionNotification } | { "method": "thread/environment/disconnected", "params": EnvironmentConnectionNotification } | { "method": "thread/settings/updated", "params": ThreadSettingsUpdatedNotification } | { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification } | { "method": "turn/started", "params": TurnStartedNotification } | { "method": "hook/started", "params": HookStartedNotification } | { "method": "turn/completed", "params": TurnCompletedNotification } | { "method": "hook/completed", "params": HookCompletedNotification } | { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification } | { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification } | { "method": "item/started", "params": ItemStartedNotification } | { "method": "item/autoApprovalReview/started", "params": ItemGuardianApprovalReviewStartedNotification } | { "method": "item/autoApprovalReview/completed", "params": ItemGuardianApprovalReviewCompletedNotification } | { "method": "autoApprovalReview/strictReviewRequired", "params": StrictReviewRequiredNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "rawResponse/completed", "params": RawResponseCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "process/outputDelta", "params": ProcessOutputDeltaNotification } | { "method": "process/exited", "params": ProcessExitedNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "item/fileChange/patchUpdated", "params": FileChangePatchUpdatedNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "mcpServer/event/stream/notification", "params": McpServerEventStreamNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/gatewayOAuth/changed", "params": GatewayOAuthChangedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "app/list/updated", "params": AppListUpdatedNotification } | { "method": "remoteControl/status/changed", "params": RemoteControlStatusChangedNotification } | { "method": "externalAgentConfig/import/progress", "params": ExternalAgentConfigImportProgressNotification } | { "method": "externalAgentConfig/import/completed", "params": ExternalAgentConfigImportCompletedNotification } | { "method": "fs/changed", "params": FsChangedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "model/rerouted", "params": ModelReroutedNotification } | { "method": "model/verification", "params": ModelVerificationNotification } | { "method": "modelProvider/authRecoveryStarted", "params": AuthRecoveryNotification } | { "method": "modelProvider/authRecoveryCompleted", "params": AuthRecoveryNotification } | { "method": "turn/moderationMetadata", "params": TurnModerationMetadataNotification } | { "method": "model/safetyBuffering/updated", "params": ModelSafetyBufferingUpdatedNotification } | { "method": "warning", "params": WarningNotification } | { "method": "guardianWarning", "params": GuardianWarningNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "fuzzyFileSearch/sessionUpdated", "params": FuzzyFileSearchSessionUpdatedNotification } | { "method": "fuzzyFileSearch/sessionCompleted", "params": FuzzyFileSearchSessionCompletedNotification } | { "method": "thread/realtime/started", "params": ThreadRealtimeStartedNotification } | { "method": "thread/realtime/itemAdded", "params": ThreadRealtimeItemAddedNotification } | { "method": "thread/realtime/item/started", "params": ThreadRealtimeItemStartedNotification } | { "method": "thread/realtime/item/transcript/delta", "params": ThreadRealtimeItemTranscriptDeltaNotification } | { "method": "thread/realtime/item/completed", "params": ThreadRealtimeItemCompletedNotification } | { "method": "thread/realtime/transcript/delta", "params": ThreadRealtimeTranscriptDeltaNotification } | { "method": "thread/realtime/transcript/done", "params": ThreadRealtimeTranscriptDoneNotification } | { "method": "thread/realtime/outputAudio/delta", "params": ThreadRealtimeOutputAudioDeltaNotification } | { "method": "thread/realtime/sdp", "params": ThreadRealtimeSdpNotification } | { "method": "thread/realtime/error", "params": ThreadRealtimeErrorNotification } | { "method": "thread/realtime/closed", "params": ThreadRealtimeClosedNotification } | { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification } | { "method": "windowsSandbox/setupCompleted", "params": WindowsSandboxSetupCompletedNotification } | { "method": "account/login/completed", "params": AccountLoginCompletedNotification }); diff --git a/packages/codex-acp/src/app-server/WebSearchProvider.ts b/packages/codex-acp/src/app-server/WebSearchProvider.ts new file mode 100644 index 00000000..4c3b377b --- /dev/null +++ b/packages/codex-acp/src/app-server/WebSearchProvider.ts @@ -0,0 +1,8 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Provider preference selected by the resolved model catalog entry. + */ +export type WebSearchProvider = "standalone" | "search_mcp"; diff --git a/packages/codex-acp/src/app-server/index.ts b/packages/codex-acp/src/app-server/index.ts index 79f9f52f..8eb856fa 100644 --- a/packages/codex-acp/src/app-server/index.ts +++ b/packages/codex-acp/src/app-server/index.ts @@ -39,6 +39,7 @@ export type { GitDiffToRemoteResponse } from "./GitDiffToRemoteResponse"; export type { GitSha } from "./GitSha"; export type { ImageDetail } from "./ImageDetail"; export type { ImageGenerationFailure } from "./ImageGenerationFailure"; +export type { ImageGenerationInputImage } from "./ImageGenerationInputImage"; export type { ImageGenerationItem } from "./ImageGenerationItem"; export type { InitializeCapabilities } from "./InitializeCapabilities"; export type { InitializeParams } from "./InitializeParams"; @@ -92,5 +93,6 @@ export type { WebSearchContextSize } from "./WebSearchContextSize"; export type { WebSearchItem } from "./WebSearchItem"; export type { WebSearchLocation } from "./WebSearchLocation"; export type { WebSearchMode } from "./WebSearchMode"; +export type { WebSearchProvider } from "./WebSearchProvider"; export type { WebSearchToolConfig } from "./WebSearchToolConfig"; export * as v2 from "./v2"; diff --git a/packages/codex-acp/src/app-server/v2/Account.ts b/packages/codex-acp/src/app-server/v2/Account.ts index 1f1ad851..6b698247 100644 --- a/packages/codex-acp/src/app-server/v2/Account.ts +++ b/packages/codex-acp/src/app-server/v2/Account.ts @@ -3,4 +3,8 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { PlanType } from "../PlanType"; -export type Account = { "type": "apiKey", } | { "type": "chatgpt", email: string | null, planType: PlanType, } | { "type": "amazonBedrock", usesCodexManagedCredentials: boolean, }; +export type Account = { "type": "apiKey", } | { "type": "chatgpt", email: string | null, planType: PlanType, +/** + * Display name of the selected ChatGPT workspace, when available. + */ +workspaceName: string | null, } | { "type": "amazonBedrock", usesCodexManagedCredentials: boolean, } | { "type": "gcp", }; diff --git a/packages/codex-acp/src/app-server/v2/AccountSecuritySetupAction.ts b/packages/codex-acp/src/app-server/v2/AccountSecuritySetupAction.ts new file mode 100644 index 00000000..e56ddeb4 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/AccountSecuritySetupAction.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type AccountSecuritySetupAction = { label: string, url: string, }; diff --git a/packages/codex-acp/src/app-server/v2/AccountSecuritySetupNotice.ts b/packages/codex-acp/src/app-server/v2/AccountSecuritySetupNotice.ts new file mode 100644 index 00000000..81e54807 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/AccountSecuritySetupNotice.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AccountSecuritySetupAction } from "./AccountSecuritySetupAction"; + +export type AccountSecuritySetupNotice = { accountId: string, userId: string, title: string, description: string, action: AccountSecuritySetupAction, }; diff --git a/packages/codex-acp/src/app-server/v2/AccountSession.ts b/packages/codex-acp/src/app-server/v2/AccountSession.ts new file mode 100644 index 00000000..71a36b0d --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/AccountSession.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AccountSessionWorkspace } from "./AccountSessionWorkspace"; + +export type AccountSession = { sessionId: string, email: string | null, userId: string | null, displayName: string | null, imageUrl: string | null, lastUsedAt: bigint, isActive: boolean, selectedWorkspaceAccountId: string | null, workspaces: Array, }; diff --git a/packages/codex-acp/src/app-server/v2/AccountSessionWorkspace.ts b/packages/codex-acp/src/app-server/v2/AccountSessionWorkspace.ts new file mode 100644 index 00000000..b55d2a9e --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/AccountSessionWorkspace.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AccountSessionWorkspaceKind } from "./AccountSessionWorkspaceKind"; + +export type AccountSessionWorkspace = { accountId: string, name: string | null, imageUrl: string | null, kind: AccountSessionWorkspaceKind | null, }; diff --git a/packages/codex-acp/src/app-server/v2/AccountSessionWorkspaceKind.ts b/packages/codex-acp/src/app-server/v2/AccountSessionWorkspaceKind.ts new file mode 100644 index 00000000..1ece70db --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/AccountSessionWorkspaceKind.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type AccountSessionWorkspaceKind = "personal" | "workspace"; diff --git a/packages/codex-acp/src/app-server/v2/AdditionalContextEntry.ts b/packages/codex-acp/src/app-server/v2/AdditionalContextEntry.ts index 8d959269..064b9b2f 100644 --- a/packages/codex-acp/src/app-server/v2/AdditionalContextEntry.ts +++ b/packages/codex-acp/src/app-server/v2/AdditionalContextEntry.ts @@ -3,4 +3,8 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { AdditionalContextKind } from "./AdditionalContextKind"; -export type AdditionalContextEntry = { value: string, kind: AdditionalContextKind, }; +export type AdditionalContextEntry = { value: string, kind: AdditionalContextKind, +/** + * Optional name for untrusted context, used to label its tool output. + */ +name?: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/AgentMessageDisplay.ts b/packages/codex-acp/src/app-server/v2/AgentMessageDisplay.ts new file mode 100644 index 00000000..e0ceb847 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/AgentMessageDisplay.ts @@ -0,0 +1,12 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AnswerAnnotation } from "./AnswerAnnotation"; +import type { AnswerReplacement } from "./AnswerReplacement"; +import type { BlockReason } from "./BlockReason"; +import type { TrustedContacts } from "./TrustedContacts"; + +/** + * How Chat should present a recovered answer. + */ +export type AgentMessageDisplay = { "mode": "show", version: 1, annotation?: AnswerAnnotation, trustedContacts: TrustedContacts, } | { "mode": "hide", version: 1, replacement: AnswerReplacement, } | { "mode": "block", version: 1, reason: BlockReason, }; diff --git a/packages/codex-acp/src/app-server/v2/AgentMessageModeration.ts b/packages/codex-acp/src/app-server/v2/AgentMessageModeration.ts new file mode 100644 index 00000000..b75a92ac --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/AgentMessageModeration.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AgentMessageDisplay } from "./AgentMessageDisplay"; + +export type AgentMessageModeration = { moderated: boolean, display: AgentMessageDisplay | null, }; diff --git a/packages/codex-acp/src/app-server/v2/AnswerAnnotation.ts b/packages/codex-acp/src/app-server/v2/AnswerAnnotation.ts new file mode 100644 index 00000000..17a9dc98 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/AnswerAnnotation.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { HelplineSubject } from "./HelplineSubject"; + +export type AnswerAnnotation = { "kind": "wellbeingHelpline", subject: HelplineSubject, }; diff --git a/packages/codex-acp/src/app-server/v2/AnswerReplacement.ts b/packages/codex-acp/src/app-server/v2/AnswerReplacement.ts new file mode 100644 index 00000000..024981d9 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/AnswerReplacement.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type AnswerReplacement = { "kind": "wellbeingPromptHelpline", }; diff --git a/packages/codex-acp/src/app-server/v2/ApplicationRequirements.ts b/packages/codex-acp/src/app-server/v2/ApplicationRequirements.ts index 65a0626f..e728e59f 100644 --- a/packages/codex-acp/src/app-server/v2/ApplicationRequirements.ts +++ b/packages/codex-acp/src/app-server/v2/ApplicationRequirements.ts @@ -2,5 +2,6 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ApplicationNetworkRequirements } from "./ApplicationNetworkRequirements"; +import type { ApplicationStorageRequirements } from "./ApplicationStorageRequirements"; -export type ApplicationRequirements = { network: ApplicationNetworkRequirements | null, }; +export type ApplicationRequirements = { network: ApplicationNetworkRequirements | null, storage: ApplicationStorageRequirements | null, }; diff --git a/packages/codex-acp/src/app-server/v2/ApplicationStorageRequirements.ts b/packages/codex-acp/src/app-server/v2/ApplicationStorageRequirements.ts new file mode 100644 index 00000000..c28cea8c --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ApplicationStorageRequirements.ts @@ -0,0 +1,9 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { LegacyAppPathString } from "../LegacyAppPathString"; + +/** + * Managed storage settings for new Desktop workspaces, not filesystem access restrictions. + */ +export type ApplicationStorageRequirements = { defaultProjectParent: LegacyAppPathString | null, projectlessWorkspaceRoot: LegacyAppPathString | null, }; diff --git a/packages/codex-acp/src/app-server/v2/BedrockProviderId.ts b/packages/codex-acp/src/app-server/v2/BedrockProviderId.ts new file mode 100644 index 00000000..7bb450d4 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/BedrockProviderId.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type BedrockProviderId = "amazon-bedrock" | "amazon-bedrock-runtime"; diff --git a/packages/codex-acp/src/app-server/v2/BedrockSettingsParams.ts b/packages/codex-acp/src/app-server/v2/BedrockSettingsParams.ts new file mode 100644 index 00000000..8865ea3d --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/BedrockSettingsParams.ts @@ -0,0 +1,9 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { BedrockProviderId } from "./BedrockProviderId"; + +/** + * AWS configuration fields for built-in Bedrock providers. + */ +export type BedrockSettingsParams = { providerId: BedrockProviderId, profile?: string | null, region?: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/BlockReason.ts b/packages/codex-acp/src/app-server/v2/BlockReason.ts new file mode 100644 index 00000000..145fb913 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/BlockReason.ts @@ -0,0 +1,9 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type BlockReason = { "kind": "protection", +/** + * Identifies the same moderation row that Chat writes on the live path. + */ +protectionType: string, } | { "kind": "cyber", trustedAccess?: boolean, }; diff --git a/packages/codex-acp/src/app-server/v2/BrowserUseExtensionRequirements.ts b/packages/codex-acp/src/app-server/v2/BrowserUseExtensionRequirements.ts new file mode 100644 index 00000000..5f279192 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/BrowserUseExtensionRequirements.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { RequestHeader } from "./RequestHeader"; + +export type BrowserUseExtensionRequirements = { requestHeaders: Array | null, }; diff --git a/packages/codex-acp/src/app-server/v2/BrowserUseRequirements.ts b/packages/codex-acp/src/app-server/v2/BrowserUseRequirements.ts index 1430f756..990274af 100644 --- a/packages/codex-acp/src/app-server/v2/BrowserUseRequirements.ts +++ b/packages/codex-acp/src/app-server/v2/BrowserUseRequirements.ts @@ -1,6 +1,7 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { BrowserUseExtensionRequirements } from "./BrowserUseExtensionRequirements"; import type { BrowserUseOriginPolicy } from "./BrowserUseOriginPolicy"; -export type BrowserUseRequirements = { allowWebmcp: boolean | null, allowHistoryAccess: boolean | null, disableAutoReview: boolean | null, allowGlobalPersistentApproval: boolean | null, defaultOriginPolicy: BrowserUseOriginPolicy | null, origins: { [key in string]?: BrowserUseOriginPolicy } | null, }; +export type BrowserUseRequirements = { extension: BrowserUseExtensionRequirements | null, allowWebmcp: boolean | null, allowHistoryAccess: boolean | null, disableAutoReview: boolean | null, allowGlobalPersistentApproval: boolean | null, defaultOriginPolicy: BrowserUseOriginPolicy | null, origins: { [key in string]?: BrowserUseOriginPolicy } | null, }; diff --git a/packages/codex-acp/src/app-server/v2/CodexErrorInfo.ts b/packages/codex-acp/src/app-server/v2/CodexErrorInfo.ts index e93d7fd5..f7461206 100644 --- a/packages/codex-acp/src/app-server/v2/CodexErrorInfo.ts +++ b/packages/codex-acp/src/app-server/v2/CodexErrorInfo.ts @@ -9,4 +9,4 @@ import type { NonSteerableTurnKind } from "./NonSteerableTurnKind"; * When an upstream HTTP status is available (for example, from the Responses API or a provider), * it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant. */ -export type CodexErrorInfo = "contextWindowExceeded" | "sessionBudgetExceeded" | "usageLimitExceeded" | "rateLimitExceeded" | "serverOverloaded" | "cyberPolicy" | "misalignmentPolicyViolation" | { "httpConnectionFailed": { httpStatusCode: number | null, } } | { "responseStreamConnectionFailed": { httpStatusCode: number | null, } } | "internalServerError" | "unauthorized" | "badRequest" | "threadRollbackFailed" | "sandboxError" | { "responseStreamDisconnected": { httpStatusCode: number | null, } } | { "responseTooManyFailedAttempts": { httpStatusCode: number | null, } } | { "activeTurnNotSteerable": { turnKind: NonSteerableTurnKind, } } | "other"; +export type CodexErrorInfo = "contextWindowExceeded" | "sessionBudgetExceeded" | "usageLimitExceeded" | "rateLimitExceeded" | "flexUnavailable" | "serverOverloaded" | "modelNotFound" | "policyCapacityUnavailable" | "inferenceHookDenied" | "cyberPolicy" | "misalignmentPolicyViolation" | "tooManyDenials" | { "httpConnectionFailed": { httpStatusCode: number | null, } } | { "responseStreamConnectionFailed": { httpStatusCode: number | null, } } | "internalServerError" | "unauthorized" | "badRequest" | "threadRollbackFailed" | "sandboxError" | { "responseStreamDisconnected": { httpStatusCode: number | null, } } | { "responseTooManyFailedAttempts": { httpStatusCode: number | null, } } | { "activeTurnNotSteerable": { turnKind: NonSteerableTurnKind, } } | "other" | string | { [key: string]: unknown }; diff --git a/packages/codex-acp/src/app-server/v2/CommandExecutionApprovalKind.ts b/packages/codex-acp/src/app-server/v2/CommandExecutionApprovalKind.ts index f94eac8d..719cdce0 100644 --- a/packages/codex-acp/src/app-server/v2/CommandExecutionApprovalKind.ts +++ b/packages/codex-acp/src/app-server/v2/CommandExecutionApprovalKind.ts @@ -5,4 +5,4 @@ /** * Distinguishes a command approval from input sent to an existing terminal. */ -export type CommandExecutionApprovalKind = "command" | "writeStdin"; +export type CommandExecutionApprovalKind = "command" | "humanCommand" | "writeStdin"; diff --git a/packages/codex-acp/src/app-server/v2/Config.ts b/packages/codex-acp/src/app-server/v2/Config.ts index 4d0c4097..e80beb8e 100644 --- a/packages/codex-acp/src/app-server/v2/Config.ts +++ b/packages/codex-acp/src/app-server/v2/Config.ts @@ -7,6 +7,7 @@ import type { ReasoningEffort } from "../ReasoningEffort"; import type { ReasoningSummary } from "../ReasoningSummary"; import type { Verbosity } from "../Verbosity"; import type { WebSearchMode } from "../WebSearchMode"; +import type { WebSearchProvider } from "../WebSearchProvider"; import type { JsonValue } from "../serde_json/JsonValue"; import type { AnalyticsConfig } from "./AnalyticsConfig"; import type { ApprovalsReviewer } from "./ApprovalsReviewer"; @@ -22,4 +23,7 @@ export type Config = {model: string | null, review_model: string | null, model_c * [UNSTABLE] Optional default for where approval requests are routed for * review. */ -approvals_reviewer: ApprovalsReviewer | null, sandbox_mode: SandboxMode | null, sandbox_workspace_write: SandboxWorkspaceWrite | null, forced_chatgpt_workspace_id: ForcedChatgptWorkspaceIds | null, forced_login_method: ForcedLoginMethod | null, web_search: WebSearchMode | null, tools: ToolsV2 | null, instructions: string | null, developer_instructions: string | null, compact_prompt: string | null, model_reasoning_effort: ReasoningEffort | null, model_reasoning_summary: ReasoningSummary | null, model_verbosity: Verbosity | null, service_tier: string | null, analytics: AnalyticsConfig | null, browser_use: BrowserUseConfig | null, computer_use: ComputerUseConfig | null, desktop: { [key in string]?: JsonValue } | null} & ({ [key in string]?: number | string | boolean | Array | { [key in string]?: JsonValue } | null }); +approvals_reviewer: ApprovalsReviewer | null, sandbox_mode: SandboxMode | null, sandbox_workspace_write: SandboxWorkspaceWrite | null, forced_chatgpt_workspace_id: ForcedChatgptWorkspaceIds | null, forced_login_method: ForcedLoginMethod | null, web_search: WebSearchMode | null, /** + * Effective tools.client_search_provider hint. Model-selected providers take precedence. + */ +client_search_provider: WebSearchProvider | null, tools: ToolsV2 | null, instructions: string | null, developer_instructions: string | null, compact_prompt: string | null, model_reasoning_effort: ReasoningEffort | null, model_reasoning_summary: ReasoningSummary | null, model_verbosity: Verbosity | null, service_tier: string | null, analytics: AnalyticsConfig | null, browser_use: BrowserUseConfig | null, computer_use: ComputerUseConfig | null, desktop: { [key in string]?: JsonValue } | null} & ({ [key in string]?: number | string | boolean | Array | { [key in string]?: JsonValue } | null }); diff --git a/packages/codex-acp/src/app-server/v2/ConfigRequirements.ts b/packages/codex-acp/src/app-server/v2/ConfigRequirements.ts index c8e40d15..c9cf1cfe 100644 --- a/packages/codex-acp/src/app-server/v2/ConfigRequirements.ts +++ b/packages/codex-acp/src/app-server/v2/ConfigRequirements.ts @@ -13,6 +13,7 @@ import type { ComputerUseRequirements } from "./ComputerUseRequirements"; import type { FeedbackRequirements } from "./FeedbackRequirements"; import type { InAppBrowserRequirements } from "./InAppBrowserRequirements"; import type { ModelsRequirements } from "./ModelsRequirements"; +import type { OtelRequirements } from "./OtelRequirements"; import type { ResidencyRequirement } from "./ResidencyRequirement"; import type { SandboxMode } from "./SandboxMode"; import type { WindowsSandboxImplementation } from "./WindowsSandboxImplementation"; @@ -27,4 +28,4 @@ modelProviders: { [key in string]?: JsonValue } | null, /** * Effective login methods after managed, forced-login, and workspace restrictions. * An empty list permits no login method. Older servers may omit this field. */ -allowedLoginMethods: Array | null, cliAuthCredentialsStore: CliAuthCredentialsStoreMode | null, chatgptBaseUrl: string | null, additionalDeveloperInstructions: string | null, allowedApprovalPolicies: Array | null, allowedSandboxModes: Array | null, allowedWindowsSandboxImplementations: Array | null, allowedPermissionProfiles: { [key in string]?: boolean } | null, defaultPermissions: string | null, allowedWebSearchModes: Array | null, allowManagedHooksOnly: boolean | null, allowBrowserAndComputerUse: boolean | null, allowAppshots: boolean | null, allowRemoteControl: boolean | null, computerUse: ComputerUseRequirements | null, browserUse: BrowserUseRequirements | null, inAppBrowser: InAppBrowserRequirements | null, featureRequirements: { [key in string]?: boolean } | null, enforceResidency: ResidencyRequirement | null, autoReview: AutoReviewRequirements | null, models: ModelsRequirements | null, sqliteHome: PathUri | null, logDir: PathUri | null, modelCatalogJson: PathUri | null, checkForUpdateOnStartup: boolean | null, allowLoginShell: boolean | null, feedback: FeedbackRequirements | null}; +allowedLoginMethods: Array | null, cliAuthCredentialsStore: CliAuthCredentialsStoreMode | null, chatgptBaseUrl: string | null, additionalDeveloperInstructions: string | null, allowedApprovalPolicies: Array | null, allowedSandboxModes: Array | null, allowedWindowsSandboxImplementations: Array | null, allowedPermissionProfiles: { [key in string]?: boolean } | null, defaultPermissions: string | null, allowedWebSearchModes: Array | null, allowManagedHooksOnly: boolean | null, allowBrowserAndComputerUse: boolean | null, allowAppshots: boolean | null, allowRemoteControl: boolean | null, computerUse: ComputerUseRequirements | null, browserUse: BrowserUseRequirements | null, inAppBrowser: InAppBrowserRequirements | null, featureRequirements: { [key in string]?: boolean } | null, enforceResidency: ResidencyRequirement | null, autoReview: AutoReviewRequirements | null, models: ModelsRequirements | null, sqliteHome: PathUri | null, logDir: PathUri | null, modelCatalogJson: PathUri | null, checkForUpdateOnStartup: boolean | null, allowLoginShell: boolean | null, feedback: FeedbackRequirements | null, otel: OtelRequirements | null}; diff --git a/packages/codex-acp/src/app-server/v2/ConfigRequirementsReadResponse.ts b/packages/codex-acp/src/app-server/v2/ConfigRequirementsReadResponse.ts index f2de11d9..0a452dd2 100644 --- a/packages/codex-acp/src/app-server/v2/ConfigRequirementsReadResponse.ts +++ b/packages/codex-acp/src/app-server/v2/ConfigRequirementsReadResponse.ts @@ -4,6 +4,11 @@ import type { ConfigRequirements } from "./ConfigRequirements"; export type ConfigRequirementsReadResponse = { +/** + * Whether Fast and Ultra Fast requirements are enforced independently. + * Older servers omit this field and use Fast mode as a shared speed gate. + */ +supportsIndependentSpeedModes: boolean | null, /** * Null if no requirements are configured (e.g. no requirements.toml/MDM entries). */ diff --git a/packages/codex-acp/src/app-server/v2/CustomGatewaySettingsParams.ts b/packages/codex-acp/src/app-server/v2/CustomGatewaySettingsParams.ts new file mode 100644 index 00000000..29cd9f00 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/CustomGatewaySettingsParams.ts @@ -0,0 +1,9 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type CustomGatewaySettingsParams = { +/** + * Omit or pass null to allocate a new custom provider ID. + */ +providerId?: string | null, name?: string, baseUrl?: string | null, envKey?: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/CyberAccessProgram.ts b/packages/codex-acp/src/app-server/v2/CyberAccessProgram.ts index ccd4118a..0b87ec9c 100644 --- a/packages/codex-acp/src/app-server/v2/CyberAccessProgram.ts +++ b/packages/codex-acp/src/app-server/v2/CyberAccessProgram.ts @@ -3,7 +3,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. /** - * Requested cyber treatment for a ChatGPT-authenticated Codex turn. + * Requested cyber treatment for an OpenAI model turn. * Authorization and model-tier restrictions remain server-owned. */ export type CyberAccessProgram = "standard" | "daybreakBlue" | "daybreakRed"; diff --git a/packages/codex-acp/src/app-server/v2/EnvironmentSkillsParams.ts b/packages/codex-acp/src/app-server/v2/EnvironmentSkillsParams.ts new file mode 100644 index 00000000..19d7d4fe --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/EnvironmentSkillsParams.ts @@ -0,0 +1,9 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type EnvironmentSkillsParams = { +/** + * Exact catalog names that must be available from this environment. + */ +required?: Array | null, }; diff --git a/packages/codex-acp/src/app-server/v2/FeedbackSaveParams.ts b/packages/codex-acp/src/app-server/v2/FeedbackSaveParams.ts new file mode 100644 index 00000000..d78033f6 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/FeedbackSaveParams.ts @@ -0,0 +1,11 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { LegacyAppPathString } from "../LegacyAppPathString"; + +export type FeedbackSaveParams = { +/** + * Absolute, previously unused ZIP path on the app-server host. + * The caller owns this file, including after a disconnected RPC. + */ +savePath: LegacyAppPathString, classification: string, reason?: string | null, threadId?: string | null, includeLogs?: boolean, extraLogFiles?: Array | null, tags?: { [key in string]?: string } | null, }; diff --git a/packages/codex-acp/src/app-server/v2/FeedbackSaveResponse.ts b/packages/codex-acp/src/app-server/v2/FeedbackSaveResponse.ts new file mode 100644 index 00000000..d26f3988 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/FeedbackSaveResponse.ts @@ -0,0 +1,10 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { LegacyAppPathString } from "../LegacyAppPathString"; + +export type FeedbackSaveResponse = { savedPath: LegacyAppPathString, threadId: string, +/** + * Same prompt hash as feedback/upload; null when prompt metadata is absent. + */ +promptHash: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/GatewayAuth.ts b/packages/codex-acp/src/app-server/v2/GatewayAuth.ts new file mode 100644 index 00000000..9d99763f --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/GatewayAuth.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type GatewayAuth = { "mode": "none" } | { "mode": "environmentVariable", envKey: string, } | { "mode": "externallyConfigured", envKey: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/GatewayOAuthCancelResponse.ts b/packages/codex-acp/src/app-server/v2/GatewayOAuthCancelResponse.ts new file mode 100644 index 00000000..957542bf --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/GatewayOAuthCancelResponse.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type GatewayOAuthCancelResponse = Record; diff --git a/packages/codex-acp/src/app-server/v2/GatewayOAuthChangedNotification.ts b/packages/codex-acp/src/app-server/v2/GatewayOAuthChangedNotification.ts new file mode 100644 index 00000000..64d15ce4 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/GatewayOAuthChangedNotification.ts @@ -0,0 +1,14 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { GatewayOAuthStatus } from "./GatewayOAuthStatus"; + +export type GatewayOAuthChangedNotification = { +/** + * Identifies the completed device login attempt. + */ +loginId: string | null, +/** + * Authorization handoff, sent only to the connection that started login. + */ +authUrl: string | null, providerId: string, status: GatewayOAuthStatus, error: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/GatewayOAuthLoginParams.ts b/packages/codex-acp/src/app-server/v2/GatewayOAuthLoginParams.ts new file mode 100644 index 00000000..43b6e480 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/GatewayOAuthLoginParams.ts @@ -0,0 +1,16 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Authorize a configured provider without changing the default or any thread's provider. + */ +export type GatewayOAuthLoginParams = { +/** + * Defaults to the current provider when omitted. + */ +modelProvider?: string | null, +/** + * Select device authorization when the server advertises support for it. + */ +deviceAuth?: boolean, }; diff --git a/packages/codex-acp/src/app-server/v2/GatewayOAuthLoginResponse.ts b/packages/codex-acp/src/app-server/v2/GatewayOAuthLoginResponse.ts new file mode 100644 index 00000000..3ec5ad4d --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/GatewayOAuthLoginResponse.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { GatewayOAuthPrompt } from "./GatewayOAuthPrompt"; + +export type GatewayOAuthLoginResponse = { prompt: GatewayOAuthPrompt | null, }; diff --git a/packages/codex-acp/src/app-server/v2/GatewayOAuthPrompt.ts b/packages/codex-acp/src/app-server/v2/GatewayOAuthPrompt.ts new file mode 100644 index 00000000..66e990a7 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/GatewayOAuthPrompt.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type GatewayOAuthPrompt = { loginId: string, verificationUrl: string, userCode: string, }; diff --git a/packages/codex-acp/src/app-server/v2/GatewayOAuthReadParams.ts b/packages/codex-acp/src/app-server/v2/GatewayOAuthReadParams.ts new file mode 100644 index 00000000..6544347d --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/GatewayOAuthReadParams.ts @@ -0,0 +1,12 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Read credential readiness for a configured provider without starting browser login. + */ +export type GatewayOAuthReadParams = { +/** + * Defaults to the current provider when omitted. + */ +modelProvider?: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/GatewayOAuthReadResponse.ts b/packages/codex-acp/src/app-server/v2/GatewayOAuthReadResponse.ts new file mode 100644 index 00000000..6f5d2f00 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/GatewayOAuthReadResponse.ts @@ -0,0 +1,21 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { GatewayOAuthStatus } from "./GatewayOAuthStatus"; + +/** + * Current effective gateway policy and credential readiness; never contains credentials. + */ +export type GatewayOAuthReadResponse = { providerId: string, providerName: string, +/** + * Whether the selected provider uses gateway OAuth, even when already signed in. + */ +required: boolean, +/** + * Whether the administrator configured a device authorization endpoint. + */ +supportsDeviceAuth?: boolean, +/** + * Null when the effective provider does not use gateway OAuth. + */ +status: GatewayOAuthStatus | null, error: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/GatewayOAuthStatus.ts b/packages/codex-acp/src/app-server/v2/GatewayOAuthStatus.ts new file mode 100644 index 00000000..2423ed04 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/GatewayOAuthStatus.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type GatewayOAuthStatus = "notReady" | "started" | "succeeded" | "failed"; diff --git a/packages/codex-acp/src/app-server/v2/GcpProviderId.ts b/packages/codex-acp/src/app-server/v2/GcpProviderId.ts new file mode 100644 index 00000000..813539d0 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/GcpProviderId.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type GcpProviderId = "gcp"; diff --git a/packages/codex-acp/src/app-server/v2/GcpSettingsParams.ts b/packages/codex-acp/src/app-server/v2/GcpSettingsParams.ts new file mode 100644 index 00000000..a3d9f638 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/GcpSettingsParams.ts @@ -0,0 +1,9 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { GcpProviderId } from "./GcpProviderId"; + +/** + * GCP configuration fields. Credential-file paths refer to the app-server host. + */ +export type GcpSettingsParams = { providerId: GcpProviderId, projectId?: string | null, location?: string | null, credentialFile?: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/GetAccountResponse.ts b/packages/codex-acp/src/app-server/v2/GetAccountResponse.ts index e88cc6ab..dd131a0d 100644 --- a/packages/codex-acp/src/app-server/v2/GetAccountResponse.ts +++ b/packages/codex-acp/src/app-server/v2/GetAccountResponse.ts @@ -3,4 +3,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { Account } from "./Account"; -export type GetAccountResponse = {account: Account | null, requiresOpenaiAuth: boolean}; +export type GetAccountResponse = {account: Account | null, /** + * ChatGPT user ID belonging to this account response, when available. + */ +userId: string | null, requiresOpenaiAuth: boolean}; diff --git a/packages/codex-acp/src/app-server/v2/GetAccountSecuritySetupResponse.ts b/packages/codex-acp/src/app-server/v2/GetAccountSecuritySetupResponse.ts new file mode 100644 index 00000000..605c3f00 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/GetAccountSecuritySetupResponse.ts @@ -0,0 +1,10 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AccountSecuritySetupNotice } from "./AccountSecuritySetupNotice"; + +/** + * Optional security reminder bound to the account that fetched it. Unavailable or + * ineligible accounts return no notice; this read never changes account security. + */ +export type GetAccountSecuritySetupResponse = { notice: AccountSecuritySetupNotice | null, }; diff --git a/packages/codex-acp/src/app-server/v2/HelplineSubject.ts b/packages/codex-acp/src/app-server/v2/HelplineSubject.ts new file mode 100644 index 00000000..ec29b42b --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/HelplineSubject.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type HelplineSubject = "answer" | "prompt"; diff --git a/packages/codex-acp/src/app-server/v2/HookEventName.ts b/packages/codex-acp/src/app-server/v2/HookEventName.ts index 5425272c..f1d63296 100644 --- a/packages/codex-acp/src/app-server/v2/HookEventName.ts +++ b/packages/codex-acp/src/app-server/v2/HookEventName.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type HookEventName = "preToolUse" | "permissionRequest" | "postToolUse" | "preCompact" | "postCompact" | "sessionStart" | "sessionEnd" | "userPromptSubmit" | "subagentStart" | "subagentStop" | "stop" | "interrupt"; +export type HookEventName = "preModelRequest" | "postModelRequest" | "preToolUse" | "permissionRequest" | "postToolUse" | "preCompact" | "postCompact" | "sessionStart" | "sessionEnd" | "userPromptSubmit" | "subagentStart" | "subagentStop" | "stop" | "interrupt"; diff --git a/packages/codex-acp/src/app-server/v2/HookMetadata.ts b/packages/codex-acp/src/app-server/v2/HookMetadata.ts index 04358a91..b6477f2c 100644 --- a/packages/codex-acp/src/app-server/v2/HookMetadata.ts +++ b/packages/codex-acp/src/app-server/v2/HookMetadata.ts @@ -11,4 +11,8 @@ export type HookMetadata = { key: string, eventName: HookEventName, matcher: str * Configured `additionalContext` spill threshold. * `null` uses 2,500 tokens; `0` disables spilling. */ -additionalContextLimit: number | null, sourcePath: AbsolutePathBuf, source: HookSource, pluginId: string | null, displayOrder: bigint, enabled: boolean, isManaged: boolean, currentHash: string, trustStatus: HookTrustStatus, } & ({ "handlerType": "command", command: string, async: boolean, } | { "handlerType": "mcpTool", server: string, tool: string, } | { "handlerType": "prompt", } | { "handlerType": "agent", }); +additionalContextLimit: number | null, sourcePath: AbsolutePathBuf, source: HookSource, pluginId: string | null, +/** + * The owning execution environment, if this hook came from its requirements. + */ +environmentId: string | null, displayOrder: bigint, enabled: boolean, isManaged: boolean, currentHash: string, trustStatus: HookTrustStatus, } & ({ "handlerType": "command", command: string, async: boolean, } | { "handlerType": "mcpTool", server: string, tool: string, } | { "handlerType": "prompt", } | { "handlerType": "agent", }); diff --git a/packages/codex-acp/src/app-server/v2/HookRunSummary.ts b/packages/codex-acp/src/app-server/v2/HookRunSummary.ts index 75ab780b..e8492d77 100644 --- a/packages/codex-acp/src/app-server/v2/HookRunSummary.ts +++ b/packages/codex-acp/src/app-server/v2/HookRunSummary.ts @@ -1,7 +1,7 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { AbsolutePathBuf } from "../AbsolutePathBuf"; +import type { LegacyAppPathString } from "../LegacyAppPathString"; import type { HookEventName } from "./HookEventName"; import type { HookExecutionMode } from "./HookExecutionMode"; import type { HookHandlerType } from "./HookHandlerType"; @@ -10,4 +10,4 @@ import type { HookRunStatus } from "./HookRunStatus"; import type { HookScope } from "./HookScope"; import type { HookSource } from "./HookSource"; -export type HookRunSummary = { id: string, eventName: HookEventName, handlerType: HookHandlerType, executionMode: HookExecutionMode, scope: HookScope, sourcePath: AbsolutePathBuf, source: HookSource, displayOrder: bigint, status: HookRunStatus, statusMessage: string | null, startedAt: bigint, completedAt: bigint | null, durationMs: bigint | null, entries: Array, }; +export type HookRunSummary = { id: string, eventName: HookEventName, handlerType: HookHandlerType, executionMode: HookExecutionMode, scope: HookScope, sourcePath: LegacyAppPathString, source: HookSource, displayOrder: bigint, status: HookRunStatus, statusMessage: string | null, startedAt: bigint, completedAt: bigint | null, durationMs: bigint | null, entries: Array, }; diff --git a/packages/codex-acp/src/app-server/v2/HooksListParams.ts b/packages/codex-acp/src/app-server/v2/HooksListParams.ts index db29387d..323cd5a1 100644 --- a/packages/codex-acp/src/app-server/v2/HooksListParams.ts +++ b/packages/codex-acp/src/app-server/v2/HooksListParams.ts @@ -4,6 +4,10 @@ export type HooksListParams = { /** - * When empty, defaults to the current session working directory. + * Working directories to inspect when no thread is specified. An empty list uses the session cwd. */ -cwds?: Array, }; +cwds?: Array, +/** + * List a loaded thread's hooks, including its selected environments. Omit `cwds` in this mode. + */ +threadId?: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/ItemCompletedNotification.ts b/packages/codex-acp/src/app-server/v2/ItemCompletedNotification.ts index 25ced4a0..e6daa524 100644 --- a/packages/codex-acp/src/app-server/v2/ItemCompletedNotification.ts +++ b/packages/codex-acp/src/app-server/v2/ItemCompletedNotification.ts @@ -4,6 +4,11 @@ import type { ThreadItem } from "./ThreadItem"; export type ItemCompletedNotification = { item: ThreadItem, threadId: string, turnId: string, +/** + * Native content tokens for the completed assistant message, including a sampled footer. + * Null when unavailable. Completion telemetry is not part of the stored thread item. + */ +contentTokenCount?: number | null, /** * Unix timestamp (in milliseconds) when this item lifecycle completed. */ diff --git a/packages/codex-acp/src/app-server/v2/ListMcpServerStatusParams.ts b/packages/codex-acp/src/app-server/v2/ListMcpServerStatusParams.ts index 2296c736..5af67cc0 100644 --- a/packages/codex-acp/src/app-server/v2/ListMcpServerStatusParams.ts +++ b/packages/codex-acp/src/app-server/v2/ListMcpServerStatusParams.ts @@ -16,4 +16,8 @@ limit?: number | null, * Controls how much MCP inventory data to fetch for each server. * Defaults to `Full` when omitted. */ -detail?: McpServerStatusDetail | null, threadId?: string | null, }; +detail?: McpServerStatusDetail | null, threadId?: string | null, +/** + * Limit discovery to one server. With a thread ID, reuse that thread's MCP connection. + */ +serverName?: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/ManagedHooksRequirements.ts b/packages/codex-acp/src/app-server/v2/ManagedHooksRequirements.ts index 777a5319..caa3e02d 100644 --- a/packages/codex-acp/src/app-server/v2/ManagedHooksRequirements.ts +++ b/packages/codex-acp/src/app-server/v2/ManagedHooksRequirements.ts @@ -3,4 +3,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ConfiguredHookMatcherGroup } from "./ConfiguredHookMatcherGroup"; -export type ManagedHooksRequirements = { managedDir: string | null, windowsManagedDir: string | null, PreToolUse: Array, PermissionRequest: Array, PostToolUse: Array, PreCompact: Array, PostCompact: Array, SessionStart: Array, SessionEnd: Array, UserPromptSubmit: Array, SubagentStart: Array, SubagentStop: Array, Stop: Array, Interrupt: Array, }; +export type ManagedHooksRequirements = { PreModelRequest: Array, PostModelRequest: Array, managedDir: string | null, windowsManagedDir: string | null, PreToolUse: Array, PermissionRequest: Array, PostToolUse: Array, PreCompact: Array, PostCompact: Array, SessionStart: Array, SessionEnd: Array, UserPromptSubmit: Array, SubagentStart: Array, SubagentStop: Array, Stop: Array, Interrupt: Array, }; diff --git a/packages/codex-acp/src/app-server/v2/McpResourceReadParams.ts b/packages/codex-acp/src/app-server/v2/McpResourceReadParams.ts index 7e150661..83951116 100644 --- a/packages/codex-acp/src/app-server/v2/McpResourceReadParams.ts +++ b/packages/codex-acp/src/app-server/v2/McpResourceReadParams.ts @@ -1,9 +1,19 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { JsonValue } from "../serde_json/JsonValue"; +import type { McpResourceReadTarget } from "./McpResourceReadTarget"; -export type McpResourceReadParams = { threadId?: string | null, +export type McpResourceReadParams = { +/** + * Additional MCP request metadata. Account and turn routing keys are reserved. + */ +_meta?: { [key in string]?: JsonValue } | null, threadId?: string | null, /** * Originating MCP tool call used to select the resource's app. */ -originCallId?: string | null, server: string, uri: string, connectorId?: string | null, }; +originCallId?: string | null, server: string, uri: string, connectorId?: string | null, +/** + * Explicit hosted app/account. Omit to retain legacy resource discovery. + */ +target?: McpResourceReadTarget | null, }; diff --git a/packages/codex-acp/src/app-server/v2/McpResourceReadTarget.ts b/packages/codex-acp/src/app-server/v2/McpResourceReadTarget.ts new file mode 100644 index 00000000..e112db20 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/McpResourceReadTarget.ts @@ -0,0 +1,9 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type McpResourceReadTarget = { connectorId: string, +/** + * Null explicitly requests no-auth access, subject to the app's resource policy. + */ +linkId: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/McpServerOauthLoginCompletedNotification.ts b/packages/codex-acp/src/app-server/v2/McpServerOauthLoginCompletedNotification.ts index cfa66030..1a45a947 100644 --- a/packages/codex-acp/src/app-server/v2/McpServerOauthLoginCompletedNotification.ts +++ b/packages/codex-acp/src/app-server/v2/McpServerOauthLoginCompletedNotification.ts @@ -2,4 +2,8 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type McpServerOauthLoginCompletedNotification = { name: string, threadId: string | null, success: boolean, error?: string, }; +export type McpServerOauthLoginCompletedNotification = { name: string, threadId: string | null, +/** + * Identifies the explicit login attempt. Older servers omit this field. + */ +loginId?: string | null, success: boolean, error?: string, }; diff --git a/packages/codex-acp/src/app-server/v2/McpServerOauthLoginResponse.ts b/packages/codex-acp/src/app-server/v2/McpServerOauthLoginResponse.ts index 59335747..a9f67df4 100644 --- a/packages/codex-acp/src/app-server/v2/McpServerOauthLoginResponse.ts +++ b/packages/codex-acp/src/app-server/v2/McpServerOauthLoginResponse.ts @@ -2,4 +2,9 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type McpServerOauthLoginResponse = { authorizationUrl: string, }; +export type McpServerOauthLoginResponse = { authorizationUrl: string, +/** + * Identifies this login attempt across the response and completion notification. + * Older servers omit this field; current servers always return it. + */ +loginId?: string, }; diff --git a/packages/codex-acp/src/app-server/v2/McpServerStatus.ts b/packages/codex-acp/src/app-server/v2/McpServerStatus.ts index f33da54a..bb33cbe1 100644 --- a/packages/codex-acp/src/app-server/v2/McpServerStatus.ts +++ b/packages/codex-acp/src/app-server/v2/McpServerStatus.ts @@ -13,11 +13,20 @@ export type McpServerStatus = { name: string, /** * Current thread-runtime connection state; null when unavailable or the configuration changed. */ -runtimeStatus: McpServerConnectionStatus | null, pluginId: string | null, serverInfo: McpServerInfo | null, +runtimeStatus: McpServerConnectionStatus | null, pluginId: string | null, +/** + * HTTP origin of the effective configured endpoint, including plugin servers. + * Excludes credentials, path, query, and fragment; null for non-HTTP transports. + */ +httpOrigin: string | null, serverInfo: McpServerInfo | null, /** * Capabilities advertised by the initialized MCP server; null when unavailable. */ -serverCapabilities: JsonValue | null, tools: { [key in string]?: Tool }, +serverCapabilities: JsonValue | null, +/** + * Opaque `_meta` from the first page of the corresponding MCP tool catalog. Null when unavailable. + */ +toolListMeta: JsonValue | null, tools: { [key in string]?: Tool }, /** * Tool discovery failed and no catalog was returned. * Null when a catalog is returned, including cached or empty catalogs. diff --git a/packages/codex-acp/src/app-server/v2/MisalignmentErrorDetails.ts b/packages/codex-acp/src/app-server/v2/MisalignmentErrorDetails.ts index 3f6e449d..bb770567 100644 --- a/packages/codex-acp/src/app-server/v2/MisalignmentErrorDetails.ts +++ b/packages/codex-acp/src/app-server/v2/MisalignmentErrorDetails.ts @@ -15,4 +15,8 @@ detailedExplanation: string | null, /** * Instruction to submit as the next turn's user input if continuation is confirmed. */ -steer: MisalignmentSteer | null, }; +steer: MisalignmentSteer | null, +/** + * Opaque server-issued block target. Presence alone does not enable target-based continuation. + */ +reviewTarget?: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/ModelListParams.ts b/packages/codex-acp/src/app-server/v2/ModelListParams.ts index dae406dd..9b86397a 100644 --- a/packages/codex-acp/src/app-server/v2/ModelListParams.ts +++ b/packages/codex-acp/src/app-server/v2/ModelListParams.ts @@ -3,6 +3,10 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. export type ModelListParams = { +/** + * List models for this configured provider instead of the app-server default. + */ +modelProvider?: string | null, /** * Opaque pagination cursor returned by a previous call. */ diff --git a/packages/codex-acp/src/app-server/v2/ModelProviderCapabilitiesReadResponse.ts b/packages/codex-acp/src/app-server/v2/ModelProviderCapabilitiesReadResponse.ts index 043fc304..de4803ee 100644 --- a/packages/codex-acp/src/app-server/v2/ModelProviderCapabilitiesReadResponse.ts +++ b/packages/codex-acp/src/app-server/v2/ModelProviderCapabilitiesReadResponse.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ModelProviderCapabilitiesReadResponse = { namespaceTools: boolean, imageGeneration: boolean, webSearch: boolean, }; +export type ModelProviderCapabilitiesReadResponse = { imageGeneration: boolean, webSearch: boolean, }; diff --git a/packages/codex-acp/src/app-server/v2/ModelProviderConfigWriteParams.ts b/packages/codex-acp/src/app-server/v2/ModelProviderConfigWriteParams.ts new file mode 100644 index 00000000..2c264314 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ModelProviderConfigWriteParams.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ProviderSettingsPatch } from "./ProviderSettingsPatch"; + +export type ModelProviderConfigWriteParams = { settings: ProviderSettingsPatch, }; diff --git a/packages/codex-acp/src/app-server/v2/ModelProviderConfigWriteResponse.ts b/packages/codex-acp/src/app-server/v2/ModelProviderConfigWriteResponse.ts new file mode 100644 index 00000000..969d7ee1 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ModelProviderConfigWriteResponse.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ModelProviderSummary } from "./ModelProviderSummary"; + +export type ModelProviderConfigWriteResponse = { provider: ModelProviderSummary, }; diff --git a/packages/codex-acp/src/app-server/v2/ModelProviderError.ts b/packages/codex-acp/src/app-server/v2/ModelProviderError.ts new file mode 100644 index 00000000..1c3931ae --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ModelProviderError.ts @@ -0,0 +1,8 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Structured JSON-RPC error data. Unknown errors must retain the client's normal fallback. + */ +export type ModelProviderError = { "type": "modelProviderMismatch", modelProvider: string, currentModelProvider: string, } | { "type": "modelProviderNotConfigured", modelProvider: string, } | { "type": "modelProviderPolicyConflict", modelProvider: string, requiredModelProvider: string, }; diff --git a/packages/codex-acp/src/app-server/v2/ModelProviderListParams.ts b/packages/codex-acp/src/app-server/v2/ModelProviderListParams.ts new file mode 100644 index 00000000..7aa6761a --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ModelProviderListParams.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ModelProviderListParams = Record; diff --git a/packages/codex-acp/src/app-server/v2/ModelProviderListResponse.ts b/packages/codex-acp/src/app-server/v2/ModelProviderListResponse.ts new file mode 100644 index 00000000..3269af8b --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ModelProviderListResponse.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ModelProviderSummary } from "./ModelProviderSummary"; + +export type ModelProviderListResponse = { data: Array, defaultProviderId: string, canChangeDefault: boolean, }; diff --git a/packages/codex-acp/src/app-server/v2/ModelProviderSummary.ts b/packages/codex-acp/src/app-server/v2/ModelProviderSummary.ts new file mode 100644 index 00000000..d4dccd3a --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ModelProviderSummary.ts @@ -0,0 +1,14 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ProviderSettings } from "./ProviderSettings"; + +export type ModelProviderSummary = { id: string, name: string, +/** + * Whether a supported configuration field can be edited in the active user layer. + */ +canEdit: boolean, +/** + * Null when the endpoint is absent or cannot be safely displayed. + */ +baseUrl: string | null, settings: ProviderSettings, }; diff --git a/packages/codex-acp/src/app-server/v2/NetworkRequirements.ts b/packages/codex-acp/src/app-server/v2/NetworkRequirements.ts index 04e07ef1..953f69da 100644 --- a/packages/codex-acp/src/app-server/v2/NetworkRequirements.ts +++ b/packages/codex-acp/src/app-server/v2/NetworkRequirements.ts @@ -6,9 +6,13 @@ import type { NetworkUnixSocketPermission } from "./NetworkUnixSocketPermission" export type NetworkRequirements = { enabled: boolean | null, httpPort: number | null, socksPort: number | null, allowUpstreamProxy: boolean | null, dangerouslyAllowNonLoopbackProxy: boolean | null, dangerouslyAllowAllUnixSockets: boolean | null, /** - * Canonical network permission map for `experimental_network`. + * Canonical managed network permission map. */ domains: { [key in string]?: NetworkDomainPermission } | null, +/** + * Host patterns routed to network approval before ordinary allow rules. + */ +reviewDomains: Array | null, /** * When true, only managed allowlist entries are respected while managed * network enforcement is active. @@ -23,7 +27,7 @@ allowedDomains: Array | null, */ deniedDomains: Array | null, /** - * Canonical unix socket permission map for `experimental_network`. + * Canonical managed unix socket permission map. */ unixSockets: { [key in string]?: NetworkUnixSocketPermission } | null, /** diff --git a/packages/codex-acp/src/app-server/v2/OtelExporter.ts b/packages/codex-acp/src/app-server/v2/OtelExporter.ts new file mode 100644 index 00000000..f18fa658 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/OtelExporter.ts @@ -0,0 +1,15 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { OtelHttpProtocol } from "./OtelHttpProtocol"; +import type { OtelTlsConfig } from "./OtelTlsConfig"; + +export type OtelExporter = "none" | "statsig" | { "otlp-http": { endpoint: string, +/** + * Header names are retained; values are redacted by the server. + */ +headers: { [key in string]?: string }, protocol: OtelHttpProtocol, tls: OtelTlsConfig | null, } } | { "otlp-grpc": { endpoint: string, +/** + * Header names are retained; values are redacted by the server. + */ +headers: { [key in string]?: string }, tls: OtelTlsConfig | null, } }; diff --git a/packages/codex-acp/src/app-server/v2/OtelHttpProtocol.ts b/packages/codex-acp/src/app-server/v2/OtelHttpProtocol.ts new file mode 100644 index 00000000..dc24d2e2 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/OtelHttpProtocol.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type OtelHttpProtocol = "binary" | "json"; diff --git a/packages/codex-acp/src/app-server/v2/OtelRequirements.ts b/packages/codex-acp/src/app-server/v2/OtelRequirements.ts new file mode 100644 index 00000000..588d9993 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/OtelRequirements.ts @@ -0,0 +1,7 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { OtelExporter } from "./OtelExporter"; +import type { OtelToolResultLogConfig } from "./OtelToolResultLogConfig"; + +export type OtelRequirements = { tool_result: OtelToolResultLogConfig | null, log_sse_deltas: boolean | null, log_user_prompt: boolean | null, log_agent_responses: boolean | null, log_guardian_assessments: boolean | null, environment: string | null, exporter: OtelExporter | null, trace_exporter: OtelExporter | null, metrics_exporter: OtelExporter | null, span_attributes: { [key in string]?: string } | null, tracestate: { [key in string]?: { [key in string]?: string } } | null, }; diff --git a/packages/codex-acp/src/app-server/v2/OtelTlsConfig.ts b/packages/codex-acp/src/app-server/v2/OtelTlsConfig.ts new file mode 100644 index 00000000..db35d2cc --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/OtelTlsConfig.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type OtelTlsConfig = { "ca-certificate": string | null, "client-certificate": string | null, "client-private-key": string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/OtelToolResultLogConfig.ts b/packages/codex-acp/src/app-server/v2/OtelToolResultLogConfig.ts new file mode 100644 index 00000000..61c6c2f4 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/OtelToolResultLogConfig.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type OtelToolResultLogConfig = { max_bytes: number, }; diff --git a/packages/codex-acp/src/app-server/v2/PluginInterface.ts b/packages/codex-acp/src/app-server/v2/PluginInterface.ts index 1e57d497..e32dcf10 100644 --- a/packages/codex-acp/src/app-server/v2/PluginInterface.ts +++ b/packages/codex-acp/src/app-server/v2/PluginInterface.ts @@ -6,7 +6,7 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf"; export type PluginInterface = { displayName: string | null, shortDescription: string | null, longDescription: string | null, developerName: string | null, category: string | null, capabilities: Array, websiteUrl: string | null, privacyPolicyUrl: string | null, termsOfServiceUrl: string | null, /** * Starter prompts for the plugin. Capped at 3 entries with a maximum of - * 128 characters per entry. + * 512 characters per entry. */ defaultPrompt: Array | null, brandColor: string | null, /** diff --git a/packages/codex-acp/src/app-server/v2/ProcessExitedNotification.ts b/packages/codex-acp/src/app-server/v2/ProcessExitedNotification.ts index 0d826334..40194f55 100644 --- a/packages/codex-acp/src/app-server/v2/ProcessExitedNotification.ts +++ b/packages/codex-acp/src/app-server/v2/ProcessExitedNotification.ts @@ -14,6 +14,11 @@ processHandle: string, * Process exit code. */ exitCode: number, +/** + * Whether output collection hit its post-exit deadline before seeing EOF or reaching the + * requested byte cap on either stream. Older servers omit this field. + */ +outputDrainTimedOut?: boolean | null, /** * Buffered stdout capture. * diff --git a/packages/codex-acp/src/app-server/v2/ProviderSettings.ts b/packages/codex-acp/src/app-server/v2/ProviderSettings.ts new file mode 100644 index 00000000..b4172000 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ProviderSettings.ts @@ -0,0 +1,10 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { GatewayAuth } from "./GatewayAuth"; + +export type ProviderSettings = { "type": "openai" } | { "type": "customGateway", auth: GatewayAuth, } | { "type": "bedrock", profile: string | null, region: string | null, } | { "type": "gcp", projectId: string | null, location: string | null, +/** + * Path on the app-server host, without credential-file contents. + */ +credentialFile: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/ProviderSettingsPatch.ts b/packages/codex-acp/src/app-server/v2/ProviderSettingsPatch.ts new file mode 100644 index 00000000..b50b9af5 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ProviderSettingsPatch.ts @@ -0,0 +1,11 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { BedrockSettingsParams } from "./BedrockSettingsParams"; +import type { CustomGatewaySettingsParams } from "./CustomGatewaySettingsParams"; +import type { GcpSettingsParams } from "./GcpSettingsParams"; + +/** + * Omitted patch fields preserve their values. Explicit null clears a nullable field. + */ +export type ProviderSettingsPatch = { "type": "customGateway" } & CustomGatewaySettingsParams | { "type": "bedrock" } & BedrockSettingsParams | { "type": "gcp" } & GcpSettingsParams; diff --git a/packages/codex-acp/src/app-server/v2/QueuedSubmission.ts b/packages/codex-acp/src/app-server/v2/QueuedSubmission.ts index f364b8c0..70c66280 100644 --- a/packages/codex-acp/src/app-server/v2/QueuedSubmission.ts +++ b/packages/codex-acp/src/app-server/v2/QueuedSubmission.ts @@ -3,4 +3,8 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { UserInput } from "./UserInput"; -export type QueuedSubmission = { id: string, input: Array, clientUserMessageId: string, }; +export type QueuedSubmission = { id: string, input: Array, clientUserMessageId: string, +/** + * Metadata retained with this input, including across reconnect and restoration. + */ +responsesapiClientMetadata: { [key in string]?: string } | null, }; diff --git a/packages/codex-acp/src/app-server/v2/RequestHeader.ts b/packages/codex-acp/src/app-server/v2/RequestHeader.ts new file mode 100644 index 00000000..6b7b8ea7 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/RequestHeader.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RequestHeader = { name: string, value: string, }; diff --git a/packages/codex-acp/src/app-server/v2/ReviewDelivery.ts b/packages/codex-acp/src/app-server/v2/ReviewDelivery.ts index 8fbccd10..11c13c1c 100644 --- a/packages/codex-acp/src/app-server/v2/ReviewDelivery.ts +++ b/packages/codex-acp/src/app-server/v2/ReviewDelivery.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ReviewDelivery = "inline" | "detached"; +export type ReviewDelivery = "inline"; diff --git a/packages/codex-acp/src/app-server/v2/ReviewStartParams.ts b/packages/codex-acp/src/app-server/v2/ReviewStartParams.ts index 839a3c74..14fadcb0 100644 --- a/packages/codex-acp/src/app-server/v2/ReviewStartParams.ts +++ b/packages/codex-acp/src/app-server/v2/ReviewStartParams.ts @@ -6,9 +6,7 @@ import type { ReviewTarget } from "./ReviewTarget"; export type ReviewStartParams = { threadId: string, target: ReviewTarget, /** - * Where to run the review: inline (default) on the current thread or - * detached on a new thread (returned in `reviewThreadId`). - * Detached delivery is deprecated and emits `deprecationNotice`. - * Use `thread/start` followed by an inline review for a separate review thread. + * Reviews run inline on the supplied thread. Omit this field or pass `inline`. + * To review on a separate thread, start a thread first and use its id. */ delivery?: ReviewDelivery | null, }; diff --git a/packages/codex-acp/src/app-server/v2/ReviewStartResponse.ts b/packages/codex-acp/src/app-server/v2/ReviewStartResponse.ts index 6d6c2bb7..4ea7c1aa 100644 --- a/packages/codex-acp/src/app-server/v2/ReviewStartResponse.ts +++ b/packages/codex-acp/src/app-server/v2/ReviewStartResponse.ts @@ -5,9 +5,6 @@ import type { Turn } from "./Turn"; export type ReviewStartResponse = { turn: Turn, /** - * Identifies the thread where the review runs. - * - * For inline reviews, this is the original thread id. - * For detached reviews, this is the id of the new review thread. + * The thread id supplied to `review/start`. */ reviewThreadId: string, }; diff --git a/packages/codex-acp/src/app-server/v2/SkillMetadata.ts b/packages/codex-acp/src/app-server/v2/SkillMetadata.ts index 74284218..c6841a17 100644 --- a/packages/codex-acp/src/app-server/v2/SkillMetadata.ts +++ b/packages/codex-acp/src/app-server/v2/SkillMetadata.ts @@ -1,7 +1,7 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { AbsolutePathBuf } from "../AbsolutePathBuf"; +import type { LegacyAppPathString } from "../LegacyAppPathString"; import type { SkillDependencies } from "./SkillDependencies"; import type { SkillInterface } from "./SkillInterface"; import type { SkillScope } from "./SkillScope"; @@ -10,7 +10,7 @@ export type SkillMetadata = { name: string, description: string, /** * Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description. */ -shortDescription?: string, interface?: SkillInterface, dependencies?: SkillDependencies, path: AbsolutePathBuf, scope: SkillScope, enabled: boolean, +shortDescription?: string, interface?: SkillInterface, dependencies?: SkillDependencies, path: LegacyAppPathString, scope: SkillScope, enabled: boolean, /** * Owning plugin ID, matching `PluginSummary.id`, when known. */ diff --git a/packages/codex-acp/src/app-server/v2/SkillSummary.ts b/packages/codex-acp/src/app-server/v2/SkillSummary.ts index 4999a072..0e39c5b4 100644 --- a/packages/codex-acp/src/app-server/v2/SkillSummary.ts +++ b/packages/codex-acp/src/app-server/v2/SkillSummary.ts @@ -1,7 +1,7 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { AbsolutePathBuf } from "../AbsolutePathBuf"; +import type { LegacyAppPathString } from "../LegacyAppPathString"; import type { SkillInterface } from "./SkillInterface"; -export type SkillSummary = { name: string, description: string, shortDescription: string | null, interface: SkillInterface | null, path: AbsolutePathBuf | null, enabled: boolean, }; +export type SkillSummary = { name: string, description: string, shortDescription: string | null, interface: SkillInterface | null, path: LegacyAppPathString | null, enabled: boolean, }; diff --git a/packages/codex-acp/src/app-server/v2/ThreadAttachmentOwner.ts b/packages/codex-acp/src/app-server/v2/ThreadAttachmentOwner.ts new file mode 100644 index 00000000..e7a9e4b9 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ThreadAttachmentOwner.ts @@ -0,0 +1,12 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * A thread that currently owns an attachment with the requested identity. + */ +export type ThreadAttachmentOwner = { threadId: string, +/** + * Whether the owning thread is archived, not whether it is currently executing a turn. + */ +archived: boolean, }; diff --git a/packages/codex-acp/src/app-server/v2/ThreadAttachmentOwnerListParams.ts b/packages/codex-acp/src/app-server/v2/ThreadAttachmentOwnerListParams.ts new file mode 100644 index 00000000..6e375251 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ThreadAttachmentOwnerListParams.ts @@ -0,0 +1,12 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Parameters for reverse lookup by attachment identity within this server's store. + */ +export type ThreadAttachmentOwnerListParams = { attachmentType: string, identityKey: string, +/** + * Omitted or null returns all matches; false returns non-archived threads only. + */ +archived?: boolean | null, cursor?: string | null, limit?: number | null, }; diff --git a/packages/codex-acp/src/app-server/v2/ThreadAttachmentOwnerListResponse.ts b/packages/codex-acp/src/app-server/v2/ThreadAttachmentOwnerListResponse.ts new file mode 100644 index 00000000..f92f60e9 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ThreadAttachmentOwnerListResponse.ts @@ -0,0 +1,9 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ThreadAttachmentOwner } from "./ThreadAttachmentOwner"; + +/** + * One page of matching owners, including threads without their own user messages. + */ +export type ThreadAttachmentOwnerListResponse = { data: Array, nextCursor: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/ThreadGoalClearParams.ts b/packages/codex-acp/src/app-server/v2/ThreadGoalClearParams.ts index efefc253..1e944736 100644 --- a/packages/codex-acp/src/app-server/v2/ThreadGoalClearParams.ts +++ b/packages/codex-acp/src/app-server/v2/ThreadGoalClearParams.ts @@ -1,5 +1,10 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ThreadGoalMutationOrigin } from "./ThreadGoalMutationOrigin"; -export type ThreadGoalClearParams = { threadId: string, }; +export type ThreadGoalClearParams = { threadId: string, +/** + * Missing provenance does not supply user authorization. + */ +origin?: ThreadGoalMutationOrigin | null, }; diff --git a/packages/codex-acp/src/app-server/v2/ThreadGoalMutationOrigin.ts b/packages/codex-acp/src/app-server/v2/ThreadGoalMutationOrigin.ts new file mode 100644 index 00000000..742419cb --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ThreadGoalMutationOrigin.ts @@ -0,0 +1,8 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Distinguishes explicit user actions from automatic goal lifecycle mutations. + */ +export type ThreadGoalMutationOrigin = "user" | "automatic"; diff --git a/packages/codex-acp/src/app-server/v2/ThreadGoalSetParams.ts b/packages/codex-acp/src/app-server/v2/ThreadGoalSetParams.ts index b92720c1..d6edcbdd 100644 --- a/packages/codex-acp/src/app-server/v2/ThreadGoalSetParams.ts +++ b/packages/codex-acp/src/app-server/v2/ThreadGoalSetParams.ts @@ -1,6 +1,11 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ThreadGoalMutationOrigin } from "./ThreadGoalMutationOrigin"; import type { ThreadGoalStatus } from "./ThreadGoalStatus"; -export type ThreadGoalSetParams = { threadId: string, objective?: string | null, status?: ThreadGoalStatus | null, tokenBudget?: number | null, }; +export type ThreadGoalSetParams = { threadId: string, +/** + * Missing provenance does not supply user authorization. + */ +origin?: ThreadGoalMutationOrigin | null, objective?: string | null, status?: ThreadGoalStatus | null, tokenBudget?: number | null, }; diff --git a/packages/codex-acp/src/app-server/v2/ThreadItem.ts b/packages/codex-acp/src/app-server/v2/ThreadItem.ts index 31f1430e..cc259ae2 100644 --- a/packages/codex-acp/src/app-server/v2/ThreadItem.ts +++ b/packages/codex-acp/src/app-server/v2/ThreadItem.ts @@ -10,6 +10,7 @@ import type { SleepItem } from "../SleepItem"; import type { WebSearchItem } from "../WebSearchItem"; import type { JsonValue } from "../serde_json/JsonValue"; import type { AgentMessageDelivery } from "./AgentMessageDelivery"; +import type { AgentMessageModeration } from "./AgentMessageModeration"; import type { AsyncUserInputQuestion } from "./AsyncUserInputQuestion"; import type { CollabAgentState } from "./CollabAgentState"; import type { CollabAgentTool } from "./CollabAgentTool"; @@ -31,7 +32,18 @@ import type { PatchApplyStatus } from "./PatchApplyStatus"; import type { SubAgentActivityKind } from "./SubAgentActivityKind"; import type { UserInput } from "./UserInput"; -export type ThreadItem = { "type": "userMessage", id: string, clientId: string | null, content: Array, } | { "type": "hookPrompt", id: string, fragments: Array, } | { "type": "agentMessage", id: string, text: string, phase: MessagePhase | null, memoryCitation: MemoryCitation | null, delivery: AgentMessageDelivery | null, questions: Array | null, } | { "type": "functionCallOutput", id: string, name: string, namespace: string | null, output: FunctionCallOutputBody, } | { "type": "plan", id: string, text: string, } | { "type": "reasoning", id: string, summary: Array, content: Array, } | { "type": "commandExecution", id: string, +/** + * A thread item and its recorded lifecycle times. The payload stays flat on the wire. + */ +export type ThreadItem = { +/** + * Unix timestamp in milliseconds when the item started, if recorded. + */ +startedAtMs?: number | null, +/** + * Unix timestamp in milliseconds when the item completed, if recorded. + */ +completedAtMs?: number | null, } & ({ "type": "userMessage", id: string, clientId: string | null, content: Array, } | { "type": "hookPrompt", id: string, fragments: Array, } | { "type": "agentMessage", moderation: AgentMessageModeration | null, id: string, text: string, phase: MessagePhase | null, memoryCitation: MemoryCitation | null, delivery: AgentMessageDelivery | null, questions: Array | null, } | { "type": "functionCallOutput", id: string, name: string, namespace: string | null, output: FunctionCallOutputBody, } | { "type": "plan", id: string, text: string, } | { "type": "reasoning", id: string, summary: Array, content: Array, } | { "type": "commandExecution", id: string, /** * Trusted first-party plugin id when this command resolves to one plugin script. */ @@ -122,4 +134,12 @@ reasoningEffort: ReasoningEffort | null, /** * Last known status of the target agents, when available. */ -agentsStates: { [key in string]?: CollabAgentState }, } | { "type": "subAgentActivity", id: string, kind: SubAgentActivityKind, agentThreadId: string, agentPath: string, } | { "type": "webSearch" } & WebSearchItem | { "type": "imageView", id: string, path: LegacyAppPathString, } | { "type": "sleep" } & SleepItem | { "type": "imageGeneration" } & ImageGenerationItem | { "type": "enteredReviewMode", id: string, review: string, } | { "type": "exitedReviewMode", id: string, review: string, } | { "type": "contextCompaction", id: string, }; +agentsStates: { [key in string]?: CollabAgentState }, } | { "type": "subAgentActivity", +/** + * Resolved model at sub-agent creation; absent from older records and other activities. + */ +model: string | null, +/** + * Resolved reasoning effort at sub-agent creation, when known. + */ +reasoningEffort: ReasoningEffort | null, id: string, kind: SubAgentActivityKind, agentThreadId: string, agentPath: string, } | { "type": "webSearch" } & WebSearchItem | { "type": "imageView", id: string, path: LegacyAppPathString, } | { "type": "sleep" } & SleepItem | { "type": "imageGeneration" } & ImageGenerationItem | { "type": "enteredReviewMode", id: string, review: string, } | { "type": "exitedReviewMode", id: string, review: string, } | { "type": "contextCompaction", id: string, }); diff --git a/packages/codex-acp/src/app-server/v2/ThreadItemEntry.ts b/packages/codex-acp/src/app-server/v2/ThreadItemEntry.ts index c59564f2..184a0178 100644 --- a/packages/codex-acp/src/app-server/v2/ThreadItemEntry.ts +++ b/packages/codex-acp/src/app-server/v2/ThreadItemEntry.ts @@ -3,8 +3,13 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ThreadItem } from "./ThreadItem"; -export type ThreadItemEntry = { -/** +export type ThreadItemEntry = {/** * Turn containing this item. */ -turnId: string, item: ThreadItem, }; +turnId: string, item: ThreadItem, /** + * Unix timestamp (milliseconds) when the item started, if recorded by the producer. + */ +startedAtMs: number | null, /** + * Unix timestamp (milliseconds) when the item completed, if recorded by the producer. + */ +completedAtMs: number | null}; diff --git a/packages/codex-acp/src/app-server/v2/ThreadItemOutputDeferral.ts b/packages/codex-acp/src/app-server/v2/ThreadItemOutputDeferral.ts new file mode 100644 index 00000000..80acf332 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ThreadItemOutputDeferral.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ThreadItemOutputDeferral = {}; diff --git a/packages/codex-acp/src/app-server/v2/ThreadItemsListAnchor.ts b/packages/codex-acp/src/app-server/v2/ThreadItemsListAnchor.ts new file mode 100644 index 00000000..425b2136 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ThreadItemsListAnchor.ts @@ -0,0 +1,8 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * An exclusive item position within the requested visible turn. + */ +export type ThreadItemsListAnchor = { "type": "item", itemId: string, }; diff --git a/packages/codex-acp/src/app-server/v2/ThreadItemsListCursor.ts b/packages/codex-acp/src/app-server/v2/ThreadItemsListCursor.ts new file mode 100644 index 00000000..dd4c4fae --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ThreadItemsListCursor.ts @@ -0,0 +1,9 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ThreadItemsListAnchor } from "./ThreadItemsListAnchor"; + +/** + * Starting position for an item-history page. + */ +export type ThreadItemsListCursor = string | ThreadItemsListAnchor; diff --git a/packages/codex-acp/src/app-server/v2/ThreadItemsListParams.ts b/packages/codex-acp/src/app-server/v2/ThreadItemsListParams.ts index c41e93f7..0555704a 100644 --- a/packages/codex-acp/src/app-server/v2/ThreadItemsListParams.ts +++ b/packages/codex-acp/src/app-server/v2/ThreadItemsListParams.ts @@ -2,6 +2,8 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { SortDirection } from "./SortDirection"; +import type { ThreadItemOutputDeferral } from "./ThreadItemOutputDeferral"; +import type { ThreadItemsListCursor } from "./ThreadItemsListCursor"; export type ThreadItemsListParams = { threadId: string, /** @@ -9,9 +11,11 @@ export type ThreadItemsListParams = { threadId: string, */ turnId?: string | null, /** - * Opaque cursor to pass to the next call to continue after the last item. + * Opaque continuation cursor or an exclusive item anchor in the requested visible turn. + * An item anchor requires a non-empty `turnId`; ascending (the default) returns items + * after it, and descending returns items before it. Continue with the returned string cursor. */ -cursor?: string | null, +cursor?: ThreadItemsListCursor | null, /** * Optional item page size. */ @@ -19,4 +23,8 @@ limit?: number | null, /** * Optional item pagination direction; defaults to ascending. */ -sortDirection?: SortDirection | null, }; +sortDirection?: SortDirection | null, +/** + * For a single turn, choose which saved outputs to fetch separately by item ID. + */ +deferOutput?: ThreadItemOutputDeferral | null, }; diff --git a/packages/codex-acp/src/app-server/v2/ThreadListParams.ts b/packages/codex-acp/src/app-server/v2/ThreadListParams.ts index 854b6ef9..114fe4f4 100644 --- a/packages/codex-acp/src/app-server/v2/ThreadListParams.ts +++ b/packages/codex-acp/src/app-server/v2/ThreadListParams.ts @@ -6,12 +6,20 @@ import type { ThreadSortKey } from "./ThreadSortKey"; import type { ThreadSourceKind } from "./ThreadSourceKind"; export type ThreadListParams = {/** + * Show local history visible to the current ChatGPT account. Defaults to false. + */ +currentAccountOnly?: boolean, /** * Opaque pagination cursor returned by a previous call. */ cursor?: string | null, /** * Optional page size; defaults to a reasonable server-side value. */ limit?: number | null, /** + * Thread IDs to exclude before applying the result limit. Up to 100 + * entries; invalid IDs or a larger list are rejected, never truncated. + * Send the same exclusions on each page. Omitted, null, or empty means no exclusions. + */ +excludedThreadIds?: Array | null, /** * Optional sort key; defaults to created_at. */ sortKey?: ThreadSortKey | null, /** diff --git a/packages/codex-acp/src/app-server/v2/ThreadListResponse.ts b/packages/codex-acp/src/app-server/v2/ThreadListResponse.ts index 51757e24..71a34fdb 100644 --- a/packages/codex-acp/src/app-server/v2/ThreadListResponse.ts +++ b/packages/codex-acp/src/app-server/v2/ThreadListResponse.ts @@ -3,16 +3,14 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { Thread } from "./Thread"; -export type ThreadListResponse = { data: Array, -/** +export type ThreadListResponse = {data: Array, /** * Opaque cursor to pass to the next call to continue after the last item. * if None, there are no more items to return. */ -nextCursor: string | null, -/** +nextCursor: string | null, /** * Opaque cursor to pass as `cursor` when reversing `sortDirection`. * This is only populated when the page contains at least one thread. * Use it with the opposite `sortDirection`; for timestamp sorts it anchors * at the start of the page timestamp so same-second updates are not skipped. */ -backwardsCursor: string | null, }; +backwardsCursor: string | null}; diff --git a/packages/codex-acp/src/app-server/v2/ThreadPredictionResult.ts b/packages/codex-acp/src/app-server/v2/ThreadPredictionResult.ts new file mode 100644 index 00000000..0b9678f1 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ThreadPredictionResult.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ThreadPredictionResult = { "type": "completed", text: string | null, } | { "type": "failed" }; diff --git a/packages/codex-acp/src/app-server/v2/ThreadPredictionUpdatedNotification.ts b/packages/codex-acp/src/app-server/v2/ThreadPredictionUpdatedNotification.ts new file mode 100644 index 00000000..8a33a508 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ThreadPredictionUpdatedNotification.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ThreadPredictionResult } from "./ThreadPredictionResult"; + +export type ThreadPredictionUpdatedNotification = { threadId: string, sourceTurnId: string, result: ThreadPredictionResult, }; diff --git a/packages/codex-acp/src/app-server/v2/ThreadReadResponse.ts b/packages/codex-acp/src/app-server/v2/ThreadReadResponse.ts index a6da5064..e3ecf38f 100644 --- a/packages/codex-acp/src/app-server/v2/ThreadReadResponse.ts +++ b/packages/codex-acp/src/app-server/v2/ThreadReadResponse.ts @@ -3,4 +3,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { Thread } from "./Thread"; -export type ThreadReadResponse = { thread: Thread, }; +export type ThreadReadResponse = {thread: Thread}; diff --git a/packages/codex-acp/src/app-server/v2/ThreadReadState.ts b/packages/codex-acp/src/app-server/v2/ThreadReadState.ts new file mode 100644 index 00000000..8324a78a --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ThreadReadState.ts @@ -0,0 +1,10 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ThreadUnreadPosition } from "./ThreadUnreadPosition"; + +/** + * The first unread position in a durable local thread. A null position means read. + * The opaque revision guards edits against activity or marks the caller has not seen. + */ +export type ThreadReadState = { firstUnread: ThreadUnreadPosition | null, revision: string, }; diff --git a/packages/codex-acp/src/app-server/v2/ThreadReadStateChangedNotification.ts b/packages/codex-acp/src/app-server/v2/ThreadReadStateChangedNotification.ts new file mode 100644 index 00000000..c640b4f9 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ThreadReadStateChangedNotification.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ThreadReadState } from "./ThreadReadState"; + +export type ThreadReadStateChangedNotification = { threadId: string, readState: ThreadReadState, }; diff --git a/packages/codex-acp/src/app-server/v2/ThreadReadStateOperation.ts b/packages/codex-acp/src/app-server/v2/ThreadReadStateOperation.ts new file mode 100644 index 00000000..a6759a5e --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ThreadReadStateOperation.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ThreadReadStateOperation = { "type": "read" } | { "type": "unread" }; diff --git a/packages/codex-acp/src/app-server/v2/ThreadSectionChangedNotification.ts b/packages/codex-acp/src/app-server/v2/ThreadSectionChangedNotification.ts new file mode 100644 index 00000000..96f124fb --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ThreadSectionChangedNotification.ts @@ -0,0 +1,12 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Broadcast after a successful move into, within, or out of a section. + */ +export type ThreadSectionChangedNotification = { threadId: string, +/** + * Destination section, or `null` when the thread was removed from its section. + */ +sectionId: string | null, }; diff --git a/packages/codex-acp/src/app-server/v2/ThreadUnreadPosition.ts b/packages/codex-acp/src/app-server/v2/ThreadUnreadPosition.ts new file mode 100644 index 00000000..da5d8b24 --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/ThreadUnreadPosition.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ThreadUnreadPosition = { "type": "threadStart" } | { "type": "turn", turnId: string, }; diff --git a/packages/codex-acp/src/app-server/v2/ThreadUsage.ts b/packages/codex-acp/src/app-server/v2/ThreadUsage.ts index 1fcf4441..005f62ee 100644 --- a/packages/codex-acp/src/app-server/v2/ThreadUsage.ts +++ b/packages/codex-acp/src/app-server/v2/ThreadUsage.ts @@ -3,4 +3,8 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ThreadUsageBreakdownGroup } from "./ThreadUsageBreakdownGroup"; -export type ThreadUsage = { threadId: string, estimatedUsageCreditsMicros: bigint, estimatedUsageUsdMicros: bigint | null, groups: Array, }; +export type ThreadUsage = { threadId: string, estimatedUsageCreditsMicros: bigint, estimatedUsageUsdMicros: bigint | null, +/** + * Native dollar usage, independent of credit estimates. None means unknown, not zero. + */ +nativeUsageUsdMicros?: bigint | null, groups: Array, }; diff --git a/packages/codex-acp/src/app-server/v2/TrustedContacts.ts b/packages/codex-acp/src/app-server/v2/TrustedContacts.ts new file mode 100644 index 00000000..8f7c195d --- /dev/null +++ b/packages/codex-acp/src/app-server/v2/TrustedContacts.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type TrustedContacts = "check" | "skip"; diff --git a/packages/codex-acp/src/app-server/v2/Turn.ts b/packages/codex-acp/src/app-server/v2/Turn.ts index b8680256..ce309330 100644 --- a/packages/codex-acp/src/app-server/v2/Turn.ts +++ b/packages/codex-acp/src/app-server/v2/Turn.ts @@ -11,6 +11,12 @@ export type Turn = { * Identifier for this turn. Codex-generated turn IDs are UUIDv7. */ id: string, +/** + * ID of the first turn in the chain of work that led to this turn. + * Pass this as `rootTurnId` when starting work on behalf of this turn. + * May be null in older history or a `review/start` response. + */ +rootTurnId: string | null, /** * Thread items currently included in this turn payload. */ @@ -20,7 +26,7 @@ items: Array, */ itemsView: TurnItemsView, status: TurnStatus, /** - * Only populated when the Turn's status is failed. + * Error associated with a failed or interrupted turn. */ error: TurnError | null, /** diff --git a/packages/codex-acp/src/app-server/v2/TurnStartParams.ts b/packages/codex-acp/src/app-server/v2/TurnStartParams.ts index b5f53219..e83b6818 100644 --- a/packages/codex-acp/src/app-server/v2/TurnStartParams.ts +++ b/packages/codex-acp/src/app-server/v2/TurnStartParams.ts @@ -19,7 +19,22 @@ disabledPluginIds?: Array | null, clientUserMessageId?: string | null, i * Optional source classification for the caller that starts this turn. * Ignored when this request steers an already-active turn. */ -turnTrigger?: string | null, toolOutput?: TurnToolOutput | null, /** +turnTrigger?: string | null, /** + * ID of the turn that caused this new turn to start. + * + * Set this when starting work on behalf of another turn, such as delegated + * work in a different thread. Leave unset for work started directly by the + * user. Ignored when this request adds input to an active turn. + */ +parentTurnId?: string | null, /** + * ID of the first turn in the chain of work that led to this new turn. + * + * When setting `parentTurnId`, set this to the parent turn's `rootTurnId` + * when known. This keeps descendant work attributed to the original turn. + * If omitted, the new turn becomes its own root. Ignored when this request + * adds input to an active turn. + */ +rootTurnId?: string | null, toolOutput?: TurnToolOutput | null, /** * Override the working directory for this turn and subsequent turns. */ cwd?: string | null, /** diff --git a/packages/codex-acp/src/app-server/v2/TurnToolOutput.ts b/packages/codex-acp/src/app-server/v2/TurnToolOutput.ts index 77df888c..72955a7d 100644 --- a/packages/codex-acp/src/app-server/v2/TurnToolOutput.ts +++ b/packages/codex-acp/src/app-server/v2/TurnToolOutput.ts @@ -3,4 +3,8 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { FunctionCallOutputBody } from "../FunctionCallOutputBody"; -export type TurnToolOutput = { name: string, namespace: string | null, output: FunctionCallOutputBody, }; +export type TurnToolOutput = { name: string, namespace: string | null, output: FunctionCallOutputBody, +/** + * Requests retention of this output in the thread's model history. + */ +retain?: boolean, }; diff --git a/packages/codex-acp/src/app-server/v2/UserInput.ts b/packages/codex-acp/src/app-server/v2/UserInput.ts index 390d9dd5..e2b03450 100644 --- a/packages/codex-acp/src/app-server/v2/UserInput.ts +++ b/packages/codex-acp/src/app-server/v2/UserInput.ts @@ -8,4 +8,4 @@ export type UserInput = { "type": "text", text: string, /** * UI-defined spans within `text` used to render or persist special elements. */ -text_elements: Array, } | { "type": "image", detail?: ImageDetail, } & ({ url: string, } | { fileId: string, }) | { "type": "localImage", detail?: ImageDetail, path: string, } | { "type": "audio", url: string, } | { "type": "localAudio", path: string, } | { "type": "skill", name: string, path: string, } | { "type": "mention", name: string, path: string, }; +text_elements: Array, } | { "type": "image", detail?: ImageDetail, } & ({ url: string, } | { fileId: string, }) | { "type": "localImage", detail?: ImageDetail, path: string, } | { "type": "audio", } & ({ url: string, } | { fileId: string, }) | { "type": "localAudio", path: string, } | { "type": "skill", name: string, path: string, } | { "type": "mention", name: string, path: string, }; diff --git a/packages/codex-acp/src/app-server/v2/index.ts b/packages/codex-acp/src/app-server/v2/index.ts index 64c7420c..c3e0d64d 100644 --- a/packages/codex-acp/src/app-server/v2/index.ts +++ b/packages/codex-acp/src/app-server/v2/index.ts @@ -4,6 +4,11 @@ export type { Account } from "./Account"; export type { AccountLoginCompletedNotification } from "./AccountLoginCompletedNotification"; export type { AccountRateLimitsUpdatedNotification } from "./AccountRateLimitsUpdatedNotification"; export type { AccountRoutingOverride } from "./AccountRoutingOverride"; +export type { AccountSecuritySetupAction } from "./AccountSecuritySetupAction"; +export type { AccountSecuritySetupNotice } from "./AccountSecuritySetupNotice"; +export type { AccountSession } from "./AccountSession"; +export type { AccountSessionWorkspace } from "./AccountSessionWorkspace"; +export type { AccountSessionWorkspaceKind } from "./AccountSessionWorkspaceKind"; export type { AccountTokenUsageDailyBucket } from "./AccountTokenUsageDailyBucket"; export type { AccountTokenUsageSummary } from "./AccountTokenUsageSummary"; export type { AccountUpdatedNotification } from "./AccountUpdatedNotification"; @@ -17,8 +22,12 @@ export type { AdditionalNetworkPermissions } from "./AdditionalNetworkPermission export type { AdditionalPermissionProfile } from "./AdditionalPermissionProfile"; export type { AgentMessageDelivery } from "./AgentMessageDelivery"; export type { AgentMessageDeltaNotification } from "./AgentMessageDeltaNotification"; +export type { AgentMessageDisplay } from "./AgentMessageDisplay"; +export type { AgentMessageModeration } from "./AgentMessageModeration"; export type { AllowDenyRequirement } from "./AllowDenyRequirement"; export type { AnalyticsConfig } from "./AnalyticsConfig"; +export type { AnswerAnnotation } from "./AnswerAnnotation"; +export type { AnswerReplacement } from "./AnswerReplacement"; export type { AppBranding } from "./AppBranding"; export type { AppInfo } from "./AppInfo"; export type { AppLinksConfig } from "./AppLinksConfig"; @@ -34,6 +43,7 @@ export type { AppToolSummary } from "./AppToolSummary"; export type { AppToolsConfig } from "./AppToolsConfig"; export type { ApplicationNetworkRequirements } from "./ApplicationNetworkRequirements"; export type { ApplicationRequirements } from "./ApplicationRequirements"; +export type { ApplicationStorageRequirements } from "./ApplicationStorageRequirements"; export type { ApprovalsReviewer } from "./ApprovalsReviewer"; export type { AppsConfig } from "./AppsConfig"; export type { AppsDefaultConfig } from "./AppsDefaultConfig"; @@ -50,8 +60,12 @@ export type { AttestationGenerateResponse } from "./AttestationGenerateResponse" export type { AuthRecoveryNotification } from "./AuthRecoveryNotification"; export type { AutoReviewDecisionSource } from "./AutoReviewDecisionSource"; export type { AutoReviewRequirements } from "./AutoReviewRequirements"; +export type { BedrockProviderId } from "./BedrockProviderId"; +export type { BedrockSettingsParams } from "./BedrockSettingsParams"; +export type { BlockReason } from "./BlockReason"; export type { BrowserUseAccessApprovalLifetime } from "./BrowserUseAccessApprovalLifetime"; export type { BrowserUseConfig } from "./BrowserUseConfig"; +export type { BrowserUseExtensionRequirements } from "./BrowserUseExtensionRequirements"; export type { BrowserUseOriginPolicy } from "./BrowserUseOriginPolicy"; export type { BrowserUseOriginPolicyConfig } from "./BrowserUseOriginPolicyConfig"; export type { BrowserUseRequirements } from "./BrowserUseRequirements"; @@ -119,6 +133,7 @@ export type { ConsumeAccountRateLimitResetCreditParams } from "./ConsumeAccountR export type { ConsumeAccountRateLimitResetCreditResponse } from "./ConsumeAccountRateLimitResetCreditResponse"; export type { ContextCompactedNotification } from "./ContextCompactedNotification"; export type { CreditsSnapshot } from "./CreditsSnapshot"; +export type { CustomGatewaySettingsParams } from "./CustomGatewaySettingsParams"; export type { CyberAccessProgram } from "./CyberAccessProgram"; export type { DeprecationNoticeNotification } from "./DeprecationNoticeNotification"; export type { DesktopOnboardingEntrypoint } from "./DesktopOnboardingEntrypoint"; @@ -131,6 +146,7 @@ export type { DynamicToolNamespaceSpec } from "./DynamicToolNamespaceSpec"; export type { DynamicToolNamespaceTool } from "./DynamicToolNamespaceTool"; export type { DynamicToolSpec } from "./DynamicToolSpec"; export type { EnvironmentConnectionNotification } from "./EnvironmentConnectionNotification"; +export type { EnvironmentSkillsParams } from "./EnvironmentSkillsParams"; export type { ErrorNotification } from "./ErrorNotification"; export type { ExecPolicyAmendment } from "./ExecPolicyAmendment"; export type { ExperimentalFeature } from "./ExperimentalFeature"; @@ -161,6 +177,8 @@ export type { ExternalAgentDetectedConnectorSource } from "./ExternalAgentDetect export type { ExternalAgentImportedConnectorCandidate } from "./ExternalAgentImportedConnectorCandidate"; export type { ExternalAgentImportedConnectorSource } from "./ExternalAgentImportedConnectorSource"; export type { FeedbackRequirements } from "./FeedbackRequirements"; +export type { FeedbackSaveParams } from "./FeedbackSaveParams"; +export type { FeedbackSaveResponse } from "./FeedbackSaveResponse"; export type { FeedbackUploadParams } from "./FeedbackUploadParams"; export type { FeedbackUploadResponse } from "./FeedbackUploadResponse"; export type { FileChangeApprovalDecision } from "./FileChangeApprovalDecision"; @@ -194,10 +212,22 @@ export type { FsWatchParams } from "./FsWatchParams"; export type { FsWatchResponse } from "./FsWatchResponse"; export type { FsWriteFileParams } from "./FsWriteFileParams"; export type { FsWriteFileResponse } from "./FsWriteFileResponse"; +export type { GatewayAuth } from "./GatewayAuth"; +export type { GatewayOAuthCancelResponse } from "./GatewayOAuthCancelResponse"; +export type { GatewayOAuthChangedNotification } from "./GatewayOAuthChangedNotification"; +export type { GatewayOAuthLoginParams } from "./GatewayOAuthLoginParams"; +export type { GatewayOAuthLoginResponse } from "./GatewayOAuthLoginResponse"; +export type { GatewayOAuthPrompt } from "./GatewayOAuthPrompt"; +export type { GatewayOAuthReadParams } from "./GatewayOAuthReadParams"; +export type { GatewayOAuthReadResponse } from "./GatewayOAuthReadResponse"; +export type { GatewayOAuthStatus } from "./GatewayOAuthStatus"; +export type { GcpProviderId } from "./GcpProviderId"; +export type { GcpSettingsParams } from "./GcpSettingsParams"; export type { GetAccountParams } from "./GetAccountParams"; export type { GetAccountRateLimitsParams } from "./GetAccountRateLimitsParams"; export type { GetAccountRateLimitsResponse } from "./GetAccountRateLimitsResponse"; export type { GetAccountResponse } from "./GetAccountResponse"; +export type { GetAccountSecuritySetupResponse } from "./GetAccountSecuritySetupResponse"; export type { GetAccountTokenUsageParams } from "./GetAccountTokenUsageParams"; export type { GetAccountTokenUsageResponse } from "./GetAccountTokenUsageResponse"; export type { GetWorkspaceMessagesResponse } from "./GetWorkspaceMessagesResponse"; @@ -210,6 +240,7 @@ export type { GuardianCommandSource } from "./GuardianCommandSource"; export type { GuardianRiskLevel } from "./GuardianRiskLevel"; export type { GuardianUserAuthorization } from "./GuardianUserAuthorization"; export type { GuardianWarningNotification } from "./GuardianWarningNotification"; +export type { HelplineSubject } from "./HelplineSubject"; export type { HookCompletedNotification } from "./HookCompletedNotification"; export type { HookErrorInfo } from "./HookErrorInfo"; export type { HookEventName } from "./HookEventName"; @@ -278,6 +309,7 @@ export type { McpElicitationUntitledMultiSelectEnumSchema } from "./McpElicitati export type { McpElicitationUntitledSingleSelectEnumSchema } from "./McpElicitationUntitledSingleSelectEnumSchema"; export type { McpResourceReadParams } from "./McpResourceReadParams"; export type { McpResourceReadResponse } from "./McpResourceReadResponse"; +export type { McpResourceReadTarget } from "./McpResourceReadTarget"; export type { McpServerConnectionStatus } from "./McpServerConnectionStatus"; export type { McpServerElicitationAction } from "./McpServerElicitationAction"; export type { McpServerElicitationRequestParams } from "./McpServerElicitationRequestParams"; @@ -315,6 +347,12 @@ export type { ModelListParams } from "./ModelListParams"; export type { ModelListResponse } from "./ModelListResponse"; export type { ModelProviderCapabilitiesReadParams } from "./ModelProviderCapabilitiesReadParams"; export type { ModelProviderCapabilitiesReadResponse } from "./ModelProviderCapabilitiesReadResponse"; +export type { ModelProviderConfigWriteParams } from "./ModelProviderConfigWriteParams"; +export type { ModelProviderConfigWriteResponse } from "./ModelProviderConfigWriteResponse"; +export type { ModelProviderError } from "./ModelProviderError"; +export type { ModelProviderListParams } from "./ModelProviderListParams"; +export type { ModelProviderListResponse } from "./ModelProviderListResponse"; +export type { ModelProviderSummary } from "./ModelProviderSummary"; export type { ModelRerouteReason } from "./ModelRerouteReason"; export type { ModelReroutedNotification } from "./ModelReroutedNotification"; export type { ModelSafetyBufferingUpdatedNotification } from "./ModelSafetyBufferingUpdatedNotification"; @@ -334,6 +372,11 @@ export type { NetworkRequirements } from "./NetworkRequirements"; export type { NetworkUnixSocketPermission } from "./NetworkUnixSocketPermission"; export type { NewThreadModelDefaults } from "./NewThreadModelDefaults"; export type { NonSteerableTurnKind } from "./NonSteerableTurnKind"; +export type { OtelExporter } from "./OtelExporter"; +export type { OtelHttpProtocol } from "./OtelHttpProtocol"; +export type { OtelRequirements } from "./OtelRequirements"; +export type { OtelTlsConfig } from "./OtelTlsConfig"; +export type { OtelToolResultLogConfig } from "./OtelToolResultLogConfig"; export type { OverriddenMetadata } from "./OverriddenMetadata"; export type { PatchApplyStatus } from "./PatchApplyStatus"; export type { PatchChangeKind } from "./PatchChangeKind"; @@ -402,6 +445,8 @@ export type { ProjectChangeType } from "./ProjectChangeType"; export type { ProjectChangedNotification } from "./ProjectChangedNotification"; export type { ProjectRoot } from "./ProjectRoot"; export type { ProjectSortKey } from "./ProjectSortKey"; +export type { ProviderSettings } from "./ProviderSettings"; +export type { ProviderSettingsPatch } from "./ProviderSettingsPatch"; export type { QueuedSubmission } from "./QueuedSubmission"; export type { RateLimitReachedType } from "./RateLimitReachedType"; export type { RateLimitResetCredit } from "./RateLimitResetCredit"; @@ -420,6 +465,7 @@ export type { RemoteControlConnectionStatus } from "./RemoteControlConnectionSta export type { RemoteControlDisableParams } from "./RemoteControlDisableParams"; export type { RemoteControlEnableParams } from "./RemoteControlEnableParams"; export type { RemoteControlStatusChangedNotification } from "./RemoteControlStatusChangedNotification"; +export type { RequestHeader } from "./RequestHeader"; export type { RequestPermissionProfile } from "./RequestPermissionProfile"; export type { ResidencyRequirement } from "./ResidencyRequirement"; export type { ResponseUsageMetadata } from "./ResponseUsageMetadata"; @@ -480,6 +526,9 @@ export type { ThreadAttachmentAddResponse } from "./ThreadAttachmentAddResponse" export type { ThreadAttachmentListParams } from "./ThreadAttachmentListParams"; export type { ThreadAttachmentListResponse } from "./ThreadAttachmentListResponse"; export type { ThreadAttachmentOperation } from "./ThreadAttachmentOperation"; +export type { ThreadAttachmentOwner } from "./ThreadAttachmentOwner"; +export type { ThreadAttachmentOwnerListParams } from "./ThreadAttachmentOwnerListParams"; +export type { ThreadAttachmentOwnerListResponse } from "./ThreadAttachmentOwnerListResponse"; export type { ThreadAttachmentRemoveParams } from "./ThreadAttachmentRemoveParams"; export type { ThreadAttachmentRemoveResponse } from "./ThreadAttachmentRemoveResponse"; export type { ThreadAttachmentUpdatedNotification } from "./ThreadAttachmentUpdatedNotification"; @@ -499,6 +548,7 @@ export type { ThreadGoalClearResponse } from "./ThreadGoalClearResponse"; export type { ThreadGoalClearedNotification } from "./ThreadGoalClearedNotification"; export type { ThreadGoalGetParams } from "./ThreadGoalGetParams"; export type { ThreadGoalGetResponse } from "./ThreadGoalGetResponse"; +export type { ThreadGoalMutationOrigin } from "./ThreadGoalMutationOrigin"; export type { ThreadGoalSetParams } from "./ThreadGoalSetParams"; export type { ThreadGoalSetResponse } from "./ThreadGoalSetResponse"; export type { ThreadGoalStatus } from "./ThreadGoalStatus"; @@ -508,6 +558,9 @@ export type { ThreadInjectItemsParams } from "./ThreadInjectItemsParams"; export type { ThreadInjectItemsResponse } from "./ThreadInjectItemsResponse"; export type { ThreadItem } from "./ThreadItem"; export type { ThreadItemEntry } from "./ThreadItemEntry"; +export type { ThreadItemOutputDeferral } from "./ThreadItemOutputDeferral"; +export type { ThreadItemsListAnchor } from "./ThreadItemsListAnchor"; +export type { ThreadItemsListCursor } from "./ThreadItemsListCursor"; export type { ThreadItemsListParams } from "./ThreadItemsListParams"; export type { ThreadItemsListResponse } from "./ThreadItemsListResponse"; export type { ThreadListParams } from "./ThreadListParams"; @@ -518,10 +571,15 @@ export type { ThreadMetadataGitInfoUpdateParams } from "./ThreadMetadataGitInfoU export type { ThreadMetadataUpdateParams } from "./ThreadMetadataUpdateParams"; export type { ThreadMetadataUpdateResponse } from "./ThreadMetadataUpdateResponse"; export type { ThreadNameUpdatedNotification } from "./ThreadNameUpdatedNotification"; +export type { ThreadPredictionResult } from "./ThreadPredictionResult"; +export type { ThreadPredictionUpdatedNotification } from "./ThreadPredictionUpdatedNotification"; export type { ThreadProjectUpdatedNotification } from "./ThreadProjectUpdatedNotification"; export type { ThreadQueueChangedNotification } from "./ThreadQueueChangedNotification"; export type { ThreadReadParams } from "./ThreadReadParams"; export type { ThreadReadResponse } from "./ThreadReadResponse"; +export type { ThreadReadState } from "./ThreadReadState"; +export type { ThreadReadStateChangedNotification } from "./ThreadReadStateChangedNotification"; +export type { ThreadReadStateOperation } from "./ThreadReadStateOperation"; export type { ThreadRealtimeAudioChunk } from "./ThreadRealtimeAudioChunk"; export type { ThreadRealtimeBemItemPresentation } from "./ThreadRealtimeBemItemPresentation"; export type { ThreadRealtimeClosedNotification } from "./ThreadRealtimeClosedNotification"; @@ -550,6 +608,7 @@ export type { ThreadSearchResult } from "./ThreadSearchResult"; export type { ThreadSearchSortKey } from "./ThreadSearchSortKey"; export type { ThreadSection } from "./ThreadSection"; export type { ThreadSectionAppearance } from "./ThreadSectionAppearance"; +export type { ThreadSectionChangedNotification } from "./ThreadSectionChangedNotification"; export type { ThreadSectionCreateParams } from "./ThreadSectionCreateParams"; export type { ThreadSectionCreateResponse } from "./ThreadSectionCreateResponse"; export type { ThreadSectionDeleteParams } from "./ThreadSectionDeleteParams"; @@ -583,6 +642,7 @@ export type { ThreadTurnsListResponse } from "./ThreadTurnsListResponse"; export type { ThreadUnarchiveParams } from "./ThreadUnarchiveParams"; export type { ThreadUnarchiveResponse } from "./ThreadUnarchiveResponse"; export type { ThreadUnarchivedNotification } from "./ThreadUnarchivedNotification"; +export type { ThreadUnreadPosition } from "./ThreadUnreadPosition"; export type { ThreadUnsubscribeParams } from "./ThreadUnsubscribeParams"; export type { ThreadUnsubscribeResponse } from "./ThreadUnsubscribeResponse"; export type { ThreadUnsubscribeStatus } from "./ThreadUnsubscribeStatus"; @@ -595,6 +655,7 @@ export type { ToolRequestUserInputParams } from "./ToolRequestUserInputParams"; export type { ToolRequestUserInputQuestion } from "./ToolRequestUserInputQuestion"; export type { ToolRequestUserInputResponse } from "./ToolRequestUserInputResponse"; export type { ToolsV2 } from "./ToolsV2"; +export type { TrustedContacts } from "./TrustedContacts"; export type { Turn } from "./Turn"; export type { TurnCompletedNotification } from "./TurnCompletedNotification"; export type { TurnDiffUpdatedNotification } from "./TurnDiffUpdatedNotification"; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 03a30446..638d48f8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -94,8 +94,8 @@ importers: specifier: ^1.5.0 version: 1.5.0(zod@4.4.3) '@openai/codex': - specifier: ^0.156.1 - version: 0.156.1 + specifier: ^0.170.0 + version: 0.170.0 diff: specifier: ^9.0.0 version: 9.0.0 @@ -905,43 +905,43 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@openai/codex@0.156.1': - resolution: {integrity: sha512-nI1iVl/n2SO2lSvlwEsJx63zdSI4C4Me2gR7AG0OWMJiGSakz2tY2hx43E39Zq5aEoeB5bZjJXzp5Sqhog6vyA==} + '@openai/codex@0.170.0': + resolution: {integrity: sha512-dwoughgqjiik++CFaNkjQ5y6pJO6LUzu5P1z8Hy4LUeJ+aIYcX/QO1P5rOQnHmBG4agOM7Y+hc4LtVo/a4GFiw==} engines: {node: '>=16'} hasBin: true - '@openai/codex@0.156.1-darwin-arm64': - resolution: {integrity: sha512-Jg6wbdV+wmMZczhwE74GSxOYEZlViKXn6KyCw/yfrz3PAKFD14xljuPopmdhWC1+8IKU2WdN5fdmXNPt2q4HPA==} + '@openai/codex@0.170.0-darwin-arm64': + resolution: {integrity: sha512-sQyOGJabAUTEWCKe1O6GNsE7NKnHCHSjzLrazfYUgw8OFsFDeAQGVEwzvpXTK1yW1hJiLLAMRzC/W2Vu7m9DwQ==} engines: {node: '>=16'} cpu: [arm64] os: [darwin] - '@openai/codex@0.156.1-darwin-x64': - resolution: {integrity: sha512-BVjqNOoltWrnNUrgMRepvDIIBmd4XY+ikAE4pYVHlrwiizNlEWQuCQOTrFMJKp54LFRG8jDTjLZyYQ1QrliuOg==} + '@openai/codex@0.170.0-darwin-x64': + resolution: {integrity: sha512-lniwntVB9YaCQNNaTgpLxVvABkrnZDCO/UZf3z7POwH71ikkVNi7NxBrfl6aSIS9b3UBJKxjPlAm3qeIxINJVg==} engines: {node: '>=16'} cpu: [x64] os: [darwin] - '@openai/codex@0.156.1-linux-arm64': - resolution: {integrity: sha512-sTEHk31C12dqzJdjZ2u9KLFCXKL04KyCM+QheSjdQI8uzmVJS7aEF2/qAqFxXwk/jwMzC9u7IihfoIlAGR6YsA==} + '@openai/codex@0.170.0-linux-arm64': + resolution: {integrity: sha512-mJLm5eia/GcukCrRfVEnYVD5dOXGE7cmpd9dJ/ixkSiKifzDAPaGq83ZEmwVhk3PxbdTPUSLRpnXZQKbNS5HoA==} engines: {node: '>=16'} cpu: [arm64] os: [linux] - '@openai/codex@0.156.1-linux-x64': - resolution: {integrity: sha512-2ePo0wgOcnONKsuzp8vBjOmNY+IdsKaouaDDIdiKq9HOWNuV/GI22OeXft2A/1GaoL71ictO0/pLAsCEnQ6wew==} + '@openai/codex@0.170.0-linux-x64': + resolution: {integrity: sha512-6cCZJaZL17tiTAvhd1Pirt8vsV1dP8CfG94+IHygUO4m24oYLQrIInJJLyKzcMv/uUonbu1dF2JmcXhA/s5bsg==} engines: {node: '>=16'} cpu: [x64] os: [linux] - '@openai/codex@0.156.1-win32-arm64': - resolution: {integrity: sha512-e5DsyOHlKWulTBz/neIczpcYLQDqtaLtBj2lgncOgeQw5mlAQVZHlGvKsoKVcEPUKLb8opIMJBxXi6cz3JJ4hg==} + '@openai/codex@0.170.0-win32-arm64': + resolution: {integrity: sha512-VSfDt/Y/RYqeT+9gCwmIO1kEj7bF7RYQdhanhMWQqWpZBdPLrF19z2z8JbL+Gt/amE7A1d/Rt2g/p44DLrDhFg==} engines: {node: '>=16'} cpu: [arm64] os: [win32] - '@openai/codex@0.156.1-win32-x64': - resolution: {integrity: sha512-MJyLxbBs2zzp5kbaR/99Zwe7SmbrwUkveTcT+ayYlO48V0nYh0eU+h2lalBwvC7VJ/ya/bXnUtISJfJKhGCD/g==} + '@openai/codex@0.170.0-win32-x64': + resolution: {integrity: sha512-eNlCGvSTKMegqo1R0PPfAf0jOQp8OGfWH8WX2UyTtRN6E/YOecJnz4n1X9lIb02O8Zda/Lv6/WST7+8mufTVSw==} engines: {node: '>=16'} cpu: [x64] os: [win32] @@ -3479,31 +3479,31 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.20.1 - '@openai/codex@0.156.1': + '@openai/codex@0.170.0': optionalDependencies: - '@openai/codex-darwin-arm64': '@openai/codex@0.156.1-darwin-arm64' - '@openai/codex-darwin-x64': '@openai/codex@0.156.1-darwin-x64' - '@openai/codex-linux-arm64': '@openai/codex@0.156.1-linux-arm64' - '@openai/codex-linux-x64': '@openai/codex@0.156.1-linux-x64' - '@openai/codex-win32-arm64': '@openai/codex@0.156.1-win32-arm64' - '@openai/codex-win32-x64': '@openai/codex@0.156.1-win32-x64' - - '@openai/codex@0.156.1-darwin-arm64': + '@openai/codex-darwin-arm64': '@openai/codex@0.170.0-darwin-arm64' + '@openai/codex-darwin-x64': '@openai/codex@0.170.0-darwin-x64' + '@openai/codex-linux-arm64': '@openai/codex@0.170.0-linux-arm64' + '@openai/codex-linux-x64': '@openai/codex@0.170.0-linux-x64' + '@openai/codex-win32-arm64': '@openai/codex@0.170.0-win32-arm64' + '@openai/codex-win32-x64': '@openai/codex@0.170.0-win32-x64' + + '@openai/codex@0.170.0-darwin-arm64': optional: true - '@openai/codex@0.156.1-darwin-x64': + '@openai/codex@0.170.0-darwin-x64': optional: true - '@openai/codex@0.156.1-linux-arm64': + '@openai/codex@0.170.0-linux-arm64': optional: true - '@openai/codex@0.156.1-linux-x64': + '@openai/codex@0.170.0-linux-x64': optional: true - '@openai/codex@0.156.1-win32-arm64': + '@openai/codex@0.170.0-win32-arm64': optional: true - '@openai/codex@0.156.1-win32-x64': + '@openai/codex@0.170.0-win32-x64': optional: true '@opentelemetry/api@1.9.1': {}