Documentation
¶
Index ¶
- Constants
- func Discover(ctx context.Context, startDir string) (string, error)
- type Context
- type DefaultsConfig
- type ExecConfig
- type FetchReviewsConfig
- type FixReviewsConfig
- type ProjectConfig
- type RunsConfig
- type RuntimeOverrides
- type SoundConfig
- type TaskRunConfig
- type TasksConfig
- type WatchReviewsConfig
Constants ¶
View Source
const ( TaskRunMultipleModeEnqueued = "enqueued" TaskRunMultipleModeParallel = "parallel" // DefaultRunMultipleParallelLimit is the effective parallel multi-run fanout // limit applied when run_multiple_parallel_limit is unset. DefaultRunMultipleParallelLimit = 2 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
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 FixReviewsConfig ¶
type ProjectConfig ¶
type ProjectConfig struct {
Defaults DefaultsConfig `toml:"defaults"`
Tasks TasksConfig `toml:"tasks"`
FixReviews FixReviewsConfig `toml:"fix_reviews"`
FetchReviews FetchReviewsConfig `toml:"fetch_reviews"`
WatchReviews WatchReviewsConfig `toml:"watch_reviews"`
Exec ExecConfig `toml:"exec"`
Runs RunsConfig `toml:"runs"`
Sound SoundConfig `toml:"sound"`
}
func LoadConfig ¶
func LoadGlobalConfig ¶ added in v0.2.0
func LoadGlobalConfig(ctx context.Context) (ProjectConfig, string, error)
func (ProjectConfig) Validate ¶
func (cfg ProjectConfig) Validate() error
type RunsConfig ¶ added in v0.2.0
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 SoundConfig ¶ added in v0.2.0
type SoundConfig struct {
Enabled *bool `toml:"enabled"`
OnCompleted *string `toml:"on_completed"`
OnFailed *string `toml:"on_failed"`
}
SoundConfig controls optional audio notifications on run lifecycle events. Disabled by default; opt-in via `[sound] enabled = true` in .compozy/config.toml.
type TaskRunConfig ¶ added in v0.2.0
type TaskRunConfig struct {
IncludeCompleted *bool `toml:"include_completed"`
Recursive *bool `toml:"recursive"`
OutputFormat *string `toml:"output_format"`
RunMultipleMode *string `toml:"run_multiple_mode"`
RunMultipleParallelLimit *int `toml:"run_multiple_parallel_limit"`
TUI *bool `toml:"tui"`
TaskRuntimeRules *[]model.TaskRuntimeRule `toml:"task_runtime_rules"`
}
func (TaskRunConfig) EffectiveRunMultipleMode ¶ added in v0.2.7
func (cfg TaskRunConfig) EffectiveRunMultipleMode() string
func (TaskRunConfig) EffectiveRunMultipleParallelLimit ¶ added in v0.2.10
func (cfg TaskRunConfig) EffectiveRunMultipleParallelLimit() int
EffectiveRunMultipleParallelLimit returns the configured parallel multi-run fanout limit, defaulting to DefaultRunMultipleParallelLimit when unset.
type TasksConfig ¶ added in v0.1.7
type TasksConfig struct {
Types *[]string `toml:"types"`
Run TaskRunConfig `toml:"run"`
}
type WatchReviewsConfig ¶ added in v0.2.0
type WatchReviewsConfig struct {
MaxRounds *int `toml:"max_rounds"`
PollInterval *string `toml:"poll_interval"`
ReviewTimeout *string `toml:"review_timeout"`
QuietPeriod *string `toml:"quiet_period"`
AutoPush *bool `toml:"auto_push"`
UntilClean *bool `toml:"until_clean"`
PushRemote *string `toml:"push_remote"`
PushBranch *string `toml:"push_branch"`
}
Click to show internal directories.
Click to hide internal directories.