Fix CLI mismatches from bd-2fs7 (wisp->ephemeral) (gt-pu1t5)
bd-2fs7 moved wisp/pour under bd mol, but gastown was not updated. This caused handoff failures - gt mail send errored with 'unknown flag: --wisp'. Changes: - router.go: --wisp -> --ephemeral for bd create - patrol_helpers.go: bd wisp create -> bd mol wisp create - wisp_check.go: bd wisp gc -> bd mol wisp gc 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
4200
.beads/issues.jsonl
4200
.beads/issues.jsonl
File diff suppressed because one or more lines are too long
@@ -117,7 +117,7 @@ func autoSpawnPatrol(cfg PatrolConfig) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create the patrol wisp
|
// Create the patrol wisp
|
||||||
cmdSpawn := exec.Command("bd", "--no-daemon", "wisp", "create", protoID, "--actor", cfg.RoleName)
|
cmdSpawn := exec.Command("bd", "--no-daemon", "mol", "wisp", "create", protoID, "--actor", cfg.RoleName)
|
||||||
cmdSpawn.Dir = cfg.BeadsDir
|
cmdSpawn.Dir = cfg.BeadsDir
|
||||||
var stdoutSpawn, stderrSpawn bytes.Buffer
|
var stdoutSpawn, stderrSpawn bytes.Buffer
|
||||||
cmdSpawn.Stdout = &stdoutSpawn
|
cmdSpawn.Stdout = &stdoutSpawn
|
||||||
|
|||||||
@@ -124,15 +124,15 @@ func (c *WispGCCheck) countAbandonedWisps(rigPath string) int {
|
|||||||
return count
|
return count
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fix runs bd wisp gc in each rig with abandoned wisps.
|
// Fix runs bd mol wisp gc in each rig with abandoned wisps.
|
||||||
func (c *WispGCCheck) Fix(ctx *CheckContext) error {
|
func (c *WispGCCheck) Fix(ctx *CheckContext) error {
|
||||||
var lastErr error
|
var lastErr error
|
||||||
|
|
||||||
for rigName := range c.abandonedRigs {
|
for rigName := range c.abandonedRigs {
|
||||||
rigPath := filepath.Join(ctx.TownRoot, rigName)
|
rigPath := filepath.Join(ctx.TownRoot, rigName)
|
||||||
|
|
||||||
// Run bd --no-daemon wisp gc
|
// Run bd --no-daemon mol wisp gc
|
||||||
cmd := exec.Command("bd", "--no-daemon", "wisp", "gc")
|
cmd := exec.Command("bd", "--no-daemon", "mol", "wisp", "gc")
|
||||||
cmd.Dir = rigPath
|
cmd.Dir = rigPath
|
||||||
if output, err := cmd.CombinedOutput(); err != nil {
|
if output, err := cmd.CombinedOutput(); err != nil {
|
||||||
lastErr = fmt.Errorf("%s: %v (%s)", rigName, err, string(output))
|
lastErr = fmt.Errorf("%s: %v (%s)", rigName, err, string(output))
|
||||||
|
|||||||
@@ -147,9 +147,9 @@ func (r *Router) Send(msg *Message) error {
|
|||||||
// Add actor for attribution (sender identity)
|
// Add actor for attribution (sender identity)
|
||||||
args = append(args, "--actor", msg.From)
|
args = append(args, "--actor", msg.From)
|
||||||
|
|
||||||
// Add --wisp flag for ephemeral messages (stored in single DB, filtered from JSONL export)
|
// Add --ephemeral flag for ephemeral messages (stored in single DB, filtered from JSONL export)
|
||||||
if r.shouldBeWisp(msg) {
|
if r.shouldBeWisp(msg) {
|
||||||
args = append(args, "--wisp")
|
args = append(args, "--ephemeral")
|
||||||
}
|
}
|
||||||
|
|
||||||
beadsDir := r.resolveBeadsDir(msg.To)
|
beadsDir := r.resolveBeadsDir(msg.To)
|
||||||
|
|||||||
Reference in New Issue
Block a user