Documentation
¶
Index ¶
- type GitMode
- type GitPolicy
- type Index
- func (i *Index) Close() error
- func (i *Index) Get(ctx context.Context, taskName string) (Record, bool, error)
- func (i *Index) ListAll(ctx context.Context) ([]ListItem, error)
- func (i *Index) ListClosed(ctx context.Context) ([]ListItem, error)
- func (i *Index) ListOpen(ctx context.Context) ([]ListItem, error)
- func (i *Index) Refresh(ctx context.Context, policy RefreshPolicy) error
- type ListItem
- type Record
- type RefreshPolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index is a SQLite-backed cache of task metadata for fast queries.
The task files on disk remain the source of truth; the index can be rebuilt at any time.
func OpenDefault ¶
OpenDefault opens (or creates) the index database at .subtask/index.db.
type ListItem ¶
type ListItem struct {
Name string
Title string
FollowUp string
BaseBranch string
TaskStatus task.TaskStatus
WorkerStatus task.WorkerStatus
Stage string
Workspace string
StartedAt time.Time
LastError string
LastHistory time.Time
LastActive time.Time
ToolCalls int
LastRunDurationMS int
ProgressDone int
ProgressTotal int
LinesAdded int
LinesRemoved int
CommitsBehind int
IntegratedReason string
}
ListItem is a task summary record suitable for list output.
type Record ¶
type Record struct {
Task *task.Task
TaskStatus task.TaskStatus
WorkerStatus task.WorkerStatus
Stage string
State *task.State
ProgressMeta *task.Progress
LastHistory time.Time
ProgressDone int
ProgressTotal int
LastRunDurationMS int
LinesAdded int
LinesRemoved int
CommitsBehind int
ConflictFilesJSON string
IntegratedReason string
}
Record is the cached file-backed data for a single task.
type RefreshPolicy ¶
type RefreshPolicy struct {
Git GitPolicy
}
RefreshPolicy controls what work Refresh performs. File-backed fields are always refreshed; git refresh is optional.
Click to show internal directories.
Click to hide internal directories.