@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.
- package/.turbo/turbo-build.log +4 -4
- package/.turbo/turbo-test.log +5 -5
- package/README.md +31 -15
- package/dist/cli.js +1 -1
- package/dist/cli.mjs +1 -1
- package/package.json +6 -6
- package/src/cli.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/cli@0.9.
|
|
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
|
[34mCLI[39m Building entry: src/cli.ts, src/index.ts
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[32mCJS[39m [1mdist/index.js [22m[32m4.93 KB[39m
|
|
13
13
|
[32mCJS[39m [1mdist/cli.js [22m[32m65.17 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
15
|
-
[32mESM[39m [1mdist/cli.mjs [22m[32m57.52 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 18ms
|
|
16
15
|
[32mESM[39m [1mdist/index.mjs [22m[32m138.00 B[39m
|
|
17
16
|
[32mESM[39m [1mdist/chunk-5GZDRZ3T.mjs [22m[32m4.17 KB[39m
|
|
18
|
-
[32mESM[39m
|
|
17
|
+
[32mESM[39m [1mdist/cli.mjs [22m[32m57.52 KB[39m
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 19ms
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/cli@0.9.
|
|
3
|
+
> @aiready/cli@0.9.23 test /Users/pengcao/projects/aiready/packages/cli
|
|
4
4
|
> vitest run
|
|
5
5
|
|
|
6
6
|
[?25l
|
|
7
7
|
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/Users/pengcao/projects/aiready/packages/cli[39m
|
|
8
8
|
|
|
9
|
-
[32m✓[39m
|
|
10
|
-
[32m✓[39m
|
|
9
|
+
[32m✓[39m dist/__tests__/cli.test.js [2m([22m[2m3 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
10
|
+
[32m✓[39m src/__tests__/cli.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
11
11
|
|
|
12
12
|
[2m Test Files [22m [1m[32m2 passed[39m[22m[90m (2)[39m
|
|
13
13
|
[2m Tests [22m [1m[32m6 passed[39m[22m[90m (6)[39m
|
|
14
|
-
[2m Start at [22m 00:
|
|
15
|
-
[2m Duration [22m
|
|
14
|
+
[2m Start at [22m 00:46:20
|
|
15
|
+
[2m Duration [22m 1.89s[2m (transform 785ms, setup 0ms, import 2.59s, tests 16ms, environment 0ms)[22m
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
│
|
|
15
|
-
│
|
|
16
|
-
|
|
10
|
+
🎯 USER
|
|
11
|
+
│
|
|
12
|
+
▼
|
|
13
|
+
┌──────────────────────────────────────────┐
|
|
14
|
+
│ 🎛️ CLI (@aiready/cli) │
|
|
15
|
+
│ Unified Interface & Orchestration │
|
|
16
|
+
│ YOU ARE HERE │
|
|
17
|
+
└─────────────────┬────────────────────────┘
|
|
17
18
|
│
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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", "
|
|
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", "
|
|
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.
|
|
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/
|
|
15
|
-
"@aiready/
|
|
16
|
-
"@aiready/context-analyzer": "0.9.
|
|
17
|
-
"@aiready/
|
|
18
|
-
"@aiready/
|
|
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', '
|
|
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', `
|