Add external agent import result accounting

This commit is contained in:
charlesgong-openai
2026-06-12 19:03:20 -07:00
parent 0ebb68ad99
commit b32453ec46
24 changed files with 1526 additions and 181 deletions
@@ -0,0 +1,104 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ExternalAgentConfigImportItemResult": {
"properties": {
"cwd": {
"type": [
"string",
"null"
]
},
"description": {
"type": "string"
},
"errorCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"itemType": {
"$ref": "#/definitions/ExternalAgentConfigMigrationItemType"
},
"rawErrors": {
"items": {
"$ref": "#/definitions/ExternalAgentConfigImportRawError"
},
"type": "array"
},
"successCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
}
},
"required": [
"description",
"errorCount",
"itemType",
"rawErrors",
"successCount"
],
"type": "object"
},
"ExternalAgentConfigImportRawError": {
"properties": {
"cwd": {
"type": [
"string",
"null"
]
},
"failureStage": {
"type": "string"
},
"itemType": {
"$ref": "#/definitions/ExternalAgentConfigMigrationItemType"
},
"message": {
"type": "string"
},
"source": {
"type": [
"string",
"null"
]
}
},
"required": [
"failureStage",
"itemType",
"message"
],
"type": "object"
},
"ExternalAgentConfigMigrationItemType": {
"enum": [
"AGENTS_MD",
"CONFIG",
"SKILLS",
"PLUGINS",
"MCP_SERVER_CONFIG",
"SUBAGENTS",
"HOOKS",
"COMMANDS",
"SESSIONS"
],
"type": "string"
}
},
"properties": {
"importId": {
"type": "string"
},
"itemResult": {
"$ref": "#/definitions/ExternalAgentConfigImportItemResult"
}
},
"required": [
"importId",
"itemResult"
],
"title": "ExternalAgentConfigImportProgressNotification",
"type": "object"
}