mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
`ConvertFrom-Json -AsHashtable` is PowerShell 7+ only, and the Windows 11 reference machine used to validate this PR ships with Windows PowerShell 5.1 only (no `pwsh` on PATH). Without this follow-up, running the installer on stock Windows fails at the parse step and leaves the installation half-applied. - Fall back to a manual `PSCustomObject` -> `Hashtable` conversion when `-AsHashtable` raises, so the script parses the existing settings.local.json on both PS 5.1 and PS 7+. - Normalize both hook buckets (`PreToolUse`, `PostToolUse`) and their inner `hooks` arrays as `System.Collections.ArrayList` before serialization. PS 5.1 `ConvertTo-Json` otherwise collapses single-element arrays into bare objects, which breaks the canonical PR #1524 shape. - Create the `skills/continuous-learning/hooks` destination directory when it does not exist yet, and emit a clearer error if settings.local.json is missing entirely. - Update `INSTALL-HOOK-WRAPPER-FIX-20260422.md` to document the PS 5.1 compatibility guarantee and to cross-link PR #1542 (companion simple patcher). Verified on Windows 11 / Windows PowerShell 5.1.26100.8115 by running `powershell -NoProfile -ExecutionPolicy Bypass -File docs/fixes/install_hook_wrapper.ps1` against a sandbox `$env:USERPROFILE` and against the real settings.local.json. Both produce the canonical PR #1524 shape with LF-only output. |
||
|---|---|---|
| .. | ||
| 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 | ||