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 branch 'main' into fix/1355-external-import-shadow
Yyunozor9d53f32dc175
diff --cc src/pipeline/pass_calls.cindex 508db7310,84958954c..1163417b3--- a/src/pipeline/pass_calls.c+++ b/src/pipeline/pass_calls.c@@@ -634,22 -641,16 +642,28 @@@ static int resolve_single_call(cbm_pipe* flag is set only for Python — this gate MUST match pass_parallel.c's* exactly, for the same divergence reason noted above. */bool suppress_weak_local_binding = lang == CBM_LANG_PYTHON;+ /* The member guard's one exemption (Python, self/cls-rooted receiver,+ * unique_name, not a builtin type's method) — see+ * cbm_weak_member_unique_name_exempt. MUST match pass_parallel.c exactly. */+ /* #1355: `import { eq } from "drizzle-orm"` binds `eq` to a package that is+ * not in the indexed tree, so a project-wide same-name guess must not turn+ * `eq(...)` into a CALLS edge to an unrelated project `eq`. Joined to+ * drop_plain_call for the reason spelled out above: dropping the call here+ * would also skip route/HTTP/CONFIG classification, and a route+ * registration reached through a static import (`import static+ * spark.Spark.get` + `get("/x", handler)`) is exactly a bare call bound by+ * a package specifier. Suppressing only the plain-CALLS fall-through keeps+ * every Route node and service edge main-identical. */bool drop_plain_call =- cbm_suppress_weak_member_match(suppress_weak_member, call->is_method, res.strategy) ||+ (cbm_suppress_weak_member_match(suppress_weak_member, call->is_method, res.strategy) &&+ !cbm_weak_member_unique_name_exempt(lang == CBM_LANG_PYTHON,+ call->receiver_is_self_attribute, call->callee_name,+ res.strategy)) ||cbm_suppress_weak_local_binding_call(suppress_weak_local_binding,- call->callee_is_locally_bound, res.strategy);+ call->callee_is_locally_bound, res.strategy) ||+ cbm_suppress_external_import_shadow(call->callee_name, res.strategy, file_imports, imp_keys,+ imp_count, cbm_pipeline_get_pkgmap(),+ cbm_pipeline_get_nsmap());/* Service-pattern HTTP/ASYNC calls to an EXTERNAL client library (e.g.* `requests.get("/api/orders/{id}")`) resolve to a QN containing the librarydiff --cc src/pipeline/pass_parallel.cindex 82216bb04,e85ad015f..df3805ffd--- a/src/pipeline/pass_parallel.c+++ b/src/pipeline/pass_parallel.c@@@ -2939,18 -2950,14 +2954,22 @@@ static void resolve_file_calls(resolve_/* Bare-call local-binding suppression — see the note in pass_calls.c.* This gate MUST stay identical to the one there. */bool suppress_weak_local_binding = lang == CBM_LANG_PYTHON;+ /* The member guard's one exemption — MUST match pass_calls.c exactly. */+ /* #1355: same guard as pass_calls.c, and joined to drop_plain_call for+ * the same reason — a `continue` here would also skip route/HTTP/CONFIG+ * classification, and a static-import route registration is a bare call+ * bound by a package specifier. Suppress only the plain-CALLS+ * fall-through so every Route node stays main-identical. */bool drop_plain_call =- cbm_suppress_weak_member_match(suppress_weak_member, call->is_method, res.strategy) ||+ (cbm_suppress_weak_member_match(suppress_weak_member, call->is_method, res.strategy) &&+ !cbm_weak_member_unique_name_exempt(lang == CBM_LANG_PYTHON,+ call->receiver_is_self_attribute,+ call->callee_name, res.strategy)) ||cbm_suppress_weak_local_binding_call(suppress_weak_local_binding,- call->callee_is_locally_bound, res.strategy);+ call->callee_is_locally_bound, res.strategy) ||+ cbm_suppress_external_import_shadow(call->callee_name, res.strategy, &result->imports,+ imp_keys, imp_count, cbm_pipeline_get_pkgmap(),+ cbm_pipeline_get_nsmap());/* Service-pattern HTTP/ASYNC client call (`requests.get(url)`): the* service signal lives in the callee_name. The registry can mis-resolve