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
Merge pull request #2464 from DeusData/fix/route-registration-before-xlang-suppression
Martin Vogel3aef1c0bd83f
diff --cc src/pipeline/pass_parallel.cindex fada6b40f,e41278814..c6e8e0906--- a/src/pipeline/pass_parallel.c+++ b/src/pipeline/pass_parallel.c@@@ -2587,15 -2489,38 +2587,44 @@@ static void emit_service_edge(cbm_gbuf_emit_normal_calls_edge(gbuf, source, target, call, res);}- detect_url_in_args(gbuf, source, call);+ /* The arg-URL heuristic is for calls no service pattern knows (a local+ * fetch wrapper). On a classified HTTP call it only minted a method-less+ * __route__ANY__ twin of the typed edge, which cross-repo matching then+ * bound to server handlers of any method. */+ if (!http_edge_emitted) {+ detect_url_in_args(gbuf, source, call);+ }}+ /* The #725 guard refuses a suffix_match binding across a language boundary,+ * which leaves the callee unresolved. An unresolved callee the route+ * classifier recognises is still a registration: `Route::get('/x', ...)`+ * beside a JS `get`, `app.get('/x', h)` beside a Python `get`. Emit exactly+ * the Route + CALLS + HANDLES that the unresolved-callee (callee_suffix)+ * fallback in resolve_file_calls emits for it, classified by callee name the+ * same way emit_service_edge classifies that fallback, and nothing else: no+ * CALLS edge to the refused target and no URL-argument scan. Dropping the+ * whole call lost every GET registration in a mixed-language repo while POST+ * (no `post` to collide with) survived. Mirrors pass_calls.c. */+ static void emit_xlang_refused_route(cbm_gbuf_t *gbuf, const cbm_gbuf_node_t *source,+ const CBMCall *call, const char *module_qn,+ const cbm_registry_t *registry, const cbm_gbuf_t *main_gbuf,+ const char **imp_keys, const char **imp_vals, int imp_count) {+ if (cbm_service_pattern_route_method(call->callee_name) == NULL) {+ return;+ }+ cbm_svc_kind_t svc = cbm_service_pattern_match(call->callee_name);+ if (svc != CBM_SVC_NONE && svc != CBM_SVC_ROUTE_REG) {+ return;+ }+ const char *handler_ref = NULL;+ const char *route_path = find_route_path_in_args(call, &handler_ref);+ if (route_path) {+ emit_route_registration(gbuf, source, call, route_path, handler_ref, module_qn, registry,+ main_gbuf, imp_keys, imp_vals, imp_count);+ }+ }+/* Find the source node for an edge: enclosing function or file node. *//* This worker's last file-node answer. The graph buffer is read-only for the* whole of phase 4 and a file's rel_path pointer is stable within it, so the