mirror of
https://github.com/theniceboy/.config.git
synced 2026-05-11 17:36:05 +08:00
agent tracker + tmux update
This commit is contained in:
parent
cd9c92b1c2
commit
5064629d61
68 changed files with 15041 additions and 3483 deletions
19
agent-tracker/cmd/agent/palette_debug_test.go
Normal file
19
agent-tracker/cmd/agent/palette_debug_test.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package main
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestPaletteBuildActionsIncludesDestroyForAgentRecord(t *testing.T) {
|
||||
r := &paletteRuntime{
|
||||
agentID: "memory-hack",
|
||||
mainRepoRoot: "/tmp/repo",
|
||||
currentPath: "/tmp/repo/.agents/memory-hack/repo",
|
||||
record: &agentRecord{ID: "memory-hack", RepoRoot: "/tmp/repo"},
|
||||
}
|
||||
actions := r.buildActions()
|
||||
for _, action := range actions {
|
||||
if action.Kind == paletteActionConfirmDestroy {
|
||||
return
|
||||
}
|
||||
}
|
||||
t.Fatalf("destroy action missing: %#v", actions)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue