tui: add development scripts for better debugging workflow

This commit is contained in:
Dax Raad
2026-01-04 10:38:02 -05:00
parent 97977f6ad4
commit a76570b5dd
2 changed files with 5 additions and 4 deletions

View File

@@ -480,7 +480,7 @@ export namespace Config {
}
// Convert legacy tools config to permissions
const permission: Permission = { ...agent.permission }
const permission: Permission = {}
for (const [tool, enabled] of Object.entries(agent.tools ?? {})) {
const action = enabled ? "allow" : "deny"
// write, edit, patch, multiedit all map to edit permission
@@ -490,6 +490,7 @@ export namespace Config {
permission[tool] = action
}
}
Object.assign(permission, agent.permission)
// Convert legacy maxSteps to steps
const steps = agent.steps ?? agent.maxSteps