omnigraph/crates
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
..
omnigraph style: apply rustfmt across the workspace 2026-06-03 15:48:47 +02:00
omnigraph-api-types style: apply rustfmt across the workspace 2026-06-03 15:48:47 +02:00
omnigraph-cli refactor(cli): dispatch remaining commands on the typed locator 2026-06-03 17:14:23 +02:00
omnigraph-compiler fix(optimize): skip blob-bearing tables to avoid Lance compaction crash (#138) 2026-06-02 17:12:00 +02:00
omnigraph-config fix(config): gate unknown-field strictness on version via serde_ignored 2026-06-03 16:26:49 +02:00
omnigraph-policy fix(optimize): skip blob-bearing tables to avoid Lance compaction crash (#138) 2026-06-02 17:12:00 +02:00
omnigraph-queries style: apply rustfmt across the workspace 2026-06-03 15:48:47 +02:00
omnigraph-server style: apply rustfmt across the workspace 2026-06-03 15:48:47 +02:00