@aiready/deps 0.1.3 → 0.1.5

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/deps@0.1.3 build /Users/pengcao/projects/aiready/packages/deps
3
+ > @aiready/deps@0.1.5 build /Users/pengcao/projects/aiready/packages/deps
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
@@ -10,7 +10,7 @@
10
10
  CJS Build start
11
11
  ESM Build start
12
12
 
13
- [10:33:24 PM]  WARN  ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
13
+ [2:33:40 PM]  WARN  ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
14
14
 
15
15
  package.json:32:6:
16
16
   32 │ "types": "./dist/index.d.ts"
@@ -31,7 +31,7 @@
31
31
 
32
32
 
33
33
 
34
- [10:33:24 PM]  WARN  ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
34
+ [2:33:41 PM]  WARN  ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
35
35
 
36
36
  package.json:32:6:
37
37
   32 │ "types": "./dist/index.d.ts"
@@ -51,15 +51,15 @@
51
51
 
52
52
 
53
53
 
54
- ESM dist/index.mjs 80.00 B
55
- ESM dist/chunk-ZLQULJAV.mjs 3.05 KB
56
54
  ESM dist/cli.mjs 1.28 KB
57
- ESM ⚡️ Build success in 243ms
58
- CJS dist/index.js 3.74 KB
55
+ ESM dist/chunk-ZLQULJAV.mjs 3.05 KB
56
+ ESM dist/index.mjs 80.00 B
57
+ ESM ⚡️ Build success in 2668ms
59
58
  CJS dist/cli.js 5.67 KB
60
- CJS ⚡️ Build success in 287ms
59
+ CJS dist/index.js 3.74 KB
60
+ CJS ⚡️ Build success in 2668ms
61
61
  DTS Build start
62
- DTS ⚡️ Build success in 6531ms
62
+ DTS ⚡️ Build success in 66434ms
63
63
  DTS dist/cli.d.ts 108.00 B
64
64
  DTS dist/index.d.ts 839.00 B
65
65
  DTS dist/cli.d.mts 108.00 B
@@ -1,16 +1,16 @@
1
1
 
2
2
  
3
- > @aiready/deps@0.1.3 test /Users/pengcao/projects/aiready/packages/deps
3
+ > @aiready/deps@0.1.5 test /Users/pengcao/projects/aiready/packages/deps
4
4
  > vitest run
5
5
 
6
6
 
7
7
   RUN  v1.6.1 /Users/pengcao/projects/aiready/packages/deps
8
8
 
9
- ✓ src/__tests__/analyzer.test.ts  (1 test) 89ms
9
+ ✓ src/__tests__/analyzer.test.ts  (1 test) 64ms
10
10
 
11
11
   Test Files  1 passed (1)
12
12
   Tests  1 passed (1)
13
-  Start at  22:33:59
14
-  Duration  1.91s (transform 146ms, setup 0ms, collect 761ms, tests 89ms, environment 0ms, prepare 316ms)
13
+  Start at  14:38:43
14
+  Duration  27.38s (transform 3.33s, setup 0ms, collect 12.91s, tests 64ms, environment 0ms, prepare 2.73s)
15
15
 
16
16
  [?25h
package/README.md CHANGED
@@ -1,36 +1,53 @@
1
1
  # @aiready/deps
2
2
 
3
- > AIReady Spoke: Analyzes dependency health, evaluating reliance on deprecated packages and calculating AI training-cutoff skew.
3
+ > AIReady Spoke: Analyzes dependency health and calculates AI training-cutoff skew.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@aiready/deps.svg)](https://npmjs.com/package/@aiready/deps)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
7
 
8
8
  ## Overview
9
9
 
10
- AI coding assistants are trained on data up to a specific cutoff date. When projects rely heavily on very new frameworks (post-cutoff) or deeply deprecated libraries, AI performance typically degrades. The **Dependency Health** analyzer evaluates your `package.json` to compute these skews.
10
+ The **Dependency Health** analyzer evaluates your `package.json` to compute timeline skews against AI knowledge cutoff dates.
11
+
12
+ ## 🏛️ Architecture
13
+
14
+ ```
15
+ 🎯 USER
16
+
17
+
18
+ 🎛️ @aiready/cli (orchestrator)
19
+ │ │ │ │ │ │ │ │ │
20
+ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
21
+ [PAT] [CTX] [CON] [AMP] [DEP] [DOC] [SIG] [AGT] [TST]
22
+ │ │ │ │ │ │ │ │ │
23
+ └─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
24
+
25
+
26
+ 🏢 @aiready/core
27
+
28
+ Legend:
29
+ PAT = pattern-detect CTX = context-analyzer
30
+ CON = consistency AMP = change-amplification
31
+ DEP = deps-health ★ DOC = doc-drift
32
+ SIG = ai-signal-clarity AGT = agent-grounding
33
+ TST = testability ★ = YOU ARE HERE
34
+ ```
11
35
 
12
36
  ## Features
13
37
 
14
- - **Deprecated Detection**: Identifies usage of long-deprecated packages (e.g., old versions of `moment`, `request`).
15
- - **Outdated Components**: Flags unstable (pre-v1) or very out-of-date core packages.
16
- - **Training-Cutoff Skew**: Measures your stack's timeline against standard AI knowledge cutoff dates (e.g., late 2023 or 2024). Highly skewed packages limit an AI's effective context retrieval mechanisms.
38
+ - **Deprecated Detection**: Identifies usage of long-deprecated packages.
39
+ - **Training-Cutoff Skew**: Measures your stack's timeline against standard AI knowledge cutoff dates.
17
40
 
18
41
  ## Installation
19
42
 
20
43
  ```bash
21
- npm install -g @aiready/cli @aiready/deps
44
+ pnpm add @aiready/deps
22
45
  ```
23
46
 
24
47
  ## Usage
25
48
 
26
- This tool is designed to be run through the unified AIReady CLI.
27
-
28
49
  ```bash
29
- # Analyze dependency health
30
50
  aiready scan . --tools deps-health
31
-
32
- # Specify a customized AI training cutoff year
33
- aiready scan . --tools deps-health --training-cutoff-year 2024
34
51
  ```
35
52
 
36
53
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/deps",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "AI-Readiness: Dependency Health & Cutoff Skew",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9,7 +9,7 @@
9
9
  "commander": "^12.0.0",
10
10
  "picocolors": "^1.0.0",
11
11
  "semver": "^7.6.0",
12
- "@aiready/core": "0.9.30"
12
+ "@aiready/core": "0.9.32"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@types/node": "^20.12.7",