Skip to main content

Module types

Module types 

Source
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.
AttachmentMeta
Attachment metadata (without content). Primary key is (task_id, attachment_type, sequence).
ClaimEvent
A claim event for file coordination tracking.
ClaimUpdates
Result of polling claim updates.
CleanupSummary
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.
DisconnectSummary
Summary of disconnect operation.
ExportTables
Exported tables container for database export.
FileLock
An advisory file lock.
ScanResult
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.
TaskNeededTagRow
A task needed tag row for export/import.
TaskSequenceEvent
A unified task sequence event for tracking status and phase changes.
TaskStateEvent
Legacy alias for backward compatibility in exports. A task state transition event for time tracking.
TaskSummary
Compact task representation for list views.
TaskTagRow
A task tag row for export/import.
TaskTree
A task with its children for tree operations.
TaskTreeInput
Input for creating a task tree. Supports all fields from task creation, plus tree-specific fields.
TaskWantedTagRow
A task wanted tag row for export/import.
Worker
Worker (session-based) - represents a connected worker.
WorkerInfo
Worker info with additional runtime details for list_workers.

Enums§

ClaimEventType
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.