feat(agentic): add prompt command alias
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
7253e1240e
commit
ace8cf4462
3 changed files with 4 additions and 0 deletions
|
|
@ -74,6 +74,7 @@ func (s *PrepSubsystem) registerCommands(ctx context.Context) {
|
|||
c.Command("status", core.Command{Description: "List agent workspace statuses", Action: s.cmdStatus})
|
||||
c.Command("agentic:status", core.Command{Description: "List agent workspace statuses", Action: s.cmdStatus})
|
||||
c.Command("prompt", core.Command{Description: "Build and display an agent prompt for a repo", Action: s.cmdPrompt})
|
||||
c.Command("agentic:prompt", core.Command{Description: "Build and display an agent prompt for a repo", Action: s.cmdPrompt})
|
||||
c.Command("prompt_version", core.Command{Description: "Read the current prompt snapshot for a workspace", Action: s.cmdPromptVersion})
|
||||
c.Command("agentic:prompt_version", core.Command{Description: "Read the current prompt snapshot for a workspace", Action: s.cmdPromptVersion})
|
||||
c.Command("prompt/version", core.Command{Description: "Read the current prompt snapshot for a workspace", Action: s.cmdPromptVersion})
|
||||
|
|
|
|||
|
|
@ -1498,6 +1498,7 @@ func TestCommands_RegisterCommands_Good_AllRegistered(t *testing.T) {
|
|||
assert.Contains(t, cmds, "status")
|
||||
assert.Contains(t, cmds, "agentic:status")
|
||||
assert.Contains(t, cmds, "prompt")
|
||||
assert.Contains(t, cmds, "agentic:prompt")
|
||||
assert.Contains(t, cmds, "prompt_version")
|
||||
assert.Contains(t, cmds, "agentic:prompt_version")
|
||||
assert.Contains(t, cmds, "prompt/version")
|
||||
|
|
|
|||
|
|
@ -745,6 +745,8 @@ func TestPrep_OnStartup_Good_RegistersGenerateCommand(t *testing.T) {
|
|||
assert.Contains(t, c.Commands(), "agentic:review-queue")
|
||||
assert.Contains(t, c.Commands(), "flow/preview")
|
||||
assert.Contains(t, c.Commands(), "agentic:flow/preview")
|
||||
assert.Contains(t, c.Commands(), "prompt")
|
||||
assert.Contains(t, c.Commands(), "agentic:prompt")
|
||||
assert.Contains(t, c.Commands(), "prompt/version")
|
||||
assert.Contains(t, c.Commands(), "agentic:prompt/version")
|
||||
assert.True(t, c.Action("agentic.prompt.version").Exists())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue