@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/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
@@ -24,7 +24,7 @@ import {
24
24
  saveResult,
25
25
  validateExtraction,
26
26
  validateRules
27
- } from "./chunk-EW23BLJC.js";
27
+ } from "./chunk-PXVI2L45.js";
28
28
  import {
29
29
  affectedBy,
30
30
  buildContextPack,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamtree-org/graphify",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Turn a folder of code/docs/papers into a queryable, persistent knowledge graph for AI coding assistants.",
5
5
  "type": "module",
6
6
  "license": "MIT",