@aiready/cli 0.9.19 → 0.9.20

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.19 build /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.9.20 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
@@ -9,10 +9,10 @@
9
9
  CLI Target: es2020
10
10
  CJS Build start
11
11
  ESM Build start
12
- CJS dist/cli.js 65.17 KB
13
12
  CJS dist/index.js 4.93 KB
14
- CJS ⚡️ Build success in 18ms
13
+ CJS dist/cli.js 65.17 KB
14
+ CJS ⚡️ Build success in 19ms
15
+ ESM dist/cli.mjs 57.52 KB
15
16
  ESM dist/index.mjs 138.00 B
16
- ESM dist/cli.mjs 57.53 KB
17
17
  ESM dist/chunk-5GZDRZ3T.mjs 4.17 KB
18
- ESM ⚡️ Build success in 18ms
18
+ ESM ⚡️ Build success in 20ms
@@ -1,17 +1,17 @@
1
1
 
2
2
  
3
- > @aiready/cli@0.9.19 test /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.9.20 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
- ✓ dist/__tests__/cli.test.js (3 tests) 12ms
10
- ✓ src/__tests__/cli.test.ts (3 tests) 6ms
9
+ ✓ src/__tests__/cli.test.ts (3 tests) 2ms
10
+ ✓ dist/__tests__/cli.test.js (3 tests) 15ms
11
11
 
12
12
   Test Files  2 passed (2)
13
13
   Tests  6 passed (6)
14
-  Start at  15:04:24
15
-  Duration  1.96s (transform 704ms, setup 0ms, import 3.07s, tests 18ms, environment 0ms)
14
+  Start at  00:26:59
15
+  Duration  4.25s (transform 1.20s, setup 0ms, import 5.70s, tests 17ms, environment 0ms)
16
16
 
17
17
  [?25h
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", "console").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("--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", `
161
161
  EXAMPLES:
162
162
  $ aiready scan # Analyze all tools
163
163
  $ aiready scan --tools patterns,context # Skip consistency
@@ -173,7 +173,7 @@ EXAMPLES:
173
173
  include: void 0,
174
174
  exclude: void 0,
175
175
  output: {
176
- format: "console",
176
+ format: "json",
177
177
  file: void 0
178
178
  }
179
179
  };
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", "console").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("--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", `
66
66
  EXAMPLES:
67
67
  $ aiready scan # Analyze all tools
68
68
  $ aiready scan --tools patterns,context # Skip consistency
@@ -78,7 +78,7 @@ EXAMPLES:
78
78
  include: void 0,
79
79
  exclude: void 0,
80
80
  output: {
81
- format: "console",
81
+ format: "json",
82
82
  file: void 0
83
83
  }
84
84
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/cli",
3
- "version": "0.9.19",
3
+ "version": "0.9.20",
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.24",
15
- "@aiready/core": "0.9.18",
16
- "@aiready/pattern-detect": "0.11.18",
17
- "@aiready/consistency": "0.8.18",
18
- "@aiready/context-analyzer": "0.9.18"
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"
19
19
  },
20
20
  "devDependencies": {
21
21
  "tsup": "^8.3.5",
package/src/cli.ts CHANGED
@@ -77,7 +77,7 @@ program
77
77
  .option('-t, --tools <tools>', 'Tools to run (comma-separated: patterns,context,consistency)', 'patterns,context,consistency')
78
78
  .option('--include <patterns>', 'File patterns to include (comma-separated)')
79
79
  .option('--exclude <patterns>', 'File patterns to exclude (comma-separated)')
80
- .option('-o, --output <format>', 'Output format: console, json', 'console')
80
+ .option('-o, --output <format>', 'Output format: console, json', 'json')
81
81
  .option('--output-file <path>', 'Output file path (for json)')
82
82
  .option('--score', 'Calculate and display AI Readiness Score (0-100) with breakdown')
83
83
  .option('--weights <weights>', 'Custom scoring weights (patterns:40,context:35,consistency:25)')
@@ -103,7 +103,7 @@ EXAMPLES:
103
103
  include: undefined,
104
104
  exclude: undefined,
105
105
  output: {
106
- format: 'console',
106
+ format: 'json',
107
107
  file: undefined,
108
108
  },
109
109
  };