Skip to content

Commit baef5cd

Browse files
chore: generate
1 parent 65368f6 commit baef5cd

3 files changed

Lines changed: 20 additions & 3 deletions

File tree

‎packages/opencode/src/config/config.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ function mergeConfigConcatArrays(target: Info, source: Info): Info {
6060
// Each layer keeps the raw shape the user wrote on disk; consumers should use
6161
// ConfigPermission.toLayers to normalise.
6262
if (source.permission) {
63-
merged.permission = [...ConfigPermission.toLayers(target.permission), ...ConfigPermission.toLayers(source.permission)]
63+
merged.permission = [
64+
...ConfigPermission.toLayers(target.permission),
65+
...ConfigPermission.toLayers(source.permission),
66+
]
6467
}
6568
return merged
6669
}

‎packages/sdk/js/src/v2/gen/types.gen.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,10 @@ export type Config = {
12631263
}
12641264
instructions?: Array<string>
12651265
layout?: LayoutConfig
1266-
permission?: PermissionConfig
1266+
/**
1267+
* 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.
1268+
*/
1269+
permission?: PermissionConfig | Array<PermissionConfig>
12671270
tools?: {
12681271
[key: string]: boolean
12691272
}

‎packages/sdk/openapi.json‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12407,7 +12407,18 @@
1240712407
"$ref": "#/components/schemas/LayoutConfig"
1240812408
},
1240912409
"permission": {
12410-
"$ref": "#/components/schemas/PermissionConfig"
12410+
"anyOf": [
12411+
{
12412+
"$ref": "#/components/schemas/PermissionConfig"
12413+
},
12414+
{
12415+
"type": "array",
12416+
"items": {
12417+
"$ref": "#/components/schemas/PermissionConfig"
12418+
}
12419+
}
12420+
],
12421+
"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."
1241112422
},
1241212423
"tools": {
1241312424
"type": "object",

0 commit comments

Comments
 (0)