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 #2704 head 67e53d0e into fix/py-namespace-string-future-facts (pick up #2697)
Martin Vogelbf56fcfd1404
diff --cc internal/cbm/cbm.hindex 4a72ce36c,504bda4fc..25aaed2cd--- a/internal/cbm/cbm.h+++ b/internal/cbm/cbm.h@@@ -401,12 -403,17 +403,21 @@@ typedef structCBMImportKind kind; // CBM_IMPORT_KIND_DEFAULT unless the syntax names a member kind} CBMImport;+ /* True when an import binds its local name at runtime. A Python import under+ * `if TYPE_CHECKING:` exists for annotations only: a call through that name+ * cannot happen, so no CALLS import map may bind it (an import_map edge+ * through it would be fabricated by construction). THE one rule every CALLS+ * import-map builder applies. */+ static inline bool cbm_import_binds_runtime_name(const CBMImport *imp) {+ return imp && !imp->type_checking_only;+ }+-/* Content-only ordered Python namespace facts; no resolved target identities. */-#define CBM_PY_NAMESPACE_FACTS_VERSION 1u+/* Content-only ordered Python namespace facts; no resolved target identities.+ * The version travels in the lsp_surface "py" payload, and a stored payload of+ * another version does not decode: an incremental run then re-extracts in full,+ * so stored facts of an older extraction never mix with fresh ones.+ * 2: string-literal statements are no effect; `from __future__` imports bind. */+#define CBM_PY_NAMESPACE_FACTS_VERSION 2utypedef enum {CBM_PY_NS_NOT_CAPTURED = 0,