diff --git a/package-lock.json b/package-lock.json index 3847268a..d6bcc626 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "dependencies": { "@agentclientprotocol/sdk": "^1.3.0", - "@openai/codex": "^0.145.0", + "@openai/codex": "^0.146.0", "diff": "^9.0.0", "open": "^11.0.0", "vscode-jsonrpc": "^9.0.1", @@ -929,9 +929,9 @@ } }, "node_modules/@openai/codex": { - "version": "0.145.0", - "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.145.0.tgz", - "integrity": "sha512-/PSPSFujjjmiyVFvG2yu/grOFhsWdokTH8t2KGWhXSo/M5n/dIDsnbsnO82/7bLtIoDuzQf7ATBUMWqPWQINlQ==", + "version": "0.146.0", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.146.0.tgz", + "integrity": "sha512-yG3sPWNda/2YAIQIDq9MrrjoCTIQ7rxYM5IasrG3VBcuhCLTkgeg/JzqmJq1V98RE4MJ5jCxDXXQlOjrditFRw==", "license": "Apache-2.0", "bin": { "codex": "bin/codex.js" @@ -940,19 +940,19 @@ "node": ">=16" }, "optionalDependencies": { - "@openai/codex-darwin-arm64": "npm:@openai/codex@0.145.0-darwin-arm64", - "@openai/codex-darwin-x64": "npm:@openai/codex@0.145.0-darwin-x64", - "@openai/codex-linux-arm64": "npm:@openai/codex@0.145.0-linux-arm64", - "@openai/codex-linux-x64": "npm:@openai/codex@0.145.0-linux-x64", - "@openai/codex-win32-arm64": "npm:@openai/codex@0.145.0-win32-arm64", - "@openai/codex-win32-x64": "npm:@openai/codex@0.145.0-win32-x64" + "@openai/codex-darwin-arm64": "npm:@openai/codex@0.146.0-darwin-arm64", + "@openai/codex-darwin-x64": "npm:@openai/codex@0.146.0-darwin-x64", + "@openai/codex-linux-arm64": "npm:@openai/codex@0.146.0-linux-arm64", + "@openai/codex-linux-x64": "npm:@openai/codex@0.146.0-linux-x64", + "@openai/codex-win32-arm64": "npm:@openai/codex@0.146.0-win32-arm64", + "@openai/codex-win32-x64": "npm:@openai/codex@0.146.0-win32-x64" } }, "node_modules/@openai/codex-darwin-arm64": { "name": "@openai/codex", - "version": "0.145.0-darwin-arm64", - "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.145.0-darwin-arm64.tgz", - "integrity": "sha512-h6aQ0UxnaP8mIM/9/qPAH9MNkRliJo88toq1T36IxNM2L5JSU0TFamu+MZn7YkFgDsrp0RfiI+97Tm8AVVxqtA==", + "version": "0.146.0-darwin-arm64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.146.0-darwin-arm64.tgz", + "integrity": "sha512-nb61yX4r5L6Z0dlC4o3u0GAK1YCd4TUvjaB382bajDoh84V+uv2hTBIVZ++fgXWV9yoeuNrNnNcn7GoTGOe2Tg==", "cpu": [ "arm64" ], @@ -967,9 +967,9 @@ }, "node_modules/@openai/codex-darwin-x64": { "name": "@openai/codex", - "version": "0.145.0-darwin-x64", - "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.145.0-darwin-x64.tgz", - "integrity": "sha512-FCYzVKCa9VoLtg9gVyzKpqylonfgZrfcWZN6HsXAZPeuo8CukdMqdgTUOhDn2V6h3MbqS0z6VqQVKUllN/yKhA==", + "version": "0.146.0-darwin-x64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.146.0-darwin-x64.tgz", + "integrity": "sha512-hTQR5jy/ObfTf1MDnuJCZJAe+SljKE8DDwQWN6lDFgjsPhMQz852U2tILt8Ei+G5GkQSzemHYKl2AYPwW0Y5xw==", "cpu": [ "x64" ], @@ -984,9 +984,9 @@ }, "node_modules/@openai/codex-linux-arm64": { "name": "@openai/codex", - "version": "0.145.0-linux-arm64", - "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.145.0-linux-arm64.tgz", - "integrity": "sha512-8OLcPXaAol/FOrRoDxWhIiHIFa73KRsM41EKocjRZOwiT4TcelzJWn3dHyiuSb7teWF25rrslvSPyvhULYRRCQ==", + "version": "0.146.0-linux-arm64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.146.0-linux-arm64.tgz", + "integrity": "sha512-qiYDxkkEFnXG7joadJW6Q+XcgyDXCpGdpa9nk/c+i0gEomur1j7bHvx12NfWWCF/y8Tqri6ay+FLuC2MjdehtA==", "cpu": [ "arm64" ], @@ -1001,9 +1001,9 @@ }, "node_modules/@openai/codex-linux-x64": { "name": "@openai/codex", - "version": "0.145.0-linux-x64", - "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.145.0-linux-x64.tgz", - "integrity": "sha512-u8w8LLv3DvsfrDCoswLIemZ0SoNEXyi511WsfFsSiYUazk9qMsB/NtU8N9vhAfN7mZAxLFoMex4v66JjHuZWwA==", + "version": "0.146.0-linux-x64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.146.0-linux-x64.tgz", + "integrity": "sha512-fswvyGprAPCMiOEue/7MKMk7pCjh9kZIJfJX5i9atmfnmGYbYCcUhZsEH9LEP0+0t5xyPqDbfNXY7NSxIVuXxA==", "cpu": [ "x64" ], @@ -1018,9 +1018,9 @@ }, "node_modules/@openai/codex-win32-arm64": { "name": "@openai/codex", - "version": "0.145.0-win32-arm64", - "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.145.0-win32-arm64.tgz", - "integrity": "sha512-sub61rjEFevi1i3Zx7nAd4JM5XxoNFqMqFc5LfTo2xSI8ixHjFvEYDFDXwXOftT04n3Ht1Wh271ioUZpDiEjEg==", + "version": "0.146.0-win32-arm64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.146.0-win32-arm64.tgz", + "integrity": "sha512-EW6zdjDe+SLX2Iw+xymJ5+Pz2+DGexdstfFHXh4Ub+TfJsQPiMjGfZfNaoWgdJ2FsqSIzVKu2+G0KCMGYz2W8g==", "cpu": [ "arm64" ], @@ -1035,9 +1035,9 @@ }, "node_modules/@openai/codex-win32-x64": { "name": "@openai/codex", - "version": "0.145.0-win32-x64", - "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.145.0-win32-x64.tgz", - "integrity": "sha512-u0h9lk094CaXRSqE34SBW2dRaQTPa6fASXqehczWH9QdsU62mBsiAgAdp6tCG4i+YzPmmhjD8FdXNnYGNmwuMg==", + "version": "0.146.0-win32-x64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.146.0-win32-x64.tgz", + "integrity": "sha512-b3lxMYeR0+IhstNo4JjX1P9cPc1xwVcCVkPd1lD1wpWPJ0SBhpIkPczwbu3ZRkJcdyl342+rgyf4DUrbZLdrGA==", "cpu": [ "x64" ], @@ -1153,9 +1153,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1173,9 +1170,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1193,9 +1187,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1213,9 +1204,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1233,9 +1221,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1253,9 +1238,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -2953,9 +2935,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -2977,9 +2956,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3001,9 +2977,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3025,9 +2998,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ diff --git a/package.json b/package.json index fcdaf98f..316ed1a2 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ }, "dependencies": { "@agentclientprotocol/sdk": "^1.3.0", - "@openai/codex": "^0.145.0", + "@openai/codex": "^0.146.0", "diff": "^9.0.0", "open": "^11.0.0", "vscode-jsonrpc": "^9.0.1", diff --git a/src/__tests__/CodexACPAgent/command-action-events.test.ts b/src/__tests__/CodexACPAgent/command-action-events.test.ts index 17140df7..671faba6 100644 --- a/src/__tests__/CodexACPAgent/command-action-events.test.ts +++ b/src/__tests__/CodexACPAgent/command-action-events.test.ts @@ -29,6 +29,8 @@ describe('CodexEventHandler - command action events', () => { item: { type: 'commandExecution', id: 'command-list-path', + pluginId: null, + scriptPath: null, command: 'ls /test/project', cwd: '/test/project', processId: null, @@ -65,6 +67,8 @@ describe('CodexEventHandler - command action events', () => { item: { type: 'commandExecution', id: 'command-list-no-path', + pluginId: null, + scriptPath: null, command: 'ls', cwd: '/test/project', processId: null, @@ -101,6 +105,8 @@ describe('CodexEventHandler - command action events', () => { item: { type: 'commandExecution', id: 'command-read-file', + pluginId: null, + scriptPath: null, command: 'sed -n "1,80p" /test/project/src/index.ts', cwd: '/test/project', processId: null, @@ -138,6 +144,8 @@ describe('CodexEventHandler - command action events', () => { item: { type: 'commandExecution', id: 'command-search-query-path', + pluginId: null, + scriptPath: null, command: 'rg "Service" src', cwd: '/test/project', processId: null, @@ -175,6 +183,8 @@ describe('CodexEventHandler - command action events', () => { item: { type: 'commandExecution', id: 'command-search-query-only', + pluginId: null, + scriptPath: null, command: 'rg "Service"', cwd: '/test/project', processId: null, @@ -212,6 +222,8 @@ describe('CodexEventHandler - command action events', () => { item: { type: 'commandExecution', id: 'command-search-path-only', + pluginId: null, + scriptPath: null, command: 'rg --files -g "*service*"', cwd: '/test/project', processId: null, @@ -249,6 +261,8 @@ describe('CodexEventHandler - command action events', () => { item: { type: 'commandExecution', id: 'command-search-no-query-no-path', + pluginId: null, + scriptPath: null, command: 'rg', cwd: '/test/project', processId: null, diff --git a/src/__tests__/CodexACPAgent/list-sessions.test.ts b/src/__tests__/CodexACPAgent/list-sessions.test.ts index 845ee0fd..a0332fce 100644 --- a/src/__tests__/CodexACPAgent/list-sessions.test.ts +++ b/src/__tests__/CodexACPAgent/list-sessions.test.ts @@ -28,6 +28,7 @@ describe("CodexACPAgent - list sessions", () => { path: null, cwd: "/repo/project", cliVersion: "0.0.0", + isPinned: false, source: "cli", agentNickname: null, agentRole: null, @@ -51,6 +52,7 @@ describe("CodexACPAgent - list sessions", () => { path: null, cwd: "/repo/other", cliVersion: "0.0.0", + isPinned: false, source: "cli", agentNickname: null, agentRole: null, @@ -113,6 +115,7 @@ describe("CodexACPAgent - list sessions", () => { path: null, cwd: "/repo/project", cliVersion: "0.0.0", + isPinned: false, source: "cli", agentNickname: null, agentRole: null, @@ -188,6 +191,7 @@ describe("CodexACPAgent - list sessions", () => { path: null, cwd: "/repo/project", cliVersion: "0.0.0", + isPinned: false, source: "cli", agentNickname: null, agentRole: null, diff --git a/src/__tests__/CodexACPAgent/load-session.test.ts b/src/__tests__/CodexACPAgent/load-session.test.ts index a64089e1..27a42d97 100644 --- a/src/__tests__/CodexACPAgent/load-session.test.ts +++ b/src/__tests__/CodexACPAgent/load-session.test.ts @@ -62,6 +62,7 @@ describe("CodexACPAgent - loadSession", () => { path: null, cwd: "/test/project", cliVersion: "0.0.0", + isPinned: false, source: "cli", agentNickname: null, agentRole: null, @@ -102,6 +103,8 @@ describe("CodexACPAgent - loadSession", () => { { type: "commandExecution", id: "item-cmd-1", + pluginId: null, + scriptPath: null, command: "ls", cwd: "/test/project", processId: null, @@ -280,6 +283,7 @@ describe("CodexACPAgent - loadSession", () => { path: null, cwd: "/test/project", cliVersion: "0.0.0", + isPinned: false, source: "cli", agentNickname: null, agentRole: null, @@ -491,6 +495,7 @@ describe("CodexACPAgent - loadSession", () => { path: rolloutPath, cwd: "/test/project", cliVersion: "0.139.0", + isPinned: false, source: "vscode", agentNickname: null, agentRole: null, @@ -622,6 +627,7 @@ describe("CodexACPAgent - loadSession", () => { path: null, cwd: "/test/project", cliVersion: "0.0.0", + isPinned: false, source: "cli", agentNickname: null, agentRole: null, diff --git a/src/__tests__/CodexACPAgent/terminal-output-events.test.ts b/src/__tests__/CodexACPAgent/terminal-output-events.test.ts index 27461e46..d316659d 100644 --- a/src/__tests__/CodexACPAgent/terminal-output-events.test.ts +++ b/src/__tests__/CodexACPAgent/terminal-output-events.test.ts @@ -29,6 +29,8 @@ describe('CodexEventHandler - terminal output events', () => { item: { type: 'commandExecution', id: 'command-123', + pluginId: null, + scriptPath: null, command: 'ls -la', cwd: '/test/project', processId: null, @@ -67,6 +69,8 @@ describe('CodexEventHandler - terminal output events', () => { item: { type: 'commandExecution', id: 'command-shell-prefix', + pluginId: null, + scriptPath: null, command, cwd: '/test/project', processId: null, @@ -135,6 +139,8 @@ describe('CodexEventHandler - terminal output events', () => { item: { type: 'commandExecution', id: 'command-123', + pluginId: null, + scriptPath: null, command: 'ls -la', cwd: '/test/project', processId: 'pid-456', @@ -165,6 +171,8 @@ describe('CodexEventHandler - terminal output events', () => { item: { type: 'commandExecution', id: 'command-456', + pluginId: null, + scriptPath: null, command: 'cat nonexistent.txt', cwd: '/test/project', processId: 'pid-789', @@ -223,6 +231,8 @@ describe('CodexEventHandler - terminal output events', () => { item: { type: 'commandExecution', id: 'command-flow', + pluginId: null, + scriptPath: null, command: 'echo hello', cwd: '/test/project', processId: null, @@ -255,6 +265,8 @@ describe('CodexEventHandler - terminal output events', () => { item: { type: 'commandExecution', id: 'command-flow', + pluginId: null, + scriptPath: null, command: 'echo hello', cwd: '/test/project', processId: 'pid-123', @@ -295,6 +307,8 @@ describe('CodexEventHandler - terminal output events', () => { item: { type: 'commandExecution', id: 'command-terminal-output', + pluginId: null, + scriptPath: null, command: 'python manage.py migrate', cwd: '/test/project', processId: null, @@ -335,6 +349,8 @@ describe('CodexEventHandler - terminal output events', () => { item: { type: 'commandExecution', id: 'command-terminal-output', + pluginId: null, + scriptPath: null, command: 'python manage.py migrate', cwd: '/test/project', processId: 'pid-456', @@ -376,6 +392,8 @@ describe('CodexEventHandler - terminal output events', () => { item: { type: 'commandExecution', id: 'command-terminal-output-completion', + pluginId: null, + scriptPath: null, command: 'git status --short', cwd: '/test/project', processId: null, @@ -397,6 +415,8 @@ describe('CodexEventHandler - terminal output events', () => { item: { type: 'commandExecution', id: 'command-terminal-output-completion', + pluginId: null, + scriptPath: null, command: 'git status --short', cwd: '/test/project', processId: 'pid-456', @@ -436,6 +456,8 @@ describe('CodexEventHandler - terminal output events', () => { item: { type: 'commandExecution', id: 'command-read-file', + pluginId: null, + scriptPath: null, command: 'cat README.md', cwd: '/test/project', processId: null, @@ -473,6 +495,8 @@ describe('CodexEventHandler - terminal output events', () => { item: { type: 'commandExecution', id: 'command-read-file', + pluginId: null, + scriptPath: null, command: 'cat README.md', cwd: '/test/project', processId: 'pid-456', diff --git a/src/app-server/ClientRequest.ts b/src/app-server/ClientRequest.ts index bcfcaf6d..b67f518a 100644 --- a/src/app-server/ClientRequest.ts +++ b/src/app-server/ClientRequest.ts @@ -22,6 +22,7 @@ import type { ConsumeAccountRateLimitResetCreditParams } from "./v2/ConsumeAccou import type { ExperimentalFeatureEnablementSetParams } from "./v2/ExperimentalFeatureEnablementSetParams"; import type { ExperimentalFeatureListParams } from "./v2/ExperimentalFeatureListParams"; import type { ExternalAgentConfigDetectParams } from "./v2/ExternalAgentConfigDetectParams"; +import type { ExternalAgentConfigImportHistoryRecordParams } from "./v2/ExternalAgentConfigImportHistoryRecordParams"; import type { ExternalAgentConfigImportParams } from "./v2/ExternalAgentConfigImportParams"; import type { FeedbackUploadParams } from "./v2/FeedbackUploadParams"; import type { FsCopyParams } from "./v2/FsCopyParams"; @@ -90,4 +91,4 @@ import type { WindowsSandboxSetupStartParams } from "./v2/WindowsSandboxSetupSta /** * Request from the client to the server. */ -export type ClientRequest ={ "method": "initialize", id: RequestId, params: InitializeParams, } | { "method": "thread/start", id: RequestId, params: ThreadStartParams, } | { "method": "thread/resume", id: RequestId, params: ThreadResumeParams, } | { "method": "thread/fork", id: RequestId, params: ThreadForkParams, } | { "method": "thread/archive", id: RequestId, params: ThreadArchiveParams, } | { "method": "thread/delete", id: RequestId, params: ThreadDeleteParams, } | { "method": "thread/unsubscribe", id: RequestId, params: ThreadUnsubscribeParams, } | { "method": "thread/name/set", id: RequestId, params: ThreadSetNameParams, } | { "method": "thread/goal/set", id: RequestId, params: ThreadGoalSetParams, } | { "method": "thread/goal/get", id: RequestId, params: ThreadGoalGetParams, } | { "method": "thread/goal/clear", id: RequestId, params: ThreadGoalClearParams, } | { "method": "thread/metadata/update", id: RequestId, params: ThreadMetadataUpdateParams, } | { "method": "thread/unarchive", id: RequestId, params: ThreadUnarchiveParams, } | { "method": "thread/compact/start", id: RequestId, params: ThreadCompactStartParams, } | { "method": "thread/shellCommand", id: RequestId, params: ThreadShellCommandParams, } | { "method": "thread/approveGuardianDeniedAction", id: RequestId, params: ThreadApproveGuardianDeniedActionParams, } | { "method": "thread/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/inject_items", id: RequestId, params: ThreadInjectItemsParams, } | { "method": "skills/list", id: RequestId, params: SkillsListParams, } | { "method": "skills/extraRoots/set", id: RequestId, params: SkillsExtraRootsSetParams, } | { "method": "hooks/list", id: RequestId, params: HooksListParams, } | { "method": "marketplace/add", id: RequestId, params: MarketplaceAddParams, } | { "method": "marketplace/remove", id: RequestId, params: MarketplaceRemoveParams, } | { "method": "marketplace/upgrade", id: RequestId, params: MarketplaceUpgradeParams, } | { "method": "plugin/list", id: RequestId, params: PluginListParams, } | { "method": "plugin/installed", id: RequestId, params: PluginInstalledParams, } | { "method": "plugin/read", id: RequestId, params: PluginReadParams, } | { "method": "plugin/skill/read", id: RequestId, params: PluginSkillReadParams, } | { "method": "plugin/share/save", id: RequestId, params: PluginShareSaveParams, } | { "method": "plugin/share/updateTargets", id: RequestId, params: PluginShareUpdateTargetsParams, } | { "method": "plugin/share/list", id: RequestId, params: PluginShareListParams, } | { "method": "plugin/share/checkout", id: RequestId, params: PluginShareCheckoutParams, } | { "method": "plugin/share/delete", id: RequestId, params: PluginShareDeleteParams, } | { "method": "app/read", id: RequestId, params: AppsReadParams, } | { "method": "app/list", id: RequestId, params: AppsListParams, } | { "method": "app/installed", id: RequestId, params: AppsInstalledParams, } | { "method": "fs/readFile", id: RequestId, params: FsReadFileParams, } | { "method": "fs/writeFile", id: RequestId, params: FsWriteFileParams, } | { "method": "fs/createDirectory", id: RequestId, params: FsCreateDirectoryParams, } | { "method": "fs/getMetadata", id: RequestId, params: FsGetMetadataParams, } | { "method": "fs/readDirectory", id: RequestId, params: FsReadDirectoryParams, } | { "method": "fs/remove", id: RequestId, params: FsRemoveParams, } | { "method": "fs/copy", id: RequestId, params: FsCopyParams, } | { "method": "fs/watch", id: RequestId, params: FsWatchParams, } | { "method": "fs/unwatch", id: RequestId, params: FsUnwatchParams, } | { "method": "skills/config/write", id: RequestId, params: SkillsConfigWriteParams, } | { "method": "plugin/install", id: RequestId, params: PluginInstallParams, } | { "method": "plugin/uninstall", id: RequestId, params: PluginUninstallParams, } | { "method": "turn/start", id: RequestId, params: TurnStartParams, } | { "method": "turn/steer", id: RequestId, params: TurnSteerParams, } | { "method": "turn/interrupt", id: RequestId, params: TurnInterruptParams, } | { "method": "review/start", id: RequestId, params: ReviewStartParams, } | { "method": "model/list", id: RequestId, params: ModelListParams, } | { "method": "modelProvider/capabilities/read", id: RequestId, params: ModelProviderCapabilitiesReadParams, } | { "method": "experimentalFeature/list", id: RequestId, params: ExperimentalFeatureListParams, } | { "method": "permissionProfile/list", id: RequestId, params: PermissionProfileListParams, } | { "method": "experimentalFeature/enablement/set", id: RequestId, params: ExperimentalFeatureEnablementSetParams, } | { "method": "mcpServer/oauth/login", id: RequestId, params: McpServerOauthLoginParams, } | { "method": "config/mcpServer/reload", id: RequestId, params: undefined, } | { "method": "mcpServerStatus/list", id: RequestId, params: ListMcpServerStatusParams, } | { "method": "mcpServer/resource/read", id: RequestId, params: McpResourceReadParams, } | { "method": "mcpServer/tool/call", id: RequestId, params: McpServerToolCallParams, } | { "method": "windowsSandbox/setupStart", id: RequestId, params: WindowsSandboxSetupStartParams, } | { "method": "windowsSandbox/readiness", id: RequestId, params: undefined, } | { "method": "account/login/start", id: RequestId, params: LoginAccountParams, } | { "method": "account/login/cancel", id: RequestId, params: CancelLoginAccountParams, } | { "method": "account/logout", id: RequestId, params: undefined, } | { "method": "account/rateLimits/read", id: RequestId, params: undefined, } | { "method": "account/rateLimitResetCredit/consume", id: RequestId, params: ConsumeAccountRateLimitResetCreditParams, } | { "method": "account/usage/read", id: RequestId, params: undefined, } | { "method": "account/workspaceMessages/read", id: RequestId, params: undefined, } | { "method": "account/sendAddCreditsNudgeEmail", id: RequestId, params: SendAddCreditsNudgeEmailParams, } | { "method": "feedback/upload", id: RequestId, params: FeedbackUploadParams, } | { "method": "command/exec", id: RequestId, params: CommandExecParams, } | { "method": "command/exec/write", id: RequestId, params: CommandExecWriteParams, } | { "method": "command/exec/terminate", id: RequestId, params: CommandExecTerminateParams, } | { "method": "command/exec/resize", id: RequestId, params: CommandExecResizeParams, } | { "method": "config/read", id: RequestId, params: ConfigReadParams, } | { "method": "externalAgentConfig/detect", id: RequestId, params: ExternalAgentConfigDetectParams, } | { "method": "externalAgentConfig/import", id: RequestId, params: ExternalAgentConfigImportParams, } | { "method": "externalAgentConfig/import/readHistories", id: RequestId, params: undefined, } | { "method": "config/value/write", id: RequestId, params: ConfigValueWriteParams, } | { "method": "config/batchWrite", id: RequestId, params: ConfigBatchWriteParams, } | { "method": "configRequirements/read", id: RequestId, params: undefined, } | { "method": "account/read", id: RequestId, params: GetAccountParams, } | { "method": "getConversationSummary", id: RequestId, params: GetConversationSummaryParams, } | { "method": "gitDiffToRemote", id: RequestId, params: GitDiffToRemoteParams, } | { "method": "getAuthStatus", id: RequestId, params: GetAuthStatusParams, } | { "method": "fuzzyFileSearch", id: RequestId, params: FuzzyFileSearchParams, }; +export type ClientRequest ={ "method": "initialize", id: RequestId, params: InitializeParams, } | { "method": "thread/start", id: RequestId, params: ThreadStartParams, } | { "method": "thread/resume", id: RequestId, params: ThreadResumeParams, } | { "method": "thread/fork", id: RequestId, params: ThreadForkParams, } | { "method": "thread/archive", id: RequestId, params: ThreadArchiveParams, } | { "method": "thread/delete", id: RequestId, params: ThreadDeleteParams, } | { "method": "thread/unsubscribe", id: RequestId, params: ThreadUnsubscribeParams, } | { "method": "thread/name/set", id: RequestId, params: ThreadSetNameParams, } | { "method": "thread/goal/set", id: RequestId, params: ThreadGoalSetParams, } | { "method": "thread/goal/get", id: RequestId, params: ThreadGoalGetParams, } | { "method": "thread/goal/clear", id: RequestId, params: ThreadGoalClearParams, } | { "method": "thread/metadata/update", id: RequestId, params: ThreadMetadataUpdateParams, } | { "method": "thread/unarchive", id: RequestId, params: ThreadUnarchiveParams, } | { "method": "thread/compact/start", id: RequestId, params: ThreadCompactStartParams, } | { "method": "thread/shellCommand", id: RequestId, params: ThreadShellCommandParams, } | { "method": "thread/approveGuardianDeniedAction", id: RequestId, params: ThreadApproveGuardianDeniedActionParams, } | { "method": "thread/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/inject_items", id: RequestId, params: ThreadInjectItemsParams, } | { "method": "skills/list", id: RequestId, params: SkillsListParams, } | { "method": "skills/extraRoots/set", id: RequestId, params: SkillsExtraRootsSetParams, } | { "method": "hooks/list", id: RequestId, params: HooksListParams, } | { "method": "marketplace/add", id: RequestId, params: MarketplaceAddParams, } | { "method": "marketplace/remove", id: RequestId, params: MarketplaceRemoveParams, } | { "method": "marketplace/upgrade", id: RequestId, params: MarketplaceUpgradeParams, } | { "method": "plugin/list", id: RequestId, params: PluginListParams, } | { "method": "plugin/installed", id: RequestId, params: PluginInstalledParams, } | { "method": "plugin/read", id: RequestId, params: PluginReadParams, } | { "method": "plugin/skill/read", id: RequestId, params: PluginSkillReadParams, } | { "method": "plugin/share/save", id: RequestId, params: PluginShareSaveParams, } | { "method": "plugin/share/updateTargets", id: RequestId, params: PluginShareUpdateTargetsParams, } | { "method": "plugin/share/list", id: RequestId, params: PluginShareListParams, } | { "method": "plugin/share/checkout", id: RequestId, params: PluginShareCheckoutParams, } | { "method": "plugin/share/delete", id: RequestId, params: PluginShareDeleteParams, } | { "method": "app/read", id: RequestId, params: AppsReadParams, } | { "method": "app/list", id: RequestId, params: AppsListParams, } | { "method": "app/installed", id: RequestId, params: AppsInstalledParams, } | { "method": "fs/readFile", id: RequestId, params: FsReadFileParams, } | { "method": "fs/writeFile", id: RequestId, params: FsWriteFileParams, } | { "method": "fs/createDirectory", id: RequestId, params: FsCreateDirectoryParams, } | { "method": "fs/getMetadata", id: RequestId, params: FsGetMetadataParams, } | { "method": "fs/readDirectory", id: RequestId, params: FsReadDirectoryParams, } | { "method": "fs/remove", id: RequestId, params: FsRemoveParams, } | { "method": "fs/copy", id: RequestId, params: FsCopyParams, } | { "method": "fs/watch", id: RequestId, params: FsWatchParams, } | { "method": "fs/unwatch", id: RequestId, params: FsUnwatchParams, } | { "method": "skills/config/write", id: RequestId, params: SkillsConfigWriteParams, } | { "method": "plugin/install", id: RequestId, params: PluginInstallParams, } | { "method": "plugin/uninstall", id: RequestId, params: PluginUninstallParams, } | { "method": "turn/start", id: RequestId, params: TurnStartParams, } | { "method": "turn/steer", id: RequestId, params: TurnSteerParams, } | { "method": "turn/interrupt", id: RequestId, params: TurnInterruptParams, } | { "method": "review/start", id: RequestId, params: ReviewStartParams, } | { "method": "model/list", id: RequestId, params: ModelListParams, } | { "method": "modelProvider/capabilities/read", id: RequestId, params: ModelProviderCapabilitiesReadParams, } | { "method": "experimentalFeature/list", id: RequestId, params: ExperimentalFeatureListParams, } | { "method": "permissionProfile/list", id: RequestId, params: PermissionProfileListParams, } | { "method": "experimentalFeature/enablement/set", id: RequestId, params: ExperimentalFeatureEnablementSetParams, } | { "method": "mcpServer/oauth/login", id: RequestId, params: McpServerOauthLoginParams, } | { "method": "config/mcpServer/reload", id: RequestId, params: undefined, } | { "method": "mcpServerStatus/list", id: RequestId, params: ListMcpServerStatusParams, } | { "method": "mcpServer/resource/read", id: RequestId, params: McpResourceReadParams, } | { "method": "mcpServer/tool/call", id: RequestId, params: McpServerToolCallParams, } | { "method": "windowsSandbox/setupStart", id: RequestId, params: WindowsSandboxSetupStartParams, } | { "method": "windowsSandbox/readiness", id: RequestId, params: undefined, } | { "method": "account/login/start", id: RequestId, params: LoginAccountParams, } | { "method": "account/login/cancel", id: RequestId, params: CancelLoginAccountParams, } | { "method": "account/logout", id: RequestId, params: undefined, } | { "method": "account/rateLimits/read", id: RequestId, params: undefined, } | { "method": "account/rateLimitResetCredit/consume", id: RequestId, params: ConsumeAccountRateLimitResetCreditParams, } | { "method": "account/usage/read", id: RequestId, params: undefined, } | { "method": "account/workspaceMessages/read", id: RequestId, params: undefined, } | { "method": "account/sendAddCreditsNudgeEmail", id: RequestId, params: SendAddCreditsNudgeEmailParams, } | { "method": "feedback/upload", id: RequestId, params: FeedbackUploadParams, } | { "method": "command/exec", id: RequestId, params: CommandExecParams, } | { "method": "command/exec/write", id: RequestId, params: CommandExecWriteParams, } | { "method": "command/exec/terminate", id: RequestId, params: CommandExecTerminateParams, } | { "method": "command/exec/resize", id: RequestId, params: CommandExecResizeParams, } | { "method": "config/read", id: RequestId, params: ConfigReadParams, } | { "method": "externalAgentConfig/detect", id: RequestId, params: ExternalAgentConfigDetectParams, } | { "method": "externalAgentConfig/import", id: RequestId, params: ExternalAgentConfigImportParams, } | { "method": "externalAgentConfig/import/recordHistory", id: RequestId, params: ExternalAgentConfigImportHistoryRecordParams, } | { "method": "externalAgentConfig/import/readHistories", id: RequestId, params: undefined, } | { "method": "config/value/write", id: RequestId, params: ConfigValueWriteParams, } | { "method": "config/batchWrite", id: RequestId, params: ConfigBatchWriteParams, } | { "method": "configRequirements/read", id: RequestId, params: undefined, } | { "method": "account/read", id: RequestId, params: GetAccountParams, } | { "method": "getConversationSummary", id: RequestId, params: GetConversationSummaryParams, } | { "method": "gitDiffToRemote", id: RequestId, params: GitDiffToRemoteParams, } | { "method": "getAuthStatus", id: RequestId, params: GetAuthStatusParams, } | { "method": "fuzzyFileSearch", id: RequestId, params: FuzzyFileSearchParams, }; diff --git a/src/app-server/PathUri.ts b/src/app-server/PathUri.ts new file mode 100644 index 00000000..b3923cfd --- /dev/null +++ b/src/app-server/PathUri.ts @@ -0,0 +1,31 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * An immutable, cross-platform representation of a `file:` URI. + * + * Only the `file:` scheme is currently accepted. Construction validates the + * URL, and the URI cannot be mutated after construction. [`Self::basename`], + * [`Self::parent`], and [`Self::join`] operate on URI path segments without + * interpreting them using the operating system running Codex. Fallback URIs + * created by [`Self::from_abs_path`] are opaque to these lexical operations. + * + * `file:` paths retain their URI spelling so they can be parsed independently + * of the current host, except that Windows drive letters are canonicalized to + * uppercase. A local POSIX `file:` URI can also retain percent-encoded non-UTF-8 + * bytes for lossless native round trips. + * + * Like [VS Code resources], path operations use `/` URI separators on every + * host. Lexical path operations preserve a URL authority without interpreting + * Windows drive or UNC roots from path text. Native path normalization, + * filesystem aliases, symlinks, case sensitivity, and Unicode normalization + * are not resolved. + * + * Serde represents a `PathUri` as its canonical URI string. Deserialization + * accepts only valid `file:` URI strings. These strings round-trip through + * their canonical URL form, including encoded non-UTF-8 path bytes. + * + * [VS Code resources]: https://github.com/microsoft/vscode/blob/main/src/vs/base/common/resources.ts + */ +export type PathUri = string; diff --git a/src/app-server/PlanType.ts b/src/app-server/PlanType.ts index 44891467..96853281 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" | "prolite" | "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" | "ent26" | "enterprise_cbp_usage_based" | "enterprise" | "edu" | "unknown"; diff --git a/src/app-server/index.ts b/src/app-server/index.ts index cd3b3f53..9853c093 100644 --- a/src/app-server/index.ts +++ b/src/app-server/index.ts @@ -186,6 +186,7 @@ export type { ParsedCommand } from "./ParsedCommand"; export type { PatchApplyBeginEvent } from "./PatchApplyBeginEvent"; export type { PatchApplyEndEvent } from "./PatchApplyEndEvent"; export type { PatchApplyStatus } from "./PatchApplyStatus"; +export type { PathUri } from "./PathUri"; export type { PermissionProfile } from "./PermissionProfile"; export type { Personality } from "./Personality"; export type { PlanDeltaEvent } from "./PlanDeltaEvent"; diff --git a/src/app-server/v2/AppMetadata.ts b/src/app-server/v2/AppMetadata.ts index f1a5001e..d4f0a954 100644 --- a/src/app-server/v2/AppMetadata.ts +++ b/src/app-server/v2/AppMetadata.ts @@ -4,4 +4,4 @@ import type { AppReview } from "./AppReview"; import type { AppScreenshot } from "./AppScreenshot"; -export type AppMetadata = { review: AppReview | null, categories: Array | null, subCategories: Array | null, seoDescription: string | null, screenshots: Array | null, developer: string | null, version: string | null, versionId: string | null, versionNotes: string | null, firstPartyType: string | null, firstPartyRequiresInstall: boolean | null, showInComposerWhenUnlinked: boolean | null, }; +export type AppMetadata = { review: AppReview | null, categories: Array | null, subCategories: Array | null, seoDescription: string | null, screenshots: Array | null, developer: string | null, version: string | null, versionId: string | null, versionNotes: string | null, firstPartyRequiresInstall: boolean | null, showInComposerWhenUnlinked: boolean | null, }; diff --git a/src/app-server/v2/AppToolSummary.ts b/src/app-server/v2/AppToolSummary.ts index 15677b0c..6ab5c169 100644 --- a/src/app-server/v2/AppToolSummary.ts +++ b/src/app-server/v2/AppToolSummary.ts @@ -5,4 +5,4 @@ /** * EXPERIMENTAL - metadata returned by app/read. */ -export type AppToolSummary = { name: string, title: string | null, description: string, }; +export type AppToolSummary = { name: string, title: string | null, description: string, isEnabled: boolean, disabledReason: string | null, isReadOnly: boolean, }; diff --git a/src/app-server/v2/BrowserUseRequirements.ts b/src/app-server/v2/BrowserUseRequirements.ts new file mode 100644 index 00000000..397532d6 --- /dev/null +++ b/src/app-server/v2/BrowserUseRequirements.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 BrowserUseRequirements = { disableAutoReview: boolean | null, }; diff --git a/src/app-server/v2/ConfigBatchWriteParams.ts b/src/app-server/v2/ConfigBatchWriteParams.ts index 352eac28..fe82988a 100644 --- a/src/app-server/v2/ConfigBatchWriteParams.ts +++ b/src/app-server/v2/ConfigBatchWriteParams.ts @@ -9,6 +9,8 @@ export type ConfigBatchWriteParams = { edits: Array, */ filePath?: string | null, expectedVersion?: string | null, /** - * When true, hot-reload the updated user config into all loaded threads after writing. + * When true, hot-reload updated runtime settings into loaded threads after writing. + * Session-static model, reasoning-effort, Plan-mode reasoning-effort, service-tier, and + * personality defaults are not reloaded. */ reloadUserConfig?: boolean, }; diff --git a/src/app-server/v2/ConfigRequirements.ts b/src/app-server/v2/ConfigRequirements.ts index e2fd573a..b1a4c229 100644 --- a/src/app-server/v2/ConfigRequirements.ts +++ b/src/app-server/v2/ConfigRequirements.ts @@ -1,12 +1,15 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { PathUri } from "../PathUri"; import type { WebSearchMode } from "../WebSearchMode"; import type { AskForApproval } from "./AskForApproval"; +import type { BrowserUseRequirements } from "./BrowserUseRequirements"; import type { ComputerUseRequirements } from "./ComputerUseRequirements"; +import type { FeedbackRequirements } from "./FeedbackRequirements"; import type { ModelsRequirements } from "./ModelsRequirements"; import type { ResidencyRequirement } from "./ResidencyRequirement"; import type { SandboxMode } from "./SandboxMode"; import type { WindowsSandboxSetupMode } from "./WindowsSandboxSetupMode"; -export type ConfigRequirements = {allowedApprovalPolicies: Array | null, allowedSandboxModes: Array | null, allowedWindowsSandboxImplementations: Array | null, allowedPermissionProfiles: { [key in string]?: boolean } | null, defaultPermissions: string | null, allowedWebSearchModes: Array | null, allowManagedHooksOnly: boolean | null, allowAppshots: boolean | null, allowRemoteControl: boolean | null, computerUse: ComputerUseRequirements | null, featureRequirements: { [key in string]?: boolean } | null, enforceResidency: ResidencyRequirement | null, models: ModelsRequirements | null}; +export type ConfigRequirements = {allowedApprovalPolicies: Array | null, allowedSandboxModes: Array | null, allowedWindowsSandboxImplementations: Array | null, allowedPermissionProfiles: { [key in string]?: boolean } | null, defaultPermissions: string | null, allowedWebSearchModes: Array | null, allowManagedHooksOnly: boolean | null, allowAppshots: boolean | null, allowRemoteControl: boolean | null, computerUse: ComputerUseRequirements | null, browserUse: BrowserUseRequirements | null, featureRequirements: { [key in string]?: boolean } | null, enforceResidency: ResidencyRequirement | null, models: ModelsRequirements | null, sqliteHome: PathUri | null, logDir: PathUri | null, modelCatalogJson: PathUri | null, checkForUpdateOnStartup: boolean | null, allowLoginShell: boolean | null, feedback: FeedbackRequirements | null, windowsSandboxPrivateDesktop: boolean | null}; diff --git a/src/app-server/v2/ExternalAgentConfigDetectParams.ts b/src/app-server/v2/ExternalAgentConfigDetectParams.ts index 5d43fb44..b6abb7e9 100644 --- a/src/app-server/v2/ExternalAgentConfigDetectParams.ts +++ b/src/app-server/v2/ExternalAgentConfigDetectParams.ts @@ -11,6 +11,14 @@ includeHome?: boolean, * Zero or more working directories to include for repo-scoped detection. */ cwds?: Array | null, +/** + * Maximum age in days for detected sessions. Missing values use the default limit. + */ +maxSessionAgeDays?: number | null, +/** + * Maximum number of sessions to detect. Missing values use the default limit. + */ +maxSessions?: number | null, /** * Deprecated field retained for compatibility. This field is ignored; use `migrationSource` * to select the migration source. diff --git a/src/app-server/v2/ExternalAgentConfigImportHistory.ts b/src/app-server/v2/ExternalAgentConfigImportHistory.ts index 37273fc9..0531aa6f 100644 --- a/src/app-server/v2/ExternalAgentConfigImportHistory.ts +++ b/src/app-server/v2/ExternalAgentConfigImportHistory.ts @@ -4,4 +4,4 @@ import type { ExternalAgentConfigImportItemTypeFailure } from "./ExternalAgentConfigImportItemTypeFailure"; import type { ExternalAgentConfigImportItemTypeSuccess } from "./ExternalAgentConfigImportItemTypeSuccess"; -export type ExternalAgentConfigImportHistory = { importId: string, completedAtMs: bigint, successes: Array, failures: Array, }; +export type ExternalAgentConfigImportHistory = { importId: string, providerId: string | null, completedAtMs: bigint, successes: Array, failures: Array, }; diff --git a/src/app-server/v2/ExternalAgentConfigImportHistoryRecordParams.ts b/src/app-server/v2/ExternalAgentConfigImportHistoryRecordParams.ts new file mode 100644 index 00000000..71a20b65 --- /dev/null +++ b/src/app-server/v2/ExternalAgentConfigImportHistoryRecordParams.ts @@ -0,0 +1,14 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ExternalAgentConfigImportTypeResult } from "./ExternalAgentConfigImportTypeResult"; + +export type ExternalAgentConfigImportHistoryRecordParams = { +/** + * Opaque provider identifier for the externally completed import. + */ +providerId: string, +/** + * Completed results grouped by imported item type. + */ +itemTypeResults: Array, }; diff --git a/src/app-server/v2/ExternalAgentConfigImportHistoryRecordResponse.ts b/src/app-server/v2/ExternalAgentConfigImportHistoryRecordResponse.ts new file mode 100644 index 00000000..dbb14d61 --- /dev/null +++ b/src/app-server/v2/ExternalAgentConfigImportHistoryRecordResponse.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 ExternalAgentConfigImportHistoryRecordResponse = { importId: string, }; diff --git a/src/app-server/v2/ExternalAgentConfigImportParams.ts b/src/app-server/v2/ExternalAgentConfigImportParams.ts index 8c28680b..ebe23a72 100644 --- a/src/app-server/v2/ExternalAgentConfigImportParams.ts +++ b/src/app-server/v2/ExternalAgentConfigImportParams.ts @@ -8,6 +8,11 @@ export type ExternalAgentConfigImportParams = { migrationItems: Array | null, * Optional marketplace kind filter. When omitted, only local marketplaces are queried, plus * the default remote catalog when enabled by feature flag. */ -marketplaceKinds?: Array | null, }; +marketplaceKinds?: Array | null, +/** + * Whether the client requests a fresh remote plugin catalog fetch. + */ +forceRefetch?: boolean, }; diff --git a/src/app-server/v2/PluginShareContext.ts b/src/app-server/v2/PluginShareContext.ts index 99b8f466..24445c85 100644 --- a/src/app-server/v2/PluginShareContext.ts +++ b/src/app-server/v2/PluginShareContext.ts @@ -8,4 +8,4 @@ export type PluginShareContext = { remotePluginId: string, /** * Version of the remote shared plugin release when available. */ -remoteVersion: string | null, discoverability: PluginShareDiscoverability | null, shareUrl: string | null, creatorAccountUserId: string | null, creatorName: string | null, sharePrincipals: Array | null, }; +remoteVersion: string | null, discoverability: PluginShareDiscoverability | null, shareUrl: string | null, creatorAccountUserId: string | null, creatorName: string | null, sharePrincipals: Array | null, canPublishToWorkspace: boolean | null, }; diff --git a/src/app-server/v2/PluginShareSaveResponse.ts b/src/app-server/v2/PluginShareSaveResponse.ts index b53ace0e..fba76301 100644 --- a/src/app-server/v2/PluginShareSaveResponse.ts +++ b/src/app-server/v2/PluginShareSaveResponse.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 PluginShareSaveResponse = { remotePluginId: string, shareUrl: string, }; +export type PluginShareSaveResponse = { remotePluginId: string, shareUrl: string, canPublishToWorkspace: boolean | null, }; diff --git a/src/app-server/v2/SkillInterface.ts b/src/app-server/v2/SkillInterface.ts index 2361afcf..1ac1db84 100644 --- a/src/app-server/v2/SkillInterface.ts +++ b/src/app-server/v2/SkillInterface.ts @@ -3,4 +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 SkillInterface = { displayName?: string, shortDescription?: string, iconSmall?: AbsolutePathBuf, iconLarge?: AbsolutePathBuf, brandColor?: string, defaultPrompt?: string, }; +export type SkillInterface = { displayName?: string, shortDescription?: string, iconSmall?: AbsolutePathBuf, iconLarge?: AbsolutePathBuf, +/** + * Remote small icon URL from the plugin catalog. + */ +iconSmallUrl: string | null, +/** + * Remote large icon URL from the plugin catalog. + */ +iconLargeUrl: string | null, brandColor?: string, defaultPrompt?: string, }; diff --git a/src/app-server/v2/Thread.ts b/src/app-server/v2/Thread.ts index 49e2411f..1944cbd6 100644 --- a/src/app-server/v2/Thread.ts +++ b/src/app-server/v2/Thread.ts @@ -27,6 +27,9 @@ preview: string, /** * Whether the thread is ephemeral and should not be materialized on disk. */ ephemeral: boolean, /** + * Whether the thread has been pinned by the user. + */ +isPinned: boolean, /** * Model provider used for this thread (for example, 'openai'). */ modelProvider: string, /** diff --git a/src/app-server/v2/ThreadItem.ts b/src/app-server/v2/ThreadItem.ts index df1a5dbe..0a8ab885 100644 --- a/src/app-server/v2/ThreadItem.ts +++ b/src/app-server/v2/ThreadItem.ts @@ -28,6 +28,14 @@ import type { SubAgentActivityKind } from "./SubAgentActivityKind"; import type { UserInput } from "./UserInput"; export type ThreadItem = { "type": "userMessage", id: string, clientId: string | null, content: Array, } | { "type": "hookPrompt", id: string, fragments: Array, } | { "type": "agentMessage", id: string, text: string, phase: MessagePhase | null, memoryCitation: MemoryCitation | null, } | { "type": "plan", id: string, text: string, } | { "type": "reasoning", id: string, summary: Array, content: Array, } | { "type": "commandExecution", id: string, +/** + * Trusted first-party plugin id when this command resolves to one plugin script. + */ +pluginId: string | null, +/** + * Safe plugin-relative path when this command resolves to one plugin script. + */ +scriptPath: string | null, /** * The command to be executed. */ diff --git a/src/app-server/v2/ThreadListParams.ts b/src/app-server/v2/ThreadListParams.ts index ce2539af..7d611ddc 100644 --- a/src/app-server/v2/ThreadListParams.ts +++ b/src/app-server/v2/ThreadListParams.ts @@ -30,6 +30,9 @@ sourceKinds?: Array | null, /** * If false or null, only non-archived threads are returned. */ archived?: boolean | null, /** + * Optional pinned filter; when set, only threads matching this value are returned. + */ +isPinned?: boolean | null, /** * Optional cwd filter or filters; when set, only threads whose session cwd * exactly matches one of these paths are returned. */ diff --git a/src/app-server/v2/ThreadMetadataUpdateParams.ts b/src/app-server/v2/ThreadMetadataUpdateParams.ts index bec4bc12..4e670e84 100644 --- a/src/app-server/v2/ThreadMetadataUpdateParams.ts +++ b/src/app-server/v2/ThreadMetadataUpdateParams.ts @@ -9,4 +9,8 @@ export type ThreadMetadataUpdateParams = { threadId: string, * Omit a field to leave it unchanged, set it to `null` to clear it, or * provide a string to replace the stored value. */ -gitInfo?: ThreadMetadataGitInfoUpdateParams | null, }; +gitInfo?: ThreadMetadataGitInfoUpdateParams | null, +/** + * Patch whether this thread is pinned. Omit to leave the stored value unchanged. + */ +isPinned?: boolean | null, }; diff --git a/src/app-server/v2/index.ts b/src/app-server/v2/index.ts index ccfc604f..c0ed4177 100644 --- a/src/app-server/v2/index.ts +++ b/src/app-server/v2/index.ts @@ -45,6 +45,7 @@ export type { AskForApproval } from "./AskForApproval"; export type { AttestationGenerateParams } from "./AttestationGenerateParams"; export type { AttestationGenerateResponse } from "./AttestationGenerateResponse"; export type { AutoReviewDecisionSource } from "./AutoReviewDecisionSource"; +export type { BrowserUseRequirements } from "./BrowserUseRequirements"; export type { ByteRange } from "./ByteRange"; export type { CancelLoginAccountParams } from "./CancelLoginAccountParams"; export type { CancelLoginAccountResponse } from "./CancelLoginAccountResponse"; @@ -137,6 +138,8 @@ export type { ExternalAgentConfigDetectResponse } from "./ExternalAgentConfigDet export type { ExternalAgentConfigImportCompletedNotification } from "./ExternalAgentConfigImportCompletedNotification"; export type { ExternalAgentConfigImportHistoriesReadResponse } from "./ExternalAgentConfigImportHistoriesReadResponse"; export type { ExternalAgentConfigImportHistory } from "./ExternalAgentConfigImportHistory"; +export type { ExternalAgentConfigImportHistoryRecordParams } from "./ExternalAgentConfigImportHistoryRecordParams"; +export type { ExternalAgentConfigImportHistoryRecordResponse } from "./ExternalAgentConfigImportHistoryRecordResponse"; export type { ExternalAgentConfigImportItemTypeFailure } from "./ExternalAgentConfigImportItemTypeFailure"; export type { ExternalAgentConfigImportItemTypeSuccess } from "./ExternalAgentConfigImportItemTypeSuccess"; export type { ExternalAgentConfigImportParams } from "./ExternalAgentConfigImportParams"; @@ -147,6 +150,7 @@ export type { ExternalAgentConfigMigrationItem } from "./ExternalAgentConfigMigr export type { ExternalAgentConfigMigrationItemType } from "./ExternalAgentConfigMigrationItemType"; export type { ExternalAgentImportedConnectorCandidate } from "./ExternalAgentImportedConnectorCandidate"; export type { ExternalAgentImportedConnectorSource } from "./ExternalAgentImportedConnectorSource"; +export type { FeedbackRequirements } from "./FeedbackRequirements"; export type { FeedbackUploadParams } from "./FeedbackUploadParams"; export type { FeedbackUploadResponse } from "./FeedbackUploadResponse"; export type { FileChangeApprovalDecision } from "./FileChangeApprovalDecision";