Commit graph

6 commits

Author SHA1 Message Date
44a9a02a94 test: add profile-logic and installer test suite
bash tests/test_profiles.sh  (or: make test)

Covers the bug classes that surfaced during recent work, without any
external dependencies or network:

Profile logic (stub `claude` captures exported ANTHROPIC_* env):
- pro profile clears stale ANTHROPIC env and launches claude
- glm/free profiles export BASE_URL/AUTH_TOKEN/MODEL correctly
- error paths: missing OPENROUTER_API_KEY, unknown profile, bad mode
  each exit 1

Installer symlink logic (isolated temp HOME, throwaway clone):
- S1 broken/dangling symlink -> repointed via ln -sfn (was fatal before)
- S2 real directory at target -> warning, preserved (was silent)
- S3 free path -> new symlink created
- S4 existing symlink -> repointed

All tests use temp dirs for HOME and a throwaway repo clone, so the real
working tree is never touched.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-28 04:03:53 +02:00
55d9e52b43 docs: Bedienungsanleitung mit Setup, Profilen und Kosten-/Qualitätsvergleich (#2) 2026-06-28 03:49:35 +02:00
863c441ca6 fix: harden installer symlink logic and interactive sourcing (#1) 2026-06-28 03:49:13 +02:00
d49906a061 docs: finalize launcher profiles and shell installation 2026-06-28 02:45:41 +02:00
3b8aee4cbf docs: update env-based OpenRouter profile setup 2026-06-28 02:41:12 +02:00
7fd845235c Initial Claude launcher profiles 2026-06-28 01:50:13 +02:00