Versions in this module Expand all Collapse all v0 v0.36.0 Sep 12, 2026 v0.35.0 Sep 12, 2026 Changes in this version + const ConcurrencyKeyProject + const DefaultBranchPattern + const DefaultMaxCatchUp + const DefaultTimeout + const DirName + const HardMaxCatchUp + const ModelAuto + const Version + var ErrNotFound = errors.New("task not found") + func GlobalDir() (string, error) + func Marshal(t Task) ([]byte, error) + func ProjectDir(root string) string + func Save(root string, t Task, scope Scope) (string, error) + func ValidLevel(l Level) bool + func ValidName(s string) bool + type Autonomy struct + Grants []Grant + Level Level + type Capability struct + DenyCommands []string + DenyTools []string + Mutating bool + ProtectProject bool + type Concurrency struct + Key string + Policy ConcurrencyPolicy + type ConcurrencyPolicy string + const ConcurrencyQueue + const ConcurrencySkip + type Coordination string + const CoordCoordinated + const CoordIndependent + type Delivery struct + Channel string + ChannelOn Notify + Desktop Notify + type Execution struct + KnownGood string + Steps []string + type Git struct + Branch string + PullRequest PRMode + Remote string + Worktree *bool + type Grant string + const GrantFilesystemMutate + const GrantFilesystemRead + const GrantGitCommit + const GrantGitCreateBranch + const GrantGitHubOpenPR + const GrantGitPushBranch + const GrantProcessExec + const GrantProcessExecReadOnly + func ExpandGrants(level Level, extra []Grant) ([]Grant, error) + func KnownGrants() []Grant + type Level string + const LevelBranch + const LevelReadOnly + func Levels() []Level + type Limits struct + MaxCostUSD float64 + Timeout string + type Missed string + const MissedCatchUp + const MissedRunOnce + const MissedSkip + type Notify string + const NotifyAlways + const NotifyChanges + const NotifyFailures + const NotifyNever + type OnPush struct + Branch string + type Ownership struct + Coordination Coordination + Projects []string + Responsibility string + type PRMode string + const PRAlways + const PRNever + const PRWhenChanges + type Runtime struct + Allowed []string + Fallback []string + Model string + Strategy string + type Scope string + const ScopeGlobal + const ScopeProject + type Task struct + Autonomy Autonomy + Concurrency Concurrency + Delivery Delivery + Description string + Enabled *bool + Execution Execution + Git Git + Instructions string + Limits Limits + Name string + Ownership Ownership + Path string + Project string + Runtime Runtime + Scope Scope + Triggers []Trigger + Verify Verify + Version int + func Get(root, name string, now time.Time) (Task, error) + func Load(root string, now time.Time) ([]Task, []error) + func Parse(data []byte, path string, scope Scope, now time.Time) (Task, error) + func (t *Task) ApplyDefaults() + func (t Task) Capability() (Capability, error) + func (t Task) CrossProject() bool + func (t Task) Grants() ([]Grant, error) + func (t Task) HasGrant(g Grant) bool + func (t Task) IsEnabled() bool + func (t Task) Manual() bool + func (t Task) MayMutate() bool + func (t Task) MayOpenPR() bool + func (t Task) ReadOnly() bool + func (t Task) ResolveProject(root string) (string, error) + func (t Task) Revision() (string, error) + func (t Task) Targets() []string + func (t Task) TargetsFrom(anchor string) []string + func (t Task) Timeout() time.Duration + func (t Task) UsesWorktree() bool + func (t Task) Validate(now time.Time) error + type Trigger struct + At string + Cron string + Every string + Manual bool + MaxCatchUp int + Missed Missed + OnPush *OnPush + TZ string + Webhook *Webhook + func (tr Trigger) Validate(now time.Time) error + type Verify struct + Across []string + Commands []string + type Webhook struct + Secret string