mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-01 14:52:25 +00:00
tui: add development scripts for better debugging workflow
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user