Versions in this module Expand all Collapse all v0 v0.1.0 Nov 4, 2026 Changes in this version + func AddJob(ctx context.Context, opts Options, c clock.Clock, j Job, dry bool) (string, error) + func ApproveJob(ctx context.Context, opts Options, c clock.Clock, name string) error + func BoundedError(err error) error + func CancelRun(ctx context.Context, opts Options, c clock.Clock, id string) error + func CheckMCPWrite(opts Options) error + func DefaultMemory(opts Options) (bool, error) + func ErrorText(err error) string + func Init(ctx context.Context, opts Options) error + func LogTail(ctx context.Context, opts Options, c clock.Clock, id string, stderr bool) (string, error) + func Logs(ctx context.Context, opts Options, c clock.Clock, id string, ...) error + func Memory(ctx context.Context, opts Options, name string) (string, error) + func PauseJob(ctx context.Context, opts Options, c clock.Clock, name string, paused bool) error + func QueueMessage(opts Options) string + func RemoveJob(ctx context.Context, opts Options, c clock.Clock, name string, dry bool) error + func Schedule(ctx context.Context, opts Options, c clock.Clock, loop bool, noWait bool, ...) error + func Service(ctx context.Context, opts Options, action string, dry bool, target string) (any, error) + type Error struct + Code ExitCode + Err error + func (e *Error) Error() string + func (e *Error) Unwrap() error + type ExitCode int + const Locked + const NotInitialized + const OK + const Refused + const RunUnsuccessful + const Runtime + const Usage + func Code(err error) ExitCode + type Fire struct + At time.Time + Name string + func NextFires(ctx context.Context, opts Options, c clock.Clock, expr, zone string, count int) ([]Fire, error) + type Health struct + Claude bool + Codex bool + ConfigDir bool + ConfigPath string + DaemonPID int + DataDir bool + DataPath string + Git bool + KBInitialised bool + KBRoot string + MDKB bool + MDKBVersion string + SchemaVersion int + Service service.State + Warnings []string + func Doctor(ctx context.Context, opts Options) (Health, error) + type Job = jobs.Job + func NewJob(name string) Job + type JobDetail struct + Error string + Job Job + Next []time.Time + Runs []store.Run + State store.JobState + Status string + func CreateMCPJob(ctx context.Context, opts Options, c clock.Clock, j Job) (JobDetail, error) + func ShowJob(ctx context.Context, opts Options, c clock.Clock, name string) (JobDetail, error) + type JobView struct + Error string + Job *Job + LastState string + Name string + State *store.JobState + Status string + func ListJobs(ctx context.Context, opts Options, c clock.Clock) ([]JobView, error) + type Options struct + ConfigDir string + DataDir string + ReadOnly bool + type Run = store.Run + func EnqueueMCPRun(ctx context.Context, opts Options, c clock.Clock, name string) (Run, error) + func Prune(ctx context.Context, opts Options, c clock.Clock, dry, force bool) ([]Run, error) + func RunJob(ctx context.Context, opts Options, c clock.Clock, name string, now, wait bool) (Run, error) + func Runs(ctx context.Context, opts Options, c clock.Clock, job, state string, limit int) ([]Run, error) + func Worktrees(ctx context.Context, opts Options, c clock.Clock) ([]Run, error) + type RunOutput struct + ID string + Output string + Stream string + Truncated bool + func TailOutput(ctx context.Context, opts Options, c clock.Clock, id, stream string, ...) (RunOutput, error) + type TUI struct + Clock clock.Clock + Options Options + func (a TUI) Approve(ctx context.Context, name string) error + func (a TUI) Cancel(ctx context.Context, id string) error + func (a TUI) DaemonRunning(context.Context) (bool, error) + func (a TUI) Enqueue(ctx context.Context, name string) error + func (a TUI) Jobs(ctx context.Context) ([]JobView, error) + func (a TUI) Pause(ctx context.Context, name string, paused bool) error + func (a TUI) Runs(ctx context.Context, name string) ([]Run, error) + func (a TUI) Tail(ctx context.Context, id string, stderr bool) (string, error)