@aiready/cli 0.9.20 → 0.9.23

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/cli@0.9.20 build /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.9.23 build /Users/pengcao/projects/aiready/packages/cli
4
4
  > tsup src/index.ts src/cli.ts --format cjs,esm
5
5
 
6
6
  CLI Building entry: src/cli.ts, src/index.ts
@@ -11,8 +11,8 @@
11
11
  ESM Build start
12
12
  CJS dist/index.js 4.93 KB
13
13
  CJS dist/cli.js 65.17 KB
14
- CJS ⚡️ Build success in 19ms
15
- ESM dist/cli.mjs 57.52 KB
14
+ CJS ⚡️ Build success in 18ms
16
15
  ESM dist/index.mjs 138.00 B
17
16
  ESM dist/chunk-5GZDRZ3T.mjs 4.17 KB
18
- ESM ⚡️ Build success in 20ms
17
+ ESM dist/cli.mjs 57.52 KB
18
+ ESM ⚡️ Build success in 19ms
@@ -1,17 +1,17 @@
1
1
 
2
2
  
3
- > @aiready/cli@0.9.20 test /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.9.23 test /Users/pengcao/projects/aiready/packages/cli
4
4
  > vitest run
5
5
 
6
6
  [?25l
7
7
   RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/cli
8
8
 
9
- ✓ src/__tests__/cli.test.ts (3 tests) 2ms
10
- ✓ dist/__tests__/cli.test.js (3 tests) 15ms
9
+ ✓ dist/__tests__/cli.test.js (3 tests) 12ms
10
+ ✓ src/__tests__/cli.test.ts (3 tests) 4ms
11
11
 
12
12
   Test Files  2 passed (2)
13
13
   Tests  6 passed (6)
14
-  Start at  00:26:59
15
-  Duration  4.25s (transform 1.20s, setup 0ms, import 5.70s, tests 17ms, environment 0ms)
14
+  Start at  00:46:20
15
+  Duration  1.89s (transform 785ms, setup 0ms, import 2.59s, tests 16ms, environment 0ms)
16
16
 
17
17
  [?25h
package/README.md CHANGED
@@ -7,22 +7,38 @@ The CLI provides both unified analysis (scan multiple tools at once) and individ
7
7
  ## 🏛️ Architecture
8
8
 
9
9
  ```
10
- 🎯 USER
11
-
12
-
13
- ┌─────────────────────────────────────────────────────────────────┐
14
- 🎛️ CLI (@aiready/cli) ⬅ YOU ARE HERE
15
- Unified Interface & Orchestration
16
- └─────────────────┬───────────────────────────────────────────────┘
10
+ 🎯 USER
11
+
12
+
13
+ ┌──────────────────────────────────────────┐
14
+ 🎛️ CLI (@aiready/cli)
15
+ Unified Interface & Orchestration
16
+ │ YOU ARE HERE │
17
+ └─────────────────┬────────────────────────┘
17
18
 
18
-
19
- 🏢 HUB (core)
20
-
21
- ┌───────────┼───────────┬───────────┐
22
- ▼ ▼ ▼ ▼
23
- 📊 PATTERN 📦 CONTEXT 🔧 CONSIST 📚 DOC
24
- DETECT ANALYZER ENCY DRIFT
25
- Ready ✅ Ready ✅ Ready 🔜 Soon
19
+ ┌─────────────┴─────────────┐
20
+ │ │
21
+ ▼ ▼
22
+ ┌────────┐ ┌────────┐
23
+ │🎨 VIS- │ │ ANALY- │
24
+ │UALIZER │ │ SIS │
25
+ │ │ SPOKES │
26
+ │✅ Ready│ │ │
27
+ └────────┘ └───┬────┘
28
+ │ │
29
+ │ ┌───────────────┼───────────────┐
30
+ │ ▼ ▼ ▼
31
+ │ ┌────────┐ ┌────────┐ ┌────────┐
32
+ │ │📊 PAT- │ │📦 CON- │ │🔧 CON- │
33
+ │ │TERN │ │TEXT │ │SISTENCY│
34
+ │ │DETECT │ │ANALYZER│ │ │
35
+ │ │✅ Ready│ │✅ Ready│ │✅ Ready│
36
+ │ └────────┘ └────────┘ └────────┘
37
+ │ │ │ │
38
+ └─────────┴───────────────┴───────────────┘
39
+
40
+
41
+ 🏢 HUB (@aiready/core)
26
42
  ```
27
43
 
28
44
  ## 🌍 Language Support
package/dist/cli.js CHANGED
@@ -157,7 +157,7 @@ VERSION: ${packageJson.version}
157
157
  DOCUMENTATION: https://aiready.dev/docs/cli
158
158
  GITHUB: https://github.com/caopengau/aiready-cli
159
159
  LANDING: https://github.com/caopengau/aiready-landing`);
160
- program.command("scan").description("Run comprehensive AI-readiness analysis (patterns + context + consistency)").argument("[directory]", "Directory to analyze", ".").option("-t, --tools <tools>", "Tools to run (comma-separated: patterns,context,consistency)", "patterns,context,consistency").option("--include <patterns>", "File patterns to include (comma-separated)").option("--exclude <patterns>", "File patterns to exclude (comma-separated)").option("-o, --output <format>", "Output format: console, json", "json").option("--output-file <path>", "Output file path (for json)").option("--score", "Calculate and display AI Readiness Score (0-100) with breakdown").option("--weights <weights>", "Custom scoring weights (patterns:40,context:35,consistency:25)").option("--threshold <score>", "Fail CI/CD if score below threshold (0-100)").addHelpText("after", `
160
+ program.command("scan").description("Run comprehensive AI-readiness analysis (patterns + context + consistency)").argument("[directory]", "Directory to analyze", ".").option("-t, --tools <tools>", "Tools to run (comma-separated: patterns,context,consistency)", "patterns,context,consistency").option("--include <patterns>", "File patterns to include (comma-separated)").option("--exclude <patterns>", "File patterns to exclude (comma-separated)").option("-o, --output <format>", "Output format: console, json", "json").option("--output-file <path>", "Output file path (for json)").option("--no-score", "Disable calculating AI Readiness Score (enabled by default)").option("--weights <weights>", "Custom scoring weights (patterns:40,context:35,consistency:25)").option("--threshold <score>", "Fail CI/CD if score below threshold (0-100)").addHelpText("after", `
161
161
  EXAMPLES:
162
162
  $ aiready scan # Analyze all tools
163
163
  $ aiready scan --tools patterns,context # Skip consistency
package/dist/cli.mjs CHANGED
@@ -62,7 +62,7 @@ VERSION: ${packageJson.version}
62
62
  DOCUMENTATION: https://aiready.dev/docs/cli
63
63
  GITHUB: https://github.com/caopengau/aiready-cli
64
64
  LANDING: https://github.com/caopengau/aiready-landing`);
65
- program.command("scan").description("Run comprehensive AI-readiness analysis (patterns + context + consistency)").argument("[directory]", "Directory to analyze", ".").option("-t, --tools <tools>", "Tools to run (comma-separated: patterns,context,consistency)", "patterns,context,consistency").option("--include <patterns>", "File patterns to include (comma-separated)").option("--exclude <patterns>", "File patterns to exclude (comma-separated)").option("-o, --output <format>", "Output format: console, json", "json").option("--output-file <path>", "Output file path (for json)").option("--score", "Calculate and display AI Readiness Score (0-100) with breakdown").option("--weights <weights>", "Custom scoring weights (patterns:40,context:35,consistency:25)").option("--threshold <score>", "Fail CI/CD if score below threshold (0-100)").addHelpText("after", `
65
+ program.command("scan").description("Run comprehensive AI-readiness analysis (patterns + context + consistency)").argument("[directory]", "Directory to analyze", ".").option("-t, --tools <tools>", "Tools to run (comma-separated: patterns,context,consistency)", "patterns,context,consistency").option("--include <patterns>", "File patterns to include (comma-separated)").option("--exclude <patterns>", "File patterns to exclude (comma-separated)").option("-o, --output <format>", "Output format: console, json", "json").option("--output-file <path>", "Output file path (for json)").option("--no-score", "Disable calculating AI Readiness Score (enabled by default)").option("--weights <weights>", "Custom scoring weights (patterns:40,context:35,consistency:25)").option("--threshold <score>", "Fail CI/CD if score below threshold (0-100)").addHelpText("after", `
66
66
  EXAMPLES:
67
67
  $ aiready scan # Analyze all tools
68
68
  $ aiready scan --tools patterns,context # Skip consistency
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/cli",
3
- "version": "0.9.20",
3
+ "version": "0.9.23",
4
4
  "description": "Unified CLI for AIReady analysis tools",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -11,11 +11,11 @@
11
11
  "dependencies": {
12
12
  "commander": "^14.0.0",
13
13
  "chalk": "^5.3.0",
14
- "@aiready/visualizer": "0.1.25",
15
- "@aiready/consistency": "0.8.19",
16
- "@aiready/context-analyzer": "0.9.19",
17
- "@aiready/core": "0.9.19",
18
- "@aiready/pattern-detect": "0.11.19"
14
+ "@aiready/core": "0.9.22",
15
+ "@aiready/pattern-detect": "0.11.22",
16
+ "@aiready/context-analyzer": "0.9.22",
17
+ "@aiready/visualizer": "0.1.28",
18
+ "@aiready/consistency": "0.8.22"
19
19
  },
20
20
  "devDependencies": {
21
21
  "tsup": "^8.3.5",
package/src/cli.ts CHANGED
@@ -79,7 +79,7 @@ program
79
79
  .option('--exclude <patterns>', 'File patterns to exclude (comma-separated)')
80
80
  .option('-o, --output <format>', 'Output format: console, json', 'json')
81
81
  .option('--output-file <path>', 'Output file path (for json)')
82
- .option('--score', 'Calculate and display AI Readiness Score (0-100) with breakdown')
82
+ .option('--no-score', 'Disable calculating AI Readiness Score (enabled by default)')
83
83
  .option('--weights <weights>', 'Custom scoring weights (patterns:40,context:35,consistency:25)')
84
84
  .option('--threshold <score>', 'Fail CI/CD if score below threshold (0-100)')
85
85
  .addHelpText('after', `