Files
Garry TanandClaude Fable 5 f584246dab fix(skillpack): resolve gbrain root from module path when cwd walk fails (#1917)
findGbrainRoot only walked up from process.cwd(), so any bun global
install (markers at ~/.bun/install/global/node_modules/gbrain/) failed
with 'could not find gbrain repo root' unless the user happened to be
inside the install. When no explicit start is given and the cwd walk
misses, retry from bundle.ts's own location (import.meta.url) and from
dirname(process.argv[1]) — both resolve the bun-global layout and the
in-repo compiled binary. Explicit-start callers (tests) are unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 14:44:46 -07:00
..