feat(agentic): add dispatch command aliases
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
7b77ef49f1
commit
131607215f
3 changed files with 12 additions and 0 deletions
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue