chore: generate
This commit is contained in:
parent
65368f609d
commit
baef5cd43b
3 changed files with 20 additions and 3 deletions
|
|
@ -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
|
||||
// ConfigPermission.toLayers to normalise.
|
||||
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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1263,7 +1263,10 @@ export type Config = {
|
|||
}
|
||||
instructions?: Array<string>
|
||||
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?: {
|
||||
[key: string]: boolean
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12407,7 +12407,18 @@
|
|||
"$ref": "#/components/schemas/LayoutConfig"
|
||||
},
|
||||
"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": {
|
||||
"type": "object",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue