A large batch across community pull requests: extractor accuracy (C#, TypeScript, Rust, COBOL, Python), node-id and edge correctness on incremental rebuilds, a self-contained Canvas renderer for large graphs, and a wave of byte-identical performance work. The C#, TypeScript, Rust, COBOL and Python changes alter node/edge output, so the AST cache schema bumps (56 to 57) and those languages re-extract on the first build after upgrading; everything else needs no rebuild.
Features
- serve/viz
graph.htmlgains a self-contained Canvas 2D renderer for large graphs: above the vis-network comfort threshold (and within--node-limit/GRAPHIFY_VIZ_NODE_LIMIT) it emits a deterministic, community-packed Canvas view with viewport culling and sparse labels at low zoom, embedded as a base64 payload with no external scripts. Small graphs keep the existing vis-network output (#5521, thanks @GwungTz).
Extractor fixes
- csharp a call through a namespace-qualified receiver (
Acme.Audio.Mixer.Instance.Play(),Acme.Audio.Mixer.Reset(), or avar m = Acme.Audio.Mixer.Instance; m.Play()chain, plus null-conditional forms) resolves through the named type the same way the short name underusingalready did, binding the exact namespace and failing closed on an unknown or ambiguous path (#5473, thanks @aliyapici). - typescript a named object type alias (
type Port = { read(): number }, including an unqualifiedReadonly<{...}>) retains its method signatures as method nodes so a typed-receiver call resolves to them, while the signatures stay out of bare-call, static-call and module-symbol lookup (#5455, thanks @rvitaliy). - typescript an extensionless import of a declaration file (
./types/api, or a tsconfigpathsalias) resolves to the adjacent.d.ts/index.d.tsinstead of a sourceless stub, with a real implementation file still winning the guess (#5472, thanks @Deepjyoti-Sarmah). - rust a
useof a module path or a groupedself(use krate::m::{self, X},use crate::a::b) resolves to the real module-file node (m.rs/m/mod.rs) instead of a sourceless bare-name stub, with external-crate paths still failing closed (#5398, thanks @Deepjyoti-Sarmah). - python a function-local import's shadow climbs every enclosing function scope, so a bare call in a nested def is still shadowed by an outer function's import instead of falling back to a same-named module-level twin (#5421 follow-up, thanks @ayushcodes10).
- cobol a
PERFORM A THRU Zlinks every paragraph in the range (not only the endpoints, and nothing outside it); a procedure copybook's own paragraphs and intra-copybook PERFORMs are extracted; and aPERFORMbetween a program and its copybook resolves cross-file, fail-closed on an unknown or ambiguous target (#5424, #5425, #5426, thanks @pavansystems).
Correctness fixes
- incremental same-stem files (
math.c/math.h,index.ts/index.js) keep the same node ids on a changed-files rebuild as on a full build: the colliding files are re-extracted together so disambiguation sees the whole group, and a deleted sibling drops its partner back to the bare id (#5464, thanks @0xkaushik-ai). - extract the XAML code-behind class no longer keeps an absolute-checkout-path id (or duplicates) when only the
.xamlfile is re-extracted; out-of-batch source files are canonicalized in the id-remap (#5466, thanks @0xkaushik-ai). - extract the decl/def fold's edge de-dup is scoped to the merged ids, so folding a header/impl pair no longer drops unrelated edges (a recursive self-call, or same-stem
.cu/.metalmember edges) order-dependently (#5468, thanks @0xkaushik-ai). - watch the event path is resolved so a manual observer matches events under a symlinked root (#5498, thanks @madhusudanpatnaik).
- build a different-relation edge winner no longer inherits the replaced edge's
also_seenand score (#5490, thanks @poberherr). - analyze
graph_diffhandles mixed int/str node IDs and MultiGraph parallel edges instead of crashing or overwriting (#5512, thanks @Gaurav-meena95). - cargo a member crate's
dependency.workspace = trueresolves inherited deps against the workspace manifest dir rather than the scan root (#5496, thanks @madhusudanpatnaik). - graphdb a node with a null
file_typeor an edge with a nullrelationno longer crashes label/relation formatting (#5497, thanks @madhusudanpatnaik).
Performance (output byte-identical)
- build per-file stems and alias work are cached with a sentinel map in
_alias_index, and edge-endpoint suffixes are memoized per source_file (#5492, #5494, thanks @madhusudanpatnaik). - paths large top-level JSON lists are written in C-encoded chunks for lower peak memory (#5493, thanks @madhusudanpatnaik).
- report edge and node scans are folded into single passes with a memoized
_real_node(#5495, thanks @madhusudanpatnaik). - detect ignore, symlink and paper checks are sped up (3000-char paper read, lexical relative-path containment, a POSIX non-symlink fastpath) (#5499, thanks @madhusudanpatnaik).
- cluster
score_allis computed in a single O(|E|) pass without per-community SubGraphViews, and canonical edges are passed straight to native Leiden without rebuilding the stable graph (#5510 thanks @Gaurav-meena95, #5401 thanks @Max17190). - export
to_graphmlfast-paths XML sanitization and cleans nodes/edges in one pass, and the NetworkX loader releases graph rows as it consumes them (#5511 thanks @Gaurav-meena95, #5434 thanks @Max17190). - callflow archetype keywords are counted in one word-scan pass instead of a regex per keyword (#5433, thanks @Max17190).