mirror of
https://github.com/JuliusBrussee/caveman.git
synced 2026-08-11 13:21:09 +02:00
Real install harness — writes hooks, merges settings.json, asserts on-disk state. Catches regressions a dry-run can't see (missing hooks, malformed settings, broken statusline). Five cases: - Fresh install populates hooks dir + wires SessionStart/UserPromptSubmit - Idempotent install does not duplicate hook entries - Uninstall strips caveman hooks, preserves user-authored ones - Install tolerates JSONC settings.json (#249 regression guard) - Lib-level addCommandHook idempotency (always runs, no claude CLI) Tests requiring `claude` on PATH skip cleanly with a clear reason. Uninstall test strips claude/gemini from PATH so the user's real plugin/extension state is never touched. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>