workspace

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Discover

func Discover(ctx context.Context, startDir string) (string, error)

Types

type Context

type Context struct {
	Root       string
	CompozyDir string
	ConfigPath string
	Config     ProjectConfig
}

func Resolve

func Resolve(ctx context.Context, startDir string) (Context, error)

type DefaultsConfig

type DefaultsConfig RuntimeOverrides

type ExecConfig added in v0.1.9

type ExecConfig struct {
	RuntimeOverrides
	Verbose *bool `toml:"verbose"`
	TUI     *bool `toml:"tui"`
	Persist *bool `toml:"persist"`
}

type FetchReviewsConfig

type FetchReviewsConfig struct {
	Provider *string `toml:"provider"`
	Nitpicks *bool   `toml:"nitpicks"`
}

type FixReviewsConfig

type FixReviewsConfig struct {
	Concurrent      *int    `toml:"concurrent"`
	BatchSize       *int    `toml:"batch_size"`
	IncludeResolved *bool   `toml:"include_resolved"`
	OutputFormat    *string `toml:"output_format"`
	TUI             *bool   `toml:"tui"`
}

type ProjectConfig

type ProjectConfig struct {
	Defaults     DefaultsConfig     `toml:"defaults"`
	Start        StartConfig        `toml:"start"`
	Tasks        TasksConfig        `toml:"tasks"`
	FixReviews   FixReviewsConfig   `toml:"fix_reviews"`
	FetchReviews FetchReviewsConfig `toml:"fetch_reviews"`
	Exec         ExecConfig         `toml:"exec"`
}

func LoadConfig

func LoadConfig(ctx context.Context, workspaceRoot string) (ProjectConfig, string, error)

func (ProjectConfig) Validate

func (cfg ProjectConfig) Validate() error

type RuntimeOverrides added in v0.1.9

type RuntimeOverrides struct {
	IDE                    *string   `toml:"ide"`
	Model                  *string   `toml:"model"`
	OutputFormat           *string   `toml:"output_format"`
	ReasoningEffort        *string   `toml:"reasoning_effort"`
	AccessMode             *string   `toml:"access_mode"`
	Timeout                *string   `toml:"timeout"`
	TailLines              *int      `toml:"tail_lines"`
	AddDirs                *[]string `toml:"add_dirs"`
	AutoCommit             *bool     `toml:"auto_commit"`
	MaxRetries             *int      `toml:"max_retries"`
	RetryBackoffMultiplier *float64  `toml:"retry_backoff_multiplier"`
}

type StartConfig

type StartConfig struct {
	IncludeCompleted *bool   `toml:"include_completed"`
	OutputFormat     *string `toml:"output_format"`
	TUI              *bool   `toml:"tui"`
}

type TasksConfig added in v0.1.7

type TasksConfig struct {
	Types *[]string `toml:"types"`
}

Jump to

Keyboard shortcuts

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