ECC/docs
suusuu0927 b6bce947f1 fix(hooks): add Windows PowerShell 5.1 compatibility to install_hook_wrapper.ps1
`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.
2026-04-22 06:55:29 +09:00
..
business fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
examples feat: add product capability planning lane 2026-04-05 16:58:02 -07:00
fixes fix(hooks): add Windows PowerShell 5.1 compatibility to install_hook_wrapper.ps1 2026-04-22 06:55:29 +09:00
ja-JP fix: publish npm releases and clarify install identifiers 2026-04-14 20:42:28 -07:00
ko-KR fix: unblock urgent install and gateguard regressions 2026-04-14 19:23:07 -07:00
pt-BR fix: publish npm releases and clarify install identifiers 2026-04-14 20:42:28 -07:00
releases chore: ship v1.10.0 release surface refresh 2026-04-05 13:20:18 -07:00
tr fix: unblock urgent install and gateguard regressions 2026-04-14 19:23:07 -07:00
zh-CN fix: publish npm releases and clarify install identifiers 2026-04-14 20:42:28 -07:00
zh-TW fix: unblock urgent install and gateguard regressions 2026-04-14 19:23:07 -07:00
ANTIGRAVITY-GUIDE.md docs: add Antigravity setup and usage guide (#552) 2026-03-20 00:21:37 -07:00
ARCHITECTURE-IMPROVEMENTS.md feat: architecture improvements — test discovery, hooks schema, catalog, command map, coverage, cross-harness docs 2026-03-10 19:36:57 -07:00
capability-surface-selection.md docs: add capability surface selection guide 2026-04-06 14:21:28 -07:00
COMMAND-AGENT-MAP.md feat(agents): add typescript-reviewer agent (#647) 2026-03-19 20:49:23 -07:00
continuous-learning-v2-spec.md feat: deliver v1.8.0 harness reliability and parity updates 2026-03-04 14:48:06 -08:00
ECC-2.0-REFERENCE-ARCHITECTURE.md docs: add ECC 2.0 reference architecture from competitor research 2026-03-22 15:50:32 -07:00
ECC-2.0-SESSION-ADAPTER-DISCOVERY.md feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00
HERMES-OPENCLAW-MIGRATION.md feat: add ecc2 legacy plugin migration import 2026-04-10 11:53:17 -07:00
HERMES-SETUP.md feat: add ecc2 legacy plugin migration import 2026-04-10 11:53:17 -07:00
hook-bug-workarounds.md docs: add canonical hook bug workaround guide 2026-04-06 14:12:21 -07:00
MANUAL-ADAPTATION-GUIDE.md docs: add manual adaptation guide for non-native harnesses 2026-04-05 14:39:55 -07:00
MEGA-PLAN-REPO-PROMPTS-2026-03-12.md feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00
PHASE1-ISSUE-BUNDLE-2026-03-12.md feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00
PR-399-REVIEW-2026-03-12.md feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00
PR-QUEUE-TRIAGE-2026-03-13.md feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00
SELECTIVE-INSTALL-ARCHITECTURE.md chore: ship v1.10.0 release surface refresh 2026-04-05 13:20:18 -07:00
SELECTIVE-INSTALL-DESIGN.md feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00
SESSION-ADAPTER-CONTRACT.md feat(session): add worker health alongside state in ecc.session.v1 (#751) 2026-03-22 15:39:51 -07:00
skill-adaptation-policy.md docs: add skill adaptation policy 2026-04-06 14:30:23 -07:00
SKILL-DEVELOPMENT-GUIDE.md refactor: move project guidelines example into docs 2026-04-05 15:03:59 -07:00
SKILL-PLACEMENT-POLICY.md feat: define skill placement and provenance policy (#748) 2026-03-22 15:39:48 -07:00
token-optimization.md docs: add Claude Code troubleshooting workarounds 2026-03-31 15:15:09 -07:00
TROUBLESHOOTING.md docs: add canonical hook bug workaround guide 2026-04-06 14:12:21 -07:00