promptresumer

package
v0.198.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: BSD-2-Clause Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

type PromptManager interface {
	Load(ctx context.Context, path string) (*prompt.PromptFile, error)
}

PromptManager is the subset of prompt.Manager used by Resumer.

type Resumer

type Resumer interface {
	ResumeAll(ctx context.Context) error
}

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 project.Name,
	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 prompt.BaseName,
		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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL