Skip to main content

Module workspace_paths

Module workspace_paths 

Source
Expand description

Workspace layout paths (.malvin/ tree) and home-directory run logs.

Constants§

MALVIN_ADVICE_REL
MALVIN_CHECKS_REL
MALVIN_CONFIG_REL
Workspace-local config (distinct from malvin_home_config_path).
MALVIN_DIR
MALVIN_HOME_CONFIG_FILE
Global user config filename under malvin_user_home_root.
MALVIN_LOGS_REL
Legacy repo-relative logs path (pre-relocation); retained for docs and migration tests.
MALVIN_SNAPSHOTS_DIR
~/.malvin/snapshots/ — session dotfile backups (checks, gitignore tree, workspace config, etc.).
MALVIN_TEST_ALLOW_HOME_CONFIG_MUTATION
When set to 1 during cargo test, code may create/write/delete ~/.malvin_home/config.toml.
MALVIN_USER_HOME_DIR
Per-user malvin data root under $HOME (logs, config, names, dotfile snapshots).
WORK_DIR_MANIFEST
Run-directory file recording the canonical workspace cwd for this run.

Functions§

canonical_work_dir_for_logs
find_malvin_logs_root
Returns the home logs bucket for start when it already exists.
git_worktree_toplevel
Git repository root for work_dir, when git rev-parse --show-toplevel succeeds.
is_malvin_workspace
legacy_malvin_checks_path
Legacy cwd-relative checks path (pre git-root relocation).
malvin_acp_spawn_chamber_dir
.malvin/acp_spawn/ chamber under the resolved layout dir.
malvin_advice_path
malvin_checks_path
Primary .malvin/checks path under malvin_data_root (git) or ~/.malvin/checks (non-git).
malvin_config_path
~/.malvin_home/config.toml (global user config; work_dir is ignored).
malvin_data_root
Git worktree root when inside a repo, else ~/.malvin/ (shared for non-git workspaces).
malvin_home_config_path
malvin_home_logs_root
malvin_home_snapshots_root
malvin_logs_root
~/.malvin_home/logs/<hash>/ for the canonical absolute path of work_dir.
malvin_user_home_root
~/.malvin_home/.
read_work_dir_manifest
Reads the workspace cwd recorded for a run, if present.
remove_legacy_malvin_checks_file
Removes pre-migration root .malvin_checks if present (no legacy fallback reads).
resolve_malvin_checks_path
Primary checks file when present, else legacy cwd-relative file, else primary for create.
snapshot_category_dir
workspace_logs_hash
Alphanumeric (hex) digest of the canonical absolute path of work_dir.
write_work_dir_manifest
Writes the canonical workspace path into a run directory manifest.