Expand description
Core types for the Task Graph MCP Server.
Structs§
- Attachment
- An attachment on a task. Primary key is (task_id, attachment_type, sequence). If file_path is set, content is stored in the referenced file; otherwise content is inline.
- Attachment
Meta - Attachment metadata (without content). Primary key is (task_id, attachment_type, sequence).
- Claim
Event - A claim event for file coordination tracking.
- Claim
Updates - Result of polling claim updates.
- Cleanup
Summary - Summary of stale worker cleanup operation.
- Dependency
- A typed dependency between tasks. The dependency indicates that from_task_id affects to_task_id based on dep_type.
- Disconnect
Summary - Summary of disconnect operation.
- Export
Tables - Exported tables container for database export.
- File
Lock - An advisory file lock.
- Scan
Result - Result of scanning the task graph from a starting task. Contains tasks organized by traversal direction.
- Stats
- Aggregate statistics.
- Task
- A task in the task graph.
- Task
Needed TagRow - A task needed tag row for export/import.
- Task
Sequence Event - A unified task sequence event for tracking status and phase changes.
- Task
State Event - Legacy alias for backward compatibility in exports. A task state transition event for time tracking.
- Task
Summary - Compact task representation for list views.
- Task
TagRow - A task tag row for export/import.
- Task
Tree - A task with its children for tree operations.
- Task
Tree Input - Input for creating a task tree. Supports all fields from task creation, plus tree-specific fields.
- Task
Wanted TagRow - A task wanted tag row for export/import.
- Worker
- Worker (session-based) - represents a connected worker.
- Worker
Info - Worker info with additional runtime details for list_workers.
Enums§
- Claim
Event Type - Type of claim event.
Constants§
- PRIORITY_
DEFAULT - Default priority (middle of 0-10 range).
Functions§
- clamp_
priority - Clamp priority to valid range.
- parse_
priority - Parse a priority value, clamping to 0-10 range.
Type Aliases§
- Priority
- Task priority as an integer (higher = more important). Range: 0-10, where 10 is highest priority. Default is 5.