{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ExternalAgentConfigDetectResponse", "type": "object", "required": [ "items" ], "properties": { "items": { "type": "array", "items": { "$ref": "#/definitions/ExternalAgentConfigMigrationItem" } } }, "definitions": { "CommandMigration": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "ExternalAgentConfigMigrationItem": { "type": "object", "required": [ "description", "itemType" ], "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" } } }, "ExternalAgentConfigMigrationItemType": { "type": "string", "enum": [ "AGENTS_MD", "CONFIG", "SKILLS", "PLUGINS", "MCP_SERVER_CONFIG", "SUBAGENTS", "HOOKS", "COMMANDS", "SESSIONS" ] }, "HookMigration": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "McpServerMigration": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "MigrationDetails": { "type": "object", "properties": { "commands": { "default": [], "type": "array", "items": { "$ref": "#/definitions/CommandMigration" } }, "hooks": { "default": [], "type": "array", "items": { "$ref": "#/definitions/HookMigration" } }, "mcpServers": { "default": [], "type": "array", "items": { "$ref": "#/definitions/McpServerMigration" } }, "plugins": { "default": [], "type": "array", "items": { "$ref": "#/definitions/PluginsMigration" } }, "sessions": { "default": [], "type": "array", "items": { "$ref": "#/definitions/SessionMigration" } }, "subagents": { "default": [], "type": "array", "items": { "$ref": "#/definitions/SubagentMigration" } } } }, "PluginsMigration": { "type": "object", "required": [ "marketplaceName", "pluginNames" ], "properties": { "marketplaceName": { "type": "string" }, "pluginNames": { "type": "array", "items": { "type": "string" } } } }, "SessionMigration": { "type": "object", "required": [ "cwd", "path" ], "properties": { "cwd": { "type": "string" }, "path": { "type": "string" }, "title": { "type": [ "string", "null" ] } } }, "SubagentMigration": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } } } }