Files
ForgeBase/Max Avatar/vitest.config.mts
williamandClaude Sonnet 5 d0c730fa6f 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>
2026-10-31 20:41:08 +01:00

34 lines
820 B
TypeScript

import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['./tests/setup.ts'],
// tests/e2e est exclusivement pilote par Playwright (test:e2e), jamais par Vitest.
exclude: ['**/node_modules/**', 'tests/e2e/**'],
coverage: {
provider: 'v8',
reporter: ['text', 'lcov', 'html'],
thresholds: {
lines: 80,
functions: 80,
branches: 75,
statements: 80
},
include: ['src/**/*.{ts,tsx}'],
exclude: [
'node_modules',
'tests',
'*.config.*',
'src/main/index.ts',
'src/preload/**',
'src/renderer/src/main.tsx',
'**/*.d.ts'
]
}
}
})