omnigraph/crates/omnigraph-cli
Ragnor Comerford e2924e7f90
refactor(cli): dispatch remaining commands on the typed locator
Convert the 6 commands that still scheme-sniffed a raw URI — commit list, commit
show, schema show, snapshot, export, graphs list — from `resolve_uri` +
`is_remote_uri(&uri)` to `resolve_cli_graph` + `graph.is_remote()`, matching the
pattern the other 8 commands already use (`let uri = graph.uri.clone()`). The
scheme sniff is no longer a dispatch decision; `is_remote_uri` now survives only
inside `normalize_policy_graph_uri` (Cedar id), and `resolve_uri` only inside
`resolve_cli_graph` and the local-only optimize/cleanup paths.

Behavior-preserving on the open path: local branches keep plain `Omnigraph::open`
(these are reads — unlike writes, they don't attach policy). One intentional
consistency delta: routing through `resolve_cli_graph` means these commands now
apply the same top-level-block coherence check every other command applies — but
only for a named-graph invocation with a populated top-level `policy`/`queries`
block; positional invocations are byte-identical. No HTTP/API change.
2026-06-03 17:14:23 +02:00
..
src refactor(cli): dispatch remaining commands on the typed locator 2026-06-03 17:14:23 +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