mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
- Use PATH-resolved `bash` as first token instead of quoted `.exe` path so Claude Code v2.1.116 argv duplication does not feed a binary to bash as its $0 (repro: exit 126 "cannot execute binary file"). - Point the command at `observe-wrapper.sh` and pass distinct `pre` / `post` positional arguments so PreToolUse and PostToolUse are registered as separate entries. - Normalize the wrapper path to forward slashes before embedding in the hook command to avoid MSYS backslash surprises. - Write UTF-8 (no BOM) with CRLF normalized to LF so downstream JSON parsers never see mixed line endings. - Preserve existing hooks (legacy `observe.sh`, third-party entries) by appending only when the canonical command string is not already registered. Re-runs are idempotent ([SKIP] both phases). - Keep the script compatible with Windows PowerShell 5.1: fall back to a manual PSCustomObject → Hashtable conversion when `ConvertFrom-Json -AsHashtable` is unavailable, and materialize hook arrays as `System.Collections.ArrayList` so single-element arrays survive PS 5.1 `ConvertTo-Json` serialization. Companion to PR #1524 (settings.local.json shape fix) and PR #1540 (install_hook_wrapper.ps1 argv-dup fix). |
||
|---|---|---|
| .. | ||
| business | ||
| examples | ||
| fixes | ||
| ja-JP | ||
| ko-KR | ||
| pt-BR | ||
| releases | ||
| tr | ||
| zh-CN | ||
| zh-TW | ||
| ANTIGRAVITY-GUIDE.md | ||
| ARCHITECTURE-IMPROVEMENTS.md | ||
| capability-surface-selection.md | ||
| COMMAND-AGENT-MAP.md | ||
| continuous-learning-v2-spec.md | ||
| ECC-2.0-REFERENCE-ARCHITECTURE.md | ||
| ECC-2.0-SESSION-ADAPTER-DISCOVERY.md | ||
| HERMES-OPENCLAW-MIGRATION.md | ||
| HERMES-SETUP.md | ||
| hook-bug-workarounds.md | ||
| MANUAL-ADAPTATION-GUIDE.md | ||
| MEGA-PLAN-REPO-PROMPTS-2026-03-12.md | ||
| PHASE1-ISSUE-BUNDLE-2026-03-12.md | ||
| PR-399-REVIEW-2026-03-12.md | ||
| PR-QUEUE-TRIAGE-2026-03-13.md | ||
| SELECTIVE-INSTALL-ARCHITECTURE.md | ||
| SELECTIVE-INSTALL-DESIGN.md | ||
| SESSION-ADAPTER-CONTRACT.md | ||
| skill-adaptation-policy.md | ||
| SKILL-DEVELOPMENT-GUIDE.md | ||
| SKILL-PLACEMENT-POLICY.md | ||
| token-optimization.md | ||
| TROUBLESHOOTING.md | ||