From 3057755426ae400a0f05c0e4d0acfb52f9006fc8 Mon Sep 17 00:00:00 2001 From: wandl-6A72h Date: Sun, 7 Jun 2026 14:50:09 +0800 Subject: [PATCH 01/10] add zig support --- CHANGELOG.md | 1 + __tests__/zig-extraction.test.ts | 285 +++++++++++++++++++++++ src/extraction/grammars.ts | 6 +- src/extraction/languages/index.ts | 2 + src/extraction/languages/zig.ts | 181 ++++++++++++++ src/extraction/wasm/tree-sitter-zig.wasm | Bin 0 -> 693809 bytes src/types.ts | 1 + 7 files changed, 475 insertions(+), 1 deletion(-) create mode 100644 __tests__/zig-extraction.test.ts create mode 100644 src/extraction/languages/zig.ts create mode 100755 src/extraction/wasm/tree-sitter-zig.wasm diff --git a/CHANGELOG.md b/CHANGELOG.md index e63b7d152..1a130c551 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -73,6 +73,7 @@ and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - CodeGraph's MCP server now answers an agent's `resources/list` and `prompts/list` probes with an empty list instead of an error, clearing the `-32601` messages some clients (opencode, Codex) logged on connect. (#621) - Svelte and Vue components used through a barrel file — `export { default as Button } from './Button.svelte'` re-exported from an `index.ts` and imported elsewhere — are no longer falsely reported as having **0 callers**. CodeGraph now follows the default re-export all the way to the component and resolves the imports that `.svelte` / `.vue` files themselves use, so `codegraph_callers` and `codegraph_impact` see every place a component is used. This also covers components imported from another package in a workspace/monorepo (`@scope/ui/widgets`) and bare directory imports (`import { x } from './'`). Previously a live component consumed only through a barrel looked like dead code. Thanks @nakisen. (#629) - Components used in a Vue Single-File Component's `