Expand description
Cycles command implementation.
Provides the CLI interface for finding circular dependencies in the codebase.
§Dispatch path (DB19)
cycles is a name-keyed predicate under the Phase 3C dispatch
taxonomy: the question is “which strongly connected components match
this edge kind and these bounds”, which is the planner-canonical
contract that sqry-db’s sqry_db::queries::CyclesQuery caches
(keyed on sqry_db::queries::CyclesKey). The CLI handler acquires
a per-call sqry_db::QueryDb via
sqry_db::queries::dispatch::make_query_db, dispatches
CyclesQuery, and materializes the returned
sqry_core::graph::unified::node::NodeId vectors into the
qualified-name shape the JSON / text output uses.
This mirrors the MCP execute_find_cycles pattern exactly so CLI
and MCP share one cache behavior on the same snapshot. The legacy
find_all_cycles_graph call path was removed in DB19 (2026-04-15).
Functions§
- run_
cycles - Run the cycles command.