app

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitSuccess   = 0
	ExitUsage     = 2
	ExitConfig    = 10
	ExitPreflight = 20
	ExitAuth      = 21
	ExitWorkspace = 30
	ExitClone     = 40
	ExitCodex     = 50
	ExitGit       = 60
	ExitPR        = 70
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Harness

type Harness struct {
	Runner      execx.Runner
	Workspace   workspace.Manager
	Now         func() time.Time
	Logf        logFn
	TargetDirOK func(string) bool
	Sleep       func(context.Context, time.Duration) error
	// AgentStageTimeout bounds each agent execution attempt when positive;
	// zero or negative disables the timeout.
	AgentStageTimeout time.Duration
}

Harness executes the clone -> codex -> PR workflow.

func New

func New(runner execx.Runner) Harness

New returns a harness configured with defaults.

func (Harness) Run

func (h Harness) Run(ctx context.Context, cfg config.Config) Result

Run executes a full automation attempt.

type RepoResult

type RepoResult struct {
	RepoURL string
	RepoDir string
	Branch  string
	PRURL   string
	Changed bool
}

RepoResult captures outcome details for one repository in a run.

type Result

type Result struct {
	ExitCode     int
	Err          error
	WorkspaceDir string
	Branch       string
	PRURL        string
	NoChanges    bool
	RepoResults  []RepoResult
}

Result captures run output and status.

Jump to

Keyboard shortcuts

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