Skip to content

Commit 435018b

Browse files
committed
fix(protocol): refresh stale tests and schema fixtures
Update the protocol tests for the current RejectConfig and built_in_model_providers APIs, then regenerate the vendored app-server schema fixtures so pre-release passes cleanly.
1 parent e51ef3d commit 435018b

30 files changed

Lines changed: 1125 additions & 7 deletions

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

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,19 @@
8787
"mcp_elicitations": {
8888
"type": "boolean"
8989
},
90+
"request_permissions": {
91+
"default": false,
92+
"type": "boolean"
93+
},
9094
"rules": {
9195
"type": "boolean"
9296
},
9397
"sandbox_approval": {
9498
"type": "boolean"
99+
},
100+
"skill_approval": {
101+
"default": false,
102+
"type": "boolean"
95103
}
96104
},
97105
"required": [
@@ -1462,13 +1470,23 @@
14621470
"description": "Reject MCP elicitation prompts.",
14631471
"type": "boolean"
14641472
},
1473+
"request_permissions": {
1474+
"default": false,
1475+
"description": "Reject approval prompts related to built-in permission requests.",
1476+
"type": "boolean"
1477+
},
14651478
"rules": {
14661479
"description": "Reject prompts triggered by execpolicy `prompt` rules.",
14671480
"type": "boolean"
14681481
},
14691482
"sandbox_approval": {
14701483
"description": "Reject approval prompts related to sandbox escalation.",
14711484
"type": "boolean"
1485+
},
1486+
"skill_approval": {
1487+
"default": false,
1488+
"description": "Reject approval prompts triggered by skill script execution.",
1489+
"type": "boolean"
14721490
}
14731491
},
14741492
"required": [
@@ -1653,6 +1671,12 @@
16531671
"name": {
16541672
"type": "string"
16551673
},
1674+
"namespace": {
1675+
"type": [
1676+
"string",
1677+
"null"
1678+
]
1679+
},
16561680
"type": {
16571681
"enum": [
16581682
"function_call"
@@ -1670,6 +1694,47 @@
16701694
"title": "FunctionCallResponseItem",
16711695
"type": "object"
16721696
},
1697+
{
1698+
"properties": {
1699+
"arguments": true,
1700+
"call_id": {
1701+
"type": [
1702+
"string",
1703+
"null"
1704+
]
1705+
},
1706+
"execution": {
1707+
"type": "string"
1708+
},
1709+
"id": {
1710+
"type": [
1711+
"string",
1712+
"null"
1713+
],
1714+
"writeOnly": true
1715+
},
1716+
"status": {
1717+
"type": [
1718+
"string",
1719+
"null"
1720+
]
1721+
},
1722+
"type": {
1723+
"enum": [
1724+
"tool_search_call"
1725+
],
1726+
"title": "ToolSearchCallResponseItemType",
1727+
"type": "string"
1728+
}
1729+
},
1730+
"required": [
1731+
"arguments",
1732+
"execution",
1733+
"type"
1734+
],
1735+
"title": "ToolSearchCallResponseItem",
1736+
"type": "object"
1737+
},
16731738
{
16741739
"properties": {
16751740
"call_id": {
@@ -1759,6 +1824,41 @@
17591824
"title": "CustomToolCallOutputResponseItem",
17601825
"type": "object"
17611826
},
1827+
{
1828+
"properties": {
1829+
"call_id": {
1830+
"type": [
1831+
"string",
1832+
"null"
1833+
]
1834+
},
1835+
"execution": {
1836+
"type": "string"
1837+
},
1838+
"status": {
1839+
"type": "string"
1840+
},
1841+
"tools": {
1842+
"items": true,
1843+
"type": "array"
1844+
},
1845+
"type": {
1846+
"enum": [
1847+
"tool_search_output"
1848+
],
1849+
"title": "ToolSearchOutputResponseItemType",
1850+
"type": "string"
1851+
}
1852+
},
1853+
"required": [
1854+
"execution",
1855+
"status",
1856+
"tools",
1857+
"type"
1858+
],
1859+
"title": "ToolSearchOutputResponseItem",
1860+
"type": "object"
1861+
},
17621862
{
17631863
"properties": {
17641864
"action": {

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

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3800,13 +3800,23 @@
38003800
"description": "Reject MCP elicitation prompts.",
38013801
"type": "boolean"
38023802
},
3803+
"request_permissions": {
3804+
"default": false,
3805+
"description": "Reject approval prompts related to built-in permission requests.",
3806+
"type": "boolean"
3807+
},
38033808
"rules": {
38043809
"description": "Reject prompts triggered by execpolicy `prompt` rules.",
38053810
"type": "boolean"
38063811
},
38073812
"sandbox_approval": {
38083813
"description": "Reject approval prompts related to sandbox escalation.",
38093814
"type": "boolean"
3815+
},
3816+
"skill_approval": {
3817+
"default": false,
3818+
"description": "Reject approval prompts triggered by skill script execution.",
3819+
"type": "boolean"
38103820
}
38113821
},
38123822
"required": [
@@ -4136,6 +4146,12 @@
41364146
"name": {
41374147
"type": "string"
41384148
},
4149+
"namespace": {
4150+
"type": [
4151+
"string",
4152+
"null"
4153+
]
4154+
},
41394155
"type": {
41404156
"enum": [
41414157
"function_call"
@@ -4153,6 +4169,47 @@
41534169
"title": "FunctionCallResponseItem",
41544170
"type": "object"
41554171
},
4172+
{
4173+
"properties": {
4174+
"arguments": true,
4175+
"call_id": {
4176+
"type": [
4177+
"string",
4178+
"null"
4179+
]
4180+
},
4181+
"execution": {
4182+
"type": "string"
4183+
},
4184+
"id": {
4185+
"type": [
4186+
"string",
4187+
"null"
4188+
],
4189+
"writeOnly": true
4190+
},
4191+
"status": {
4192+
"type": [
4193+
"string",
4194+
"null"
4195+
]
4196+
},
4197+
"type": {
4198+
"enum": [
4199+
"tool_search_call"
4200+
],
4201+
"title": "ToolSearchCallResponseItemType",
4202+
"type": "string"
4203+
}
4204+
},
4205+
"required": [
4206+
"arguments",
4207+
"execution",
4208+
"type"
4209+
],
4210+
"title": "ToolSearchCallResponseItem",
4211+
"type": "object"
4212+
},
41564213
{
41574214
"properties": {
41584215
"call_id": {
@@ -4242,6 +4299,41 @@
42424299
"title": "CustomToolCallOutputResponseItem",
42434300
"type": "object"
42444301
},
4302+
{
4303+
"properties": {
4304+
"call_id": {
4305+
"type": [
4306+
"string",
4307+
"null"
4308+
]
4309+
},
4310+
"execution": {
4311+
"type": "string"
4312+
},
4313+
"status": {
4314+
"type": "string"
4315+
},
4316+
"tools": {
4317+
"items": true,
4318+
"type": "array"
4319+
},
4320+
"type": {
4321+
"enum": [
4322+
"tool_search_output"
4323+
],
4324+
"title": "ToolSearchOutputResponseItemType",
4325+
"type": "string"
4326+
}
4327+
},
4328+
"required": [
4329+
"execution",
4330+
"status",
4331+
"tools",
4332+
"type"
4333+
],
4334+
"title": "ToolSearchOutputResponseItem",
4335+
"type": "object"
4336+
},
42454337
{
42464338
"properties": {
42474339
"action": {

0 commit comments

Comments
 (0)