factory

package
v0.54.1 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: 27 Imported by: 0

Documentation

Overview

Package factory wires all dependencies for the dark-factory application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApproveCommand added in v0.54.1

func CreateApproveCommand(cfg config.Config) cmd.ApproveCommand

CreateApproveCommand creates an ApproveCommand.

func CreateCombinedListCommand added in v0.54.1

func CreateCombinedListCommand(cfg config.Config) cmd.CombinedListCommand

CreateCombinedListCommand creates a CombinedListCommand.

func CreateCombinedStatusCommand added in v0.54.1

func CreateCombinedStatusCommand(cfg config.Config) cmd.CombinedStatusCommand

CreateCombinedStatusCommand creates a CombinedStatusCommand.

func CreateListCommand added in v0.54.1

func CreateListCommand(cfg config.Config) cmd.ListCommand

CreateListCommand creates a ListCommand.

func CreateLocker

func CreateLocker(dir string) lock.Locker

CreateLocker creates a Locker for the specified directory.

func CreateNotifier added in v0.54.1

func CreateNotifier(cfg config.Config) notifier.Notifier

CreateNotifier creates a Notifier from config, or a no-op if no channels are configured.

func CreateOneShotRunner added in v0.54.1

func CreateOneShotRunner(cfg config.Config, ver string) runner.OneShotRunner

CreateOneShotRunner creates an OneShotRunner that drains the queue and exits.

func CreateProcessor

func CreateProcessor(
	inProgressDir string,
	completedDir string,
	logDir string,
	projectName string,
	promptManager prompt.Manager,
	releaser git.Releaser,
	versionGetter version.Getter,
	ready <-chan struct{},
	containerImage string,
	model string,
	netrcFile string,
	gitconfigFile string,
	pr bool,
	worktree bool,
	brancher git.Brancher,
	prCreator git.PRCreator,
	prMerger git.PRMerger,
	autoMerge bool,
	autoRelease bool,
	autoReview bool,
	validationCommand string,
	specsInboxDir string,
	specsInProgressDir string,
	specsCompletedDir string,
	verificationGate bool,
	env map[string]string,
	currentDateTimeGetter libtime.CurrentDateTimeGetter,
	n notifier.Notifier,
) processor.Processor

CreateProcessor creates a Processor that executes queued prompts.

func CreatePromptShowCommand added in v0.54.1

func CreatePromptShowCommand(cfg config.Config) cmd.PromptShowCommand

CreatePromptShowCommand creates a PromptShowCommand.

func CreatePromptVerifyCommand added in v0.54.1

func CreatePromptVerifyCommand(cfg config.Config) cmd.PromptVerifyCommand

CreatePromptVerifyCommand creates a PromptVerifyCommand.

func CreateRequeueCommand added in v0.54.1

func CreateRequeueCommand(cfg config.Config) cmd.RequeueCommand

CreateRequeueCommand creates a RequeueCommand.

func CreateReviewPoller added in v0.54.1

func CreateReviewPoller(
	cfg config.Config,
	promptManager prompt.Manager,
	projectName string,
	n notifier.Notifier,
) review.ReviewPoller

CreateReviewPoller creates a ReviewPoller that watches in_review prompts and handles approvals/changes.

func CreateRunner

func CreateRunner(cfg config.Config, ver string) runner.Runner

CreateRunner creates a Runner that coordinates watcher and processor using the provided config.

func CreateServer

func CreateServer(
	port int,
	inboxDir string,
	inProgressDir string,
	completedDir string,
	logDir string,
	promptManager prompt.Manager,
	currentDateTimeGetter libtime.CurrentDateTimeGetter,
) server.Server

CreateServer creates a Server that provides HTTP endpoints for monitoring.

func CreateSpecApproveCommand added in v0.54.1

func CreateSpecApproveCommand(cfg config.Config) cmd.SpecApproveCommand

CreateSpecApproveCommand creates a SpecApproveCommand.

func CreateSpecCompleteCommand added in v0.54.1

func CreateSpecCompleteCommand(cfg config.Config) cmd.SpecCompleteCommand

CreateSpecCompleteCommand creates a SpecCompleteCommand.

func CreateSpecGenerator added in v0.54.1

func CreateSpecGenerator(
	cfg config.Config,
	containerImage string,
	currentDateTimeGetter libtime.CurrentDateTimeGetter,
) generator.SpecGenerator

CreateSpecGenerator creates a SpecGenerator using the Docker executor.

func CreateSpecListCommand added in v0.54.1

func CreateSpecListCommand(cfg config.Config) cmd.SpecListCommand

CreateSpecListCommand creates a SpecListCommand.

func CreateSpecShowCommand added in v0.54.1

func CreateSpecShowCommand(cfg config.Config) cmd.SpecShowCommand

CreateSpecShowCommand creates a SpecShowCommand.

func CreateSpecStatusCommand added in v0.54.1

func CreateSpecStatusCommand(cfg config.Config) cmd.SpecStatusCommand

CreateSpecStatusCommand creates a SpecStatusCommand.

func CreateSpecWatcher added in v0.54.1

func CreateSpecWatcher(
	cfg config.Config,
	gen generator.SpecGenerator,
	currentDateTimeGetter libtime.CurrentDateTimeGetter,
) specwatcher.SpecWatcher

CreateSpecWatcher creates a SpecWatcher that triggers generation when a spec appears in inProgressDir.

func CreateStatusCommand

func CreateStatusCommand(cfg config.Config) cmd.StatusCommand

CreateStatusCommand creates a StatusCommand.

func CreateWatcher

func CreateWatcher(
	inProgressDir string,
	inboxDir string,
	promptManager prompt.Manager,
	ready chan<- struct{},
	debounce time.Duration,
	currentDateTimeGetter libtime.CurrentDateTimeGetter,
) watcher.Watcher

CreateWatcher creates a Watcher that normalizes filenames on file events.

Types

This section is empty.

Jump to

Keyboard shortcuts

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