diff --git a/pkg/agentic/commands.go b/pkg/agentic/commands.go index f6f11c3..4e05883 100644 --- a/pkg/agentic/commands.go +++ b/pkg/agentic/commands.go @@ -27,8 +27,11 @@ func (s *PrepSubsystem) registerCommands(ctx context.Context) { c.Command("dispatch", core.Command{Description: "Dispatch queued agents", Action: s.cmdDispatch}) c.Command("agentic:dispatch", core.Command{Description: "Dispatch queued agents", Action: s.cmdDispatch}) c.Command("dispatch/start", core.Command{Description: "Start the dispatch queue runner", Action: s.cmdDispatchStart}) + c.Command("agentic:dispatch/start", core.Command{Description: "Start the dispatch queue runner", Action: s.cmdDispatchStart}) c.Command("dispatch/shutdown", core.Command{Description: "Freeze the dispatch queue gracefully", Action: s.cmdDispatchShutdown}) + c.Command("agentic:dispatch/shutdown", core.Command{Description: "Freeze the dispatch queue gracefully", Action: s.cmdDispatchShutdown}) c.Command("dispatch/shutdown-now", core.Command{Description: "Hard stop the dispatch queue and kill running agents", Action: s.cmdDispatchShutdownNow}) + c.Command("agentic:dispatch/shutdown-now", core.Command{Description: "Hard stop the dispatch queue and kill running agents", Action: s.cmdDispatchShutdownNow}) c.Command("prep", core.Command{Description: "Prepare a workspace: clone repo, build prompt", Action: s.cmdPrep}) c.Command("prep-workspace", core.Command{Description: "Prepare a workspace: clone repo, build prompt", Action: s.cmdPrep}) c.Command("agentic:prep-workspace", core.Command{Description: "Prepare a workspace: clone repo, build prompt", Action: s.cmdPrep}) diff --git a/pkg/agentic/commands_test.go b/pkg/agentic/commands_test.go index c79bb6f..6ffbc65 100644 --- a/pkg/agentic/commands_test.go +++ b/pkg/agentic/commands_test.go @@ -1449,8 +1449,11 @@ func TestCommands_RegisterCommands_Good_AllRegistered(t *testing.T) { assert.Contains(t, cmds, "dispatch") assert.Contains(t, cmds, "agentic:dispatch") assert.Contains(t, cmds, "dispatch/start") + assert.Contains(t, cmds, "agentic:dispatch/start") assert.Contains(t, cmds, "dispatch/shutdown") + assert.Contains(t, cmds, "agentic:dispatch/shutdown") assert.Contains(t, cmds, "dispatch/shutdown-now") + assert.Contains(t, cmds, "agentic:dispatch/shutdown-now") assert.Contains(t, cmds, "prep") assert.Contains(t, cmds, "agentic:prep-workspace") assert.Contains(t, cmds, "resume") diff --git a/pkg/agentic/prep_test.go b/pkg/agentic/prep_test.go index 680490c..65684d5 100644 --- a/pkg/agentic/prep_test.go +++ b/pkg/agentic/prep_test.go @@ -700,6 +700,12 @@ func TestPrep_OnStartup_Good_RegistersGenerateCommand(t *testing.T) { assert.Contains(t, c.Commands(), "watch") assert.Contains(t, c.Commands(), "workspace/watch") assert.Contains(t, c.Commands(), "agentic:watch") + assert.Contains(t, c.Commands(), "dispatch/start") + assert.Contains(t, c.Commands(), "agentic:dispatch/start") + assert.Contains(t, c.Commands(), "dispatch/shutdown") + assert.Contains(t, c.Commands(), "agentic:dispatch/shutdown") + assert.Contains(t, c.Commands(), "dispatch/shutdown-now") + assert.Contains(t, c.Commands(), "agentic:dispatch/shutdown-now") assert.Contains(t, c.Commands(), "brain/ingest") assert.Contains(t, c.Commands(), "brain/seed-memory") assert.Contains(t, c.Commands(), "brain/list")