mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 22:10:23 +00:00
chore: generate
This commit is contained in:
parent
1a734adb4d
commit
27353df0cc
3 changed files with 61 additions and 72 deletions
|
|
@ -15,7 +15,12 @@ import type { EventSource } from "./context/sdk"
|
||||||
import { win32DisableProcessedInput, win32InstallCtrlCGuard } from "./win32"
|
import { win32DisableProcessedInput, win32InstallCtrlCGuard } from "./win32"
|
||||||
import { writeHeapSnapshot } from "v8"
|
import { writeHeapSnapshot } from "v8"
|
||||||
import { TuiConfig } from "./config/tui"
|
import { TuiConfig } from "./config/tui"
|
||||||
import { OPENCODE_PROCESS_ROLE, OPENCODE_RUN_ID, ensureRunID, sanitizedProcessEnv } from "@opencode-ai/core/util/opencode-process"
|
import {
|
||||||
|
OPENCODE_PROCESS_ROLE,
|
||||||
|
OPENCODE_RUN_ID,
|
||||||
|
ensureRunID,
|
||||||
|
sanitizedProcessEnv,
|
||||||
|
} from "@opencode-ai/core/util/opencode-process"
|
||||||
import { validateSession } from "./validate-session"
|
import { validateSession } from "./validate-session"
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
|
|
||||||
|
|
@ -1206,9 +1206,7 @@ export type PermissionRuleConfig = PermissionActionConfig | PermissionObjectConf
|
||||||
|
|
||||||
export type PermissionConfig =
|
export type PermissionConfig =
|
||||||
| PermissionActionConfig
|
| PermissionActionConfig
|
||||||
| ({
|
| {
|
||||||
[key: string]: PermissionRuleConfig
|
|
||||||
} & {
|
|
||||||
read?: PermissionRuleConfig
|
read?: PermissionRuleConfig
|
||||||
edit?: PermissionRuleConfig
|
edit?: PermissionRuleConfig
|
||||||
glob?: PermissionRuleConfig
|
glob?: PermissionRuleConfig
|
||||||
|
|
@ -1226,7 +1224,7 @@ export type PermissionConfig =
|
||||||
doom_loop?: PermissionActionConfig
|
doom_loop?: PermissionActionConfig
|
||||||
skill?: PermissionRuleConfig
|
skill?: PermissionRuleConfig
|
||||||
[key: string]: PermissionRuleConfig | PermissionActionConfig | undefined
|
[key: string]: PermissionRuleConfig | PermissionActionConfig | undefined
|
||||||
})
|
}
|
||||||
|
|
||||||
export type AgentConfig = {
|
export type AgentConfig = {
|
||||||
model?: string
|
model?: string
|
||||||
|
|
|
||||||
|
|
@ -10951,73 +10951,60 @@
|
||||||
"$ref": "#/components/schemas/PermissionActionConfig"
|
"$ref": "#/components/schemas/PermissionActionConfig"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allOf": [
|
"type": "object",
|
||||||
{
|
"properties": {
|
||||||
"type": "object",
|
"read": {
|
||||||
"propertyNames": {
|
"$ref": "#/components/schemas/PermissionRuleConfig"
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"additionalProperties": {
|
|
||||||
"$ref": "#/components/schemas/PermissionRuleConfig"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
"edit": {
|
||||||
"type": "object",
|
"$ref": "#/components/schemas/PermissionRuleConfig"
|
||||||
"properties": {
|
},
|
||||||
"read": {
|
"glob": {
|
||||||
"$ref": "#/components/schemas/PermissionRuleConfig"
|
"$ref": "#/components/schemas/PermissionRuleConfig"
|
||||||
},
|
},
|
||||||
"edit": {
|
"grep": {
|
||||||
"$ref": "#/components/schemas/PermissionRuleConfig"
|
"$ref": "#/components/schemas/PermissionRuleConfig"
|
||||||
},
|
},
|
||||||
"glob": {
|
"list": {
|
||||||
"$ref": "#/components/schemas/PermissionRuleConfig"
|
"$ref": "#/components/schemas/PermissionRuleConfig"
|
||||||
},
|
},
|
||||||
"grep": {
|
"bash": {
|
||||||
"$ref": "#/components/schemas/PermissionRuleConfig"
|
"$ref": "#/components/schemas/PermissionRuleConfig"
|
||||||
},
|
},
|
||||||
"list": {
|
"task": {
|
||||||
"$ref": "#/components/schemas/PermissionRuleConfig"
|
"$ref": "#/components/schemas/PermissionRuleConfig"
|
||||||
},
|
},
|
||||||
"bash": {
|
"external_directory": {
|
||||||
"$ref": "#/components/schemas/PermissionRuleConfig"
|
"$ref": "#/components/schemas/PermissionRuleConfig"
|
||||||
},
|
},
|
||||||
"task": {
|
"todowrite": {
|
||||||
"$ref": "#/components/schemas/PermissionRuleConfig"
|
"$ref": "#/components/schemas/PermissionActionConfig"
|
||||||
},
|
},
|
||||||
"external_directory": {
|
"question": {
|
||||||
"$ref": "#/components/schemas/PermissionRuleConfig"
|
"$ref": "#/components/schemas/PermissionActionConfig"
|
||||||
},
|
},
|
||||||
"todowrite": {
|
"webfetch": {
|
||||||
"$ref": "#/components/schemas/PermissionActionConfig"
|
"$ref": "#/components/schemas/PermissionActionConfig"
|
||||||
},
|
},
|
||||||
"question": {
|
"websearch": {
|
||||||
"$ref": "#/components/schemas/PermissionActionConfig"
|
"$ref": "#/components/schemas/PermissionActionConfig"
|
||||||
},
|
},
|
||||||
"webfetch": {
|
"codesearch": {
|
||||||
"$ref": "#/components/schemas/PermissionActionConfig"
|
"$ref": "#/components/schemas/PermissionActionConfig"
|
||||||
},
|
},
|
||||||
"websearch": {
|
"lsp": {
|
||||||
"$ref": "#/components/schemas/PermissionActionConfig"
|
"$ref": "#/components/schemas/PermissionRuleConfig"
|
||||||
},
|
},
|
||||||
"codesearch": {
|
"doom_loop": {
|
||||||
"$ref": "#/components/schemas/PermissionActionConfig"
|
"$ref": "#/components/schemas/PermissionActionConfig"
|
||||||
},
|
},
|
||||||
"lsp": {
|
"skill": {
|
||||||
"$ref": "#/components/schemas/PermissionRuleConfig"
|
"$ref": "#/components/schemas/PermissionRuleConfig"
|
||||||
},
|
|
||||||
"doom_loop": {
|
|
||||||
"$ref": "#/components/schemas/PermissionActionConfig"
|
|
||||||
},
|
|
||||||
"skill": {
|
|
||||||
"$ref": "#/components/schemas/PermissionRuleConfig"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additionalProperties": {
|
|
||||||
"$ref": "#/components/schemas/PermissionRuleConfig"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
},
|
||||||
|
"additionalProperties": {
|
||||||
|
"$ref": "#/components/schemas/PermissionRuleConfig"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -11692,8 +11679,7 @@
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["enabled"],
|
"required": ["enabled"]
|
||||||
"additionalProperties": false
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue