Support external agent config detect and import

This commit is contained in:
alexsong-oai
2026-02-24 00:46:07 -08:00
parent 68a7d98363
commit db43e64d0f
19 changed files with 1092 additions and 1 deletions

View File

@@ -376,6 +376,28 @@
},
"type": "object"
},
"ExternalAgentConfigImportParams": {
"properties": {
"migrationTypes": {
"items": {
"$ref": "#/definitions/ExternalAgentConfigMigrationType"
},
"type": "array"
}
},
"required": [
"migrationTypes"
],
"type": "object"
},
"ExternalAgentConfigMigrationType": {
"enum": [
"AGENTS_MD",
"CONFIG",
"SKILLS"
],
"type": "string"
},
"FeedbackUploadParams": {
"properties": {
"classification": {
@@ -3390,6 +3412,53 @@
"title": "Config/readRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"externalAgentConfig/detect"
],
"title": "ExternalAgentConfig/detectRequestMethod",
"type": "string"
},
"params": {
"type": "null"
}
},
"required": [
"id",
"method"
],
"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": {

View File

@@ -1078,6 +1078,53 @@
"title": "Config/readRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"externalAgentConfig/detect"
],
"title": "ExternalAgentConfig/detectRequestMethod",
"type": "string"
},
"params": {
"type": "null"
}
},
"required": [
"id",
"method"
],
"title": "ExternalAgentConfig/detectRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/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": {
@@ -8877,6 +8924,66 @@
}
]
},
"ExternalAgentConfigDetectResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"items": {
"items": {
"$ref": "#/definitions/v2/ExternalAgentConfigMigrationItem"
},
"type": "array"
}
},
"required": [
"items"
],
"title": "ExternalAgentConfigDetectResponse",
"type": "object"
},
"ExternalAgentConfigImportParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"migrationTypes": {
"items": {
"$ref": "#/definitions/v2/ExternalAgentConfigMigrationType"
},
"type": "array"
}
},
"required": [
"migrationTypes"
],
"title": "ExternalAgentConfigImportParams",
"type": "object"
},
"ExternalAgentConfigImportResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ExternalAgentConfigImportResponse",
"type": "object"
},
"ExternalAgentConfigMigrationItem": {
"properties": {
"description": {
"type": "string"
},
"migrationType": {
"$ref": "#/definitions/v2/ExternalAgentConfigMigrationType"
}
},
"required": [
"description",
"migrationType"
],
"type": "object"
},
"ExternalAgentConfigMigrationType": {
"enum": [
"AGENTS_MD",
"CONFIG",
"SKILLS"
],
"type": "string"
},
"FeedbackUploadParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {

View File

@@ -0,0 +1,41 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ExternalAgentConfigMigrationItem": {
"properties": {
"description": {
"type": "string"
},
"migrationType": {
"$ref": "#/definitions/ExternalAgentConfigMigrationType"
}
},
"required": [
"description",
"migrationType"
],
"type": "object"
},
"ExternalAgentConfigMigrationType": {
"enum": [
"AGENTS_MD",
"CONFIG",
"SKILLS"
],
"type": "string"
}
},
"properties": {
"items": {
"items": {
"$ref": "#/definitions/ExternalAgentConfigMigrationItem"
},
"type": "array"
}
},
"required": [
"items"
],
"title": "ExternalAgentConfigDetectResponse",
"type": "object"
}

View File

@@ -0,0 +1,26 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ExternalAgentConfigMigrationType": {
"enum": [
"AGENTS_MD",
"CONFIG",
"SKILLS"
],
"type": "string"
}
},
"properties": {
"migrationTypes": {
"items": {
"$ref": "#/definitions/ExternalAgentConfigMigrationType"
},
"type": "array"
}
},
"required": [
"migrationTypes"
],
"title": "ExternalAgentConfigImportParams",
"type": "object"
}

View File

@@ -0,0 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ExternalAgentConfigImportResponse",
"type": "object"
}