mirror of
https://github.com/openai/codex.git
synced 2026-09-03 14:59:03 +00:00
## Why Clients that complete an external agent config import outside the app server need a way to include the result in import history. ## What changed - Add `externalAgentConfig/import/recordHistory` to persist completed item results and return a generated import ID. - Store the optional provider ID for regular imports and expose it when reading import history. - Update the generated JSON and TypeScript protocol schemas for the new request, response, and history field. ## Testing - Cover recording and reading an externally completed import through the app-server protocol. - Cover provider ID persistence and updates in the state runtime. GitOrigin-RevId: 935401e899ec9eeb38f54c182e45a16642411deb
240 lines
5.0 KiB
JSON
Generated
240 lines
5.0 KiB
JSON
Generated
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"CommandMigration": {
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"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",
|
|
"SUBAGENTS",
|
|
"HOOKS",
|
|
"COMMANDS",
|
|
"MEMORY",
|
|
"SESSIONS"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"HookMigration": {
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"McpServerMigration": {
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"MigrationDetails": {
|
|
"properties": {
|
|
"commands": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/definitions/CommandMigration"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"hooks": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/definitions/HookMigration"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"mcpServers": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/definitions/McpServerMigration"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"memory": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"plugins": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/definitions/PluginsMigration"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"sessions": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/definitions/SessionMigration"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"skills": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/definitions/SkillMigration"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"subagents": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/definitions/SubagentMigration"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"PluginsMigration": {
|
|
"properties": {
|
|
"marketplaceName": {
|
|
"type": "string"
|
|
},
|
|
"pluginNames": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"marketplaceName",
|
|
"pluginNames"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"SessionMigration": {
|
|
"properties": {
|
|
"cwd": {
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"cwd",
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"SkillMigration": {
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"SubagentMigration": {
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
"properties": {
|
|
"migrationItems": {
|
|
"items": {
|
|
"$ref": "#/definitions/ExternalAgentConfigMigrationItem"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"migrationSource": {
|
|
"description": "Migration-source selector used to produce the migration items. Pass the same value to detection and import; missing or unrecognized values use the default source.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"providerId": {
|
|
"description": "Opaque provider identifier supplied by the caller for analytics attribution and import history display. This does not select the migration source.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"source": {
|
|
"description": "Optional identifier for the product that initiated the import.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"migrationItems"
|
|
],
|
|
"title": "ExternalAgentConfigImportParams",
|
|
"type": "object"
|
|
} |