factory

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

Factory orchestrates the main processing loop.

func New

func New(exec executor.Executor) *Factory

New creates a new Factory.

func (*Factory) GetPromptsDir

func (f *Factory) GetPromptsDir() string

GetPromptsDir returns the prompts directory.

func (*Factory) Run

func (f *Factory) Run(ctx context.Context) error

Run executes the main processing loop: 1. Scan for existing queued prompts and process them 2. Start watching prompts/ directory for changes 3. On file create/write events, check if status: queued and process 4. Run until context is cancelled or fatal error

func (*Factory) SetPromptsDir

func (f *Factory) SetPromptsDir(dir string)

SetPromptsDir sets the prompts directory (useful for testing).

Jump to

Keyboard shortcuts

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