@aiready/context-analyzer 0.21.27 → 0.22.1

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.21.27 build /Users/pengcao/projects/aiready/packages/context-analyzer
3
+ > @aiready/context-analyzer@0.22.1 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,23 +9,23 @@
9
9
  CLI Target: es2020
10
10
  CJS Build start
11
11
  ESM Build start
12
- CJS dist/cli.js 69.64 KB
13
12
  CJS dist/index.js 83.36 KB
14
- CJS ⚡️ Build success in 26ms
15
- ESM dist/summary-7PZVW72O.mjs 119.00 B
16
- ESM dist/orchestrator-3L3NAZYP.mjs 190.00 B
13
+ CJS dist/cli.js 69.64 KB
14
+ CJS ⚡️ Build success in 294ms
17
15
  ESM dist/python-context-BWDC4E5Z.mjs 4.48 KB
18
- ESM dist/cli-action-SA7SCYNV.mjs 2.86 KB
19
- ESM dist/chunk-BQCISA2F.mjs 3.35 KB
20
- ESM dist/chunk-BCEZGRXI.mjs 40.87 KB
21
- ESM dist/chunk-64U3PNO3.mjs 2.65 KB
22
16
  ESM dist/cli.mjs 1.81 KB
23
- ESM dist/chunk-EMYD7NS6.mjs 4.91 KB
24
17
  ESM dist/index.mjs 12.64 KB
18
+ ESM dist/cli-action-SA7SCYNV.mjs 2.86 KB
19
+ ESM dist/summary-7PZVW72O.mjs 119.00 B
20
+ ESM dist/chunk-BCEZGRXI.mjs 40.87 KB
25
21
  ESM dist/chunk-J3SZQZNU.mjs 8.11 KB
26
- ESM ⚡️ Build success in 27ms
22
+ ESM dist/orchestrator-3L3NAZYP.mjs 190.00 B
23
+ ESM dist/chunk-EMYD7NS6.mjs 4.91 KB
24
+ ESM dist/chunk-BQCISA2F.mjs 3.35 KB
25
+ ESM dist/chunk-64U3PNO3.mjs 2.65 KB
26
+ ESM ⚡️ Build success in 295ms
27
27
  DTS Build start
28
- DTS ⚡️ Build success in 1742ms
28
+ DTS ⚡️ Build success in 4469ms
29
29
  DTS dist/cli.d.ts 20.00 B
30
30
  DTS dist/index.d.ts 25.71 KB
31
31
  DTS dist/cli.d.mts 20.00 B
@@ -1,51 +1,49 @@
1
-
2
- 
3
- > @aiready/context-analyzer@0.21.26 test /Users/pengcao/projects/aiready/packages/context-analyzer
4
- > vitest run --exclude "**/dist/**"
5
-
6
- [?25l
7
-  RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/context-analyzer
8
-
9
- ✓ src/__tests__/report/console-report.test.ts (8 tests) 40ms
10
- ✓ src/__tests__/report/html-report.test.ts (11 tests) 79ms
11
- stderr | src/__tests__/python-context.test.ts > python-context > analyzePythonContext > should filter for Python files only
12
- Failed to analyze src/file2.py: TypeError: Cannot read properties of undefined (reading 'split')
13
- at Module.analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:91:32)
14
-  at processTicksAndRejections (node:internal/process/task_queues:104:5)
15
- at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/python-context.test.ts:63:23
16
- at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20
17
-
18
- stderr | src/__tests__/python-context.test.ts > python-context > analyzePythonContext > should analyze Python files and return metrics
19
- Failed to analyze src/test.py: TypeError: Cannot read properties of undefined (reading 'split')
20
- at Module.analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:91:32)
21
-  at processTicksAndRejections (node:internal/process/task_queues:104:5)
22
- at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/python-context.test.ts:84:23
23
- at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20
24
-
25
- ✓ src/__tests__/python-context.test.ts (4 tests) 7ms
26
- ✓ src/__tests__/scoring.test.ts (15 tests) 4ms
27
- ✓ src/__tests__/issue-analyzer.test.ts (17 tests) 64ms
28
- ✓ src/__tests__/cluster-detector.test.ts (3 tests) 4ms
29
- ✓ src/__tests__/domain-inference.test.ts (26 tests) 7ms
30
- ✓ src/__tests__/contract.test.ts (1 test) 30ms
31
- ✓ src/__tests__/auto-detection.test.ts (8 tests) 40ms
32
- ✓ src/__tests__/analyzer.test.ts (14 tests) 40ms
33
- ✓ src/__tests__/orchestrator.test.ts (8 tests) 192ms
34
- ✓ src/__tests__/file-classification.test.ts (63 tests) 110ms
35
- ✓ src/__tests__/fragmentation-coupling.test.ts (2 tests) 59ms
36
- ✓ src/__tests__/consolidation.test.ts (6 tests) 6ms
37
- ✓ src/__tests__/provider.test.ts (2 tests) 11ms
38
- ✓ src/__tests__/remediation.test.ts (6 tests) 4ms
39
- ✓ src/__tests__/boilerplate-barrel.test.ts (7 tests) 3ms
40
- ✓ src/__tests__/structural-cohesion.test.ts (4 tests) 6ms
41
- ✓ src/__tests__/defaults.test.ts (7 tests) 5ms
42
- ✓ src/__tests__/fragmentation-log.test.ts (3 tests) 2ms
43
- ✓ src/__tests__/fragmentation-advanced.test.ts (3 tests) 3ms
44
- ✓ src/__tests__/enhanced-cohesion.test.ts (6 tests) 4ms
45
-
46
-  Test Files  22 passed (22)
47
-  Tests  224 passed (224)
48
-  Start at  01:33:53
49
-  Duration  8.01s (transform 12.58s, setup 0ms, import 55.97s, tests 716ms, environment 18ms)
50
-
51
- [?25h
1
+
2
+ > @aiready/context-analyzer@0.21.27 test /Users/pengcao/projects/aiready/packages/context-analyzer
3
+ > vitest run --exclude "**/dist/**"
4
+
5
+
6
+  RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/context-analyzer
7
+
8
+ ✓ src/__tests__/domain-inference.test.ts (26 tests) 5ms
9
+ ✓ src/__tests__/report/html-report.test.ts (11 tests) 40ms
10
+ ✓ src/__tests__/report/console-report.test.ts (8 tests) 122ms
11
+ stderr | src/__tests__/python-context.test.ts > python-context > analyzePythonContext > should filter for Python files only
12
+ Failed to analyze src/file2.py: TypeError: Cannot read properties of undefined (reading 'split')
13
+ at Module.analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:91:32)
14
+  at processTicksAndRejections (node:internal/process/task_queues:104:5)
15
+ at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/python-context.test.ts:63:23
16
+ at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20
17
+
18
+ stderr | src/__tests__/python-context.test.ts > python-context > analyzePythonContext > should analyze Python files and return metrics
19
+ Failed to analyze src/test.py: TypeError: Cannot read properties of undefined (reading 'split')
20
+ at Module.analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:91:32)
21
+  at processTicksAndRejections (node:internal/process/task_queues:104:5)
22
+ at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/python-context.test.ts:84:23
23
+ at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20
24
+
25
+ ✓ src/__tests__/python-context.test.ts (4 tests) 8ms
26
+ ✓ src/__tests__/consolidation.test.ts (6 tests) 103ms
27
+ ✓ src/__tests__/provider.test.ts (2 tests) 4ms
28
+ ✓ src/__tests__/file-classification.test.ts (63 tests) 6ms
29
+ ✓ src/__tests__/issue-analyzer.test.ts (17 tests) 23ms
30
+ ✓ src/__tests__/structural-cohesion.test.ts (4 tests) 6ms
31
+ ✓ src/__tests__/auto-detection.test.ts (8 tests) 61ms
32
+ ✓ src/__tests__/orchestrator.test.ts (8 tests) 167ms
33
+ ✓ src/__tests__/fragmentation-coupling.test.ts (2 tests) 26ms
34
+ ✓ src/__tests__/contract.test.ts (1 test) 63ms
35
+ ✓ src/__tests__/analyzer.test.ts (14 tests) 221ms
36
+ ✓ src/__tests__/remediation.test.ts (6 tests) 53ms
37
+ ✓ src/__tests__/defaults.test.ts (7 tests) 6ms
38
+ ✓ src/__tests__/enhanced-cohesion.test.ts (6 tests) 2ms
39
+ ✓ src/__tests__/cluster-detector.test.ts (3 tests) 3ms
40
+ ✓ src/__tests__/scoring.test.ts (15 tests) 24ms
41
+ ✓ src/__tests__/fragmentation-advanced.test.ts (3 tests) 2ms
42
+ ✓ src/__tests__/boilerplate-barrel.test.ts (7 tests) 4ms
43
+ ✓ src/__tests__/fragmentation-log.test.ts (3 tests) 3ms
44
+
45
+  Test Files  22 passed (22)
46
+  Tests  224 passed (224)
47
+  Start at  15:17:50
48
+  Duration  5.09s (transform 6.36s, setup 0ms, import 31.37s, tests 951ms, environment 2ms)
49
+
package/README.md CHANGED
@@ -21,11 +21,11 @@ AI tokens are expensive and context windows are finite. **Context Analyzer** hel
21
21
 
22
22
 
23
23
  🎛️ @aiready/cli (orchestrator)
24
- │ │ │ │ │ │ │ │ │
25
- ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
26
- [PAT] [CTX] [CON] [AMP] [DEP] [DOC] [SIG] [AGT] [TST]
27
- │ │ │ │ │ │ │ │ │
28
- └─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
24
+ │ │ │ │ │ │ │ │ │
25
+ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
26
+ [PAT] [CTX] [CON] [AMP] [DEP] [DOC] [SIG] [AGT] [TST] [CTR]
27
+ │ │ │ │ │ │ │ │ │
28
+ └─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
29
29
 
30
30
 
31
31
  🏢 @aiready/core
@@ -35,7 +35,8 @@ Legend:
35
35
  CON = consistency AMP = change-amplification
36
36
  DEP = deps-health DOC = doc-drift
37
37
  SIG = ai-signal-clarity AGT = agent-grounding
38
- TST = testability = YOU ARE HERE
38
+ TST = testability CTR = contract-enforcement
39
+ ★ = YOU ARE HERE
39
40
  ```
40
41
 
41
42
  ## Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/context-analyzer",
3
- "version": "0.21.27",
3
+ "version": "0.22.1",
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",
@@ -49,7 +49,7 @@
49
49
  "commander": "^14.0.0",
50
50
  "chalk": "^5.3.0",
51
51
  "prompts": "^2.4.2",
52
- "@aiready/core": "0.23.24"
52
+ "@aiready/core": "0.24.1"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/node": "^24.0.0",