Expand description
Every control path this tool names, declared once.
Two kinds of path meet here and stay apart. A control path is this tool’s own: the instance directory, the declaration, the debt files, the hook configuration, the agent digest, the state and cache roots, and the agent skill roots. A destination is what a release projects into a target, and it is versioned data rather than a constant, so it stays with the projection and reaches this module only as a resolved value.
The module is otherwise pure. It reads no filesystem. It reads the
process environment in exactly one place, UserEnv::from_process, so
every resolver below takes the environment as an argument and a test
constructs one instead of mutating the process.
Structs§
- Active
Paths - One landed instance’s paths, as the record and the environment leave them.
- Agent
Root - One agent skill root, and what relocates it.
- Agent
Root Entry - One resolved agent skill root.
- Candidate
Paths - One profile’s destinations, derived and recorded nowhere.
- Instance
Paths - Every control and documentation destination inside one target.
- Path
Entry - One resolved path, and what decided it.
- Paths
- Every path this binary can name for one target and one user.
- Proposals
- The choices this target offers for the two locations it owns.
- UserEnv
- What the process environment carries, read once and passed down.
- User
Paths - Every user-scope path, resolved.
Enums§
- AgentId
- Which agent family a skill root serves.
- Location
Choice - One answer the operator can give for a location the project owns.
- Path
Source - What decided a path.
- Project
Location - Where a location the project owns actually sits.
Constants§
- AGENTS_
DIGEST_ PATH - Where the documentation block lives in a target.
- AGENTS_
ROOT - The skill root every other agent reads, relative to the home directory.
- AGENT_
ROOTS - Every agent skill root this tool writes, in report order.
- BACKUPS_
DIR - Where a transaction copies what it is about to replace.
- BUNDLE_
CACHE_ DIR - The verified release bundles, relative to the cache root.
- CACHE_
ROOT - The cache root, relative to the home directory, where no variable moves it.
- CLAUDE_
CONFIG_ DIR_ VAR - The variable relocating Claude Code’s whole configuration directory.
- CLAUDE_
ROOT - The skill root Claude Code reads, relative to the home directory.
- CONFIG_
PATH - Where an instance keeps its declaration.
- DEBT_
PATH - Where an instance keeps its debt.
- DOCS_
SCRATCH_ LEAVES - The directories a target already carries that a docs scratch could be.
- DOCS_
SCRATCH_ VAR - The variable that names the docs scratch.
- HOME_
VAR - The variable naming the invoking user’s home directory.
- HOOKS_
CONFIG_ PATH - Where a pre-commit configuration lives in a target.
- INSTANCE_
DIR - The instance directory, relative to the instance root.
- LEGACY_
DEBT_ PATH - The flat list of exempt chapters an older instance carries.
- LEGACY_
SHARED_ ROOT - The retired root that once held what every skill shares.
- LEGACY_
SKILL_ RECEIPT_ PATH - The user-scope skill receipt at the home-relative path, read once.
- MANIFEST_
PATH - The manifest path, relative to the instance root.
- OFFLINE_
VAR - The variable that tells this tool to reach no network.
- PLAN_
STORE_ DIR - The plan store, relative to the state root.
- PLAN_
ZONE_ LEAVES - The directories a target already carries that a plan zone could be.
- PLAN_
ZONE_ VAR - The variable that names the plan zone.
- PRUNABLE_
ROOTS - The only roots an upgrade may remove dropped managed files from.
- SKILL_
FILE - The one file every skill package must carry.
- SKILL_
JOURNAL_ FILE - The user-scope journal, relative to the state root.
- SKILL_
LOCK_ FILE - The user-scope lock, relative to the state root.
- SKILL_
RECEIPT_ FILE - The user-scope skill receipt, relative to the state root.
- SKILL_
REFERENCES_ DIR - Where a skill package holds what the shared source materialized into it.
- STATE_
ROOT - The state root, relative to the home directory, where no variable moves it.
- TOOL_
DIR - This tool’s directory name under a base directory.
- XDG_
CACHE_ HOME_ VAR - The variable naming the XDG cache base directory.
- XDG_
STATE_ HOME_ VAR - The variable naming the XDG state base directory.
Functions§
- agent_
root - The agent root one identifier names.
- candidates
- One profile’s derived destinations, per profile, keyed by its name.
- docs_
scratch_ location - Where the record says the docs scratch sits.
- instance_
paths - Every destination one documentation root implies.
- plan_
zone_ location - Where the record says the plan zone sits.
- proposals
- What this target offers for the two locations the project owns.
- recorded_
paths - The same destinations, marked as the record’s rather than a profile’s.
- variable
- What one variable carries, or
Nonewhere it is unset or blank.