Skip to content

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.

Merge origin/main into feat/infra-graph

Martin Vogel2d291002df00
diff --cc internal/cbm/cbm.h
index b12b50874,f5b90a1f5..d1f71f948
--- a/internal/cbm/cbm.h
+++ b/internal/cbm/cbm.h
@@@ -708,8 -681,8 +729,9 @@@ typedef struct CBMFileResult
CBMResolvedCallArray resolved_calls; // LSP-resolved invocations/references (high confidence)
CBMStringRefArray string_refs; // URL/config string literals from AST
CBMInfraBindingArray infra_bindings; // topic→URL pairs from IaC configs
+ CBMK8sFactArray k8s_facts; // Kubernetes references and CRD declarations
CBMChannelArray channels; // Socket.IO / EventEmitter pub/sub participation
+ CBMDiagramArrowArray diagram_arrows; // arrows between the file's DiagramElement defs
CBMFieldTypeArray field_types; // Python: annotated instance fields (#1277)
const char *module_qn; // module qualified name
diff --cc internal/cbm/extract_defs.c
index f3e651c74,e046bca83..e78b2cafe
--- a/internal/cbm/extract_defs.c
+++ b/internal/cbm/extract_defs.c
@@@ -7044,9 -7113,9 +7236,9 @@@ static bool extract_config_class_def(CB
// "Class"; that assertion is the inaccurate side and is flagged for review.
label = "Section";
// #518: index what the section SAYS, not just its title.
- docstring = extract_markdown_section_body(a, node, ctx->source);
+ docstring = extract_markdown_section_body(ctx, node);
} else if (ctx->language == CBM_LANG_HCL && strcmp(kind, "block") == 0) {
- name = find_hcl_block_name(a, node, ctx->source);
+ name = hcl_block_is_top_level(node) ? find_hcl_block_name(a, node, ctx->source) : NULL;
} else {
return false;
}
diff --cc src/discover/language.c
index f13acbc16,eb1284c06..e3f87cad7
--- a/src/discover/language.c
+++ b/src/discover/language.c
@@@ -714,8 -722,9 +725,10 @@@ typedef struct
static const filename_entry_t FILENAME_TABLE[] = {
{"CMakeLists.txt", CBM_LANG_CMAKE},
+ {"Containerfile", CBM_LANG_DOCKERFILE},
{"Dockerfile", CBM_LANG_DOCKERFILE},
+ {"openapi.json", CBM_LANG_OPENAPI}, /* API descriptions: their operations, not each key */
+ {"swagger.json", CBM_LANG_OPENAPI},
{"GNUmakefile", CBM_LANG_MAKEFILE},
{"Makefile", CBM_LANG_MAKEFILE},
{"makefile", CBM_LANG_MAKEFILE},