Bug Fixes
Fix Fresh Install Bun PATH Resolution (#818)
On fresh installations, hooks would fail because Bun wasn't in PATH until terminal restart. The smart-install.js script installs Bun to ~/.bun/bin/bun, but the current shell session doesn't have it in PATH.
Fix: Introduced bun-runner.js — a Node.js wrapper that searches common Bun installation locations across all platforms:
- PATH (via
which/where) ~/.bun/bin/bun(default install location)/usr/local/bin/bun/opt/homebrew/bin/bun(macOS Homebrew)/home/linuxbrew/.linuxbrew/bin/bun(Linuxbrew)- Windows:
%LOCALAPPDATA%\bunor fallback paths
All 9 hook definitions updated to use node bun-runner.js instead of direct bun calls.
Files changed:
plugin/scripts/bun-runner.js— New 88-line Bun discovery scriptplugin/hooks/hooks.json— All hook commands now route through bun-runner