omnigraph/crates/omnigraph-cli
Ragnor Comerford 059fbe4c4a
feat(config,cli): global-first layered config load
Add load_layered_config: load the global ~/.omnigraph/config.yaml layer under the
project ./omnigraph.yaml (or --config) layer and merge them, returning the merged
config, its provenance, and per-layer deprecation warnings. The CLI's load_cli_config
now uses it — so a graph/server/defaults defined only in the global config is usable
from any directory with no project file. The server stays single-layer (a deployment
manifest must not pick up ambient $HOME state).

Global and cwd-default files are optional (absent = no layer); an explicit project
--config still errors if missing. base_dir stays the highest loaded layer's config
dir so relative ad-hoc --query paths resolve as before. The CLI test harness pins
OMNIGRAPH_HOME to an empty temp dir so tests never read the developer's real global
config.
2026-06-05 11:31:10 +02:00
..
src feat(config,cli): global-first layered config load 2026-06-05 11:31:10 +02:00
tests feat(config,cli): global-first layered config load 2026-06-05 11:31:10 +02:00
Cargo.toml refactor: drop omnigraph-cli dependency on omnigraph-server 2026-06-03 11:34:21 +02:00