Versions in this module Expand all Collapse all v0 v0.1.0 Aug 4, 2026 Changes in this version + const SchemaVersion + var ErrAmbiguous = errors.New("AMBIGUOUS_REFERENCE") + var ErrClaimConflict = errors.New("CLAIM_CONFLICT") + var ErrDependencyCycle = errors.New("DEPENDENCY_CYCLE") + var ErrHierarchyCycle = errors.New("HIERARCHY_CYCLE") + var ErrInvalidTransition = errors.New("INVALID_STATE_TRANSITION") + var ErrNoReady = errors.New("NO_READY_ITEM") + var ErrNotFound = errors.New("NOT_FOUND") + var ErrPathConflict = errors.New("PATH_CONFLICT") + var ErrVersionConflict = errors.New("VERSION_CONFLICT") + var WebAssets embed.FS + func ParseQuery(ref string) (any, error) + type ActivityInput struct + Actor string + After string + Before string + Cursor string + EntityID string + EntityTypes []string + Limit int + Operations []string + type App struct + func Open(path string, cfg Config) (*App, error) + func (a *App) ActivityPage(in ActivityInput) (map[string]any, error) + func (a *App) Agents() ([]map[string]any, error) + func (a *App) ArchiveItem(ref any, expectedVersion int, includeDescendants bool) (map[string]any, error) + func (a *App) Backup() ([]byte, error) + func (a *App) Changes(after int64, limit int) ([]map[string]any, error) + func (a *App) ClaimNext(scope Scope, lease int, expected, idempotency string) (ClaimResult, error) + func (a *App) Close() error + func (a *App) CommitRestore(data []byte, expectedRevision int64, confirmation string) (map[string]any, error) + func (a *App) Context(ref any) (ContextBundle, error) + func (a *App) CreateItems(in CreateInput) (map[string]any, error) + func (a *App) CreateSavedView(name, mode, query, project string) (map[string]any, error) + func (a *App) CurrentRevision() int64 + func (a *App) DeleteSavedView(id string, expectedVersion int) (map[string]any, error) + func (a *App) Doctor() ([]string, error) + func (a *App) ExplainBlocked(ref any) ([]Reason, error) + func (a *App) ForceReleaseClaim(id string, expectedRevision int64, confirmation string) (map[string]any, error) + func (a *App) GetGraph(ref any, max int) (GraphResult, error) + func (a *App) GetGraphWithOptions(ref any, opt GraphOptions) (GraphResult, error) + func (a *App) Import(source, format string, dryRun bool) (map[string]any, error) + func (a *App) ItemTimeline(ref any, limit int) (ItemTimeline, error) + func (a *App) ListClaims(activeOnly bool, limit int) ([]map[string]any, error) + func (a *App) ManageClaim(id, token, action string, lease int) (Claim, error) + func (a *App) MarkdownExport() (string, error) + func (a *App) MoveItem(ref any, parentRef any, slug string, expectedVersion int) (map[string]any, error) + func (a *App) MutateBatch(in BatchInput) (map[string]any, error) + func (a *App) MutateRelationship(r RelationshipInput) (map[string]any, error) + func (a *App) PatchItem(ref any, in PatchInput) (map[string]any, error) + func (a *App) PeekNext(scope Scope, maxAlt, maxBlocked int) (NextResult, error) + func (a *App) PreviewRestore(data []byte) (RestorePreview, error) + func (a *App) ProjectTreePage(ref, cursor string, limit int, includeArchived bool) (map[string]any, error) + func (a *App) Ready(it *Item) ([]Reason, bool) + func (a *App) RecentActivity(limit int) ([]map[string]any, error) + func (a *App) RecordEntry(ref any, entryType, body string) (map[string]any, error) + func (a *App) ReorderItem(ref any, beforeRef, afterRef any) (map[string]any, error) + func (a *App) ReportWork(ref any, status, reason string) (map[string]any, error) + func (a *App) Resolve(ref any) (*Item, string, error) + func (a *App) Restore(data []byte) error + func (a *App) RestoreItem(ref any, expectedVersion int, includeDescendants bool) (map[string]any, error) + func (a *App) SavedViews() ([]map[string]any, error) + func (a *App) Search(query string, limit int) ([]*Item, error) + func (a *App) SearchPage(in SearchInput) (map[string]any, error) + func (a *App) SessionID() string + func (a *App) Settings() (map[string]any, error) + func (a *App) Undo(revision int64) (map[string]any, error) + func (a *App) UpdateSavedView(id string, expectedVersion int, name, mode, query, project string, layout any) (map[string]any, error) + func (a *App) UpdateSettings(in map[string]any) (map[string]any, error) + func (a *App) UpdateWorkspaceName(name string) error + func (a *App) WorkspaceID() string + func (a *App) WorkspaceRevision() (int64, error) + func (a *App) WorkspaceSummary() (map[string]any, error) + type BatchInput struct + DryRun bool + Mutations []BatchMutation + type BatchMutation struct + After any + Before any + ExpectedVersion int + ID string + IncludeDescendants bool + Operation string + Parent any + Set map[string]any + type BlockedExample struct + Item *Item + Reasons []Reason + type Capability struct + AppliesToDescendants bool + Capability string + type Claim struct + Active bool + ClaimedAt string + ExpiresAt string + ID string + RenewAfter string + Token string + type ClaimResult struct + Claim Claim + Explanation *Explanation + Item *Item + Revision int64 + type Config struct + ActorName string + AgentName string + Capabilities []string + MaxClaims int + WorkspaceID string + type ContextBundle struct + Ancestors []*Item + Children []*Item + Dependencies []Relationship + Item *Item + type CreateInput struct + Atomic bool + DryRun bool + IdempotencyKey string + Items []CreateSpec + Relationships []RelationshipInput + func ParseImport(source, format string) (CreateInput, []string, error) + type CreateSpec struct + AcceptanceCriteria []string + ChildGate string + ClientRef string + CompletionPolicy string + CustomFields map[string]any + Description string + DueAt string + ExecutionMode string + Kind string + NotBefore string + Parent any + Priority int + RequiredCapabilities []Capability + Slug string + Status string + Tags []string + Title string + type Criterion struct + ID string + OrderKey int64 + State string + Text string + type Explanation struct + Rank map[string]any + SelectedBecause []string + type GraphOptions struct + Direction string + EdgeTypes []string + Hops int + MaxItems int + Strength string + type GraphResult struct + Edges []Relationship + Nodes []*Item + Truncated bool + type Item struct + Acceptance []Criterion + ArchivedAt *string + AssigneeActorID *string + ChildGate string + CompletionPolicy string + CreatedAt string + CustomFields map[string]any + Depth int + Description string + DueAt *string + EffectiveState string + ExecutionMode string + ID string + Kind string + LastRevision int64 + NotBefore *string + OrderKey int64 + ParentID *string + Path string + Priority int + ProjectID string + Slug string + Status string + Tags []string + Title string + UpdatedAt string + Version int + WorkspaceID string + type ItemEntry struct + Actor string + Body string + CreatedAt string + EntryType string + ID string + ItemID string + type ItemTimeline struct + Activity []map[string]any + Entries []ItemEntry + type NextResult struct + Alternatives []*Item + BlockedExamples []BlockedExample + Explanation *Explanation + Revision int64 + Selected *Item + type PatchInput struct + AcceptanceOperations []map[string]any + CustomFieldOperations []map[string]any + ExpectedVersion int + IdempotencyKey string + Set map[string]any + TagOperations []map[string]any + Unset []string + type Reason struct + BlockingItem *Item + Code string + Item *Item + Message string + UnresolvedLeaf *Item + type Relationship struct + From string + ID string + Strength string + To string + Type string + Waived bool + type RelationshipInput struct + From any + ID string + Operation string + Reason string + Strength string + To any + Type string + type RestorePreview struct + ActiveClaims int + Format string + RowCounts map[string]int + SchemaVersion int + Warnings []string + WorkspaceID string + WorkspaceRevision int64 + type Scope struct + IncludeArchived bool + Under any + type SearchInput struct + Claims string + Cursor string + IncludeArchived bool + Kinds []string + Limit int + Overdue *bool + Priorities []int + ProjectID string + Query string + Readiness string + Sort string + Statuses []string