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: resolve builder calls and template literals in per-arg values too
Charles Queiroz5bbc7b7c140c
diff --git a/internal/cbm/extract_calls.c b/internal/cbm/extract_calls.cindex 56593f0c9..9d83ed0b6 100644--- a/internal/cbm/extract_calls.c+++ b/internal/cbm/extract_calls.c@@ -1855,8 +1855,22 @@ static void extract_call_args(CBMExtractCtx *ctx, TSNode args, CBMCall *call) {ca->index = positional_idx++;if (is_string_like(ak) && ca->expr) {ca->value = strip_quotes(ctx->arena, ca->expr);+ } else if (strcmp(ak, "template_string") == 0) {+ /* Flattened {} form so downstream url-arg detection joins the+ * canonical server route shape (issue #1006/#1009). */+ ca->value = cbm_template_string_text(ctx->arena, arg_node, ctx->source);} else if (strcmp(ak, "identifier") == 0 && ca->expr) {ca->value = lookup_string_constant(ctx, ca->expr);+ } else if (strcmp(ak, "call_expression") == 0) {+ /* URL-builder helper call (issue #1009): resolve+ * client(buildPath(id)) through the per-file builder map. */+ TSNode fn = ts_node_child_by_field_name(arg_node, TS_FIELD("function"));+ if (!ts_node_is_null(fn) && strcmp(ts_node_type(fn), "identifier") == 0) {+ char *fname = cbm_node_text(ctx->arena, fn, ctx->source);+ if (fname) {+ ca->value = lookup_string_constant(ctx, fname);+ }+ }}call->arg_count++;}