From 0770edb9a3d47aad2db8a92db770531c01732679 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 21 Apr 2026 05:47:47 +0000 Subject: [PATCH 1/6] Update codex to 0.122.0 --- package-lock.json | 56 +++++++++---------- package.json | 2 +- src/app-server/AgentMessageItem.ts | 2 +- src/app-server/ApplyPatchApprovalParams.ts | 6 +- .../ApplyPatchApprovalRequestEvent.ts | 8 +-- src/app-server/ByteRange.ts | 4 +- src/app-server/ClientRequest.ts | 8 ++- .../CollabAgentInteractionBeginEvent.ts | 8 +-- .../CollabAgentInteractionEndEvent.ts | 14 ++--- src/app-server/CollabAgentRef.ts | 6 +- src/app-server/CollabAgentSpawnBeginEvent.ts | 6 +- src/app-server/CollabAgentSpawnEndEvent.ts | 14 ++--- src/app-server/CollabAgentStatusEntry.ts | 8 +-- src/app-server/CollabCloseBeginEvent.ts | 6 +- src/app-server/CollabCloseEndEvent.ts | 12 ++-- src/app-server/CollabResumeBeginEvent.ts | 10 ++-- src/app-server/CollabResumeEndEvent.ts | 12 ++-- src/app-server/CollabWaitingBeginEvent.ts | 8 +-- src/app-server/CollabWaitingEndEvent.ts | 8 +-- src/app-server/ContentItem.ts | 3 +- src/app-server/DeprecationNoticeEvent.ts | 4 +- .../DynamicToolCallResponseEvent.ts | 16 +++--- src/app-server/ElicitationRequestEvent.ts | 2 +- src/app-server/ExecApprovalRequestEvent.ts | 24 ++++---- src/app-server/ExecCommandApprovalParams.ts | 4 +- src/app-server/ExecCommandBeginEvent.ts | 14 ++--- src/app-server/ExecCommandEndEvent.ts | 28 +++++----- src/app-server/ExecCommandOutputDeltaEvent.ts | 6 +- .../GetHistoryEntryResponseEvent.ts | 2 +- src/app-server/InitializeCapabilities.ts | 4 +- src/app-server/InitializeResponse.ts | 6 +- src/app-server/InputItem.ts | 2 +- src/app-server/McpInvocation.ts | 6 +- src/app-server/McpListToolsResponseEvent.ts | 8 +-- src/app-server/McpStartupUpdateEvent.ts | 4 +- src/app-server/McpToolCallBeginEvent.ts | 2 +- src/app-server/McpToolCallEndEvent.ts | 4 +- src/app-server/ParsedCommand.ts | 2 +- src/app-server/PatchApplyBeginEvent.ts | 8 +-- src/app-server/PatchApplyEndEvent.ts | 14 ++--- src/app-server/PlanType.ts | 2 +- src/app-server/RateLimitWindow.ts | 6 +- src/app-server/ReadOnlyAccess.ts | 4 +- src/app-server/RealtimeOutputModality.ts | 5 ++ src/app-server/RejectConfig.ts | 8 +-- src/app-server/RequestPermissionsEvent.ts | 4 +- src/app-server/RequestUserInputEvent.ts | 4 +- src/app-server/ResourceContent.ts | 4 +- src/app-server/ResponseItem.ts | 2 +- src/app-server/ReviewDecision.ts | 2 +- src/app-server/ReviewTarget.ts | 2 +- src/app-server/SandboxPolicy.ts | 16 +++--- src/app-server/SendUserTurnParams.ts | 2 +- src/app-server/ServerNotification.ts | 7 ++- src/app-server/SessionConfiguredEvent.ts | 22 ++++---- src/app-server/SkillMetadata.ts | 2 +- src/app-server/StreamErrorEvent.ts | 2 +- src/app-server/TerminalInteractionEvent.ts | 6 +- src/app-server/TextElement.ts | 4 +- src/app-server/ThreadMemoryMode.ts | 5 ++ src/app-server/ThreadRolledBackEvent.ts | 2 +- src/app-server/UpdatePlanArgs.ts | 2 +- src/app-server/UserInput.ts | 2 +- src/app-server/UserMessageEvent.ts | 6 +- src/app-server/ViewImageToolCallEvent.ts | 4 +- src/app-server/index.ts | 2 + .../v2/AddCreditsNudgeCreditType.ts | 5 ++ .../v2/AddCreditsNudgeEmailStatus.ts | 5 ++ src/app-server/v2/AppInfo.ts | 2 +- src/app-server/v2/AppsListParams.ts | 8 +-- src/app-server/v2/AppsListResponse.ts | 2 +- src/app-server/v2/AutoReviewDecisionSource.ts | 2 +- .../v2/ChatgptAuthTokensRefreshParams.ts | 2 +- src/app-server/v2/CommandAction.ts | 3 +- .../v2/CommandExecOutputDeltaNotification.ts | 8 +-- src/app-server/v2/CommandExecParams.ts | 26 ++++----- src/app-server/v2/CommandExecResizeParams.ts | 4 +- src/app-server/v2/CommandExecResponse.ts | 6 +- src/app-server/v2/CommandExecTerminalSize.ts | 4 +- .../v2/CommandExecTerminateParams.ts | 2 +- src/app-server/v2/CommandExecWriteParams.ts | 6 +- .../CommandExecutionRequestAcceptSettings.ts | 2 +- .../CommandExecutionRequestApprovalParams.ts | 21 +++---- src/app-server/v2/ConfigBatchWriteParams.ts | 4 +- src/app-server/v2/ConfigLayerSource.ts | 4 +- src/app-server/v2/ConfigReadParams.ts | 2 +- .../v2/ConfigRequirementsReadResponse.ts | 2 +- src/app-server/v2/ConfigValueWriteParams.ts | 2 +- .../v2/ConfigWarningNotification.ts | 8 +-- src/app-server/v2/ConfigWriteResponse.ts | 2 +- .../v2/DeprecationNoticeNotification.ts | 4 +- src/app-server/v2/ExperimentalFeature.ts | 14 ++--- .../ExperimentalFeatureEnablementSetParams.ts | 2 +- ...xperimentalFeatureEnablementSetResponse.ts | 2 +- .../v2/ExperimentalFeatureListParams.ts | 4 +- .../v2/ExperimentalFeatureListResponse.ts | 2 +- .../v2/ExternalAgentConfigDetectParams.ts | 4 +- ...lAgentConfigImportCompletedNotification.ts | 5 ++ .../v2/ExternalAgentConfigMigrationItem.ts | 5 +- .../ExternalAgentConfigMigrationItemType.ts | 2 +- src/app-server/v2/FeedbackUploadParams.ts | 2 +- .../v2/FileChangeRequestApprovalParams.ts | 4 +- src/app-server/v2/FsChangedNotification.ts | 4 +- src/app-server/v2/FsCopyParams.ts | 6 +- src/app-server/v2/FsCreateDirectoryParams.ts | 4 +- src/app-server/v2/FsGetMetadataParams.ts | 2 +- src/app-server/v2/FsGetMetadataResponse.ts | 16 ++++-- src/app-server/v2/FsReadDirectoryEntry.ts | 6 +- src/app-server/v2/FsReadDirectoryParams.ts | 2 +- src/app-server/v2/FsReadDirectoryResponse.ts | 2 +- src/app-server/v2/FsReadFileParams.ts | 2 +- src/app-server/v2/FsReadFileResponse.ts | 2 +- src/app-server/v2/FsRemoveParams.ts | 6 +- src/app-server/v2/FsUnwatchParams.ts | 2 +- src/app-server/v2/FsWatchParams.ts | 4 +- src/app-server/v2/FsWatchResponse.ts | 2 +- src/app-server/v2/FsWriteFileParams.ts | 4 +- src/app-server/v2/GetAccountParams.ts | 2 +- .../v2/GetAccountRateLimitsResponse.ts | 4 +- src/app-server/v2/GuardianApprovalReview.ts | 2 +- .../v2/GuardianApprovalReviewAction.ts | 3 +- .../v2/GuardianApprovalReviewStatus.ts | 4 +- src/app-server/v2/GuardianRiskLevel.ts | 2 +- .../v2/GuardianUserAuthorization.ts | 2 +- src/app-server/v2/HookEventName.ts | 2 +- src/app-server/v2/HookRunSummary.ts | 4 +- src/app-server/v2/HookSource.ts | 5 ++ ...dianApprovalReviewCompletedNotification.ts | 8 +-- ...ardianApprovalReviewStartedNotification.ts | 8 +-- .../v2/ListMcpServerStatusParams.ts | 6 +- .../v2/ListMcpServerStatusResponse.ts | 2 +- src/app-server/v2/ListMcpServersParams.ts | 4 +- src/app-server/v2/ListMcpServersResponse.ts | 2 +- src/app-server/v2/LoginAccountParams.ts | 6 +- src/app-server/v2/LoginAccountResponse.ts | 6 +- src/app-server/v2/MarketplaceAddParams.ts | 5 ++ src/app-server/v2/MarketplaceAddResponse.ts | 6 ++ src/app-server/v2/MarketplaceRemoveParams.ts | 5 ++ .../v2/MarketplaceRemoveResponse.ts | 6 ++ .../v2/McpServerElicitationRequestParams.ts | 2 +- .../v2/McpServerElicitationRequestResponse.ts | 4 +- src/app-server/v2/McpServerToolCallParams.ts | 6 ++ .../v2/McpServerToolCallResponse.ts | 6 ++ src/app-server/v2/MigrationDetails.ts | 6 ++ src/app-server/v2/ModelListParams.ts | 6 +- src/app-server/v2/ModelListResponse.ts | 2 +- src/app-server/v2/NetworkRequirements.ts | 14 ++--- src/app-server/v2/PluginInstallParams.ts | 6 +- src/app-server/v2/PluginInterface.ts | 28 +++++++++- src/app-server/v2/PluginListParams.ts | 9 +-- src/app-server/v2/PluginListResponse.ts | 2 +- src/app-server/v2/PluginMarketplaceEntry.ts | 7 ++- src/app-server/v2/PluginReadParams.ts | 2 +- src/app-server/v2/PluginSource.ts | 2 +- src/app-server/v2/PluginUninstallParams.ts | 6 +- src/app-server/v2/PluginsMigration.ts | 5 ++ src/app-server/v2/RateLimitReachedType.ts | 5 ++ src/app-server/v2/RateLimitSnapshot.ts | 3 +- src/app-server/v2/ReviewStartParams.ts | 2 +- src/app-server/v2/ReviewStartResponse.ts | 2 +- src/app-server/v2/ReviewTarget.ts | 2 +- .../v2/SendAddCreditsNudgeEmailParams.ts | 6 ++ .../v2/SendAddCreditsNudgeEmailResponse.ts | 6 ++ src/app-server/v2/SkillInterface.ts | 3 +- src/app-server/v2/SkillMetadata.ts | 5 +- src/app-server/v2/SkillSummary.ts | 3 +- src/app-server/v2/SkillsConfigWriteParams.ts | 4 +- src/app-server/v2/SkillsListParams.ts | 6 +- src/app-server/v2/SortDirection.ts | 5 ++ src/app-server/v2/TextElement.ts | 4 +- src/app-server/v2/TextPosition.ts | 4 +- src/app-server/v2/Thread.ts | 33 +++++------ src/app-server/v2/ThreadForkResponse.ts | 7 ++- src/app-server/v2/ThreadInjectItemsParams.ts | 10 ++++ .../v2/ThreadInjectItemsResponse.ts | 5 ++ src/app-server/v2/ThreadItem.ts | 39 ++++++------- src/app-server/v2/ThreadListParams.ts | 21 ++++--- src/app-server/v2/ThreadListResponse.ts | 11 +++- src/app-server/v2/ThreadLoadedListParams.ts | 4 +- src/app-server/v2/ThreadLoadedListResponse.ts | 4 +- .../v2/ThreadMetadataGitInfoUpdateParams.ts | 6 +- .../v2/ThreadMetadataUpdateParams.ts | 2 +- src/app-server/v2/ThreadReadParams.ts | 2 +- .../v2/ThreadRealtimeStartTransport.ts | 2 +- ...readRealtimeTranscriptDeltaNotification.ts | 13 +++++ ...hreadRealtimeTranscriptDoneNotification.ts | 13 +++++ src/app-server/v2/ThreadResumeResponse.ts | 7 ++- src/app-server/v2/ThreadRollbackParams.ts | 2 +- src/app-server/v2/ThreadRollbackResponse.ts | 2 +- src/app-server/v2/ThreadShellCommandParams.ts | 2 +- src/app-server/v2/ThreadStartResponse.ts | 7 ++- src/app-server/v2/ThreadTurnsListParams.ts | 18 ++++++ src/app-server/v2/ThreadTurnsListResponse.ts | 18 ++++++ src/app-server/v2/Turn.ts | 10 ++-- src/app-server/v2/UserInput.ts | 2 +- src/app-server/v2/WarningNotification.ts | 13 +++++ src/app-server/v2/index.ts | 23 ++++++++ 197 files changed, 779 insertions(+), 498 deletions(-) create mode 100644 src/app-server/RealtimeOutputModality.ts create mode 100644 src/app-server/ThreadMemoryMode.ts create mode 100644 src/app-server/v2/AddCreditsNudgeCreditType.ts create mode 100644 src/app-server/v2/AddCreditsNudgeEmailStatus.ts create mode 100644 src/app-server/v2/ExternalAgentConfigImportCompletedNotification.ts create mode 100644 src/app-server/v2/HookSource.ts create mode 100644 src/app-server/v2/MarketplaceAddParams.ts create mode 100644 src/app-server/v2/MarketplaceAddResponse.ts create mode 100644 src/app-server/v2/MarketplaceRemoveParams.ts create mode 100644 src/app-server/v2/MarketplaceRemoveResponse.ts create mode 100644 src/app-server/v2/McpServerToolCallParams.ts create mode 100644 src/app-server/v2/McpServerToolCallResponse.ts create mode 100644 src/app-server/v2/MigrationDetails.ts create mode 100644 src/app-server/v2/PluginsMigration.ts create mode 100644 src/app-server/v2/RateLimitReachedType.ts create mode 100644 src/app-server/v2/SendAddCreditsNudgeEmailParams.ts create mode 100644 src/app-server/v2/SendAddCreditsNudgeEmailResponse.ts create mode 100644 src/app-server/v2/SortDirection.ts create mode 100644 src/app-server/v2/ThreadInjectItemsParams.ts create mode 100644 src/app-server/v2/ThreadInjectItemsResponse.ts create mode 100644 src/app-server/v2/ThreadRealtimeTranscriptDeltaNotification.ts create mode 100644 src/app-server/v2/ThreadRealtimeTranscriptDoneNotification.ts create mode 100644 src/app-server/v2/ThreadTurnsListParams.ts create mode 100644 src/app-server/v2/ThreadTurnsListResponse.ts create mode 100644 src/app-server/v2/WarningNotification.ts diff --git a/package-lock.json b/package-lock.json index 39a74053..8db8d4ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "ISC", "dependencies": { "@agentclientprotocol/sdk": "^0.16.1", - "@openai/codex": "^0.120.0", + "@openai/codex": "^0.122.0", "diff": "^8.0.3", "open": "^11.0.0", "vscode-jsonrpc": "^8.2.1" @@ -817,9 +817,9 @@ } }, "node_modules/@openai/codex": { - "version": "0.120.0", - "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.120.0.tgz", - "integrity": "sha512-e2P1Gya3dwsRe9IPOiswVz5JfR700u+/sWCqDc3jkqv2QViPkNiBmZoGhFnZL5jBpKakSjehC4/Fpspg70nHTw==", + "version": "0.122.0", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.122.0.tgz", + "integrity": "sha512-fMQoBo/D9S2/FNHgCMEGnEtG+LIm7ot2PbtpU26pyKDjKS47o9XByNv8gH3X0aDg6A4Algq21laUkFhonkgdsw==", "license": "Apache-2.0", "bin": { "codex": "bin/codex.js" @@ -828,19 +828,19 @@ "node": ">=16" }, "optionalDependencies": { - "@openai/codex-darwin-arm64": "npm:@openai/codex@0.120.0-darwin-arm64", - "@openai/codex-darwin-x64": "npm:@openai/codex@0.120.0-darwin-x64", - "@openai/codex-linux-arm64": "npm:@openai/codex@0.120.0-linux-arm64", - "@openai/codex-linux-x64": "npm:@openai/codex@0.120.0-linux-x64", - "@openai/codex-win32-arm64": "npm:@openai/codex@0.120.0-win32-arm64", - "@openai/codex-win32-x64": "npm:@openai/codex@0.120.0-win32-x64" + "@openai/codex-darwin-arm64": "npm:@openai/codex@0.122.0-darwin-arm64", + "@openai/codex-darwin-x64": "npm:@openai/codex@0.122.0-darwin-x64", + "@openai/codex-linux-arm64": "npm:@openai/codex@0.122.0-linux-arm64", + "@openai/codex-linux-x64": "npm:@openai/codex@0.122.0-linux-x64", + "@openai/codex-win32-arm64": "npm:@openai/codex@0.122.0-win32-arm64", + "@openai/codex-win32-x64": "npm:@openai/codex@0.122.0-win32-x64" } }, "node_modules/@openai/codex-darwin-arm64": { "name": "@openai/codex", - "version": "0.120.0-darwin-arm64", - "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.120.0-darwin-arm64.tgz", - "integrity": "sha512-7CU+I5kBaMuoqfG3xisq0mUWzxoEHvfu34cB8a0KpBiIhAgu12fKpmYgZ4/DvRP6Wm9Fu6LJYKVF5apUHFp8nQ==", + "version": "0.122.0-darwin-arm64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.122.0-darwin-arm64.tgz", + "integrity": "sha512-J1rUDdVBgIwpFqwmkjgVWbbAk8oxuw/1JuIGUXJMz7wAsdvEgsVazwndIjQVN1nDtdD6zznlUtl69oPV1hhXcA==", "cpu": [ "arm64" ], @@ -855,9 +855,9 @@ }, "node_modules/@openai/codex-darwin-x64": { "name": "@openai/codex", - "version": "0.120.0-darwin-x64", - "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.120.0-darwin-x64.tgz", - "integrity": "sha512-d7joNYuwrmd5iIdp/xAE5f8bZT1r82MnmU6Hzgxq3G+xClwEyhxU737ZWnstFSpnZNfxJ5zXCuFUJh4CAkHNtQ==", + "version": "0.122.0-darwin-x64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.122.0-darwin-x64.tgz", + "integrity": "sha512-VUXZxD/c/v2Mdler7epYJc8EH80fGbAC55QBVaxqSjX6OaoGO1sHqp7Nept1p52jMRtyc3VTv2/hkV1wEy+96w==", "cpu": [ "x64" ], @@ -872,9 +872,9 @@ }, "node_modules/@openai/codex-linux-arm64": { "name": "@openai/codex", - "version": "0.120.0-linux-arm64", - "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.120.0-linux-arm64.tgz", - "integrity": "sha512-sVYY25/URlpZPtb0Q0ryLh+lcq9UTEtHAkdZKa0a/R7mAdyPuhpU9V6jWmxwiUh7s53XZOEVFoKmLfH8YIDWCQ==", + "version": "0.122.0-linux-arm64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.122.0-linux-arm64.tgz", + "integrity": "sha512-dtRm+R+BnwEZDFahIMl56tttzE3VtJLt2CuacKpn9ZDs8H9DW5lwGWdTEm94ANWWeyzigFObidQyitgdgwFHow==", "cpu": [ "arm64" ], @@ -889,9 +889,9 @@ }, "node_modules/@openai/codex-linux-x64": { "name": "@openai/codex", - "version": "0.120.0-linux-x64", - "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.120.0-linux-x64.tgz", - "integrity": "sha512-VcP9B/c/O+EFEgqoetCzvHrLfAdo8vrt09Gx1lJ8ikewctqAuJ/ozj/6wuvlz7XaaK64ib5cge01pOAeCyt2Sg==", + "version": "0.122.0-linux-x64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.122.0-linux-x64.tgz", + "integrity": "sha512-GYQBkwER9RPn7spJOwB3f/pTyk3KWKsRI8W+2Dl5H3XSxJJ5aVZeNKBGChSw6lyJWAmuZXssBu037KQx15lsGA==", "cpu": [ "x64" ], @@ -906,9 +906,9 @@ }, "node_modules/@openai/codex-win32-arm64": { "name": "@openai/codex", - "version": "0.120.0-win32-arm64", - "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.120.0-win32-arm64.tgz", - "integrity": "sha512-SAaTQU1XHa1qDnmQldmbyROIY5SiaspF+Cw3ziWeeTgyAET3rWusm4ELOElx6QiY1ugYW5ZD+7AFufS2z1xtpQ==", + "version": "0.122.0-win32-arm64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.122.0-win32-arm64.tgz", + "integrity": "sha512-7SjzC/Xzw7md2//2W03Eid2bgY5LHfKinD6VwgfwLJbYFGsd9LDIduZC/8GABWSDXOgqE2SoZDiD2KwlG63Tkw==", "cpu": [ "arm64" ], @@ -923,9 +923,9 @@ }, "node_modules/@openai/codex-win32-x64": { "name": "@openai/codex", - "version": "0.120.0-win32-x64", - "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.120.0-win32-x64.tgz", - "integrity": "sha512-zja1GNrbHyOUTvOy5FVMa+rAYIs3m+FOS8rAXftxMEhodMmkMw2O8zcvso657SHhZR0hIEiZ6T70lcyH2YX0mQ==", + "version": "0.122.0-win32-x64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.122.0-win32-x64.tgz", + "integrity": "sha512-0OR/QjqOZ7zX12s6Dh7qy/6H4WZRgFAp529EUg5C7tXj5xXdopi8A9InQfehu4KEJE3Qol2Lj/QBrOcahFXoPg==", "cpu": [ "x64" ], diff --git a/package.json b/package.json index 7bd55144..b8803db5 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ }, "dependencies": { "@agentclientprotocol/sdk": "^0.16.1", - "@openai/codex": "^0.120.0", + "@openai/codex": "^0.122.0", "diff": "^8.0.3", "open": "^11.0.0", "vscode-jsonrpc": "^8.2.1" diff --git a/src/app-server/AgentMessageItem.ts b/src/app-server/AgentMessageItem.ts index ee67a3e2..c3d02263 100644 --- a/src/app-server/AgentMessageItem.ts +++ b/src/app-server/AgentMessageItem.ts @@ -11,7 +11,7 @@ import type { MessagePhase } from "./MessagePhase"; * should use it when present, but retain legacy completion semantics when it * is `None`. */ -export type AgentMessageItem = { id: string, content: Array, +export type AgentMessageItem = { id: string, content: Array, /** * Optional phase metadata carried through from `ResponseItem::Message`. * diff --git a/src/app-server/ApplyPatchApprovalParams.ts b/src/app-server/ApplyPatchApprovalParams.ts index d04f7b75..34060772 100644 --- a/src/app-server/ApplyPatchApprovalParams.ts +++ b/src/app-server/ApplyPatchApprovalParams.ts @@ -4,16 +4,16 @@ import type { FileChange } from "./FileChange"; import type { ThreadId } from "./ThreadId"; -export type ApplyPatchApprovalParams = { conversationId: ThreadId, +export type ApplyPatchApprovalParams = { conversationId: ThreadId, /** * Use to correlate this with [codex_protocol::protocol::PatchApplyBeginEvent] * and [codex_protocol::protocol::PatchApplyEndEvent]. */ -callId: string, fileChanges: { [key in string]?: FileChange }, +callId: string, fileChanges: { [key in string]?: FileChange }, /** * Optional explanatory reason (e.g. request for extra write access). */ -reason: string | null, +reason: string | null, /** * When set, the agent is asking the user to allow writes under this root * for the remainder of the session (unclear if this is honored today). diff --git a/src/app-server/ApplyPatchApprovalRequestEvent.ts b/src/app-server/ApplyPatchApprovalRequestEvent.ts index 0c53cf50..72f89b8a 100644 --- a/src/app-server/ApplyPatchApprovalRequestEvent.ts +++ b/src/app-server/ApplyPatchApprovalRequestEvent.ts @@ -3,20 +3,20 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { FileChange } from "./FileChange"; -export type ApplyPatchApprovalRequestEvent = { +export type ApplyPatchApprovalRequestEvent = { /** * Responses API call id for the associated patch apply call, if available. */ -call_id: string, +call_id: string, /** * Turn ID that this patch belongs to. * Uses `#[serde(default)]` for backwards compatibility with older senders. */ -turn_id: string, changes: { [key in string]?: FileChange }, +turn_id: string, changes: { [key in string]?: FileChange }, /** * Optional explanatory reason (e.g. request for extra write access). */ -reason: string | null, +reason: string | null, /** * When set, the agent is asking the user to allow writes under this root for the remainder of the session. */ diff --git a/src/app-server/ByteRange.ts b/src/app-server/ByteRange.ts index ab36a79a..ba05db20 100644 --- a/src/app-server/ByteRange.ts +++ b/src/app-server/ByteRange.ts @@ -2,11 +2,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ByteRange = { +export type ByteRange = { /** * Start byte offset (inclusive) within the UTF-8 text buffer. */ -start: number, +start: number, /** * End byte offset (exclusive) within the UTF-8 text buffer. */ diff --git a/src/app-server/ClientRequest.ts b/src/app-server/ClientRequest.ts index d12599d7..c26ff916 100644 --- a/src/app-server/ClientRequest.ts +++ b/src/app-server/ClientRequest.ts @@ -33,19 +33,24 @@ import type { FsWriteFileParams } from "./v2/FsWriteFileParams"; import type { GetAccountParams } from "./v2/GetAccountParams"; import type { ListMcpServerStatusParams } from "./v2/ListMcpServerStatusParams"; import type { LoginAccountParams } from "./v2/LoginAccountParams"; +import type { MarketplaceAddParams } from "./v2/MarketplaceAddParams"; +import type { MarketplaceRemoveParams } from "./v2/MarketplaceRemoveParams"; import type { McpResourceReadParams } from "./v2/McpResourceReadParams"; import type { McpServerOauthLoginParams } from "./v2/McpServerOauthLoginParams"; +import type { McpServerToolCallParams } from "./v2/McpServerToolCallParams"; import type { ModelListParams } from "./v2/ModelListParams"; import type { PluginInstallParams } from "./v2/PluginInstallParams"; import type { PluginListParams } from "./v2/PluginListParams"; import type { PluginReadParams } from "./v2/PluginReadParams"; import type { PluginUninstallParams } from "./v2/PluginUninstallParams"; import type { ReviewStartParams } from "./v2/ReviewStartParams"; +import type { SendAddCreditsNudgeEmailParams } from "./v2/SendAddCreditsNudgeEmailParams"; import type { SkillsConfigWriteParams } from "./v2/SkillsConfigWriteParams"; import type { SkillsListParams } from "./v2/SkillsListParams"; import type { ThreadArchiveParams } from "./v2/ThreadArchiveParams"; import type { ThreadCompactStartParams } from "./v2/ThreadCompactStartParams"; import type { ThreadForkParams } from "./v2/ThreadForkParams"; +import type { ThreadInjectItemsParams } from "./v2/ThreadInjectItemsParams"; import type { ThreadListParams } from "./v2/ThreadListParams"; import type { ThreadLoadedListParams } from "./v2/ThreadLoadedListParams"; import type { ThreadMetadataUpdateParams } from "./v2/ThreadMetadataUpdateParams"; @@ -55,6 +60,7 @@ import type { ThreadRollbackParams } from "./v2/ThreadRollbackParams"; import type { ThreadSetNameParams } from "./v2/ThreadSetNameParams"; import type { ThreadShellCommandParams } from "./v2/ThreadShellCommandParams"; import type { ThreadStartParams } from "./v2/ThreadStartParams"; +import type { ThreadTurnsListParams } from "./v2/ThreadTurnsListParams"; import type { ThreadUnarchiveParams } from "./v2/ThreadUnarchiveParams"; import type { ThreadUnsubscribeParams } from "./v2/ThreadUnsubscribeParams"; import type { TurnInterruptParams } from "./v2/TurnInterruptParams"; @@ -65,4 +71,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/unsubscribe", id: RequestId, params: ThreadUnsubscribeParams, } | { "method": "thread/name/set", id: RequestId, params: ThreadSetNameParams, } | { "method": "thread/metadata/update", id: RequestId, params: ThreadMetadataUpdateParams, } | { "method": "thread/unarchive", id: RequestId, params: ThreadUnarchiveParams, } | { "method": "thread/compact/start", id: RequestId, params: ThreadCompactStartParams, } | { "method": "thread/shellCommand", id: RequestId, params: ThreadShellCommandParams, } | { "method": "thread/rollback", id: RequestId, params: ThreadRollbackParams, } | { "method": "thread/list", id: RequestId, params: ThreadListParams, } | { "method": "thread/loaded/list", id: RequestId, params: ThreadLoadedListParams, } | { "method": "thread/read", id: RequestId, params: ThreadReadParams, } | { "method": "skills/list", id: RequestId, params: SkillsListParams, } | { "method": "plugin/list", id: RequestId, params: PluginListParams, } | { "method": "plugin/read", id: RequestId, params: PluginReadParams, } | { "method": "app/list", id: RequestId, params: AppsListParams, } | { "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": "experimentalFeature/list", id: RequestId, params: ExperimentalFeatureListParams, } | { "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": "windowsSandbox/setupStart", id: RequestId, params: WindowsSandboxSetupStartParams, } | { "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: undefined, } | { "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": "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/unsubscribe", id: RequestId, params: ThreadUnsubscribeParams, } | { "method": "thread/name/set", id: RequestId, params: ThreadSetNameParams, } | { "method": "thread/metadata/update", id: RequestId, params: ThreadMetadataUpdateParams, } | { "method": "thread/unarchive", id: RequestId, params: ThreadUnarchiveParams, } | { "method": "thread/compact/start", id: RequestId, params: ThreadCompactStartParams, } | { "method": "thread/shellCommand", id: RequestId, params: ThreadShellCommandParams, } | { "method": "thread/rollback", id: RequestId, params: ThreadRollbackParams, } | { "method": "thread/list", id: RequestId, params: ThreadListParams, } | { "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/inject_items", id: RequestId, params: ThreadInjectItemsParams, } | { "method": "skills/list", id: RequestId, params: SkillsListParams, } | { "method": "marketplace/add", id: RequestId, params: MarketplaceAddParams, } | { "method": "marketplace/remove", id: RequestId, params: MarketplaceRemoveParams, } | { "method": "plugin/list", id: RequestId, params: PluginListParams, } | { "method": "plugin/read", id: RequestId, params: PluginReadParams, } | { "method": "app/list", id: RequestId, params: AppsListParams, } | { "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": "experimentalFeature/list", id: RequestId, params: ExperimentalFeatureListParams, } | { "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": "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: 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": "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/src/app-server/CollabAgentInteractionBeginEvent.ts b/src/app-server/CollabAgentInteractionBeginEvent.ts index 71097419..ebad8c89 100644 --- a/src/app-server/CollabAgentInteractionBeginEvent.ts +++ b/src/app-server/CollabAgentInteractionBeginEvent.ts @@ -3,19 +3,19 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ThreadId } from "./ThreadId"; -export type CollabAgentInteractionBeginEvent = { +export type CollabAgentInteractionBeginEvent = { /** * Identifier for the collab tool call. */ -call_id: string, +call_id: string, /** * Thread ID of the sender. */ -sender_thread_id: ThreadId, +sender_thread_id: ThreadId, /** * Thread ID of the receiver. */ -receiver_thread_id: ThreadId, +receiver_thread_id: ThreadId, /** * Prompt sent from the sender to the receiver. Can be empty to prevent CoT * leaking at the beginning. diff --git a/src/app-server/CollabAgentInteractionEndEvent.ts b/src/app-server/CollabAgentInteractionEndEvent.ts index 5458e06d..47d4f1df 100644 --- a/src/app-server/CollabAgentInteractionEndEvent.ts +++ b/src/app-server/CollabAgentInteractionEndEvent.ts @@ -4,32 +4,32 @@ import type { AgentStatus } from "./AgentStatus"; import type { ThreadId } from "./ThreadId"; -export type CollabAgentInteractionEndEvent = { +export type CollabAgentInteractionEndEvent = { /** * Identifier for the collab tool call. */ -call_id: string, +call_id: string, /** * Thread ID of the sender. */ -sender_thread_id: ThreadId, +sender_thread_id: ThreadId, /** * Thread ID of the receiver. */ -receiver_thread_id: ThreadId, +receiver_thread_id: ThreadId, /** * Optional nickname assigned to the receiver agent. */ -receiver_agent_nickname?: string | null, +receiver_agent_nickname?: string | null, /** * Optional role assigned to the receiver agent. */ -receiver_agent_role?: string | null, +receiver_agent_role?: string | null, /** * Prompt sent from the sender to the receiver. Can be empty to prevent CoT * leaking at the beginning. */ -prompt: string, +prompt: string, /** * Last known status of the receiver agent reported to the sender agent. */ diff --git a/src/app-server/CollabAgentRef.ts b/src/app-server/CollabAgentRef.ts index cae7bf88..64699ba6 100644 --- a/src/app-server/CollabAgentRef.ts +++ b/src/app-server/CollabAgentRef.ts @@ -3,15 +3,15 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ThreadId } from "./ThreadId"; -export type CollabAgentRef = { +export type CollabAgentRef = { /** * Thread ID of the receiver/new agent. */ -thread_id: ThreadId, +thread_id: ThreadId, /** * Optional nickname assigned to an AgentControl-spawned sub-agent. */ -agent_nickname?: string | null, +agent_nickname?: string | null, /** * Optional role (agent_role) assigned to an AgentControl-spawned sub-agent. */ diff --git a/src/app-server/CollabAgentSpawnBeginEvent.ts b/src/app-server/CollabAgentSpawnBeginEvent.ts index a86598e2..f76c783b 100644 --- a/src/app-server/CollabAgentSpawnBeginEvent.ts +++ b/src/app-server/CollabAgentSpawnBeginEvent.ts @@ -3,15 +3,15 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ThreadId } from "./ThreadId"; -export type CollabAgentSpawnBeginEvent = { +export type CollabAgentSpawnBeginEvent = { /** * Identifier for the collab tool call. */ -call_id: string, +call_id: string, /** * Thread ID of the sender. */ -sender_thread_id: ThreadId, +sender_thread_id: ThreadId, /** * Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the * beginning. diff --git a/src/app-server/CollabAgentSpawnEndEvent.ts b/src/app-server/CollabAgentSpawnEndEvent.ts index 34753c8e..7b72f19a 100644 --- a/src/app-server/CollabAgentSpawnEndEvent.ts +++ b/src/app-server/CollabAgentSpawnEndEvent.ts @@ -4,32 +4,32 @@ import type { AgentStatus } from "./AgentStatus"; import type { ThreadId } from "./ThreadId"; -export type CollabAgentSpawnEndEvent = { +export type CollabAgentSpawnEndEvent = { /** * Identifier for the collab tool call. */ -call_id: string, +call_id: string, /** * Thread ID of the sender. */ -sender_thread_id: ThreadId, +sender_thread_id: ThreadId, /** * Thread ID of the newly spawned agent, if it was created. */ -new_thread_id: ThreadId | null, +new_thread_id: ThreadId | null, /** * Optional nickname assigned to the new agent. */ -new_agent_nickname?: string | null, +new_agent_nickname?: string | null, /** * Optional role assigned to the new agent. */ -new_agent_role?: string | null, +new_agent_role?: string | null, /** * Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the * beginning. */ -prompt: string, +prompt: string, /** * Last known status of the new agent reported to the sender agent. */ diff --git a/src/app-server/CollabAgentStatusEntry.ts b/src/app-server/CollabAgentStatusEntry.ts index 286d1942..133674fd 100644 --- a/src/app-server/CollabAgentStatusEntry.ts +++ b/src/app-server/CollabAgentStatusEntry.ts @@ -4,19 +4,19 @@ import type { AgentStatus } from "./AgentStatus"; import type { ThreadId } from "./ThreadId"; -export type CollabAgentStatusEntry = { +export type CollabAgentStatusEntry = { /** * Thread ID of the receiver/new agent. */ -thread_id: ThreadId, +thread_id: ThreadId, /** * Optional nickname assigned to an AgentControl-spawned sub-agent. */ -agent_nickname?: string | null, +agent_nickname?: string | null, /** * Optional role (agent_role) assigned to an AgentControl-spawned sub-agent. */ -agent_role?: string | null, +agent_role?: string | null, /** * Last known status of the agent. */ diff --git a/src/app-server/CollabCloseBeginEvent.ts b/src/app-server/CollabCloseBeginEvent.ts index 355d5952..7166ceef 100644 --- a/src/app-server/CollabCloseBeginEvent.ts +++ b/src/app-server/CollabCloseBeginEvent.ts @@ -3,15 +3,15 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ThreadId } from "./ThreadId"; -export type CollabCloseBeginEvent = { +export type CollabCloseBeginEvent = { /** * Identifier for the collab tool call. */ -call_id: string, +call_id: string, /** * Thread ID of the sender. */ -sender_thread_id: ThreadId, +sender_thread_id: ThreadId, /** * Thread ID of the receiver. */ diff --git a/src/app-server/CollabCloseEndEvent.ts b/src/app-server/CollabCloseEndEvent.ts index 171886f1..fa3f369c 100644 --- a/src/app-server/CollabCloseEndEvent.ts +++ b/src/app-server/CollabCloseEndEvent.ts @@ -4,27 +4,27 @@ import type { AgentStatus } from "./AgentStatus"; import type { ThreadId } from "./ThreadId"; -export type CollabCloseEndEvent = { +export type CollabCloseEndEvent = { /** * Identifier for the collab tool call. */ -call_id: string, +call_id: string, /** * Thread ID of the sender. */ -sender_thread_id: ThreadId, +sender_thread_id: ThreadId, /** * Thread ID of the receiver. */ -receiver_thread_id: ThreadId, +receiver_thread_id: ThreadId, /** * Optional nickname assigned to the receiver agent. */ -receiver_agent_nickname?: string | null, +receiver_agent_nickname?: string | null, /** * Optional role assigned to the receiver agent. */ -receiver_agent_role?: string | null, +receiver_agent_role?: string | null, /** * Last known status of the receiver agent reported to the sender agent before * the close. diff --git a/src/app-server/CollabResumeBeginEvent.ts b/src/app-server/CollabResumeBeginEvent.ts index e6c1c3d5..f936740f 100644 --- a/src/app-server/CollabResumeBeginEvent.ts +++ b/src/app-server/CollabResumeBeginEvent.ts @@ -3,23 +3,23 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ThreadId } from "./ThreadId"; -export type CollabResumeBeginEvent = { +export type CollabResumeBeginEvent = { /** * Identifier for the collab tool call. */ -call_id: string, +call_id: string, /** * Thread ID of the sender. */ -sender_thread_id: ThreadId, +sender_thread_id: ThreadId, /** * Thread ID of the receiver. */ -receiver_thread_id: ThreadId, +receiver_thread_id: ThreadId, /** * Optional nickname assigned to the receiver agent. */ -receiver_agent_nickname?: string | null, +receiver_agent_nickname?: string | null, /** * Optional role assigned to the receiver agent. */ diff --git a/src/app-server/CollabResumeEndEvent.ts b/src/app-server/CollabResumeEndEvent.ts index caf970ec..b289e503 100644 --- a/src/app-server/CollabResumeEndEvent.ts +++ b/src/app-server/CollabResumeEndEvent.ts @@ -4,27 +4,27 @@ import type { AgentStatus } from "./AgentStatus"; import type { ThreadId } from "./ThreadId"; -export type CollabResumeEndEvent = { +export type CollabResumeEndEvent = { /** * Identifier for the collab tool call. */ -call_id: string, +call_id: string, /** * Thread ID of the sender. */ -sender_thread_id: ThreadId, +sender_thread_id: ThreadId, /** * Thread ID of the receiver. */ -receiver_thread_id: ThreadId, +receiver_thread_id: ThreadId, /** * Optional nickname assigned to the receiver agent. */ -receiver_agent_nickname?: string | null, +receiver_agent_nickname?: string | null, /** * Optional role assigned to the receiver agent. */ -receiver_agent_role?: string | null, +receiver_agent_role?: string | null, /** * Last known status of the receiver agent reported to the sender agent after * resume. diff --git a/src/app-server/CollabWaitingBeginEvent.ts b/src/app-server/CollabWaitingBeginEvent.ts index f2f07f87..9b461a78 100644 --- a/src/app-server/CollabWaitingBeginEvent.ts +++ b/src/app-server/CollabWaitingBeginEvent.ts @@ -4,19 +4,19 @@ import type { CollabAgentRef } from "./CollabAgentRef"; import type { ThreadId } from "./ThreadId"; -export type CollabWaitingBeginEvent = { +export type CollabWaitingBeginEvent = { /** * Thread ID of the sender. */ -sender_thread_id: ThreadId, +sender_thread_id: ThreadId, /** * Thread ID of the receivers. */ -receiver_thread_ids: Array, +receiver_thread_ids: Array, /** * Optional nicknames/roles for receivers. */ -receiver_agents?: Array, +receiver_agents?: Array, /** * ID of the waiting call. */ diff --git a/src/app-server/CollabWaitingEndEvent.ts b/src/app-server/CollabWaitingEndEvent.ts index 929d59c6..b2cea2de 100644 --- a/src/app-server/CollabWaitingEndEvent.ts +++ b/src/app-server/CollabWaitingEndEvent.ts @@ -5,19 +5,19 @@ import type { AgentStatus } from "./AgentStatus"; import type { CollabAgentStatusEntry } from "./CollabAgentStatusEntry"; import type { ThreadId } from "./ThreadId"; -export type CollabWaitingEndEvent = { +export type CollabWaitingEndEvent = { /** * Thread ID of the sender. */ -sender_thread_id: ThreadId, +sender_thread_id: ThreadId, /** * ID of the waiting call. */ -call_id: string, +call_id: string, /** * Optional receiver metadata paired with final statuses. */ -agent_statuses?: Array, +agent_statuses?: Array, /** * Last known status of the receiver agents reported to the sender agent. */ diff --git a/src/app-server/ContentItem.ts b/src/app-server/ContentItem.ts index c89b9d78..21cd8d02 100644 --- a/src/app-server/ContentItem.ts +++ b/src/app-server/ContentItem.ts @@ -1,5 +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 { ImageDetail } from "./ImageDetail"; -export type ContentItem = { "type": "input_text", text: string, } | { "type": "input_image", image_url: string, } | { "type": "output_text", text: string, }; +export type ContentItem = { "type": "input_text", text: string, } | { "type": "input_image", image_url: string, detail?: ImageDetail, } | { "type": "output_text", text: string, }; diff --git a/src/app-server/DeprecationNoticeEvent.ts b/src/app-server/DeprecationNoticeEvent.ts index c1a7d813..74c6ead7 100644 --- a/src/app-server/DeprecationNoticeEvent.ts +++ b/src/app-server/DeprecationNoticeEvent.ts @@ -2,11 +2,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type DeprecationNoticeEvent = { +export type DeprecationNoticeEvent = { /** * Concise summary of what is deprecated. */ -summary: string, +summary: string, /** * Optional extra guidance, such as migration steps or rationale. */ diff --git a/src/app-server/DynamicToolCallResponseEvent.ts b/src/app-server/DynamicToolCallResponseEvent.ts index 442c0ce6..67470d0e 100644 --- a/src/app-server/DynamicToolCallResponseEvent.ts +++ b/src/app-server/DynamicToolCallResponseEvent.ts @@ -4,35 +4,35 @@ import type { DynamicToolCallOutputContentItem } from "./DynamicToolCallOutputContentItem"; import type { JsonValue } from "./serde_json/JsonValue"; -export type DynamicToolCallResponseEvent = { +export type DynamicToolCallResponseEvent = { /** * Identifier for the corresponding DynamicToolCallRequest. */ -call_id: string, +call_id: string, /** * Turn ID that this dynamic tool call belongs to. */ -turn_id: string, +turn_id: string, /** * Dynamic tool name. */ -tool: string, +tool: string, /** * Dynamic tool call arguments. */ -arguments: JsonValue, +arguments: JsonValue, /** * Dynamic tool response content items. */ -content_items: Array, +content_items: Array, /** * Whether the tool call succeeded. */ -success: boolean, +success: boolean, /** * Optional error text when the tool call failed before producing a response. */ -error: string | null, +error: string | null, /** * The duration of the dynamic tool call. */ diff --git a/src/app-server/ElicitationRequestEvent.ts b/src/app-server/ElicitationRequestEvent.ts index 0603291d..8ed6459c 100644 --- a/src/app-server/ElicitationRequestEvent.ts +++ b/src/app-server/ElicitationRequestEvent.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. import type { ElicitationRequest } from "./ElicitationRequest"; -export type ElicitationRequestEvent = { +export type ElicitationRequestEvent = { /** * Turn ID that this elicitation belongs to, when known. */ diff --git a/src/app-server/ExecApprovalRequestEvent.ts b/src/app-server/ExecApprovalRequestEvent.ts index 5f305f52..0a8040f8 100644 --- a/src/app-server/ExecApprovalRequestEvent.ts +++ b/src/app-server/ExecApprovalRequestEvent.ts @@ -9,55 +9,55 @@ import type { ParsedCommand } from "./ParsedCommand"; import type { PermissionProfile } from "./PermissionProfile"; import type { ReviewDecision } from "./ReviewDecision"; -export type ExecApprovalRequestEvent = { +export type ExecApprovalRequestEvent = { /** * Identifier for the associated command execution item. */ -call_id: string, +call_id: string, /** * Identifier for this specific approval callback. * * When absent, the approval is for the command item itself (`call_id`). * This is present for subcommand approvals (via execve intercept). */ -approval_id?: string, +approval_id?: string, /** * Turn ID that this command belongs to. * Uses `#[serde(default)]` for backwards compatibility. */ -turn_id: string, +turn_id: string, /** * The command to be executed. */ -command: Array, +command: Array, /** * The command's working directory. */ -cwd: string, +cwd: string, /** * Optional human-readable reason for the approval (e.g. retry without sandbox). */ -reason: string | null, +reason: string | null, /** * Optional network context for a blocked request that can be approved. */ -network_approval_context?: NetworkApprovalContext, +network_approval_context?: NetworkApprovalContext, /** * Proposed execpolicy amendment that can be applied to allow future runs. */ -proposed_execpolicy_amendment?: ExecPolicyAmendment, +proposed_execpolicy_amendment?: ExecPolicyAmendment, /** * Proposed network policy amendments (for example allow/deny this host in future). */ -proposed_network_policy_amendments?: Array, +proposed_network_policy_amendments?: Array, /** * Optional additional filesystem permissions requested for this command. */ -additional_permissions?: PermissionProfile, +additional_permissions?: PermissionProfile, /** * Optional skill metadata when the approval was triggered by a skill script. */ -skill_metadata?: ExecApprovalRequestSkillMetadata, +skill_metadata?: ExecApprovalRequestSkillMetadata, /** * Ordered list of decisions the client may present for this prompt. * diff --git a/src/app-server/ExecCommandApprovalParams.ts b/src/app-server/ExecCommandApprovalParams.ts index f6887290..b7470c15 100644 --- a/src/app-server/ExecCommandApprovalParams.ts +++ b/src/app-server/ExecCommandApprovalParams.ts @@ -4,12 +4,12 @@ import type { ParsedCommand } from "./ParsedCommand"; import type { ThreadId } from "./ThreadId"; -export type ExecCommandApprovalParams = { conversationId: ThreadId, +export type ExecCommandApprovalParams = { conversationId: ThreadId, /** * Use to correlate this with [codex_protocol::protocol::ExecCommandBeginEvent] * and [codex_protocol::protocol::ExecCommandEndEvent]. */ -callId: string, +callId: string, /** * Identifier for this specific approval callback. */ diff --git a/src/app-server/ExecCommandBeginEvent.ts b/src/app-server/ExecCommandBeginEvent.ts index a9b4bc93..9bd64825 100644 --- a/src/app-server/ExecCommandBeginEvent.ts +++ b/src/app-server/ExecCommandBeginEvent.ts @@ -4,31 +4,31 @@ import type { ExecCommandSource } from "./ExecCommandSource"; import type { ParsedCommand } from "./ParsedCommand"; -export type ExecCommandBeginEvent = { +export type ExecCommandBeginEvent = { /** * Identifier so this can be paired with the ExecCommandEnd event. */ -call_id: string, +call_id: string, /** * Identifier for the underlying PTY process (when available). */ -process_id?: string, +process_id?: string, /** * Turn ID that this command belongs to. */ -turn_id: string, +turn_id: string, /** * The command to be executed. */ -command: Array, +command: Array, /** * The command's working directory if not the default cwd for the agent. */ -cwd: string, parsed_cmd: Array, +cwd: string, parsed_cmd: Array, /** * Where the command originated. Defaults to Agent for backward compatibility. */ -source: ExecCommandSource, +source: ExecCommandSource, /** * Raw input sent to a unified exec session (if this is an interaction event). */ diff --git a/src/app-server/ExecCommandEndEvent.ts b/src/app-server/ExecCommandEndEvent.ts index 0bfc41ea..3f153080 100644 --- a/src/app-server/ExecCommandEndEvent.ts +++ b/src/app-server/ExecCommandEndEvent.ts @@ -5,59 +5,59 @@ import type { ExecCommandSource } from "./ExecCommandSource"; import type { ExecCommandStatus } from "./ExecCommandStatus"; import type { ParsedCommand } from "./ParsedCommand"; -export type ExecCommandEndEvent = { +export type ExecCommandEndEvent = { /** * Identifier for the ExecCommandBegin that finished. */ -call_id: string, +call_id: string, /** * Identifier for the underlying PTY process (when available). */ -process_id?: string, +process_id?: string, /** * Turn ID that this command belongs to. */ -turn_id: string, +turn_id: string, /** * The command that was executed. */ -command: Array, +command: Array, /** * The command's working directory if not the default cwd for the agent. */ -cwd: string, parsed_cmd: Array, +cwd: string, parsed_cmd: Array, /** * Where the command originated. Defaults to Agent for backward compatibility. */ -source: ExecCommandSource, +source: ExecCommandSource, /** * Raw input sent to a unified exec session (if this is an interaction event). */ -interaction_input?: string, +interaction_input?: string, /** * Captured stdout */ -stdout: string, +stdout: string, /** * Captured stderr */ -stderr: string, +stderr: string, /** * Captured aggregated output */ -aggregated_output: string, +aggregated_output: string, /** * The command's exit code. */ -exit_code: number, +exit_code: number, /** * The duration of the command execution. */ -duration: string, +duration: string, /** * Formatted output from the command, as seen by the model. */ -formatted_output: string, +formatted_output: string, /** * Completion status for this command execution. */ diff --git a/src/app-server/ExecCommandOutputDeltaEvent.ts b/src/app-server/ExecCommandOutputDeltaEvent.ts index 0930bdd8..795e10b6 100644 --- a/src/app-server/ExecCommandOutputDeltaEvent.ts +++ b/src/app-server/ExecCommandOutputDeltaEvent.ts @@ -3,15 +3,15 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ExecOutputStream } from "./ExecOutputStream"; -export type ExecCommandOutputDeltaEvent = { +export type ExecCommandOutputDeltaEvent = { /** * Identifier for the ExecCommandBegin that produced this chunk. */ -call_id: string, +call_id: string, /** * Which stream produced this chunk. */ -stream: ExecOutputStream, +stream: ExecOutputStream, /** * Raw bytes from the stream (may not be valid UTF-8). */ diff --git a/src/app-server/GetHistoryEntryResponseEvent.ts b/src/app-server/GetHistoryEntryResponseEvent.ts index d46019c1..ca997abb 100644 --- a/src/app-server/GetHistoryEntryResponseEvent.ts +++ b/src/app-server/GetHistoryEntryResponseEvent.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. import type { HistoryEntry } from "./HistoryEntry"; -export type GetHistoryEntryResponseEvent = { offset: number, log_id: bigint, +export type GetHistoryEntryResponseEvent = { offset: number, log_id: bigint, /** * The entry at the requested offset, if available and parseable. */ diff --git a/src/app-server/InitializeCapabilities.ts b/src/app-server/InitializeCapabilities.ts index 125b4b1f..5d42cc48 100644 --- a/src/app-server/InitializeCapabilities.ts +++ b/src/app-server/InitializeCapabilities.ts @@ -5,11 +5,11 @@ /** * Client-declared capabilities negotiated during initialize. */ -export type InitializeCapabilities = { +export type InitializeCapabilities = { /** * Opt into receiving experimental API methods and fields. */ -experimentalApi: boolean, +experimentalApi: boolean, /** * Exact notification method names that should be suppressed for this * connection (for example `thread/started`). diff --git a/src/app-server/InitializeResponse.ts b/src/app-server/InitializeResponse.ts index c1d0a822..f1f79d17 100644 --- a/src/app-server/InitializeResponse.ts +++ b/src/app-server/InitializeResponse.ts @@ -3,16 +3,16 @@ // 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"; -export type InitializeResponse = { userAgent: string, +export type InitializeResponse = { userAgent: string, /** * Absolute path to the server's $CODEX_HOME directory. */ -codexHome: AbsolutePathBuf, +codexHome: AbsolutePathBuf, /** * Platform family for the running app-server target, for example * `"unix"` or `"windows"`. */ -platformFamily: string, +platformFamily: string, /** * Operating system for the running app-server target, for example * `"macos"`, `"linux"`, or `"windows"`. diff --git a/src/app-server/InputItem.ts b/src/app-server/InputItem.ts index 3ac72d31..4960e3c4 100644 --- a/src/app-server/InputItem.ts +++ b/src/app-server/InputItem.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. import type { TextElement } from "./TextElement"; -export type InputItem = { "type": "text", "data": { text: string, +export type InputItem = { "type": "text", "data": { text: string, /** * UI-defined spans within `text` used to render or persist special elements. */ diff --git a/src/app-server/McpInvocation.ts b/src/app-server/McpInvocation.ts index 5b7103a6..2a64feeb 100644 --- a/src/app-server/McpInvocation.ts +++ b/src/app-server/McpInvocation.ts @@ -3,15 +3,15 @@ // 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"; -export type McpInvocation = { +export type McpInvocation = { /** * Name of the MCP server as defined in the config. */ -server: string, +server: string, /** * Name of the tool as given by the MCP server. */ -tool: string, +tool: string, /** * Arguments to the tool call. */ diff --git a/src/app-server/McpListToolsResponseEvent.ts b/src/app-server/McpListToolsResponseEvent.ts index 94595943..e48c9bab 100644 --- a/src/app-server/McpListToolsResponseEvent.ts +++ b/src/app-server/McpListToolsResponseEvent.ts @@ -6,19 +6,19 @@ import type { Resource } from "./Resource"; import type { ResourceTemplate } from "./ResourceTemplate"; import type { Tool } from "./Tool"; -export type McpListToolsResponseEvent = { +export type McpListToolsResponseEvent = { /** * Fully qualified tool name -> tool definition. */ -tools: { [key in string]?: Tool }, +tools: { [key in string]?: Tool }, /** * Known resources grouped by server name. */ -resources: { [key in string]?: Array }, +resources: { [key in string]?: Array }, /** * Known resource templates grouped by server name. */ -resource_templates: { [key in string]?: Array }, +resource_templates: { [key in string]?: Array }, /** * Authentication status for each configured MCP server. */ diff --git a/src/app-server/McpStartupUpdateEvent.ts b/src/app-server/McpStartupUpdateEvent.ts index ecfe7d55..3a1d0ad6 100644 --- a/src/app-server/McpStartupUpdateEvent.ts +++ b/src/app-server/McpStartupUpdateEvent.ts @@ -3,11 +3,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { McpStartupStatus } from "./McpStartupStatus"; -export type McpStartupUpdateEvent = { +export type McpStartupUpdateEvent = { /** * Server name being started. */ -server: string, +server: string, /** * Current startup status. */ diff --git a/src/app-server/McpToolCallBeginEvent.ts b/src/app-server/McpToolCallBeginEvent.ts index feb7ca7c..8110d872 100644 --- a/src/app-server/McpToolCallBeginEvent.ts +++ b/src/app-server/McpToolCallBeginEvent.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. import type { McpInvocation } from "./McpInvocation"; -export type McpToolCallBeginEvent = { +export type McpToolCallBeginEvent = { /** * Identifier so this can be paired with the McpToolCallEnd event. */ diff --git a/src/app-server/McpToolCallEndEvent.ts b/src/app-server/McpToolCallEndEvent.ts index 0ca82b2b..6b9c2069 100644 --- a/src/app-server/McpToolCallEndEvent.ts +++ b/src/app-server/McpToolCallEndEvent.ts @@ -4,11 +4,11 @@ import type { CallToolResult } from "./CallToolResult"; import type { McpInvocation } from "./McpInvocation"; -export type McpToolCallEndEvent = { +export type McpToolCallEndEvent = { /** * Identifier for the corresponding McpToolCallBegin that finished. */ -call_id: string, invocation: McpInvocation, duration: string, +call_id: string, invocation: McpInvocation, duration: string, /** * Result of the tool call. Note this could be an error. */ diff --git a/src/app-server/ParsedCommand.ts b/src/app-server/ParsedCommand.ts index 146d7816..092476e9 100644 --- a/src/app-server/ParsedCommand.ts +++ b/src/app-server/ParsedCommand.ts @@ -2,7 +2,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ParsedCommand = { "type": "read", cmd: string, name: string, +export type ParsedCommand = { "type": "read", cmd: string, name: string, /** * (Best effort) Path to the file being read by the command. When * possible, this is an absolute path, though when relative, it should diff --git a/src/app-server/PatchApplyBeginEvent.ts b/src/app-server/PatchApplyBeginEvent.ts index 19ff0d57..73e99224 100644 --- a/src/app-server/PatchApplyBeginEvent.ts +++ b/src/app-server/PatchApplyBeginEvent.ts @@ -3,20 +3,20 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { FileChange } from "./FileChange"; -export type PatchApplyBeginEvent = { +export type PatchApplyBeginEvent = { /** * Identifier so this can be paired with the PatchApplyEnd event. */ -call_id: string, +call_id: string, /** * Turn ID that this patch belongs to. * Uses `#[serde(default)]` for backwards compatibility. */ -turn_id: string, +turn_id: string, /** * If true, there was no ApplyPatchApprovalRequest for this patch. */ -auto_approved: boolean, +auto_approved: boolean, /** * The changes to be applied. */ diff --git a/src/app-server/PatchApplyEndEvent.ts b/src/app-server/PatchApplyEndEvent.ts index 9dacb00e..af920945 100644 --- a/src/app-server/PatchApplyEndEvent.ts +++ b/src/app-server/PatchApplyEndEvent.ts @@ -4,32 +4,32 @@ import type { FileChange } from "./FileChange"; import type { PatchApplyStatus } from "./PatchApplyStatus"; -export type PatchApplyEndEvent = { +export type PatchApplyEndEvent = { /** * Identifier for the PatchApplyBegin that finished. */ -call_id: string, +call_id: string, /** * Turn ID that this patch belongs to. * Uses `#[serde(default)]` for backwards compatibility. */ -turn_id: string, +turn_id: string, /** * Captured stdout (summary printed by apply_patch). */ -stdout: string, +stdout: string, /** * Captured stderr (parser errors, IO failures, etc.). */ -stderr: string, +stderr: string, /** * Whether the patch was applied successfully. */ -success: boolean, +success: boolean, /** * The changes that were applied (mirrors PatchApplyBeginEvent::changes). */ -changes: { [key in string]?: FileChange }, +changes: { [key in string]?: FileChange }, /** * Completion status for this patch application. */ diff --git a/src/app-server/PlanType.ts b/src/app-server/PlanType.ts index ad5bcab3..44891467 100644 --- a/src/app-server/PlanType.ts +++ b/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" | "team" | "self_serve_business_usage_based" | "business" | "enterprise_cbp_usage_based" | "enterprise" | "edu" | "unknown"; +export type PlanType = "free" | "go" | "plus" | "pro" | "prolite" | "team" | "self_serve_business_usage_based" | "business" | "enterprise_cbp_usage_based" | "enterprise" | "edu" | "unknown"; diff --git a/src/app-server/RateLimitWindow.ts b/src/app-server/RateLimitWindow.ts index 4a85062b..07614def 100644 --- a/src/app-server/RateLimitWindow.ts +++ b/src/app-server/RateLimitWindow.ts @@ -2,15 +2,15 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type RateLimitWindow = { +export type RateLimitWindow = { /** * Percentage (0-100) of the window that has been consumed. */ -used_percent: number, +used_percent: number, /** * Rolling window duration, in minutes. */ -window_minutes: number | null, +window_minutes: number | null, /** * Unix timestamp (seconds since epoch) when the window resets. */ diff --git a/src/app-server/ReadOnlyAccess.ts b/src/app-server/ReadOnlyAccess.ts index c01bdd37..af10d5b8 100644 --- a/src/app-server/ReadOnlyAccess.ts +++ b/src/app-server/ReadOnlyAccess.ts @@ -7,12 +7,12 @@ import type { AbsolutePathBuf } from "./AbsolutePathBuf"; * Determines how read-only file access is granted inside a restricted * sandbox. */ -export type ReadOnlyAccess = { "type": "restricted", +export type ReadOnlyAccess = { "type": "restricted", /** * Include built-in platform read roots required for basic process * execution. */ -include_platform_defaults: boolean, +include_platform_defaults: boolean, /** * Additional absolute roots that should be readable. */ diff --git a/src/app-server/RealtimeOutputModality.ts b/src/app-server/RealtimeOutputModality.ts new file mode 100644 index 00000000..78e00e71 --- /dev/null +++ b/src/app-server/RealtimeOutputModality.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 RealtimeOutputModality = "text" | "audio"; diff --git a/src/app-server/RejectConfig.ts b/src/app-server/RejectConfig.ts index 19b26481..372a8157 100644 --- a/src/app-server/RejectConfig.ts +++ b/src/app-server/RejectConfig.ts @@ -2,19 +2,19 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type RejectConfig = { +export type RejectConfig = { /** * Reject approval prompts related to sandbox escalation. */ -sandbox_approval: boolean, +sandbox_approval: boolean, /** * Reject prompts triggered by execpolicy `prompt` rules. */ -rules: boolean, +rules: boolean, /** * Reject approval prompts related to built-in permission requests. */ -request_permissions: boolean, +request_permissions: boolean, /** * Reject MCP elicitation prompts. */ diff --git a/src/app-server/RequestPermissionsEvent.ts b/src/app-server/RequestPermissionsEvent.ts index 33a109f4..4ecf67de 100644 --- a/src/app-server/RequestPermissionsEvent.ts +++ b/src/app-server/RequestPermissionsEvent.ts @@ -3,11 +3,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { PermissionProfile } from "./PermissionProfile"; -export type RequestPermissionsEvent = { +export type RequestPermissionsEvent = { /** * Responses API call id for the associated tool call, if available. */ -call_id: string, +call_id: string, /** * Turn ID that this request belongs to. * Uses `#[serde(default)]` for backwards compatibility. diff --git a/src/app-server/RequestUserInputEvent.ts b/src/app-server/RequestUserInputEvent.ts index 8ea6453d..c385aa82 100644 --- a/src/app-server/RequestUserInputEvent.ts +++ b/src/app-server/RequestUserInputEvent.ts @@ -3,11 +3,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { RequestUserInputQuestion } from "./RequestUserInputQuestion"; -export type RequestUserInputEvent = { +export type RequestUserInputEvent = { /** * Responses API call id for the associated tool call, if available. */ -call_id: string, +call_id: string, /** * Turn ID that this request belongs to. * Uses `#[serde(default)]` for backwards compatibility. diff --git a/src/app-server/ResourceContent.ts b/src/app-server/ResourceContent.ts index 60fe239d..f5bcf2d5 100644 --- a/src/app-server/ResourceContent.ts +++ b/src/app-server/ResourceContent.ts @@ -6,11 +6,11 @@ import type { JsonValue } from "./serde_json/JsonValue"; /** * Contents returned when reading a resource from an MCP server. */ -export type ResourceContent = { +export type ResourceContent = { /** * The URI of this resource. */ -uri: string, mimeType?: string, text: string, _meta?: JsonValue, } | { +uri: string, mimeType?: string, text: string, _meta?: JsonValue, } | { /** * The URI of this resource. */ diff --git a/src/app-server/ResponseItem.ts b/src/app-server/ResponseItem.ts index e9ab2a84..04b8bdcd 100644 --- a/src/app-server/ResponseItem.ts +++ b/src/app-server/ResponseItem.ts @@ -11,7 +11,7 @@ import type { ReasoningItemContent } from "./ReasoningItemContent"; import type { ReasoningItemReasoningSummary } from "./ReasoningItemReasoningSummary"; import type { WebSearchAction } from "./WebSearchAction"; -export type ResponseItem = { "type": "message", role: string, content: Array, end_turn?: boolean, phase?: MessagePhase, } | { "type": "reasoning", summary: Array, content?: Array, encrypted_content: string | null, } | { "type": "local_shell_call", +export type ResponseItem = { "type": "message", role: string, content: Array, end_turn?: boolean, phase?: MessagePhase, } | { "type": "reasoning", summary: Array, content?: Array, encrypted_content: string | null, } | { "type": "local_shell_call", /** * Set when using the Responses API. */ diff --git a/src/app-server/ReviewDecision.ts b/src/app-server/ReviewDecision.ts index b5193785..109f7292 100644 --- a/src/app-server/ReviewDecision.ts +++ b/src/app-server/ReviewDecision.ts @@ -7,4 +7,4 @@ import type { NetworkPolicyAmendment } from "./NetworkPolicyAmendment"; /** * User's decision in response to an ExecApprovalRequest. */ -export type ReviewDecision = "approved" | { "approved_execpolicy_amendment": { proposed_execpolicy_amendment: ExecPolicyAmendment, } } | "approved_for_session" | { "network_policy_amendment": { network_policy_amendment: NetworkPolicyAmendment, } } | "denied" | "abort"; +export type ReviewDecision = "approved" | { "approved_execpolicy_amendment": { proposed_execpolicy_amendment: ExecPolicyAmendment, } } | "approved_for_session" | { "network_policy_amendment": { network_policy_amendment: NetworkPolicyAmendment, } } | "denied" | "timed_out" | "abort"; diff --git a/src/app-server/ReviewTarget.ts b/src/app-server/ReviewTarget.ts index a79f1e99..a69b68c0 100644 --- a/src/app-server/ReviewTarget.ts +++ b/src/app-server/ReviewTarget.ts @@ -2,7 +2,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ReviewTarget = { "type": "uncommittedChanges" } | { "type": "baseBranch", branch: string, } | { "type": "commit", sha: string, +export type ReviewTarget = { "type": "uncommittedChanges" } | { "type": "baseBranch", branch: string, } | { "type": "commit", sha: string, /** * Optional human-readable label (e.g., commit subject) for UIs. */ diff --git a/src/app-server/SandboxPolicy.ts b/src/app-server/SandboxPolicy.ts index 8440fd80..1f9fe0d5 100644 --- a/src/app-server/SandboxPolicy.ts +++ b/src/app-server/SandboxPolicy.ts @@ -8,40 +8,40 @@ import type { ReadOnlyAccess } from "./ReadOnlyAccess"; /** * Determines execution restrictions for model shell commands. */ -export type SandboxPolicy = { "type": "danger-full-access" } | { "type": "read-only", +export type SandboxPolicy = { "type": "danger-full-access" } | { "type": "read-only", /** * Read access granted while running under this policy. */ -access?: ReadOnlyAccess, +access?: ReadOnlyAccess, /** * When set to `true`, outbound network access is allowed. `false` by * default. */ -network_access?: boolean, } | { "type": "external-sandbox", +network_access?: boolean, } | { "type": "external-sandbox", /** * Whether the external sandbox permits outbound network traffic. */ -network_access: NetworkAccess, } | { "type": "workspace-write", +network_access: NetworkAccess, } | { "type": "workspace-write", /** * Additional folders (beyond cwd and possibly TMPDIR) that should be * writable from within the sandbox. */ -writable_roots?: Array, +writable_roots?: Array, /** * Read access granted while running under this policy. */ -read_only_access?: ReadOnlyAccess, +read_only_access?: ReadOnlyAccess, /** * When set to `true`, outbound network access is allowed. `false` by * default. */ -network_access: boolean, +network_access: boolean, /** * When set to `true`, will NOT include the per-user `TMPDIR` * environment variable among the default writable roots. Defaults to * `false`. */ -exclude_tmpdir_env_var: boolean, +exclude_tmpdir_env_var: boolean, /** * When set to `true`, will NOT include the `/tmp` among the default * writable roots on UNIX. Defaults to `false`. diff --git a/src/app-server/SendUserTurnParams.ts b/src/app-server/SendUserTurnParams.ts index dc4cfba8..e303c879 100644 --- a/src/app-server/SendUserTurnParams.ts +++ b/src/app-server/SendUserTurnParams.ts @@ -9,7 +9,7 @@ import type { SandboxPolicy } from "./SandboxPolicy"; import type { ThreadId } from "./ThreadId"; import type { JsonValue } from "./serde_json/JsonValue"; -export type SendUserTurnParams = { conversationId: ThreadId, items: Array, cwd: string, approvalPolicy: AskForApproval, sandboxPolicy: SandboxPolicy, model: string, effort: ReasoningEffort | null, summary: ReasoningSummary, +export type SendUserTurnParams = { conversationId: ThreadId, items: Array, cwd: string, approvalPolicy: AskForApproval, sandboxPolicy: SandboxPolicy, model: string, effort: ReasoningEffort | null, summary: ReasoningSummary, /** * Optional JSON Schema used to constrain the final assistant message for this turn. */ diff --git a/src/app-server/ServerNotification.ts b/src/app-server/ServerNotification.ts index a9859141..a43bb804 100644 --- a/src/app-server/ServerNotification.ts +++ b/src/app-server/ServerNotification.ts @@ -14,6 +14,7 @@ import type { ConfigWarningNotification } from "./v2/ConfigWarningNotification"; import type { ContextCompactedNotification } from "./v2/ContextCompactedNotification"; import type { DeprecationNoticeNotification } from "./v2/DeprecationNoticeNotification"; import type { ErrorNotification } from "./v2/ErrorNotification"; +import type { ExternalAgentConfigImportCompletedNotification } from "./v2/ExternalAgentConfigImportCompletedNotification"; import type { FileChangeOutputDeltaNotification } from "./v2/FileChangeOutputDeltaNotification"; import type { FsChangedNotification } from "./v2/FsChangedNotification"; import type { HookCompletedNotification } from "./v2/HookCompletedNotification"; @@ -43,7 +44,8 @@ import type { ThreadRealtimeItemAddedNotification } from "./v2/ThreadRealtimeIte import type { ThreadRealtimeOutputAudioDeltaNotification } from "./v2/ThreadRealtimeOutputAudioDeltaNotification"; import type { ThreadRealtimeSdpNotification } from "./v2/ThreadRealtimeSdpNotification"; import type { ThreadRealtimeStartedNotification } from "./v2/ThreadRealtimeStartedNotification"; -import type { ThreadRealtimeTranscriptUpdatedNotification } from "./v2/ThreadRealtimeTranscriptUpdatedNotification"; +import type { ThreadRealtimeTranscriptDeltaNotification } from "./v2/ThreadRealtimeTranscriptDeltaNotification"; +import type { ThreadRealtimeTranscriptDoneNotification } from "./v2/ThreadRealtimeTranscriptDoneNotification"; import type { ThreadStartedNotification } from "./v2/ThreadStartedNotification"; import type { ThreadStatusChangedNotification } from "./v2/ThreadStatusChangedNotification"; import type { ThreadTokenUsageUpdatedNotification } from "./v2/ThreadTokenUsageUpdatedNotification"; @@ -52,10 +54,11 @@ import type { TurnCompletedNotification } from "./v2/TurnCompletedNotification"; import type { TurnDiffUpdatedNotification } from "./v2/TurnDiffUpdatedNotification"; import type { TurnPlanUpdatedNotification } from "./v2/TurnPlanUpdatedNotification"; import type { TurnStartedNotification } from "./v2/TurnStartedNotification"; +import type { WarningNotification } from "./v2/WarningNotification"; import type { WindowsSandboxSetupCompletedNotification } from "./v2/WindowsSandboxSetupCompletedNotification"; import type { WindowsWorldWritableWarningNotification } from "./v2/WindowsWorldWritableWarningNotification"; /** * 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/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "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": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "app/list/updated", "params": AppListUpdatedNotification } | { "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": "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/transcriptUpdated", "params": ThreadRealtimeTranscriptUpdatedNotification } | { "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/archived", "params": ThreadArchivedNotification } | { "method": "thread/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "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": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "app/list/updated", "params": AppListUpdatedNotification } | { "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": "warning", "params": WarningNotification } | { "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/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/src/app-server/SessionConfiguredEvent.ts b/src/app-server/SessionConfiguredEvent.ts index b4696a0e..781ace03 100644 --- a/src/app-server/SessionConfiguredEvent.ts +++ b/src/app-server/SessionConfiguredEvent.ts @@ -9,49 +9,49 @@ import type { ServiceTier } from "./ServiceTier"; import type { SessionNetworkProxyRuntime } from "./SessionNetworkProxyRuntime"; import type { ThreadId } from "./ThreadId"; -export type SessionConfiguredEvent = { session_id: ThreadId, forked_from_id: ThreadId | null, +export type SessionConfiguredEvent = { session_id: ThreadId, forked_from_id: ThreadId | null, /** * Optional user-facing thread name (may be unset). */ -thread_name?: string, +thread_name?: string, /** * Tell the client what model is being queried. */ -model: string, model_provider_id: string, service_tier: ServiceTier | null, +model: string, model_provider_id: string, service_tier: ServiceTier | null, /** * When to escalate for approval for execution */ -approval_policy: AskForApproval, +approval_policy: AskForApproval, /** * How to sandbox commands executed in the system */ -sandbox_policy: SandboxPolicy, +sandbox_policy: SandboxPolicy, /** * Working directory that should be treated as the *root* of the * session. */ -cwd: string, +cwd: string, /** * The effort the model is putting into reasoning about the user's request. */ -reasoning_effort: ReasoningEffort | null, +reasoning_effort: ReasoningEffort | null, /** * Identifier of the history log file (inode on Unix, 0 otherwise). */ -history_log_id: bigint, +history_log_id: bigint, /** * Current number of entries in the history log. */ -history_entry_count: number, +history_entry_count: number, /** * Optional initial messages (as events) for resumed sessions. * When present, UIs can use these to seed the history. */ -initial_messages: Array | null, +initial_messages: Array | null, /** * Runtime proxy bind addresses, when the managed proxy was started for this session. */ -network_proxy?: SessionNetworkProxyRuntime, +network_proxy?: SessionNetworkProxyRuntime, /** * Path in which the rollout is stored. Can be `None` for ephemeral threads */ diff --git a/src/app-server/SkillMetadata.ts b/src/app-server/SkillMetadata.ts index 088abc40..531cf02b 100644 --- a/src/app-server/SkillMetadata.ts +++ b/src/app-server/SkillMetadata.ts @@ -5,7 +5,7 @@ import type { SkillDependencies } from "./SkillDependencies"; import type { SkillInterface } from "./SkillInterface"; import type { SkillScope } from "./SkillScope"; -export type SkillMetadata = { name: string, description: string, +export type SkillMetadata = { name: string, description: string, /** * Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description. */ diff --git a/src/app-server/StreamErrorEvent.ts b/src/app-server/StreamErrorEvent.ts index b88993a3..0b08fa7e 100644 --- a/src/app-server/StreamErrorEvent.ts +++ b/src/app-server/StreamErrorEvent.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. import type { CodexErrorInfo } from "./CodexErrorInfo"; -export type StreamErrorEvent = { message: string, codex_error_info: CodexErrorInfo | null, +export type StreamErrorEvent = { message: string, codex_error_info: CodexErrorInfo | null, /** * Optional details about the underlying stream failure (often the same * human-readable message that is surfaced as the terminal error if retries diff --git a/src/app-server/TerminalInteractionEvent.ts b/src/app-server/TerminalInteractionEvent.ts index 5f300e6c..e05de284 100644 --- a/src/app-server/TerminalInteractionEvent.ts +++ b/src/app-server/TerminalInteractionEvent.ts @@ -2,15 +2,15 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type TerminalInteractionEvent = { +export type TerminalInteractionEvent = { /** * Identifier for the ExecCommandBegin that produced this chunk. */ -call_id: string, +call_id: string, /** * Process id associated with the running command. */ -process_id: string, +process_id: string, /** * Stdin sent to the running session. */ diff --git a/src/app-server/TextElement.ts b/src/app-server/TextElement.ts index 3dcd369d..6c23a11e 100644 --- a/src/app-server/TextElement.ts +++ b/src/app-server/TextElement.ts @@ -3,11 +3,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ByteRange } from "./ByteRange"; -export type TextElement = { +export type TextElement = { /** * Byte range in the parent `text` buffer that this element occupies. */ -byte_range: ByteRange, +byte_range: ByteRange, /** * Optional human-readable placeholder for the element, displayed in the UI. */ diff --git a/src/app-server/ThreadMemoryMode.ts b/src/app-server/ThreadMemoryMode.ts new file mode 100644 index 00000000..74a7e759 --- /dev/null +++ b/src/app-server/ThreadMemoryMode.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 ThreadMemoryMode = "enabled" | "disabled"; diff --git a/src/app-server/ThreadRolledBackEvent.ts b/src/app-server/ThreadRolledBackEvent.ts index 30bc64c9..fae4100e 100644 --- a/src/app-server/ThreadRolledBackEvent.ts +++ b/src/app-server/ThreadRolledBackEvent.ts @@ -2,7 +2,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ThreadRolledBackEvent = { +export type ThreadRolledBackEvent = { /** * Number of user turns that were removed from context. */ diff --git a/src/app-server/UpdatePlanArgs.ts b/src/app-server/UpdatePlanArgs.ts index 61613fcb..64952226 100644 --- a/src/app-server/UpdatePlanArgs.ts +++ b/src/app-server/UpdatePlanArgs.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. import type { PlanItemArg } from "./PlanItemArg"; -export type UpdatePlanArgs = { +export type UpdatePlanArgs = { /** * Arguments for the `update_plan` todo/checklist tool (not plan mode). */ diff --git a/src/app-server/UserInput.ts b/src/app-server/UserInput.ts index e6a9c3a5..77dab3a3 100644 --- a/src/app-server/UserInput.ts +++ b/src/app-server/UserInput.ts @@ -6,7 +6,7 @@ import type { TextElement } from "./TextElement"; /** * User input */ -export type UserInput = { "type": "text", text: string, +export type UserInput = { "type": "text", text: string, /** * UI-defined spans within `text` that should be treated as special elements. * These are byte ranges into the UTF-8 `text` buffer and are used to render diff --git a/src/app-server/UserMessageEvent.ts b/src/app-server/UserMessageEvent.ts index 2fde364d..e7984540 100644 --- a/src/app-server/UserMessageEvent.ts +++ b/src/app-server/UserMessageEvent.ts @@ -3,19 +3,19 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { TextElement } from "./TextElement"; -export type UserMessageEvent = { message: string, +export type UserMessageEvent = { message: string, /** * Image URLs sourced from `UserInput::Image`. These are safe * to replay in legacy UI history events and correspond to images sent to * the model. */ -images: Array | null, +images: Array | null, /** * Local file paths sourced from `UserInput::LocalImage`. These are kept so * the UI can reattach images when editing history, and should not be sent * to the model or treated as API-ready URLs. */ -local_images: Array, +local_images: Array, /** * UI-defined spans within `message` used to render or persist special elements. */ diff --git a/src/app-server/ViewImageToolCallEvent.ts b/src/app-server/ViewImageToolCallEvent.ts index 76541a77..d9842c10 100644 --- a/src/app-server/ViewImageToolCallEvent.ts +++ b/src/app-server/ViewImageToolCallEvent.ts @@ -2,11 +2,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ViewImageToolCallEvent = { +export type ViewImageToolCallEvent = { /** * Identifier for the originating tool call. */ -call_id: string, +call_id: string, /** * Local filesystem path provided to the tool. */ diff --git a/src/app-server/index.ts b/src/app-server/index.ts index 62fd2d32..6bf5eb43 100644 --- a/src/app-server/index.ts +++ b/src/app-server/index.ts @@ -194,6 +194,7 @@ export type { RealtimeConversationVersion } from "./RealtimeConversationVersion" export type { RealtimeEvent } from "./RealtimeEvent"; export type { RealtimeHandoffMessage } from "./RealtimeHandoffMessage"; export type { RealtimeHandoffRequested } from "./RealtimeHandoffRequested"; +export type { RealtimeOutputModality } from "./RealtimeOutputModality"; export type { RealtimeTranscriptDelta } from "./RealtimeTranscriptDelta"; export type { RealtimeTranscriptEntry } from "./RealtimeTranscriptEntry"; export type { RealtimeVoice } from "./RealtimeVoice"; @@ -267,6 +268,7 @@ export type { TextContent } from "./TextContent"; export type { TextElement } from "./TextElement"; export type { TextResourceContents } from "./TextResourceContents"; export type { ThreadId } from "./ThreadId"; +export type { ThreadMemoryMode } from "./ThreadMemoryMode"; export type { ThreadNameUpdatedEvent } from "./ThreadNameUpdatedEvent"; export type { ThreadRolledBackEvent } from "./ThreadRolledBackEvent"; export type { TokenCountEvent } from "./TokenCountEvent"; diff --git a/src/app-server/v2/AddCreditsNudgeCreditType.ts b/src/app-server/v2/AddCreditsNudgeCreditType.ts new file mode 100644 index 00000000..70498d6a --- /dev/null +++ b/src/app-server/v2/AddCreditsNudgeCreditType.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 AddCreditsNudgeCreditType = "credits" | "usage_limit"; diff --git a/src/app-server/v2/AddCreditsNudgeEmailStatus.ts b/src/app-server/v2/AddCreditsNudgeEmailStatus.ts new file mode 100644 index 00000000..2b62da68 --- /dev/null +++ b/src/app-server/v2/AddCreditsNudgeEmailStatus.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 AddCreditsNudgeEmailStatus = "sent" | "cooldown_active"; diff --git a/src/app-server/v2/AppInfo.ts b/src/app-server/v2/AppInfo.ts index 56552137..ef1f54aa 100644 --- a/src/app-server/v2/AppInfo.ts +++ b/src/app-server/v2/AppInfo.ts @@ -7,7 +7,7 @@ import type { AppMetadata } from "./AppMetadata"; /** * EXPERIMENTAL - app metadata returned by app-list APIs. */ -export type AppInfo = { id: string, name: string, description: string | null, logoUrl: string | null, logoUrlDark: string | null, distributionChannel: string | null, branding: AppBranding | null, appMetadata: AppMetadata | null, labels: { [key in string]?: string } | null, installUrl: string | null, isAccessible: boolean, +export type AppInfo = { id: string, name: string, description: string | null, logoUrl: string | null, logoUrlDark: string | null, distributionChannel: string | null, branding: AppBranding | null, appMetadata: AppMetadata | null, labels: { [key in string]?: string } | null, installUrl: string | null, isAccessible: boolean, /** * Whether this app is enabled in config.toml. * Example: diff --git a/src/app-server/v2/AppsListParams.ts b/src/app-server/v2/AppsListParams.ts index 7687144c..b9682956 100644 --- a/src/app-server/v2/AppsListParams.ts +++ b/src/app-server/v2/AppsListParams.ts @@ -5,19 +5,19 @@ /** * EXPERIMENTAL - list available apps/connectors. */ -export type AppsListParams = { +export type AppsListParams = { /** * Opaque pagination cursor returned by a previous call. */ -cursor?: string | null, +cursor?: string | null, /** * Optional page size; defaults to a reasonable server-side value. */ -limit?: number | null, +limit?: number | null, /** * Optional thread id used to evaluate app feature gating from that thread's config. */ -threadId?: string | null, +threadId?: string | null, /** * When true, bypass app caches and fetch the latest data from sources. */ diff --git a/src/app-server/v2/AppsListResponse.ts b/src/app-server/v2/AppsListResponse.ts index cb1e45f2..dabeded1 100644 --- a/src/app-server/v2/AppsListResponse.ts +++ b/src/app-server/v2/AppsListResponse.ts @@ -6,7 +6,7 @@ import type { AppInfo } from "./AppInfo"; /** * EXPERIMENTAL - app list response. */ -export type AppsListResponse = { data: Array, +export type AppsListResponse = { 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. diff --git a/src/app-server/v2/AutoReviewDecisionSource.ts b/src/app-server/v2/AutoReviewDecisionSource.ts index aa776c8c..88069812 100644 --- a/src/app-server/v2/AutoReviewDecisionSource.ts +++ b/src/app-server/v2/AutoReviewDecisionSource.ts @@ -3,6 +3,6 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. /** - * [UNSTABLE] Source that produced a terminal guardian approval review decision. + * [UNSTABLE] Source that produced a terminal approval auto-review decision. */ export type AutoReviewDecisionSource = "agent"; diff --git a/src/app-server/v2/ChatgptAuthTokensRefreshParams.ts b/src/app-server/v2/ChatgptAuthTokensRefreshParams.ts index 7358d803..d59cc30d 100644 --- a/src/app-server/v2/ChatgptAuthTokensRefreshParams.ts +++ b/src/app-server/v2/ChatgptAuthTokensRefreshParams.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. import type { ChatgptAuthTokensRefreshReason } from "./ChatgptAuthTokensRefreshReason"; -export type ChatgptAuthTokensRefreshParams = { reason: ChatgptAuthTokensRefreshReason, +export type ChatgptAuthTokensRefreshParams = { reason: ChatgptAuthTokensRefreshReason, /** * Workspace/account identifier that Codex was previously using. * diff --git a/src/app-server/v2/CommandAction.ts b/src/app-server/v2/CommandAction.ts index ac1314c8..a17fb06a 100644 --- a/src/app-server/v2/CommandAction.ts +++ b/src/app-server/v2/CommandAction.ts @@ -1,5 +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 { AbsolutePathBuf } from "../AbsolutePathBuf"; -export type CommandAction = { "type": "read", command: string, name: string, path: string, } | { "type": "listFiles", command: string, path: string | null, } | { "type": "search", command: string, query: string | null, path: string | null, } | { "type": "unknown", command: string, }; +export type CommandAction = { "type": "read", command: string, name: string, path: AbsolutePathBuf, } | { "type": "listFiles", command: string, path: string | null, } | { "type": "search", command: string, query: string | null, path: string | null, } | { "type": "unknown", command: string, }; diff --git a/src/app-server/v2/CommandExecOutputDeltaNotification.ts b/src/app-server/v2/CommandExecOutputDeltaNotification.ts index 9a4b7280..a6c2ea45 100644 --- a/src/app-server/v2/CommandExecOutputDeltaNotification.ts +++ b/src/app-server/v2/CommandExecOutputDeltaNotification.ts @@ -9,20 +9,20 @@ import type { CommandExecOutputStream } from "./CommandExecOutputStream"; * These notifications are connection-scoped. If the originating connection * closes, the server terminates the process. */ -export type CommandExecOutputDeltaNotification = { +export type CommandExecOutputDeltaNotification = { /** * Client-supplied, connection-scoped `processId` from the original * `command/exec` request. */ -processId: string, +processId: string, /** * Output stream for this chunk. */ -stream: CommandExecOutputStream, +stream: CommandExecOutputStream, /** * Base64-encoded output bytes. */ -deltaBase64: string, +deltaBase64: string, /** * `true` on the final streamed chunk for a stream when `outputBytesCap` * truncated later output on that stream. diff --git a/src/app-server/v2/CommandExecParams.ts b/src/app-server/v2/CommandExecParams.ts index 2e132f78..097cfdfe 100644 --- a/src/app-server/v2/CommandExecParams.ts +++ b/src/app-server/v2/CommandExecParams.ts @@ -12,11 +12,11 @@ import type { SandboxPolicy } from "./SandboxPolicy"; * sent only after all `command/exec/outputDelta` notifications for that * connection have been emitted. */ -export type CommandExecParams = { +export type CommandExecParams = { /** * Command argv vector. Empty arrays are rejected. */ -command: Array, +command: Array, /** * Optional client-supplied, connection-scoped process id. * @@ -25,56 +25,56 @@ command: Array, * `command/exec/terminate` calls. When omitted, buffered execution gets an * internal id that is not exposed to the client. */ -processId?: string | null, +processId?: string | null, /** * Enable PTY mode. * * This implies `streamStdin` and `streamStdoutStderr`. */ -tty?: boolean, +tty?: boolean, /** * Allow follow-up `command/exec/write` requests to write stdin bytes. * * Requires a client-supplied `processId`. */ -streamStdin?: boolean, +streamStdin?: boolean, /** * Stream stdout/stderr via `command/exec/outputDelta` notifications. * * Streamed bytes are not duplicated into the final response and require a * client-supplied `processId`. */ -streamStdoutStderr?: boolean, +streamStdoutStderr?: boolean, /** * Optional per-stream stdout/stderr capture cap in bytes. * * When omitted, the server default applies. Cannot be combined with * `disableOutputCap`. */ -outputBytesCap?: number | null, +outputBytesCap?: number | null, /** * Disable stdout/stderr capture truncation for this request. * * Cannot be combined with `outputBytesCap`. */ -disableOutputCap?: boolean, +disableOutputCap?: boolean, /** * Disable the timeout entirely for this request. * * Cannot be combined with `timeoutMs`. */ -disableTimeout?: boolean, +disableTimeout?: boolean, /** * Optional timeout in milliseconds. * * When omitted, the server default applies. Cannot be combined with * `disableTimeout`. */ -timeoutMs?: number | null, +timeoutMs?: number | null, /** * Optional working directory. Defaults to the server cwd. */ -cwd?: string | null, +cwd?: string | null, /** * Optional environment overrides merged into the server-computed * environment. @@ -82,12 +82,12 @@ cwd?: string | null, * Matching names override inherited values. Set a key to `null` to unset * an inherited variable. */ -env?: { [key in string]?: string | null } | null, +env?: { [key in string]?: string | null } | null, /** * Optional initial PTY size in character cells. Only valid when `tty` is * true. */ -size?: CommandExecTerminalSize | null, +size?: CommandExecTerminalSize | null, /** * Optional sandbox policy for this command. * diff --git a/src/app-server/v2/CommandExecResizeParams.ts b/src/app-server/v2/CommandExecResizeParams.ts index dde1417c..40a05dc7 100644 --- a/src/app-server/v2/CommandExecResizeParams.ts +++ b/src/app-server/v2/CommandExecResizeParams.ts @@ -6,12 +6,12 @@ import type { CommandExecTerminalSize } from "./CommandExecTerminalSize"; /** * Resize a running PTY-backed `command/exec` session. */ -export type CommandExecResizeParams = { +export type CommandExecResizeParams = { /** * Client-supplied, connection-scoped `processId` from the original * `command/exec` request. */ -processId: string, +processId: string, /** * New PTY size in character cells. */ diff --git a/src/app-server/v2/CommandExecResponse.ts b/src/app-server/v2/CommandExecResponse.ts index c13efeff..25e01eb5 100644 --- a/src/app-server/v2/CommandExecResponse.ts +++ b/src/app-server/v2/CommandExecResponse.ts @@ -5,17 +5,17 @@ /** * Final buffered result for `command/exec`. */ -export type CommandExecResponse = { +export type CommandExecResponse = { /** * Process exit code. */ -exitCode: number, +exitCode: number, /** * Buffered stdout capture. * * Empty when stdout was streamed via `command/exec/outputDelta`. */ -stdout: string, +stdout: string, /** * Buffered stderr capture. * diff --git a/src/app-server/v2/CommandExecTerminalSize.ts b/src/app-server/v2/CommandExecTerminalSize.ts index 5181b154..0bfacb62 100644 --- a/src/app-server/v2/CommandExecTerminalSize.ts +++ b/src/app-server/v2/CommandExecTerminalSize.ts @@ -5,11 +5,11 @@ /** * PTY size in character cells for `command/exec` PTY sessions. */ -export type CommandExecTerminalSize = { +export type CommandExecTerminalSize = { /** * Terminal height in character cells. */ -rows: number, +rows: number, /** * Terminal width in character cells. */ diff --git a/src/app-server/v2/CommandExecTerminateParams.ts b/src/app-server/v2/CommandExecTerminateParams.ts index 8012d29e..cae97057 100644 --- a/src/app-server/v2/CommandExecTerminateParams.ts +++ b/src/app-server/v2/CommandExecTerminateParams.ts @@ -5,7 +5,7 @@ /** * Terminate a running `command/exec` session. */ -export type CommandExecTerminateParams = { +export type CommandExecTerminateParams = { /** * Client-supplied, connection-scoped `processId` from the original * `command/exec` request. diff --git a/src/app-server/v2/CommandExecWriteParams.ts b/src/app-server/v2/CommandExecWriteParams.ts index b4df50f1..2092c793 100644 --- a/src/app-server/v2/CommandExecWriteParams.ts +++ b/src/app-server/v2/CommandExecWriteParams.ts @@ -6,16 +6,16 @@ * Write stdin bytes to a running `command/exec` session, close stdin, or * both. */ -export type CommandExecWriteParams = { +export type CommandExecWriteParams = { /** * Client-supplied, connection-scoped `processId` from the original * `command/exec` request. */ -processId: string, +processId: string, /** * Optional base64-encoded stdin bytes to write. */ -deltaBase64?: string | null, +deltaBase64?: string | null, /** * Close stdin after writing `deltaBase64`, if present. */ diff --git a/src/app-server/v2/CommandExecutionRequestAcceptSettings.ts b/src/app-server/v2/CommandExecutionRequestAcceptSettings.ts index 5c5aba48..46373cc7 100644 --- a/src/app-server/v2/CommandExecutionRequestAcceptSettings.ts +++ b/src/app-server/v2/CommandExecutionRequestAcceptSettings.ts @@ -2,7 +2,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type CommandExecutionRequestAcceptSettings = { +export type CommandExecutionRequestAcceptSettings = { /** * If true, automatically approve this command for the duration of the session. */ diff --git a/src/app-server/v2/CommandExecutionRequestApprovalParams.ts b/src/app-server/v2/CommandExecutionRequestApprovalParams.ts index 8fb6375e..59da1de9 100644 --- a/src/app-server/v2/CommandExecutionRequestApprovalParams.ts +++ b/src/app-server/v2/CommandExecutionRequestApprovalParams.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 { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { AdditionalPermissionProfile } from "./AdditionalPermissionProfile"; import type { CommandAction } from "./CommandAction"; import type { CommandExecutionApprovalDecision } from "./CommandExecutionApprovalDecision"; @@ -8,7 +9,7 @@ import type { ExecPolicyAmendment } from "./ExecPolicyAmendment"; import type { NetworkApprovalContext } from "./NetworkApprovalContext"; import type { NetworkPolicyAmendment } from "./NetworkPolicyAmendment"; -export type CommandExecutionRequestApprovalParams = { threadId: string, turnId: string, itemId: string, +export type CommandExecutionRequestApprovalParams = { threadId: string, turnId: string, itemId: string, /** * Unique identifier for this specific approval callback. * @@ -18,39 +19,39 @@ export type CommandExecutionRequestApprovalParams = { threadId: string, turnId: * one parent `itemId`, so `approvalId` is a distinct opaque callback id * (a UUID) used to disambiguate routing. */ -approvalId?: string | null, +approvalId?: string | null, /** * Optional explanatory reason (e.g. request for network access). */ -reason?: string | null, +reason?: string | null, /** * Optional context for a managed-network approval prompt. */ -networkApprovalContext?: NetworkApprovalContext | null, +networkApprovalContext?: NetworkApprovalContext | null, /** * The command to be executed. */ -command?: string | null, +command?: string | null, /** * The command's working directory. */ -cwd?: string | null, +cwd?: AbsolutePathBuf | null, /** * Best-effort parsed command actions for friendly display. */ -commandActions?: Array | null, +commandActions?: Array | null, /** * Optional additional permissions requested for this command. */ -additionalPermissions?: AdditionalPermissionProfile | null, +additionalPermissions?: AdditionalPermissionProfile | null, /** * Optional proposed execpolicy amendment to allow similar commands without prompting. */ -proposedExecpolicyAmendment?: ExecPolicyAmendment | null, +proposedExecpolicyAmendment?: ExecPolicyAmendment | null, /** * Optional proposed network policy amendments (allow/deny host) for future requests. */ -proposedNetworkPolicyAmendments?: Array | null, +proposedNetworkPolicyAmendments?: Array | null, /** * Ordered list of decisions the client may present for this prompt. */ diff --git a/src/app-server/v2/ConfigBatchWriteParams.ts b/src/app-server/v2/ConfigBatchWriteParams.ts index 6103039e..352eac28 100644 --- a/src/app-server/v2/ConfigBatchWriteParams.ts +++ b/src/app-server/v2/ConfigBatchWriteParams.ts @@ -3,11 +3,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ConfigEdit } from "./ConfigEdit"; -export type ConfigBatchWriteParams = { edits: Array, +export type ConfigBatchWriteParams = { edits: Array, /** * Path to the config file to write; defaults to the user's `config.toml` when omitted. */ -filePath?: string | null, expectedVersion?: string | null, +filePath?: string | null, expectedVersion?: string | null, /** * When true, hot-reload the updated user config into all loaded threads after writing. */ diff --git a/src/app-server/v2/ConfigLayerSource.ts b/src/app-server/v2/ConfigLayerSource.ts index b20c373b..1fe19b67 100644 --- a/src/app-server/v2/ConfigLayerSource.ts +++ b/src/app-server/v2/ConfigLayerSource.ts @@ -3,12 +3,12 @@ // 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"; -export type ConfigLayerSource = { "type": "mdm", domain: string, key: string, } | { "type": "system", +export type ConfigLayerSource = { "type": "mdm", domain: string, key: string, } | { "type": "system", /** * This is the path to the system config.toml file, though it is not * guaranteed to exist. */ -file: AbsolutePathBuf, } | { "type": "user", +file: AbsolutePathBuf, } | { "type": "user", /** * This is the path to the user's config.toml file, though it is not * guaranteed to exist. diff --git a/src/app-server/v2/ConfigReadParams.ts b/src/app-server/v2/ConfigReadParams.ts index c5d5bc87..1fd418d1 100644 --- a/src/app-server/v2/ConfigReadParams.ts +++ b/src/app-server/v2/ConfigReadParams.ts @@ -2,7 +2,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ConfigReadParams = { includeLayers: boolean, +export type ConfigReadParams = { includeLayers: boolean, /** * Optional working directory to resolve project config layers. If specified, * return the effective config as seen from that directory (i.e., including any diff --git a/src/app-server/v2/ConfigRequirementsReadResponse.ts b/src/app-server/v2/ConfigRequirementsReadResponse.ts index c2891d93..f2de11d9 100644 --- a/src/app-server/v2/ConfigRequirementsReadResponse.ts +++ b/src/app-server/v2/ConfigRequirementsReadResponse.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. import type { ConfigRequirements } from "./ConfigRequirements"; -export type ConfigRequirementsReadResponse = { +export type ConfigRequirementsReadResponse = { /** * Null if no requirements are configured (e.g. no requirements.toml/MDM entries). */ diff --git a/src/app-server/v2/ConfigValueWriteParams.ts b/src/app-server/v2/ConfigValueWriteParams.ts index 9204760f..709173d7 100644 --- a/src/app-server/v2/ConfigValueWriteParams.ts +++ b/src/app-server/v2/ConfigValueWriteParams.ts @@ -4,7 +4,7 @@ import type { JsonValue } from "../serde_json/JsonValue"; import type { MergeStrategy } from "./MergeStrategy"; -export type ConfigValueWriteParams = { keyPath: string, value: JsonValue, mergeStrategy: MergeStrategy, +export type ConfigValueWriteParams = { keyPath: string, value: JsonValue, mergeStrategy: MergeStrategy, /** * Path to the config file to write; defaults to the user's `config.toml` when omitted. */ diff --git a/src/app-server/v2/ConfigWarningNotification.ts b/src/app-server/v2/ConfigWarningNotification.ts index fae64c7a..e0cdf392 100644 --- a/src/app-server/v2/ConfigWarningNotification.ts +++ b/src/app-server/v2/ConfigWarningNotification.ts @@ -3,19 +3,19 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { TextRange } from "./TextRange"; -export type ConfigWarningNotification = { +export type ConfigWarningNotification = { /** * Concise summary of the warning. */ -summary: string, +summary: string, /** * Optional extra guidance or error details. */ -details: string | null, +details: string | null, /** * Optional path to the config file that triggered the warning. */ -path?: string, +path?: string, /** * Optional range for the error location inside the config file. */ diff --git a/src/app-server/v2/ConfigWriteResponse.ts b/src/app-server/v2/ConfigWriteResponse.ts index 536a680b..55cdce37 100644 --- a/src/app-server/v2/ConfigWriteResponse.ts +++ b/src/app-server/v2/ConfigWriteResponse.ts @@ -5,7 +5,7 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { OverriddenMetadata } from "./OverriddenMetadata"; import type { WriteStatus } from "./WriteStatus"; -export type ConfigWriteResponse = { status: WriteStatus, version: string, +export type ConfigWriteResponse = { status: WriteStatus, version: string, /** * Canonical path to the config file that was written. */ diff --git a/src/app-server/v2/DeprecationNoticeNotification.ts b/src/app-server/v2/DeprecationNoticeNotification.ts index e0d2e7d6..29b61171 100644 --- a/src/app-server/v2/DeprecationNoticeNotification.ts +++ b/src/app-server/v2/DeprecationNoticeNotification.ts @@ -2,11 +2,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type DeprecationNoticeNotification = { +export type DeprecationNoticeNotification = { /** * Concise summary of what is deprecated. */ -summary: string, +summary: string, /** * Optional extra guidance, such as migration steps or rationale. */ diff --git a/src/app-server/v2/ExperimentalFeature.ts b/src/app-server/v2/ExperimentalFeature.ts index e17ef831..2baf7100 100644 --- a/src/app-server/v2/ExperimentalFeature.ts +++ b/src/app-server/v2/ExperimentalFeature.ts @@ -3,34 +3,34 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ExperimentalFeatureStage } from "./ExperimentalFeatureStage"; -export type ExperimentalFeature = { +export type ExperimentalFeature = { /** * Stable key used in config.toml and CLI flag toggles. */ -name: string, +name: string, /** * Lifecycle stage of this feature flag. */ -stage: ExperimentalFeatureStage, +stage: ExperimentalFeatureStage, /** * User-facing display name shown in the experimental features UI. * Null when this feature is not in beta. */ -displayName: string | null, +displayName: string | null, /** * Short summary describing what the feature does. * Null when this feature is not in beta. */ -description: string | null, +description: string | null, /** * Announcement copy shown to users when the feature is introduced. * Null when this feature is not in beta. */ -announcement: string | null, +announcement: string | null, /** * Whether this feature is currently enabled in the loaded config. */ -enabled: boolean, +enabled: boolean, /** * Whether this feature is enabled by default. */ diff --git a/src/app-server/v2/ExperimentalFeatureEnablementSetParams.ts b/src/app-server/v2/ExperimentalFeatureEnablementSetParams.ts index cd9ced0b..d96955bf 100644 --- a/src/app-server/v2/ExperimentalFeatureEnablementSetParams.ts +++ b/src/app-server/v2/ExperimentalFeatureEnablementSetParams.ts @@ -2,7 +2,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ExperimentalFeatureEnablementSetParams = { +export type ExperimentalFeatureEnablementSetParams = { /** * Process-wide runtime feature enablement keyed by canonical feature name. * diff --git a/src/app-server/v2/ExperimentalFeatureEnablementSetResponse.ts b/src/app-server/v2/ExperimentalFeatureEnablementSetResponse.ts index 903576d9..d0a8975b 100644 --- a/src/app-server/v2/ExperimentalFeatureEnablementSetResponse.ts +++ b/src/app-server/v2/ExperimentalFeatureEnablementSetResponse.ts @@ -2,7 +2,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ExperimentalFeatureEnablementSetResponse = { +export type ExperimentalFeatureEnablementSetResponse = { /** * Feature enablement entries updated by this request. */ diff --git a/src/app-server/v2/ExperimentalFeatureListParams.ts b/src/app-server/v2/ExperimentalFeatureListParams.ts index 1d4dc84e..0a1555d9 100644 --- a/src/app-server/v2/ExperimentalFeatureListParams.ts +++ b/src/app-server/v2/ExperimentalFeatureListParams.ts @@ -2,11 +2,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ExperimentalFeatureListParams = { +export type ExperimentalFeatureListParams = { /** * Opaque pagination cursor returned by a previous call. */ -cursor?: string | null, +cursor?: string | null, /** * Optional page size; defaults to a reasonable server-side value. */ diff --git a/src/app-server/v2/ExperimentalFeatureListResponse.ts b/src/app-server/v2/ExperimentalFeatureListResponse.ts index 46b39ba0..4d055fa8 100644 --- a/src/app-server/v2/ExperimentalFeatureListResponse.ts +++ b/src/app-server/v2/ExperimentalFeatureListResponse.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. import type { ExperimentalFeature } from "./ExperimentalFeature"; -export type ExperimentalFeatureListResponse = { data: Array, +export type ExperimentalFeatureListResponse = { 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. diff --git a/src/app-server/v2/ExternalAgentConfigDetectParams.ts b/src/app-server/v2/ExternalAgentConfigDetectParams.ts index 2a79b810..163d9619 100644 --- a/src/app-server/v2/ExternalAgentConfigDetectParams.ts +++ b/src/app-server/v2/ExternalAgentConfigDetectParams.ts @@ -2,11 +2,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ExternalAgentConfigDetectParams = { +export type ExternalAgentConfigDetectParams = { /** * If true, include detection under the user's home (~/.claude, ~/.codex, etc.). */ -includeHome?: boolean, +includeHome?: boolean, /** * Zero or more working directories to include for repo-scoped detection. */ diff --git a/src/app-server/v2/ExternalAgentConfigImportCompletedNotification.ts b/src/app-server/v2/ExternalAgentConfigImportCompletedNotification.ts new file mode 100644 index 00000000..edb8f191 --- /dev/null +++ b/src/app-server/v2/ExternalAgentConfigImportCompletedNotification.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 ExternalAgentConfigImportCompletedNotification = Record; diff --git a/src/app-server/v2/ExternalAgentConfigMigrationItem.ts b/src/app-server/v2/ExternalAgentConfigMigrationItem.ts index 442143c8..c9921ccb 100644 --- a/src/app-server/v2/ExternalAgentConfigMigrationItem.ts +++ b/src/app-server/v2/ExternalAgentConfigMigrationItem.ts @@ -2,9 +2,10 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ExternalAgentConfigMigrationItemType } from "./ExternalAgentConfigMigrationItemType"; +import type { MigrationDetails } from "./MigrationDetails"; -export type ExternalAgentConfigMigrationItem = { itemType: ExternalAgentConfigMigrationItemType, description: string, +export type ExternalAgentConfigMigrationItem = { itemType: ExternalAgentConfigMigrationItemType, description: string, /** * Null or empty means home-scoped migration; non-empty means repo-scoped migration. */ -cwd: string | null, }; +cwd: string | null, details: MigrationDetails | null, }; diff --git a/src/app-server/v2/ExternalAgentConfigMigrationItemType.ts b/src/app-server/v2/ExternalAgentConfigMigrationItemType.ts index c9bd160b..dedc124f 100644 --- a/src/app-server/v2/ExternalAgentConfigMigrationItemType.ts +++ b/src/app-server/v2/ExternalAgentConfigMigrationItemType.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 ExternalAgentConfigMigrationItemType = "AGENTS_MD" | "CONFIG" | "SKILLS" | "MCP_SERVER_CONFIG"; +export type ExternalAgentConfigMigrationItemType = "AGENTS_MD" | "CONFIG" | "SKILLS" | "PLUGINS" | "MCP_SERVER_CONFIG"; diff --git a/src/app-server/v2/FeedbackUploadParams.ts b/src/app-server/v2/FeedbackUploadParams.ts index ebbe3b32..86d9de2f 100644 --- a/src/app-server/v2/FeedbackUploadParams.ts +++ b/src/app-server/v2/FeedbackUploadParams.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 FeedbackUploadParams = { classification: string, reason?: string | null, threadId?: string | null, includeLogs: boolean, extraLogFiles?: Array | null, }; +export type FeedbackUploadParams = { classification: string, reason?: string | null, threadId?: string | null, includeLogs: boolean, extraLogFiles?: Array | null, tags?: { [key in string]?: string } | null, }; diff --git a/src/app-server/v2/FileChangeRequestApprovalParams.ts b/src/app-server/v2/FileChangeRequestApprovalParams.ts index a7951b68..c514ed62 100644 --- a/src/app-server/v2/FileChangeRequestApprovalParams.ts +++ b/src/app-server/v2/FileChangeRequestApprovalParams.ts @@ -2,11 +2,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type FileChangeRequestApprovalParams = { threadId: string, turnId: string, itemId: string, +export type FileChangeRequestApprovalParams = { threadId: string, turnId: string, itemId: string, /** * Optional explanatory reason (e.g. request for extra write access). */ -reason?: string | null, +reason?: string | null, /** * [UNSTABLE] When set, the agent is asking the user to allow writes under this root * for the remainder of the session (unclear if this is honored today). diff --git a/src/app-server/v2/FsChangedNotification.ts b/src/app-server/v2/FsChangedNotification.ts index fc0fa9cf..3f3be8ff 100644 --- a/src/app-server/v2/FsChangedNotification.ts +++ b/src/app-server/v2/FsChangedNotification.ts @@ -6,11 +6,11 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf"; /** * Filesystem watch notification emitted for `fs/watch` subscribers. */ -export type FsChangedNotification = { +export type FsChangedNotification = { /** * Watch identifier previously provided to `fs/watch`. */ -watchId: string, +watchId: string, /** * File or directory paths associated with this event. */ diff --git a/src/app-server/v2/FsCopyParams.ts b/src/app-server/v2/FsCopyParams.ts index 8f1ec8d4..d19aca92 100644 --- a/src/app-server/v2/FsCopyParams.ts +++ b/src/app-server/v2/FsCopyParams.ts @@ -6,15 +6,15 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf"; /** * Copy a file or directory tree on the host filesystem. */ -export type FsCopyParams = { +export type FsCopyParams = { /** * Absolute source path. */ -sourcePath: AbsolutePathBuf, +sourcePath: AbsolutePathBuf, /** * Absolute destination path. */ -destinationPath: AbsolutePathBuf, +destinationPath: AbsolutePathBuf, /** * Required for directory copies; ignored for file copies. */ diff --git a/src/app-server/v2/FsCreateDirectoryParams.ts b/src/app-server/v2/FsCreateDirectoryParams.ts index 2afc9950..b648d350 100644 --- a/src/app-server/v2/FsCreateDirectoryParams.ts +++ b/src/app-server/v2/FsCreateDirectoryParams.ts @@ -6,11 +6,11 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf"; /** * Create a directory on the host filesystem. */ -export type FsCreateDirectoryParams = { +export type FsCreateDirectoryParams = { /** * Absolute directory path to create. */ -path: AbsolutePathBuf, +path: AbsolutePathBuf, /** * Whether parent directories should also be created. Defaults to `true`. */ diff --git a/src/app-server/v2/FsGetMetadataParams.ts b/src/app-server/v2/FsGetMetadataParams.ts index 38e46c7b..4ea0445c 100644 --- a/src/app-server/v2/FsGetMetadataParams.ts +++ b/src/app-server/v2/FsGetMetadataParams.ts @@ -6,7 +6,7 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf"; /** * Request metadata for an absolute path. */ -export type FsGetMetadataParams = { +export type FsGetMetadataParams = { /** * Absolute path to inspect. */ diff --git a/src/app-server/v2/FsGetMetadataResponse.ts b/src/app-server/v2/FsGetMetadataResponse.ts index 351c6462..a1a127e1 100644 --- a/src/app-server/v2/FsGetMetadataResponse.ts +++ b/src/app-server/v2/FsGetMetadataResponse.ts @@ -5,19 +5,23 @@ /** * Metadata returned by `fs/getMetadata`. */ -export type FsGetMetadataResponse = { +export type FsGetMetadataResponse = { /** - * Whether the path currently resolves to a directory. + * Whether the path resolves to a directory. */ -isDirectory: boolean, +isDirectory: boolean, /** - * Whether the path currently resolves to a regular file. + * Whether the path resolves to a regular file. */ -isFile: boolean, +isFile: boolean, +/** + * Whether the path itself is a symbolic link. + */ +isSymlink: boolean, /** * File creation time in Unix milliseconds when available, otherwise `0`. */ -createdAtMs: number, +createdAtMs: number, /** * File modification time in Unix milliseconds when available, otherwise `0`. */ diff --git a/src/app-server/v2/FsReadDirectoryEntry.ts b/src/app-server/v2/FsReadDirectoryEntry.ts index 2696d7a4..197673d2 100644 --- a/src/app-server/v2/FsReadDirectoryEntry.ts +++ b/src/app-server/v2/FsReadDirectoryEntry.ts @@ -5,15 +5,15 @@ /** * A directory entry returned by `fs/readDirectory`. */ -export type FsReadDirectoryEntry = { +export type FsReadDirectoryEntry = { /** * Direct child entry name only, not an absolute or relative path. */ -fileName: string, +fileName: string, /** * Whether this entry resolves to a directory. */ -isDirectory: boolean, +isDirectory: boolean, /** * Whether this entry resolves to a regular file. */ diff --git a/src/app-server/v2/FsReadDirectoryParams.ts b/src/app-server/v2/FsReadDirectoryParams.ts index 770eea3a..94eaae43 100644 --- a/src/app-server/v2/FsReadDirectoryParams.ts +++ b/src/app-server/v2/FsReadDirectoryParams.ts @@ -6,7 +6,7 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf"; /** * List direct child names for a directory. */ -export type FsReadDirectoryParams = { +export type FsReadDirectoryParams = { /** * Absolute directory path to read. */ diff --git a/src/app-server/v2/FsReadDirectoryResponse.ts b/src/app-server/v2/FsReadDirectoryResponse.ts index 878e858f..0ffb8acd 100644 --- a/src/app-server/v2/FsReadDirectoryResponse.ts +++ b/src/app-server/v2/FsReadDirectoryResponse.ts @@ -6,7 +6,7 @@ import type { FsReadDirectoryEntry } from "./FsReadDirectoryEntry"; /** * Directory entries returned by `fs/readDirectory`. */ -export type FsReadDirectoryResponse = { +export type FsReadDirectoryResponse = { /** * Direct child entries in the requested directory. */ diff --git a/src/app-server/v2/FsReadFileParams.ts b/src/app-server/v2/FsReadFileParams.ts index f389b44f..d5bf22e3 100644 --- a/src/app-server/v2/FsReadFileParams.ts +++ b/src/app-server/v2/FsReadFileParams.ts @@ -6,7 +6,7 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf"; /** * Read a file from the host filesystem. */ -export type FsReadFileParams = { +export type FsReadFileParams = { /** * Absolute path to read. */ diff --git a/src/app-server/v2/FsReadFileResponse.ts b/src/app-server/v2/FsReadFileResponse.ts index 075d1269..26b61269 100644 --- a/src/app-server/v2/FsReadFileResponse.ts +++ b/src/app-server/v2/FsReadFileResponse.ts @@ -5,7 +5,7 @@ /** * Base64-encoded file contents returned by `fs/readFile`. */ -export type FsReadFileResponse = { +export type FsReadFileResponse = { /** * File contents encoded as base64. */ diff --git a/src/app-server/v2/FsRemoveParams.ts b/src/app-server/v2/FsRemoveParams.ts index c9f02eb0..c95b860a 100644 --- a/src/app-server/v2/FsRemoveParams.ts +++ b/src/app-server/v2/FsRemoveParams.ts @@ -6,15 +6,15 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf"; /** * Remove a file or directory tree from the host filesystem. */ -export type FsRemoveParams = { +export type FsRemoveParams = { /** * Absolute path to remove. */ -path: AbsolutePathBuf, +path: AbsolutePathBuf, /** * Whether directory removal should recurse. Defaults to `true`. */ -recursive?: boolean | null, +recursive?: boolean | null, /** * Whether missing paths should be ignored. Defaults to `true`. */ diff --git a/src/app-server/v2/FsUnwatchParams.ts b/src/app-server/v2/FsUnwatchParams.ts index 34b70a93..ff314814 100644 --- a/src/app-server/v2/FsUnwatchParams.ts +++ b/src/app-server/v2/FsUnwatchParams.ts @@ -5,7 +5,7 @@ /** * Stop filesystem watch notifications for a prior `fs/watch`. */ -export type FsUnwatchParams = { +export type FsUnwatchParams = { /** * Watch identifier previously provided to `fs/watch`. */ diff --git a/src/app-server/v2/FsWatchParams.ts b/src/app-server/v2/FsWatchParams.ts index 60755538..b990b8e0 100644 --- a/src/app-server/v2/FsWatchParams.ts +++ b/src/app-server/v2/FsWatchParams.ts @@ -6,11 +6,11 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf"; /** * Start filesystem watch notifications for an absolute path. */ -export type FsWatchParams = { +export type FsWatchParams = { /** * Connection-scoped watch identifier used for `fs/unwatch` and `fs/changed`. */ -watchId: string, +watchId: string, /** * Absolute file or directory path to watch. */ diff --git a/src/app-server/v2/FsWatchResponse.ts b/src/app-server/v2/FsWatchResponse.ts index b640306d..82e6c7e9 100644 --- a/src/app-server/v2/FsWatchResponse.ts +++ b/src/app-server/v2/FsWatchResponse.ts @@ -6,7 +6,7 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf"; /** * Successful response for `fs/watch`. */ -export type FsWatchResponse = { +export type FsWatchResponse = { /** * Canonicalized path associated with the watch. */ diff --git a/src/app-server/v2/FsWriteFileParams.ts b/src/app-server/v2/FsWriteFileParams.ts index 7c22abdb..1e8672b5 100644 --- a/src/app-server/v2/FsWriteFileParams.ts +++ b/src/app-server/v2/FsWriteFileParams.ts @@ -6,11 +6,11 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf"; /** * Write a file on the host filesystem. */ -export type FsWriteFileParams = { +export type FsWriteFileParams = { /** * Absolute path to write. */ -path: AbsolutePathBuf, +path: AbsolutePathBuf, /** * File contents encoded as base64. */ diff --git a/src/app-server/v2/GetAccountParams.ts b/src/app-server/v2/GetAccountParams.ts index efc646d1..a5c5c25f 100644 --- a/src/app-server/v2/GetAccountParams.ts +++ b/src/app-server/v2/GetAccountParams.ts @@ -2,7 +2,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type GetAccountParams = { +export type GetAccountParams = { /** * When `true`, requests a proactive token refresh before returning. * diff --git a/src/app-server/v2/GetAccountRateLimitsResponse.ts b/src/app-server/v2/GetAccountRateLimitsResponse.ts index e75e9b82..02cc7779 100644 --- a/src/app-server/v2/GetAccountRateLimitsResponse.ts +++ b/src/app-server/v2/GetAccountRateLimitsResponse.ts @@ -3,11 +3,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { RateLimitSnapshot } from "./RateLimitSnapshot"; -export type GetAccountRateLimitsResponse = { +export type GetAccountRateLimitsResponse = { /** * Backward-compatible single-bucket view; mirrors the historical payload. */ -rateLimits: RateLimitSnapshot, +rateLimits: RateLimitSnapshot, /** * Multi-bucket view keyed by metered `limit_id` (for example, `codex`). */ diff --git a/src/app-server/v2/GuardianApprovalReview.ts b/src/app-server/v2/GuardianApprovalReview.ts index 0cdb12cc..11d797eb 100644 --- a/src/app-server/v2/GuardianApprovalReview.ts +++ b/src/app-server/v2/GuardianApprovalReview.ts @@ -6,7 +6,7 @@ import type { GuardianRiskLevel } from "./GuardianRiskLevel"; import type { GuardianUserAuthorization } from "./GuardianUserAuthorization"; /** - * [UNSTABLE] Temporary guardian approval review payload used by + * [UNSTABLE] Temporary approval auto-review payload used by * `item/autoApprovalReview/*` notifications. This shape is expected to change * soon. */ diff --git a/src/app-server/v2/GuardianApprovalReviewAction.ts b/src/app-server/v2/GuardianApprovalReviewAction.ts index 101fe3f3..4bbfe241 100644 --- a/src/app-server/v2/GuardianApprovalReviewAction.ts +++ b/src/app-server/v2/GuardianApprovalReviewAction.ts @@ -1,7 +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. +import type { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { GuardianCommandSource } from "./GuardianCommandSource"; import type { NetworkApprovalProtocol } from "./NetworkApprovalProtocol"; -export type GuardianApprovalReviewAction = { "type": "command", source: GuardianCommandSource, command: string, cwd: string, } | { "type": "execve", source: GuardianCommandSource, program: string, argv: Array, cwd: string, } | { "type": "applyPatch", cwd: string, files: Array, } | { "type": "networkAccess", target: string, host: string, protocol: NetworkApprovalProtocol, port: number, } | { "type": "mcpToolCall", server: string, toolName: string, connectorId: string | null, connectorName: string | null, toolTitle: string | null, }; +export type GuardianApprovalReviewAction = { "type": "command", source: GuardianCommandSource, command: string, cwd: AbsolutePathBuf, } | { "type": "execve", source: GuardianCommandSource, program: string, argv: Array, cwd: AbsolutePathBuf, } | { "type": "applyPatch", cwd: AbsolutePathBuf, files: Array, } | { "type": "networkAccess", target: string, host: string, protocol: NetworkApprovalProtocol, port: number, } | { "type": "mcpToolCall", server: string, toolName: string, connectorId: string | null, connectorName: string | null, toolTitle: string | null, }; diff --git a/src/app-server/v2/GuardianApprovalReviewStatus.ts b/src/app-server/v2/GuardianApprovalReviewStatus.ts index b98578b2..ae892572 100644 --- a/src/app-server/v2/GuardianApprovalReviewStatus.ts +++ b/src/app-server/v2/GuardianApprovalReviewStatus.ts @@ -3,6 +3,6 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. /** - * [UNSTABLE] Lifecycle state for a guardian approval review. + * [UNSTABLE] Lifecycle state for an approval auto-review. */ -export type GuardianApprovalReviewStatus = "inProgress" | "approved" | "denied" | "aborted"; +export type GuardianApprovalReviewStatus = "inProgress" | "approved" | "denied" | "timedOut" | "aborted"; diff --git a/src/app-server/v2/GuardianRiskLevel.ts b/src/app-server/v2/GuardianRiskLevel.ts index 24e36716..7734016a 100644 --- a/src/app-server/v2/GuardianRiskLevel.ts +++ b/src/app-server/v2/GuardianRiskLevel.ts @@ -3,6 +3,6 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. /** - * [UNSTABLE] Risk level assigned by guardian approval review. + * [UNSTABLE] Risk level assigned by approval auto-review. */ export type GuardianRiskLevel = "low" | "medium" | "high" | "critical"; diff --git a/src/app-server/v2/GuardianUserAuthorization.ts b/src/app-server/v2/GuardianUserAuthorization.ts index 04f6a739..936611f7 100644 --- a/src/app-server/v2/GuardianUserAuthorization.ts +++ b/src/app-server/v2/GuardianUserAuthorization.ts @@ -3,6 +3,6 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. /** - * [UNSTABLE] Authorization level assigned by guardian approval review. + * [UNSTABLE] Authorization level assigned by approval auto-review. */ export type GuardianUserAuthorization = "unknown" | "low" | "medium" | "high"; diff --git a/src/app-server/v2/HookEventName.ts b/src/app-server/v2/HookEventName.ts index b97c709b..28657d22 100644 --- a/src/app-server/v2/HookEventName.ts +++ b/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" | "postToolUse" | "sessionStart" | "userPromptSubmit" | "stop"; +export type HookEventName = "preToolUse" | "permissionRequest" | "postToolUse" | "sessionStart" | "userPromptSubmit" | "stop"; diff --git a/src/app-server/v2/HookRunSummary.ts b/src/app-server/v2/HookRunSummary.ts index 68fb4e10..75ab780b 100644 --- a/src/app-server/v2/HookRunSummary.ts +++ b/src/app-server/v2/HookRunSummary.ts @@ -1,11 +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"; import type { HookEventName } from "./HookEventName"; import type { HookExecutionMode } from "./HookExecutionMode"; import type { HookHandlerType } from "./HookHandlerType"; import type { HookOutputEntry } from "./HookOutputEntry"; 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: string, 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: AbsolutePathBuf, source: HookSource, displayOrder: bigint, status: HookRunStatus, statusMessage: string | null, startedAt: bigint, completedAt: bigint | null, durationMs: bigint | null, entries: Array, }; diff --git a/src/app-server/v2/HookSource.ts b/src/app-server/v2/HookSource.ts new file mode 100644 index 00000000..7edf61f9 --- /dev/null +++ b/src/app-server/v2/HookSource.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 HookSource = "system" | "user" | "project" | "mdm" | "sessionFlags" | "legacyManagedConfigFile" | "legacyManagedConfigMdm" | "unknown"; diff --git a/src/app-server/v2/ItemGuardianApprovalReviewCompletedNotification.ts b/src/app-server/v2/ItemGuardianApprovalReviewCompletedNotification.ts index a345e3d6..5b162cf4 100644 --- a/src/app-server/v2/ItemGuardianApprovalReviewCompletedNotification.ts +++ b/src/app-server/v2/ItemGuardianApprovalReviewCompletedNotification.ts @@ -6,14 +6,14 @@ import type { GuardianApprovalReview } from "./GuardianApprovalReview"; import type { GuardianApprovalReviewAction } from "./GuardianApprovalReviewAction"; /** - * [UNSTABLE] Temporary notification payload for guardian automatic approval - * review. This shape is expected to change soon. + * [UNSTABLE] Temporary notification payload for approval auto-review. This + * shape is expected to change soon. */ -export type ItemGuardianApprovalReviewCompletedNotification = { threadId: string, turnId: string, +export type ItemGuardianApprovalReviewCompletedNotification = { threadId: string, turnId: string, /** * Stable identifier for this review. */ -reviewId: string, +reviewId: string, /** * Identifier for the reviewed item or tool call when one exists. * diff --git a/src/app-server/v2/ItemGuardianApprovalReviewStartedNotification.ts b/src/app-server/v2/ItemGuardianApprovalReviewStartedNotification.ts index f917aa3e..81ba2cde 100644 --- a/src/app-server/v2/ItemGuardianApprovalReviewStartedNotification.ts +++ b/src/app-server/v2/ItemGuardianApprovalReviewStartedNotification.ts @@ -5,14 +5,14 @@ import type { GuardianApprovalReview } from "./GuardianApprovalReview"; import type { GuardianApprovalReviewAction } from "./GuardianApprovalReviewAction"; /** - * [UNSTABLE] Temporary notification payload for guardian automatic approval - * review. This shape is expected to change soon. + * [UNSTABLE] Temporary notification payload for approval auto-review. This + * shape is expected to change soon. */ -export type ItemGuardianApprovalReviewStartedNotification = { threadId: string, turnId: string, +export type ItemGuardianApprovalReviewStartedNotification = { threadId: string, turnId: string, /** * Stable identifier for this review. */ -reviewId: string, +reviewId: string, /** * Identifier for the reviewed item or tool call when one exists. * diff --git a/src/app-server/v2/ListMcpServerStatusParams.ts b/src/app-server/v2/ListMcpServerStatusParams.ts index 8225c462..fa00b8ea 100644 --- a/src/app-server/v2/ListMcpServerStatusParams.ts +++ b/src/app-server/v2/ListMcpServerStatusParams.ts @@ -3,15 +3,15 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { McpServerStatusDetail } from "./McpServerStatusDetail"; -export type ListMcpServerStatusParams = { +export type ListMcpServerStatusParams = { /** * Opaque pagination cursor returned by a previous call. */ -cursor?: string | null, +cursor?: string | null, /** * Optional page size; defaults to a server-defined value. */ -limit?: number | null, +limit?: number | null, /** * Controls how much MCP inventory data to fetch for each server. * Defaults to `Full` when omitted. diff --git a/src/app-server/v2/ListMcpServerStatusResponse.ts b/src/app-server/v2/ListMcpServerStatusResponse.ts index 35a92bdc..18696ed8 100644 --- a/src/app-server/v2/ListMcpServerStatusResponse.ts +++ b/src/app-server/v2/ListMcpServerStatusResponse.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. import type { McpServerStatus } from "./McpServerStatus"; -export type ListMcpServerStatusResponse = { data: Array, +export type ListMcpServerStatusResponse = { 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. diff --git a/src/app-server/v2/ListMcpServersParams.ts b/src/app-server/v2/ListMcpServersParams.ts index d84d5002..b03acf06 100644 --- a/src/app-server/v2/ListMcpServersParams.ts +++ b/src/app-server/v2/ListMcpServersParams.ts @@ -2,11 +2,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ListMcpServersParams = { +export type ListMcpServersParams = { /** * Opaque pagination cursor returned by a previous call. */ -cursor: string | null, +cursor: string | null, /** * Optional page size; defaults to a server-defined value. */ diff --git a/src/app-server/v2/ListMcpServersResponse.ts b/src/app-server/v2/ListMcpServersResponse.ts index 7a1cf2f9..df83cfc2 100644 --- a/src/app-server/v2/ListMcpServersResponse.ts +++ b/src/app-server/v2/ListMcpServersResponse.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. import type { McpServer } from "./McpServer"; -export type ListMcpServersResponse = { data: Array, +export type ListMcpServersResponse = { 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. diff --git a/src/app-server/v2/LoginAccountParams.ts b/src/app-server/v2/LoginAccountParams.ts index 9fcb01f9..4831a6b2 100644 --- a/src/app-server/v2/LoginAccountParams.ts +++ b/src/app-server/v2/LoginAccountParams.ts @@ -2,16 +2,16 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type LoginAccountParams = { "type": "apiKey", apiKey: string, } | { "type": "chatgpt" } | { "type": "chatgptDeviceCode" } | { "type": "chatgptAuthTokens", +export type LoginAccountParams = { "type": "apiKey", apiKey: string, } | { "type": "chatgpt" } | { "type": "chatgptDeviceCode" } | { "type": "chatgptAuthTokens", /** * Access token (JWT) supplied by the client. * This token is used for backend API requests and email extraction. */ -accessToken: string, +accessToken: string, /** * Workspace/account identifier supplied by the client. */ -chatgptAccountId: string, +chatgptAccountId: string, /** * Optional plan type supplied by the client. * diff --git a/src/app-server/v2/LoginAccountResponse.ts b/src/app-server/v2/LoginAccountResponse.ts index 651f171e..34bccd65 100644 --- a/src/app-server/v2/LoginAccountResponse.ts +++ b/src/app-server/v2/LoginAccountResponse.ts @@ -2,15 +2,15 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type LoginAccountResponse = { "type": "apiKey", } | { "type": "chatgpt", loginId: string, +export type LoginAccountResponse = { "type": "apiKey", } | { "type": "chatgpt", loginId: string, /** * URL the client should open in a browser to initiate the OAuth flow. */ -authUrl: string, } | { "type": "chatgptDeviceCode", loginId: string, +authUrl: string, } | { "type": "chatgptDeviceCode", loginId: string, /** * URL the client should open in a browser to complete device code authorization. */ -verificationUrl: string, +verificationUrl: string, /** * One-time code the user must enter after signing in. */ diff --git a/src/app-server/v2/MarketplaceAddParams.ts b/src/app-server/v2/MarketplaceAddParams.ts new file mode 100644 index 00000000..23d16048 --- /dev/null +++ b/src/app-server/v2/MarketplaceAddParams.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 MarketplaceAddParams = { source: string, refName?: string | null, sparsePaths?: Array | null, }; diff --git a/src/app-server/v2/MarketplaceAddResponse.ts b/src/app-server/v2/MarketplaceAddResponse.ts new file mode 100644 index 00000000..8657d44c --- /dev/null +++ b/src/app-server/v2/MarketplaceAddResponse.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 { AbsolutePathBuf } from "../AbsolutePathBuf"; + +export type MarketplaceAddResponse = { marketplaceName: string, installedRoot: AbsolutePathBuf, alreadyAdded: boolean, }; diff --git a/src/app-server/v2/MarketplaceRemoveParams.ts b/src/app-server/v2/MarketplaceRemoveParams.ts new file mode 100644 index 00000000..086dd52a --- /dev/null +++ b/src/app-server/v2/MarketplaceRemoveParams.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 MarketplaceRemoveParams = { marketplaceName: string, }; diff --git a/src/app-server/v2/MarketplaceRemoveResponse.ts b/src/app-server/v2/MarketplaceRemoveResponse.ts new file mode 100644 index 00000000..68a04ecd --- /dev/null +++ b/src/app-server/v2/MarketplaceRemoveResponse.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 { AbsolutePathBuf } from "../AbsolutePathBuf"; + +export type MarketplaceRemoveResponse = { marketplaceName: string, installedRoot: AbsolutePathBuf | null, }; diff --git a/src/app-server/v2/McpServerElicitationRequestParams.ts b/src/app-server/v2/McpServerElicitationRequestParams.ts index 13855adc..90d60f77 100644 --- a/src/app-server/v2/McpServerElicitationRequestParams.ts +++ b/src/app-server/v2/McpServerElicitationRequestParams.ts @@ -4,7 +4,7 @@ import type { JsonValue } from "../serde_json/JsonValue"; import type { McpElicitationSchema } from "./McpElicitationSchema"; -export type McpServerElicitationRequestParams = { threadId: string, +export type McpServerElicitationRequestParams = { threadId: string, /** * Active Codex turn when this elicitation was observed, if app-server could correlate one. * diff --git a/src/app-server/v2/McpServerElicitationRequestResponse.ts b/src/app-server/v2/McpServerElicitationRequestResponse.ts index 054ef23f..a3d14574 100644 --- a/src/app-server/v2/McpServerElicitationRequestResponse.ts +++ b/src/app-server/v2/McpServerElicitationRequestResponse.ts @@ -4,13 +4,13 @@ import type { JsonValue } from "../serde_json/JsonValue"; import type { McpServerElicitationAction } from "./McpServerElicitationAction"; -export type McpServerElicitationRequestResponse = { action: McpServerElicitationAction, +export type McpServerElicitationRequestResponse = { action: McpServerElicitationAction, /** * Structured user input for accepted elicitations, mirroring RMCP `CreateElicitationResult`. * * This is nullable because decline/cancel responses have no content. */ -content: JsonValue | null, +content: JsonValue | null, /** * Optional client metadata for form-mode action handling. */ diff --git a/src/app-server/v2/McpServerToolCallParams.ts b/src/app-server/v2/McpServerToolCallParams.ts new file mode 100644 index 00000000..046a3fdc --- /dev/null +++ b/src/app-server/v2/McpServerToolCallParams.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 { JsonValue } from "../serde_json/JsonValue"; + +export type McpServerToolCallParams = { threadId: string, server: string, tool: string, arguments?: JsonValue, _meta?: JsonValue, }; diff --git a/src/app-server/v2/McpServerToolCallResponse.ts b/src/app-server/v2/McpServerToolCallResponse.ts new file mode 100644 index 00000000..fe14692a --- /dev/null +++ b/src/app-server/v2/McpServerToolCallResponse.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 { JsonValue } from "../serde_json/JsonValue"; + +export type McpServerToolCallResponse = { content: Array, structuredContent?: JsonValue, isError?: boolean, _meta?: JsonValue, }; diff --git a/src/app-server/v2/MigrationDetails.ts b/src/app-server/v2/MigrationDetails.ts new file mode 100644 index 00000000..9305335d --- /dev/null +++ b/src/app-server/v2/MigrationDetails.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 { PluginsMigration } from "./PluginsMigration"; + +export type MigrationDetails = { plugins: Array, }; diff --git a/src/app-server/v2/ModelListParams.ts b/src/app-server/v2/ModelListParams.ts index a1e7b8fa..dae406dd 100644 --- a/src/app-server/v2/ModelListParams.ts +++ b/src/app-server/v2/ModelListParams.ts @@ -2,15 +2,15 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ModelListParams = { +export type ModelListParams = { /** * Opaque pagination cursor returned by a previous call. */ -cursor?: string | null, +cursor?: string | null, /** * Optional page size; defaults to a reasonable server-side value. */ -limit?: number | null, +limit?: number | null, /** * When true, include models that are hidden from the default picker list. */ diff --git a/src/app-server/v2/ModelListResponse.ts b/src/app-server/v2/ModelListResponse.ts index be5ba25d..b664b6c0 100644 --- a/src/app-server/v2/ModelListResponse.ts +++ b/src/app-server/v2/ModelListResponse.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. import type { Model } from "./Model"; -export type ModelListResponse = { data: Array, +export type ModelListResponse = { 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. diff --git a/src/app-server/v2/NetworkRequirements.ts b/src/app-server/v2/NetworkRequirements.ts index c685b953..04e07ef1 100644 --- a/src/app-server/v2/NetworkRequirements.ts +++ b/src/app-server/v2/NetworkRequirements.ts @@ -4,29 +4,29 @@ import type { NetworkDomainPermission } from "./NetworkDomainPermission"; 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, +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`. */ -domains: { [key in string]?: NetworkDomainPermission } | null, +domains: { [key in string]?: NetworkDomainPermission } | null, /** * When true, only managed allowlist entries are respected while managed * network enforcement is active. */ -managedAllowedDomainsOnly: boolean | null, +managedAllowedDomainsOnly: boolean | null, /** * Legacy compatibility view derived from `domains`. */ -allowedDomains: Array | null, +allowedDomains: Array | null, /** * Legacy compatibility view derived from `domains`. */ -deniedDomains: Array | null, +deniedDomains: Array | null, /** * Canonical unix socket permission map for `experimental_network`. */ -unixSockets: { [key in string]?: NetworkUnixSocketPermission } | null, +unixSockets: { [key in string]?: NetworkUnixSocketPermission } | null, /** * Legacy compatibility view derived from `unix_sockets`. */ -allowUnixSockets: Array | null, allowLocalBinding: boolean | null, dangerFullAccessDenylistOnly: boolean | null, }; +allowUnixSockets: Array | null, allowLocalBinding: boolean | null, }; diff --git a/src/app-server/v2/PluginInstallParams.ts b/src/app-server/v2/PluginInstallParams.ts index 190dee04..257dc47a 100644 --- a/src/app-server/v2/PluginInstallParams.ts +++ b/src/app-server/v2/PluginInstallParams.ts @@ -3,8 +3,4 @@ // 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"; -export type PluginInstallParams = { marketplacePath: AbsolutePathBuf, pluginName: string, -/** - * When true, apply the remote plugin change before the local install flow. - */ -forceRemoteSync?: boolean, }; +export type PluginInstallParams = { marketplacePath?: AbsolutePathBuf | null, remoteMarketplaceName?: string | null, pluginName: string, }; diff --git a/src/app-server/v2/PluginInterface.ts b/src/app-server/v2/PluginInterface.ts index cea42d29..4e97ee66 100644 --- a/src/app-server/v2/PluginInterface.ts +++ b/src/app-server/v2/PluginInterface.ts @@ -3,9 +3,33 @@ // 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"; -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, +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. */ -defaultPrompt: Array | null, brandColor: string | null, composerIcon: AbsolutePathBuf | null, logo: AbsolutePathBuf | null, screenshots: Array, }; +defaultPrompt: Array | null, brandColor: string | null, +/** + * Local composer icon path, resolved from the installed plugin package. + */ +composerIcon: AbsolutePathBuf | null, +/** + * Remote composer icon URL from the plugin catalog. + */ +composerIconUrl: string | null, +/** + * Local logo path, resolved from the installed plugin package. + */ +logo: AbsolutePathBuf | null, +/** + * Remote logo URL from the plugin catalog. + */ +logoUrl: string | null, +/** + * Local screenshot paths, resolved from the installed plugin package. + */ +screenshots: Array, +/** + * Remote screenshot URLs from the plugin catalog. + */ +screenshotUrls: Array, }; diff --git a/src/app-server/v2/PluginListParams.ts b/src/app-server/v2/PluginListParams.ts index 07ecee5e..dcf23796 100644 --- a/src/app-server/v2/PluginListParams.ts +++ b/src/app-server/v2/PluginListParams.ts @@ -3,14 +3,9 @@ // 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"; -export type PluginListParams = { +export type PluginListParams = { /** * Optional working directories used to discover repo marketplaces. When omitted, * only home-scoped marketplaces and the official curated marketplace are considered. */ -cwds?: Array | null, -/** - * When true, reconcile the official curated marketplace against the remote plugin state - * before listing marketplaces. - */ -forceRemoteSync?: boolean, }; +cwds?: Array | null, }; diff --git a/src/app-server/v2/PluginListResponse.ts b/src/app-server/v2/PluginListResponse.ts index 7ae5f8e5..d50200c9 100644 --- a/src/app-server/v2/PluginListResponse.ts +++ b/src/app-server/v2/PluginListResponse.ts @@ -4,4 +4,4 @@ import type { MarketplaceLoadErrorInfo } from "./MarketplaceLoadErrorInfo"; import type { PluginMarketplaceEntry } from "./PluginMarketplaceEntry"; -export type PluginListResponse = { marketplaces: Array, marketplaceLoadErrors: Array, remoteSyncError: string | null, featuredPluginIds: Array, }; +export type PluginListResponse = { marketplaces: Array, marketplaceLoadErrors: Array, featuredPluginIds: Array, }; diff --git a/src/app-server/v2/PluginMarketplaceEntry.ts b/src/app-server/v2/PluginMarketplaceEntry.ts index c0ab75b8..f9dcee27 100644 --- a/src/app-server/v2/PluginMarketplaceEntry.ts +++ b/src/app-server/v2/PluginMarketplaceEntry.ts @@ -5,4 +5,9 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { MarketplaceInterface } from "./MarketplaceInterface"; import type { PluginSummary } from "./PluginSummary"; -export type PluginMarketplaceEntry = { name: string, path: AbsolutePathBuf, interface: MarketplaceInterface | null, plugins: Array, }; +export type PluginMarketplaceEntry = { name: string, +/** + * Local marketplace file path when the marketplace is backed by a local file. + * Remote-only catalog marketplaces do not have a local path. + */ +path: AbsolutePathBuf | null, interface: MarketplaceInterface | null, plugins: Array, }; diff --git a/src/app-server/v2/PluginReadParams.ts b/src/app-server/v2/PluginReadParams.ts index cd669687..8c4394f0 100644 --- a/src/app-server/v2/PluginReadParams.ts +++ b/src/app-server/v2/PluginReadParams.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 { AbsolutePathBuf } from "../AbsolutePathBuf"; -export type PluginReadParams = { marketplacePath: AbsolutePathBuf, pluginName: string, }; +export type PluginReadParams = { marketplacePath?: AbsolutePathBuf | null, remoteMarketplaceName?: string | null, pluginName: string, }; diff --git a/src/app-server/v2/PluginSource.ts b/src/app-server/v2/PluginSource.ts index 2f342c5d..f6e86719 100644 --- a/src/app-server/v2/PluginSource.ts +++ b/src/app-server/v2/PluginSource.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 { AbsolutePathBuf } from "../AbsolutePathBuf"; -export type PluginSource = { "type": "local", path: AbsolutePathBuf, }; +export type PluginSource = { "type": "local", path: AbsolutePathBuf, } | { "type": "git", url: string, path: string | null, refName: string | null, sha: string | null, } | { "type": "remote" }; diff --git a/src/app-server/v2/PluginUninstallParams.ts b/src/app-server/v2/PluginUninstallParams.ts index b92a21c9..e7f52c0e 100644 --- a/src/app-server/v2/PluginUninstallParams.ts +++ b/src/app-server/v2/PluginUninstallParams.ts @@ -2,8 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type PluginUninstallParams = { pluginId: string, -/** - * When true, apply the remote plugin change before the local uninstall flow. - */ -forceRemoteSync?: boolean, }; +export type PluginUninstallParams = { pluginId: string, }; diff --git a/src/app-server/v2/PluginsMigration.ts b/src/app-server/v2/PluginsMigration.ts new file mode 100644 index 00000000..0dce06d9 --- /dev/null +++ b/src/app-server/v2/PluginsMigration.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 PluginsMigration = { marketplaceName: string, pluginNames: Array, }; diff --git a/src/app-server/v2/RateLimitReachedType.ts b/src/app-server/v2/RateLimitReachedType.ts new file mode 100644 index 00000000..78f106c9 --- /dev/null +++ b/src/app-server/v2/RateLimitReachedType.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 RateLimitReachedType = "rate_limit_reached" | "workspace_owner_credits_depleted" | "workspace_member_credits_depleted" | "workspace_owner_usage_limit_reached" | "workspace_member_usage_limit_reached"; diff --git a/src/app-server/v2/RateLimitSnapshot.ts b/src/app-server/v2/RateLimitSnapshot.ts index 0c2ebe18..dc8417a3 100644 --- a/src/app-server/v2/RateLimitSnapshot.ts +++ b/src/app-server/v2/RateLimitSnapshot.ts @@ -3,6 +3,7 @@ // 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"; import type { CreditsSnapshot } from "./CreditsSnapshot"; +import type { RateLimitReachedType } from "./RateLimitReachedType"; import type { RateLimitWindow } from "./RateLimitWindow"; -export type RateLimitSnapshot = { limitId: string | null, limitName: string | null, primary: RateLimitWindow | null, secondary: RateLimitWindow | null, credits: CreditsSnapshot | null, planType: PlanType | null, }; +export type RateLimitSnapshot = { limitId: string | null, limitName: string | null, primary: RateLimitWindow | null, secondary: RateLimitWindow | null, credits: CreditsSnapshot | null, planType: PlanType | null, rateLimitReachedType: RateLimitReachedType | null, }; diff --git a/src/app-server/v2/ReviewStartParams.ts b/src/app-server/v2/ReviewStartParams.ts index 363e6dda..9833e08a 100644 --- a/src/app-server/v2/ReviewStartParams.ts +++ b/src/app-server/v2/ReviewStartParams.ts @@ -4,7 +4,7 @@ import type { ReviewDelivery } from "./ReviewDelivery"; import type { ReviewTarget } from "./ReviewTarget"; -export type ReviewStartParams = { threadId: string, target: 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`). diff --git a/src/app-server/v2/ReviewStartResponse.ts b/src/app-server/v2/ReviewStartResponse.ts index 25eb6f82..6d6c2bb7 100644 --- a/src/app-server/v2/ReviewStartResponse.ts +++ b/src/app-server/v2/ReviewStartResponse.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. import type { Turn } from "./Turn"; -export type ReviewStartResponse = { turn: Turn, +export type ReviewStartResponse = { turn: Turn, /** * Identifies the thread where the review runs. * diff --git a/src/app-server/v2/ReviewTarget.ts b/src/app-server/v2/ReviewTarget.ts index a79f1e99..a69b68c0 100644 --- a/src/app-server/v2/ReviewTarget.ts +++ b/src/app-server/v2/ReviewTarget.ts @@ -2,7 +2,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ReviewTarget = { "type": "uncommittedChanges" } | { "type": "baseBranch", branch: string, } | { "type": "commit", sha: string, +export type ReviewTarget = { "type": "uncommittedChanges" } | { "type": "baseBranch", branch: string, } | { "type": "commit", sha: string, /** * Optional human-readable label (e.g., commit subject) for UIs. */ diff --git a/src/app-server/v2/SendAddCreditsNudgeEmailParams.ts b/src/app-server/v2/SendAddCreditsNudgeEmailParams.ts new file mode 100644 index 00000000..383ad4aa --- /dev/null +++ b/src/app-server/v2/SendAddCreditsNudgeEmailParams.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 { AddCreditsNudgeCreditType } from "./AddCreditsNudgeCreditType"; + +export type SendAddCreditsNudgeEmailParams = { creditType: AddCreditsNudgeCreditType, }; diff --git a/src/app-server/v2/SendAddCreditsNudgeEmailResponse.ts b/src/app-server/v2/SendAddCreditsNudgeEmailResponse.ts new file mode 100644 index 00000000..71dcb190 --- /dev/null +++ b/src/app-server/v2/SendAddCreditsNudgeEmailResponse.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 { AddCreditsNudgeEmailStatus } from "./AddCreditsNudgeEmailStatus"; + +export type SendAddCreditsNudgeEmailResponse = { status: AddCreditsNudgeEmailStatus, }; diff --git a/src/app-server/v2/SkillInterface.ts b/src/app-server/v2/SkillInterface.ts index 86c37a0b..2361afcf 100644 --- a/src/app-server/v2/SkillInterface.ts +++ b/src/app-server/v2/SkillInterface.ts @@ -1,5 +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 { AbsolutePathBuf } from "../AbsolutePathBuf"; -export type SkillInterface = { displayName?: string, shortDescription?: string, iconSmall?: string, iconLarge?: string, brandColor?: string, defaultPrompt?: string, }; +export type SkillInterface = { displayName?: string, shortDescription?: string, iconSmall?: AbsolutePathBuf, iconLarge?: AbsolutePathBuf, brandColor?: string, defaultPrompt?: string, }; diff --git a/src/app-server/v2/SkillMetadata.ts b/src/app-server/v2/SkillMetadata.ts index 52c0cd49..e43484d1 100644 --- a/src/app-server/v2/SkillMetadata.ts +++ b/src/app-server/v2/SkillMetadata.ts @@ -1,12 +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"; import type { SkillDependencies } from "./SkillDependencies"; import type { SkillInterface } from "./SkillInterface"; import type { SkillScope } from "./SkillScope"; -export type SkillMetadata = { name: string, description: string, +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: string, scope: SkillScope, enabled: boolean, }; +shortDescription?: string, interface?: SkillInterface, dependencies?: SkillDependencies, path: AbsolutePathBuf, scope: SkillScope, enabled: boolean, }; diff --git a/src/app-server/v2/SkillSummary.ts b/src/app-server/v2/SkillSummary.ts index ea373935..05aa4031 100644 --- a/src/app-server/v2/SkillSummary.ts +++ b/src/app-server/v2/SkillSummary.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 { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { SkillInterface } from "./SkillInterface"; -export type SkillSummary = { name: string, description: string, shortDescription: string | null, interface: SkillInterface | null, path: string, enabled: boolean, }; +export type SkillSummary = { name: string, description: string, shortDescription: string | null, interface: SkillInterface | null, path: AbsolutePathBuf, enabled: boolean, }; diff --git a/src/app-server/v2/SkillsConfigWriteParams.ts b/src/app-server/v2/SkillsConfigWriteParams.ts index 273d593c..39192e07 100644 --- a/src/app-server/v2/SkillsConfigWriteParams.ts +++ b/src/app-server/v2/SkillsConfigWriteParams.ts @@ -3,11 +3,11 @@ // 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"; -export type SkillsConfigWriteParams = { +export type SkillsConfigWriteParams = { /** * Path-based selector. */ -path?: AbsolutePathBuf | null, +path?: AbsolutePathBuf | null, /** * Name-based selector. */ diff --git a/src/app-server/v2/SkillsListParams.ts b/src/app-server/v2/SkillsListParams.ts index f5844438..ad714a32 100644 --- a/src/app-server/v2/SkillsListParams.ts +++ b/src/app-server/v2/SkillsListParams.ts @@ -3,15 +3,15 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { SkillsListExtraRootsForCwd } from "./SkillsListExtraRootsForCwd"; -export type SkillsListParams = { +export type SkillsListParams = { /** * When empty, defaults to the current session working directory. */ -cwds?: Array, +cwds?: Array, /** * When true, bypass the skills cache and re-scan skills from disk. */ -forceReload?: boolean, +forceReload?: boolean, /** * Optional per-cwd extra roots to scan as user-scoped skills. */ diff --git a/src/app-server/v2/SortDirection.ts b/src/app-server/v2/SortDirection.ts new file mode 100644 index 00000000..d8597a46 --- /dev/null +++ b/src/app-server/v2/SortDirection.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 SortDirection = "asc" | "desc"; diff --git a/src/app-server/v2/TextElement.ts b/src/app-server/v2/TextElement.ts index 8841d004..535e0a1d 100644 --- a/src/app-server/v2/TextElement.ts +++ b/src/app-server/v2/TextElement.ts @@ -3,11 +3,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ByteRange } from "./ByteRange"; -export type TextElement = { +export type TextElement = { /** * Byte range in the parent `text` buffer that this element occupies. */ -byteRange: ByteRange, +byteRange: ByteRange, /** * Optional human-readable placeholder for the element, displayed in the UI. */ diff --git a/src/app-server/v2/TextPosition.ts b/src/app-server/v2/TextPosition.ts index e0a6d11a..0e6eeb13 100644 --- a/src/app-server/v2/TextPosition.ts +++ b/src/app-server/v2/TextPosition.ts @@ -2,11 +2,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type TextPosition = { +export type TextPosition = { /** * 1-based line number. */ -line: number, +line: number, /** * 1-based column number (in Unicode scalar values). */ diff --git a/src/app-server/v2/Thread.ts b/src/app-server/v2/Thread.ts index 7a8bf4ac..8c4c9394 100644 --- a/src/app-server/v2/Thread.ts +++ b/src/app-server/v2/Thread.ts @@ -1,72 +1,73 @@ // 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 { GitInfo } from "./GitInfo"; import type { SessionSource } from "./SessionSource"; import type { ThreadStatus } from "./ThreadStatus"; import type { Turn } from "./Turn"; -export type Thread = { id: string, +export type Thread = { id: string, /** * Source thread id when this thread was created by forking another thread. */ -forkedFromId: string | null, +forkedFromId: string | null, /** * Usually the first user message in the thread, if available. */ -preview: string, +preview: string, /** * Whether the thread is ephemeral and should not be materialized on disk. */ -ephemeral: boolean, +ephemeral: boolean, /** * Model provider used for this thread (for example, 'openai'). */ -modelProvider: string, +modelProvider: string, /** * Unix timestamp (in seconds) when the thread was created. */ -createdAt: number, +createdAt: number, /** * Unix timestamp (in seconds) when the thread was last updated. */ -updatedAt: number, +updatedAt: number, /** * Current runtime status for the thread. */ -status: ThreadStatus, +status: ThreadStatus, /** * [UNSTABLE] Path to the thread on disk. */ -path: string | null, +path: string | null, /** * Working directory captured for the thread. */ -cwd: string, +cwd: AbsolutePathBuf, /** * Version of the CLI that created the thread. */ -cliVersion: string, +cliVersion: string, /** * Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.). */ -source: SessionSource, +source: SessionSource, /** * Optional random unique nickname assigned to an AgentControl-spawned sub-agent. */ -agentNickname: string | null, +agentNickname: string | null, /** * Optional role (agent_role) assigned to an AgentControl-spawned sub-agent. */ -agentRole: string | null, +agentRole: string | null, /** * Optional Git metadata captured when the thread was created. */ -gitInfo: GitInfo | null, +gitInfo: GitInfo | null, /** * Optional user-facing thread title. */ -name: string | null, +name: string | null, /** * Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` * (when `includeTurns` is true) responses. diff --git a/src/app-server/v2/ThreadForkResponse.ts b/src/app-server/v2/ThreadForkResponse.ts index 00dade9f..470e98c9 100644 --- a/src/app-server/v2/ThreadForkResponse.ts +++ b/src/app-server/v2/ThreadForkResponse.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 { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { ReasoningEffort } from "../ReasoningEffort"; import type { ServiceTier } from "../ServiceTier"; import type { ApprovalsReviewer } from "./ApprovalsReviewer"; @@ -8,7 +9,11 @@ import type { AskForApproval } from "./AskForApproval"; import type { SandboxPolicy } from "./SandboxPolicy"; import type { Thread } from "./Thread"; -export type ThreadForkResponse = { thread: Thread, model: string, modelProvider: string, serviceTier: ServiceTier | null, cwd: string, approvalPolicy: AskForApproval, +export type ThreadForkResponse = { thread: Thread, model: string, modelProvider: string, serviceTier: ServiceTier | null, cwd: AbsolutePathBuf, +/** + * Instruction source files currently loaded for this thread. + */ +instructionSources: Array, approvalPolicy: AskForApproval, /** * Reviewer currently used for approval requests on this thread. */ diff --git a/src/app-server/v2/ThreadInjectItemsParams.ts b/src/app-server/v2/ThreadInjectItemsParams.ts new file mode 100644 index 00000000..4a49224a --- /dev/null +++ b/src/app-server/v2/ThreadInjectItemsParams.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 { JsonValue } from "../serde_json/JsonValue"; + +export type ThreadInjectItemsParams = { threadId: string, +/** + * Raw Responses API items to append to the thread's model-visible history. + */ +items: Array, }; diff --git a/src/app-server/v2/ThreadInjectItemsResponse.ts b/src/app-server/v2/ThreadInjectItemsResponse.ts new file mode 100644 index 00000000..60dcf0d0 --- /dev/null +++ b/src/app-server/v2/ThreadInjectItemsResponse.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 ThreadInjectItemsResponse = Record; diff --git a/src/app-server/v2/ThreadItem.ts b/src/app-server/v2/ThreadItem.ts index 9202f372..747a70c5 100644 --- a/src/app-server/v2/ThreadItem.ts +++ b/src/app-server/v2/ThreadItem.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 { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { MessagePhase } from "../MessagePhase"; import type { ReasoningEffort } from "../ReasoningEffort"; import type { JsonValue } from "../serde_json/JsonValue"; @@ -22,79 +23,79 @@ import type { PatchApplyStatus } from "./PatchApplyStatus"; import type { UserInput } from "./UserInput"; import type { WebSearchAction } from "./WebSearchAction"; -export type ThreadItem = { "type": "userMessage", id: string, content: Array, } | { "type": "hookPrompt", id: string, fragments: Array, } | { "type": "agentMessage", id: string, text: string, phase: MessagePhase | null, memoryCitation: MemoryCitation | null, } | { "type": "plan", id: string, text: string, } | { "type": "reasoning", id: string, summary: Array, content: Array, } | { "type": "commandExecution", id: string, +export type ThreadItem = { "type": "userMessage", id: string, content: Array, } | { "type": "hookPrompt", id: string, fragments: Array, } | { "type": "agentMessage", id: string, text: string, phase: MessagePhase | null, memoryCitation: MemoryCitation | null, } | { "type": "plan", id: string, text: string, } | { "type": "reasoning", id: string, summary: Array, content: Array, } | { "type": "commandExecution", id: string, /** * The command to be executed. */ -command: string, +command: string, /** * The command's working directory. */ -cwd: string, +cwd: AbsolutePathBuf, /** * Identifier for the underlying PTY process (when available). */ -processId: string | null, source: CommandExecutionSource, status: CommandExecutionStatus, +processId: string | null, source: CommandExecutionSource, status: CommandExecutionStatus, /** * A best-effort parsing of the command to understand the action(s) it will perform. * This returns a list of CommandAction objects because a single shell command may * be composed of many commands piped together. */ -commandActions: Array, +commandActions: Array, /** * The command's output, aggregated from stdout and stderr. */ -aggregatedOutput: string | null, +aggregatedOutput: string | null, /** * The command's exit code. */ -exitCode: number | null, +exitCode: number | null, /** * The duration of the command execution in milliseconds. */ -durationMs: number | null, } | { "type": "fileChange", id: string, changes: Array, status: PatchApplyStatus, } | { "type": "mcpToolCall", id: string, server: string, tool: string, status: McpToolCallStatus, arguments: JsonValue, result: McpToolCallResult | null, error: McpToolCallError | null, +durationMs: number | null, } | { "type": "fileChange", id: string, changes: Array, status: PatchApplyStatus, } | { "type": "mcpToolCall", id: string, server: string, tool: string, status: McpToolCallStatus, arguments: JsonValue, mcpAppResourceUri?: string, result: McpToolCallResult | null, error: McpToolCallError | null, /** * The duration of the MCP tool call in milliseconds. */ -durationMs: number | null, } | { "type": "dynamicToolCall", id: string, tool: string, arguments: JsonValue, status: DynamicToolCallStatus, contentItems: Array | null, success: boolean | null, +durationMs: number | null, } | { "type": "dynamicToolCall", id: string, tool: string, arguments: JsonValue, status: DynamicToolCallStatus, contentItems: Array | null, success: boolean | null, /** * The duration of the dynamic tool call in milliseconds. */ -durationMs: number | null, } | { "type": "collabAgentToolCall", +durationMs: number | null, } | { "type": "collabAgentToolCall", /** * Unique identifier for this collab tool call. */ -id: string, +id: string, /** * Name of the collab tool that was invoked. */ -tool: CollabAgentTool, +tool: CollabAgentTool, /** * Current status of the collab tool call. */ -status: CollabAgentToolCallStatus, +status: CollabAgentToolCallStatus, /** * Thread ID of the agent issuing the collab request. */ -senderThreadId: string, +senderThreadId: string, /** * Thread ID of the receiving agent, when applicable. In case of spawn operation, * this corresponds to the newly spawned agent. */ -receiverThreadIds: Array, +receiverThreadIds: Array, /** * Prompt text sent as part of the collab tool call, when available. */ -prompt: string | null, +prompt: string | null, /** * Model requested for the spawned agent, when applicable. */ -model: string | null, +model: string | null, /** * Reasoning effort requested for the spawned agent, when applicable. */ -reasoningEffort: ReasoningEffort | null, +reasoningEffort: ReasoningEffort | null, /** * Last known status of the target agents, when available. */ -agentsStates: { [key in string]?: CollabAgentState }, } | { "type": "webSearch", id: string, query: string, action: WebSearchAction | null, } | { "type": "imageView", id: string, path: string, } | { "type": "imageGeneration", id: string, status: string, revisedPrompt: string | null, result: string, savedPath?: string, } | { "type": "enteredReviewMode", id: string, review: string, } | { "type": "exitedReviewMode", id: string, review: string, } | { "type": "contextCompaction", id: string, }; +agentsStates: { [key in string]?: CollabAgentState }, } | { "type": "webSearch", id: string, query: string, action: WebSearchAction | null, } | { "type": "imageView", id: string, path: AbsolutePathBuf, } | { "type": "imageGeneration", id: string, status: string, revisedPrompt: string | null, result: string, savedPath?: AbsolutePathBuf, } | { "type": "enteredReviewMode", id: string, review: string, } | { "type": "exitedReviewMode", id: string, review: string, } | { "type": "contextCompaction", id: string, }; diff --git a/src/app-server/v2/ThreadListParams.ts b/src/app-server/v2/ThreadListParams.ts index ea14ec3d..a2add176 100644 --- a/src/app-server/v2/ThreadListParams.ts +++ b/src/app-server/v2/ThreadListParams.ts @@ -1,42 +1,47 @@ // 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 { SortDirection } from "./SortDirection"; import type { ThreadSortKey } from "./ThreadSortKey"; import type { ThreadSourceKind } from "./ThreadSourceKind"; -export type ThreadListParams = { +export type ThreadListParams = { /** * Opaque pagination cursor returned by a previous call. */ -cursor?: string | null, +cursor?: string | null, /** * Optional page size; defaults to a reasonable server-side value. */ -limit?: number | null, +limit?: number | null, /** * Optional sort key; defaults to created_at. */ -sortKey?: ThreadSortKey | null, +sortKey?: ThreadSortKey | null, +/** + * Optional sort direction; defaults to descending (newest first). + */ +sortDirection?: SortDirection | null, /** * Optional provider filter; when set, only sessions recorded under these * providers are returned. When present but empty, includes all providers. */ -modelProviders?: Array | null, +modelProviders?: Array | null, /** * Optional source filter; when set, only sessions from these source kinds * are returned. When omitted or empty, defaults to interactive sources. */ -sourceKinds?: Array | null, +sourceKinds?: Array | null, /** * Optional archived filter; when set to true, only archived threads are returned. * If false or null, only non-archived threads are returned. */ -archived?: boolean | null, +archived?: boolean | null, /** * Optional cwd filter; when set, only threads whose session cwd exactly * matches this path are returned. */ -cwd?: string | null, +cwd?: string | null, /** * Optional substring filter for the extracted thread title. */ diff --git a/src/app-server/v2/ThreadListResponse.ts b/src/app-server/v2/ThreadListResponse.ts index 3c0296e5..51757e24 100644 --- a/src/app-server/v2/ThreadListResponse.ts +++ b/src/app-server/v2/ThreadListResponse.ts @@ -3,9 +3,16 @@ // 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, }; diff --git a/src/app-server/v2/ThreadLoadedListParams.ts b/src/app-server/v2/ThreadLoadedListParams.ts index ef1e0ac0..a7889e4f 100644 --- a/src/app-server/v2/ThreadLoadedListParams.ts +++ b/src/app-server/v2/ThreadLoadedListParams.ts @@ -2,11 +2,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ThreadLoadedListParams = { +export type ThreadLoadedListParams = { /** * Opaque pagination cursor returned by a previous call. */ -cursor?: string | null, +cursor?: string | null, /** * Optional page size; defaults to no limit. */ diff --git a/src/app-server/v2/ThreadLoadedListResponse.ts b/src/app-server/v2/ThreadLoadedListResponse.ts index d215a45d..21a48c37 100644 --- a/src/app-server/v2/ThreadLoadedListResponse.ts +++ b/src/app-server/v2/ThreadLoadedListResponse.ts @@ -2,11 +2,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ThreadLoadedListResponse = { +export type ThreadLoadedListResponse = { /** * Thread ids for sessions currently loaded in memory. */ -data: Array, +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. diff --git a/src/app-server/v2/ThreadMetadataGitInfoUpdateParams.ts b/src/app-server/v2/ThreadMetadataGitInfoUpdateParams.ts index 7424ae36..865b5346 100644 --- a/src/app-server/v2/ThreadMetadataGitInfoUpdateParams.ts +++ b/src/app-server/v2/ThreadMetadataGitInfoUpdateParams.ts @@ -2,17 +2,17 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ThreadMetadataGitInfoUpdateParams = { +export type ThreadMetadataGitInfoUpdateParams = { /** * Omit to leave the stored commit unchanged, set to `null` to clear it, * or provide a non-empty string to replace it. */ -sha?: string | null, +sha?: string | null, /** * Omit to leave the stored branch unchanged, set to `null` to clear it, * or provide a non-empty string to replace it. */ -branch?: string | null, +branch?: string | null, /** * Omit to leave the stored origin URL unchanged, set to `null` to clear it, * or provide a non-empty string to replace it. diff --git a/src/app-server/v2/ThreadMetadataUpdateParams.ts b/src/app-server/v2/ThreadMetadataUpdateParams.ts index 5b6eb8a0..bec4bc12 100644 --- a/src/app-server/v2/ThreadMetadataUpdateParams.ts +++ b/src/app-server/v2/ThreadMetadataUpdateParams.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. import type { ThreadMetadataGitInfoUpdateParams } from "./ThreadMetadataGitInfoUpdateParams"; -export type ThreadMetadataUpdateParams = { threadId: string, +export type ThreadMetadataUpdateParams = { threadId: string, /** * Patch the stored Git metadata for this thread. * Omit a field to leave it unchanged, set it to `null` to clear it, or diff --git a/src/app-server/v2/ThreadReadParams.ts b/src/app-server/v2/ThreadReadParams.ts index b274d1e7..64169d2b 100644 --- a/src/app-server/v2/ThreadReadParams.ts +++ b/src/app-server/v2/ThreadReadParams.ts @@ -2,7 +2,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ThreadReadParams = { threadId: string, +export type ThreadReadParams = { threadId: string, /** * When true, include turns and their items from rollout history. */ diff --git a/src/app-server/v2/ThreadRealtimeStartTransport.ts b/src/app-server/v2/ThreadRealtimeStartTransport.ts index e6450a66..339e1b1b 100644 --- a/src/app-server/v2/ThreadRealtimeStartTransport.ts +++ b/src/app-server/v2/ThreadRealtimeStartTransport.ts @@ -5,7 +5,7 @@ /** * EXPERIMENTAL - transport used by thread realtime. */ -export type ThreadRealtimeStartTransport = { "type": "websocket" } | { "type": "webrtc", +export type ThreadRealtimeStartTransport = { "type": "websocket" } | { "type": "webrtc", /** * SDP offer generated by a WebRTC RTCPeerConnection after configuring audio and the * realtime events data channel. diff --git a/src/app-server/v2/ThreadRealtimeTranscriptDeltaNotification.ts b/src/app-server/v2/ThreadRealtimeTranscriptDeltaNotification.ts new file mode 100644 index 00000000..805eeddd --- /dev/null +++ b/src/app-server/v2/ThreadRealtimeTranscriptDeltaNotification.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. + +/** + * EXPERIMENTAL - flat transcript delta emitted whenever realtime + * transcript text changes. + */ +export type ThreadRealtimeTranscriptDeltaNotification = { threadId: string, role: string, +/** + * Live transcript delta from the realtime event. + */ +delta: string, }; diff --git a/src/app-server/v2/ThreadRealtimeTranscriptDoneNotification.ts b/src/app-server/v2/ThreadRealtimeTranscriptDoneNotification.ts new file mode 100644 index 00000000..d4667ad0 --- /dev/null +++ b/src/app-server/v2/ThreadRealtimeTranscriptDoneNotification.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. + +/** + * EXPERIMENTAL - final transcript text emitted when realtime completes + * a transcript part. + */ +export type ThreadRealtimeTranscriptDoneNotification = { threadId: string, role: string, +/** + * Final complete text for the transcript part. + */ +text: string, }; diff --git a/src/app-server/v2/ThreadResumeResponse.ts b/src/app-server/v2/ThreadResumeResponse.ts index ba70bd8f..177add83 100644 --- a/src/app-server/v2/ThreadResumeResponse.ts +++ b/src/app-server/v2/ThreadResumeResponse.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 { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { ReasoningEffort } from "../ReasoningEffort"; import type { ServiceTier } from "../ServiceTier"; import type { ApprovalsReviewer } from "./ApprovalsReviewer"; @@ -8,7 +9,11 @@ import type { AskForApproval } from "./AskForApproval"; import type { SandboxPolicy } from "./SandboxPolicy"; import type { Thread } from "./Thread"; -export type ThreadResumeResponse = { thread: Thread, model: string, modelProvider: string, serviceTier: ServiceTier | null, cwd: string, approvalPolicy: AskForApproval, +export type ThreadResumeResponse = { thread: Thread, model: string, modelProvider: string, serviceTier: ServiceTier | null, cwd: AbsolutePathBuf, +/** + * Instruction source files currently loaded for this thread. + */ +instructionSources: Array, approvalPolicy: AskForApproval, /** * Reviewer currently used for approval requests on this thread. */ diff --git a/src/app-server/v2/ThreadRollbackParams.ts b/src/app-server/v2/ThreadRollbackParams.ts index b8679782..1c938e3b 100644 --- a/src/app-server/v2/ThreadRollbackParams.ts +++ b/src/app-server/v2/ThreadRollbackParams.ts @@ -2,7 +2,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ThreadRollbackParams = { threadId: string, +export type ThreadRollbackParams = { threadId: string, /** * The number of turns to drop from the end of the thread. Must be >= 1. * diff --git a/src/app-server/v2/ThreadRollbackResponse.ts b/src/app-server/v2/ThreadRollbackResponse.ts index 1f88f176..6597cc81 100644 --- a/src/app-server/v2/ThreadRollbackResponse.ts +++ b/src/app-server/v2/ThreadRollbackResponse.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. import type { Thread } from "./Thread"; -export type ThreadRollbackResponse = { +export type ThreadRollbackResponse = { /** * The updated thread after applying the rollback, with `turns` populated. * diff --git a/src/app-server/v2/ThreadShellCommandParams.ts b/src/app-server/v2/ThreadShellCommandParams.ts index 8c50612c..2761dee2 100644 --- a/src/app-server/v2/ThreadShellCommandParams.ts +++ b/src/app-server/v2/ThreadShellCommandParams.ts @@ -2,7 +2,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ThreadShellCommandParams = { threadId: string, +export type ThreadShellCommandParams = { threadId: string, /** * Shell command string evaluated by the thread's configured shell. * Unlike `command/exec`, this intentionally preserves shell syntax diff --git a/src/app-server/v2/ThreadStartResponse.ts b/src/app-server/v2/ThreadStartResponse.ts index ee97bdf4..fd84a41a 100644 --- a/src/app-server/v2/ThreadStartResponse.ts +++ b/src/app-server/v2/ThreadStartResponse.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 { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { ReasoningEffort } from "../ReasoningEffort"; import type { ServiceTier } from "../ServiceTier"; import type { ApprovalsReviewer } from "./ApprovalsReviewer"; @@ -8,7 +9,11 @@ import type { AskForApproval } from "./AskForApproval"; import type { SandboxPolicy } from "./SandboxPolicy"; import type { Thread } from "./Thread"; -export type ThreadStartResponse = { thread: Thread, model: string, modelProvider: string, serviceTier: ServiceTier | null, cwd: string, approvalPolicy: AskForApproval, +export type ThreadStartResponse = { thread: Thread, model: string, modelProvider: string, serviceTier: ServiceTier | null, cwd: AbsolutePathBuf, +/** + * Instruction source files currently loaded for this thread. + */ +instructionSources: Array, approvalPolicy: AskForApproval, /** * Reviewer currently used for approval requests on this thread. */ diff --git a/src/app-server/v2/ThreadTurnsListParams.ts b/src/app-server/v2/ThreadTurnsListParams.ts new file mode 100644 index 00000000..2c507bc9 --- /dev/null +++ b/src/app-server/v2/ThreadTurnsListParams.ts @@ -0,0 +1,18 @@ +// 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 { SortDirection } from "./SortDirection"; + +export type ThreadTurnsListParams = { threadId: string, +/** + * Opaque cursor to pass to the next call to continue after the last turn. + */ +cursor?: string | null, +/** + * Optional turn page size. + */ +limit?: number | null, +/** + * Optional turn pagination direction; defaults to descending. + */ +sortDirection?: SortDirection | null, }; diff --git a/src/app-server/v2/ThreadTurnsListResponse.ts b/src/app-server/v2/ThreadTurnsListResponse.ts new file mode 100644 index 00000000..1dbed91a --- /dev/null +++ b/src/app-server/v2/ThreadTurnsListResponse.ts @@ -0,0 +1,18 @@ +// 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 { Turn } from "./Turn"; + +export type ThreadTurnsListResponse = { data: Array, +/** + * Opaque cursor to pass to the next call to continue after the last turn. + * if None, there are no more turns to return. + */ +nextCursor: string | null, +/** + * Opaque cursor to pass as `cursor` when reversing `sortDirection`. + * This is only populated when the page contains at least one turn. + * Use it with the opposite `sortDirection` to include the anchor turn again + * and catch updates to that turn. + */ +backwardsCursor: string | null, }; diff --git a/src/app-server/v2/Turn.ts b/src/app-server/v2/Turn.ts index 074ac215..844c09c4 100644 --- a/src/app-server/v2/Turn.ts +++ b/src/app-server/v2/Turn.ts @@ -5,25 +5,25 @@ import type { ThreadItem } from "./ThreadItem"; import type { TurnError } from "./TurnError"; import type { TurnStatus } from "./TurnStatus"; -export type Turn = { id: string, +export type Turn = { id: string, /** * Only populated on a `thread/resume` or `thread/fork` response. * For all other responses and notifications returning a Turn, * the items field will be an empty list. */ -items: Array, status: TurnStatus, +items: Array, status: TurnStatus, /** * Only populated when the Turn's status is failed. */ -error: TurnError | null, +error: TurnError | null, /** * Unix timestamp (in seconds) when the turn started. */ -startedAt: number | null, +startedAt: number | null, /** * Unix timestamp (in seconds) when the turn completed. */ -completedAt: number | null, +completedAt: number | null, /** * Duration between turn start and completion in milliseconds, if known. */ diff --git a/src/app-server/v2/UserInput.ts b/src/app-server/v2/UserInput.ts index 65196fe5..38abc233 100644 --- a/src/app-server/v2/UserInput.ts +++ b/src/app-server/v2/UserInput.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. import type { TextElement } from "./TextElement"; -export type UserInput = { "type": "text", text: string, +export type UserInput = { "type": "text", text: string, /** * UI-defined spans within `text` used to render or persist special elements. */ diff --git a/src/app-server/v2/WarningNotification.ts b/src/app-server/v2/WarningNotification.ts new file mode 100644 index 00000000..bd3433be --- /dev/null +++ b/src/app-server/v2/WarningNotification.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. + +export type WarningNotification = { +/** + * Optional thread target when the warning applies to a specific thread. + */ +threadId: string | null, +/** + * Concise warning message for the user. + */ +message: string, }; diff --git a/src/app-server/v2/index.ts b/src/app-server/v2/index.ts index c91b21b3..61097c2f 100644 --- a/src/app-server/v2/index.ts +++ b/src/app-server/v2/index.ts @@ -4,6 +4,8 @@ export type { Account } from "./Account"; export type { AccountLoginCompletedNotification } from "./AccountLoginCompletedNotification"; export type { AccountRateLimitsUpdatedNotification } from "./AccountRateLimitsUpdatedNotification"; export type { AccountUpdatedNotification } from "./AccountUpdatedNotification"; +export type { AddCreditsNudgeCreditType } from "./AddCreditsNudgeCreditType"; +export type { AddCreditsNudgeEmailStatus } from "./AddCreditsNudgeEmailStatus"; export type { AdditionalFileSystemPermissions } from "./AdditionalFileSystemPermissions"; export type { AdditionalMacOsPermissions } from "./AdditionalMacOsPermissions"; export type { AdditionalNetworkPermissions } from "./AdditionalNetworkPermissions"; @@ -94,6 +96,7 @@ export type { ExperimentalFeatureListResponse } from "./ExperimentalFeatureListR export type { ExperimentalFeatureStage } from "./ExperimentalFeatureStage"; export type { ExternalAgentConfigDetectParams } from "./ExternalAgentConfigDetectParams"; export type { ExternalAgentConfigDetectResponse } from "./ExternalAgentConfigDetectResponse"; +export type { ExternalAgentConfigImportCompletedNotification } from "./ExternalAgentConfigImportCompletedNotification"; export type { ExternalAgentConfigImportParams } from "./ExternalAgentConfigImportParams"; export type { ExternalAgentConfigImportResponse } from "./ExternalAgentConfigImportResponse"; export type { ExternalAgentConfigMigrationItem } from "./ExternalAgentConfigMigrationItem"; @@ -148,6 +151,7 @@ export type { HookPromptFragment } from "./HookPromptFragment"; export type { HookRunStatus } from "./HookRunStatus"; export type { HookRunSummary } from "./HookRunSummary"; export type { HookScope } from "./HookScope"; +export type { HookSource } from "./HookSource"; export type { HookStartedNotification } from "./HookStartedNotification"; export type { ItemCompletedNotification } from "./ItemCompletedNotification"; export type { ItemGuardianApprovalReviewCompletedNotification } from "./ItemGuardianApprovalReviewCompletedNotification"; @@ -160,8 +164,12 @@ export type { ListMcpServersResponse } from "./ListMcpServersResponse"; export type { LoginAccountParams } from "./LoginAccountParams"; export type { LoginAccountResponse } from "./LoginAccountResponse"; export type { LogoutAccountResponse } from "./LogoutAccountResponse"; +export type { MarketplaceAddParams } from "./MarketplaceAddParams"; +export type { MarketplaceAddResponse } from "./MarketplaceAddResponse"; export type { MarketplaceInterface } from "./MarketplaceInterface"; export type { MarketplaceLoadErrorInfo } from "./MarketplaceLoadErrorInfo"; +export type { MarketplaceRemoveParams } from "./MarketplaceRemoveParams"; +export type { MarketplaceRemoveResponse } from "./MarketplaceRemoveResponse"; export type { McpAuthStatus } from "./McpAuthStatus"; export type { McpElicitationArrayType } from "./McpElicitationArrayType"; export type { McpElicitationBooleanSchema } from "./McpElicitationBooleanSchema"; @@ -199,6 +207,8 @@ export type { McpServerStartupState } from "./McpServerStartupState"; export type { McpServerStatus } from "./McpServerStatus"; export type { McpServerStatusDetail } from "./McpServerStatusDetail"; export type { McpServerStatusUpdatedNotification } from "./McpServerStatusUpdatedNotification"; +export type { McpServerToolCallParams } from "./McpServerToolCallParams"; +export type { McpServerToolCallResponse } from "./McpServerToolCallResponse"; export type { McpToolCallError } from "./McpToolCallError"; export type { McpToolCallProgressNotification } from "./McpToolCallProgressNotification"; export type { McpToolCallResult } from "./McpToolCallResult"; @@ -206,6 +216,7 @@ export type { McpToolCallStatus } from "./McpToolCallStatus"; export type { MemoryCitation } from "./MemoryCitation"; export type { MemoryCitationEntry } from "./MemoryCitationEntry"; export type { MergeStrategy } from "./MergeStrategy"; +export type { MigrationDetails } from "./MigrationDetails"; export type { Model } from "./Model"; export type { ModelAvailabilityNux } from "./ModelAvailabilityNux"; export type { ModelListParams } from "./ModelListParams"; @@ -244,8 +255,10 @@ export type { PluginSource } from "./PluginSource"; export type { PluginSummary } from "./PluginSummary"; export type { PluginUninstallParams } from "./PluginUninstallParams"; export type { PluginUninstallResponse } from "./PluginUninstallResponse"; +export type { PluginsMigration } from "./PluginsMigration"; export type { ProductSurface } from "./ProductSurface"; export type { ProfileV2 } from "./ProfileV2"; +export type { RateLimitReachedType } from "./RateLimitReachedType"; export type { RateLimitSnapshot } from "./RateLimitSnapshot"; export type { RateLimitWindow } from "./RateLimitWindow"; export type { RawResponseItemCompletedNotification } from "./RawResponseItemCompletedNotification"; @@ -265,6 +278,8 @@ export type { SandboxCommandAssessment } from "./SandboxCommandAssessment"; export type { SandboxMode } from "./SandboxMode"; export type { SandboxPolicy } from "./SandboxPolicy"; export type { SandboxWorkspaceWrite } from "./SandboxWorkspaceWrite"; +export type { SendAddCreditsNudgeEmailParams } from "./SendAddCreditsNudgeEmailParams"; +export type { SendAddCreditsNudgeEmailResponse } from "./SendAddCreditsNudgeEmailResponse"; export type { ServerRequestResolvedNotification } from "./ServerRequestResolvedNotification"; export type { SessionSource } from "./SessionSource"; export type { SkillApprovalDecision } from "./SkillApprovalDecision"; @@ -288,6 +303,7 @@ export type { SkillsRemoteReadParams } from "./SkillsRemoteReadParams"; export type { SkillsRemoteReadResponse } from "./SkillsRemoteReadResponse"; export type { SkillsRemoteWriteParams } from "./SkillsRemoteWriteParams"; export type { SkillsRemoteWriteResponse } from "./SkillsRemoteWriteResponse"; +export type { SortDirection } from "./SortDirection"; export type { TerminalInteractionNotification } from "./TerminalInteractionNotification"; export type { TextElement } from "./TextElement"; export type { TextPosition } from "./TextPosition"; @@ -304,6 +320,8 @@ export type { ThreadCompactStartParams } from "./ThreadCompactStartParams"; export type { ThreadCompactStartResponse } from "./ThreadCompactStartResponse"; export type { ThreadForkParams } from "./ThreadForkParams"; export type { ThreadForkResponse } from "./ThreadForkResponse"; +export type { ThreadInjectItemsParams } from "./ThreadInjectItemsParams"; +export type { ThreadInjectItemsResponse } from "./ThreadInjectItemsResponse"; export type { ThreadItem } from "./ThreadItem"; export type { ThreadListParams } from "./ThreadListParams"; export type { ThreadListResponse } from "./ThreadListResponse"; @@ -323,6 +341,8 @@ export type { ThreadRealtimeOutputAudioDeltaNotification } from "./ThreadRealtim export type { ThreadRealtimeSdpNotification } from "./ThreadRealtimeSdpNotification"; export type { ThreadRealtimeStartTransport } from "./ThreadRealtimeStartTransport"; export type { ThreadRealtimeStartedNotification } from "./ThreadRealtimeStartedNotification"; +export type { ThreadRealtimeTranscriptDeltaNotification } from "./ThreadRealtimeTranscriptDeltaNotification"; +export type { ThreadRealtimeTranscriptDoneNotification } from "./ThreadRealtimeTranscriptDoneNotification"; export type { ThreadRealtimeTranscriptUpdatedNotification } from "./ThreadRealtimeTranscriptUpdatedNotification"; export type { ThreadResumeParams } from "./ThreadResumeParams"; export type { ThreadResumeResponse } from "./ThreadResumeResponse"; @@ -342,6 +362,8 @@ export type { ThreadStatus } from "./ThreadStatus"; export type { ThreadStatusChangedNotification } from "./ThreadStatusChangedNotification"; export type { ThreadTokenUsage } from "./ThreadTokenUsage"; export type { ThreadTokenUsageUpdatedNotification } from "./ThreadTokenUsageUpdatedNotification"; +export type { ThreadTurnsListParams } from "./ThreadTurnsListParams"; +export type { ThreadTurnsListResponse } from "./ThreadTurnsListResponse"; export type { ThreadUnarchiveParams } from "./ThreadUnarchiveParams"; export type { ThreadUnarchiveResponse } from "./ThreadUnarchiveResponse"; export type { ThreadUnarchivedNotification } from "./ThreadUnarchivedNotification"; @@ -371,6 +393,7 @@ export type { TurnStatus } from "./TurnStatus"; export type { TurnSteerParams } from "./TurnSteerParams"; export type { TurnSteerResponse } from "./TurnSteerResponse"; export type { UserInput } from "./UserInput"; +export type { WarningNotification } from "./WarningNotification"; export type { WebSearchAction } from "./WebSearchAction"; export type { WindowsSandboxSetupCompletedNotification } from "./WindowsSandboxSetupCompletedNotification"; export type { WindowsSandboxSetupMode } from "./WindowsSandboxSetupMode"; From 6d45a07f4e679d4013840ebd50bf351cf7f5a4af Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 21 Apr 2026 05:52:45 +0000 Subject: [PATCH 2/6] Fix types and tests regressions after Codex update --- src/CodexAcpClient.ts | 15 ++++++++----- src/CodexEventHandler.ts | 7 +++++- .../CodexACPAgent/CodexAcpClient.test.ts | 6 +++++ .../CodexACPAgent/mcp-session.test.ts | 22 +++++++++---------- 4 files changed, 31 insertions(+), 19 deletions(-) diff --git a/src/CodexAcpClient.ts b/src/CodexAcpClient.ts index a47a8cfb..5c613e9d 100644 --- a/src/CodexAcpClient.ts +++ b/src/CodexAcpClient.ts @@ -190,10 +190,11 @@ export class CodexAcpClient { async resumeSession(request: acp.ResumeSessionRequest): Promise { await this.refreshSkills(request.cwd, request._meta); + const mode = AgentMode.getInitialAgentMode(); const response = await this.codexClient.threadResume({ - approvalPolicy: null, - sandbox: null, + approvalPolicy: mode.approvalPolicy, + sandbox: mode.sandboxMode, baseInstructions: null, config: this.createSessionConfig(request.cwd, request.mcpServers ?? []), cwd: request.cwd, @@ -216,9 +217,10 @@ export class CodexAcpClient { } async loadSession(request: acp.LoadSessionRequest): Promise { + const mode = AgentMode.getInitialAgentMode(); const response = await this.codexClient.threadResume({ - approvalPolicy: null, - sandbox: null, + approvalPolicy: mode.approvalPolicy, + sandbox: mode.sandboxMode, baseInstructions: null, config: this.createSessionConfig(request.cwd, request.mcpServers ?? []), cwd: request.cwd, @@ -243,14 +245,15 @@ export class CodexAcpClient { async newSession(request: acp.NewSessionRequest): Promise { await this.refreshSkills(request.cwd, request._meta); + const mode = AgentMode.getInitialAgentMode(); const response = await this.codexClient.threadStart({ config: this.createSessionConfig(request.cwd, request.mcpServers), modelProvider: this.getModelProvider(), model: null, cwd: request.cwd, - approvalPolicy: null, - sandbox: null, + approvalPolicy: mode.approvalPolicy, + sandbox: mode.sandboxMode, baseInstructions: null, developerInstructions: null, personality: null, diff --git a/src/CodexEventHandler.ts b/src/CodexEventHandler.ts index 833b16a5..7a108ce5 100644 --- a/src/CodexEventHandler.ts +++ b/src/CodexEventHandler.ts @@ -130,7 +130,8 @@ export class CodexEventHandler { case "thread/closed": case "thread/realtime/started": case "thread/realtime/itemAdded": - case "thread/realtime/transcriptUpdated": + case "thread/realtime/transcript/delta": + case "thread/realtime/transcript/done": case "thread/realtime/outputAudio/delta": case "thread/realtime/sdp": case "thread/realtime/error": @@ -138,8 +139,10 @@ export class CodexEventHandler { case "windowsSandbox/setupCompleted": case "account/login/completed": case "skills/changed": + case "warning": case "deprecationNotice": case "mcpServer/oauthLogin/completed": + case "externalAgentConfig/import/completed": case "rawResponseItem/completed": case "thread/started": case "thread/name/updated": @@ -153,6 +156,8 @@ export class CodexEventHandler { case "fuzzyFileSearch/sessionCompleted": return this.handleFuzzyFileSearchSessionCompleted(notification.params); } + const exhaustiveNotification: never = notification; + return exhaustiveNotification; } private async createTextEvent(event: AgentMessageDeltaNotification): Promise { diff --git a/src/__tests__/CodexACPAgent/CodexAcpClient.test.ts b/src/__tests__/CodexACPAgent/CodexAcpClient.test.ts index 98d36037..38b4ce01 100644 --- a/src/__tests__/CodexACPAgent/CodexAcpClient.test.ts +++ b/src/__tests__/CodexACPAgent/CodexAcpClient.test.ts @@ -798,6 +798,7 @@ describe('ACP server test', { timeout: 40_000 }, () => { secondary: null, credits: null, planType: null, + rateLimitReachedType: null, } }); rateLimits.set("limit-2", { @@ -810,6 +811,7 @@ describe('ACP server test', { timeout: 40_000 }, () => { secondary: null, credits: null, planType: null, + rateLimitReachedType: null, } }); @@ -862,6 +864,7 @@ describe('ACP server test', { timeout: 40_000 }, () => { secondary: null, credits: null, planType: null, + rateLimitReachedType: null, } } }); @@ -876,6 +879,7 @@ describe('ACP server test', { timeout: 40_000 }, () => { secondary: null, credits: null, planType: null, + rateLimitReachedType: null, } } }); @@ -892,6 +896,7 @@ describe('ACP server test', { timeout: 40_000 }, () => { secondary: null, credits: null, planType: null, + rateLimitReachedType: null, } }); expect(sessionState.rateLimits!.get("fast-limit")).toEqual({ @@ -904,6 +909,7 @@ describe('ACP server test', { timeout: 40_000 }, () => { secondary: null, credits: null, planType: null, + rateLimitReachedType: null, } }); }); diff --git a/src/__tests__/CodexACPAgent/mcp-session.test.ts b/src/__tests__/CodexACPAgent/mcp-session.test.ts index 84865074..338027ae 100644 --- a/src/__tests__/CodexACPAgent/mcp-session.test.ts +++ b/src/__tests__/CodexACPAgent/mcp-session.test.ts @@ -1,30 +1,28 @@ // noinspection ES6RedundantAwait import {describe, expect, it, vi, beforeEach} from 'vitest'; -import {createTestFixture, type TestFixture} from "../acp-test-utils"; -import type {McpServerStdio} from "@agentclientprotocol/sdk"; +import {createCodexMockTestFixture, createTestSessionState, type CodexMockTestFixture} from "../acp-test-utils"; describe('MCP session configuration', { timeout: 40_000 }, () => { - let fixture: TestFixture; + let fixture: CodexMockTestFixture; beforeEach(() => { - fixture = createTestFixture(); + fixture = createCodexMockTestFixture(); vi.clearAllMocks(); }); it('should return configured mcp', async () => { const codexAcpAgent = fixture.getCodexAcpAgent(); - await codexAcpAgent.initialize({protocolVersion: 1}); + const sessionId = "session-id"; + vi.spyOn(codexAcpAgent, "getSessionState").mockReturnValue(createTestSessionState({ + sessionId, + sessionMcpServers: ["test-mcp"], + })); + vi.spyOn(fixture.getCodexAcpClient(), "listMcpServers").mockResolvedValue({ data: [], nextCursor: null }); - fixture.getCodexAcpClient().authRequired = vi.fn().mockResolvedValue(false); - const mcpServer: McpServerStdio = { - name: "test-mcp", command: "./node_modules/.bin/mcp-hello-world", args: ["example"], env: [{name:"example", value: "example"}] - }; - - const newSessionResponse = await codexAcpAgent.newSession({cwd: "", mcpServers: [mcpServer]}); fixture.clearAcpConnectionDump(); - await codexAcpAgent.prompt({sessionId: newSessionResponse.sessionId, prompt: [{type: "text", text: "/mcp"}]}); + await codexAcpAgent.prompt({sessionId, prompt: [{type: "text", text: "/mcp"}]}); const transportDump = fixture.getAcpConnectionDump([]); expect(transportDump).contain("Configured MCP servers:"); expect(transportDump).contain("- test-mcp"); From 46210d3743258c3bc32b7edcc204513a5fa48479 Mon Sep 17 00:00:00 2001 From: "Nikolai.Sviridov" Date: Tue, 21 Apr 2026 11:23:23 +0200 Subject: [PATCH 3/6] fix: revert sandbox, approvalPolicy override, revert mcp test --- src/CodexAcpClient.ts | 10 ++++----- .../CodexACPAgent/mcp-session.test.ts | 22 ++++++++++--------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/CodexAcpClient.ts b/src/CodexAcpClient.ts index 5c613e9d..5e951670 100644 --- a/src/CodexAcpClient.ts +++ b/src/CodexAcpClient.ts @@ -190,11 +190,10 @@ export class CodexAcpClient { async resumeSession(request: acp.ResumeSessionRequest): Promise { await this.refreshSkills(request.cwd, request._meta); - const mode = AgentMode.getInitialAgentMode(); const response = await this.codexClient.threadResume({ - approvalPolicy: mode.approvalPolicy, - sandbox: mode.sandboxMode, + approvalPolicy: null, + sandbox: null, baseInstructions: null, config: this.createSessionConfig(request.cwd, request.mcpServers ?? []), cwd: request.cwd, @@ -217,10 +216,9 @@ export class CodexAcpClient { } async loadSession(request: acp.LoadSessionRequest): Promise { - const mode = AgentMode.getInitialAgentMode(); const response = await this.codexClient.threadResume({ - approvalPolicy: mode.approvalPolicy, - sandbox: mode.sandboxMode, + approvalPolicy: null, + sandbox: null, baseInstructions: null, config: this.createSessionConfig(request.cwd, request.mcpServers ?? []), cwd: request.cwd, diff --git a/src/__tests__/CodexACPAgent/mcp-session.test.ts b/src/__tests__/CodexACPAgent/mcp-session.test.ts index 338027ae..84865074 100644 --- a/src/__tests__/CodexACPAgent/mcp-session.test.ts +++ b/src/__tests__/CodexACPAgent/mcp-session.test.ts @@ -1,28 +1,30 @@ // noinspection ES6RedundantAwait import {describe, expect, it, vi, beforeEach} from 'vitest'; -import {createCodexMockTestFixture, createTestSessionState, type CodexMockTestFixture} from "../acp-test-utils"; +import {createTestFixture, type TestFixture} from "../acp-test-utils"; +import type {McpServerStdio} from "@agentclientprotocol/sdk"; describe('MCP session configuration', { timeout: 40_000 }, () => { - let fixture: CodexMockTestFixture; + let fixture: TestFixture; beforeEach(() => { - fixture = createCodexMockTestFixture(); + fixture = createTestFixture(); vi.clearAllMocks(); }); it('should return configured mcp', async () => { const codexAcpAgent = fixture.getCodexAcpAgent(); - const sessionId = "session-id"; - vi.spyOn(codexAcpAgent, "getSessionState").mockReturnValue(createTestSessionState({ - sessionId, - sessionMcpServers: ["test-mcp"], - })); - vi.spyOn(fixture.getCodexAcpClient(), "listMcpServers").mockResolvedValue({ data: [], nextCursor: null }); + await codexAcpAgent.initialize({protocolVersion: 1}); + fixture.getCodexAcpClient().authRequired = vi.fn().mockResolvedValue(false); + const mcpServer: McpServerStdio = { + name: "test-mcp", command: "./node_modules/.bin/mcp-hello-world", args: ["example"], env: [{name:"example", value: "example"}] + }; + + const newSessionResponse = await codexAcpAgent.newSession({cwd: "", mcpServers: [mcpServer]}); fixture.clearAcpConnectionDump(); - await codexAcpAgent.prompt({sessionId, prompt: [{type: "text", text: "/mcp"}]}); + await codexAcpAgent.prompt({sessionId: newSessionResponse.sessionId, prompt: [{type: "text", text: "/mcp"}]}); const transportDump = fixture.getAcpConnectionDump([]); expect(transportDump).contain("Configured MCP servers:"); expect(transportDump).contain("- test-mcp"); From 100ce0e5d41c6f795b02d1785be2ba33c347a372 Mon Sep 17 00:00:00 2001 From: "Nikolai.Sviridov" Date: Tue, 21 Apr 2026 11:27:16 +0200 Subject: [PATCH 4/6] fix: revert sandbox, approvalPolicy override --- src/CodexAcpClient.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/CodexAcpClient.ts b/src/CodexAcpClient.ts index 5e951670..a47a8cfb 100644 --- a/src/CodexAcpClient.ts +++ b/src/CodexAcpClient.ts @@ -243,15 +243,14 @@ export class CodexAcpClient { async newSession(request: acp.NewSessionRequest): Promise { await this.refreshSkills(request.cwd, request._meta); - const mode = AgentMode.getInitialAgentMode(); const response = await this.codexClient.threadStart({ config: this.createSessionConfig(request.cwd, request.mcpServers), modelProvider: this.getModelProvider(), model: null, cwd: request.cwd, - approvalPolicy: mode.approvalPolicy, - sandbox: mode.sandboxMode, + approvalPolicy: null, + sandbox: null, baseInstructions: null, developerInstructions: null, personality: null, From 1132d517e69ec7ebcd5db596d0da1eb0630f2be5 Mon Sep 17 00:00:00 2001 From: "Nikolai.Sviridov" Date: Tue, 21 Apr 2026 13:22:47 +0200 Subject: [PATCH 5/6] fix: remove extra switch case check --- src/CodexEventHandler.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/CodexEventHandler.ts b/src/CodexEventHandler.ts index 7a108ce5..99205742 100644 --- a/src/CodexEventHandler.ts +++ b/src/CodexEventHandler.ts @@ -156,8 +156,6 @@ export class CodexEventHandler { case "fuzzyFileSearch/sessionCompleted": return this.handleFuzzyFileSearchSessionCompleted(notification.params); } - const exhaustiveNotification: never = notification; - return exhaustiveNotification; } private async createTextEvent(event: AgentMessageDeltaNotification): Promise { From edb26805af981747dd8006b0fc3628e8c7516842 Mon Sep 17 00:00:00 2001 From: "Nikolai.Sviridov" Date: Tue, 21 Apr 2026 13:47:28 +0200 Subject: [PATCH 6/6] fix: handle warning --- src/CodexEventHandler.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/CodexEventHandler.ts b/src/CodexEventHandler.ts index 99205742..a5f11bca 100644 --- a/src/CodexEventHandler.ts +++ b/src/CodexEventHandler.ts @@ -18,7 +18,8 @@ import type { ItemStartedNotification, ThreadItem, ModelReroutedNotification, ThreadTokenUsageUpdatedNotification, - TurnPlanUpdatedNotification + TurnPlanUpdatedNotification, + WarningNotification } from "./app-server/v2"; import type { McpStartupCompleteEvent } from "./app-server"; import {toTokenCount} from "./TokenCount"; @@ -115,6 +116,8 @@ export class CodexEventHandler { return null; case "configWarning": return await this.createConfigWarningEvent(notification.params); + case "warning": + return this.createWarningEvent(notification.params); case "thread/compacted": return { sessionUpdate: "agent_message_chunk", @@ -139,7 +142,6 @@ export class CodexEventHandler { case "windowsSandbox/setupCompleted": case "account/login/completed": case "skills/changed": - case "warning": case "deprecationNotice": case "mcpServer/oauthLogin/completed": case "externalAgentConfig/import/completed": @@ -179,6 +181,16 @@ export class CodexEventHandler { } } + private createWarningEvent(event: WarningNotification): UpdateSessionEvent { + return { + sessionUpdate: "agent_message_chunk", + content: { + type: "text", + text: `Warning: ${event.message}\n\n` + } + }; + } + private createModelReroutedEvent(event: ModelReroutedNotification): UpdateSessionEvent { return { sessionUpdate: "agent_thought_chunk",