diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index f7de11d6..530be022 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -894,6 +894,13 @@ orphaned app-server-protocol `Plugin*` / marketplace plugin structs and their serialization tests are now deleted from source too. The unreferenced curated plugin startup-sync metric constants were removed from `codex-otel`. +The external agent config import product is gone. There are no +`externalAgentConfig/detect`, `externalAgentConfig/import`, import-completed +notification, TUI startup prompt, migration modules, snapshots, disabled +app-server handlers, or generated schemas left. This was not keeper +auth/model-routing machinery; it was a disabled migration product orbiting the +Codex organ. + The orphaned `codex-chatgpt` crate is deleted from the vendored workspace. Do not confuse that with ChatGPT auth itself: originator strings and login/model auth surfaces that preserve the user's Codex subscription compatibility remain diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index a80a2c5f..3d01c237 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/state/map.yaml b/state/map.yaml index 355906a4..47624472 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -332,6 +332,10 @@ current_status: orphaned app-server-protocol `Plugin*` / marketplace plugin structs and their serialization tests were deleted from source after the route and schema surfaces disappeared. The unreferenced curated plugin startup-sync - metric constants are gone from `codex-otel`. MCP remains JSON-RPC at the - edge; user-declared MCP servers are the only runtime MCP authority. + metric constants are gone from `codex-otel`. The external agent config + import product is gone too: no `externalAgentConfig/detect`, + `externalAgentConfig/import`, import-completed notification, TUI startup + prompt, migration modules, snapshots, disabled app-server handlers, or + generated schemas remain. 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/app-server-protocol/schema/json/ClientRequest.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/ClientRequest.json index 0f9ba8fd..ee51da1b 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 @@ -2008,81 +2008,6 @@ }, "type": "object" }, - "ExternalAgentConfigDetectParams": { - "properties": { - "cwds": { - "description": "Zero or more working directories to include for repo-scoped detection.", - "items": { - "type": "string" - }, - "type": [ - "array", - "null" - ] - }, - "includeHome": { - "description": "If true, include detection under the user's home (~/.claude, ~/.codex, etc.).", - "type": "boolean" - } - }, - "type": "object" - }, - "ExternalAgentConfigImportParams": { - "properties": { - "migrationItems": { - "items": { - "$ref": "#/definitions/ExternalAgentConfigMigrationItem" - }, - "type": "array" - } - }, - "required": [ - "migrationItems" - ], - "type": "object" - }, - "ExternalAgentConfigMigrationItem": { - "properties": { - "cwd": { - "description": "Null or empty means home-scoped migration; non-empty means repo-scoped migration.", - "type": [ - "string", - "null" - ] - }, - "description": { - "type": "string" - }, - "details": { - "anyOf": [ - { - "$ref": "#/definitions/MigrationDetails" - }, - { - "type": "null" - } - ] - }, - "itemType": { - "$ref": "#/definitions/ExternalAgentConfigMigrationItemType" - } - }, - "required": [ - "description", - "itemType" - ], - "type": "object" - }, - "ExternalAgentConfigMigrationItemType": { - "enum": [ - "AGENTS_MD", - "CONFIG", - "SKILLS", - "PLUGINS", - "MCP_SERVER_CONFIG" - ], - "type": "string" - }, "FeedbackUploadParams": { "properties": { "classification": { @@ -3005,20 +2930,6 @@ } ] }, - "MigrationDetails": { - "properties": { - "plugins": { - "items": { - "$ref": "#/definitions/PluginsMigration" - }, - "type": "array" - } - }, - "required": [ - "plugins" - ], - "type": "object" - }, "ModeKind": { "description": "Initial collaboration mode to use when the TUI starts.", "enum": [ @@ -3128,24 +3039,6 @@ ], "type": "string" }, - "PluginsMigration": { - "properties": { - "marketplaceName": { - "type": "string" - }, - "pluginNames": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "marketplaceName", - "pluginNames" - ], - "type": "object" - }, "ReadOnlyAccess": { "oneOf": [ { @@ -7419,54 +7312,6 @@ "title": "Config/readRequest", "type": "object" }, - { - "properties": { - "id": { - "$ref": "#/definitions/RequestId" - }, - "method": { - "enum": [ - "externalAgentConfig/detect" - ], - "title": "ExternalAgentConfig/detectRequestMethod", - "type": "string" - }, - "params": { - "$ref": "#/definitions/ExternalAgentConfigDetectParams" - } - }, - "required": [ - "id", - "method", - "params" - ], - "title": "ExternalAgentConfig/detectRequest", - "type": "object" - }, - { - "properties": { - "id": { - "$ref": "#/definitions/RequestId" - }, - "method": { - "enum": [ - "externalAgentConfig/import" - ], - "title": "ExternalAgentConfig/importRequestMethod", - "type": "string" - }, - "params": { - "$ref": "#/definitions/ExternalAgentConfigImportParams" - } - }, - "required": [ - "id", - "method", - "params" - ], - "title": "ExternalAgentConfig/importRequest", - "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 f3157987..62ceef24 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 @@ -2521,9 +2521,6 @@ ], "type": "object" }, - "ExternalAgentConfigImportCompletedNotification": { - "type": "object" - }, "FileChangeOutputDeltaNotification": { "properties": { "delta": { @@ -6933,26 +6930,6 @@ "title": "App/list/updatedNotification", "type": "object" }, - { - "properties": { - "method": { - "enum": [ - "externalAgentConfig/import/completed" - ], - "title": "ExternalAgentConfig/import/completedNotificationMethod", - "type": "string" - }, - "params": { - "$ref": "#/definitions/ExternalAgentConfigImportCompletedNotification" - } - }, - "required": [ - "method", - "params" - ], - "title": "ExternalAgentConfig/import/completedNotification", - "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 c6b64d49..c91b8272 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 @@ -1554,54 +1554,6 @@ "title": "Config/readRequest", "type": "object" }, - { - "properties": { - "id": { - "$ref": "#/definitions/v2/RequestId" - }, - "method": { - "enum": [ - "externalAgentConfig/detect" - ], - "title": "ExternalAgentConfig/detectRequestMethod", - "type": "string" - }, - "params": { - "$ref": "#/definitions/v2/ExternalAgentConfigDetectParams" - } - }, - "required": [ - "id", - "method", - "params" - ], - "title": "ExternalAgentConfig/detectRequest", - "type": "object" - }, - { - "properties": { - "id": { - "$ref": "#/definitions/v2/RequestId" - }, - "method": { - "enum": [ - "externalAgentConfig/import" - ], - "title": "ExternalAgentConfig/importRequestMethod", - "type": "string" - }, - "params": { - "$ref": "#/definitions/v2/ExternalAgentConfigImportParams" - } - }, - "required": [ - "id", - "method", - "params" - ], - "title": "ExternalAgentConfig/importRequest", - "type": "object" - }, { "properties": { "id": { @@ -4139,26 +4091,6 @@ "title": "App/list/updatedNotification", "type": "object" }, - { - "properties": { - "method": { - "enum": [ - "externalAgentConfig/import/completed" - ], - "title": "ExternalAgentConfig/import/completedNotificationMethod", - "type": "string" - }, - "params": { - "$ref": "#/definitions/v2/ExternalAgentConfigImportCompletedNotification" - } - }, - "required": [ - "method", - "params" - ], - "title": "ExternalAgentConfig/import/completedNotification", - "type": "object" - }, { "properties": { "method": { @@ -9387,111 +9319,6 @@ } ] }, - "ExternalAgentConfigDetectParams": { - "$schema": "http://json-schema.org/draft-07/schema#", - "properties": { - "cwds": { - "description": "Zero or more working directories to include for repo-scoped detection.", - "items": { - "type": "string" - }, - "type": [ - "array", - "null" - ] - }, - "includeHome": { - "description": "If true, include detection under the user's home (~/.claude, ~/.codex, etc.).", - "type": "boolean" - } - }, - "title": "ExternalAgentConfigDetectParams", - "type": "object" - }, - "ExternalAgentConfigDetectResponse": { - "$schema": "http://json-schema.org/draft-07/schema#", - "properties": { - "items": { - "items": { - "$ref": "#/definitions/v2/ExternalAgentConfigMigrationItem" - }, - "type": "array" - } - }, - "required": [ - "items" - ], - "title": "ExternalAgentConfigDetectResponse", - "type": "object" - }, - "ExternalAgentConfigImportCompletedNotification": { - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ExternalAgentConfigImportCompletedNotification", - "type": "object" - }, - "ExternalAgentConfigImportParams": { - "$schema": "http://json-schema.org/draft-07/schema#", - "properties": { - "migrationItems": { - "items": { - "$ref": "#/definitions/v2/ExternalAgentConfigMigrationItem" - }, - "type": "array" - } - }, - "required": [ - "migrationItems" - ], - "title": "ExternalAgentConfigImportParams", - "type": "object" - }, - "ExternalAgentConfigImportResponse": { - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ExternalAgentConfigImportResponse", - "type": "object" - }, - "ExternalAgentConfigMigrationItem": { - "properties": { - "cwd": { - "description": "Null or empty means home-scoped migration; non-empty means repo-scoped migration.", - "type": [ - "string", - "null" - ] - }, - "description": { - "type": "string" - }, - "details": { - "anyOf": [ - { - "$ref": "#/definitions/v2/MigrationDetails" - }, - { - "type": "null" - } - ] - }, - "itemType": { - "$ref": "#/definitions/v2/ExternalAgentConfigMigrationItemType" - } - }, - "required": [ - "description", - "itemType" - ], - "type": "object" - }, - "ExternalAgentConfigMigrationItemType": { - "enum": [ - "AGENTS_MD", - "CONFIG", - "SKILLS", - "PLUGINS", - "MCP_SERVER_CONFIG" - ], - "type": "string" - }, "FeedbackUploadParams": { "$schema": "http://json-schema.org/draft-07/schema#", "properties": { @@ -11748,20 +11575,6 @@ } ] }, - "MigrationDetails": { - "properties": { - "plugins": { - "items": { - "$ref": "#/definitions/v2/PluginsMigration" - }, - "type": "array" - } - }, - "required": [ - "plugins" - ], - "type": "object" - }, "ModeKind": { "description": "Initial collaboration mode to use when the TUI starts.", "enum": [ @@ -12325,24 +12138,6 @@ ], "type": "string" }, - "PluginsMigration": { - "properties": { - "marketplaceName": { - "type": "string" - }, - "pluginNames": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "marketplaceName", - "pluginNames" - ], - "type": "object" - }, "ProfileV2": { "additionalProperties": true, "properties": { 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 d2374501..b85b1b13 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 @@ -2211,54 +2211,6 @@ "title": "Config/readRequest", "type": "object" }, - { - "properties": { - "id": { - "$ref": "#/definitions/RequestId" - }, - "method": { - "enum": [ - "externalAgentConfig/detect" - ], - "title": "ExternalAgentConfig/detectRequestMethod", - "type": "string" - }, - "params": { - "$ref": "#/definitions/ExternalAgentConfigDetectParams" - } - }, - "required": [ - "id", - "method", - "params" - ], - "title": "ExternalAgentConfig/detectRequest", - "type": "object" - }, - { - "properties": { - "id": { - "$ref": "#/definitions/RequestId" - }, - "method": { - "enum": [ - "externalAgentConfig/import" - ], - "title": "ExternalAgentConfig/importRequestMethod", - "type": "string" - }, - "params": { - "$ref": "#/definitions/ExternalAgentConfigImportParams" - } - }, - "required": [ - "id", - "method", - "params" - ], - "title": "ExternalAgentConfig/importRequest", - "type": "object" - }, { "properties": { "id": { @@ -5927,111 +5879,6 @@ } ] }, - "ExternalAgentConfigDetectParams": { - "$schema": "http://json-schema.org/draft-07/schema#", - "properties": { - "cwds": { - "description": "Zero or more working directories to include for repo-scoped detection.", - "items": { - "type": "string" - }, - "type": [ - "array", - "null" - ] - }, - "includeHome": { - "description": "If true, include detection under the user's home (~/.claude, ~/.codex, etc.).", - "type": "boolean" - } - }, - "title": "ExternalAgentConfigDetectParams", - "type": "object" - }, - "ExternalAgentConfigDetectResponse": { - "$schema": "http://json-schema.org/draft-07/schema#", - "properties": { - "items": { - "items": { - "$ref": "#/definitions/ExternalAgentConfigMigrationItem" - }, - "type": "array" - } - }, - "required": [ - "items" - ], - "title": "ExternalAgentConfigDetectResponse", - "type": "object" - }, - "ExternalAgentConfigImportCompletedNotification": { - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ExternalAgentConfigImportCompletedNotification", - "type": "object" - }, - "ExternalAgentConfigImportParams": { - "$schema": "http://json-schema.org/draft-07/schema#", - "properties": { - "migrationItems": { - "items": { - "$ref": "#/definitions/ExternalAgentConfigMigrationItem" - }, - "type": "array" - } - }, - "required": [ - "migrationItems" - ], - "title": "ExternalAgentConfigImportParams", - "type": "object" - }, - "ExternalAgentConfigImportResponse": { - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ExternalAgentConfigImportResponse", - "type": "object" - }, - "ExternalAgentConfigMigrationItem": { - "properties": { - "cwd": { - "description": "Null or empty means home-scoped migration; non-empty means repo-scoped migration.", - "type": [ - "string", - "null" - ] - }, - "description": { - "type": "string" - }, - "details": { - "anyOf": [ - { - "$ref": "#/definitions/MigrationDetails" - }, - { - "type": "null" - } - ] - }, - "itemType": { - "$ref": "#/definitions/ExternalAgentConfigMigrationItemType" - } - }, - "required": [ - "description", - "itemType" - ], - "type": "object" - }, - "ExternalAgentConfigMigrationItemType": { - "enum": [ - "AGENTS_MD", - "CONFIG", - "SKILLS", - "PLUGINS", - "MCP_SERVER_CONFIG" - ], - "type": "string" - }, "FeedbackUploadParams": { "$schema": "http://json-schema.org/draft-07/schema#", "properties": { @@ -8443,20 +8290,6 @@ } ] }, - "MigrationDetails": { - "properties": { - "plugins": { - "items": { - "$ref": "#/definitions/PluginsMigration" - }, - "type": "array" - } - }, - "required": [ - "plugins" - ], - "type": "object" - }, "ModeKind": { "description": "Initial collaboration mode to use when the TUI starts.", "enum": [ @@ -9020,24 +8853,6 @@ ], "type": "string" }, - "PluginsMigration": { - "properties": { - "marketplaceName": { - "type": "string" - }, - "pluginNames": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "marketplaceName", - "pluginNames" - ], - "type": "object" - }, "ProfileV2": { "additionalProperties": true, "properties": { @@ -11338,26 +11153,6 @@ "title": "App/list/updatedNotification", "type": "object" }, - { - "properties": { - "method": { - "enum": [ - "externalAgentConfig/import/completed" - ], - "title": "ExternalAgentConfig/import/completedNotificationMethod", - "type": "string" - }, - "params": { - "$ref": "#/definitions/ExternalAgentConfigImportCompletedNotification" - } - }, - "required": [ - "method", - "params" - ], - "title": "ExternalAgentConfig/import/completedNotification", - "type": "object" - }, { "properties": { "method": { diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigDetectParams.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigDetectParams.json deleted file mode 100644 index 20ddd6e4..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigDetectParams.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "properties": { - "cwds": { - "description": "Zero or more working directories to include for repo-scoped detection.", - "items": { - "type": "string" - }, - "type": [ - "array", - "null" - ] - }, - "includeHome": { - "description": "If true, include detection under the user's home (~/.claude, ~/.codex, etc.).", - "type": "boolean" - } - }, - "title": "ExternalAgentConfigDetectParams", - "type": "object" -} \ No newline at end of file diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigDetectResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigDetectResponse.json deleted file mode 100644 index ad8f0f9b..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigDetectResponse.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "definitions": { - "ExternalAgentConfigMigrationItem": { - "properties": { - "cwd": { - "description": "Null or empty means home-scoped migration; non-empty means repo-scoped migration.", - "type": [ - "string", - "null" - ] - }, - "description": { - "type": "string" - }, - "details": { - "anyOf": [ - { - "$ref": "#/definitions/MigrationDetails" - }, - { - "type": "null" - } - ] - }, - "itemType": { - "$ref": "#/definitions/ExternalAgentConfigMigrationItemType" - } - }, - "required": [ - "description", - "itemType" - ], - "type": "object" - }, - "ExternalAgentConfigMigrationItemType": { - "enum": [ - "AGENTS_MD", - "CONFIG", - "SKILLS", - "PLUGINS", - "MCP_SERVER_CONFIG" - ], - "type": "string" - }, - "MigrationDetails": { - "properties": { - "plugins": { - "items": { - "$ref": "#/definitions/PluginsMigration" - }, - "type": "array" - } - }, - "required": [ - "plugins" - ], - "type": "object" - }, - "PluginsMigration": { - "properties": { - "marketplaceName": { - "type": "string" - }, - "pluginNames": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "marketplaceName", - "pluginNames" - ], - "type": "object" - } - }, - "properties": { - "items": { - "items": { - "$ref": "#/definitions/ExternalAgentConfigMigrationItem" - }, - "type": "array" - } - }, - "required": [ - "items" - ], - "title": "ExternalAgentConfigDetectResponse", - "type": "object" -} \ No newline at end of file diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigImportCompletedNotification.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigImportCompletedNotification.json deleted file mode 100644 index b1a57704..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigImportCompletedNotification.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ExternalAgentConfigImportCompletedNotification", - "type": "object" -} \ No newline at end of file diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigImportParams.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigImportParams.json deleted file mode 100644 index 4b7ac826..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigImportParams.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "definitions": { - "ExternalAgentConfigMigrationItem": { - "properties": { - "cwd": { - "description": "Null or empty means home-scoped migration; non-empty means repo-scoped migration.", - "type": [ - "string", - "null" - ] - }, - "description": { - "type": "string" - }, - "details": { - "anyOf": [ - { - "$ref": "#/definitions/MigrationDetails" - }, - { - "type": "null" - } - ] - }, - "itemType": { - "$ref": "#/definitions/ExternalAgentConfigMigrationItemType" - } - }, - "required": [ - "description", - "itemType" - ], - "type": "object" - }, - "ExternalAgentConfigMigrationItemType": { - "enum": [ - "AGENTS_MD", - "CONFIG", - "SKILLS", - "PLUGINS", - "MCP_SERVER_CONFIG" - ], - "type": "string" - }, - "MigrationDetails": { - "properties": { - "plugins": { - "items": { - "$ref": "#/definitions/PluginsMigration" - }, - "type": "array" - } - }, - "required": [ - "plugins" - ], - "type": "object" - }, - "PluginsMigration": { - "properties": { - "marketplaceName": { - "type": "string" - }, - "pluginNames": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "marketplaceName", - "pluginNames" - ], - "type": "object" - } - }, - "properties": { - "migrationItems": { - "items": { - "$ref": "#/definitions/ExternalAgentConfigMigrationItem" - }, - "type": "array" - } - }, - "required": [ - "migrationItems" - ], - "title": "ExternalAgentConfigImportParams", - "type": "object" -} \ No newline at end of file diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigImportResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigImportResponse.json deleted file mode 100644 index 6823495d..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigImportResponse.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ExternalAgentConfigImportResponse", - "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 162756ee..3e804d16 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 @@ -21,8 +21,6 @@ import type { DeviceKeyPublicParams } from "./v2/DeviceKeyPublicParams"; import type { DeviceKeySignParams } from "./v2/DeviceKeySignParams"; import type { ExperimentalFeatureEnablementSetParams } from "./v2/ExperimentalFeatureEnablementSetParams"; import type { ExperimentalFeatureListParams } from "./v2/ExperimentalFeatureListParams"; -import type { ExternalAgentConfigDetectParams } from "./v2/ExternalAgentConfigDetectParams"; -import type { ExternalAgentConfigImportParams } from "./v2/ExternalAgentConfigImportParams"; import type { FeedbackUploadParams } from "./v2/FeedbackUploadParams"; import type { FsCopyParams } from "./v2/FsCopyParams"; import type { FsCreateDirectoryParams } from "./v2/FsCreateDirectoryParams"; @@ -69,4 +67,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": "externalAgentConfig/detect", id: RequestId, params: ExternalAgentConfigDetectParams, } | { "method": "externalAgentConfig/import", id: RequestId, params: ExternalAgentConfigImportParams, } | { "method": "config/value/write", id: RequestId, params: ConfigValueWriteParams, } | { "method": "config/batchWrite", id: RequestId, params: ConfigBatchWriteParams, } | { "method": "configRequirements/read", id: RequestId, params: undefined, } | { "method": "account/read", id: RequestId, params: GetAccountParams, } | { "method": "getConversationSummary", id: RequestId, params: GetConversationSummaryParams, } | { "method": "gitDiffToRemote", id: RequestId, params: GitDiffToRemoteParams, } | { "method": "getAuthStatus", id: RequestId, params: GetAuthStatusParams, } | { "method": "fuzzyFileSearch", id: RequestId, params: FuzzyFileSearchParams, }; +export type ClientRequest ={ "method": "initialize", id: RequestId, params: InitializeParams, } | { "method": "thread/start", id: RequestId, params: ThreadStartParams, } | { "method": "thread/resume", id: RequestId, params: ThreadResumeParams, } | { "method": "thread/fork", id: RequestId, params: ThreadForkParams, } | { "method": "thread/archive", id: RequestId, params: ThreadArchiveParams, } | { "method": "thread/unsubscribe", id: RequestId, params: ThreadUnsubscribeParams, } | { "method": "thread/name/set", id: RequestId, params: ThreadSetNameParams, } | { "method": "thread/metadata/update", id: RequestId, params: ThreadMetadataUpdateParams, } | { "method": "thread/unarchive", id: RequestId, params: ThreadUnarchiveParams, } | { "method": "thread/compact/start", id: RequestId, params: ThreadCompactStartParams, } | { "method": "thread/shellCommand", id: RequestId, params: ThreadShellCommandParams, } | { "method": "thread/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, }; 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 8c03d7c0..bbe5917d 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 @@ -14,7 +14,6 @@ import type { ConfigWarningNotification } from "./v2/ConfigWarningNotification"; import type { ContextCompactedNotification } from "./v2/ContextCompactedNotification"; import type { DeprecationNoticeNotification } from "./v2/DeprecationNoticeNotification"; import type { ErrorNotification } from "./v2/ErrorNotification"; -import type { ExternalAgentConfigImportCompletedNotification } from "./v2/ExternalAgentConfigImportCompletedNotification"; import type { FileChangeOutputDeltaNotification } from "./v2/FileChangeOutputDeltaNotification"; import type { FileChangePatchUpdatedNotification } from "./v2/FileChangePatchUpdatedNotification"; import type { FsChangedNotification } from "./v2/FsChangedNotification"; @@ -65,4 +64,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": "externalAgentConfig/import/completed", "params": ExternalAgentConfigImportCompletedNotification } | { "method": "fs/changed", "params": FsChangedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "model/rerouted", "params": ModelReroutedNotification } | { "method": "warning", "params": WarningNotification } | { "method": "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": "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 }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigDetectParams.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigDetectParams.ts deleted file mode 100644 index 163d9619..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigDetectParams.ts +++ /dev/null @@ -1,13 +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 ExternalAgentConfigDetectParams = { -/** - * If true, include detection under the user's home (~/.claude, ~/.codex, etc.). - */ -includeHome?: boolean, -/** - * Zero or more working directories to include for repo-scoped detection. - */ -cwds?: Array | null, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigDetectResponse.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigDetectResponse.ts deleted file mode 100644 index f220e3b6..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigDetectResponse.ts +++ /dev/null @@ -1,6 +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 { ExternalAgentConfigMigrationItem } from "./ExternalAgentConfigMigrationItem"; - -export type ExternalAgentConfigDetectResponse = { items: Array, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigImportCompletedNotification.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigImportCompletedNotification.ts deleted file mode 100644 index edb8f191..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigImportCompletedNotification.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 ExternalAgentConfigImportCompletedNotification = Record; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigImportParams.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigImportParams.ts deleted file mode 100644 index 7bc5d9d9..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigImportParams.ts +++ /dev/null @@ -1,6 +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 { ExternalAgentConfigMigrationItem } from "./ExternalAgentConfigMigrationItem"; - -export type ExternalAgentConfigImportParams = { migrationItems: Array, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigImportResponse.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigImportResponse.ts deleted file mode 100644 index 2ceddade..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigImportResponse.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 ExternalAgentConfigImportResponse = Record; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigMigrationItem.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigMigrationItem.ts deleted file mode 100644 index c9921ccb..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigMigrationItem.ts +++ /dev/null @@ -1,11 +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 { ExternalAgentConfigMigrationItemType } from "./ExternalAgentConfigMigrationItemType"; -import type { MigrationDetails } from "./MigrationDetails"; - -export type ExternalAgentConfigMigrationItem = { itemType: ExternalAgentConfigMigrationItemType, description: string, -/** - * Null or empty means home-scoped migration; non-empty means repo-scoped migration. - */ -cwd: string | null, details: MigrationDetails | null, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigMigrationItemType.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigMigrationItemType.ts deleted file mode 100644 index dedc124f..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ExternalAgentConfigMigrationItemType.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 ExternalAgentConfigMigrationItemType = "AGENTS_MD" | "CONFIG" | "SKILLS" | "PLUGINS" | "MCP_SERVER_CONFIG"; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/MigrationDetails.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/MigrationDetails.ts deleted file mode 100644 index 9305335d..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/MigrationDetails.ts +++ /dev/null @@ -1,6 +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 { PluginsMigration } from "./PluginsMigration"; - -export type MigrationDetails = { plugins: Array, }; diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/PluginsMigration.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/PluginsMigration.ts deleted file mode 100644 index 0dce06d9..00000000 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/PluginsMigration.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 PluginsMigration = { marketplaceName: string, pluginNames: Array, }; 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 984eebf3..236972f6 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 @@ -96,13 +96,6 @@ export type { ExperimentalFeatureEnablementSetResponse } from "./ExperimentalFea export type { ExperimentalFeatureListParams } from "./ExperimentalFeatureListParams"; export type { ExperimentalFeatureListResponse } from "./ExperimentalFeatureListResponse"; export type { ExperimentalFeatureStage } from "./ExperimentalFeatureStage"; -export type { ExternalAgentConfigDetectParams } from "./ExternalAgentConfigDetectParams"; -export type { ExternalAgentConfigDetectResponse } from "./ExternalAgentConfigDetectResponse"; -export type { ExternalAgentConfigImportCompletedNotification } from "./ExternalAgentConfigImportCompletedNotification"; -export type { ExternalAgentConfigImportParams } from "./ExternalAgentConfigImportParams"; -export type { ExternalAgentConfigImportResponse } from "./ExternalAgentConfigImportResponse"; -export type { ExternalAgentConfigMigrationItem } from "./ExternalAgentConfigMigrationItem"; -export type { ExternalAgentConfigMigrationItemType } from "./ExternalAgentConfigMigrationItemType"; export type { FeedbackUploadParams } from "./FeedbackUploadParams"; export type { FeedbackUploadResponse } from "./FeedbackUploadResponse"; export type { FileChangeApprovalDecision } from "./FileChangeApprovalDecision"; @@ -213,7 +206,6 @@ export type { McpToolCallStatus } from "./McpToolCallStatus"; export type { MemoryCitation } from "./MemoryCitation"; export type { MemoryCitationEntry } from "./MemoryCitationEntry"; export type { MergeStrategy } from "./MergeStrategy"; -export type { MigrationDetails } from "./MigrationDetails"; export type { Model } from "./Model"; export type { ModelAvailabilityNux } from "./ModelAvailabilityNux"; export type { ModelListParams } from "./ModelListParams"; @@ -240,7 +232,6 @@ export type { PermissionProfileNetworkPermissions } from "./PermissionProfileNet export type { PermissionsRequestApprovalParams } from "./PermissionsRequestApprovalParams"; export type { PermissionsRequestApprovalResponse } from "./PermissionsRequestApprovalResponse"; export type { PlanDeltaNotification } from "./PlanDeltaNotification"; -export type { PluginsMigration } from "./PluginsMigration"; export type { ProfileV2 } from "./ProfileV2"; export type { RateLimitReachedType } from "./RateLimitReachedType"; export type { RateLimitSnapshot } from "./RateLimitSnapshot"; 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 68fe513a..75708385 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 @@ -650,14 +650,6 @@ client_request_definitions! { params: v2::ConfigReadParams, response: v2::ConfigReadResponse, }, - ExternalAgentConfigDetect => "externalAgentConfig/detect" { - params: v2::ExternalAgentConfigDetectParams, - response: v2::ExternalAgentConfigDetectResponse, - }, - ExternalAgentConfigImport => "externalAgentConfig/import" { - params: v2::ExternalAgentConfigImportParams, - response: v2::ExternalAgentConfigImportResponse, - }, ConfigValueWrite => "config/value/write" { params: v2::ConfigValueWriteParams, response: v2::ConfigWriteResponse, @@ -1118,7 +1110,6 @@ server_notification_definitions! { AccountUpdated => "account/updated" (v2::AccountUpdatedNotification), AccountRateLimitsUpdated => "account/rateLimits/updated" (v2::AccountRateLimitsUpdatedNotification), AppListUpdated => "app/list/updated" (v2::AppListUpdatedNotification), - ExternalAgentConfigImportCompleted => "externalAgentConfig/import/completed" (v2::ExternalAgentConfigImportCompletedNotification), FsChanged => "fs/changed" (v2::FsChangedNotification), ReasoningSummaryTextDelta => "item/reasoning/summaryTextDelta" (v2::ReasoningSummaryTextDeltaNotification), ReasoningSummaryPartAdded => "item/reasoning/summaryPartAdded" (v2::ReasoningSummaryPartAddedNotification), 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 13ac8c73..03bc0187 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 @@ -1027,92 +1027,6 @@ pub struct ConfigRequirementsReadResponse { pub requirements: Option, } -#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Hash, JsonSchema, TS)] -#[ts(export_to = "v2/")] -pub enum ExternalAgentConfigMigrationItemType { - #[serde(rename = "AGENTS_MD")] - #[ts(rename = "AGENTS_MD")] - AgentsMd, - #[serde(rename = "CONFIG")] - #[ts(rename = "CONFIG")] - Config, - #[serde(rename = "SKILLS")] - #[ts(rename = "SKILLS")] - Skills, - #[serde(rename = "PLUGINS")] - #[ts(rename = "PLUGINS")] - Plugins, - #[serde(rename = "MCP_SERVER_CONFIG")] - #[ts(rename = "MCP_SERVER_CONFIG")] - McpServerConfig, -} - -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -pub struct PluginsMigration { - #[serde(rename = "marketplaceName")] - #[ts(rename = "marketplaceName")] - pub marketplace_name: String, - #[serde(rename = "pluginNames")] - #[ts(rename = "pluginNames")] - pub plugin_names: Vec, -} - -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -pub struct MigrationDetails { - pub plugins: Vec, -} - -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -pub struct ExternalAgentConfigMigrationItem { - pub item_type: ExternalAgentConfigMigrationItemType, - pub description: String, - /// Null or empty means home-scoped migration; non-empty means repo-scoped migration. - pub cwd: Option, - pub details: Option, -} - -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -pub struct ExternalAgentConfigDetectResponse { - pub items: Vec, -} - -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -pub struct ExternalAgentConfigDetectParams { - /// If true, include detection under the user's home (~/.claude, ~/.codex, etc.). - #[serde(default, skip_serializing_if = "std::ops::Not::not")] - pub include_home: bool, - /// Zero or more working directories to include for repo-scoped detection. - #[ts(optional = nullable)] - pub cwds: Option>, -} - -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -pub struct ExternalAgentConfigImportParams { - pub migration_items: Vec, -} - -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -pub struct ExternalAgentConfigImportResponse {} - -#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)] -#[serde(rename_all = "camelCase")] -#[ts(export_to = "v2/")] -pub struct ExternalAgentConfigImportCompletedNotification {} - #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)] #[serde(rename_all = "camelCase")] #[ts(export_to = "v2/")] @@ -9018,39 +8932,6 @@ mod tests { ); } - #[test] - fn external_agent_config_plugins_details_round_trip() { - let item: ExternalAgentConfigMigrationItem = serde_json::from_value(json!({ - "itemType": "PLUGINS", - "description": "Install supported plugins from Claude settings", - "cwd": absolute_path_string("repo"), - "details": { - "plugins": [ - { - "marketplaceName": "team-marketplace", - "pluginNames": ["asana"] - } - ] - } - })) - .expect("plugins migration item should deserialize"); - - assert_eq!( - item, - ExternalAgentConfigMigrationItem { - item_type: ExternalAgentConfigMigrationItemType::Plugins, - description: "Install supported plugins from Claude settings".to_string(), - cwd: Some(PathBuf::from(absolute_path_string("repo"))), - details: Some(MigrationDetails { - plugins: vec![PluginsMigration { - marketplace_name: "team-marketplace".to_string(), - plugin_names: vec!["asana".to_string()], - }], - }), - } - ); - } - #[test] fn command_execution_request_approval_rejects_relative_additional_permission_paths() { let err = serde_json::from_value::(json!({ 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 9c2f31ba..e1b4b08c 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 @@ -1191,10 +1191,6 @@ impl CodexMessageProcessor { ClientRequest::ConfigRequirementsRead { .. } => { warn!("ConfigRequirementsRead request reached CodexMessageProcessor unexpectedly"); } - ClientRequest::ExternalAgentConfigDetect { .. } - | ClientRequest::ExternalAgentConfigImport { .. } => { - warn!("ExternalAgentConfig request reached CodexMessageProcessor unexpectedly"); - } ClientRequest::GetAccountRateLimits { request_id, params: _, diff --git a/vendor/codex/codex-rs/app-server/src/message_processor.rs b/vendor/codex/codex-rs/app-server/src/message_processor.rs index 55cc75a3..35469fd2 100644 --- a/vendor/codex/codex-rs/app-server/src/message_processor.rs +++ b/vendor/codex/codex-rs/app-server/src/message_processor.rs @@ -40,9 +40,6 @@ use codex_app_server_protocol::DeviceKeyPublicParams; use codex_app_server_protocol::DeviceKeySignParams; use codex_app_server_protocol::ExperimentalApi; use codex_app_server_protocol::ExperimentalFeatureEnablementSetParams; -use codex_app_server_protocol::ExternalAgentConfigDetectParams; -use codex_app_server_protocol::ExternalAgentConfigDetectResponse; -use codex_app_server_protocol::ExternalAgentConfigImportParams; use codex_app_server_protocol::FsCopyParams; use codex_app_server_protocol::FsCreateDirectoryParams; use codex_app_server_protocol::FsGetMetadataParams; @@ -790,26 +787,6 @@ impl MessageProcessor { ) .await; } - ClientRequest::ExternalAgentConfigDetect { request_id, params } => { - self.handle_external_agent_config_detect( - ConnectionRequestId { - connection_id, - request_id, - }, - params, - ) - .await; - } - ClientRequest::ExternalAgentConfigImport { request_id, params } => { - self.handle_external_agent_config_import( - ConnectionRequestId { - connection_id, - request_id, - }, - params, - ) - .await; - } ClientRequest::ConfigValueWrite { request_id, params } => { self.handle_config_value_write( ConnectionRequestId { @@ -1165,38 +1142,6 @@ impl MessageProcessor { true } - async fn handle_external_agent_config_detect( - &self, - request_id: ConnectionRequestId, - _params: ExternalAgentConfigDetectParams, - ) { - self.outgoing - .send_response( - request_id, - ExternalAgentConfigDetectResponse { items: Vec::new() }, - ) - .await; - } - - async fn handle_external_agent_config_import( - &self, - request_id: ConnectionRequestId, - _params: ExternalAgentConfigImportParams, - ) { - self.outgoing - .send_error( - request_id, - JSONRPCErrorError { - code: INVALID_REQUEST_ERROR_CODE, - message: - "externalAgentConfig/import is disabled in Epiphany's vestigial Codex organ" - .to_string(), - data: None, - }, - ) - .await; - } - async fn handle_fs_read_file(&self, request_id: ConnectionRequestId, params: FsReadFileParams) { match self.fs_api.read_file(params).await { Ok(response) => self.outgoing.send_response(request_id, response).await, diff --git a/vendor/codex/codex-rs/tui/src/app.rs b/vendor/codex/codex-rs/tui/src/app.rs index bb76413c..c52da4cd 100644 --- a/vendor/codex/codex-rs/tui/src/app.rs +++ b/vendor/codex/codex-rs/tui/src/app.rs @@ -33,8 +33,6 @@ use crate::cwd_prompt::CwdPromptAction; use crate::diff_render::DiffSummary; use crate::exec_command::split_command_string; use crate::exec_command::strip_bash_lc_and_escape; -use crate::external_agent_config_migration_startup::ExternalAgentConfigMigrationStartupOutcome; -use crate::external_agent_config_migration_startup::handle_external_agent_config_migration_prompt_if_needed; use crate::external_editor; use crate::file_search::FileSearchManager; use crate::history_cell; @@ -629,7 +627,7 @@ impl App { session_selection: SessionSelection, feedback: codex_feedback::CodexFeedback, is_first_run: bool, - entered_trust_nux: bool, + _entered_trust_nux: bool, should_prompt_windows_sandbox_nux_at_startup: bool, remote_app_server_url: Option, remote_app_server_auth_token: Option, @@ -647,38 +645,6 @@ impl App { let harness_overrides = normalize_harness_overrides_for_cwd(harness_overrides, &config.cwd)?; - let external_agent_config_migration_outcome = - handle_external_agent_config_migration_prompt_if_needed( - tui, - &mut app_server, - &mut config, - &cli_kv_overrides, - &harness_overrides, - entered_trust_nux, - ) - .await?; - let external_agent_config_migration_message = match external_agent_config_migration_outcome - { - ExternalAgentConfigMigrationStartupOutcome::Continue { success_message } => { - success_message - } - ExternalAgentConfigMigrationStartupOutcome::ExitRequested => { - app_server - .shutdown() - .await - .inspect_err(|err| { - tracing::warn!("app-server shutdown failed: {err}"); - }) - .ok(); - return Ok(AppExitInfo { - token_usage: TokenUsage::default(), - thread_id: None, - thread_name: None, - update_action: None, - exit_reason: ExitReason::UserRequested, - }); - } - }; let bootstrap = app_server.bootstrap(&config).await?; let mut model = bootstrap.default_model; let available_models = bootstrap.available_models; @@ -849,10 +815,6 @@ impl App { (ChatWidget::new_with_app_event(init), Some(forked)) } }; - if let Some(message) = external_agent_config_migration_message { - chat_widget.add_info_message(message, /*hint*/ None); - } - chat_widget .maybe_prompt_windows_sandbox_enable(should_prompt_windows_sandbox_nux_at_startup); 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 b27db2ce..ae7c5d51 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 @@ -12,7 +12,6 @@ should shrink and eventually disappear. */ use super::App; -use crate::app_command::AppCommand; use crate::app_event::AppEvent; use crate::app_server_session::AppServerSession; use crate::app_server_session::app_server_rate_limit_snapshot_to_core; @@ -189,16 +188,6 @@ impl App { ); return; } - ServerNotification::ExternalAgentConfigImportCompleted(_) => { - if let Err(err) = self.refresh_in_memory_config_from_disk().await { - tracing::warn!( - error = %err, - "failed to refresh config after external agent config import" - ); - } - self.chat_widget.submit_op(AppCommand::reload_user_config()); - return; - } _ => {} } @@ -435,7 +424,6 @@ fn server_notification_thread_target( | ServerNotification::AccountUpdated(_) | ServerNotification::AccountRateLimitsUpdated(_) | ServerNotification::AppListUpdated(_) - | ServerNotification::ExternalAgentConfigImportCompleted(_) | ServerNotification::DeprecationNotice(_) | ServerNotification::ConfigWarning(_) | ServerNotification::FuzzyFileSearchSessionUpdated(_) diff --git a/vendor/codex/codex-rs/tui/src/app_server_session.rs b/vendor/codex/codex-rs/tui/src/app_server_session.rs index 7d1e5391..12ce9276 100644 --- a/vendor/codex/codex-rs/tui/src/app_server_session.rs +++ b/vendor/codex/codex-rs/tui/src/app_server_session.rs @@ -14,11 +14,6 @@ use codex_app_server_protocol::AuthMode; use codex_app_server_protocol::ClientRequest; use codex_app_server_protocol::ConfigBatchWriteParams; use codex_app_server_protocol::ConfigWriteResponse; -use codex_app_server_protocol::ExternalAgentConfigDetectParams; -use codex_app_server_protocol::ExternalAgentConfigDetectResponse; -use codex_app_server_protocol::ExternalAgentConfigImportParams; -use codex_app_server_protocol::ExternalAgentConfigImportResponse; -use codex_app_server_protocol::ExternalAgentConfigMigrationItem; use codex_app_server_protocol::GetAccountParams; use codex_app_server_protocol::GetAccountRateLimitsResponse; use codex_app_server_protocol::GetAccountResponse; @@ -305,31 +300,6 @@ impl AppServerSession { .wrap_err("account/read failed during TUI bootstrap") } - pub(crate) async fn external_agent_config_detect( - &mut self, - params: ExternalAgentConfigDetectParams, - ) -> Result { - let request_id = self.next_request_id(); - self.client - .request_typed(ClientRequest::ExternalAgentConfigDetect { request_id, params }) - .await - .wrap_err("externalAgentConfig/detect failed during TUI startup") - } - - pub(crate) async fn external_agent_config_import( - &mut self, - migration_items: Vec, - ) -> Result { - let request_id = self.next_request_id(); - self.client - .request_typed(ClientRequest::ExternalAgentConfigImport { - request_id, - params: ExternalAgentConfigImportParams { migration_items }, - }) - .await - .wrap_err("externalAgentConfig/import failed during TUI startup") - } - pub(crate) async fn next_event(&mut self) -> Option { self.client.next_event().await } diff --git a/vendor/codex/codex-rs/tui/src/chatwidget.rs b/vendor/codex/codex-rs/tui/src/chatwidget.rs index 1fde33eb..b14d2bb8 100644 --- a/vendor/codex/codex-rs/tui/src/chatwidget.rs +++ b/vendor/codex/codex-rs/tui/src/chatwidget.rs @@ -6628,7 +6628,6 @@ impl ChatWidget { | ServerNotification::McpToolCallProgress(_) | ServerNotification::McpServerOauthLoginCompleted(_) | ServerNotification::AppListUpdated(_) - | ServerNotification::ExternalAgentConfigImportCompleted(_) | ServerNotification::FsChanged(_) | ServerNotification::FuzzyFileSearchSessionUpdated(_) | ServerNotification::FuzzyFileSearchSessionCompleted(_) diff --git a/vendor/codex/codex-rs/tui/src/external_agent_config_migration.rs b/vendor/codex/codex-rs/tui/src/external_agent_config_migration.rs deleted file mode 100644 index ecc2f75b..00000000 --- a/vendor/codex/codex-rs/tui/src/external_agent_config_migration.rs +++ /dev/null @@ -1,1050 +0,0 @@ -use crate::diff_render::display_path_for; -use crate::key_hint; -use crate::line_truncation::truncate_line_with_ellipsis_if_overflow; -use crate::render::Insets; -use crate::render::RectExt as _; -use crate::selection_list::selection_option_row_with_dim; -use crate::tui::FrameRequester; -use crate::tui::Tui; -use crate::tui::TuiEvent; -use codex_app_server_protocol::ExternalAgentConfigMigrationItem; -use codex_app_server_protocol::PluginsMigration; -use crossterm::event::KeyCode; -use crossterm::event::KeyEvent; -use crossterm::event::KeyEventKind; -use crossterm::event::KeyModifiers; -use ratatui::buffer::Buffer; -use ratatui::layout::Constraint; -use ratatui::layout::Layout; -use ratatui::layout::Rect; -use ratatui::prelude::Stylize as _; -use ratatui::text::Line; -use ratatui::widgets::Clear; -use ratatui::widgets::Paragraph; -use ratatui::widgets::Widget; -use ratatui::widgets::WidgetRef; -use ratatui::widgets::Wrap; -use tokio_stream::StreamExt; - -#[derive(Clone, Debug, PartialEq, Eq)] -pub(crate) enum ExternalAgentConfigMigrationOutcome { - Proceed(Vec), - Skip, - SkipForever, - Exit, -} - -#[derive(Clone, Copy, Debug, PartialEq, Eq)] -enum FocusArea { - Items, - Actions, -} - -#[derive(Clone, Copy, Debug, PartialEq, Eq)] -enum ActionMenuOption { - Proceed, - Skip, - SkipForever, -} - -impl ActionMenuOption { - fn label(self) -> &'static str { - match self { - Self::Proceed => "Proceed with selected", - Self::Skip => "Skip for now", - Self::SkipForever => "Don't ask again", - } - } - - fn previous(self) -> Option { - match self { - Self::Proceed => None, - Self::Skip => Some(Self::Proceed), - Self::SkipForever => Some(Self::Skip), - } - } - - fn next(self) -> Option { - match self { - Self::Proceed => Some(Self::Skip), - Self::Skip => Some(Self::SkipForever), - Self::SkipForever => None, - } - } -} - -#[derive(Clone, Debug, PartialEq, Eq)] -struct MigrationSelection { - item: ExternalAgentConfigMigrationItem, - enabled: bool, -} - -struct RenderLineEntry { - item_idx: Option, - kind: RenderLineKind, - line: Line<'static>, -} - -#[derive(Clone, Copy, Debug, PartialEq, Eq)] -enum RenderLineKind { - Section, - Item, - ItemDetail, -} - -pub(crate) async fn run_external_agent_config_migration_prompt( - tui: &mut Tui, - items: &[ExternalAgentConfigMigrationItem], - selected_items: &[ExternalAgentConfigMigrationItem], - error: Option<&str>, -) -> ExternalAgentConfigMigrationOutcome { - let mut screen = ExternalAgentConfigMigrationScreen::new( - tui.frame_requester(), - items, - selected_items, - error.map(str::to_owned), - ); - - let _ = tui.draw(u16::MAX, |frame| { - frame.render_widget_ref(&screen, frame.area()); - }); - - let events = tui.event_stream(); - tokio::pin!(events); - - while !screen.is_done() { - if let Some(event) = events.next().await { - match event { - TuiEvent::Key(key_event) => screen.handle_key(key_event), - TuiEvent::Paste(_) => {} - TuiEvent::Draw => { - let _ = tui.draw(u16::MAX, |frame| { - frame.render_widget_ref(&screen, frame.area()); - }); - } - } - } else { - screen.skip(); - break; - } - } - - screen.outcome() -} - -struct ExternalAgentConfigMigrationScreen { - request_frame: FrameRequester, - items: Vec, - selected_item_idx: Option, - scroll_top: usize, - focus: FocusArea, - highlighted_action: ActionMenuOption, - done: bool, - outcome: ExternalAgentConfigMigrationOutcome, - error: Option, -} - -impl ExternalAgentConfigMigrationScreen { - fn proceed_enabled(&self) -> bool { - self.selected_count() > 0 - } - - fn first_available_action(&self) -> ActionMenuOption { - if self.proceed_enabled() { - ActionMenuOption::Proceed - } else { - ActionMenuOption::Skip - } - } - - fn previous_available_action(&self, action: ActionMenuOption) -> Option { - let mut candidate = action.previous(); - while let Some(option) = candidate { - if option != ActionMenuOption::Proceed || self.proceed_enabled() { - return Some(option); - } - candidate = option.previous(); - } - None - } - - fn next_available_action(&self, action: ActionMenuOption) -> Option { - let mut candidate = action.next(); - while let Some(option) = candidate { - if option != ActionMenuOption::Proceed || self.proceed_enabled() { - return Some(option); - } - candidate = option.next(); - } - None - } - - fn normalize_highlighted_action(&mut self) { - if self.highlighted_action == ActionMenuOption::Proceed && !self.proceed_enabled() { - self.highlighted_action = self.first_available_action(); - } - } - - fn display_description(item: &ExternalAgentConfigMigrationItem) -> String { - let Some(cwd) = item.cwd.as_deref() else { - return item.description.clone(); - }; - - fn reformat_description( - description: &str, - prefix: &str, - separator: &str, - cwd: &std::path::Path, - ) -> Option { - let remainder = description.strip_prefix(prefix)?; - let (left, right) = remainder.split_once(separator)?; - Some(format!( - "{prefix}{}{}{}", - display_path_for(std::path::Path::new(left), cwd), - separator, - display_path_for(std::path::Path::new(right), cwd) - )) - } - - if let Some(reformatted) = - reformat_description(&item.description, "Migrate ", " into ", cwd) - { - return reformatted; - } - - if let Some(reformatted) = - reformat_description(&item.description, "Migrate skills from ", " to ", cwd) - { - return reformatted; - } - - if let Some(reformatted) = reformat_description(&item.description, "Migrate ", " to ", cwd) - { - return reformatted; - } - - if let Some(reformatted) = reformat_description(&item.description, "Import ", " to ", cwd) { - return reformatted; - } - - if let Some(source) = item - .description - .strip_prefix("Migrate enabled plugins from ") - { - let description = format!( - "Migrate enabled plugins from {}", - display_path_for(std::path::Path::new(source), cwd) - ); - if let Some(details) = &item.details { - let marketplace_count = details.plugins.len(); - let plugin_count = details - .plugins - .iter() - .map(|plugin_group| plugin_group.plugin_names.len()) - .sum::(); - return format!( - "{description} ({marketplace_count} {}, {plugin_count} {})", - if marketplace_count == 1 { - "marketplace" - } else { - "marketplaces" - }, - if plugin_count == 1 { - "plugin" - } else { - "plugins" - } - ); - } - return description; - } - - item.description.clone() - } - - fn new( - request_frame: FrameRequester, - items: &[ExternalAgentConfigMigrationItem], - selected_items: &[ExternalAgentConfigMigrationItem], - error: Option, - ) -> Self { - let items = items - .iter() - .cloned() - .map(|item| MigrationSelection { - enabled: selected_items.contains(&item), - item, - }) - .collect::>(); - let selected_item_idx = (!items.is_empty()).then_some(0); - Self { - request_frame, - items, - selected_item_idx, - scroll_top: 0, - focus: FocusArea::Items, - highlighted_action: ActionMenuOption::Proceed, - done: false, - outcome: ExternalAgentConfigMigrationOutcome::Skip, - error, - } - } - - fn plugin_detail_lines(plugin_groups: &[PluginsMigration]) -> Vec> { - let mut lines = plugin_groups - .iter() - .take(3) - .map(|plugin_group| { - let mut plugin_names = plugin_group - .plugin_names - .iter() - .take(2) - .cloned() - .collect::>(); - let hidden_plugin_count = plugin_group - .plugin_names - .len() - .saturating_sub(plugin_names.len()); - if hidden_plugin_count > 0 { - plugin_names.push(format!("+{hidden_plugin_count} more")); - } - Line::from(format!( - " • {}: {}", - plugin_group.marketplace_name, - plugin_names.join(", ") - )) - }) - .collect::>(); - let hidden_marketplace_count = plugin_groups.len().saturating_sub(lines.len()); - if hidden_marketplace_count > 0 { - lines.push(Line::from(format!( - " • +{hidden_marketplace_count} more marketplaces" - ))); - } - lines - } - - fn is_done(&self) -> bool { - self.done - } - - fn outcome(&self) -> ExternalAgentConfigMigrationOutcome { - self.outcome.clone() - } - - fn finish_with(&mut self, outcome: ExternalAgentConfigMigrationOutcome) { - self.outcome = outcome; - self.done = true; - self.request_frame.schedule_frame(); - } - - fn proceed(&mut self) { - let selected = self.selected_items(); - if selected.is_empty() { - self.error = Some("Select at least one item or choose a skip option.".to_string()); - self.request_frame.schedule_frame(); - return; - } - - self.finish_with(ExternalAgentConfigMigrationOutcome::Proceed(selected)); - } - - fn skip(&mut self) { - self.finish_with(ExternalAgentConfigMigrationOutcome::Skip); - } - - fn skip_forever(&mut self) { - self.finish_with(ExternalAgentConfigMigrationOutcome::SkipForever); - } - - fn exit(&mut self) { - self.finish_with(ExternalAgentConfigMigrationOutcome::Exit); - } - - fn selected_items(&self) -> Vec { - self.items - .iter() - .filter(|item| item.enabled) - .map(|item| item.item.clone()) - .collect() - } - - fn selected_count(&self) -> usize { - self.items.iter().filter(|item| item.enabled).count() - } - - fn set_all_enabled(&mut self, enabled: bool) { - for item in &mut self.items { - item.enabled = enabled; - } - self.error = None; - self.normalize_highlighted_action(); - self.request_frame.schedule_frame(); - } - - fn toggle_selected_item(&mut self) { - if self.focus != FocusArea::Items { - return; - } - let Some(selected_idx) = self.selected_item_idx else { - return; - }; - let Some(item) = self.items.get_mut(selected_idx) else { - return; - }; - - item.enabled = !item.enabled; - self.error = None; - self.normalize_highlighted_action(); - self.request_frame.schedule_frame(); - } - - fn move_up(&mut self) { - match self.focus { - FocusArea::Items => match self.selected_item_idx { - Some(0) => { - self.focus = FocusArea::Actions; - self.highlighted_action = ActionMenuOption::SkipForever; - } - Some(idx) => { - self.selected_item_idx = Some(idx.saturating_sub(1)); - } - None => { - self.focus = FocusArea::Actions; - self.highlighted_action = ActionMenuOption::SkipForever; - } - }, - FocusArea::Actions => { - if let Some(previous) = self.previous_available_action(self.highlighted_action) { - self.highlighted_action = previous; - } else { - self.focus = FocusArea::Items; - if !self.items.is_empty() { - self.selected_item_idx = Some(self.items.len() - 1); - } - } - } - } - self.ensure_selected_item_visible(); - self.request_frame.schedule_frame(); - } - - fn move_down(&mut self) { - match self.focus { - FocusArea::Items => match self.selected_item_idx { - Some(idx) if idx + 1 < self.items.len() => { - self.selected_item_idx = Some(idx + 1); - } - _ => { - self.focus = FocusArea::Actions; - self.highlighted_action = self.first_available_action(); - } - }, - FocusArea::Actions => { - if let Some(next) = self.next_available_action(self.highlighted_action) { - self.highlighted_action = next; - } else { - self.focus = FocusArea::Items; - if !self.items.is_empty() { - self.selected_item_idx = Some(0); - } - } - } - } - self.ensure_selected_item_visible(); - self.request_frame.schedule_frame(); - } - - fn confirm_selection(&mut self) { - match self.focus { - FocusArea::Items => self.toggle_selected_item(), - FocusArea::Actions => match self.highlighted_action { - ActionMenuOption::Proceed => self.proceed(), - ActionMenuOption::Skip => self.skip(), - ActionMenuOption::SkipForever => self.skip_forever(), - }, - } - } - - fn handle_key(&mut self, key_event: KeyEvent) { - if key_event.kind == KeyEventKind::Release { - return; - } - - if is_ctrl_exit_combo(key_event) { - self.exit(); - return; - } - - match key_event.code { - KeyCode::Up | KeyCode::Char('k') => self.move_up(), - KeyCode::Down | KeyCode::Char('j') => self.move_down(), - KeyCode::Char('1') => { - self.focus = FocusArea::Actions; - self.highlighted_action = ActionMenuOption::Proceed; - self.proceed(); - } - KeyCode::Char('2') => { - self.focus = FocusArea::Actions; - self.highlighted_action = ActionMenuOption::Skip; - self.skip(); - } - KeyCode::Char('3') => { - self.focus = FocusArea::Actions; - self.highlighted_action = ActionMenuOption::SkipForever; - self.skip_forever(); - } - KeyCode::Char(' ') => self.toggle_selected_item(), - KeyCode::Char('a') => self.set_all_enabled(/*enabled*/ true), - KeyCode::Char('n') => self.set_all_enabled(/*enabled*/ false), - KeyCode::Enter => self.confirm_selection(), - KeyCode::Esc => self.skip(), - _ => {} - } - } - - fn ensure_selected_item_visible(&mut self) { - let Some(selected_idx) = self.selected_item_idx else { - self.scroll_top = 0; - return; - }; - let selected_render_idx = self.selected_render_line_index(selected_idx); - let visible_rows = self.render_line_count().max(1); - if selected_render_idx < self.scroll_top { - self.scroll_top = selected_render_idx; - } else { - let bottom = self.scroll_top + visible_rows.saturating_sub(1); - if selected_render_idx > bottom { - self.scroll_top = selected_render_idx + 1 - visible_rows; - } - } - } - - fn render_line_count(&self) -> usize { - self.build_render_lines().len() - } - - fn selected_render_line_index(&self, selected_item_idx: usize) -> usize { - self.build_render_lines() - .iter() - .position(|entry| entry.item_idx == Some(selected_item_idx)) - .unwrap_or(selected_item_idx) - } - - fn section_title(cwd: Option<&std::path::Path>) -> Line<'static> { - match cwd { - Some(cwd) => Line::from(vec!["Project: ".bold(), cwd.display().to_string().dim()]), - None => Line::from("Home".bold()), - } - } - - fn build_render_lines(&self) -> Vec { - let mut lines = Vec::new(); - let mut current_scope: Option> = None; - for (idx, item) in self.items.iter().enumerate() { - let scope = item.item.cwd.as_deref(); - if current_scope != Some(scope) { - if current_scope.is_some() { - lines.push(RenderLineEntry { - item_idx: None, - kind: RenderLineKind::Section, - line: Line::from(""), - }); - } - lines.push(RenderLineEntry { - item_idx: None, - kind: RenderLineKind::Section, - line: Self::section_title(scope), - }); - current_scope = Some(scope); - } - lines.push(RenderLineEntry { - item_idx: Some(idx), - kind: RenderLineKind::Item, - line: Line::from(format!( - " [{}] {}", - if item.enabled { "x" } else { " " }, - Self::display_description(&item.item) - )), - }); - if let Some(details) = &item.item.details { - for line in Self::plugin_detail_lines(&details.plugins) { - lines.push(RenderLineEntry { - item_idx: None, - kind: RenderLineKind::ItemDetail, - line, - }); - } - } - } - lines - } - - fn render_items(&self, area: Rect, buf: &mut Buffer) { - if area.height == 0 || area.width == 0 { - return; - } - let rows = self.build_render_lines(); - let visible_rows = area.height as usize; - let mut start_idx = self.scroll_top.min(rows.len().saturating_sub(1)); - if let Some(selected_item_idx) = self.selected_item_idx { - let selected_render_idx = self.selected_render_line_index(selected_item_idx); - if selected_render_idx < start_idx { - start_idx = selected_render_idx; - } else if visible_rows > 0 { - let bottom = start_idx + visible_rows - 1; - if selected_render_idx > bottom { - start_idx = selected_render_idx + 1 - visible_rows; - } - } - } - - let mut y = area.y; - for entry in rows.iter().skip(start_idx).take(visible_rows) { - if y >= area.y + area.height { - break; - } - - let selected = - self.focus == FocusArea::Items && self.selected_item_idx == entry.item_idx; - let mut line = entry.line.clone(); - if selected { - line.spans.iter_mut().for_each(|span| { - span.style = span.style.cyan().bold(); - }); - } else if entry.kind != RenderLineKind::Item && !line.spans.is_empty() { - line.spans.iter_mut().for_each(|span| { - span.style = span.style.dim(); - }); - } - let line = truncate_line_with_ellipsis_if_overflow(line, area.width as usize); - line.render( - Rect { - x: area.x, - y, - width: area.width, - height: 1, - }, - buf, - ); - y = y.saturating_add(1); - } - } -} - -impl WidgetRef for &ExternalAgentConfigMigrationScreen { - fn render_ref(&self, area: Rect, buf: &mut Buffer) { - Clear.render(area, buf); - - let inner_area = area.inset(Insets::vh(/*v*/ 1, /*h*/ 2)); - let error_height = u16::from(self.error.is_some()); - let fixed_height = 1u16 + 2u16 + error_height + 1u16 + 4u16 + 1u16; - let list_height = - self.render_line_count() - .max(1) - .min(inner_area.height.saturating_sub(fixed_height) as usize) as u16; - let [ - header_area, - intro_area, - error_area, - list_area, - list_gap_area, - actions_area, - footer_area, - _spacer_area, - ] = Layout::vertical([ - Constraint::Length(1), - Constraint::Length(2), - Constraint::Length(error_height), - Constraint::Length(list_height), - Constraint::Length(1), - Constraint::Length(4), - Constraint::Length(1), - Constraint::Fill(1), - ]) - .areas(inner_area); - - let heading = Line::from(vec!["> ".into(), "External agent config detected".bold()]); - heading.render(header_area, buf); - - Paragraph::new(vec![ - Line::from("We found settings from another agent that you can add to this project."), - Line::from("Select what to import"), - ]) - .wrap(Wrap { trim: false }) - .render(intro_area, buf); - - if let Some(error) = &self.error { - Paragraph::new(error.clone().red().to_string()) - .wrap(Wrap { trim: false }) - .render(error_area, buf); - } - - self.render_items(list_area, buf); - Clear.render(list_gap_area, buf); - - let [ - actions_intro_area, - proceed_area, - skip_area, - skip_forever_area, - ] = Layout::vertical([ - Constraint::Length(1), - Constraint::Length(1), - Constraint::Length(1), - Constraint::Length(1), - ]) - .areas(actions_area); - let actions_intro = format!( - "Selected {} of {} item(s).", - self.selected_count(), - self.items.len() - ); - Paragraph::new(actions_intro) - .wrap(Wrap { trim: false }) - .render(actions_intro_area, buf); - selection_option_row_with_dim( - /*index*/ 0, - ActionMenuOption::Proceed.label().to_string(), - self.focus == FocusArea::Actions - && self.highlighted_action == ActionMenuOption::Proceed, - /*dim*/ self.focus != FocusArea::Actions || !self.proceed_enabled(), - ) - .render(proceed_area, buf); - selection_option_row_with_dim( - /*index*/ 1, - ActionMenuOption::Skip.label().to_string(), - self.focus == FocusArea::Actions && self.highlighted_action == ActionMenuOption::Skip, - /*dim*/ self.focus != FocusArea::Actions, - ) - .render(skip_area, buf); - selection_option_row_with_dim( - /*index*/ 2, - ActionMenuOption::SkipForever.label().to_string(), - self.focus == FocusArea::Actions - && self.highlighted_action == ActionMenuOption::SkipForever, - /*dim*/ self.focus != FocusArea::Actions, - ) - .render(skip_forever_area, buf); - - Line::from(vec![ - "Use ".dim(), - key_hint::plain(KeyCode::Up).into(), - "/".dim(), - key_hint::plain(KeyCode::Down).into(), - " to move, ".dim(), - key_hint::plain(KeyCode::Char(' ')).into(), - " to toggle, ".dim(), - "1".cyan(), - "/".dim(), - "2".cyan(), - "/".dim(), - "3".cyan(), - " to choose, ".dim(), - "a".cyan(), - "/".dim(), - "n".cyan(), - " for all/none".dim(), - ]) - .render(footer_area, buf); - } -} - -fn is_ctrl_exit_combo(key_event: KeyEvent) -> bool { - key_event.modifiers.contains(KeyModifiers::CONTROL) - && matches!(key_event.code, KeyCode::Char('c') | KeyCode::Char('d')) -} - -#[cfg(test)] -mod tests { - use super::ActionMenuOption; - use super::ExternalAgentConfigMigrationOutcome; - use super::ExternalAgentConfigMigrationScreen; - use super::FocusArea; - use crate::custom_terminal::Terminal; - use crate::test_backend::VT100Backend; - use crate::tui::FrameRequester; - use codex_app_server_protocol::ExternalAgentConfigMigrationItem; - use codex_app_server_protocol::ExternalAgentConfigMigrationItemType; - use codex_app_server_protocol::PluginsMigration; - use crossterm::event::KeyCode; - use crossterm::event::KeyEvent; - use crossterm::event::KeyModifiers; - use insta::assert_snapshot; - use pretty_assertions::assert_eq; - use ratatui::layout::Rect; - use std::path::PathBuf; - - fn sample_plugin_details() -> codex_app_server_protocol::MigrationDetails { - codex_app_server_protocol::MigrationDetails { - plugins: vec![ - PluginsMigration { - marketplace_name: "acme-tools".to_string(), - plugin_names: vec![ - "deployer".to_string(), - "formatter".to_string(), - "lint".to_string(), - ], - }, - PluginsMigration { - marketplace_name: "team-marketplace".to_string(), - plugin_names: vec!["asana".to_string()], - }, - PluginsMigration { - marketplace_name: "debug".to_string(), - plugin_names: vec!["sample".to_string()], - }, - PluginsMigration { - marketplace_name: "data-tools".to_string(), - plugin_names: vec!["warehouse".to_string()], - }, - ], - } - } - - #[cfg(windows)] - fn sample_project_root() -> PathBuf { - PathBuf::from(r"C:\workspace\project") - } - - #[cfg(not(windows))] - fn sample_project_root() -> PathBuf { - PathBuf::from("/workspace/project") - } - - fn sample_project_path(path: &str) -> String { - sample_project_root().join(path).display().to_string() - } - - fn sample_items() -> Vec { - let project_root = sample_project_root(); - vec![ - ExternalAgentConfigMigrationItem { - item_type: ExternalAgentConfigMigrationItemType::Config, - description: - "Migrate /Users/alex/.claude/settings.json into /Users/alex/.codex/config.toml" - .to_string(), - cwd: None, - details: None, - }, - ExternalAgentConfigMigrationItem { - item_type: ExternalAgentConfigMigrationItemType::Plugins, - description: format!( - "Migrate enabled plugins from {}", - sample_project_path(".claude/settings.json") - ), - cwd: Some(project_root.clone()), - details: Some(sample_plugin_details()), - }, - ExternalAgentConfigMigrationItem { - item_type: ExternalAgentConfigMigrationItemType::AgentsMd, - description: format!( - "Migrate {} to {}", - sample_project_path("CLAUDE.md"), - sample_project_path("AGENTS.md") - ), - cwd: Some(project_root), - details: None, - }, - ] - } - - fn render_screen( - screen: &ExternalAgentConfigMigrationScreen, - width: u16, - height: u16, - ) -> String { - let backend = VT100Backend::new(width, height); - let mut terminal = Terminal::with_options(backend).expect("terminal"); - terminal.set_viewport_area(Rect::new(0, 0, width, height)); - { - let mut frame = terminal.get_frame(); - frame.render_widget_ref(screen, frame.area()); - } - terminal.flush().expect("flush"); - terminal.backend().to_string() - } - - #[test] - fn prompt_snapshot() { - let items = sample_items(); - let screen = ExternalAgentConfigMigrationScreen::new( - FrameRequester::test_dummy(), - &items, - &items, - /*error*/ None, - ); - - let rendered = render_screen(&screen, /*width*/ 80, /*height*/ 21); - #[cfg(windows)] - assert_snapshot!("external_agent_config_migration_prompt_windows", rendered); - #[cfg(not(windows))] - assert_snapshot!("external_agent_config_migration_prompt", rendered); - } - - #[test] - fn proceed_returns_selected_items() { - let items = sample_items(); - let mut screen = ExternalAgentConfigMigrationScreen::new( - FrameRequester::test_dummy(), - &items, - &items, - /*error*/ None, - ); - - screen.handle_key(KeyEvent::new(KeyCode::Down, KeyModifiers::NONE)); - screen.handle_key(KeyEvent::new(KeyCode::Down, KeyModifiers::NONE)); - screen.handle_key(KeyEvent::new(KeyCode::Down, KeyModifiers::NONE)); - screen.handle_key(KeyEvent::new(KeyCode::Enter, KeyModifiers::NONE)); - - assert!(screen.is_done()); - assert_eq!( - screen.outcome(), - ExternalAgentConfigMigrationOutcome::Proceed(items) - ); - } - - #[test] - fn toggle_item_then_proceed_keeps_remaining_selection() { - let items = sample_items(); - let mut screen = ExternalAgentConfigMigrationScreen::new( - FrameRequester::test_dummy(), - &items, - &items, - /*error*/ None, - ); - - screen.handle_key(KeyEvent::new(KeyCode::Char(' '), KeyModifiers::NONE)); - screen.handle_key(KeyEvent::new(KeyCode::Down, KeyModifiers::NONE)); - screen.handle_key(KeyEvent::new(KeyCode::Down, KeyModifiers::NONE)); - screen.handle_key(KeyEvent::new(KeyCode::Down, KeyModifiers::NONE)); - screen.handle_key(KeyEvent::new(KeyCode::Enter, KeyModifiers::NONE)); - - assert!(screen.is_done()); - assert_eq!( - screen.outcome(), - ExternalAgentConfigMigrationOutcome::Proceed(vec![items[1].clone(), items[2].clone(),]) - ); - } - - #[test] - fn escape_skips_prompt() { - let items = sample_items(); - let mut screen = ExternalAgentConfigMigrationScreen::new( - FrameRequester::test_dummy(), - &items, - &items, - /*error*/ None, - ); - - screen.handle_key(KeyEvent::new(KeyCode::Esc, KeyModifiers::NONE)); - - assert!(screen.is_done()); - assert_eq!(screen.outcome(), ExternalAgentConfigMigrationOutcome::Skip); - } - - #[test] - fn skip_forever_returns_skip_forever_outcome() { - let items = sample_items(); - let mut screen = ExternalAgentConfigMigrationScreen::new( - FrameRequester::test_dummy(), - &items, - &items, - /*error*/ None, - ); - - screen.move_down(); - screen.move_down(); - screen.move_down(); - screen.move_down(); - screen.move_down(); - screen.confirm_selection(); - - assert_eq!( - screen.outcome(), - ExternalAgentConfigMigrationOutcome::SkipForever - ); - } - - #[test] - fn proceed_requires_at_least_one_selected_item() { - let items = sample_items(); - let mut screen = ExternalAgentConfigMigrationScreen::new( - FrameRequester::test_dummy(), - &items, - &items, - /*error*/ None, - ); - - screen.handle_key(KeyEvent::new(KeyCode::Char('n'), KeyModifiers::NONE)); - screen.handle_key(KeyEvent::new(KeyCode::Char('1'), KeyModifiers::NONE)); - - assert!(!screen.is_done()); - assert_eq!(screen.highlighted_action, ActionMenuOption::Proceed); - let rendered = render_screen(&screen, /*width*/ 80, /*height*/ 20); - assert!( - rendered.contains("Select at least one item or choose a skip option."), - "expected inline validation error, got:\n{rendered}" - ); - } - - #[test] - fn proceed_action_is_skipped_when_no_items_are_selected() { - let items = sample_items(); - let mut screen = ExternalAgentConfigMigrationScreen::new( - FrameRequester::test_dummy(), - &items, - &items, - /*error*/ None, - ); - - screen.handle_key(KeyEvent::new(KeyCode::Char('n'), KeyModifiers::NONE)); - screen.handle_key(KeyEvent::new(KeyCode::Down, KeyModifiers::NONE)); - screen.handle_key(KeyEvent::new(KeyCode::Down, KeyModifiers::NONE)); - screen.handle_key(KeyEvent::new(KeyCode::Down, KeyModifiers::NONE)); - - assert_eq!(screen.focus, FocusArea::Actions); - assert_eq!(screen.highlighted_action, ActionMenuOption::Skip); - } - - #[test] - fn numeric_shortcuts_choose_actions() { - let items = sample_items(); - - let mut proceed_screen = ExternalAgentConfigMigrationScreen::new( - FrameRequester::test_dummy(), - &items, - &items, - /*error*/ None, - ); - proceed_screen.handle_key(KeyEvent::new(KeyCode::Char('1'), KeyModifiers::NONE)); - assert_eq!( - proceed_screen.outcome(), - ExternalAgentConfigMigrationOutcome::Proceed(items.clone()) - ); - - let mut skip_screen = ExternalAgentConfigMigrationScreen::new( - FrameRequester::test_dummy(), - &items, - &items, - /*error*/ None, - ); - skip_screen.handle_key(KeyEvent::new(KeyCode::Char('2'), KeyModifiers::NONE)); - assert_eq!( - skip_screen.outcome(), - ExternalAgentConfigMigrationOutcome::Skip - ); - - let mut skip_forever_screen = ExternalAgentConfigMigrationScreen::new( - FrameRequester::test_dummy(), - &items, - &items, - /*error*/ None, - ); - skip_forever_screen.handle_key(KeyEvent::new(KeyCode::Char('3'), KeyModifiers::NONE)); - assert_eq!( - skip_forever_screen.outcome(), - ExternalAgentConfigMigrationOutcome::SkipForever - ); - } -} diff --git a/vendor/codex/codex-rs/tui/src/external_agent_config_migration_startup.rs b/vendor/codex/codex-rs/tui/src/external_agent_config_migration_startup.rs deleted file mode 100644 index 93f23025..00000000 --- a/vendor/codex/codex-rs/tui/src/external_agent_config_migration_startup.rs +++ /dev/null @@ -1,567 +0,0 @@ -use crate::app_server_session::AppServerSession; -use crate::external_agent_config_migration::ExternalAgentConfigMigrationOutcome; -use crate::external_agent_config_migration::run_external_agent_config_migration_prompt; -use crate::legacy_core::config::Config; -use crate::legacy_core::config::ConfigBuilder; -use crate::legacy_core::config::ConfigOverrides; -use crate::legacy_core::config::edit::ConfigEdit; -use crate::legacy_core::config::edit::ConfigEditsBuilder; -use crate::tui; -use codex_app_server_protocol::ExternalAgentConfigDetectParams; -use codex_app_server_protocol::ExternalAgentConfigMigrationItem; -use codex_features::Feature; -use color_eyre::eyre::Result; -use color_eyre::eyre::WrapErr; -use std::collections::BTreeSet; -use std::path::Path; -use std::time::SystemTime; -use std::time::UNIX_EPOCH; -use toml::Value as TomlValue; - -const EXTERNAL_CONFIG_MIGRATION_PROMPT_COOLDOWN_SECS: i64 = 5 * 24 * 60 * 60; - -pub(crate) enum ExternalAgentConfigMigrationStartupOutcome { - Continue { success_message: Option }, - ExitRequested, -} - -fn should_show_external_agent_config_migration_prompt( - config: &Config, - entered_trust_nux: bool, -) -> bool { - entered_trust_nux && config.features.enabled(Feature::ExternalMigration) -} - -fn external_config_migration_project_key(path: &Path) -> String { - path.display().to_string() -} - -fn is_external_config_migration_scope_hidden(config: &Config, cwd: Option<&Path>) -> bool { - match cwd { - Some(cwd) => config - .notices - .external_config_migration_prompts - .projects - .get(&external_config_migration_project_key(cwd)) - .copied() - .unwrap_or(false), - None => config - .notices - .external_config_migration_prompts - .home - .unwrap_or(false), - } -} - -fn external_config_migration_last_prompted_at(config: &Config, cwd: Option<&Path>) -> Option { - match cwd { - Some(cwd) => config - .notices - .external_config_migration_prompts - .project_last_prompted_at - .get(&external_config_migration_project_key(cwd)) - .copied(), - None => { - config - .notices - .external_config_migration_prompts - .home_last_prompted_at - } - } -} - -fn is_external_config_migration_scope_cooling_down( - config: &Config, - cwd: Option<&Path>, - now_unix_seconds: i64, -) -> bool { - external_config_migration_last_prompted_at(config, cwd).is_some_and(|last_prompted_at| { - last_prompted_at.saturating_add(EXTERNAL_CONFIG_MIGRATION_PROMPT_COOLDOWN_SECS) - > now_unix_seconds - }) -} - -fn visible_external_agent_config_migration_items( - config: &Config, - items: Vec, - now_unix_seconds: i64, -) -> Vec { - items - .into_iter() - .filter(|item| { - !is_external_config_migration_scope_hidden(config, item.cwd.as_deref()) - && !is_external_config_migration_scope_cooling_down( - config, - item.cwd.as_deref(), - now_unix_seconds, - ) - }) - .collect() -} - -fn external_agent_config_migration_success_message( - items: &[ExternalAgentConfigMigrationItem], -) -> String { - if items.iter().any(|item| { - item.item_type == codex_app_server_protocol::ExternalAgentConfigMigrationItemType::Plugins - }) { - "External config migration completed. Plugin migration is still in progress and may take a few minutes." - .to_string() - } else { - "External config migration completed successfully.".to_string() - } -} - -fn unix_seconds_now() -> i64 { - SystemTime::now() - .duration_since(UNIX_EPOCH) - .unwrap_or_default() - .as_secs() as i64 -} - -async fn persist_external_agent_config_migration_prompt_shown( - config: &mut Config, - items: &[ExternalAgentConfigMigrationItem], - now_unix_seconds: i64, -) -> Result<()> { - let mut edits = Vec::new(); - if items.iter().any(|item| item.cwd.is_none()) { - edits.push( - ConfigEdit::SetNoticeExternalConfigMigrationPromptHomeLastPromptedAt(now_unix_seconds), - ); - } - - for project in items - .iter() - .filter_map(|item| item.cwd.as_deref()) - .map(external_config_migration_project_key) - { - edits.push( - ConfigEdit::SetNoticeExternalConfigMigrationPromptProjectLastPromptedAt( - project, - now_unix_seconds, - ), - ); - } - - if edits.is_empty() { - return Ok(()); - } - - ConfigEditsBuilder::new(&config.codex_home) - .with_edits(edits) - .apply() - .await - .map_err(|err| color_eyre::eyre::eyre!("{err}")) - .wrap_err("Failed to save external config migration prompt timestamp")?; - - if items.iter().any(|item| item.cwd.is_none()) { - config - .notices - .external_config_migration_prompts - .home_last_prompted_at = Some(now_unix_seconds); - } - for project in items - .iter() - .filter_map(|item| item.cwd.as_deref()) - .map(external_config_migration_project_key) - { - config - .notices - .external_config_migration_prompts - .project_last_prompted_at - .insert(project, now_unix_seconds); - } - - Ok(()) -} - -async fn persist_external_agent_config_migration_prompt_dismissal( - config: &mut Config, - items: &[ExternalAgentConfigMigrationItem], -) -> Result<()> { - let hide_home = items.iter().any(|item| item.cwd.is_none()); - let projects = items - .iter() - .filter_map(|item| item.cwd.as_deref()) - .map(external_config_migration_project_key) - .collect::>(); - - let mut edits = Vec::new(); - if hide_home - && !config - .notices - .external_config_migration_prompts - .home - .unwrap_or(false) - { - edits.push(ConfigEdit::SetNoticeHideExternalConfigMigrationPromptHome( - true, - )); - } - for project in &projects { - if !config - .notices - .external_config_migration_prompts - .projects - .get(project) - .copied() - .unwrap_or(false) - { - edits.push( - ConfigEdit::SetNoticeHideExternalConfigMigrationPromptProject( - project.clone(), - true, - ), - ); - } - } - - if edits.is_empty() { - return Ok(()); - } - - ConfigEditsBuilder::new(&config.codex_home) - .with_edits(edits) - .apply() - .await - .map_err(|err| color_eyre::eyre::eyre!("{err}")) - .wrap_err("Failed to save external config migration prompt preference")?; - - if hide_home { - config.notices.external_config_migration_prompts.home = Some(true); - } - for project in projects { - config - .notices - .external_config_migration_prompts - .projects - .insert(project, true); - } - - Ok(()) -} - -pub(crate) async fn handle_external_agent_config_migration_prompt_if_needed( - tui: &mut tui::Tui, - app_server: &mut AppServerSession, - config: &mut Config, - cli_kv_overrides: &[(String, TomlValue)], - harness_overrides: &ConfigOverrides, - entered_trust_nux: bool, -) -> Result { - if !should_show_external_agent_config_migration_prompt(config, entered_trust_nux) { - return Ok(ExternalAgentConfigMigrationStartupOutcome::Continue { - success_message: None, - }); - } - - let now_unix_seconds = unix_seconds_now(); - let detected_items = match app_server - .external_agent_config_detect(ExternalAgentConfigDetectParams { - include_home: true, - cwds: Some(vec![config.cwd.to_path_buf()]), - }) - .await - { - Ok(response) => { - visible_external_agent_config_migration_items(config, response.items, now_unix_seconds) - } - Err(err) => { - tracing::warn!( - error = %err, - cwd = %config.cwd.display(), - "failed to detect external agent config migrations; continuing startup" - ); - return Ok(ExternalAgentConfigMigrationStartupOutcome::Continue { - success_message: None, - }); - } - }; - - if detected_items.is_empty() { - return Ok(ExternalAgentConfigMigrationStartupOutcome::Continue { - success_message: None, - }); - } - - if let Err(err) = persist_external_agent_config_migration_prompt_shown( - config, - &detected_items, - now_unix_seconds, - ) - .await - { - tracing::warn!( - error = %err, - cwd = %config.cwd.display(), - "failed to persist external config migration prompt timestamp" - ); - } - - let mut selected_items = detected_items.clone(); - let mut error: Option = None; - - loop { - match run_external_agent_config_migration_prompt( - tui, - &detected_items, - &selected_items, - error.as_deref(), - ) - .await - { - ExternalAgentConfigMigrationOutcome::Proceed(items) => { - selected_items = items.clone(); - match app_server.external_agent_config_import(items).await { - Ok(_) => { - let success_message = - external_agent_config_migration_success_message(&selected_items); - *config = ConfigBuilder::default() - .codex_home(config.codex_home.to_path_buf()) - .cli_overrides(cli_kv_overrides.to_vec()) - .harness_overrides(harness_overrides.clone()) - .build() - .await - .wrap_err("Failed to reload config after external agent migration")?; - return Ok(ExternalAgentConfigMigrationStartupOutcome::Continue { - success_message: Some(success_message), - }); - } - Err(err) => { - tracing::warn!( - error = %err, - cwd = %config.cwd.display(), - "failed to import external agent config migration items" - ); - error = Some(format!("Migration failed: {err}")); - } - } - } - ExternalAgentConfigMigrationOutcome::Skip => { - return Ok(ExternalAgentConfigMigrationStartupOutcome::Continue { - success_message: None, - }); - } - ExternalAgentConfigMigrationOutcome::SkipForever => { - match persist_external_agent_config_migration_prompt_dismissal( - config, - &detected_items, - ) - .await - { - Ok(()) => { - return Ok(ExternalAgentConfigMigrationStartupOutcome::Continue { - success_message: None, - }); - } - Err(err) => { - tracing::warn!( - error = %err, - cwd = %config.cwd.display(), - "failed to persist external config migration prompt dismissal" - ); - error = Some(format!("Failed to save preference: {err}")); - } - } - } - ExternalAgentConfigMigrationOutcome::Exit => { - return Ok(ExternalAgentConfigMigrationStartupOutcome::ExitRequested); - } - } - } -} - -#[cfg(test)] -mod tests { - use super::*; - use codex_app_server_protocol::ExternalAgentConfigMigrationItemType; - use pretty_assertions::assert_eq; - use std::path::PathBuf; - use tempfile::tempdir; - - #[tokio::test] - async fn visible_external_agent_config_migration_items_omits_hidden_scopes() { - let codex_home = tempdir().expect("temp codex home"); - let mut config = ConfigBuilder::default() - .codex_home(codex_home.path().to_path_buf()) - .build() - .await - .expect("config"); - config.notices.external_config_migration_prompts.home = Some(true); - config - .notices - .external_config_migration_prompts - .projects - .insert("/tmp/project".to_string(), true); - - let visible = visible_external_agent_config_migration_items( - &config, - vec![ - ExternalAgentConfigMigrationItem { - item_type: ExternalAgentConfigMigrationItemType::Config, - description: "home".to_string(), - cwd: None, - details: None, - }, - ExternalAgentConfigMigrationItem { - item_type: ExternalAgentConfigMigrationItemType::AgentsMd, - description: "project".to_string(), - cwd: Some(PathBuf::from("/tmp/project")), - details: None, - }, - ExternalAgentConfigMigrationItem { - item_type: ExternalAgentConfigMigrationItemType::Skills, - description: "other project".to_string(), - cwd: Some(PathBuf::from("/tmp/other")), - details: None, - }, - ], - /*now_unix_seconds*/ 1_760_000_000, - ); - - assert_eq!( - visible, - vec![ExternalAgentConfigMigrationItem { - item_type: ExternalAgentConfigMigrationItemType::Skills, - description: "other project".to_string(), - cwd: Some(PathBuf::from("/tmp/other")), - details: None, - }] - ); - } - - #[tokio::test] - async fn visible_external_agent_config_migration_items_omits_recently_prompted_scopes() { - let codex_home = tempdir().expect("temp codex home"); - let mut config = ConfigBuilder::default() - .codex_home(codex_home.path().to_path_buf()) - .build() - .await - .expect("config"); - config - .notices - .external_config_migration_prompts - .home_last_prompted_at = Some(1_760_000_000); - config - .notices - .external_config_migration_prompts - .project_last_prompted_at - .insert("/tmp/project".to_string(), 1_760_000_000); - - let visible = visible_external_agent_config_migration_items( - &config, - vec![ - ExternalAgentConfigMigrationItem { - item_type: ExternalAgentConfigMigrationItemType::Config, - description: "home".to_string(), - cwd: None, - details: None, - }, - ExternalAgentConfigMigrationItem { - item_type: ExternalAgentConfigMigrationItemType::AgentsMd, - description: "project".to_string(), - cwd: Some(PathBuf::from("/tmp/project")), - details: None, - }, - ExternalAgentConfigMigrationItem { - item_type: ExternalAgentConfigMigrationItemType::Skills, - description: "other project".to_string(), - cwd: Some(PathBuf::from("/tmp/other")), - details: None, - }, - ], - /*now_unix_seconds*/ - 1_760_000_000 + EXTERNAL_CONFIG_MIGRATION_PROMPT_COOLDOWN_SECS - 1, - ); - - assert_eq!( - visible, - vec![ExternalAgentConfigMigrationItem { - item_type: ExternalAgentConfigMigrationItemType::Skills, - description: "other project".to_string(), - cwd: Some(PathBuf::from("/tmp/other")), - details: None, - }] - ); - } - - #[tokio::test] - async fn external_config_migration_scope_cooldown_expires_after_five_days() { - let codex_home = tempdir().expect("temp codex home"); - let mut config = ConfigBuilder::default() - .codex_home(codex_home.path().to_path_buf()) - .build() - .await - .expect("config"); - config - .notices - .external_config_migration_prompts - .home_last_prompted_at = Some(1_760_000_000); - - assert!(is_external_config_migration_scope_cooling_down( - &config, - /*cwd*/ None, - 1_760_000_000 + EXTERNAL_CONFIG_MIGRATION_PROMPT_COOLDOWN_SECS - 1, - )); - assert!(!is_external_config_migration_scope_cooling_down( - &config, - /*cwd*/ None, - 1_760_000_000 + EXTERNAL_CONFIG_MIGRATION_PROMPT_COOLDOWN_SECS, - )); - } - - #[test] - fn external_agent_config_migration_success_message_mentions_plugins_when_present() { - let message = external_agent_config_migration_success_message(&[ - ExternalAgentConfigMigrationItem { - item_type: ExternalAgentConfigMigrationItemType::Config, - description: String::new(), - cwd: None, - details: None, - }, - ExternalAgentConfigMigrationItem { - item_type: ExternalAgentConfigMigrationItemType::Plugins, - description: String::new(), - cwd: None, - details: None, - }, - ]); - - assert_eq!( - message, - "External config migration completed. Plugin migration is still in progress and may take a few minutes." - ); - } - - #[test] - fn external_agent_config_migration_success_message_omits_plugins_copy_when_absent() { - let message = - external_agent_config_migration_success_message(&[ExternalAgentConfigMigrationItem { - item_type: ExternalAgentConfigMigrationItemType::AgentsMd, - description: String::new(), - cwd: None, - details: None, - }]); - - assert_eq!(message, "External config migration completed successfully."); - } - - #[tokio::test] - async fn external_agent_config_migration_prompt_requires_trust_nux_entry() { - let codex_home = tempdir().expect("temp codex home"); - let mut config = ConfigBuilder::default() - .codex_home(codex_home.path().to_path_buf()) - .build() - .await - .expect("config"); - let _ = config.features.enable(Feature::ExternalMigration); - - assert!(!should_show_external_agent_config_migration_prompt( - &config, /*entered_trust_nux*/ false, - )); - assert!(should_show_external_agent_config_migration_prompt( - &config, /*entered_trust_nux*/ true, - )); - } -} diff --git a/vendor/codex/codex-rs/tui/src/lib.rs b/vendor/codex/codex-rs/tui/src/lib.rs index ee50d0a1..2e53de4c 100644 --- a/vendor/codex/codex-rs/tui/src/lib.rs +++ b/vendor/codex/codex-rs/tui/src/lib.rs @@ -119,8 +119,6 @@ mod debug_config; mod diff_render; mod exec_cell; mod exec_command; -mod external_agent_config_migration; -mod external_agent_config_migration_startup; mod external_editor; mod file_search; mod frames; diff --git a/vendor/codex/codex-rs/tui/src/snapshots/codex_tui__external_agent_config_migration__tests__external_agent_config_migration_prompt.snap b/vendor/codex/codex-rs/tui/src/snapshots/codex_tui__external_agent_config_migration__tests__external_agent_config_migration_prompt.snap deleted file mode 100644 index 5ce3c5ef..00000000 --- a/vendor/codex/codex-rs/tui/src/snapshots/codex_tui__external_agent_config_migration__tests__external_agent_config_migration_prompt.snap +++ /dev/null @@ -1,23 +0,0 @@ ---- -source: tui/src/external_agent_config_migration.rs -expression: rendered ---- - > External agent config detected - We found settings from another agent that you can add to this project. - Select what to import - Home - [x] Migrate /Users/alex/.claude/settings.json into /Users/alex/.codex/con… - - Project: /workspace/project - [x] Migrate enabled plugins from .claude/settings.json (4 marketplaces, 6… - • acme-tools: deployer, formatter, +1 more - • team-marketplace: asana - • debug: sample - • +1 more marketplaces - [x] Migrate CLAUDE.md to AGENTS.md - - Selected 3 of 3 item(s). - 1. Proceed with selected - 2. Skip for now - 3. Don't ask again - Use ↑/↓ to move, space to toggle, 1/2/3 to choose, a/n for all/none diff --git a/vendor/codex/codex-rs/tui/src/snapshots/codex_tui__external_agent_config_migration__tests__external_agent_config_migration_prompt_windows.snap b/vendor/codex/codex-rs/tui/src/snapshots/codex_tui__external_agent_config_migration__tests__external_agent_config_migration_prompt_windows.snap deleted file mode 100644 index 44f41784..00000000 --- a/vendor/codex/codex-rs/tui/src/snapshots/codex_tui__external_agent_config_migration__tests__external_agent_config_migration_prompt_windows.snap +++ /dev/null @@ -1,24 +0,0 @@ ---- -source: tui/src/external_agent_config_migration.rs -expression: rendered ---- - - > External agent config detected - We found settings from another agent that you can add to this project. - Select what to import - Home - [x] Migrate /Users/alex/.claude/settings.json into /Users/alex/.codex/con… - - Project: C:\workspace\project - [x] Migrate enabled plugins from .claude/settings.json (4 marketplaces, 6… - • acme-tools: deployer, formatter, +1 more - • team-marketplace: asana - • debug: sample - • +1 more marketplaces - [x] Migrate CLAUDE.md to AGENTS.md - - Selected 3 of 3 item(s). - 1. Proceed with selected - 2. Skip for now - 3. Don't ask again - Use ↑/↓ to move, space to toggle, 1/2/3 to choose, a/n for all/none