revert: Keep bd wisp/pour until v0.38.0 - API not released yet
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -117,7 +117,7 @@ func autoSpawnPatrol(cfg PatrolConfig) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create the patrol wisp
|
// Create the patrol wisp
|
||||||
cmdSpawn := exec.Command("bd", "--no-daemon", "mol", "wisp", "create", protoID, "--actor", cfg.RoleName)
|
cmdSpawn := exec.Command("bd", "--no-daemon", "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
|
||||||
|
|||||||
@@ -567,7 +567,7 @@ func runSlingFormula(args []string) error {
|
|||||||
|
|
||||||
// Step 2: Create wisp instance (ephemeral)
|
// Step 2: Create wisp instance (ephemeral)
|
||||||
fmt.Printf(" Creating wisp...\n")
|
fmt.Printf(" Creating wisp...\n")
|
||||||
wispArgs := []string{"mol", "wisp", formulaName}
|
wispArgs := []string{"wisp", formulaName}
|
||||||
for _, v := range slingVars {
|
for _, v := range slingVars {
|
||||||
wispArgs = append(wispArgs, "--var", v)
|
wispArgs = append(wispArgs, "--var", v)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,15 +124,15 @@ func (c *WispGCCheck) countAbandonedWisps(rigPath string) int {
|
|||||||
return count
|
return count
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fix runs bd mol wisp gc in each rig with abandoned wisps.
|
// Fix runs bd 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 mol wisp gc
|
// Run bd --no-daemon wisp gc
|
||||||
cmd := exec.Command("bd", "--no-daemon", "mol", "wisp", "gc")
|
cmd := exec.Command("bd", "--no-daemon", "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))
|
||||||
|
|||||||
Reference in New Issue
Block a user