Documentation
¶
Index ¶
- func GroupNamesForTask(groups map[string]Group, taskName string) []string
- func RunExprRefs(expr RunExpr) []string
- func RunExprString(expr RunExpr) string
- func Suggest(cfg *Config) []string
- type AgentConfig
- type ArchitectureConfig
- type ArchitectureDomain
- type ArchitectureRule
- type CodemapConfig
- type CodemapPackage
- type Config
- type ContextCaps
- type ContextConfig
- type DefaultsConfig
- type Group
- type Guard
- type IncludeEntry
- type IncludeList
- type Param
- type Profile
- type ProfileTask
- type Profiles
- type Prompt
- type RunExpr
- type RunPar
- type RunRef
- type RunSeq
- type RunSwitch
- type RunSwitchCase
- type RunWhen
- type Scope
- type SecretSpec
- type ServeConfig
- type Task
- type TaskCache
- type TaskTemplate
- type TaskUseOverride
- type TemplateParam
- type Templates
- type VarSpec
- type Vars
- type WatchConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunExprRefs ¶
func RunExprString ¶ added in v0.5.2
RunExprString serializes a run expression back to its string form.
Types ¶
type AgentConfig ¶
type AgentConfig struct {
AccrueKnowledge bool `yaml:"accrue_knowledge"`
}
type ArchitectureConfig ¶
type ArchitectureConfig struct {
Layers []string `yaml:"layers"`
Domains map[string]ArchitectureDomain `yaml:"domains"`
Rules []ArchitectureRule `yaml:"rules"`
}
type ArchitectureDomain ¶
type ArchitectureRule ¶
type CodemapConfig ¶
type CodemapConfig struct {
Packages map[string]CodemapPackage `yaml:"packages"`
Conventions []string `yaml:"conventions"`
Glossary map[string]string `yaml:"glossary"`
}
type CodemapPackage ¶
type Config ¶
type Config struct {
Project string `yaml:"project"`
Description string `yaml:"description"`
Default string `yaml:"default"`
Includes IncludeList `yaml:"includes"`
Vars Vars `yaml:"vars"`
Secrets map[string]SecretSpec `yaml:"secrets"`
Templates Templates `yaml:"templates"`
Profiles Profiles `yaml:"profiles"`
Defaults DefaultsConfig `yaml:"defaults"`
EnvFile string `yaml:"env_file"`
Tasks map[string]Task `yaml:"tasks"`
Aliases map[string]string `yaml:"aliases"`
Groups map[string]Group `yaml:"groups"`
Guards map[string]Guard `yaml:"guards"`
Scopes map[string]Scope `yaml:"scopes"`
Prompts map[string]Prompt `yaml:"prompts"`
Agent AgentConfig `yaml:"agent"`
Context ContextConfig `yaml:"context"`
Codemap CodemapConfig `yaml:"codemap"`
Serve ServeConfig `yaml:"serve"`
Watch WatchConfig `yaml:"watch"`
Architecture ArchitectureConfig `yaml:"architecture"`
// contains filtered or unexported fields
}
func LoadWithProfile ¶
func LoadWithProfiles ¶ added in v0.5.0
func (*Config) ActiveProfile ¶ added in v0.5.0
func (*Config) ActiveProfiles ¶ added in v0.5.0
func (*Config) ApplyProfiles ¶ added in v0.5.0
func (*Config) SecretValues ¶ added in v0.5.0
type ContextCaps ¶
type ContextCaps struct {
FileTreeEntries int `yaml:"file_tree_entries"`
FilesMax int `yaml:"files_max"`
FileLines int `yaml:"file_lines"`
GitLogLines int `yaml:"git_log_lines"`
GitDiffLines int `yaml:"git_diff_lines"`
TodosMax int `yaml:"todos_max"`
AgentFileLines int `yaml:"agent_file_lines"`
DependencyLines int `yaml:"dependency_lines"`
}
type ContextConfig ¶
type ContextConfig struct {
FileTree *bool `yaml:"file_tree"`
GitLogLines int `yaml:"git_log_lines"`
GitDiff bool `yaml:"git_diff"`
Todos bool `yaml:"todos"`
Dependencies *bool `yaml:"dependencies"`
AgentFiles []string `yaml:"agent_files"`
Files []string `yaml:"files"`
Include []string `yaml:"include"`
Exclude []string `yaml:"exclude"`
Caps ContextCaps `yaml:"caps"`
}
type DefaultsConfig ¶
type DefaultsConfig struct {
Dir string `yaml:"dir"`
}
type IncludeEntry ¶ added in v0.5.2
type IncludeEntry struct {
Path string // file path, glob pattern, or directory
Namespace string // non-empty for namespaced includes (e.g. "ml")
}
IncludeEntry represents a single include directive — either a plain file/glob path or a namespaced directory.
type IncludeList ¶ added in v0.5.2
type IncludeList []IncludeEntry
IncludeList is a custom YAML type that accepts both list and map forms:
# list form (plain paths and globs) includes: - tasks/backend.yaml - tasks/**/*.yaml # map form (namespaced directories) includes: ml: tasks/ml/ data: tasks/data/
func (*IncludeList) UnmarshalYAML ¶ added in v0.5.2
func (il *IncludeList) UnmarshalYAML(value *yaml.Node) error
type Profile ¶
type Profile struct {
Vars map[string]string `yaml:"vars"`
Tasks map[string]ProfileTask `yaml:"tasks"`
}
type ProfileTask ¶
type RunExpr ¶
type RunExpr interface {
// contains filtered or unexported methods
}
func ParseRunExpr ¶
type RunSwitch ¶ added in v0.5.0
type RunSwitch struct {
Expr string
Cases []RunSwitchCase
}
type RunSwitchCase ¶ added in v0.5.0
type SecretSpec ¶ added in v0.5.0
type ServeConfig ¶
type Task ¶
type Task struct {
NodeType string `yaml:"type"`
Desc string `yaml:"desc"`
Cmd string `yaml:"cmd"`
Steps []string `yaml:"steps"`
Run string `yaml:"run"`
When string `yaml:"when"`
Cache *TaskCache `yaml:"cache"`
Silent bool `yaml:"silent"`
Defer string `yaml:"defer"`
Needs []string `yaml:"needs"`
Parallel bool `yaml:"parallel"`
Params map[string]Param `yaml:"params"`
Env map[string]string `yaml:"env"`
Dir string `yaml:"dir"`
Shell string `yaml:"shell"`
ShellArgs []string `yaml:"shell_args"`
Safety string `yaml:"safety"`
ErrorFormat string `yaml:"error_format"`
Retry int `yaml:"retry"`
RetryDelay string `yaml:"retry_delay"`
RetryBackoff string `yaml:"retry_backoff"`
RetryOn []string `yaml:"retry_on"`
Timeout string `yaml:"timeout"`
ContinueOnError bool `yaml:"continue_on_error"`
Agent *bool `yaml:"agent"`
Scope string `yaml:"scope"`
Use string `yaml:"use"`
TemplateArgs map[string]any `yaml:"-"`
Override TaskUseOverride `yaml:"override"`
}
func (Task) AgentEnabled ¶
func (Task) CacheEnabled ¶
func (Task) CachePaths ¶ added in v0.5.0
func (Task) SafetyLevel ¶
type TaskTemplate ¶ added in v0.5.0
type TaskTemplate struct {
Params map[string]TemplateParam `yaml:"params"`
Tasks map[string]Task `yaml:"tasks"`
}
type TaskUseOverride ¶ added in v0.5.0
type TaskUseOverride struct {
Tasks map[string]ProfileTask `yaml:"tasks"`
}
type TemplateParam ¶ added in v0.5.0
type Templates ¶ added in v0.5.0
type Templates struct {
Snippets map[string]string
Tasks map[string]TaskTemplate
}
type WatchConfig ¶
Click to show internal directories.
Click to hide internal directories.