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
|
||||||
|
|
|
||||||
|
|
@ -10950,17 +10950,6 @@
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/PermissionActionConfig"
|
"$ref": "#/components/schemas/PermissionActionConfig"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"allOf": [
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"propertyNames": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"additionalProperties": {
|
|
||||||
"$ref": "#/components/schemas/PermissionRuleConfig"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
@ -11018,8 +11007,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"AgentConfig": {
|
"AgentConfig": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|
@ -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