@monoes/monograph 1.5.1 → 1.5.3
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/.monodesign/hook.cache.json +1 -0
- package/__tests__/integration/build-atomicity.test.ts +61 -0
- package/dist/src/analysis/cycles.d.ts.map +1 -1
- package/dist/src/analysis/cycles.js +5 -3
- package/dist/src/analysis/cycles.js.map +1 -1
- package/dist/src/analysis/trace.d.ts.map +1 -1
- package/dist/src/analysis/trace.js +1 -19
- package/dist/src/analysis/trace.js.map +1 -1
- package/dist/src/analysis/worker-pool.d.ts.map +1 -1
- package/dist/src/analysis/worker-pool.js +9 -7
- package/dist/src/analysis/worker-pool.js.map +1 -1
- package/dist/src/cli/skill-gen.d.ts.map +1 -1
- package/dist/src/cli/skill-gen.js +16 -25
- package/dist/src/cli/skill-gen.js.map +1 -1
- package/dist/src/export/html.d.ts.map +1 -1
- package/dist/src/export/html.js +3 -2
- package/dist/src/export/html.js.map +1 -1
- package/dist/src/graph/regex-search.d.ts.map +1 -1
- package/dist/src/graph/regex-search.js +9 -3
- package/dist/src/graph/regex-search.js.map +1 -1
- package/dist/src/pipeline/orchestrator.js +22 -0
- package/dist/src/pipeline/orchestrator.js.map +1 -1
- package/dist/src/pipeline/phases/call-site-extractors.d.ts +17 -0
- package/dist/src/pipeline/phases/call-site-extractors.d.ts.map +1 -0
- package/dist/src/pipeline/phases/call-site-extractors.js +132 -0
- package/dist/src/pipeline/phases/call-site-extractors.js.map +1 -0
- package/dist/src/pipeline/phases/module-resolution.d.ts +10 -0
- package/dist/src/pipeline/phases/module-resolution.d.ts.map +1 -0
- package/dist/src/pipeline/phases/module-resolution.js +301 -0
- package/dist/src/pipeline/phases/module-resolution.js.map +1 -0
- package/dist/src/pipeline/phases/orm.js +1 -2
- package/dist/src/pipeline/phases/orm.js.map +1 -1
- package/dist/src/pipeline/phases/scope-resolution.d.ts +2 -25
- package/dist/src/pipeline/phases/scope-resolution.d.ts.map +1 -1
- package/dist/src/pipeline/phases/scope-resolution.js +18 -580
- package/dist/src/pipeline/phases/scope-resolution.js.map +1 -1
- package/dist/src/pipeline/phases/wildcard-phase.d.ts.map +1 -1
- package/dist/src/pipeline/phases/wildcard-phase.js +6 -1
- package/dist/src/pipeline/phases/wildcard-phase.js.map +1 -1
- package/dist/src/search/hybrid-query.js +1 -1
- package/dist/src/search/hybrid-query.js.map +1 -1
- package/dist/src/web/api.d.ts.map +1 -1
- package/dist/src/web/api.js +17 -14
- package/dist/src/web/api.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/__tests__/pipeline/phases/wildcard-phase.test.ts +39 -4
- package/src/analysis/cycles.ts +7 -3
- package/src/analysis/trace.ts +1 -21
- package/src/analysis/worker-pool.ts +8 -7
- package/src/cli/skill-gen.ts +6 -14
- package/src/export/html.ts +3 -2
- package/src/graph/regex-search.ts +9 -5
- package/src/pipeline/orchestrator.ts +18 -0
- package/src/pipeline/phases/call-site-extractors.ts +169 -0
- package/src/pipeline/phases/module-resolution.ts +294 -0
- package/src/pipeline/phases/orm.ts +1 -2
- package/src/pipeline/phases/scope-resolution.ts +25 -618
- package/src/pipeline/phases/wildcard-phase.ts +5 -1
- package/src/search/hybrid-query.ts +1 -1
- package/src/web/api.ts +17 -13
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { PipelinePhase } from '../types.js';
|
|
2
|
+
export { clearWorkspacePackageMapCache, buildWorkspacePackageMap, resolveModuleSpecifier } from './module-resolution.js';
|
|
3
|
+
export { extractGoCallSites, extractJavaCallSites, extractRustCallSites } from './call-site-extractors.js';
|
|
2
4
|
export interface ScopeResolutionOutput {
|
|
3
5
|
resolvedEdges: number;
|
|
4
6
|
skippedDynamic: number;
|
|
@@ -7,30 +9,5 @@ export interface ScopeResolutionOutput {
|
|
|
7
9
|
orphanImportsRemoved: number;
|
|
8
10
|
importsReconstructed: number;
|
|
9
11
|
}
|
|
10
|
-
interface CallSite {
|
|
11
|
-
callerFileNodeId: string;
|
|
12
|
-
callerFilePath: string;
|
|
13
|
-
calleeRaw: string;
|
|
14
|
-
form: 'method' | 'direct' | 'dynamic';
|
|
15
|
-
receiverName?: string;
|
|
16
|
-
methodName?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare function extractGoCallSites(source: string, filePath: string, fileNodeId: string): CallSite[];
|
|
19
|
-
export declare function extractJavaCallSites(source: string, filePath: string, fileNodeId: string): CallSite[];
|
|
20
|
-
export declare function extractRustCallSites(source: string, filePath: string, fileNodeId: string): CallSite[];
|
|
21
|
-
/** Invalidate the cached workspace package map for a repo — call at the start
|
|
22
|
-
* of each build so long-lived processes (watch mode) pick up package.json
|
|
23
|
-
* additions/removals instead of serving a stale map from a prior build. */
|
|
24
|
-
export declare function clearWorkspacePackageMapCache(repoPath: string): void;
|
|
25
|
-
/**
|
|
26
|
-
* Build package-name → directory map from workspace package.json files.
|
|
27
|
-
* Scans packages/ for package.json and maps npm name to its relative src path.
|
|
28
|
-
* Cached per repoPath — multiple pipeline phases (cross-file, scope-resolution,
|
|
29
|
-
* the latter's own re-export loop) call this per-file/per-edge within the same
|
|
30
|
-
* build, and the workspace's package.json set doesn't change mid-build.
|
|
31
|
-
*/
|
|
32
|
-
export declare function buildWorkspacePackageMap(repoPath: string): Map<string, string>;
|
|
33
|
-
export declare function resolveModuleSpecifier(importerPath: string, specifier: string, repoPath: string, knownFiles: Set<string>, workspaceMap: Map<string, string>): string | null;
|
|
34
12
|
export declare const scopeResolutionPhase: PipelinePhase<ScopeResolutionOutput>;
|
|
35
|
-
export {};
|
|
36
13
|
//# sourceMappingURL=scope-resolution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope-resolution.d.ts","sourceRoot":"","sources":["../../../../src/pipeline/phases/scope-resolution.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAmB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"scope-resolution.d.ts","sourceRoot":"","sources":["../../../../src/pipeline/phases/scope-resolution.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAmB,MAAM,aAAa,CAAC;AASlE,OAAO,EAAE,6BAA6B,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACzH,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAI3G,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAqKD,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,qBAAqB,CAqKrE,CAAC"}
|