feat(agentic): add agentic:plan alias

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Virgil 2026-04-01 19:33:24 +00:00
parent 6e5f4c5d37
commit 315326bdd6
3 changed files with 12 additions and 0 deletions

View file

@ -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})

View file

@ -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")
}

View file

@ -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")