fix: auto-wire field-aware merge driver on install (prepare hook) + pm-cli ^2026.7.21

Merged
UN
4mo ago
+17-6

Follow-up to #5 (which committed the .gitattributes merge-driver fence). The fence is inert without the per-clone merge.<name>.driver git config, so a fresh clone/CI falls back to Git text merge. Adds a guarded prepare script (if command -v pm >/dev/null 2>&1; then pm merge install; fi) that auto-wires the config on npm install/npm ci when pm is present and skips cleanly when it isn't (e.g. --omit=dev) — no || true, so real errors surface. Adds a merge:install script + README note, and bumps @unbrained/pm-cli to ^2026.7.21. Verified: with config unset, npm ci restores merge.pm-item-toon.driver. Companion epic: pm-cli-website-juz0.


Summary by cubic

Auto-installs the pm-cli field-aware Git merge driver on install so .agents/pm/ merges cleanly on fresh clones and CI. Adds a guarded prepare script and a merge:install script; updates README and bumps @unbrained/pm-cli to ^2026.7.21.

  • Bug Fixes

    • Run pm merge install in prepare when pm is available; no-op otherwise.
    • Add merge:install script and README guidance.
  • Dependencies

    • Update @unbrained/pm-cli to ^2026.7.21 and sync lockfile.