fix(npm-globals): patch global frog to skip git-ignored friction logs
Merged
SH
16d ago+192+192+012345678901234567890123456789-2-2-0123456789
Summary
- Global
frog1.1.0 runsgit addon published friction entries. When the friction-log directory is git-ignored, that fails and the command reportsCOMMIT_FAILEDafter the issues were already filed, so pending entries never clear. install-npm-globals.shnow appliespackage.jsonpatchedDependenciesto the global bun install: it copies each patch into~/.bun/install/global, records it in the globalpackage.json, and runsbun installthere. A failed apply prints a warning instead of being silenced.- Adds
patches/frog@1.1.0.patch, which skips ignored paths inGit.addand keeps a piped body whenfrog loggets a title. Pinsfrogto1.1.0so the patch key always matches. - No upstream release fixes this yet. 1.1.0 is the latest version.
Verification
- Repro: on a repo that ignores
**/.agents/*, unpatched globalGit.addfails withgit add -- .agents/friction-log/...and the patched build succeeds. - Scratch
BUN_INSTALLglobal:patchedDependencies+bun installapplies the patch, and the patch survives a later unrelatedbun add --global. shellspec spec/npm_globals_spec.sh: 76 examples, 0 failures.shellcheckandshfmt -dare clean.
decided: patch via the global installer's patchedDependencies rather than a fork or hand edit - bun applies it declaratively on every activation and the patch drops cleanly once upstream ships a fix
decided: pin frog to exact 1.1.0 - a patch keyed to one version must not silently stop applying on a minor bump
🤖 Generated with Claude Code
Summary by cubic
Fixes global frog 1.1.0 reporting COMMIT_FAILED after a successful publish when the friction-log directory is git-ignored, leaving pending entries stuck.
install-npm-globals.shnow copies patches into~/.bun/install/global, records them in the globalpackage.json, and runsbun installthere; a failed apply prints a warning.- Adds
patches/frog@1.1.0.patch, which skips git-ignored paths inGit.addand keeps a piped body whenfrog loggets a title. - Pins
frogto1.1.0so the patch key always matches the installed version.