chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-12 22:11:13 +00:00
parent 65368f609d
commit baef5cd43b
3 changed files with 20 additions and 3 deletions

View File

@@ -60,7 +60,10 @@ function mergeConfigConcatArrays(target: Info, source: Info): Info {
// Each layer keeps the raw shape the user wrote on disk; consumers should use // Each layer keeps the raw shape the user wrote on disk; consumers should use
// ConfigPermission.toLayers to normalise. // ConfigPermission.toLayers to normalise.
if (source.permission) { if (source.permission) {
merged.permission = [...ConfigPermission.toLayers(target.permission), ...ConfigPermission.toLayers(source.permission)] merged.permission = [
...ConfigPermission.toLayers(target.permission),
...ConfigPermission.toLayers(source.permission),
]
} }
return merged return merged
} }

View File

@@ -1263,7 +1263,10 @@ export type Config = {
} }
instructions?: Array<string> instructions?: Array<string>
layout?: LayoutConfig layout?: LayoutConfig
permission?: PermissionConfig /**
* Permission configuration. Accepts a single object (per-tool action map) or an array of layered configs; arrays are merged in order so later layers override earlier ones.
*/
permission?: PermissionConfig | Array<PermissionConfig>
tools?: { tools?: {
[key: string]: boolean [key: string]: boolean
} }

View File

@@ -12407,7 +12407,18 @@
"$ref": "#/components/schemas/LayoutConfig" "$ref": "#/components/schemas/LayoutConfig"
}, },
"permission": { "permission": {
"$ref": "#/components/schemas/PermissionConfig" "anyOf": [
{
"$ref": "#/components/schemas/PermissionConfig"
},
{
"type": "array",
"items": {
"$ref": "#/components/schemas/PermissionConfig"
}
}
],
"description": "Permission configuration. Accepts a single object (per-tool action map) or an array of layered configs; arrays are merged in order so later layers override earlier ones."
}, },
"tools": { "tools": {
"type": "object", "type": "object",