gitnexus 1.6.6-rc.71 → 1.6.6-rc.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/ingestion/languages/typescript/import-target.d.ts +3 -0
- package/dist/core/ingestion/languages/typescript/import-target.js +1 -1
- package/dist/core/ingestion/languages/typescript/scope-resolver.js +5 -1
- package/package.json +1 -1
- package/web/assets/{agent-BNViyptx.js → agent-ztCmSzAP.js} +55 -55
- package/web/assets/{architectureDiagram-UL44E2DR-DO5inHmm.js → architectureDiagram-UL44E2DR-UbBGKtKc.js} +1 -1
- package/web/assets/{chunk-LCXTWHL2-DhdrdQ7D.js → chunk-LCXTWHL2-CNag8uwS.js} +1 -1
- package/web/assets/{chunk-RG4AUYOV-DBj3-_VI.js → chunk-RG4AUYOV-BsPxAzSB.js} +1 -1
- package/web/assets/{classDiagram-KGZ6W3CR-BTB1tQAy.js → classDiagram-KGZ6W3CR-hyXalbgI.js} +1 -1
- package/web/assets/{classDiagram-v2-72OJOZXJ-V77T4eMR.js → classDiagram-v2-72OJOZXJ-BZvBt1Jw.js} +1 -1
- package/web/assets/{diagram-3NCE3AQN-4wwT76SR.js → diagram-3NCE3AQN-BPy1qvxM.js} +1 -1
- package/web/assets/{diagram-GF46GFSD-1KA4CdVb.js → diagram-GF46GFSD-DHZvmDr6.js} +1 -1
- package/web/assets/{diagram-QXG6HAR7-DyJXA8oH.js → diagram-QXG6HAR7-h2JaRLwM.js} +1 -1
- package/web/assets/{diagram-WEQXMOUZ-SaMOxwEm.js → diagram-WEQXMOUZ-BQasYj8c.js} +1 -1
- package/web/assets/{erDiagram-L5TCEMPS-CQrHY5G4.js → erDiagram-L5TCEMPS-CKNmoGli.js} +1 -1
- package/web/assets/{flowDiagram-H6V6AXG4-D76sobt4.js → flowDiagram-H6V6AXG4-BUtBrFuB.js} +1 -1
- package/web/assets/{index-C0tkkul6.js → index-BTynj0rU.js} +6 -6
- package/web/assets/{infoDiagram-3YFTVSEB-DSjuC3eN.js → infoDiagram-3YFTVSEB-FmBeKKHR.js} +1 -1
- package/web/assets/{ishikawaDiagram-BNXS4ZKH-BRvPjFcQ.js → ishikawaDiagram-BNXS4ZKH-CBIehaQ8.js} +1 -1
- package/web/assets/{kanban-definition-75IXJCU3-CvhjvMdi.js → kanban-definition-75IXJCU3-BkQHGPDZ.js} +1 -1
- package/web/assets/{mindmap-definition-2TDM6QVE-DAt0LLtT.js → mindmap-definition-2TDM6QVE-CtjovahQ.js} +1 -1
- package/web/assets/{pieDiagram-CU6KROY3-wcL42rsj.js → pieDiagram-CU6KROY3-DJ7mL2OO.js} +1 -1
- package/web/assets/{requirementDiagram-JXO7QTGE-6rMJxIMd.js → requirementDiagram-JXO7QTGE-BQ-a2UHa.js} +1 -1
- package/web/assets/{sequenceDiagram-VS2MUI6T-Qxw2CKq9.js → sequenceDiagram-VS2MUI6T-Dq-E41TD.js} +1 -1
- package/web/assets/{stateDiagram-7D4R322I-59Ejn7s2.js → stateDiagram-7D4R322I-DyXkAThk.js} +1 -1
- package/web/assets/{stateDiagram-v2-36443NZ5-DuJ-XKAm.js → stateDiagram-v2-36443NZ5-x6kVl63Y.js} +1 -1
- package/web/assets/{timeline-definition-O6YCAMPW-31ZPtVTp.js → timeline-definition-O6YCAMPW-CnIsqFeF.js} +1 -1
- package/web/assets/{vennDiagram-MWXL3ELB-DF2g9kQO.js → vennDiagram-MWXL3ELB-Ce24QI5i.js} +1 -1
- package/web/assets/{wardleyDiagram-CUQ6CDDI-DEhL8j4N.js → wardleyDiagram-CUQ6CDDI-BFmc79Jd.js} +1 -1
- package/web/assets/{xychartDiagram-N2JHSOCM-BhcF9p43.js → xychartDiagram-N2JHSOCM-CIcd2MDJ.js} +1 -1
- package/web/index.html +1 -1
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { ParsedImport, WorkspaceIndex } from '../../../../_shared/index.js';
|
|
17
17
|
import { SupportedLanguages } from '../../../../_shared/index.js';
|
|
18
|
+
import type { SuffixIndex } from '../../import-resolvers/utils.js';
|
|
18
19
|
import type { TsconfigPaths } from '../../language-config.js';
|
|
19
20
|
export interface TsResolveContext {
|
|
20
21
|
readonly fromFile: string;
|
|
@@ -28,6 +29,8 @@ export interface TsResolveContext {
|
|
|
28
29
|
readonly normalizedFileList?: readonly string[];
|
|
29
30
|
/** Per-call resolution cache to dedupe repeated lookups. */
|
|
30
31
|
readonly resolveCache?: Map<string, string | null>;
|
|
32
|
+
/** Prebuilt suffix index for O(1)-style package/absolute import matching. */
|
|
33
|
+
readonly index?: SuffixIndex;
|
|
31
34
|
/** Parsed tsconfig path-aliases. `null` = no aliases configured. */
|
|
32
35
|
readonly tsconfigPaths?: TsconfigPaths | null;
|
|
33
36
|
/** JavaScript vs TypeScript switch — affects the extensions the
|
|
@@ -48,7 +48,7 @@ export function resolveTsTarget(targetRaw, ctx) {
|
|
|
48
48
|
const allFileList = ctx.allFileList ?? Array.from(ctx.allFilePaths);
|
|
49
49
|
const normalizedFileList = ctx.normalizedFileList ?? allFileList.map((f) => f.toLowerCase());
|
|
50
50
|
const resolveCache = ctx.resolveCache ?? new Map();
|
|
51
|
-
return resolveImportPath(ctx.fromFile, targetRaw, ctx.allFilePaths, allFileList, normalizedFileList, resolveCache, language, ctx.tsconfigPaths ?? null);
|
|
51
|
+
return resolveImportPath(ctx.fromFile, targetRaw, ctx.allFilePaths, allFileList, normalizedFileList, resolveCache, language, ctx.tsconfigPaths ?? null, ctx.index);
|
|
52
52
|
}
|
|
53
53
|
function narrowTsContext(workspaceIndex) {
|
|
54
54
|
const ctx = workspaceIndex;
|
|
@@ -16,6 +16,7 @@ import { buildMro, defaultLinearize } from '../../scope-resolution/passes/mro.js
|
|
|
16
16
|
import { populateClassOwnedMembers } from '../../scope-resolution/scope/walkers.js';
|
|
17
17
|
import { typescriptProvider } from '../typescript.js';
|
|
18
18
|
import { loadTsconfigPaths } from '../../language-config.js';
|
|
19
|
+
import { buildSuffixIndex } from '../../import-resolvers/utils.js';
|
|
19
20
|
import { typescriptArityCompatibility, typescriptMergeBindings, resolveTsTarget, } from './index.js';
|
|
20
21
|
/**
|
|
21
22
|
* Build a `resolveImportTarget` adapter that memoizes the workspace
|
|
@@ -35,11 +36,13 @@ function makeTsResolveImportTarget() {
|
|
|
35
36
|
return (targetRaw, fromFile, allFilePaths, resolutionConfig) => {
|
|
36
37
|
if (cached === null || cached.key !== allFilePaths) {
|
|
37
38
|
const allFileList = Array.from(allFilePaths);
|
|
39
|
+
const normalizedFileList = allFileList.map((f) => f.toLowerCase());
|
|
38
40
|
cached = {
|
|
39
41
|
key: allFilePaths,
|
|
40
42
|
allFilePaths: new Set(allFilePaths),
|
|
41
43
|
allFileList,
|
|
42
|
-
normalizedFileList
|
|
44
|
+
normalizedFileList,
|
|
45
|
+
index: buildSuffixIndex(normalizedFileList, allFileList),
|
|
43
46
|
resolveCache: new Map(),
|
|
44
47
|
};
|
|
45
48
|
}
|
|
@@ -49,6 +52,7 @@ function makeTsResolveImportTarget() {
|
|
|
49
52
|
allFilePaths: cached.allFilePaths,
|
|
50
53
|
allFileList: cached.allFileList,
|
|
51
54
|
normalizedFileList: cached.normalizedFileList,
|
|
55
|
+
index: cached.index,
|
|
52
56
|
resolveCache: cached.resolveCache,
|
|
53
57
|
tsconfigPaths: cfg?.tsconfigPaths ?? null,
|
|
54
58
|
};
|
package/package.json
CHANGED