feat(agentic): add session command aliases
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
43e2efe7cd
commit
bebf9f8df5
2 changed files with 6 additions and 0 deletions
|
|
@ -9,8 +9,11 @@ import (
|
|||
func (s *PrepSubsystem) registerSessionCommands() {
|
||||
c := s.Core()
|
||||
c.Command("session/handoff", core.Command{Description: "Pause a stored session with handoff context", Action: s.cmdSessionHandoff})
|
||||
c.Command("agentic:session/handoff", core.Command{Description: "Pause a stored session with handoff context", Action: s.cmdSessionHandoff})
|
||||
c.Command("session/resume", core.Command{Description: "Resume a paused or handed-off session from local cache", Action: s.cmdSessionResume})
|
||||
c.Command("agentic:session/resume", core.Command{Description: "Resume a paused or handed-off session from local cache", Action: s.cmdSessionResume})
|
||||
c.Command("session/replay", core.Command{Description: "Build replay context for a stored session", Action: s.cmdSessionReplay})
|
||||
c.Command("agentic:session/replay", core.Command{Description: "Build replay context for a stored session", Action: s.cmdSessionReplay})
|
||||
}
|
||||
|
||||
// core-agent session handoff ses-abc123 --summary="Ready for review" --next-steps="Run the verifier"
|
||||
|
|
|
|||
|
|
@ -18,8 +18,11 @@ func TestCommandsSession_RegisterSessionCommands_Good(t *testing.T) {
|
|||
s.registerSessionCommands()
|
||||
|
||||
assert.Contains(t, c.Commands(), "session/handoff")
|
||||
assert.Contains(t, c.Commands(), "agentic:session/handoff")
|
||||
assert.Contains(t, c.Commands(), "session/resume")
|
||||
assert.Contains(t, c.Commands(), "agentic:session/resume")
|
||||
assert.Contains(t, c.Commands(), "session/replay")
|
||||
assert.Contains(t, c.Commands(), "agentic:session/replay")
|
||||
}
|
||||
|
||||
func TestCommandsSession_CmdSessionHandoff_Good(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue