@dreamtree-org/graphify 1.1.1 → 1.1.2
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/README.md +6 -2
- package/dist/{chunk-EW23BLJC.js → chunk-PXVI2L45.js} +89 -44
- package/dist/chunk-PXVI2L45.js.map +1 -0
- package/dist/cli/index.cjs +248 -195
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +15 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +108 -63
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-EW23BLJC.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -90,6 +90,16 @@ declare function extract(filePath: string, displayPath?: string): Promise<Extrac
|
|
|
90
90
|
*/
|
|
91
91
|
declare function buildGraph(extractions: ExtractionResult[]): Graph;
|
|
92
92
|
|
|
93
|
+
interface ResolveOptions {
|
|
94
|
+
/**
|
|
95
|
+
* The scanned package's own name(s) (from package.json). Tests very
|
|
96
|
+
* commonly import the package's PUBLIC entry (`import { persist } from
|
|
97
|
+
* 'zustand/middleware'`) rather than a relative path — without this,
|
|
98
|
+
* those land on an opaque `module:` node and the test never connects to
|
|
99
|
+
* the source it exercises (so `graphify tests` under-selects).
|
|
100
|
+
*/
|
|
101
|
+
selfNames?: string[];
|
|
102
|
+
}
|
|
93
103
|
interface ResolveStats {
|
|
94
104
|
/** Edge endpoints re-pointed from a guessed id to a real node id. */
|
|
95
105
|
resolvedEndpoints: number;
|
|
@@ -100,7 +110,7 @@ interface ResolveStats {
|
|
|
100
110
|
* Mutates `extractions` in place: re-points guessed edge endpoints at real
|
|
101
111
|
* node ids and drops the placeholder module nodes those guesses created.
|
|
102
112
|
*/
|
|
103
|
-
declare function resolveCrossFileReferences(extractions: ExtractionResult[]): ResolveStats;
|
|
113
|
+
declare function resolveCrossFileReferences(extractions: ExtractionResult[], options?: ResolveOptions): ResolveStats;
|
|
104
114
|
|
|
105
115
|
type ClusterAlgorithm = 'louvain' | 'leiden';
|
|
106
116
|
interface ClusterOptions {
|
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,16 @@ declare function extract(filePath: string, displayPath?: string): Promise<Extrac
|
|
|
90
90
|
*/
|
|
91
91
|
declare function buildGraph(extractions: ExtractionResult[]): Graph;
|
|
92
92
|
|
|
93
|
+
interface ResolveOptions {
|
|
94
|
+
/**
|
|
95
|
+
* The scanned package's own name(s) (from package.json). Tests very
|
|
96
|
+
* commonly import the package's PUBLIC entry (`import { persist } from
|
|
97
|
+
* 'zustand/middleware'`) rather than a relative path — without this,
|
|
98
|
+
* those land on an opaque `module:` node and the test never connects to
|
|
99
|
+
* the source it exercises (so `graphify tests` under-selects).
|
|
100
|
+
*/
|
|
101
|
+
selfNames?: string[];
|
|
102
|
+
}
|
|
93
103
|
interface ResolveStats {
|
|
94
104
|
/** Edge endpoints re-pointed from a guessed id to a real node id. */
|
|
95
105
|
resolvedEndpoints: number;
|
|
@@ -100,7 +110,7 @@ interface ResolveStats {
|
|
|
100
110
|
* Mutates `extractions` in place: re-points guessed edge endpoints at real
|
|
101
111
|
* node ids and drops the placeholder module nodes those guesses created.
|
|
102
112
|
*/
|
|
103
|
-
declare function resolveCrossFileReferences(extractions: ExtractionResult[]): ResolveStats;
|
|
113
|
+
declare function resolveCrossFileReferences(extractions: ExtractionResult[], options?: ResolveOptions): ResolveStats;
|
|
104
114
|
|
|
105
115
|
type ClusterAlgorithm = 'louvain' | 'leiden';
|
|
106
116
|
interface ClusterOptions {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED