Documentation
¶
Index ¶
- Constants
- func ExitCode(err error) int
- func RuntimeSnapshot(provider string, p config.Provider) task.RuntimeSnapshot
- type CapabilityContext
- type Error
- type Result
- type Service
- func (s *Service) AnswerImplement(ctx context.Context, id, answer string) (Result, error)
- func (s *Service) AnswerPlan(ctx context.Context, id, answer string) (Result, error)
- func (s *Service) Graph(id string) (WorkGraph, error)
- func (s *Service) Implement(ctx context.Context, id, rawScope string) (Result, error)
- func (s *Service) List() ([]task.State, error)
- func (s *Service) Retry(ctx context.Context, id string) (Result, error)
- func (s *Service) ReviewCode(ctx context.Context, id string) (Result, error)
- func (s *Service) ReviewIntegration(ctx context.Context, parentID string) (Result, error)
- func (s *Service) ReviewPlan(ctx context.Context, id string) (Result, error)
- func (s *Service) StartPlan(ctx context.Context, text, id string) (Result, error)
- func (s *Service) StartWork(parentID, unitID string) (Result, error)
- func (s *Service) Status(id string) (task.State, error)
- type WorkGraph
- type WorkNode
Constants ¶
View Source
const ( ExitOK = 0 ExitUsage = 2 ExitNeedsInput = 3 ExitReviewNeeded = 4 ExitAction = 5 ExitInFlight = 6 ExitExhausted = 7 )
View Source
const MaxRounds = 5
Variables ¶
This section is empty.
Functions ¶
func RuntimeSnapshot ¶
func RuntimeSnapshot(provider string, p config.Provider) task.RuntimeSnapshot
RuntimeSnapshot converts validated provider configuration to durable, non-secret routing metadata. CLI discovery and workflow creation share this conversion so fresh, resume, and model-list calls use the same route.
Types ¶
type CapabilityContext ¶
type Error ¶
type Service ¶
type Service struct {
RepoRoot string
Store *task.Store
Config config.Config
Adapters map[string]runner.Adapter
// ModelCachePath is explicit so library users and tests never inherit the
// process owner's cache accidentally. An empty path disables caching.
ModelCachePath string
Capabilities func(provider string, role runner.Role, taskText string) CapabilityContext
Diagnostic func(string)
Observe func(string) ([]task.FileEntry, error)
Capture func([]task.FileEntry, string, string) ([]task.FileEntry, error)
WritePlan func(string, string) error
Now func() time.Time
Token func() string
ProcessID func() int
ProcessAlive func(int) bool
}
func (*Service) AnswerImplement ¶
func (*Service) AnswerPlan ¶
func (*Service) Graph ¶
Graph returns live scheduling state for a planner-produced DAG. It never starts workers; the host orchestrator remains responsible for concurrency.
func (*Service) ReviewCode ¶
func (*Service) ReviewIntegration ¶
ReviewIntegration performs the one-time deep review after every DAG node has passed its task-local review. Findings are handed to one fresh integration implementer session, while subsequent fix/review rounds resume the same integration implementer and reviewer sessions.
func (*Service) ReviewPlan ¶
Click to show internal directories.
Click to hide internal directories.