@devflow-tools/benchmark 0.10.0 → 0.12.0

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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=debug-buildcontext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-buildcontext.d.ts","sourceRoot":"","sources":["../src/debug-buildcontext.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import CGModule from "@colbymchenry/codegraph";
2
+ async function main() {
3
+ const CG = CGModule.default ?? CGModule;
4
+ const cg = CG.openSync(process.cwd());
5
+ const result = await cg.buildContext("post-tool-use hook", {
6
+ searchLimit: 5,
7
+ traversalDepth: 2,
8
+ maxNodes: 10,
9
+ includeCode: false,
10
+ format: "json",
11
+ });
12
+ const obj = JSON.parse(result);
13
+ console.log("Top-level keys:", Object.keys(obj));
14
+ console.log("subgraph exists:", "subgraph" in obj);
15
+ console.log("subgraph:", obj.subgraph ? Object.keys(obj.subgraph) : "N/A");
16
+ if (obj.subgraph?.nodes) {
17
+ console.log("subgraph.nodes is Array:", Array.isArray(obj.subgraph.nodes));
18
+ console.log("subgraph.nodes count:", obj.subgraph.nodes.length);
19
+ if (obj.subgraph.nodes.length > 0) {
20
+ console.log("First node:", JSON.stringify(obj.subgraph.nodes[0]).slice(0, 200));
21
+ }
22
+ }
23
+ console.log("entryPoints:", obj.entryPoints?.length);
24
+ console.log("stats:", obj.stats);
25
+ console.log("summary:", obj.summary);
26
+ }
27
+ main();
28
+ //# sourceMappingURL=debug-buildcontext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-buildcontext.js","sourceRoot":"","sources":["../src/debug-buildcontext.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,KAAK,UAAU,IAAI;IACjB,MAAM,EAAE,GAAK,QAAgB,CAAC,OAA2B,IAAI,QAAQ,CAAC;IACtE,MAAM,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;IACD,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACrD,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;AACvC,CAAC;AACD,IAAI,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devflow-tools/benchmark",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "accuracy": "npx tsx src/run-accuracy-tests.ts"
19
19
  },
20
20
  "dependencies": {
21
- "@devflow-tools/context-engine": "^0.10.0",
22
- "@devflow-tools/sdk": "^0.10.0"
21
+ "@devflow-tools/context-engine": "^0.12.0",
22
+ "@devflow-tools/sdk": "^0.12.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "typescript": "^5.5.0",
@@ -28,5 +28,5 @@
28
28
  "files": [
29
29
  "dist"
30
30
  ],
31
- "gitHead": "20444d2631e3d77c3b3a4c3afd9398b21d888a4f"
31
+ "gitHead": "b7b5606e419887fe8c1f921a8a5a564ce9afcbac"
32
32
  }