Fixed
- graph.db and graph.meta.json now honor LEAN_CTX_DATA_DIR — Property graph files are stored in
$DATA_DIR/graphs/<project_hash>/(consistent with the JSON graph index). Transparent migration moves existing files from<project>/.lean-ctx/on first access.CodeGraph::open()signature changed from&Pathto&str. All 12+ call sites updated. Hardcoded.lean-ctx/graph.dbstrings inctx_impactandctx_architecturereplaced with actual resolved paths. Fixes #205. - Graph index UX: correct labels and configurable cap —
lean-ctx gainnow shows "files" instead of misleading "nodes" when using the JSON graph index fallback. A "(capped)" suffix appears when the file scan limit is reached. New config keygraph_index_max_files(default: 5000, up from hardcoded 2000). Warning emitted when cap is hit. Fixes #206. - Config documentation accuracy — Removed phantom
[compaction]section and non-existent[archive]fields from website docs. Corrected wrong defaults (compression_level: "off" not "standard",buddy_enabled: true not false,custom_aliasesfields:command/aliasnotname/command,loop_detection.blocked_threshold: 0 not 6,autonomy.consolidate_cooldown_secs: 120 not 300). Added missing sections ([cloud],[proxy],[memory.*], etc.). Fixes #208.
Added
- Dashboard expandable event details — Event cards in the Live Observatory are now clickable with an accordion pattern. Expanded panels show all available metrics: token savings bar, compression strategy, before/after lines, mode, path, duration. New
/api/events/:idendpoint for lazy-loading full event details. Implements #207. lean-ctx config schema— New CLI command that outputs a complete JSON schema of all configuration keys, types, defaults, descriptions, and env var overrides. Single source of truth for config documentation.lean-ctx config validate— New CLI command that validatesconfig.tomlagainst the schema. Warns about unknown keys with Levenshtein-distance "did you mean?" suggestions. Exit code 1 on errors (CI-friendly).- Graph property graph tests — 6 new tests covering
graph_dir()with/withoutLEAN_CTX_DATA_DIR, transparent migration (move and skip-when-exists),meta_path()integration, andCodeGraph::open()with custom data directory.
Upgrade
lean-ctx update # recommended (auto-downloads + refreshes shell hooks)
cargo install lean-ctx # or
npm update -g lean-ctx-bin # or
brew upgrade lean-ctxNote: After upgrading via cargo/npm/brew, run
lean-ctx setupto refresh shell aliases.lean-ctx updatedoes this automatically.
Full Changelog: v3.5.21...v3.5.21