From a74029105a8b3ff95d76f754d4d8d4097d948614 Mon Sep 17 00:00:00 2001 From: Max Hsu Date: Sun, 23 Aug 2026 00:53:36 +0800 Subject: [PATCH] fix(resolution): resolve ES imports targeting .xsjs/.xsjslib files (#556) (#594) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The extraction half of #556 — indexing `.xsjs` / `.xsjslib` as JavaScript — already landed on main via #654. This PR is now scoped to the remaining resolution gap: the JS import-resolution list did not include the SAP HANA extensions, so an extensionless `import { x } from './helpers'` in a `.xsjs` file resolved to nothing and the cross-file call edge was dropped. Add `.xsjs` / `.xsjslib` to the `javascript` entry in EXTENSION_RESOLUTION so those imports resolve to their target file and `codegraph_callers` / `codegraph_impact` see the edge. One resolution test covers the .xsjs -> .xsjslib import; the now-redundant extraction/detection tests were dropped (covered by #654). --- CHANGELOG.md | 1 + __tests__/extraction.test.ts | 48 +++++++++++++++++++++++++++++++ src/resolution/import-resolver.ts | 2 +- 3 files changed, 50 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aebf165..e8f9800 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -409,6 +409,7 @@ Full details in the entries below. - The `codegraph_search` tool's `kind: "type"` filter — a value its own schema advertises — silently matched nothing; it now correctly finds type aliases. The `codegraph_explore` tool's parameter guidance also no longer suggests running `codegraph_search` first, which contradicted explore's call-it-first design and cost agents an extra round-trip. - Symbols defined in Svelte and Vue `