Topological order (safe change order)
codetopo_topo_sortCompute a safe dependency order for code-schema groups, returning topological groups and flagging cycles so you can plan changes without disguising cyclic dependencies.
Instructions
The safe change order of the graph: topological order of the SCC-condensed CODE_SCHEMA section 9 dependency DAG (Kahn's algorithm over Tarjan components). Groups are emitted in dependency order - every dependency of a group appears in an earlier group - members sorted by id. A multi-node group is a dependency cycle and is flagged cyclic, never disguised as an order.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"db_path": "<db_path>"
},
"name": "codetopo_topo_sort"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db_path | Yes | Path to the index database. |