feat: swarm worker spawning, mail routing improvements, beads sync

This commit is contained in:
Steve Yegge
2025-12-18 18:49:54 -08:00
parent b760a3fe22
commit dc09b0987e
9 changed files with 361 additions and 272 deletions

View File

@@ -1,6 +1,8 @@
package session
import (
"os"
"path/filepath"
"testing"
"github.com/steveyegge/gastown/internal/rig"
@@ -36,8 +38,17 @@ func TestPolecatDir(t *testing.T) {
}
func TestHasPolecat(t *testing.T) {
root := t.TempDir()
// hasPolecat checks filesystem, so create actual directories
for _, name := range []string{"Toast", "Cheedo"} {
if err := os.MkdirAll(filepath.Join(root, "polecats", name), 0755); err != nil {
t.Fatalf("mkdir: %v", err)
}
}
r := &rig.Rig{
Name: "gastown",
Path: root,
Polecats: []string{"Toast", "Cheedo"},
}
m := NewManager(tmux.NewTmux(), r)