feat(agentic): add task command alias

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Virgil 2026-04-01 19:23:08 +00:00
parent be770992a1
commit aa7800781d
2 changed files with 10 additions and 0 deletions

View file

@ -9,6 +9,7 @@ import (
func (s *PrepSubsystem) registerTaskCommands() {
c := s.Core()
c.Command("task", core.Command{Description: "Manage plan tasks", Action: s.cmdTask})
c.Command("agentic:task", core.Command{Description: "Manage plan tasks", Action: s.cmdTask})
c.Command("task/create", core.Command{Description: "Create a task in a plan phase", Action: s.cmdTaskCreate})
c.Command("task/update", core.Command{Description: "Update a plan task status or notes", Action: s.cmdTaskUpdate})
c.Command("task/toggle", core.Command{Description: "Toggle a plan task between pending and completed", Action: s.cmdTaskToggle})

View file

@ -47,6 +47,15 @@ func TestCommands_TaskCommand_Good_Update(t *testing.T) {
assert.Equal(t, 128, output.Task.Line)
}
func TestCommands_TaskCommand_Good_SpecAliasRegistered(t *testing.T) {
c := core.New(core.WithOption("name", "test"))
s := &PrepSubsystem{ServiceRuntime: core.NewServiceRuntime(c, AgentOptions{})}
s.registerTaskCommands()
assert.Contains(t, c.Commands(), "agentic:task")
}
func TestCommands_TaskCommand_Good_Create(t *testing.T) {
dir := t.TempDir()
t.Setenv("CORE_WORKSPACE", dir)