refactor: extract omnigraph-config crate from omnigraph-server

Move config.rs (schema + loader + resolvers) into a new clean-leaf crate
(serde/serde_yaml/clap/color-eyre). The server aliases it via
`pub use omnigraph_config as config;` so every internal `config::` path and
the `pub use config::{...}` re-exports resolve unchanged. No behavior change;
the 12 config tests move verbatim and pass. First step of RFC-002 V0.
This commit is contained in:
Ragnor Comerford 2026-06-02 23:49:40 +02:00
parent 54bbe902e5
commit c5ea4875d5
No known key found for this signature in database
6 changed files with 33 additions and 1 deletions

12
Cargo.lock generated
View file

@ -4584,6 +4584,17 @@ dependencies = [
"tokio",
]
[[package]]
name = "omnigraph-config"
version = "0.6.1"
dependencies = [
"clap",
"color-eyre",
"serde",
"serde_yaml",
"tempfile",
]
[[package]]
name = "omnigraph-engine"
version = "0.6.1"
@ -4654,6 +4665,7 @@ dependencies = [
"lance",
"lance-index",
"omnigraph-compiler",
"omnigraph-config",
"omnigraph-engine",
"omnigraph-policy",
"regex",