Skip to content

Commit f7a4b22

Browse files
committed
test(app-server-protocol): refresh schema fixtures
1 parent 2b865bd commit f7a4b22

14 files changed

Lines changed: 427 additions & 1 deletion

code-rs/app-server-protocol/schema/json/ClientRequest.json

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,70 @@
502502
},
503503
"type": "object"
504504
},
505+
"ExternalAgentConfigDetectParams": {
506+
"properties": {
507+
"cwds": {
508+
"description": "Zero or more working directories to include for repo-scoped detection.",
509+
"items": {
510+
"type": "string"
511+
},
512+
"type": [
513+
"array",
514+
"null"
515+
]
516+
},
517+
"includeHome": {
518+
"description": "If true, include detection under the user's home (~/.claude, ~/.codex, etc.).",
519+
"type": "boolean"
520+
}
521+
},
522+
"type": "object"
523+
},
524+
"ExternalAgentConfigImportParams": {
525+
"properties": {
526+
"migrationItems": {
527+
"items": {
528+
"$ref": "#/definitions/ExternalAgentConfigMigrationItem"
529+
},
530+
"type": "array"
531+
}
532+
},
533+
"required": [
534+
"migrationItems"
535+
],
536+
"type": "object"
537+
},
538+
"ExternalAgentConfigMigrationItem": {
539+
"properties": {
540+
"cwd": {
541+
"description": "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",
542+
"type": [
543+
"string",
544+
"null"
545+
]
546+
},
547+
"description": {
548+
"type": "string"
549+
},
550+
"itemType": {
551+
"$ref": "#/definitions/ExternalAgentConfigMigrationItemType"
552+
}
553+
},
554+
"required": [
555+
"description",
556+
"itemType"
557+
],
558+
"type": "object"
559+
},
560+
"ExternalAgentConfigMigrationItemType": {
561+
"enum": [
562+
"AGENTS_MD",
563+
"CONFIG",
564+
"SKILLS",
565+
"MCP_SERVER_CONFIG"
566+
],
567+
"type": "string"
568+
},
505569
"FeedbackUploadParams": {
506570
"properties": {
507571
"classification": {
@@ -3986,6 +4050,54 @@
39864050
"title": "Config/readRequest",
39874051
"type": "object"
39884052
},
4053+
{
4054+
"properties": {
4055+
"id": {
4056+
"$ref": "#/definitions/RequestId"
4057+
},
4058+
"method": {
4059+
"enum": [
4060+
"externalAgentConfig/detect"
4061+
],
4062+
"title": "ExternalAgentConfig/detectRequestMethod",
4063+
"type": "string"
4064+
},
4065+
"params": {
4066+
"$ref": "#/definitions/ExternalAgentConfigDetectParams"
4067+
}
4068+
},
4069+
"required": [
4070+
"id",
4071+
"method",
4072+
"params"
4073+
],
4074+
"title": "ExternalAgentConfig/detectRequest",
4075+
"type": "object"
4076+
},
4077+
{
4078+
"properties": {
4079+
"id": {
4080+
"$ref": "#/definitions/RequestId"
4081+
},
4082+
"method": {
4083+
"enum": [
4084+
"externalAgentConfig/import"
4085+
],
4086+
"title": "ExternalAgentConfig/importRequestMethod",
4087+
"type": "string"
4088+
},
4089+
"params": {
4090+
"$ref": "#/definitions/ExternalAgentConfigImportParams"
4091+
}
4092+
},
4093+
"required": [
4094+
"id",
4095+
"method",
4096+
"params"
4097+
],
4098+
"title": "ExternalAgentConfig/importRequest",
4099+
"type": "object"
4100+
},
39894101
{
39904102
"properties": {
39914103
"id": {

code-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,6 +1331,54 @@
13311331
"title": "Config/readRequest",
13321332
"type": "object"
13331333
},
1334+
{
1335+
"properties": {
1336+
"id": {
1337+
"$ref": "#/definitions/RequestId"
1338+
},
1339+
"method": {
1340+
"enum": [
1341+
"externalAgentConfig/detect"
1342+
],
1343+
"title": "ExternalAgentConfig/detectRequestMethod",
1344+
"type": "string"
1345+
},
1346+
"params": {
1347+
"$ref": "#/definitions/v2/ExternalAgentConfigDetectParams"
1348+
}
1349+
},
1350+
"required": [
1351+
"id",
1352+
"method",
1353+
"params"
1354+
],
1355+
"title": "ExternalAgentConfig/detectRequest",
1356+
"type": "object"
1357+
},
1358+
{
1359+
"properties": {
1360+
"id": {
1361+
"$ref": "#/definitions/RequestId"
1362+
},
1363+
"method": {
1364+
"enum": [
1365+
"externalAgentConfig/import"
1366+
],
1367+
"title": "ExternalAgentConfig/importRequestMethod",
1368+
"type": "string"
1369+
},
1370+
"params": {
1371+
"$ref": "#/definitions/v2/ExternalAgentConfigImportParams"
1372+
}
1373+
},
1374+
"required": [
1375+
"id",
1376+
"method",
1377+
"params"
1378+
],
1379+
"title": "ExternalAgentConfig/importRequest",
1380+
"type": "object"
1381+
},
13341382
{
13351383
"properties": {
13361384
"id": {
@@ -12018,6 +12066,95 @@
1201812066
}
1201912067
]
1202012068
},
12069+
"ExternalAgentConfigDetectParams": {
12070+
"$schema": "http://json-schema.org/draft-07/schema#",
12071+
"properties": {
12072+
"cwds": {
12073+
"description": "Zero or more working directories to include for repo-scoped detection.",
12074+
"items": {
12075+
"type": "string"
12076+
},
12077+
"type": [
12078+
"array",
12079+
"null"
12080+
]
12081+
},
12082+
"includeHome": {
12083+
"description": "If true, include detection under the user's home (~/.claude, ~/.codex, etc.).",
12084+
"type": "boolean"
12085+
}
12086+
},
12087+
"title": "ExternalAgentConfigDetectParams",
12088+
"type": "object"
12089+
},
12090+
"ExternalAgentConfigDetectResponse": {
12091+
"$schema": "http://json-schema.org/draft-07/schema#",
12092+
"properties": {
12093+
"items": {
12094+
"items": {
12095+
"$ref": "#/definitions/v2/ExternalAgentConfigMigrationItem"
12096+
},
12097+
"type": "array"
12098+
}
12099+
},
12100+
"required": [
12101+
"items"
12102+
],
12103+
"title": "ExternalAgentConfigDetectResponse",
12104+
"type": "object"
12105+
},
12106+
"ExternalAgentConfigImportParams": {
12107+
"$schema": "http://json-schema.org/draft-07/schema#",
12108+
"properties": {
12109+
"migrationItems": {
12110+
"items": {
12111+
"$ref": "#/definitions/v2/ExternalAgentConfigMigrationItem"
12112+
},
12113+
"type": "array"
12114+
}
12115+
},
12116+
"required": [
12117+
"migrationItems"
12118+
],
12119+
"title": "ExternalAgentConfigImportParams",
12120+
"type": "object"
12121+
},
12122+
"ExternalAgentConfigImportResponse": {
12123+
"$schema": "http://json-schema.org/draft-07/schema#",
12124+
"title": "ExternalAgentConfigImportResponse",
12125+
"type": "object"
12126+
},
12127+
"ExternalAgentConfigMigrationItem": {
12128+
"properties": {
12129+
"cwd": {
12130+
"description": "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",
12131+
"type": [
12132+
"string",
12133+
"null"
12134+
]
12135+
},
12136+
"description": {
12137+
"type": "string"
12138+
},
12139+
"itemType": {
12140+
"$ref": "#/definitions/v2/ExternalAgentConfigMigrationItemType"
12141+
}
12142+
},
12143+
"required": [
12144+
"description",
12145+
"itemType"
12146+
],
12147+
"type": "object"
12148+
},
12149+
"ExternalAgentConfigMigrationItemType": {
12150+
"enum": [
12151+
"AGENTS_MD",
12152+
"CONFIG",
12153+
"SKILLS",
12154+
"MCP_SERVER_CONFIG"
12155+
],
12156+
"type": "string"
12157+
},
1202112158
"FeedbackUploadParams": {
1202212159
"$schema": "http://json-schema.org/draft-07/schema#",
1202312160
"properties": {
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"properties": {
4+
"cwds": {
5+
"description": "Zero or more working directories to include for repo-scoped detection.",
6+
"items": {
7+
"type": "string"
8+
},
9+
"type": [
10+
"array",
11+
"null"
12+
]
13+
},
14+
"includeHome": {
15+
"description": "If true, include detection under the user's home (~/.claude, ~/.codex, etc.).",
16+
"type": "boolean"
17+
}
18+
},
19+
"title": "ExternalAgentConfigDetectParams",
20+
"type": "object"
21+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"definitions": {
4+
"ExternalAgentConfigMigrationItem": {
5+
"properties": {
6+
"cwd": {
7+
"description": "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",
8+
"type": [
9+
"string",
10+
"null"
11+
]
12+
},
13+
"description": {
14+
"type": "string"
15+
},
16+
"itemType": {
17+
"$ref": "#/definitions/ExternalAgentConfigMigrationItemType"
18+
}
19+
},
20+
"required": [
21+
"description",
22+
"itemType"
23+
],
24+
"type": "object"
25+
},
26+
"ExternalAgentConfigMigrationItemType": {
27+
"enum": [
28+
"AGENTS_MD",
29+
"CONFIG",
30+
"SKILLS",
31+
"MCP_SERVER_CONFIG"
32+
],
33+
"type": "string"
34+
}
35+
},
36+
"properties": {
37+
"items": {
38+
"items": {
39+
"$ref": "#/definitions/ExternalAgentConfigMigrationItem"
40+
},
41+
"type": "array"
42+
}
43+
},
44+
"required": [
45+
"items"
46+
],
47+
"title": "ExternalAgentConfigDetectResponse",
48+
"type": "object"
49+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"definitions": {
4+
"ExternalAgentConfigMigrationItem": {
5+
"properties": {
6+
"cwd": {
7+
"description": "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",
8+
"type": [
9+
"string",
10+
"null"
11+
]
12+
},
13+
"description": {
14+
"type": "string"
15+
},
16+
"itemType": {
17+
"$ref": "#/definitions/ExternalAgentConfigMigrationItemType"
18+
}
19+
},
20+
"required": [
21+
"description",
22+
"itemType"
23+
],
24+
"type": "object"
25+
},
26+
"ExternalAgentConfigMigrationItemType": {
27+
"enum": [
28+
"AGENTS_MD",
29+
"CONFIG",
30+
"SKILLS",
31+
"MCP_SERVER_CONFIG"
32+
],
33+
"type": "string"
34+
}
35+
},
36+
"properties": {
37+
"migrationItems": {
38+
"items": {
39+
"$ref": "#/definitions/ExternalAgentConfigMigrationItem"
40+
},
41+
"type": "array"
42+
}
43+
},
44+
"required": [
45+
"migrationItems"
46+
],
47+
"title": "ExternalAgentConfigImportParams",
48+
"type": "object"
49+
}

0 commit comments

Comments
 (0)