feat(agentic): add AgentPhase RFC alias
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
88f4baed77
commit
ec5fdb3c67
2 changed files with 16 additions and 0 deletions
|
|
@ -29,3 +29,16 @@ func TestAlias_AgentSession_Good(t *testing.T) {
|
|||
t.Fatalf("expected AgentSession alias to behave like Session")
|
||||
}
|
||||
}
|
||||
|
||||
func TestAlias_AgentPhase_Good(t *testing.T) {
|
||||
var phase AgentPhase
|
||||
phase.Number = 1
|
||||
phase.Name = "Setup"
|
||||
|
||||
if phase.Number != 1 {
|
||||
t.Fatalf("expected AgentPhase alias to behave like Phase")
|
||||
}
|
||||
if phase.Name != "Setup" {
|
||||
t.Fatalf("expected AgentPhase alias to behave like Phase")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,6 +38,9 @@ type PhaseOutput struct {
|
|||
Phase Phase `json:"phase"`
|
||||
}
|
||||
|
||||
// AgentPhase is the RFC-named alias for Phase.
|
||||
type AgentPhase = Phase
|
||||
|
||||
// result := c.Action("phase.get").Run(ctx, core.NewOptions(core.Option{Key: "plan_slug", Value: "my-plan-abc123"}))
|
||||
func (s *PrepSubsystem) handlePhaseGet(ctx context.Context, options core.Options) core.Result {
|
||||
_, output, err := s.phaseGet(ctx, nil, PhaseGetInput{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue