diff --git a/pkg/agentic/commands_plan.go b/pkg/agentic/commands_plan.go index 9adcb33..0be0ae8 100644 --- a/pkg/agentic/commands_plan.go +++ b/pkg/agentic/commands_plan.go @@ -9,6 +9,7 @@ import ( func (s *PrepSubsystem) registerPlanCommands() { c := s.Core() c.Command("plan", core.Command{Description: "Manage implementation plans", Action: s.cmdPlan}) + c.Command("agentic:plan", core.Command{Description: "Manage implementation plans", Action: s.cmdPlan}) c.Command("plan/create", core.Command{Description: "Create an implementation plan or create one from a template", Action: s.cmdPlanCreate}) c.Command("plan/from-issue", core.Command{Description: "Create an implementation plan from a tracked issue", Action: s.cmdPlanFromIssue}) c.Command("plan/list", core.Command{Description: "List implementation plans", Action: s.cmdPlanList}) diff --git a/pkg/agentic/commands_plan_test.go b/pkg/agentic/commands_plan_test.go index d9d8a73..37fba67 100644 --- a/pkg/agentic/commands_plan_test.go +++ b/pkg/agentic/commands_plan_test.go @@ -125,3 +125,13 @@ func TestCommandsPlan_HandlePlanCheck_Good_CompletePlan(t *testing.T) { assert.True(t, output.Complete) assert.Equal(t, plan.Slug, output.Plan.Slug) } + +func TestCommandsPlan_RegisterPlanCommands_Good_SpecAliasRegistered(t *testing.T) { + c := core.New(core.WithOption("name", "test")) + s := &PrepSubsystem{ServiceRuntime: core.NewServiceRuntime(c, AgentOptions{})} + + s.registerPlanCommands() + + assert.Contains(t, c.Commands(), "agentic:plan") + assert.Contains(t, c.Commands(), "plan") +} diff --git a/pkg/agentic/prep_test.go b/pkg/agentic/prep_test.go index 0025df2..002ae12 100644 --- a/pkg/agentic/prep_test.go +++ b/pkg/agentic/prep_test.go @@ -620,6 +620,7 @@ func TestPrep_OnStartup_Good_RegistersGenerateCommand(t *testing.T) { require.True(t, s.OnStartup(context.Background()).OK) assert.Contains(t, c.Commands(), "generate") assert.Contains(t, c.Commands(), "complete") + assert.Contains(t, c.Commands(), "agentic:plan") assert.Contains(t, c.Commands(), "prep-workspace") assert.Contains(t, c.Commands(), "brain/ingest") assert.Contains(t, c.Commands(), "brain/seed-memory")