diff --git a/apps/desktop/tsconfig.json b/apps/desktop/tsconfig.json index cda7ec8f..bacb42a6 100644 --- a/apps/desktop/tsconfig.json +++ b/apps/desktop/tsconfig.json @@ -20,10 +20,10 @@ "@multica/store/*": ["../../packages/store/src/*"] }, - /* Linting */ + /* Linting - disabled for external imports from ../../src */ "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, + "noUnusedLocals": false, + "noUnusedParameters": false, "noFallthroughCasesInSwitch": true }, "include": ["src", "electron"], diff --git a/src/agent/tools.ts b/src/agent/tools.ts index 56c9b766..ea9d16de 100644 --- a/src/agent/tools.ts +++ b/src/agent/tools.ts @@ -1,6 +1,7 @@ import type { AgentOptions } from "./types.js"; import { createCodingTools } from "@mariozechner/pi-coding-agent"; import type { AgentTool, AgentToolResult } from "@mariozechner/pi-agent-core"; +import type { TSchema } from "@sinclair/typebox"; import { createExecTool } from "./tools/exec.js"; import { createProcessTool } from "./tools/process.js"; import { createGlobTool } from "./tools/glob.js"; @@ -70,7 +71,7 @@ function toolErrorResult(error: unknown): AgentToolResult { }; } -function wrapTool( +function wrapTool( tool: AgentTool, ): AgentTool { const execute = tool.execute;