@aiready/context-analyzer 0.7.0 → 0.7.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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @aiready/context-analyzer@0.7.0 build /Users/pengcao/projects/aiready/packages/context-analyzer
3
+ > @aiready/context-analyzer@0.7.2 build /Users/pengcao/projects/aiready/packages/context-analyzer
4
4
  > tsup src/index.ts src/cli.ts --format cjs,esm --dts
5
5
 
6
6
  CLI Building entry: src/cli.ts, src/index.ts
@@ -9,15 +9,15 @@
9
9
  CLI Target: es2020
10
10
  CJS Build start
11
11
  ESM Build start
12
- CJS dist/cli.js 49.37 KB
13
12
  CJS dist/index.js 33.35 KB
14
- CJS ⚡️ Build success in 58ms
15
- ESM dist/cli.mjs 18.45 KB
13
+ CJS dist/cli.js 49.38 KB
14
+ CJS ⚡️ Build success in 64ms
16
15
  ESM dist/index.mjs 504.00 B
16
+ ESM dist/cli.mjs 18.45 KB
17
17
  ESM dist/chunk-DMRZMS2U.mjs 31.83 KB
18
- ESM ⚡️ Build success in 58ms
18
+ ESM ⚡️ Build success in 65ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 597ms
20
+ DTS ⚡️ Build success in 696ms
21
21
  DTS dist/cli.d.ts 20.00 B
22
22
  DTS dist/index.d.ts 5.56 KB
23
23
  DTS dist/cli.d.mts 20.00 B
@@ -1,12 +1,12 @@
1
1
 
2
2
  
3
- > @aiready/context-analyzer@0.7.0 test /Users/pengcao/projects/aiready/packages/context-analyzer
3
+ > @aiready/context-analyzer@0.7.2 test /Users/pengcao/projects/aiready/packages/context-analyzer
4
4
  > vitest run
5
5
 
6
6
 
7
7
   RUN  v2.1.9 /Users/pengcao/projects/aiready/packages/context-analyzer
8
8
 
9
- [?25l ✓ src/__tests__/analyzer.test.ts (14)
9
+ [?25l · src/__tests__/analyzer.test.ts (14)
10
10
  ✓ src/__tests__/auto-detection.test.ts (8)
11
11
  ✓ src/__tests__/enhanced-cohesion.test.ts (6)
12
12
   ✓ src/__tests__/analyzer.test.ts (14)
@@ -15,7 +15,7 @@
15
15
 
16
16
   Test Files  3 passed (3)
17
17
   Tests  28 passed (28)
18
-  Start at  14:27:20
19
-  Duration  573ms (transform 281ms, setup 0ms, collect 864ms, tests 27ms, environment 0ms, prepare 182ms)
18
+  Start at  13:24:28
19
+  Duration  652ms (transform 202ms, setup 0ms, collect 928ms, tests 30ms, environment 0ms, prepare 157ms)
20
20
 
21
21
  [?25h[?25h
package/dist/cli.js CHANGED
@@ -908,7 +908,7 @@ program.name("aiready-context").description("Analyze AI context window cost and
908
908
  exclude: void 0,
909
909
  maxResults: 10
910
910
  };
911
- let finalOptions = (0, import_core3.loadMergedConfig)(directory, defaults, {
911
+ let finalOptions = await (0, import_core3.loadMergedConfig)(directory, defaults, {
912
912
  maxDepth: options.maxDepth ? parseInt(options.maxDepth) : void 0,
913
913
  maxContextBudget: options.maxContext ? parseInt(options.maxContext) : void 0,
914
914
  minCohesion: options.minCohesion ? parseFloat(options.minCohesion) : void 0,
package/dist/cli.mjs CHANGED
@@ -40,7 +40,7 @@ program.name("aiready-context").description("Analyze AI context window cost and
40
40
  exclude: void 0,
41
41
  maxResults: 10
42
42
  };
43
- let finalOptions = loadMergedConfig(directory, defaults, {
43
+ let finalOptions = await loadMergedConfig(directory, defaults, {
44
44
  maxDepth: options.maxDepth ? parseInt(options.maxDepth) : void 0,
45
45
  maxContextBudget: options.maxContext ? parseInt(options.maxContext) : void 0,
46
46
  minCohesion: options.minCohesion ? parseFloat(options.minCohesion) : void 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/context-analyzer",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "AI context window cost analysis - detect fragmented code, deep import chains, and expensive context budgets",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -50,7 +50,7 @@
50
50
  "commander": "^12.1.0",
51
51
  "chalk": "^5.3.0",
52
52
  "prompts": "^2.4.2",
53
- "@aiready/core": "0.7.0"
53
+ "@aiready/core": "0.7.2"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/node": "^22.10.2",
package/src/cli.ts CHANGED
@@ -61,7 +61,7 @@ program
61
61
  };
62
62
 
63
63
  // Load and merge config with CLI options
64
- let finalOptions = loadMergedConfig(directory, defaults, {
64
+ let finalOptions = await loadMergedConfig(directory, defaults, {
65
65
  maxDepth: options.maxDepth ? parseInt(options.maxDepth) : undefined,
66
66
  maxContextBudget: options.maxContext ? parseInt(options.maxContext) : undefined,
67
67
  minCohesion: options.minCohesion ? parseFloat(options.minCohesion) : undefined,