chore: generate
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user