feat: add lint tool

This commit is contained in:
2025-01-31 10:43:28 +01:00
parent 0ff77954db
commit 35bd0a7278
6 changed files with 120 additions and 18 deletions

View File

@@ -51,7 +51,9 @@ function M.load()
enable_chunking = false,
enable_step_by_step = true,
-- Removed enable_debug_commands
-- If auto_lint is true, we'll run a quick linter after editing or replacing files.
auto_lint = false,
tool_auto_accept = {
readFile = false,
editFile = false,
@@ -107,7 +109,11 @@ function M.load()
config.enable_step_by_step = result.enable_step_by_step
end
-- Load tool_auto_accept if present
-- New: load auto_lint if present
if type(result.auto_lint) == "boolean" then
config.auto_lint = result.auto_lint
end
if type(result.tool_auto_accept) == "table" then
for k, v in pairs(result.tool_auto_accept) do
if config.tool_auto_accept[k] ~= nil and type(v) == "boolean" then