Expand description
Unified configuration system.
Consolidates configuration from three tiers with field-by-field YAML merging:
- Defaults - Embedded at build time from
./config/ - Project -
$CWD/task-graph/(with.task-graph/backward compat) - User -
~/.task-graph/and environment variables
§Merge Strategy
- YAML files (
config.yaml,prompts.yaml): Deep merge field-by-field - Other files (skills, templates): First-found-wins from highest tier
§Environment Variables
TASK_GRAPH_CONFIG_PATH- Explicit config file (overrides all)TASK_GRAPH_DB_PATH- Database pathTASK_GRAPH_MEDIA_DIR- Media directoryTASK_GRAPH_LOG_DIR- Log directoryTASK_GRAPH_SKILLS_DIR- Skills directoryTASK_GRAPH_USER_DIR- User config dir (default:~/.task-graph)TASK_GRAPH_PROJECT_DIR- Project config dir (default:./task-graph)
Modules§
- embedded
- Embedded workflow and overlay files.
- watcher
- File watcher for configuration files.
- workflows
- Workflow configuration for states, phases, and transition prompts.
Structs§
- AppConfig
- Consolidated application configuration.
- Attachment
KeyDefinition - Definition of a preconfigured attachment key.
- Attachments
Config - Attachments configuration with preconfigured key definitions.
- Auto
Advance Config - Auto-advance configuration for automatically transitioning tasks when dependencies are satisfied.
- Config
- Server configuration.
- Config
Loader - Configuration loader that handles tier-based merging.
- Config
Paths - Paths for each configuration tier.
- Dependencies
Config - Dependency type configuration.
- Dependency
Definition - Definition of a dependency type.
- Feedback
Config - Agent feedback configuration.
- Gate
Definition - Definition of a gate (checklist item) for status or phase exits.
- IdsConfig
- ID generation configuration.
- Paths
Config - Path handling configuration.
- Phases
Config - Phase configuration for categorizing type of work.
- Prompts
- LLM-facing prompts configuration.
- Resolved
File - A resolved file with its content and metadata.
- Server
Config - Server-specific configuration.
- Server
Paths - Paths configured for the server, returned by connect.
- State
Definition - Definition of a single task state.
- States
Config - Task state configuration.
- TagDefinition
- Definition of a preconfigured tag.
- Tags
Config - Tags configuration with preconfigured tag definitions.
- Tool
Prompt - Tool description override.
- UiConfig
- UI configuration for the web dashboard.
Enums§
- Block
Target - What a dependency blocks.
- Config
Tier - Configuration tier priority (lowest to highest).
- Dependency
Display - Display orientation for dependency visualization.
- File
Source - Source of a resolved file.
- Gate
Enforcement - Enforcement level for workflow gates (checklists that must be satisfied before status transitions).
- IdCase
- Case style for generated IDs.
- Path
Style - Path style for file locks.
- UiMode
- UI mode for the server.
- Unknown
KeyBehavior - Behavior for unknown attachment keys.
Constants§
- DEFAULT_
ID_ WORDS - Default number of words for generated IDs.
- DEFAULT_
UI_ PORT - Default port for the web dashboard.
Functions§
- deep_
merge - Deep merge two JSON values, with
overlaytaking precedence overbase.