chore(cleanup): remove tool-calling plumbing, no skills remain
Remove the general-purpose tool/function-calling machinery from openrouter.ts (loadSkills usage, buildTools, executeTool, tool_calls request/response handling) and the recovery helpers it existed to patch (extractFakeToolCall/extractBareJsonRetry in toolCallRecovery.ts), since every skill that plumbing could call has now been deleted. Delete src/main/skills/ entirely (types.ts, argUtils.ts, index.ts), now empty. Strip the system prompt paragraphs describing tool usage. getAssistantReply() keeps the core chat loop: send the user's message to OpenRouter with DeepSeek/Qwen fallback, the malformed-response guard, degenerate-text detection and requireLoggedIn(), and return the assistant's plain-text reply. Drop the now-stale coverage exclude for the already-removed memory/store.ts. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
acdd8a08d3
commit
d0c730fa6f
@@ -26,13 +26,7 @@ export default defineConfig({
|
||||
'src/main/index.ts',
|
||||
'src/preload/**',
|
||||
'src/renderer/src/main.tsx',
|
||||
'**/*.d.ts',
|
||||
// node:sqlite (built-in Node >= 22.5) ne peut pas etre transforme par Rolldown pour le
|
||||
// calcul de couverture des fichiers non importes (environnement "client", qui ne bundle
|
||||
// pas les built-ins Node) : echoue sur Linux (CI) bien que fonctionnel sous Windows. Le
|
||||
// fichier reste neanmoins teste reellement (tests/unit/skills.memory.test.ts) ; seul son
|
||||
// pourcentage de couverture global n'est plus comptabilise.
|
||||
'src/main/memory/store.ts'
|
||||
'**/*.d.ts'
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user