Skip to main content

Module paths

Module paths 

Source

Structs§

ProjectPaths

Functions§

default_project_id
discover_repo_root
display_path
Strip the Windows \\?\ extended-path prefix from a path string for display purposes only. The stored/internal path is never modified.
git_init_boundary
v0.8: make dir a standalone git repository (best-effort) so discover_repo_root resolves to dir itself instead of climbing to an enclosing repo. Two callers:
pin_discover_to_root
Pin discovery to at_root semantics process-wide (remote server calls once at startup): every ProjectPaths::discover call thereafter behaves like ProjectPaths::at_root — no git subprocess, never climbs to an enclosing repo. Idempotent.
user_brain_db_path
v0.4.1: full path to the user-scope brain.db.
user_brain_enabled
v0.4.1: returns true when the user brain is enabled.
user_brain_enabled_with
W3.3: config-aware user-brain gate. Resolution precedence:
user_cache_dir_for
W2: per-project cache root for transient, non-brain artifacts (proactive hook state, chat REPL output, benchmark output).
user_kimetsu_dir
v0.4.1: return the user-scope kimetsu directory (~/.kimetsu/).