The ready command was incorrectly using RigMayorPath() which resolves to <rig>/mayor/rig, causing BEADS_DIR to be set to a non-existent path like /home/baldvin/gt/jbrs/mayor/rig/.beads instead of the actual database at /home/baldvin/gt/jbrs/.beads. This caused \"bd ready --json\" to fail with \"no beads database found\" when called by gt ready, even though the database existed at the rig root. Fix by using r.BeadsPath() which returns the rig root path. The beads redirect system at <rig>/.beads/redirect already handles routing to mayor/rig/.beads when appropriate. Also updated getFormulaNames() and getWispIDs() calls to use the correct path consistently. Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
11 KiB
11 KiB