From b171b0c26b30c84a1d675c1734446dc23cb675e3 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 13 May 2026 20:47:01 +0100 Subject: [PATCH] Remove app list protocol and connectors crate --- notes/fresh-workspace-handoff.md | 9 + state/ledgers.msgpack | Bin 105058 -> 105643 bytes state/map.yaml | 11 +- vendor/codex/codex-rs/Cargo.lock | 14 - vendor/codex/codex-rs/Cargo.toml | 2 - .../codex-rs/app-server-client/src/lib.rs | 4 - .../schema/json/ClientRequest.json | 57 -- .../schema/json/ServerNotification.json | 285 -------- .../codex_app_server_protocol.schemas.json | 370 ----------- .../codex_app_server_protocol.v2.schemas.json | 370 ----------- .../json/v2/AppListUpdatedNotification.json | 269 -------- .../schema/json/v2/AppsListParams.json | 35 - .../schema/json/v2/AppsListResponse.json | 276 -------- .../schema/typescript/ClientRequest.ts | 3 +- .../schema/typescript/ServerNotification.ts | 3 +- .../schema/typescript/v2/AppBranding.ts | 8 - .../schema/typescript/v2/AppInfo.ts | 19 - .../v2/AppListUpdatedNotification.ts | 9 - .../schema/typescript/v2/AppMetadata.ts | 7 - .../schema/typescript/v2/AppReview.ts | 5 - .../schema/typescript/v2/AppScreenshot.ts | 5 - .../schema/typescript/v2/AppsListParams.ts | 24 - .../schema/typescript/v2/AppsListResponse.ts | 14 - .../schema/typescript/v2/index.ts | 8 - .../src/protocol/common.rs | 26 - .../app-server-protocol/src/protocol/v2.rs | 114 ---- vendor/codex/codex-rs/app-server/README.md | 89 --- .../app-server/src/codex_message_processor.rs | 18 - .../app-server/tests/common/mcp_process.rs | 7 - vendor/codex/codex-rs/connectors/BUILD.bazel | 6 - vendor/codex/codex-rs/connectors/Cargo.toml | 18 - .../codex-rs/connectors/src/accessible.rs | 66 -- .../codex/codex-rs/connectors/src/filter.rs | 41 -- vendor/codex/codex-rs/connectors/src/lib.rs | 615 ------------------ vendor/codex/codex-rs/connectors/src/merge.rs | 52 -- .../codex/codex-rs/connectors/src/metadata.rs | 27 - vendor/codex/codex-rs/core/Cargo.toml | 1 - vendor/codex/codex-rs/core/src/connectors.rs | 74 --- vendor/codex/codex-rs/core/src/lib.rs | 1 - .../codex/codex-rs/core/src/session/tests.rs | 18 - .../codex-rs/docs/codex_mcp_interface.md | 2 +- vendor/codex/codex-rs/tui/Cargo.toml | 1 - .../tui/src/app/app_server_adapter.rs | 1 - vendor/codex/codex-rs/tui/src/chatwidget.rs | 1 - 44 files changed, 20 insertions(+), 2965 deletions(-) delete mode 100644 vendor/codex/codex-rs/app-server-protocol/schema/json/v2/AppListUpdatedNotification.json delete mode 100644 vendor/codex/codex-rs/app-server-protocol/schema/json/v2/AppsListParams.json delete mode 100644 vendor/codex/codex-rs/app-server-protocol/schema/json/v2/AppsListResponse.json delete mode 100644 vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppBranding.ts delete mode 100644 vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppInfo.ts delete mode 100644 vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppListUpdatedNotification.ts delete mode 100644 vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppMetadata.ts delete mode 100644 vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppReview.ts delete mode 100644 vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppScreenshot.ts delete mode 100644 vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppsListParams.ts delete mode 100644 vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppsListResponse.ts delete mode 100644 vendor/codex/codex-rs/connectors/BUILD.bazel delete mode 100644 vendor/codex/codex-rs/connectors/Cargo.toml delete mode 100644 vendor/codex/codex-rs/connectors/src/accessible.rs delete mode 100644 vendor/codex/codex-rs/connectors/src/filter.rs delete mode 100644 vendor/codex/codex-rs/connectors/src/lib.rs delete mode 100644 vendor/codex/codex-rs/connectors/src/merge.rs delete mode 100644 vendor/codex/codex-rs/connectors/src/metadata.rs delete mode 100644 vendor/codex/codex-rs/core/src/connectors.rs diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 8dfd7e1a..e8f26f81 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -848,6 +848,15 @@ deleted. The browser-opening shim and one-use selection-refresh plumbing died with the popup. Verification: `cargo check -p codex-tui` passed; `cargo test -p codex-tui --lib --no-run` timed out after 3 minutes without a diagnostic. +The app-list protocol surface is deleted too. `app/list` and +`app/list/updated` are no longer shared app-server protocol methods, no longer +dispatch through `codex_message_processor.rs`, no longer have generated JSON or +TypeScript schemas, and no longer appear in app-server/MCP docs. The app-list +`AppInfo` / metadata structs were deleted with the route. The orphaned +`codex-connectors` crate and `core::connectors` compatibility shim are removed +from the workspace; do not recreate connector listing unless it returns as an +Epiphany-owned typed MCP adapter receipt. + That husk has now been cut from `codex-core`. The root core crate no longer exports `plugins`, no longer depends on `codex-core-plugins` or `codex-plugin`, and the core plugin manager / marketplace add-remove-sync modules and tests diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 06983d9c8c1b78b23d315625a472190cf1d5fd13..7451e5949c443d2a202c4fc095fd07c52b0f79f3 100644 GIT binary patch delta 488 zcmZ9J%Sr<=7=?*o#g#~DUAT#eD`z^rcpX<#H-c`|l^cnfzs}&yB<9bkJ4GMBmO@9t zP1kM|3L^9!dXRaFygg;hgUzAA`cvTcJHa_IUQP&?BULJ0!0|LfZFf6Ug+$ zy1TUGHtJn=vsfD6f)F%#RQo`gluj6+PWw}&w2z5uF>a=Du5#hQrOibg1J^M26 zh*8uk;TkO(#GrI0BdBvw)HgsOC`X$Z>O&|&S(FO}uKNc!n*77P5b6{qtC>m>M90R# z0|~JQF%JM86p7+snP3)XPm$wzf~RvmQcOSZ$mC28hZWlNfuACk3=upxeSaY3bhSf@ zYk$GYnB@>U34XStnt6{6%9%P5G^=6DwAvxFwryv}Jm#nsT Codex Apps no longer have privileged MCP/runtime treatment in the keeper path. MCP exposure is now uniform: small tool sets are direct, large or @@ -355,6 +355,11 @@ current_status: mention insertion, `app://` mention codec support, stale app-popup tests, the browser-opening shim, and the one-use selection-refresh plumbing are gone. `cargo check -p codex-tui` passes; `cargo test -p codex-tui --lib - --no-run` timed out at 3 minutes without a diagnostic. MCP remains JSON-RPC - at the edge; user-declared MCP servers are the only runtime MCP authority. + --no-run` timed out at 3 minutes without a diagnostic. The `app/list` + app-server route and `app/list/updated` notification are now deleted from + the shared protocol, generated schemas, `codex_message_processor.rs`, test + helpers, and docs. The app-list `AppInfo`/metadata schema structs and the + orphaned `codex-connectors` crate / `core::connectors` shim are gone from + the workspace. MCP remains JSON-RPC at the edge; user-declared MCP servers + are the only runtime MCP authority. next_action: Continue starving coordinator/runtime execution and operator surfaces off app-server JSON-RPC and out of `codex_message_processor.rs`; keep the vestigial Codex organ narrowed to subscription auth/model transport. diff --git a/vendor/codex/codex-rs/Cargo.lock b/vendor/codex/codex-rs/Cargo.lock index 470202d3..f64770ee 100644 --- a/vendor/codex/codex-rs/Cargo.lock +++ b/vendor/codex/codex-rs/Cargo.lock @@ -2324,18 +2324,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "codex-connectors" -version = "0.0.0" -dependencies = [ - "anyhow", - "codex-app-server-protocol", - "pretty_assertions", - "serde", - "tokio", - "urlencoding", -] - [[package]] name = "codex-core" version = "0.0.0" @@ -2357,7 +2345,6 @@ dependencies = [ "codex-async-utils", "codex-code-mode", "codex-config", - "codex-connectors", "codex-core-skills", "codex-exec-server", "codex-execpolicy", @@ -3390,7 +3377,6 @@ dependencies = [ "codex-cli", "codex-cloud-requirements", "codex-config", - "codex-connectors", "codex-core-skills", "codex-exec-server", "codex-features", diff --git a/vendor/codex/codex-rs/Cargo.toml b/vendor/codex/codex-rs/Cargo.toml index 07c7541a..8868716c 100644 --- a/vendor/codex/codex-rs/Cargo.toml +++ b/vendor/codex/codex-rs/Cargo.toml @@ -24,7 +24,6 @@ members = [ "cloud-tasks-mock-client", "cli", "collaboration-mode-templates", - "connectors", "config", "device-key", "shell-command", @@ -130,7 +129,6 @@ codex-cloud-tasks-client = { path = "cloud-tasks-client" } codex-cloud-tasks-mock-client = { path = "cloud-tasks-mock-client" } codex-code-mode = { path = "code-mode" } codex-config = { path = "config" } -codex-connectors = { path = "connectors" } codex-core = { path = "core" } codex-core-skills = { path = "core-skills" } codex-device-key = { path = "device-key" } diff --git a/vendor/codex/codex-rs/app-server-client/src/lib.rs b/vendor/codex/codex-rs/app-server-client/src/lib.rs index 850b0fbb..53b3adaf 100644 --- a/vendor/codex/codex-rs/app-server-client/src/lib.rs +++ b/vendor/codex/codex-rs/app-server-client/src/lib.rs @@ -85,10 +85,6 @@ pub mod legacy_core { } } - pub mod connectors { - pub use codex_core::connectors::*; - } - pub mod otel_init { pub use codex_core::otel_init::*; } diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/ClientRequest.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/ClientRequest.json index ee51da1b..e5f98895 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/ClientRequest.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/ClientRequest.json @@ -21,39 +21,6 @@ ], "type": "string" }, - "AppsListParams": { - "description": "EXPERIMENTAL - list available apps/connectors.", - "properties": { - "cursor": { - "description": "Opaque pagination cursor returned by a previous call.", - "type": [ - "string", - "null" - ] - }, - "forceRefetch": { - "description": "When true, bypass app caches and fetch the latest data from sources.", - "type": "boolean" - }, - "limit": { - "description": "Optional page size; defaults to a reasonable server-side value.", - "format": "uint32", - "minimum": 0.0, - "type": [ - "integer", - "null" - ] - }, - "threadId": { - "description": "Optional thread id used to evaluate app feature gating from that thread's config.", - "type": [ - "string", - "null" - ] - } - }, - "type": "object" - }, "AskForApproval": { "oneOf": [ { @@ -6399,30 +6366,6 @@ "title": "Skills/listRequest", "type": "object" }, - { - "properties": { - "id": { - "$ref": "#/definitions/RequestId" - }, - "method": { - "enum": [ - "app/list" - ], - "title": "App/listRequestMethod", - "type": "string" - }, - "params": { - "$ref": "#/definitions/AppsListParams" - } - }, - "required": [ - "id", - "method", - "params" - ], - "title": "App/listRequest", - "type": "object" - }, { "properties": { "id": { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/ServerNotification.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/ServerNotification.json index 6b8de7fb..787f3019 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/ServerNotification.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/ServerNotification.json @@ -141,271 +141,6 @@ "AgentPath": { "type": "string" }, - "AppBranding": { - "description": "EXPERIMENTAL - app metadata returned by app-list APIs.", - "properties": { - "category": { - "type": [ - "string", - "null" - ] - }, - "developer": { - "type": [ - "string", - "null" - ] - }, - "isDiscoverableApp": { - "type": "boolean" - }, - "privacyPolicy": { - "type": [ - "string", - "null" - ] - }, - "termsOfService": { - "type": [ - "string", - "null" - ] - }, - "website": { - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "isDiscoverableApp" - ], - "type": "object" - }, - "AppInfo": { - "description": "EXPERIMENTAL - app metadata returned by app-list APIs.", - "properties": { - "appMetadata": { - "anyOf": [ - { - "$ref": "#/definitions/AppMetadata" - }, - { - "type": "null" - } - ] - }, - "branding": { - "anyOf": [ - { - "$ref": "#/definitions/AppBranding" - }, - { - "type": "null" - } - ] - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "distributionChannel": { - "type": [ - "string", - "null" - ] - }, - "id": { - "type": "string" - }, - "installUrl": { - "type": [ - "string", - "null" - ] - }, - "isAccessible": { - "default": false, - "type": "boolean" - }, - "isEnabled": { - "default": true, - "description": "Whether this app is enabled in config.toml. Example: ```toml [apps.bad_app] enabled = false ```", - "type": "boolean" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "type": [ - "object", - "null" - ] - }, - "logoUrl": { - "type": [ - "string", - "null" - ] - }, - "logoUrlDark": { - "type": [ - "string", - "null" - ] - }, - "name": { - "type": "string" - } - }, - "required": [ - "id", - "name" - ], - "type": "object" - }, - "AppListUpdatedNotification": { - "description": "EXPERIMENTAL - notification emitted when the app list changes.", - "properties": { - "data": { - "items": { - "$ref": "#/definitions/AppInfo" - }, - "type": "array" - } - }, - "required": [ - "data" - ], - "type": "object" - }, - "AppMetadata": { - "properties": { - "categories": { - "items": { - "type": "string" - }, - "type": [ - "array", - "null" - ] - }, - "developer": { - "type": [ - "string", - "null" - ] - }, - "firstPartyRequiresInstall": { - "type": [ - "boolean", - "null" - ] - }, - "firstPartyType": { - "type": [ - "string", - "null" - ] - }, - "review": { - "anyOf": [ - { - "$ref": "#/definitions/AppReview" - }, - { - "type": "null" - } - ] - }, - "screenshots": { - "items": { - "$ref": "#/definitions/AppScreenshot" - }, - "type": [ - "array", - "null" - ] - }, - "seoDescription": { - "type": [ - "string", - "null" - ] - }, - "showInComposerWhenUnlinked": { - "type": [ - "boolean", - "null" - ] - }, - "subCategories": { - "items": { - "type": "string" - }, - "type": [ - "array", - "null" - ] - }, - "version": { - "type": [ - "string", - "null" - ] - }, - "versionId": { - "type": [ - "string", - "null" - ] - }, - "versionNotes": { - "type": [ - "string", - "null" - ] - } - }, - "type": "object" - }, - "AppReview": { - "properties": { - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "AppScreenshot": { - "properties": { - "fileId": { - "type": [ - "string", - "null" - ] - }, - "url": { - "type": [ - "string", - "null" - ] - }, - "userPrompt": { - "type": "string" - } - }, - "required": [ - "userPrompt" - ], - "type": "object" - }, "AuthMode": { "description": "Authentication mode for OpenAI-backed providers.", "oneOf": [ @@ -6903,26 +6638,6 @@ "title": "Account/rateLimits/updatedNotification", "type": "object" }, - { - "properties": { - "method": { - "enum": [ - "app/list/updated" - ], - "title": "App/list/updatedNotificationMethod", - "type": "string" - }, - "params": { - "$ref": "#/definitions/AppListUpdatedNotification" - } - }, - "required": [ - "method", - "params" - ], - "title": "App/list/updatedNotification", - "type": "object" - }, { "properties": { "method": { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json index 717fba61..0a2a0a4a 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json @@ -641,30 +641,6 @@ "title": "Skills/listRequest", "type": "object" }, - { - "properties": { - "id": { - "$ref": "#/definitions/v2/RequestId" - }, - "method": { - "enum": [ - "app/list" - ], - "title": "App/listRequestMethod", - "type": "string" - }, - "params": { - "$ref": "#/definitions/v2/AppsListParams" - } - }, - "required": [ - "id", - "method", - "params" - ], - "title": "App/listRequest", - "type": "object" - }, { "properties": { "id": { @@ -4071,26 +4047,6 @@ "title": "Account/rateLimits/updatedNotification", "type": "object" }, - { - "properties": { - "method": { - "enum": [ - "app/list/updated" - ], - "title": "App/list/updatedNotificationMethod", - "type": "string" - }, - "params": { - "$ref": "#/definitions/v2/AppListUpdatedNotification" - } - }, - "required": [ - "method", - "params" - ], - "title": "App/list/updatedNotification", - "type": "object" - }, { "properties": { "method": { @@ -5177,48 +5133,6 @@ }, "type": "object" }, - "AppBranding": { - "description": "EXPERIMENTAL - app metadata returned by app-list APIs.", - "properties": { - "category": { - "type": [ - "string", - "null" - ] - }, - "developer": { - "type": [ - "string", - "null" - ] - }, - "isDiscoverableApp": { - "type": "boolean" - }, - "privacyPolicy": { - "type": [ - "string", - "null" - ] - }, - "termsOfService": { - "type": [ - "string", - "null" - ] - }, - "website": { - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "isDiscoverableApp" - ], - "type": "object" - }, "AppConfig": { "properties": { "default_tools_approval_mode": { @@ -5266,231 +5180,6 @@ }, "type": "object" }, - "AppInfo": { - "description": "EXPERIMENTAL - app metadata returned by app-list APIs.", - "properties": { - "appMetadata": { - "anyOf": [ - { - "$ref": "#/definitions/v2/AppMetadata" - }, - { - "type": "null" - } - ] - }, - "branding": { - "anyOf": [ - { - "$ref": "#/definitions/v2/AppBranding" - }, - { - "type": "null" - } - ] - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "distributionChannel": { - "type": [ - "string", - "null" - ] - }, - "id": { - "type": "string" - }, - "installUrl": { - "type": [ - "string", - "null" - ] - }, - "isAccessible": { - "default": false, - "type": "boolean" - }, - "isEnabled": { - "default": true, - "description": "Whether this app is enabled in config.toml. Example: ```toml [apps.bad_app] enabled = false ```", - "type": "boolean" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "type": [ - "object", - "null" - ] - }, - "logoUrl": { - "type": [ - "string", - "null" - ] - }, - "logoUrlDark": { - "type": [ - "string", - "null" - ] - }, - "name": { - "type": "string" - } - }, - "required": [ - "id", - "name" - ], - "type": "object" - }, - "AppListUpdatedNotification": { - "$schema": "http://json-schema.org/draft-07/schema#", - "description": "EXPERIMENTAL - notification emitted when the app list changes.", - "properties": { - "data": { - "items": { - "$ref": "#/definitions/v2/AppInfo" - }, - "type": "array" - } - }, - "required": [ - "data" - ], - "title": "AppListUpdatedNotification", - "type": "object" - }, - "AppMetadata": { - "properties": { - "categories": { - "items": { - "type": "string" - }, - "type": [ - "array", - "null" - ] - }, - "developer": { - "type": [ - "string", - "null" - ] - }, - "firstPartyRequiresInstall": { - "type": [ - "boolean", - "null" - ] - }, - "firstPartyType": { - "type": [ - "string", - "null" - ] - }, - "review": { - "anyOf": [ - { - "$ref": "#/definitions/v2/AppReview" - }, - { - "type": "null" - } - ] - }, - "screenshots": { - "items": { - "$ref": "#/definitions/v2/AppScreenshot" - }, - "type": [ - "array", - "null" - ] - }, - "seoDescription": { - "type": [ - "string", - "null" - ] - }, - "showInComposerWhenUnlinked": { - "type": [ - "boolean", - "null" - ] - }, - "subCategories": { - "items": { - "type": "string" - }, - "type": [ - "array", - "null" - ] - }, - "version": { - "type": [ - "string", - "null" - ] - }, - "versionId": { - "type": [ - "string", - "null" - ] - }, - "versionNotes": { - "type": [ - "string", - "null" - ] - } - }, - "type": "object" - }, - "AppReview": { - "properties": { - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "AppScreenshot": { - "properties": { - "fileId": { - "type": [ - "string", - "null" - ] - }, - "url": { - "type": [ - "string", - "null" - ] - }, - "userPrompt": { - "type": "string" - } - }, - "required": [ - "userPrompt" - ], - "type": "object" - }, "AppToolApproval": { "enum": [ "auto", @@ -5565,65 +5254,6 @@ }, "type": "object" }, - "AppsListParams": { - "$schema": "http://json-schema.org/draft-07/schema#", - "description": "EXPERIMENTAL - list available apps/connectors.", - "properties": { - "cursor": { - "description": "Opaque pagination cursor returned by a previous call.", - "type": [ - "string", - "null" - ] - }, - "forceRefetch": { - "description": "When true, bypass app caches and fetch the latest data from sources.", - "type": "boolean" - }, - "limit": { - "description": "Optional page size; defaults to a reasonable server-side value.", - "format": "uint32", - "minimum": 0.0, - "type": [ - "integer", - "null" - ] - }, - "threadId": { - "description": "Optional thread id used to evaluate app feature gating from that thread's config.", - "type": [ - "string", - "null" - ] - } - }, - "title": "AppsListParams", - "type": "object" - }, - "AppsListResponse": { - "$schema": "http://json-schema.org/draft-07/schema#", - "description": "EXPERIMENTAL - app list response.", - "properties": { - "data": { - "items": { - "$ref": "#/definitions/v2/AppInfo" - }, - "type": "array" - }, - "nextCursor": { - "description": "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.", - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "data" - ], - "title": "AppsListResponse", - "type": "object" - }, "AskForApproval": { "oneOf": [ { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json index a58c7e43..1131f6df 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json @@ -219,48 +219,6 @@ }, "type": "object" }, - "AppBranding": { - "description": "EXPERIMENTAL - app metadata returned by app-list APIs.", - "properties": { - "category": { - "type": [ - "string", - "null" - ] - }, - "developer": { - "type": [ - "string", - "null" - ] - }, - "isDiscoverableApp": { - "type": "boolean" - }, - "privacyPolicy": { - "type": [ - "string", - "null" - ] - }, - "termsOfService": { - "type": [ - "string", - "null" - ] - }, - "website": { - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "isDiscoverableApp" - ], - "type": "object" - }, "AppConfig": { "properties": { "default_tools_approval_mode": { @@ -308,231 +266,6 @@ }, "type": "object" }, - "AppInfo": { - "description": "EXPERIMENTAL - app metadata returned by app-list APIs.", - "properties": { - "appMetadata": { - "anyOf": [ - { - "$ref": "#/definitions/AppMetadata" - }, - { - "type": "null" - } - ] - }, - "branding": { - "anyOf": [ - { - "$ref": "#/definitions/AppBranding" - }, - { - "type": "null" - } - ] - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "distributionChannel": { - "type": [ - "string", - "null" - ] - }, - "id": { - "type": "string" - }, - "installUrl": { - "type": [ - "string", - "null" - ] - }, - "isAccessible": { - "default": false, - "type": "boolean" - }, - "isEnabled": { - "default": true, - "description": "Whether this app is enabled in config.toml. Example: ```toml [apps.bad_app] enabled = false ```", - "type": "boolean" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "type": [ - "object", - "null" - ] - }, - "logoUrl": { - "type": [ - "string", - "null" - ] - }, - "logoUrlDark": { - "type": [ - "string", - "null" - ] - }, - "name": { - "type": "string" - } - }, - "required": [ - "id", - "name" - ], - "type": "object" - }, - "AppListUpdatedNotification": { - "$schema": "http://json-schema.org/draft-07/schema#", - "description": "EXPERIMENTAL - notification emitted when the app list changes.", - "properties": { - "data": { - "items": { - "$ref": "#/definitions/AppInfo" - }, - "type": "array" - } - }, - "required": [ - "data" - ], - "title": "AppListUpdatedNotification", - "type": "object" - }, - "AppMetadata": { - "properties": { - "categories": { - "items": { - "type": "string" - }, - "type": [ - "array", - "null" - ] - }, - "developer": { - "type": [ - "string", - "null" - ] - }, - "firstPartyRequiresInstall": { - "type": [ - "boolean", - "null" - ] - }, - "firstPartyType": { - "type": [ - "string", - "null" - ] - }, - "review": { - "anyOf": [ - { - "$ref": "#/definitions/AppReview" - }, - { - "type": "null" - } - ] - }, - "screenshots": { - "items": { - "$ref": "#/definitions/AppScreenshot" - }, - "type": [ - "array", - "null" - ] - }, - "seoDescription": { - "type": [ - "string", - "null" - ] - }, - "showInComposerWhenUnlinked": { - "type": [ - "boolean", - "null" - ] - }, - "subCategories": { - "items": { - "type": "string" - }, - "type": [ - "array", - "null" - ] - }, - "version": { - "type": [ - "string", - "null" - ] - }, - "versionId": { - "type": [ - "string", - "null" - ] - }, - "versionNotes": { - "type": [ - "string", - "null" - ] - } - }, - "type": "object" - }, - "AppReview": { - "properties": { - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "AppScreenshot": { - "properties": { - "fileId": { - "type": [ - "string", - "null" - ] - }, - "url": { - "type": [ - "string", - "null" - ] - }, - "userPrompt": { - "type": "string" - } - }, - "required": [ - "userPrompt" - ], - "type": "object" - }, "AppToolApproval": { "enum": [ "auto", @@ -607,65 +340,6 @@ }, "type": "object" }, - "AppsListParams": { - "$schema": "http://json-schema.org/draft-07/schema#", - "description": "EXPERIMENTAL - list available apps/connectors.", - "properties": { - "cursor": { - "description": "Opaque pagination cursor returned by a previous call.", - "type": [ - "string", - "null" - ] - }, - "forceRefetch": { - "description": "When true, bypass app caches and fetch the latest data from sources.", - "type": "boolean" - }, - "limit": { - "description": "Optional page size; defaults to a reasonable server-side value.", - "format": "uint32", - "minimum": 0.0, - "type": [ - "integer", - "null" - ] - }, - "threadId": { - "description": "Optional thread id used to evaluate app feature gating from that thread's config.", - "type": [ - "string", - "null" - ] - } - }, - "title": "AppsListParams", - "type": "object" - }, - "AppsListResponse": { - "$schema": "http://json-schema.org/draft-07/schema#", - "description": "EXPERIMENTAL - app list response.", - "properties": { - "data": { - "items": { - "$ref": "#/definitions/AppInfo" - }, - "type": "array" - }, - "nextCursor": { - "description": "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.", - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "data" - ], - "title": "AppsListResponse", - "type": "object" - }, "AskForApproval": { "oneOf": [ { @@ -1291,30 +965,6 @@ "title": "Skills/listRequest", "type": "object" }, - { - "properties": { - "id": { - "$ref": "#/definitions/RequestId" - }, - "method": { - "enum": [ - "app/list" - ], - "title": "App/listRequestMethod", - "type": "string" - }, - "params": { - "$ref": "#/definitions/AppsListParams" - } - }, - "required": [ - "id", - "method", - "params" - ], - "title": "App/listRequest", - "type": "object" - }, { "properties": { "id": { @@ -11126,26 +10776,6 @@ "title": "Account/rateLimits/updatedNotification", "type": "object" }, - { - "properties": { - "method": { - "enum": [ - "app/list/updated" - ], - "title": "App/list/updatedNotificationMethod", - "type": "string" - }, - "params": { - "$ref": "#/definitions/AppListUpdatedNotification" - } - }, - "required": [ - "method", - "params" - ], - "title": "App/list/updatedNotification", - "type": "object" - }, { "properties": { "method": { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/AppListUpdatedNotification.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/AppListUpdatedNotification.json deleted file mode 100644 index 0813ed6f..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/AppListUpdatedNotification.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "definitions": { - "AppBranding": { - "description": "EXPERIMENTAL - app metadata returned by app-list APIs.", - "properties": { - "category": { - "type": [ - "string", - "null" - ] - }, - "developer": { - "type": [ - "string", - "null" - ] - }, - "isDiscoverableApp": { - "type": "boolean" - }, - "privacyPolicy": { - "type": [ - "string", - "null" - ] - }, - "termsOfService": { - "type": [ - "string", - "null" - ] - }, - "website": { - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "isDiscoverableApp" - ], - "type": "object" - }, - "AppInfo": { - "description": "EXPERIMENTAL - app metadata returned by app-list APIs.", - "properties": { - "appMetadata": { - "anyOf": [ - { - "$ref": "#/definitions/AppMetadata" - }, - { - "type": "null" - } - ] - }, - "branding": { - "anyOf": [ - { - "$ref": "#/definitions/AppBranding" - }, - { - "type": "null" - } - ] - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "distributionChannel": { - "type": [ - "string", - "null" - ] - }, - "id": { - "type": "string" - }, - "installUrl": { - "type": [ - "string", - "null" - ] - }, - "isAccessible": { - "default": false, - "type": "boolean" - }, - "isEnabled": { - "default": true, - "description": "Whether this app is enabled in config.toml. Example: ```toml [apps.bad_app] enabled = false ```", - "type": "boolean" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "type": [ - "object", - "null" - ] - }, - "logoUrl": { - "type": [ - "string", - "null" - ] - }, - "logoUrlDark": { - "type": [ - "string", - "null" - ] - }, - "name": { - "type": "string" - } - }, - "required": [ - "id", - "name" - ], - "type": "object" - }, - "AppMetadata": { - "properties": { - "categories": { - "items": { - "type": "string" - }, - "type": [ - "array", - "null" - ] - }, - "developer": { - "type": [ - "string", - "null" - ] - }, - "firstPartyRequiresInstall": { - "type": [ - "boolean", - "null" - ] - }, - "firstPartyType": { - "type": [ - "string", - "null" - ] - }, - "review": { - "anyOf": [ - { - "$ref": "#/definitions/AppReview" - }, - { - "type": "null" - } - ] - }, - "screenshots": { - "items": { - "$ref": "#/definitions/AppScreenshot" - }, - "type": [ - "array", - "null" - ] - }, - "seoDescription": { - "type": [ - "string", - "null" - ] - }, - "showInComposerWhenUnlinked": { - "type": [ - "boolean", - "null" - ] - }, - "subCategories": { - "items": { - "type": "string" - }, - "type": [ - "array", - "null" - ] - }, - "version": { - "type": [ - "string", - "null" - ] - }, - "versionId": { - "type": [ - "string", - "null" - ] - }, - "versionNotes": { - "type": [ - "string", - "null" - ] - } - }, - "type": "object" - }, - "AppReview": { - "properties": { - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "AppScreenshot": { - "properties": { - "fileId": { - "type": [ - "string", - "null" - ] - }, - "url": { - "type": [ - "string", - "null" - ] - }, - "userPrompt": { - "type": "string" - } - }, - "required": [ - "userPrompt" - ], - "type": "object" - } - }, - "description": "EXPERIMENTAL - notification emitted when the app list changes.", - "properties": { - "data": { - "items": { - "$ref": "#/definitions/AppInfo" - }, - "type": "array" - } - }, - "required": [ - "data" - ], - "title": "AppListUpdatedNotification", - "type": "object" -} \ No newline at end of file diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/AppsListParams.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/AppsListParams.json deleted file mode 100644 index 385e5ba2..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/AppsListParams.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "description": "EXPERIMENTAL - list available apps/connectors.", - "properties": { - "cursor": { - "description": "Opaque pagination cursor returned by a previous call.", - "type": [ - "string", - "null" - ] - }, - "forceRefetch": { - "description": "When true, bypass app caches and fetch the latest data from sources.", - "type": "boolean" - }, - "limit": { - "description": "Optional page size; defaults to a reasonable server-side value.", - "format": "uint32", - "minimum": 0.0, - "type": [ - "integer", - "null" - ] - }, - "threadId": { - "description": "Optional thread id used to evaluate app feature gating from that thread's config.", - "type": [ - "string", - "null" - ] - } - }, - "title": "AppsListParams", - "type": "object" -} \ No newline at end of file diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/AppsListResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/AppsListResponse.json deleted file mode 100644 index 4697b34e..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/AppsListResponse.json +++ /dev/null @@ -1,276 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "definitions": { - "AppBranding": { - "description": "EXPERIMENTAL - app metadata returned by app-list APIs.", - "properties": { - "category": { - "type": [ - "string", - "null" - ] - }, - "developer": { - "type": [ - "string", - "null" - ] - }, - "isDiscoverableApp": { - "type": "boolean" - }, - "privacyPolicy": { - "type": [ - "string", - "null" - ] - }, - "termsOfService": { - "type": [ - "string", - "null" - ] - }, - "website": { - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "isDiscoverableApp" - ], - "type": "object" - }, - "AppInfo": { - "description": "EXPERIMENTAL - app metadata returned by app-list APIs.", - "properties": { - "appMetadata": { - "anyOf": [ - { - "$ref": "#/definitions/AppMetadata" - }, - { - "type": "null" - } - ] - }, - "branding": { - "anyOf": [ - { - "$ref": "#/definitions/AppBranding" - }, - { - "type": "null" - } - ] - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "distributionChannel": { - "type": [ - "string", - "null" - ] - }, - "id": { - "type": "string" - }, - "installUrl": { - "type": [ - "string", - "null" - ] - }, - "isAccessible": { - "default": false, - "type": "boolean" - }, - "isEnabled": { - "default": true, - "description": "Whether this app is enabled in config.toml. Example: ```toml [apps.bad_app] enabled = false ```", - "type": "boolean" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "type": [ - "object", - "null" - ] - }, - "logoUrl": { - "type": [ - "string", - "null" - ] - }, - "logoUrlDark": { - "type": [ - "string", - "null" - ] - }, - "name": { - "type": "string" - } - }, - "required": [ - "id", - "name" - ], - "type": "object" - }, - "AppMetadata": { - "properties": { - "categories": { - "items": { - "type": "string" - }, - "type": [ - "array", - "null" - ] - }, - "developer": { - "type": [ - "string", - "null" - ] - }, - "firstPartyRequiresInstall": { - "type": [ - "boolean", - "null" - ] - }, - "firstPartyType": { - "type": [ - "string", - "null" - ] - }, - "review": { - "anyOf": [ - { - "$ref": "#/definitions/AppReview" - }, - { - "type": "null" - } - ] - }, - "screenshots": { - "items": { - "$ref": "#/definitions/AppScreenshot" - }, - "type": [ - "array", - "null" - ] - }, - "seoDescription": { - "type": [ - "string", - "null" - ] - }, - "showInComposerWhenUnlinked": { - "type": [ - "boolean", - "null" - ] - }, - "subCategories": { - "items": { - "type": "string" - }, - "type": [ - "array", - "null" - ] - }, - "version": { - "type": [ - "string", - "null" - ] - }, - "versionId": { - "type": [ - "string", - "null" - ] - }, - "versionNotes": { - "type": [ - "string", - "null" - ] - } - }, - "type": "object" - }, - "AppReview": { - "properties": { - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "AppScreenshot": { - "properties": { - "fileId": { - "type": [ - "string", - "null" - ] - }, - "url": { - "type": [ - "string", - "null" - ] - }, - "userPrompt": { - "type": "string" - } - }, - "required": [ - "userPrompt" - ], - "type": "object" - } - }, - "description": "EXPERIMENTAL - app list response.", - "properties": { - "data": { - "items": { - "$ref": "#/definitions/AppInfo" - }, - "type": "array" - }, - "nextCursor": { - "description": "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.", - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "data" - ], - "title": "AppsListResponse", - "type": "object" -} \ No newline at end of file diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/ClientRequest.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/ClientRequest.ts index 3e804d16..3468b184 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/ClientRequest.ts +++ b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/ClientRequest.ts @@ -7,7 +7,6 @@ import type { GetConversationSummaryParams } from "./GetConversationSummaryParam import type { GitDiffToRemoteParams } from "./GitDiffToRemoteParams"; import type { InitializeParams } from "./InitializeParams"; import type { RequestId } from "./RequestId"; -import type { AppsListParams } from "./v2/AppsListParams"; import type { CancelLoginAccountParams } from "./v2/CancelLoginAccountParams"; import type { CommandExecParams } from "./v2/CommandExecParams"; import type { CommandExecResizeParams } from "./v2/CommandExecResizeParams"; @@ -67,4 +66,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/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/turns/list", id: RequestId, params: ThreadTurnsListParams, } | { "method": "thread/inject_items", id: RequestId, params: ThreadInjectItemsParams, } | { "method": "skills/list", id: RequestId, params: SkillsListParams, } | { "method": "app/list", id: RequestId, params: AppsListParams, } | { "method": "device/key/create", id: RequestId, params: DeviceKeyCreateParams, } | { "method": "device/key/public", id: RequestId, params: DeviceKeyPublicParams, } | { "method": "device/key/sign", id: RequestId, params: DeviceKeySignParams, } | { "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": "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": "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/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/turns/list", id: RequestId, params: ThreadTurnsListParams, } | { "method": "thread/inject_items", id: RequestId, params: ThreadInjectItemsParams, } | { "method": "skills/list", id: RequestId, params: SkillsListParams, } | { "method": "device/key/create", id: RequestId, params: DeviceKeyCreateParams, } | { "method": "device/key/public", id: RequestId, params: DeviceKeyPublicParams, } | { "method": "device/key/sign", id: RequestId, params: DeviceKeySignParams, } | { "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": "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": "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/vendor/codex/codex-rs/app-server-protocol/schema/typescript/ServerNotification.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/ServerNotification.ts index bbe5917d..d0226b46 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/ServerNotification.ts +++ b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/ServerNotification.ts @@ -7,7 +7,6 @@ import type { AccountLoginCompletedNotification } from "./v2/AccountLoginComplet import type { AccountRateLimitsUpdatedNotification } from "./v2/AccountRateLimitsUpdatedNotification"; import type { AccountUpdatedNotification } from "./v2/AccountUpdatedNotification"; import type { AgentMessageDeltaNotification } from "./v2/AgentMessageDeltaNotification"; -import type { AppListUpdatedNotification } from "./v2/AppListUpdatedNotification"; import type { CommandExecOutputDeltaNotification } from "./v2/CommandExecOutputDeltaNotification"; import type { CommandExecutionOutputDeltaNotification } from "./v2/CommandExecutionOutputDeltaNotification"; import type { ConfigWarningNotification } from "./v2/ConfigWarningNotification"; @@ -64,4 +63,4 @@ import type { WindowsWorldWritableWarningNotification } from "./v2/WindowsWorldW /** * Notification sent from the server to the client. */ -export type ServerNotification = { "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/status/changed", "params": ThreadStatusChangedNotification } | { "method": "thread/archived", "params": ThreadArchivedNotification } | { "method": "thread/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": "item/fileChange/patchUpdated", "params": FileChangePatchUpdatedNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "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": "warning", "params": WarningNotification } | { "method": "guardianWarning", "params": GuardianWarningNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "thread/epiphany/stateUpdated", "params": ThreadEpiphanyStateUpdatedNotification } | { "method": "thread/epiphany/jobsUpdated", "params": ThreadEpiphanyJobsUpdatedNotification } | { "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 }; +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": "item/fileChange/patchUpdated", "params": FileChangePatchUpdatedNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "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": "guardianWarning", "params": GuardianWarningNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "thread/epiphany/stateUpdated", "params": ThreadEpiphanyStateUpdatedNotification } | { "method": "thread/epiphany/jobsUpdated", "params": ThreadEpiphanyJobsUpdatedNotification } | { "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/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppBranding.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppBranding.ts deleted file mode 100644 index 873398db..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppBranding.ts +++ /dev/null @@ -1,8 +0,0 @@ -// 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 - app metadata returned by app-list APIs. - */ -export type AppBranding = { category: string | null, developer: string | null, website: string | null, privacyPolicy: string | null, termsOfService: string | null, isDiscoverableApp: boolean, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppInfo.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppInfo.ts deleted file mode 100644 index f3569fbf..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppInfo.ts +++ /dev/null @@ -1,19 +0,0 @@ -// 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 { AppBranding } from "./AppBranding"; -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, -/** - * Whether this app is enabled in config.toml. - * Example: - * ```toml - * [apps.bad_app] - * enabled = false - * ``` - */ -isEnabled: boolean, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppListUpdatedNotification.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppListUpdatedNotification.ts deleted file mode 100644 index c6ad87f2..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppListUpdatedNotification.ts +++ /dev/null @@ -1,9 +0,0 @@ -// 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 { AppInfo } from "./AppInfo"; - -/** - * EXPERIMENTAL - notification emitted when the app list changes. - */ -export type AppListUpdatedNotification = { data: Array, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppMetadata.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppMetadata.ts deleted file mode 100644 index f1a5001e..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppMetadata.ts +++ /dev/null @@ -1,7 +0,0 @@ -// 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 { 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, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppReview.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppReview.ts deleted file mode 100644 index 10fd95f0..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppReview.ts +++ /dev/null @@ -1,5 +0,0 @@ -// 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 AppReview = { status: string, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppScreenshot.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppScreenshot.ts deleted file mode 100644 index 0d264246..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppScreenshot.ts +++ /dev/null @@ -1,5 +0,0 @@ -// 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 AppScreenshot = { url: string | null, fileId: string | null, userPrompt: string, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppsListParams.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppsListParams.ts deleted file mode 100644 index b9682956..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppsListParams.ts +++ /dev/null @@ -1,24 +0,0 @@ -// 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 - list available apps/connectors. - */ -export type AppsListParams = { -/** - * Opaque pagination cursor returned by a previous call. - */ -cursor?: string | null, -/** - * Optional page size; defaults to a reasonable server-side value. - */ -limit?: number | null, -/** - * Optional thread id used to evaluate app feature gating from that thread's config. - */ -threadId?: string | null, -/** - * When true, bypass app caches and fetch the latest data from sources. - */ -forceRefetch?: boolean, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppsListResponse.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppsListResponse.ts deleted file mode 100644 index dabeded1..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AppsListResponse.ts +++ /dev/null @@ -1,14 +0,0 @@ -// 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 { AppInfo } from "./AppInfo"; - -/** - * EXPERIMENTAL - app list response. - */ -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. - */ -nextCursor: string | null, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/index.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/index.ts index 236972f6..6df4992c 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/index.ts +++ b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/index.ts @@ -11,19 +11,11 @@ export type { AdditionalNetworkPermissions } from "./AdditionalNetworkPermission export type { AdditionalPermissionProfile } from "./AdditionalPermissionProfile"; export type { AgentMessageDeltaNotification } from "./AgentMessageDeltaNotification"; export type { AnalyticsConfig } from "./AnalyticsConfig"; -export type { AppBranding } from "./AppBranding"; -export type { AppInfo } from "./AppInfo"; -export type { AppListUpdatedNotification } from "./AppListUpdatedNotification"; -export type { AppMetadata } from "./AppMetadata"; -export type { AppReview } from "./AppReview"; -export type { AppScreenshot } from "./AppScreenshot"; export type { AppToolApproval } from "./AppToolApproval"; export type { AppToolsConfig } from "./AppToolsConfig"; export type { ApprovalsReviewer } from "./ApprovalsReviewer"; export type { AppsConfig } from "./AppsConfig"; export type { AppsDefaultConfig } from "./AppsDefaultConfig"; -export type { AppsListParams } from "./AppsListParams"; -export type { AppsListResponse } from "./AppsListResponse"; export type { AskForApproval } from "./AskForApproval"; export type { AutoReviewDecisionSource } from "./AutoReviewDecisionSource"; export type { ByteRange } from "./ByteRange"; diff --git a/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs b/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs index 75708385..28ed92f6 100644 --- a/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs +++ b/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs @@ -439,10 +439,6 @@ client_request_definitions! { params: v2::SkillsListParams, response: v2::SkillsListResponse, }, - AppsList => "app/list" { - params: v2::AppsListParams, - response: v2::AppsListResponse, - }, DeviceKeyCreate => "device/key/create" { params: v2::DeviceKeyCreateParams, response: v2::DeviceKeyCreateResponse, @@ -1109,7 +1105,6 @@ server_notification_definitions! { McpServerStatusUpdated => "mcpServer/startupStatus/updated" (v2::McpServerStatusUpdatedNotification), AccountUpdated => "account/updated" (v2::AccountUpdatedNotification), AccountRateLimitsUpdated => "account/rateLimits/updated" (v2::AccountRateLimitsUpdatedNotification), - AppListUpdated => "app/list/updated" (v2::AppListUpdatedNotification), FsChanged => "fs/changed" (v2::FsChangedNotification), ReasoningSummaryTextDelta => "item/reasoning/summaryTextDelta" (v2::ReasoningSummaryTextDeltaNotification), ReasoningSummaryPartAdded => "item/reasoning/summaryPartAdded" (v2::ReasoningSummaryPartAddedNotification), @@ -3438,27 +3433,6 @@ mod tests { Ok(()) } - #[test] - fn serialize_list_apps() -> Result<()> { - let request = ClientRequest::AppsList { - request_id: RequestId::Integer(8), - params: v2::AppsListParams::default(), - }; - assert_eq!( - json!({ - "method": "app/list", - "id": 8, - "params": { - "cursor": null, - "limit": null, - "threadId": null - } - }), - serde_json::to_value(&request)?, - ); - Ok(()) - } - #[test] fn serialize_fs_get_metadata() -> Result<()> { let request = ClientRequest::FsGetMetadata { diff --git a/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs b/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs index 0aa9fddb..c0492f67 100644 --- a/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs +++ b/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs @@ -2365,120 +2365,6 @@ impl From for McpServerToolCallResponse { } } -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -/// EXPERIMENTAL - list available apps/connectors. -pub struct AppsListParams { - /// Opaque pagination cursor returned by a previous call. - #[ts(optional = nullable)] - pub cursor: Option, - /// Optional page size; defaults to a reasonable server-side value. - #[ts(optional = nullable)] - pub limit: Option, - /// Optional thread id used to evaluate app feature gating from that thread's config. - #[ts(optional = nullable)] - pub thread_id: Option, - /// When true, bypass app caches and fetch the latest data from sources. - #[serde(default, skip_serializing_if = "std::ops::Not::not")] - pub force_refetch: bool, -} - -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -/// EXPERIMENTAL - app metadata returned by app-list APIs. -pub struct AppBranding { - pub category: Option, - pub developer: Option, - pub website: Option, - pub privacy_policy: Option, - pub terms_of_service: Option, - pub is_discoverable_app: bool, -} - -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -pub struct AppReview { - pub status: String, -} - -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -pub struct AppScreenshot { - pub url: Option, - #[serde(alias = "file_id")] - pub file_id: Option, - #[serde(alias = "user_prompt")] - pub user_prompt: String, -} - -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -pub struct AppMetadata { - pub review: Option, - pub categories: Option>, - pub sub_categories: Option>, - pub seo_description: Option, - pub screenshots: Option>, - pub developer: Option, - pub version: Option, - pub version_id: Option, - pub version_notes: Option, - pub first_party_type: Option, - pub first_party_requires_install: Option, - pub show_in_composer_when_unlinked: Option, -} - -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -/// EXPERIMENTAL - app metadata returned by app-list APIs. -pub struct AppInfo { - pub id: String, - pub name: String, - pub description: Option, - pub logo_url: Option, - pub logo_url_dark: Option, - pub distribution_channel: Option, - pub branding: Option, - pub app_metadata: Option, - pub labels: Option>, - pub install_url: Option, - #[serde(default)] - pub is_accessible: bool, - /// Whether this app is enabled in config.toml. - /// Example: - /// ```toml - /// [apps.bad_app] - /// enabled = false - /// ``` - #[serde(default = "default_enabled")] - pub is_enabled: bool, -} - -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -/// EXPERIMENTAL - app list response. -pub struct AppsListResponse { - pub data: Vec, - /// Opaque cursor to pass to the next call to continue after the last item. - /// If None, there are no more items to return. - pub next_cursor: Option, -} - -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -/// EXPERIMENTAL - notification emitted when the app list changes. -pub struct AppListUpdatedNotification { - pub data: Vec, -} - #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)] #[serde(rename_all = "camelCase")] #[ts(export_to = "v2/")] diff --git a/vendor/codex/codex-rs/app-server/README.md b/vendor/codex/codex-rs/app-server/README.md index 56ab4fe6..e74f7171 100644 --- a/vendor/codex/codex-rs/app-server/README.md +++ b/vendor/codex/codex-rs/app-server/README.md @@ -13,7 +13,6 @@ - [Events](#events) - [Approvals](#approvals) - [Skills](#skills) -- [Apps](#apps) - [Auth endpoints](#auth-endpoints) - [Experimental API Opt-in](#experimental-api-opt-in) @@ -204,7 +203,6 @@ Experimental Epiphany retrieval: - `plugin/list` — list discovered plugin marketplaces and plugin state, including effective marketplace install/auth policy metadata, fail-open `marketplaceLoadErrors` entries for marketplace files that could not be parsed or loaded, and best-effort `featuredPluginIds` for the official curated marketplace. `interface.category` uses the marketplace category when present; otherwise it falls back to the plugin manifest category (**under development; do not call from production clients yet**). - `plugin/read` — read one plugin by `marketplacePath` plus `pluginName`, returning marketplace info, a list-style `summary`, manifest descriptions/interface metadata, and bundled skills/apps/MCP server names. Returned plugin skills include their current `enabled` state after local config filtering. Plugin app summaries also include `needsAuth` when the server can determine connector accessibility (**under development; do not call from production clients yet**). - `skills/changed` — notification emitted when watched local skill files change. -- `app/list` — list available apps. - `device/key/create` — create or load a controller-local device signing key for an account/client binding. This local-key API is available only over local transports such as stdio and in-process; remote transports reject it. Hardware-backed providers are the target protection class; an OS-protected non-extractable fallback is allowed only with `protectionPolicy: "allow_os_protected_nonextractable"` and returns the reported `protectionClass`. - `device/key/public` — return a device key's SPKI DER public key as base64 plus its `algorithm` and `protectionClass`. - `device/key/sign` — sign one of the accepted structured payload variants with a controller-local device key. The only accepted payload today is `remoteControlClientConnection`, which binds a server-issued `/client` websocket challenge to the enrolled controller device without signing the bearer token itself; this is intentionally not an arbitrary-byte signing API. @@ -1373,93 +1371,6 @@ To enable or disable a skill by name: } ``` -## Apps - -Use `app/list` to fetch available apps (connectors). Each entry includes metadata like the app `id`, display `name`, `installUrl`, `branding`, `appMetadata`, `labels`, whether it is currently accessible, and whether it is enabled in config. - -```json -{ "method": "app/list", "id": 50, "params": { - "cursor": null, - "limit": 50, - "threadId": "thr_123", - "forceRefetch": false -} } -{ "id": 50, "result": { - "data": [ - { - "id": "demo-app", - "name": "Demo App", - "description": "Example connector for documentation.", - "logoUrl": "https://example.com/demo-app.png", - "logoUrlDark": null, - "distributionChannel": null, - "branding": null, - "appMetadata": null, - "labels": null, - "installUrl": "https://chatgpt.com/apps/demo-app/demo-app", - "isAccessible": true, - "isEnabled": true - } - ], - "nextCursor": null -} } -``` - -When `threadId` is provided, app feature gating (`Feature::Apps`) is evaluated using that thread's config snapshot. When omitted, the latest global config is used. - -`app/list` returns after both accessible apps and directory apps are loaded. Set `forceRefetch: true` to bypass app caches and fetch fresh data from sources. Cache entries are only replaced when those refetches succeed. - -The server also emits `app/list/updated` notifications whenever either source (accessible apps or directory apps) finishes loading. Each notification includes the latest merged app list. - -```json -{ - "method": "app/list/updated", - "params": { - "data": [ - { - "id": "demo-app", - "name": "Demo App", - "description": "Example connector for documentation.", - "logoUrl": "https://example.com/demo-app.png", - "logoUrlDark": null, - "distributionChannel": null, - "branding": null, - "appMetadata": null, - "labels": null, - "installUrl": "https://chatgpt.com/apps/demo-app/demo-app", - "isAccessible": true, - "isEnabled": true - } - ] - } -} -``` - -Invoke an app by inserting `$` in the text input. The slug is derived from the app name and lowercased with non-alphanumeric characters replaced by `-` (for example, "Demo App" becomes `$demo-app`). Add a `mention` input item (recommended) so the server uses the exact `app://` path rather than guessing by name. Plugins use the same `mention` item shape, but with `plugin://@` paths from `plugin/list`. - -Example: - -``` -$demo-app Pull the latest updates from the team. -``` - -```json -{ - "method": "turn/start", - "id": 51, - "params": { - "threadId": "thread-1", - "input": [ - { - "type": "text", - "text": "$demo-app Pull the latest updates from the team." - }, - { "type": "mention", "name": "Demo App", "path": "app://demo-app" } - ] - } -} -``` - ## Auth endpoints The JSON-RPC auth/account surface exposes request/response methods plus server-initiated notifications (no `id`). Use these to determine auth state, start or cancel logins, logout, and inspect ChatGPT rate limits. diff --git a/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs b/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs index e1b4b08c..8ced5fd5 100644 --- a/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs +++ b/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs @@ -39,8 +39,6 @@ use codex_app_server_protocol::AccountLoginCompletedNotification; use codex_app_server_protocol::AccountUpdatedNotification; use codex_app_server_protocol::AddCreditsNudgeCreditType; use codex_app_server_protocol::AddCreditsNudgeEmailStatus; -use codex_app_server_protocol::AppsListParams; -use codex_app_server_protocol::AppsListResponse; use codex_app_server_protocol::AskForApproval; use codex_app_server_protocol::AuthMode; use codex_app_server_protocol::AuthMode as CoreAuthMode; @@ -1000,10 +998,6 @@ impl CodexMessageProcessor { self.skills_list(to_connection_request_id(request_id), params) .await; } - ClientRequest::AppsList { request_id, params } => { - self.apps_list(to_connection_request_id(request_id), params) - .await; - } ClientRequest::SkillsConfigWrite { request_id, params } => { self.skills_config_write(to_connection_request_id(request_id), params) .await; @@ -6325,18 +6319,6 @@ impl CodexMessageProcessor { self.finalize_thread_teardown(thread_id).await; } - async fn apps_list(&self, request_id: ConnectionRequestId, _params: AppsListParams) { - self.outgoing - .send_response( - request_id, - AppsListResponse { - data: Vec::new(), - next_cursor: None, - }, - ) - .await; - } - async fn skills_list(&self, request_id: ConnectionRequestId, _params: SkillsListParams) { self.outgoing .send_response(request_id, SkillsListResponse { data: Vec::new() }) diff --git a/vendor/codex/codex-rs/app-server/tests/common/mcp_process.rs b/vendor/codex/codex-rs/app-server/tests/common/mcp_process.rs index cdbd83c7..5126acc2 100644 --- a/vendor/codex/codex-rs/app-server/tests/common/mcp_process.rs +++ b/vendor/codex/codex-rs/app-server/tests/common/mcp_process.rs @@ -11,7 +11,6 @@ use tokio::process::ChildStdin; use tokio::process::ChildStdout; use anyhow::Context; -use codex_app_server_protocol::AppsListParams; use codex_app_server_protocol::CancelLoginAccountParams; use codex_app_server_protocol::ClientInfo; use codex_app_server_protocol::ClientNotification; @@ -508,12 +507,6 @@ impl McpProcess { .await } - /// Send an `app/list` JSON-RPC request. - pub async fn send_apps_list_request(&mut self, params: AppsListParams) -> anyhow::Result { - let params = Some(serde_json::to_value(params)?); - self.send_request("app/list", params).await - } - /// Send an `mcpServer/resource/read` JSON-RPC request. pub async fn send_mcp_resource_read_request( &mut self, diff --git a/vendor/codex/codex-rs/connectors/BUILD.bazel b/vendor/codex/codex-rs/connectors/BUILD.bazel deleted file mode 100644 index c4cb9ebd..00000000 --- a/vendor/codex/codex-rs/connectors/BUILD.bazel +++ /dev/null @@ -1,6 +0,0 @@ -load("//:defs.bzl", "codex_rust_crate") - -codex_rust_crate( - name = "connectors", - crate_name = "codex_connectors", -) diff --git a/vendor/codex/codex-rs/connectors/Cargo.toml b/vendor/codex/codex-rs/connectors/Cargo.toml deleted file mode 100644 index 9cd2428a..00000000 --- a/vendor/codex/codex-rs/connectors/Cargo.toml +++ /dev/null @@ -1,18 +0,0 @@ -[package] -name = "codex-connectors" -version.workspace = true -edition.workspace = true -license.workspace = true - -[lints] -workspace = true - -[dependencies] -anyhow = { workspace = true } -codex-app-server-protocol = { workspace = true } -serde = { workspace = true, features = ["derive"] } -urlencoding = { workspace = true } - -[dev-dependencies] -pretty_assertions = { workspace = true } -tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } diff --git a/vendor/codex/codex-rs/connectors/src/accessible.rs b/vendor/codex/codex-rs/connectors/src/accessible.rs deleted file mode 100644 index af3eccd2..00000000 --- a/vendor/codex/codex-rs/connectors/src/accessible.rs +++ /dev/null @@ -1,66 +0,0 @@ -use std::collections::HashMap; - -use crate::metadata::connector_install_url; -use crate::normalize_connector_value; -use codex_app_server_protocol::AppInfo; - -pub struct AccessibleConnectorTool { - pub connector_id: String, - pub connector_name: Option, - pub connector_description: Option, -} - -pub fn collect_accessible_connectors(tools: I) -> Vec -where - I: IntoIterator, -{ - let mut connectors: HashMap = HashMap::new(); - for tool in tools { - let connector_id = tool.connector_id; - let connector_name = normalize_connector_value(tool.connector_name.as_deref()) - .unwrap_or_else(|| connector_id.clone()); - let connector_description = - normalize_connector_value(tool.connector_description.as_deref()); - if let Some(existing) = connectors.get_mut(&connector_id) { - if existing.name == connector_id && connector_name != connector_id { - existing.name = connector_name; - } - if existing.description.is_none() && connector_description.is_some() { - existing.description = connector_description; - } - } else { - connectors.insert( - connector_id.clone(), - AppInfo { - id: connector_id.clone(), - name: connector_name, - description: connector_description, - logo_url: None, - logo_url_dark: None, - distribution_channel: None, - branding: None, - app_metadata: None, - labels: None, - install_url: None, - is_accessible: true, - is_enabled: true, - }, - ); - } - } - let mut accessible: Vec = connectors - .into_values() - .map(|mut connector| { - connector.install_url = Some(connector_install_url(&connector.name, &connector.id)); - connector - }) - .collect(); - accessible.sort_by(|left, right| { - right - .is_accessible - .cmp(&left.is_accessible) - .then_with(|| left.name.cmp(&right.name)) - .then_with(|| left.id.cmp(&right.id)) - }); - accessible -} diff --git a/vendor/codex/codex-rs/connectors/src/filter.rs b/vendor/codex/codex-rs/connectors/src/filter.rs deleted file mode 100644 index bb82621d..00000000 --- a/vendor/codex/codex-rs/connectors/src/filter.rs +++ /dev/null @@ -1,41 +0,0 @@ -use codex_app_server_protocol::AppInfo; - -const DISALLOWED_CONNECTOR_IDS: &[&str] = &[ - "asdk_app_6938a94a61d881918ef32cb999ff937c", - "connector_2b0a9009c9c64bf9933a3dae3f2b1254", - "connector_3f8d1a79f27c4c7ba1a897ab13bf37dc", - "connector_68de829bf7648191acd70a907364c67c", - "connector_68e004f14af881919eb50893d3d9f523", - "connector_69272cb413a081919685ec3c88d1744e", -]; -const FIRST_PARTY_CHAT_DISALLOWED_CONNECTOR_IDS: &[&str] = - &["connector_0f9c9d4592e54d0a9a12b3f44a1e2010"]; -const DISALLOWED_CONNECTOR_PREFIX: &str = "connector_openai_"; - -pub fn filter_disallowed_connectors( - connectors: Vec, - originator_value: &str, -) -> Vec { - let first_party_chat_originator = is_first_party_chat_originator(originator_value); - connectors - .into_iter() - .filter(|connector| { - is_connector_id_allowed(connector.id.as_str(), first_party_chat_originator) - }) - .collect() -} - -fn is_first_party_chat_originator(originator_value: &str) -> bool { - originator_value == "codex_atlas" || originator_value == "codex_chatgpt_desktop" -} - -fn is_connector_id_allowed(connector_id: &str, first_party_chat_originator: bool) -> bool { - let disallowed_connector_ids = if first_party_chat_originator { - FIRST_PARTY_CHAT_DISALLOWED_CONNECTOR_IDS - } else { - DISALLOWED_CONNECTOR_IDS - }; - - !connector_id.starts_with(DISALLOWED_CONNECTOR_PREFIX) - && !disallowed_connector_ids.contains(&connector_id) -} diff --git a/vendor/codex/codex-rs/connectors/src/lib.rs b/vendor/codex/codex-rs/connectors/src/lib.rs deleted file mode 100644 index 0a65c52e..00000000 --- a/vendor/codex/codex-rs/connectors/src/lib.rs +++ /dev/null @@ -1,615 +0,0 @@ -use std::collections::HashMap; -use std::future::Future; -use std::sync::LazyLock; -use std::sync::Mutex as StdMutex; -use std::time::Duration; -use std::time::Instant; - -use codex_app_server_protocol::AppBranding; -use codex_app_server_protocol::AppInfo; -use codex_app_server_protocol::AppMetadata; -use serde::Deserialize; - -pub mod accessible; -pub mod filter; -pub mod merge; -pub mod metadata; - -pub const CONNECTORS_CACHE_TTL: Duration = Duration::from_secs(3600); - -#[derive(Clone, Debug, PartialEq, Eq)] -pub struct AllConnectorsCacheKey { - chatgpt_base_url: String, - account_id: Option, - chatgpt_user_id: Option, - is_workspace_account: bool, -} - -impl AllConnectorsCacheKey { - pub fn new( - chatgpt_base_url: String, - account_id: Option, - chatgpt_user_id: Option, - is_workspace_account: bool, - ) -> Self { - Self { - chatgpt_base_url, - account_id, - chatgpt_user_id, - is_workspace_account, - } - } -} - -#[derive(Clone)] -struct CachedAllConnectors { - key: AllConnectorsCacheKey, - expires_at: Instant, - connectors: Vec, -} - -static ALL_CONNECTORS_CACHE: LazyLock>> = - LazyLock::new(|| StdMutex::new(None)); - -#[derive(Debug, Deserialize)] -pub struct DirectoryListResponse { - apps: Vec, - #[serde(alias = "nextToken")] - next_token: Option, -} - -#[derive(Debug, Deserialize, Clone)] -pub struct DirectoryApp { - id: String, - name: String, - description: Option, - #[serde(alias = "appMetadata")] - app_metadata: Option, - branding: Option, - labels: Option>, - #[serde(alias = "logoUrl")] - logo_url: Option, - #[serde(alias = "logoUrlDark")] - logo_url_dark: Option, - #[serde(alias = "distributionChannel")] - distribution_channel: Option, - visibility: Option, -} - -pub fn cached_all_connectors(cache_key: &AllConnectorsCacheKey) -> Option> { - let mut cache_guard = ALL_CONNECTORS_CACHE - .lock() - .unwrap_or_else(std::sync::PoisonError::into_inner); - let now = Instant::now(); - - if let Some(cached) = cache_guard.as_ref() { - if now < cached.expires_at && cached.key == *cache_key { - return Some(cached.connectors.clone()); - } - if now >= cached.expires_at { - *cache_guard = None; - } - } - - None -} - -pub async fn list_all_connectors_with_options( - cache_key: AllConnectorsCacheKey, - is_workspace_account: bool, - force_refetch: bool, - mut fetch_page: F, -) -> anyhow::Result> -where - F: FnMut(String) -> Fut, - Fut: Future>, -{ - if !force_refetch && let Some(cached_connectors) = cached_all_connectors(&cache_key) { - return Ok(cached_connectors); - } - - let mut apps = list_directory_connectors(&mut fetch_page).await?; - if is_workspace_account { - apps.extend(list_workspace_connectors(&mut fetch_page).await?); - } - - let mut connectors = merge_directory_apps(apps) - .into_iter() - .map(directory_app_to_app_info) - .collect::>(); - for connector in &mut connectors { - let install_url = match connector.install_url.take() { - Some(install_url) => install_url, - None => connector_install_url(&connector.name, &connector.id), - }; - connector.name = normalize_connector_name(&connector.name, &connector.id); - connector.description = normalize_connector_value(connector.description.as_deref()); - connector.install_url = Some(install_url); - connector.is_accessible = false; - } - connectors.sort_by(|left, right| { - left.name - .cmp(&right.name) - .then_with(|| left.id.cmp(&right.id)) - }); - write_cached_all_connectors(cache_key, &connectors); - Ok(connectors) -} - -fn write_cached_all_connectors(cache_key: AllConnectorsCacheKey, connectors: &[AppInfo]) { - let mut cache_guard = ALL_CONNECTORS_CACHE - .lock() - .unwrap_or_else(std::sync::PoisonError::into_inner); - *cache_guard = Some(CachedAllConnectors { - key: cache_key, - expires_at: Instant::now() + CONNECTORS_CACHE_TTL, - connectors: connectors.to_vec(), - }); -} - -async fn list_directory_connectors(fetch_page: &mut F) -> anyhow::Result> -where - F: FnMut(String) -> Fut, - Fut: Future>, -{ - let mut apps = Vec::new(); - let mut next_token: Option = None; - loop { - let path = match next_token.as_deref() { - Some(token) => { - let encoded_token = urlencoding::encode(token); - format!("/connectors/directory/list?token={encoded_token}&external_logos=true") - } - None => "/connectors/directory/list?external_logos=true".to_string(), - }; - let response = fetch_page(path).await?; - apps.extend( - response - .apps - .into_iter() - .filter(|app| !is_hidden_directory_app(app)), - ); - next_token = response - .next_token - .map(|token| token.trim().to_string()) - .filter(|token| !token.is_empty()); - if next_token.is_none() { - break; - } - } - Ok(apps) -} - -async fn list_workspace_connectors(fetch_page: &mut F) -> anyhow::Result> -where - F: FnMut(String) -> Fut, - Fut: Future>, -{ - let response = - fetch_page("/connectors/directory/list_workspace?external_logos=true".to_string()).await; - match response { - Ok(response) => Ok(response - .apps - .into_iter() - .filter(|app| !is_hidden_directory_app(app)) - .collect()), - Err(_) => Ok(Vec::new()), - } -} - -fn merge_directory_apps(apps: Vec) -> Vec { - let mut merged: HashMap = HashMap::new(); - for app in apps { - if let Some(existing) = merged.get_mut(&app.id) { - merge_directory_app(existing, app); - } else { - merged.insert(app.id.clone(), app); - } - } - merged.into_values().collect() -} - -fn merge_directory_app(existing: &mut DirectoryApp, incoming: DirectoryApp) { - let DirectoryApp { - id: _, - name, - description, - app_metadata, - branding, - labels, - logo_url, - logo_url_dark, - distribution_channel, - visibility: _, - } = incoming; - - let incoming_name_is_empty = name.trim().is_empty(); - if existing.name.trim().is_empty() && !incoming_name_is_empty { - existing.name = name; - } - - let incoming_description_present = description - .as_deref() - .map(|value| !value.trim().is_empty()) - .unwrap_or(false); - if incoming_description_present { - existing.description = description; - } - - if existing.logo_url.is_none() && logo_url.is_some() { - existing.logo_url = logo_url; - } - if existing.logo_url_dark.is_none() && logo_url_dark.is_some() { - existing.logo_url_dark = logo_url_dark; - } - if existing.distribution_channel.is_none() && distribution_channel.is_some() { - existing.distribution_channel = distribution_channel; - } - - if let Some(incoming_branding) = branding { - if let Some(existing_branding) = existing.branding.as_mut() { - if existing_branding.category.is_none() && incoming_branding.category.is_some() { - existing_branding.category = incoming_branding.category; - } - if existing_branding.developer.is_none() && incoming_branding.developer.is_some() { - existing_branding.developer = incoming_branding.developer; - } - if existing_branding.website.is_none() && incoming_branding.website.is_some() { - existing_branding.website = incoming_branding.website; - } - if existing_branding.privacy_policy.is_none() - && incoming_branding.privacy_policy.is_some() - { - existing_branding.privacy_policy = incoming_branding.privacy_policy; - } - if existing_branding.terms_of_service.is_none() - && incoming_branding.terms_of_service.is_some() - { - existing_branding.terms_of_service = incoming_branding.terms_of_service; - } - if !existing_branding.is_discoverable_app && incoming_branding.is_discoverable_app { - existing_branding.is_discoverable_app = true; - } - } else { - existing.branding = Some(incoming_branding); - } - } - - if let Some(incoming_app_metadata) = app_metadata { - if let Some(existing_app_metadata) = existing.app_metadata.as_mut() { - if existing_app_metadata.review.is_none() && incoming_app_metadata.review.is_some() { - existing_app_metadata.review = incoming_app_metadata.review; - } - if existing_app_metadata.categories.is_none() - && incoming_app_metadata.categories.is_some() - { - existing_app_metadata.categories = incoming_app_metadata.categories; - } - if existing_app_metadata.sub_categories.is_none() - && incoming_app_metadata.sub_categories.is_some() - { - existing_app_metadata.sub_categories = incoming_app_metadata.sub_categories; - } - if existing_app_metadata.seo_description.is_none() - && incoming_app_metadata.seo_description.is_some() - { - existing_app_metadata.seo_description = incoming_app_metadata.seo_description; - } - if existing_app_metadata.screenshots.is_none() - && incoming_app_metadata.screenshots.is_some() - { - existing_app_metadata.screenshots = incoming_app_metadata.screenshots; - } - if existing_app_metadata.developer.is_none() - && incoming_app_metadata.developer.is_some() - { - existing_app_metadata.developer = incoming_app_metadata.developer; - } - if existing_app_metadata.version.is_none() && incoming_app_metadata.version.is_some() { - existing_app_metadata.version = incoming_app_metadata.version; - } - if existing_app_metadata.version_id.is_none() - && incoming_app_metadata.version_id.is_some() - { - existing_app_metadata.version_id = incoming_app_metadata.version_id; - } - if existing_app_metadata.version_notes.is_none() - && incoming_app_metadata.version_notes.is_some() - { - existing_app_metadata.version_notes = incoming_app_metadata.version_notes; - } - if existing_app_metadata.first_party_type.is_none() - && incoming_app_metadata.first_party_type.is_some() - { - existing_app_metadata.first_party_type = incoming_app_metadata.first_party_type; - } - if existing_app_metadata.first_party_requires_install.is_none() - && incoming_app_metadata.first_party_requires_install.is_some() - { - existing_app_metadata.first_party_requires_install = - incoming_app_metadata.first_party_requires_install; - } - if existing_app_metadata - .show_in_composer_when_unlinked - .is_none() - && incoming_app_metadata - .show_in_composer_when_unlinked - .is_some() - { - existing_app_metadata.show_in_composer_when_unlinked = - incoming_app_metadata.show_in_composer_when_unlinked; - } - } else { - existing.app_metadata = Some(incoming_app_metadata); - } - } - - if existing.labels.is_none() && labels.is_some() { - existing.labels = labels; - } -} - -fn is_hidden_directory_app(app: &DirectoryApp) -> bool { - matches!(app.visibility.as_deref(), Some("HIDDEN")) -} - -fn directory_app_to_app_info(app: DirectoryApp) -> AppInfo { - AppInfo { - id: app.id, - name: app.name, - description: app.description, - logo_url: app.logo_url, - logo_url_dark: app.logo_url_dark, - distribution_channel: app.distribution_channel, - branding: app.branding, - app_metadata: app.app_metadata, - labels: app.labels, - install_url: None, - is_accessible: false, - is_enabled: true, - } -} - -fn connector_install_url(name: &str, connector_id: &str) -> String { - let slug = connector_name_slug(name); - format!("https://chatgpt.com/apps/{slug}/{connector_id}") -} - -fn connector_name_slug(name: &str) -> String { - let mut normalized = String::with_capacity(name.len()); - for character in name.chars() { - if character.is_ascii_alphanumeric() { - normalized.push(character.to_ascii_lowercase()); - } else { - normalized.push('-'); - } - } - let normalized = normalized.trim_matches('-'); - if normalized.is_empty() { - "app".to_string() - } else { - normalized.to_string() - } -} - -fn normalize_connector_name(name: &str, connector_id: &str) -> String { - let trimmed = name.trim(); - if trimmed.is_empty() { - connector_id.to_string() - } else { - trimmed.to_string() - } -} - -fn normalize_connector_value(value: Option<&str>) -> Option { - value - .map(str::trim) - .filter(|value| !value.is_empty()) - .map(str::to_string) -} - -#[cfg(test)] -mod tests { - use super::*; - use pretty_assertions::assert_eq; - use std::sync::Arc; - use std::sync::Mutex; - use std::sync::atomic::AtomicUsize; - use std::sync::atomic::Ordering; - - static ALL_CONNECTORS_CACHE_TEST_LOCK: LazyLock> = - LazyLock::new(|| tokio::sync::Mutex::new(())); - - fn cache_key(id: &str) -> AllConnectorsCacheKey { - AllConnectorsCacheKey::new( - "https://chatgpt.example".to_string(), - Some(format!("account-{id}")), - Some(format!("user-{id}")), - /*is_workspace_account*/ true, - ) - } - - fn app(id: &str, name: &str) -> DirectoryApp { - DirectoryApp { - id: id.to_string(), - name: name.to_string(), - description: None, - app_metadata: None, - branding: None, - labels: None, - logo_url: None, - logo_url_dark: None, - distribution_channel: None, - visibility: None, - } - } - - #[tokio::test] - #[expect( - clippy::await_holding_invalid_type, - reason = "test serializes access to the shared connector cache for its full duration" - )] - async fn list_all_connectors_uses_shared_cache() -> anyhow::Result<()> { - let _cache_guard = ALL_CONNECTORS_CACHE_TEST_LOCK.lock().await; - - let calls = Arc::new(AtomicUsize::new(0)); - let call_counter = Arc::clone(&calls); - let key = cache_key("shared"); - - let first = list_all_connectors_with_options( - key.clone(), - /*is_workspace_account*/ false, - /*force_refetch*/ false, - move |_path| { - let call_counter = Arc::clone(&call_counter); - async move { - call_counter.fetch_add(1, Ordering::SeqCst); - Ok(DirectoryListResponse { - apps: vec![app("alpha", "Alpha")], - next_token: None, - }) - } - }, - ) - .await?; - - let second = list_all_connectors_with_options( - key, - /*is_workspace_account*/ false, - /*force_refetch*/ false, - move |_path| async move { - anyhow::bail!("cache should have been used"); - }, - ) - .await?; - - assert_eq!(calls.load(Ordering::SeqCst), 1); - assert_eq!(first, second); - Ok(()) - } - - #[tokio::test] - #[expect( - clippy::await_holding_invalid_type, - reason = "test serializes access to the shared connector cache for its full duration" - )] - async fn list_all_connectors_merges_and_normalizes_directory_apps() -> anyhow::Result<()> { - let _cache_guard = ALL_CONNECTORS_CACHE_TEST_LOCK.lock().await; - - let key = cache_key("merged"); - let calls = Arc::new(AtomicUsize::new(0)); - let call_counter = Arc::clone(&calls); - - let connectors = list_all_connectors_with_options( - key, - /*is_workspace_account*/ true, - /*force_refetch*/ true, - move |path| { - let call_counter = Arc::clone(&call_counter); - async move { - call_counter.fetch_add(1, Ordering::SeqCst); - if path.starts_with("/connectors/directory/list_workspace") { - Ok(DirectoryListResponse { - apps: vec![ - DirectoryApp { - description: Some("Merged description".to_string()), - branding: Some(AppBranding { - category: Some("calendar".to_string()), - developer: None, - website: None, - privacy_policy: None, - terms_of_service: None, - is_discoverable_app: true, - }), - ..app("alpha", "") - }, - DirectoryApp { - visibility: Some("HIDDEN".to_string()), - ..app("hidden", "Hidden") - }, - ], - next_token: None, - }) - } else { - Ok(DirectoryListResponse { - apps: vec![app("alpha", " Alpha "), app("beta", "Beta")], - next_token: None, - }) - } - } - }, - ) - .await?; - - assert_eq!(calls.load(Ordering::SeqCst), 2); - assert_eq!(connectors.len(), 2); - assert_eq!(connectors[0].id, "alpha"); - assert_eq!(connectors[0].name, "Alpha"); - assert_eq!( - connectors[0].description.as_deref(), - Some("Merged description") - ); - assert_eq!( - connectors[0].install_url.as_deref(), - Some("https://chatgpt.com/apps/alpha/alpha") - ); - assert_eq!( - connectors[0] - .branding - .as_ref() - .and_then(|branding| branding.category.as_deref()), - Some("calendar") - ); - assert_eq!(connectors[1].id, "beta"); - assert_eq!(connectors[1].name, "Beta"); - Ok(()) - } - - #[tokio::test] - async fn list_directory_connectors_omits_tier_for_all_pages() -> anyhow::Result<()> { - let requested_paths: Arc>> = Arc::new(Mutex::new(Vec::new())); - let paths = Arc::clone(&requested_paths); - - let apps = list_directory_connectors(&mut move |path| { - let paths = Arc::clone(&paths); - async move { - paths - .lock() - .unwrap_or_else(std::sync::PoisonError::into_inner) - .push(path.clone()); - if path == "/connectors/directory/list?external_logos=true" { - Ok(DirectoryListResponse { - apps: vec![app("alpha", "Alpha")], - next_token: Some("page 2".to_string()), - }) - } else { - assert_eq!( - path, - "/connectors/directory/list?token=page%202&external_logos=true" - ); - Ok(DirectoryListResponse { - apps: vec![app("beta", "Beta")], - next_token: None, - }) - } - } - }) - .await?; - - assert_eq!( - apps.iter().map(|app| app.id.as_str()).collect::>(), - vec!["alpha", "beta"] - ); - assert_eq!( - requested_paths - .lock() - .unwrap_or_else(std::sync::PoisonError::into_inner) - .as_slice(), - &[ - "/connectors/directory/list?external_logos=true".to_string(), - "/connectors/directory/list?token=page%202&external_logos=true".to_string(), - ] - ); - Ok(()) - } -} diff --git a/vendor/codex/codex-rs/connectors/src/merge.rs b/vendor/codex/codex-rs/connectors/src/merge.rs deleted file mode 100644 index 9dd21751..00000000 --- a/vendor/codex/codex-rs/connectors/src/merge.rs +++ /dev/null @@ -1,52 +0,0 @@ -use std::collections::HashMap; - -use crate::metadata::connector_install_url; -use crate::metadata::sort_connectors_by_accessibility_and_name; -use codex_app_server_protocol::AppInfo; - -pub fn merge_connectors( - connectors: Vec, - accessible_connectors: Vec, -) -> Vec { - let mut merged: HashMap = connectors - .into_iter() - .map(|mut connector| { - connector.is_accessible = false; - (connector.id.clone(), connector) - }) - .collect(); - - for mut connector in accessible_connectors { - connector.is_accessible = true; - let connector_id = connector.id.clone(); - if let Some(existing) = merged.get_mut(&connector_id) { - existing.is_accessible = true; - if existing.name == existing.id && connector.name != connector.id { - existing.name = connector.name; - } - if existing.description.is_none() && connector.description.is_some() { - existing.description = connector.description; - } - if existing.logo_url.is_none() && connector.logo_url.is_some() { - existing.logo_url = connector.logo_url; - } - if existing.logo_url_dark.is_none() && connector.logo_url_dark.is_some() { - existing.logo_url_dark = connector.logo_url_dark; - } - if existing.distribution_channel.is_none() && connector.distribution_channel.is_some() { - existing.distribution_channel = connector.distribution_channel; - } - } else { - merged.insert(connector_id, connector); - } - } - - let mut merged = merged.into_values().collect::>(); - for connector in &mut merged { - if connector.install_url.is_none() { - connector.install_url = Some(connector_install_url(&connector.name, &connector.id)); - } - } - sort_connectors_by_accessibility_and_name(&mut merged); - merged -} diff --git a/vendor/codex/codex-rs/connectors/src/metadata.rs b/vendor/codex/codex-rs/connectors/src/metadata.rs deleted file mode 100644 index 64becb76..00000000 --- a/vendor/codex/codex-rs/connectors/src/metadata.rs +++ /dev/null @@ -1,27 +0,0 @@ -use codex_app_server_protocol::AppInfo; - -pub fn connector_display_label(connector: &AppInfo) -> String { - connector.name.clone() -} - -pub fn connector_mention_slug(connector: &AppInfo) -> String { - crate::connector_name_slug(&connector_display_label(connector)) -} - -pub fn connector_install_url(name: &str, connector_id: &str) -> String { - crate::connector_install_url(name, connector_id) -} - -pub fn sanitize_name(name: &str) -> String { - crate::connector_name_slug(name).replace("-", "_") -} - -pub(crate) fn sort_connectors_by_accessibility_and_name(connectors: &mut [AppInfo]) { - connectors.sort_by(|left, right| { - right - .is_accessible - .cmp(&left.is_accessible) - .then_with(|| left.name.cmp(&right.name)) - .then_with(|| left.id.cmp(&right.id)) - }); -} diff --git a/vendor/codex/codex-rs/core/Cargo.toml b/vendor/codex/codex-rs/core/Cargo.toml index ad03899e..68f10b84 100644 --- a/vendor/codex/codex-rs/core/Cargo.toml +++ b/vendor/codex/codex-rs/core/Cargo.toml @@ -31,7 +31,6 @@ codex-app-server-protocol = { workspace = true } codex-apply-patch = { workspace = true } codex-async-utils = { workspace = true } codex-code-mode = { workspace = true } -codex-connectors = { workspace = true } codex-config = { workspace = true } codex-core-skills = { workspace = true } codex-exec-server = { workspace = true } diff --git a/vendor/codex/codex-rs/core/src/connectors.rs b/vendor/codex/codex-rs/core/src/connectors.rs deleted file mode 100644 index e54a893f..00000000 --- a/vendor/codex/codex-rs/core/src/connectors.rs +++ /dev/null @@ -1,74 +0,0 @@ -pub use codex_app_server_protocol::AppBranding; -pub use codex_app_server_protocol::AppInfo; -pub use codex_app_server_protocol::AppMetadata; -use codex_mcp::ToolInfo; - -use crate::config::Config; - -#[derive(Debug, Clone)] -pub struct AccessibleConnectorsStatus { - pub connectors: Vec, -} - -pub async fn list_accessible_connectors_from_mcp_tools( - _config: &Config, -) -> anyhow::Result> { - Ok(Vec::new()) -} - -pub async fn list_cached_accessible_connectors_from_mcp_tools( - _config: &Config, -) -> Option> { - Some(Vec::new()) -} - -pub async fn list_all_connectors_with_options( - _config: &Config, - _force_refetch: bool, -) -> anyhow::Result> { - Ok(Vec::new()) -} - -pub fn merge_connectors_with_accessible( - _all_connectors: Vec, - accessible_connectors: Vec, - _all_connectors_loaded: bool, -) -> Vec { - accessible_connectors -} - -pub async fn list_accessible_connectors_from_mcp_tools_with_options( - _config: &Config, - _force_refetch: bool, -) -> anyhow::Result> { - Ok(Vec::new()) -} - -pub async fn list_accessible_connectors_from_mcp_tools_with_options_and_status( - _config: &Config, - _force_refetch: bool, -) -> anyhow::Result { - Ok(AccessibleConnectorsStatus { - connectors: Vec::new(), - }) -} - -pub async fn list_accessible_connectors_from_mcp_tools_with_environment_manager( - _config: &Config, - _force_refetch: bool, - _environment_manager: &codex_exec_server::EnvironmentManager, -) -> anyhow::Result { - Ok(AccessibleConnectorsStatus { - connectors: Vec::new(), - }) -} - -pub fn accessible_connectors_from_mcp_tools( - _mcp_tools: &std::collections::HashMap, -) -> Vec { - Vec::new() -} - -pub fn with_app_enabled_state(connectors: Vec, _config: &Config) -> Vec { - connectors -} diff --git a/vendor/codex/codex-rs/core/src/lib.rs b/vendor/codex/codex-rs/core/src/lib.rs index 3fbb0f13..e4734778 100644 --- a/vendor/codex/codex-rs/core/src/lib.rs +++ b/vendor/codex/codex-rs/core/src/lib.rs @@ -46,7 +46,6 @@ mod command_canonicalization; mod commit_attribution; pub mod config; pub mod config_loader; -pub mod connectors; pub mod context; mod context_manager; pub mod exec; diff --git a/vendor/codex/codex-rs/core/src/session/tests.rs b/vendor/codex/codex-rs/core/src/session/tests.rs index 7b61f1fc..fc5e10ae 100644 --- a/vendor/codex/codex-rs/core/src/session/tests.rs +++ b/vendor/codex/codex-rs/core/src/session/tests.rs @@ -62,7 +62,6 @@ use crate::tools::handlers::UnifiedExecHandler; use crate::tools::registry::ToolHandler; use crate::tools::router::ToolCallSource; use crate::turn_diff_tracker::TurnDiffTracker; -use codex_app_server_protocol::AppInfo; use codex_config::config_toml::ConfigToml; use codex_config::config_toml::ProjectConfig; use codex_execpolicy::Decision; @@ -758,23 +757,6 @@ fn test_tool_runtime(session: Arc, turn_context: Arc) -> T ToolCallRuntime::new(router, session, turn_context, tracker) } -fn make_connector(id: &str, name: &str) -> AppInfo { - AppInfo { - id: id.to_string(), - name: name.to_string(), - description: None, - logo_url: None, - logo_url_dark: None, - distribution_channel: None, - branding: None, - app_metadata: None, - labels: None, - install_url: None, - is_accessible: true, - is_enabled: true, - } -} - #[test] fn assistant_message_stream_parsers_can_be_seeded_from_output_item_added_text() { let mut parsers = AssistantMessageStreamParsers::new(/*plan_mode*/ false); diff --git a/vendor/codex/codex-rs/docs/codex_mcp_interface.md b/vendor/codex/codex-rs/docs/codex_mcp_interface.md index b4e3adfe..d09d22bf 100644 --- a/vendor/codex/codex-rs/docs/codex_mcp_interface.md +++ b/vendor/codex/codex-rs/docs/codex_mcp_interface.md @@ -17,7 +17,7 @@ At a glance: - `turn/start`, `turn/steer`, `turn/interrupt` - `account/read`, `account/login/start`, `account/login/cancel`, `account/logout`, `account/rateLimits/read` - `config/read`, `config/value/write`, `config/batchWrite` - - `model/list`, `app/list`, `collaborationMode/list` + - `model/list`, `collaborationMode/list` - Remaining v1 compatibility RPCs - `getConversationSummary` - `getAuthStatus` diff --git a/vendor/codex/codex-rs/tui/Cargo.toml b/vendor/codex/codex-rs/tui/Cargo.toml index 16771d4d..835e5c45 100644 --- a/vendor/codex/codex-rs/tui/Cargo.toml +++ b/vendor/codex/codex-rs/tui/Cargo.toml @@ -32,7 +32,6 @@ codex-arg0 = { workspace = true } codex-install-context = { workspace = true } codex-cloud-requirements = { workspace = true } codex-config = { workspace = true } -codex-connectors = { workspace = true } codex-core-skills = { workspace = true } codex-exec-server = { workspace = true } codex-features = { workspace = true } diff --git a/vendor/codex/codex-rs/tui/src/app/app_server_adapter.rs b/vendor/codex/codex-rs/tui/src/app/app_server_adapter.rs index ae7c5d51..602504e2 100644 --- a/vendor/codex/codex-rs/tui/src/app/app_server_adapter.rs +++ b/vendor/codex/codex-rs/tui/src/app/app_server_adapter.rs @@ -423,7 +423,6 @@ fn server_notification_thread_target( | ServerNotification::McpServerOauthLoginCompleted(_) | ServerNotification::AccountUpdated(_) | ServerNotification::AccountRateLimitsUpdated(_) - | ServerNotification::AppListUpdated(_) | ServerNotification::DeprecationNotice(_) | ServerNotification::ConfigWarning(_) | ServerNotification::FuzzyFileSearchSessionUpdated(_) diff --git a/vendor/codex/codex-rs/tui/src/chatwidget.rs b/vendor/codex/codex-rs/tui/src/chatwidget.rs index 57698bf2..38e34d70 100644 --- a/vendor/codex/codex-rs/tui/src/chatwidget.rs +++ b/vendor/codex/codex-rs/tui/src/chatwidget.rs @@ -6551,7 +6551,6 @@ impl ChatWidget { | ServerNotification::FileChangePatchUpdated(_) | ServerNotification::McpToolCallProgress(_) | ServerNotification::McpServerOauthLoginCompleted(_) - | ServerNotification::AppListUpdated(_) | ServerNotification::FsChanged(_) | ServerNotification::FuzzyFileSearchSessionUpdated(_) | ServerNotification::FuzzyFileSearchSessionCompleted(_)