Skip to main content

Crate tracevault_cli

Crate tracevault_cli 

Source

Modules§

agent
The AI coding agent a hook invocation belongs to. Carries the two agent-specific values stamped on an outgoing StreamEventRequest: the tool name (which the server keys its adapter off) and the protocol_version. Everything else in the capture path is agent-agnostic.
api_client
commands
config
context
credentials
hooks
paths
resolution
Detached/workspace-mode repo resolution: turn a filesystem path into a RepoBinding (via the path’s git remote + the server), and pick the effective binding for an event/command from the precedence chain (--path flag → subagent worktree override → session active → bound .tracevault/config.toml). See design §2/§3/§4.
session_state
Per-session workspace-mode state: which repo a roaming/detached Claude Code session is currently bound to. Persisted outside any repo so it survives a session that changes directories. Set by tracevault repo switch (sub-plan B); read by stream/commands as a resolution fallback.
user_default
User-level default repo binding: a session-independent binding any Claude Code session inherits when nothing more specific resolves. Set by tracevault repo switch --user (or a no-session repo switch); read by stream/repo status as the lowest-precedence tier. Lets a container bind its repo before Claude launches — no session id required.
user_project_default
User-level default project binding: a session-independent binding any Claude Code session inherits when nothing more specific resolves. Set by tracevault project switch --user (or a no-session project switch); read by project status as the lowest-precedence tier. (The capture path — stream hooks — does not yet consume this; wiring the resolved project into ingest is future work, tracked separately from this binding store.) Lets a container bind its project before Claude launches — no session id required.