Skip to content

Commit 1c2456c

Browse files
jamesjames
authored andcommitted
Backport upstream protocol and environment parity
1 parent ecaf339 commit 1c2456c

34 files changed

Lines changed: 368 additions & 6 deletions

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,12 @@
12481248
"status": {
12491249
"type": "string"
12501250
},
1251+
"transparent_background": {
1252+
"type": [
1253+
"boolean",
1254+
"null"
1255+
]
1256+
},
12511257
"type": {
12521258
"enum": [
12531259
"image_generation_end"
@@ -5469,6 +5475,12 @@
54695475
"status": {
54705476
"type": "string"
54715477
},
5478+
"transparent_background": {
5479+
"type": [
5480+
"boolean",
5481+
"null"
5482+
]
5483+
},
54725484
"type": {
54735485
"enum": [
54745486
"ImageGeneration"
@@ -6515,6 +6527,12 @@
65156527
"status": {
65166528
"type": "string"
65176529
},
6530+
"transparent_background": {
6531+
"type": [
6532+
"boolean",
6533+
"null"
6534+
]
6535+
},
65186536
"type": {
65196537
"enum": [
65206538
"image_generation_end"

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,6 +1925,12 @@
19251925
"status": {
19261926
"type": "string"
19271927
},
1928+
"transparent_background": {
1929+
"type": [
1930+
"boolean",
1931+
"null"
1932+
]
1933+
},
19281934
"type": {
19291935
"enum": [
19301936
"image_generation_end"
@@ -7045,6 +7051,12 @@
70457051
"status": {
70467052
"type": "string"
70477053
},
7054+
"transparentBackground": {
7055+
"type": [
7056+
"boolean",
7057+
"null"
7058+
]
7059+
},
70487060
"type": {
70497061
"enum": [
70507062
"imageGeneration"
@@ -7631,6 +7643,12 @@
76317643
"status": {
76327644
"type": "string"
76337645
},
7646+
"transparent_background": {
7647+
"type": [
7648+
"boolean",
7649+
"null"
7650+
]
7651+
},
76347652
"type": {
76357653
"enum": [
76367654
"ImageGeneration"

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

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3438,6 +3438,12 @@
34383438
"status": {
34393439
"type": "string"
34403440
},
3441+
"transparent_background": {
3442+
"type": [
3443+
"boolean",
3444+
"null"
3445+
]
3446+
},
34413447
"type": {
34423448
"enum": [
34433449
"image_generation_end"
@@ -10178,6 +10184,12 @@
1017810184
"status": {
1017910185
"type": "string"
1018010186
},
10187+
"transparent_background": {
10188+
"type": [
10189+
"boolean",
10190+
"null"
10191+
]
10192+
},
1018110193
"type": {
1018210194
"enum": [
1018310195
"ImageGeneration"
@@ -11008,6 +11020,29 @@
1100811020
}
1100911021
]
1101011022
},
11023+
"AutoReviewRequirements": {
11024+
"properties": {
11025+
"ignoreRules": {
11026+
"items": {
11027+
"type": "string"
11028+
},
11029+
"type": [
11030+
"array",
11031+
"null"
11032+
]
11033+
},
11034+
"requiredOnModels": {
11035+
"items": {
11036+
"type": "string"
11037+
},
11038+
"type": [
11039+
"array",
11040+
"null"
11041+
]
11042+
}
11043+
},
11044+
"type": "object"
11045+
},
1101111046
"ByteRange": {
1101211047
"properties": {
1101311048
"end": {
@@ -12032,6 +12067,16 @@
1203212067
"null"
1203312068
]
1203412069
},
12070+
"autoReview": {
12071+
"anyOf": [
12072+
{
12073+
"$ref": "#/definitions/v2/AutoReviewRequirements"
12074+
},
12075+
{
12076+
"type": "null"
12077+
}
12078+
]
12079+
},
1203512080
"enforceResidency": {
1203612081
"anyOf": [
1203712082
{
@@ -13568,6 +13613,17 @@
1356813613
"model": {
1356913614
"type": "string"
1357013615
},
13616+
"multiAgentVersion": {
13617+
"anyOf": [
13618+
{
13619+
"$ref": "#/definitions/v2/MultiAgentVersion"
13620+
},
13621+
{
13622+
"type": "null"
13623+
}
13624+
],
13625+
"description": "Multi-agent runtime declared by this model, when available."
13626+
},
1357113627
"supportedReasoningEfforts": {
1357213628
"items": {
1357313629
"$ref": "#/definitions/v2/ReasoningEffortOption"
@@ -13700,6 +13756,15 @@
1370013756
],
1370113757
"type": "object"
1370213758
},
13759+
"MultiAgentVersion": {
13760+
"description": "Multi-agent runtime supported by a model.",
13761+
"enum": [
13762+
"disabled",
13763+
"v1",
13764+
"v2"
13765+
],
13766+
"type": "string"
13767+
},
1370313768
"NetworkAccess": {
1370413769
"enum": [
1370513770
"restricted",
@@ -16468,6 +16533,12 @@
1646816533
"status": {
1646916534
"type": "string"
1647016535
},
16536+
"transparentBackground": {
16537+
"type": [
16538+
"boolean",
16539+
"null"
16540+
]
16541+
},
1647116542
"type": {
1647216543
"enum": [
1647316544
"imageGeneration"

code-rs/app-server-protocol/schema/json/v1/ForkConversationResponse.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,12 @@
12481248
"status": {
12491249
"type": "string"
12501250
},
1251+
"transparent_background": {
1252+
"type": [
1253+
"boolean",
1254+
"null"
1255+
]
1256+
},
12511257
"type": {
12521258
"enum": [
12531259
"image_generation_end"
@@ -5469,6 +5475,12 @@
54695475
"status": {
54705476
"type": "string"
54715477
},
5478+
"transparent_background": {
5479+
"type": [
5480+
"boolean",
5481+
"null"
5482+
]
5483+
},
54725484
"type": {
54735485
"enum": [
54745486
"ImageGeneration"

code-rs/app-server-protocol/schema/json/v1/ResumeConversationResponse.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,12 @@
12481248
"status": {
12491249
"type": "string"
12501250
},
1251+
"transparent_background": {
1252+
"type": [
1253+
"boolean",
1254+
"null"
1255+
]
1256+
},
12511257
"type": {
12521258
"enum": [
12531259
"image_generation_end"
@@ -5469,6 +5475,12 @@
54695475
"status": {
54705476
"type": "string"
54715477
},
5478+
"transparent_background": {
5479+
"type": [
5480+
"boolean",
5481+
"null"
5482+
]
5483+
},
54725484
"type": {
54735485
"enum": [
54745486
"ImageGeneration"

code-rs/app-server-protocol/schema/json/v1/SessionConfiguredNotification.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,12 @@
12481248
"status": {
12491249
"type": "string"
12501250
},
1251+
"transparent_background": {
1252+
"type": [
1253+
"boolean",
1254+
"null"
1255+
]
1256+
},
12511257
"type": {
12521258
"enum": [
12531259
"image_generation_end"
@@ -5469,6 +5475,12 @@
54695475
"status": {
54705476
"type": "string"
54715477
},
5478+
"transparent_background": {
5479+
"type": [
5480+
"boolean",
5481+
"null"
5482+
]
5483+
},
54725484
"type": {
54735485
"enum": [
54745486
"ImageGeneration"

code-rs/app-server-protocol/schema/json/v2/ConfigRequirementsReadResponse.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,29 @@
5151
}
5252
]
5353
},
54+
"AutoReviewRequirements": {
55+
"properties": {
56+
"ignoreRules": {
57+
"items": {
58+
"type": "string"
59+
},
60+
"type": [
61+
"array",
62+
"null"
63+
]
64+
},
65+
"requiredOnModels": {
66+
"items": {
67+
"type": "string"
68+
},
69+
"type": [
70+
"array",
71+
"null"
72+
]
73+
}
74+
},
75+
"type": "object"
76+
},
5477
"ConfigRequirements": {
5578
"properties": {
5679
"allowedApprovalPolicies": {
@@ -80,6 +103,16 @@
80103
"null"
81104
]
82105
},
106+
"autoReview": {
107+
"anyOf": [
108+
{
109+
"$ref": "#/definitions/AutoReviewRequirements"
110+
},
111+
{
112+
"type": "null"
113+
}
114+
]
115+
},
83116
"enforceResidency": {
84117
"anyOf": [
85118
{

code-rs/app-server-protocol/schema/json/v2/ItemCompletedNotification.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,12 @@
779779
"status": {
780780
"type": "string"
781781
},
782+
"transparentBackground": {
783+
"type": [
784+
"boolean",
785+
"null"
786+
]
787+
},
782788
"type": {
783789
"enum": [
784790
"imageGeneration"

code-rs/app-server-protocol/schema/json/v2/ItemStartedNotification.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,12 @@
779779
"status": {
780780
"type": "string"
781781
},
782+
"transparentBackground": {
783+
"type": [
784+
"boolean",
785+
"null"
786+
]
787+
},
782788
"type": {
783789
"enum": [
784790
"imageGeneration"

code-rs/app-server-protocol/schema/json/v2/ModelListResponse.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@
6363
"model": {
6464
"type": "string"
6565
},
66+
"multiAgentVersion": {
67+
"anyOf": [
68+
{
69+
"$ref": "#/definitions/MultiAgentVersion"
70+
},
71+
{
72+
"type": "null"
73+
}
74+
],
75+
"description": "Multi-agent runtime declared by this model, when available."
76+
},
6677
"supportedReasoningEfforts": {
6778
"items": {
6879
"$ref": "#/definitions/ReasoningEffortOption"
@@ -142,6 +153,15 @@
142153
],
143154
"type": "object"
144155
},
156+
"MultiAgentVersion": {
157+
"description": "Multi-agent runtime supported by a model.",
158+
"enum": [
159+
"disabled",
160+
"v1",
161+
"v2"
162+
],
163+
"type": "string"
164+
},
145165
"ReasoningEffort": {
146166
"description": "A non-empty reasoning effort value advertised by the model.",
147167
"minLength": 1,

0 commit comments

Comments
 (0)