feat(agentic): add namespaced template action aliases
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
c32b4de28e
commit
f6e1e64a0c
2 changed files with 20 additions and 0 deletions
|
|
@ -231,8 +231,11 @@ func (s *PrepSubsystem) OnStartup(ctx context.Context) core.Result {
|
|||
c.Action("state.list", s.handleStateList).Description = "List shared plan state for a plan"
|
||||
c.Action("state.delete", s.handleStateDelete).Description = "Delete shared plan state by key"
|
||||
c.Action("template.list", s.handleTemplateList).Description = "List available YAML plan templates"
|
||||
c.Action("agentic.template.list", s.handleTemplateList).Description = "List available YAML plan templates"
|
||||
c.Action("template.preview", s.handleTemplatePreview).Description = "Preview a YAML plan template with variable substitution"
|
||||
c.Action("agentic.template.preview", s.handleTemplatePreview).Description = "Preview a YAML plan template with variable substitution"
|
||||
c.Action("template.create_plan", s.handleTemplateCreatePlan).Description = "Create a stored plan from a YAML template"
|
||||
c.Action("agentic.template.create_plan", s.handleTemplateCreatePlan).Description = "Create a stored plan from a YAML template"
|
||||
c.Action("issue.create", s.handleIssueRecordCreate).Description = "Create a tracked platform issue"
|
||||
c.Action("issue.get", s.handleIssueRecordGet).Description = "Read a tracked platform issue by slug"
|
||||
c.Action("issue.list", s.handleIssueRecordList).Description = "List tracked platform issues with optional filters"
|
||||
|
|
|
|||
|
|
@ -594,6 +594,23 @@ func TestPrep_OnStartup_Good_RegistersContentActions(t *testing.T) {
|
|||
assert.True(t, c.Action("content.schema.generate").Exists())
|
||||
}
|
||||
|
||||
func TestPrep_OnStartup_Good_RegistersTemplateActions(t *testing.T) {
|
||||
t.Setenv("CORE_WORKSPACE", t.TempDir())
|
||||
t.Setenv("CORE_AGENT_DISPATCH", "")
|
||||
|
||||
c := core.New(core.WithOption("name", "test"))
|
||||
s := NewPrep()
|
||||
s.ServiceRuntime = core.NewServiceRuntime(c, AgentOptions{})
|
||||
|
||||
require.True(t, s.OnStartup(context.Background()).OK)
|
||||
assert.True(t, c.Action("template.list").Exists())
|
||||
assert.True(t, c.Action("agentic.template.list").Exists())
|
||||
assert.True(t, c.Action("template.preview").Exists())
|
||||
assert.True(t, c.Action("agentic.template.preview").Exists())
|
||||
assert.True(t, c.Action("template.create_plan").Exists())
|
||||
assert.True(t, c.Action("agentic.template.create_plan").Exists())
|
||||
}
|
||||
|
||||
func TestPrep_OnStartup_Good_RegistersPlatformActionAliases(t *testing.T) {
|
||||
t.Setenv("CORE_WORKSPACE", t.TempDir())
|
||||
t.Setenv("CORE_AGENT_DISPATCH", "")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue