Commit Graph
7 Commits
Author SHA1 Message Date
williamandClaude Sonnet 5 8c761c81a9 fix: restore docs file swept up by lint-staged during cleanup commit
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-31 20:41:34 +01:00
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
williamandClaude Sonnet 5 0cc277049e fix: restore docs file swept up by lint-staged during cleanup commit
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-31 20:33:17 +01:00
williamandClaude Sonnet 5 cf92418bad chore(cleanup): remove web search skill
Remove search_web and uninstall the now-unused cheerio dependency it
was the only consumer of. The skill's shared test file also covered
document extraction (extractText), so it is removed here; extractText
itself is removed in the following document drag-and-drop cleanup.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-31 20:32:48 +01:00
williamandClaude Sonnet 5 a55323a3fa fix: restore docs file swept up by lint-staged during cleanup commit
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-31 20:29:48 +01:00
williamandClaude Sonnet 5 7c480e1ce4 chore(cleanup): remove system-check skills
Remove check_system_memory, check_storage, check_battery_and_cpu and
check_internet_connection along with their windows/ implementation and
the empty mac/ placeholder. These general-purpose system-check skills
have no place in Max's exclusive freelance-coach pipeline, which now
runs server-side in Max API.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-31 20:27:28 +01:00
williamandClaude Sonnet 5 e9690a49f9 feat: add CI/CD, code quality, testing and security hardening
CI / quality (push) Failing after 6m22s
Implements Max_Code_Quality_CICD_Production.md: TypeScript strict mode,
ESLint flat config with type-checking and security plugin, Prettier,
Husky + lint-staged, Vitest with 80%+ coverage (473 tests), Playwright
e2e, Electron security hardening (contextIsolation, CSP, IPC validation),
electron-builder + electron-updater, Dockerfile, Gitea Actions CI/release
workflows, and SonarQube docker-compose setup. Also fixes two real bugs
found while writing tests: unawaited clipboard promises and a mermaid
container ref timing issue in CoachDrawingView.

Fixes lint-staged on Windows/Node 24 by invoking eslint/prettier via
`node <bin>.js` instead of their .cmd shims, which Node's child_process
now refuses to spawn without shell:true.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-29 09:05:21 +01:00