run

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PreflightOK        = preflightpkg.OK
	PreflightContinued = preflightpkg.Continued
	PreflightAborted   = preflightpkg.Aborted
	PreflightSkipped   = preflightpkg.Skipped
	PreflightForced    = preflightpkg.Forced
)

Variables

This section is empty.

Functions

func Execute

func Execute(
	ctx context.Context,
	jobs []model.Job,
	runArtifacts model.RunArtifacts,
	runJournal *journal.Journal,
	bus *events.Bus[events.Event],
	cfg *model.RuntimeConfig,
	manager model.RuntimeManager,
) error

func ExecuteExec

func ExecuteExec(ctx context.Context, cfg *model.RuntimeConfig, scope model.RunScope) error

func IsExecErrorReported

func IsExecErrorReported(err error) bool

func SwapNewAgentClientForTest

func SwapNewAgentClientForTest(
	fn func(context.Context, agent.ClientConfig) (agent.Client, error),
) func()

SwapNewAgentClientForTest lets higher-level package tests replace ACP client construction without importing lower-level internal runtime packages.

func WriteExecJSONFailure

func WriteExecJSONFailure(dst io.Writer, runID string, err error) error

Types

type PersistedExecRun

type PersistedExecRun = execpkg.PersistedExecRun

func LoadPersistedExecRun

func LoadPersistedExecRun(workspaceRoot, runID string) (PersistedExecRun, error)

type PreflightConfig

type PreflightConfig = preflightpkg.Config

type PreflightDecision

type PreflightDecision = preflightpkg.Decision

func PreflightCheck

func PreflightCheck(
	ctx context.Context,
	tasksDir string,
	registry *tasks.TypeRegistry,
	isInteractive func() bool,
	force bool,
) (PreflightDecision, error)

func PreflightCheckConfig

func PreflightCheckConfig(ctx context.Context, cfg PreflightConfig) (PreflightDecision, error)

Directories

Path Synopsis
internal
worktree
Package worktree captures a deterministic fingerprint of a workspace's uncommitted state so callers can detect whether an arbitrary operation (an agent session, a hook, a task job) actually modified any files.
Package worktree captures a deterministic fingerprint of a workspace's uncommitted state so callers can detect whether an arbitrary operation (an agent session, a hook, a task job) actually modified any files.

Jump to

Keyboard shortcuts

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