Expand description
Data models for the track CLI application.
This module defines the core data structures used throughout the application, including tasks, TODOs, links, scraps, and JJ-related items.
Structs§
- Agent
Guardrails - Guardrails exposed to agents via JSON status output.
- GitAgent
Context - Git worktree context for the current task.
- JjAgent
Context - jj-task / agent-skill-jj context for the current task.
- Link
- Represents a link associated with a task.
- Next
Action - Suggested next step for an agent.
- Repo
Link - Represents a remote repository link for a worktree.
- Scrap
- Represents a scrap (work note) for a task.
- Task
- Represents a development task.
- Task
Repo - Represents a repository associated with a task.
- Todo
- Represents a TODO item within a task.
- Todo
Agent View - Agent-oriented view of a TODO item.
- Workflow
Context - Derived workflow context (not persisted).
- Workspace
Agent View - Worktree
- Represents a JJ workspace associated with a task or TODO.
Enums§
- Task
Status - Status of a task.
- Todo
Action - Intent-based operations on a TODO item.
- Todo
Status - Status of a TODO item.
- VcsMode
- Version control backend for task workspaces.
- Workflow
Phase - High-level workflow phase for agents and humans.
- Workspace
Lifecycle - Lifecycle of a TODO’s JJ workspace.
Functions§
- build_
git_ context - build_
jj_ context - build_
next_ action - Builds the suggested next action for the current workflow phase.
- compute_
workflow_ phase - Computes the workflow phase from current task state.
- jj_slug
- Derives the jj-task slug for a track task.
- oldest_
pending_ todo - sanitize_
jj_ slug - Normalizes a string into a jj-task-compatible slug (lowercase, hyphen-separated).
- workspace_
lifecycle