omnigraph/crates/omnigraph-cli
Ragnor Comerford 81715bd420
refactor(cli): carry typed GraphLocator in ResolvedCliGraph
Make embedded-vs-remote a typed discriminant: `ResolvedCliGraph` now carries the
`GraphLocator` from `config.resolve_graph` (replacing the `is_remote: bool`
scheme-sniff field), exposed via an `is_remote()` accessor. The 9 dispatch reads
switch from `graph.is_remote` to `graph.is_remote()`.

Behavior-identical: the engine `uri`, Cedar `graph_id`, `selected`, and
`policy_file` keep their exact current computation (`resolve_target_uri` /
engine-normalized `normalize_policy_graph_uri` / `resolve_graph_selection`
coherence check) — the locator's `uri`/`graph_id`/`endpoint` DIVERGE from those
(base_dir-join, `file://` retention) and are V2 fields, so only `is_remote()` is
read here. A doc comment records that trap.

`is_remote_uri`/`resolve_uri` and the 11 raw-uri dispatch sites are untouched
(their conversion + deletion is L4). No HTTP/API change; openapi.json unchanged.
2026-06-03 16:52:05 +02:00
..
src refactor(cli): carry typed GraphLocator in ResolvedCliGraph 2026-06-03 16:52:05 +02:00
tests style: apply rustfmt across the workspace 2026-06-03 15:48:47 +02:00
Cargo.toml refactor: drop omnigraph-cli dependency on omnigraph-server 2026-06-03 11:34:21 +02:00