mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-14 16:42:38 +00:00
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
|
||||
// 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",
|
||||
|
||||
Reference in New Issue
Block a user