fix: ignore hidden directories when enumerating polecats (#258)

* fix(sling): route bd mol commands to target rig directory

* Fix daemon polecat enumeration to ignore hidden dirs

* Ignore hidden dirs when discovering rig polecats

* Fix CI: enable beads custom types during install

---------

Co-authored-by: joshuavial <git@codewithjv.com>
This commit is contained in:
Joshua Vial
2026-01-08 17:48:09 +13:00
committed by GitHub
parent f9e788ccfb
commit a9ed342be6
8 changed files with 284 additions and 17 deletions

View File

@@ -879,6 +879,18 @@ func TestRuntimeConfigBuildCommandWithPrompt(t *testing.T) {
}
func TestBuildAgentStartupCommand(t *testing.T) {
// BuildAgentStartupCommand auto-detects town root from cwd when rigPath is empty.
// Use a temp directory to ensure we exercise the fallback default config path.
origWD, err := os.Getwd()
if err != nil {
t.Fatal(err)
}
tmpWD := t.TempDir()
if err := os.Chdir(tmpWD); err != nil {
t.Fatal(err)
}
t.Cleanup(func() { _ = os.Chdir(origWD) })
// Test without rig config (uses defaults)
cmd := BuildAgentStartupCommand("witness", "gastown/witness", "", "")