Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FailureNotifier ¶
type FailureNotifier interface {
NotifyFromReport(ctx context.Context, logFile string, promptPath string)
}
FailureNotifier is the subset of failurehandler.Handler used by Resumer.
type PromptManager ¶
PromptManager is the subset of prompt.Manager used by Resumer.
type Resumer ¶
Resumer reattaches to and drives executing prompts to completion. Used once at daemon startup before the event loop.
func NewResumer ¶
func NewResumer( promptManager PromptManager, exec executor.Executor, workflowExecutor WorkflowExecutor, completionReportValidator completionreport.Validator, failureNotifier FailureNotifier, queueDir string, completedDir string, logDir string, projectName string, maxPromptDuration time.Duration, ) Resumer
NewResumer creates a Resumer that reattaches to executing prompts on daemon startup.
type WorkflowExecutor ¶
type WorkflowExecutor interface {
ReconstructState(ctx context.Context, baseName string, pf *prompt.PromptFile) (bool, error)
Complete(
gitCtx context.Context,
ctx context.Context,
pf *prompt.PromptFile,
title, promptPath, completedPath string,
) error
}
WorkflowExecutor is the subset of processor.WorkflowExecutor used by Resumer. Uses plain string for baseName to avoid importing pkg/processor and creating a cycle. Go interface satisfaction is structural: wrap processor.WorkflowExecutor in an adapter at the factory boundary.
Click to show internal directories.
Click to hide internal directories.