From aa7800781d6ead7ca29e82f1d7d7e8e20248a5f4 Mon Sep 17 00:00:00 2001 From: Virgil Date: Wed, 1 Apr 2026 19:23:08 +0000 Subject: [PATCH] feat(agentic): add task command alias Co-Authored-By: Virgil --- pkg/agentic/commands_task.go | 1 + pkg/agentic/commands_task_test.go | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/pkg/agentic/commands_task.go b/pkg/agentic/commands_task.go index 245a2ea..3c6ce0c 100644 --- a/pkg/agentic/commands_task.go +++ b/pkg/agentic/commands_task.go @@ -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}) diff --git a/pkg/agentic/commands_task_test.go b/pkg/agentic/commands_task_test.go index 9a4c5ec..4a47c70 100644 --- a/pkg/agentic/commands_task_test.go +++ b/pkg/agentic/commands_task_test.go @@ -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)