tui: add development scripts for better debugging workflow
This commit is contained in:
parent
97977f6ad4
commit
a76570b5dd
2 changed files with 5 additions and 4 deletions
|
|
@ -26,6 +26,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "7.28.4",
|
"@babel/core": "7.28.4",
|
||||||
"@octokit/webhooks-types": "7.6.1",
|
"@octokit/webhooks-types": "7.6.1",
|
||||||
|
"@opencode-ai/script": "workspace:*",
|
||||||
"@parcel/watcher-darwin-arm64": "2.5.1",
|
"@parcel/watcher-darwin-arm64": "2.5.1",
|
||||||
"@parcel/watcher-darwin-x64": "2.5.1",
|
"@parcel/watcher-darwin-x64": "2.5.1",
|
||||||
"@parcel/watcher-linux-arm64-glibc": "2.5.1",
|
"@parcel/watcher-linux-arm64-glibc": "2.5.1",
|
||||||
|
|
@ -39,12 +40,11 @@
|
||||||
"@types/bun": "catalog:",
|
"@types/bun": "catalog:",
|
||||||
"@types/turndown": "5.0.5",
|
"@types/turndown": "5.0.5",
|
||||||
"@types/yargs": "17.0.33",
|
"@types/yargs": "17.0.33",
|
||||||
"typescript": "catalog:",
|
|
||||||
"@typescript/native-preview": "catalog:",
|
"@typescript/native-preview": "catalog:",
|
||||||
|
"typescript": "catalog:",
|
||||||
"vscode-languageserver-types": "3.17.5",
|
"vscode-languageserver-types": "3.17.5",
|
||||||
"why-is-node-running": "3.2.2",
|
"why-is-node-running": "3.2.2",
|
||||||
"zod-to-json-schema": "3.24.5",
|
"zod-to-json-schema": "3.24.5"
|
||||||
"@opencode-ai/script": "workspace:*"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "1.11.1",
|
"@actions/core": "1.11.1",
|
||||||
|
|
|
||||||
|
|
@ -480,7 +480,7 @@ export namespace Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert legacy tools config to permissions
|
// Convert legacy tools config to permissions
|
||||||
const permission: Permission = { ...agent.permission }
|
const permission: Permission = {}
|
||||||
for (const [tool, enabled] of Object.entries(agent.tools ?? {})) {
|
for (const [tool, enabled] of Object.entries(agent.tools ?? {})) {
|
||||||
const action = enabled ? "allow" : "deny"
|
const action = enabled ? "allow" : "deny"
|
||||||
// write, edit, patch, multiedit all map to edit permission
|
// write, edit, patch, multiedit all map to edit permission
|
||||||
|
|
@ -490,6 +490,7 @@ export namespace Config {
|
||||||
permission[tool] = action
|
permission[tool] = action
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Object.assign(permission, agent.permission)
|
||||||
|
|
||||||
// Convert legacy maxSteps to steps
|
// Convert legacy maxSteps to steps
|
||||||
const steps = agent.steps ?? agent.maxSteps
|
const steps = agent.steps ?? agent.maxSteps
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue