v9.0.17

thedotmack/claude-memv9.0.17Feb 5, 2026by thedotmack

AI Summary

This release fixes a critical issue where hooks would fail on fresh Bun installations due to PATH not being updated until terminal restart. A new `bun-runner.js` script was introduced to dynamically discover Bun across all platforms, and all 9 hook definitions were updated to use this wrapper instead of direct `bun` calls.

Key Highlights

  • Fixed fresh install Bun PATH resolution issue (#818)
  • Created cross-platform bun-runner.js to discover Bun in common installation locations
  • Updated all 9 hook definitions to use `node bun-runner.js` instead of direct `bun` calls
  • Supports multiple Bun installation paths across Linux, macOS, and Windows

New Features

  • New bun-runner.js utility script that searches for Bun in PATH, ~/.bun/bin, /usr/local/bin, /opt/homebrew/bin, /home/linuxbrew/.linuxbrew/bin, and Windows-specific paths

Full Release Notes

## 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%\bun` or 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 script
- `plugin/hooks/hooks.json` — All hook commands now route through bun-runner

Fixes #818 | PR #827 by @bigphoot