Fix permission request hook precedence and retry context

This commit is contained in:
Abhinav Vedmala
2026-04-12 13:17:13 -07:00
parent 99458d2929
commit f6517fa6a2
6 changed files with 236 additions and 6 deletions

View File

@@ -23,6 +23,30 @@
},
"type": "object"
},
"NetworkApprovalContext": {
"properties": {
"host": {
"type": "string"
},
"protocol": {
"$ref": "#/definitions/NetworkApprovalProtocol"
}
},
"required": [
"host",
"protocol"
],
"type": "object"
},
"NetworkApprovalProtocol": {
"enum": [
"http",
"https",
"socks5_tcp",
"socks5_udp"
],
"type": "string"
},
"NetworkPermissions": {
"properties": {
"enabled": {
@@ -54,14 +78,28 @@
"additional_permissions": {
"$ref": "#/definitions/PermissionProfile"
},
"approval_attempt": {
"enum": [
"initial",
"retry"
],
"type": "string"
},
"justification": {
"type": "string"
},
"network_approval_context": {
"$ref": "#/definitions/NetworkApprovalContext"
},
"retry_reason": {
"type": "string"
},
"sandbox_permissions": {
"$ref": "#/definitions/SandboxPermissions"
}
},
"required": [
"approval_attempt",
"sandbox_permissions"
],
"type": "object"