Problem: - Gas Town sets GT_TOWN_ROOT environment variable - Beads searches for formulas using GT_ROOT environment variable - This naming inconsistency prevents beads from finding town-level formulas - Result: `bd mol seed --patrol` fails in rigs, causing false doctor warnings Solution: Export both GT_TOWN_ROOT and GT_ROOT from `gt rig detect` command: - Modified stdout output to export both variables (lines 66, 70) - Updated cache storage format (lines 134, 136, 138) - Updated unset statement for both variables (line 110) - Updated command documentation (lines 33, 37) Both variables point to the same town root path. This maintains backward compatibility with Gas Town (GT_TOWN_ROOT) while enabling beads formula search (GT_ROOT). Testing: - `gt rig detect .` now outputs both GT_TOWN_ROOT and GT_ROOT - `bd mol seed --patrol` works correctly when GT_ROOT is set - Formula search paths work as expected: town/.beads/formulas/ accessible Related: - Complements bd mol seed --patrol implementation (beads PR #1149) - Complements patrol formula doctor check fix (gastown PR #715) Co-authored-by: Roland Tritsch <roland@ailtir.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
3.7 KiB
3.7 KiB