Expand description
Symlink wiring for coordination worktrees. Symlink wiring for coordination worktrees.
When Ito operates in a coordination-worktree layout, the canonical .ito/
subdirectories (changes, specs, modules, workflows, audit) are
replaced by symlinks that point into a shared coordination worktree. This
module provides the helpers to create, verify, and tear down those symlinks,
as well as health-check utilities for detecting missing or broken setups.
Enums§
- Coordination
Health Status - Health status of the coordination worktree setup.
Constants§
- COORDINATION_
DIRS - Subdirectories of
.ito/that are wired to the coordination worktree.
Functions§
- check_
coordination_ health - Inspect the coordination worktree and symlink state, returning a
CoordinationHealthStatusthat describes any problem found. - create_
dir_ link - Create a directory symlink
dst→srcin a platform-appropriate way. - format_
health_ message - Return an actionable error message for an unhealthy coordination state, or
Nonewhen the status isCoordinationHealthStatus::HealthyorCoordinationHealthStatus::Embedded. - remove_
coordination_ symlinks - Tear down coordination symlinks and restore real directories.
- update_
gitignore_ for_ symlinks - Append coordination-symlink entries to
<project_root>/.gitignore. - wire_
coordination_ symlinks - Wire
.ito/<dir>→<worktree_ito_path>/<dir>for every coordination directory.