Skip to main content

Module models

Module models 

Source
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§

AgentGuardrails
Guardrails exposed to agents via JSON status output.
GitAgentContext
Git worktree context for the current task.
JjAgentContext
jj-task / agent-skill-jj context for the current task.
Link
Represents a link associated with a task.
NextAction
Suggested next step for an agent.
RepoLink
Represents a remote repository link for a worktree.
Scrap
Represents a scrap (work note) for a task.
Task
Represents a development task.
TaskRepo
Represents a repository associated with a task.
Todo
Represents a TODO item within a task.
TodoAgentView
Agent-oriented view of a TODO item.
WorkflowContext
Derived workflow context (not persisted).
WorkspaceAgentView
Worktree
Represents a JJ workspace associated with a task or TODO.

Enums§

TaskStatus
Status of a task.
TodoAction
Intent-based operations on a TODO item.
TodoStatus
Status of a TODO item.
VcsMode
Version control backend for task workspaces.
WorkflowPhase
High-level workflow phase for agents and humans.
WorkspaceLifecycle
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