diff --git a/pi/files/agent/extensions/protected-paths.ts b/pi/files/agent/extensions/protected-paths.ts index fbc1169..b569860 100644 --- a/pi/files/agent/extensions/protected-paths.ts +++ b/pi/files/agent/extensions/protected-paths.ts @@ -8,23 +8,23 @@ import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; export default function (pi: ExtensionAPI) { - const protectedPaths = [".env", ".git/", "node_modules/"]; + const protectedPaths = [".git/", "node_modules/"]; - pi.on("tool_call", async (event, ctx) => { - if (event.toolName !== "write" && event.toolName !== "edit") { - return undefined; - } + pi.on("tool_call", async (event, ctx) => { + if (event.toolName !== "write" && event.toolName !== "edit") { + return undefined; + } - const path = event.input.path as string; - const isProtected = protectedPaths.some((p) => path.includes(p)); + const path = event.input.path as string; + const isProtected = protectedPaths.some((p) => path.includes(p)); - if (isProtected) { - if (ctx.hasUI) { - ctx.ui.notify(`Blocked write to protected path: ${path}`, "warning"); - } - return { block: true, reason: `Path "${path}" is protected` }; - } + if (isProtected) { + if (ctx.hasUI) { + ctx.ui.notify(`Blocked write to protected path: ${path}`, "warning"); + } + return { block: true, reason: `Path "${path}" is protected` }; + } - return undefined; - }); + return undefined; + }); } diff --git a/pi/files/agent/settings.json b/pi/files/agent/settings.json index 4a0c55a..1960cca 100644 --- a/pi/files/agent/settings.json +++ b/pi/files/agent/settings.json @@ -2,7 +2,7 @@ "lastChangelogVersion": "0.56.1", "defaultProvider": "openrouter", "defaultModel": "openai/gpt-5.3-codex", - "defaultThinkingLevel": "medium", + "defaultThinkingLevel": "high", "theme": "matugen", "lsp": { "hookMode": "edit_write"