app-server: expose thread permission profiles

This commit is contained in:
Michael Bolin
2026-04-21 23:00:44 -07:00
parent 0fef35dc3a
commit e0369a052c
18 changed files with 1343 additions and 15 deletions
@@ -7651,6 +7651,64 @@
}
]
},
"PermissionProfile": {
"properties": {
"fileSystem": {
"anyOf": [
{
"$ref": "#/definitions/PermissionProfileFileSystemPermissions"
},
{
"type": "null"
}
]
},
"network": {
"anyOf": [
{
"$ref": "#/definitions/PermissionProfileNetworkPermissions"
},
{
"type": "null"
}
]
}
},
"type": "object"
},
"PermissionProfileFileSystemPermissions": {
"properties": {
"entries": {
"items": {
"$ref": "#/definitions/FileSystemSandboxEntry"
},
"type": "array"
},
"globScanMaxDepth": {
"format": "uint",
"minimum": 1.0,
"type": [
"integer",
"null"
]
}
},
"required": [
"entries"
],
"type": "object"
},
"PermissionProfileNetworkPermissions": {
"properties": {
"enabled": {
"type": [
"boolean",
"null"
]
}
},
"type": "object"
},
"Personality": {
"enum": [
"none",
@@ -11954,6 +12012,18 @@
"modelProvider": {
"type": "string"
},
"permissionProfile": {
"allOf": [
{
"$ref": "#/definitions/PermissionProfile"
}
],
"default": {
"fileSystem": null,
"network": null
},
"description": "Canonical active permissions view for this thread."
},
"reasoningEffort": {
"anyOf": [
{
@@ -11965,7 +12035,12 @@
]
},
"sandbox": {
"$ref": "#/definitions/SandboxPolicy"
"allOf": [
{
"$ref": "#/definitions/SandboxPolicy"
}
],
"description": "Legacy sandbox policy retained for compatibility. New clients should use `permissionProfile` as the canonical active permissions view."
},
"serviceTier": {
"anyOf": [
@@ -13344,6 +13419,18 @@
"modelProvider": {
"type": "string"
},
"permissionProfile": {
"allOf": [
{
"$ref": "#/definitions/PermissionProfile"
}
],
"default": {
"fileSystem": null,
"network": null
},
"description": "Canonical active permissions view for this thread."
},
"reasoningEffort": {
"anyOf": [
{
@@ -13355,7 +13442,12 @@
]
},
"sandbox": {
"$ref": "#/definitions/SandboxPolicy"
"allOf": [
{
"$ref": "#/definitions/SandboxPolicy"
}
],
"description": "Legacy sandbox policy retained for compatibility. New clients should use `permissionProfile` as the canonical active permissions view."
},
"serviceTier": {
"anyOf": [
@@ -13643,6 +13735,18 @@
"modelProvider": {
"type": "string"
},
"permissionProfile": {
"allOf": [
{
"$ref": "#/definitions/PermissionProfile"
}
],
"default": {
"fileSystem": null,
"network": null
},
"description": "Canonical active permissions view for this thread."
},
"reasoningEffort": {
"anyOf": [
{
@@ -13654,7 +13758,12 @@
]
},
"sandbox": {
"$ref": "#/definitions/SandboxPolicy"
"allOf": [
{
"$ref": "#/definitions/SandboxPolicy"
}
],
"description": "Legacy sandbox policy retained for compatibility. New clients should use `permissionProfile` as the canonical active permissions view."
},
"serviceTier": {
"anyOf": [