runner

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: BSD-2-Clause Imports: 20 Imported by: 0

Documentation

Overview

Package runner orchestrates the main dark-factory event loop.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OneShotRunner added in v0.52.3

type OneShotRunner interface {
	Run(ctx context.Context) error
}

OneShotRunner processes all queued prompts and exits cleanly.

func NewOneShotRunner added in v0.52.3

func NewOneShotRunner(
	inboxDir string,
	inProgressDir string,
	completedDir string,
	logDir string,
	specsInboxDir string,
	specsInProgressDir string,
	specsCompletedDir string,
	specsLogDir string,
	promptManager prompt.Manager,
	locker lock.Locker,
	proc processor.Processor,
	specGen generator.SpecGenerator,
	currentDateTimeGetter libtime.CurrentDateTimeGetter,
) OneShotRunner

NewOneShotRunner creates a new OneShotRunner.

type Runner

type Runner interface {
	Run(ctx context.Context) error
}

Runner orchestrates the main processing loop.

func NewRunner

func NewRunner(
	inboxDir string,
	inProgressDir string,
	completedDir string,
	logDir string,
	specsInboxDir string,
	specsInProgressDir string,
	specsCompletedDir string,
	specsLogDir string,
	promptManager prompt.Manager,
	locker lock.Locker,
	watcher watcher.Watcher,
	processor processor.Processor,
	server server.Server,
	reviewPoller review.ReviewPoller,
	specWatcher specwatcher.SpecWatcher,
	projectName string,
	n notifier.Notifier,
) Runner

NewRunner creates a new Runner.

Jump to

Keyboard shortcuts

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