Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
fix(store): include USAGE edges in degree filter
Martin Vogel485f8cdd91e3
diff --git a/src/store/store.c b/src/store/store.cindex 1c8434726..97c25482b 100644--- a/src/store/store.c+++ b/src/store/store.c@@ -2278,9 +2278,9 @@ int cbm_store_search(cbm_store_t *s, const cbm_search_params_t *params, cbm_searconst char *select_cols = "SELECT n.id, n.project, n.label, n.name, n.qualified_name, ""n.file_path, n.start_line, n.end_line, n.properties, ""(SELECT COUNT(*) FROM edges e WHERE e.target_id = n.id AND "- "e.type = 'CALLS') AS in_deg, "+ "e.type IN ('CALLS', 'USAGE')) AS in_deg, ""(SELECT COUNT(*) FROM edges e WHERE e.source_id = n.id AND "- "e.type = 'CALLS') AS out_deg ";+ "e.type IN ('CALLS', 'USAGE')) AS out_deg ";char where[CBM_SZ_2K] = "";search_bind_t binds[ST_SEARCH_MAX_BINDS];