Add explicit command approval purpose

This commit is contained in:
Chris Bookholt
2026-07-02 20:36:58 -07:00
parent 9091ab403d
commit 90b2b3c717
41 changed files with 608 additions and 130 deletions
@@ -342,6 +342,14 @@
}
]
},
"CommandExecutionApprovalPurpose": {
"enum": [
"initial",
"execve",
"sandboxRetry"
],
"type": "string"
},
"CommandExecutionRequestApprovalParams": {
"properties": {
"approvalId": {
@@ -351,6 +359,17 @@
"null"
]
},
"approvalPurpose": {
"anyOf": [
{
"$ref": "#/definitions/CommandExecutionApprovalPurpose"
},
{
"type": "null"
}
],
"description": "Semantic purpose of this approval request. Compatibility events may omit it."
},
"command": {
"description": "The command to be executed.",
"type": [