@aiready/cli 0.7.13 → 0.7.14
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 +6 -6
- package/.turbo/turbo-test.log +6 -6
- package/dist/cli.js +4 -4
- package/dist/cli.mjs +4 -4
- package/package.json +3 -3
- package/src/cli.ts +4 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/cli@0.7.
|
|
3
|
+
> @aiready/cli@0.7.14 build /Users/pengcao/projects/aiready/packages/cli
|
|
4
4
|
> tsup src/index.ts src/cli.ts --format cjs,esm --dts
|
|
5
5
|
|
|
6
6
|
[34mCLI[39m Building entry: src/cli.ts, src/index.ts
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[32mCJS[39m [1mdist/index.js [22m[32m4.55 KB[39m
|
|
13
|
-
[32mCJS[39m [1mdist/cli.js [22m[32m28.
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
15
|
-
[32mESM[39m [1mdist/cli.mjs [22m[
|
|
13
|
+
[32mCJS[39m [1mdist/cli.js [22m[32m28.47 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 30ms
|
|
15
|
+
[32mESM[39m [1mdist/cli.mjs [22m[32m22.00 KB[39m
|
|
16
16
|
[32mESM[39m [1mdist/index.mjs [22m[32m138.00 B[39m
|
|
17
17
|
[32mESM[39m [1mdist/chunk-AGAMURT4.mjs [22m[32m3.42 KB[39m
|
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 30ms
|
|
19
19
|
DTS Build start
|
|
20
|
-
DTS ⚡️ Build success in
|
|
20
|
+
DTS ⚡️ Build success in 680ms
|
|
21
21
|
DTS dist/cli.d.ts 20.00 B
|
|
22
22
|
DTS dist/index.d.ts 991.00 B
|
|
23
23
|
DTS dist/cli.d.mts 20.00 B
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/cli@0.7.
|
|
3
|
+
> @aiready/cli@0.7.14 test /Users/pengcao/projects/aiready/packages/cli
|
|
4
4
|
> vitest run
|
|
5
5
|
|
|
6
6
|
[?25l
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
|
|
12
12
|
[2m Test Files [22m[1m[32m0 passed[39m[22m[90m (1)[39m
|
|
13
13
|
[2m Tests [22m[1m[32m0 passed[39m[22m[90m (0)[39m
|
|
14
|
-
[2m Start at [
|
|
14
|
+
[2m Start at [22m17:35:18
|
|
15
15
|
[2m Duration [22m0ms
|
|
16
16
|
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K
|
|
17
17
|
[1m[33m ❯ [39m[22msrc/__tests__/cli.test.ts[2m 0/3[22m
|
|
18
18
|
|
|
19
19
|
[2m Test Files [22m[1m[32m0 passed[39m[22m[90m (1)[39m
|
|
20
20
|
[2m Tests [22m[1m[32m0 passed[39m[22m[90m (3)[39m
|
|
21
|
-
[2m Start at [
|
|
22
|
-
[2m Duration [
|
|
21
|
+
[2m Start at [22m17:35:18
|
|
22
|
+
[2m Duration [22m300ms
|
|
23
23
|
[?2026l[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/__tests__/cli.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
24
24
|
[32m✓[39m CLI Unified Analysis [2m(3)[22m
|
|
25
25
|
[32m✓[39m should run unified analysis with both tools[32m 1[2mms[22m[39m
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
30
30
|
[2m Tests [22m [1m[32m3 passed[39m[22m[90m (3)[39m
|
|
31
|
-
[2m Start at [22m
|
|
32
|
-
[2m Duration [22m
|
|
31
|
+
[2m Start at [22m 17:35:18
|
|
32
|
+
[2m Duration [22m 314ms[2m (transform 52ms, setup 0ms, import 233ms, tests 2ms, environment 0ms)[22m
|
|
33
33
|
|
|
34
34
|
[?25h
|
package/dist/cli.js
CHANGED
|
@@ -140,7 +140,7 @@ var import_fs2 = require("fs");
|
|
|
140
140
|
var packageJson = JSON.parse((0, import_fs2.readFileSync)((0, import_path.join)(__dirname, "../package.json"), "utf8"));
|
|
141
141
|
var program = new import_commander.Command();
|
|
142
142
|
program.name("aiready").description("AIReady - Unified AI-readiness analysis tools").version(packageJson.version).addHelpText("after", "\nCONFIGURATION:\n Supports config files: aiready.json, aiready.config.json, .aiready.json, .aireadyrc.json, aiready.config.js, .aireadyrc.js\n CLI options override config file settings");
|
|
143
|
-
program.command("scan").description("Run unified analysis on a codebase").argument("
|
|
143
|
+
program.command("scan").description("Run unified analysis on a codebase").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)").action(async (directory, options) => {
|
|
144
144
|
console.log(import_chalk.default.blue("\u{1F680} Starting AIReady unified analysis...\n"));
|
|
145
145
|
const startTime = Date.now();
|
|
146
146
|
try {
|
|
@@ -189,7 +189,7 @@ program.command("scan").description("Run unified analysis on a codebase").argume
|
|
|
189
189
|
(0, import_core.handleCLIError)(error, "Analysis");
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
|
-
program.command("patterns").description("Run pattern detection analysis").argument("
|
|
192
|
+
program.command("patterns").description("Run pattern detection analysis").argument("[directory]", "Directory to analyze", ".").option("-s, --similarity <number>", "Minimum similarity score (0-1)", "0.40").option("-l, --min-lines <number>", "Minimum lines to consider", "5").option("--max-candidates <number>", "Maximum candidates per block (performance tuning)").option("--min-shared-tokens <number>", "Minimum shared tokens for candidates (performance tuning)").option("--full-scan", "Disable smart defaults for comprehensive analysis (slower)").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)").action(async (directory, options) => {
|
|
193
193
|
console.log(import_chalk.default.blue("\u{1F50D} Analyzing patterns...\n"));
|
|
194
194
|
const startTime = Date.now();
|
|
195
195
|
try {
|
|
@@ -281,7 +281,7 @@ program.command("patterns").description("Run pattern detection analysis").argume
|
|
|
281
281
|
(0, import_core.handleCLIError)(error, "Pattern analysis");
|
|
282
282
|
}
|
|
283
283
|
});
|
|
284
|
-
program.command("context").description("Run context window cost analysis").argument("
|
|
284
|
+
program.command("context").description("Run context window cost analysis").argument("[directory]", "Directory to analyze", ".").option("--max-depth <number>", "Maximum acceptable import depth", "5").option("--max-context <number>", "Maximum acceptable context budget (tokens)", "10000").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)").action(async (directory, options) => {
|
|
285
285
|
console.log(import_chalk.default.blue("\u{1F9E0} Analyzing context costs...\n"));
|
|
286
286
|
const startTime = Date.now();
|
|
287
287
|
try {
|
|
@@ -406,7 +406,7 @@ program.command("context").description("Run context window cost analysis").argum
|
|
|
406
406
|
(0, import_core.handleCLIError)(error, "Context analysis");
|
|
407
407
|
}
|
|
408
408
|
});
|
|
409
|
-
program.command("consistency").description("Check naming, patterns, and architecture consistency").argument("
|
|
409
|
+
program.command("consistency").description("Check naming, patterns, and architecture consistency").argument("[directory]", "Directory to analyze", ".").option("--naming", "Check naming conventions (default: true)").option("--no-naming", "Skip naming analysis").option("--patterns", "Check code patterns (default: true)").option("--no-patterns", "Skip pattern analysis").option("--min-severity <level>", "Minimum severity: info|minor|major|critical", "info").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, markdown", "console").option("--output-file <path>", "Output file path (for json/markdown)").action(async (directory, options) => {
|
|
410
410
|
console.log(import_chalk.default.blue("\u{1F50D} Analyzing consistency...\n"));
|
|
411
411
|
const startTime = Date.now();
|
|
412
412
|
try {
|
package/dist/cli.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { readFileSync } from "fs";
|
|
|
14
14
|
var packageJson = JSON.parse(readFileSync(join(__dirname, "../package.json"), "utf8"));
|
|
15
15
|
var program = new Command();
|
|
16
16
|
program.name("aiready").description("AIReady - Unified AI-readiness analysis tools").version(packageJson.version).addHelpText("after", "\nCONFIGURATION:\n Supports config files: aiready.json, aiready.config.json, .aiready.json, .aireadyrc.json, aiready.config.js, .aireadyrc.js\n CLI options override config file settings");
|
|
17
|
-
program.command("scan").description("Run unified analysis on a codebase").argument("
|
|
17
|
+
program.command("scan").description("Run unified analysis on a codebase").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)").action(async (directory, options) => {
|
|
18
18
|
console.log(chalk.blue("\u{1F680} Starting AIReady unified analysis...\n"));
|
|
19
19
|
const startTime = Date.now();
|
|
20
20
|
try {
|
|
@@ -63,7 +63,7 @@ program.command("scan").description("Run unified analysis on a codebase").argume
|
|
|
63
63
|
handleCLIError(error, "Analysis");
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
-
program.command("patterns").description("Run pattern detection analysis").argument("
|
|
66
|
+
program.command("patterns").description("Run pattern detection analysis").argument("[directory]", "Directory to analyze", ".").option("-s, --similarity <number>", "Minimum similarity score (0-1)", "0.40").option("-l, --min-lines <number>", "Minimum lines to consider", "5").option("--max-candidates <number>", "Maximum candidates per block (performance tuning)").option("--min-shared-tokens <number>", "Minimum shared tokens for candidates (performance tuning)").option("--full-scan", "Disable smart defaults for comprehensive analysis (slower)").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)").action(async (directory, options) => {
|
|
67
67
|
console.log(chalk.blue("\u{1F50D} Analyzing patterns...\n"));
|
|
68
68
|
const startTime = Date.now();
|
|
69
69
|
try {
|
|
@@ -155,7 +155,7 @@ program.command("patterns").description("Run pattern detection analysis").argume
|
|
|
155
155
|
handleCLIError(error, "Pattern analysis");
|
|
156
156
|
}
|
|
157
157
|
});
|
|
158
|
-
program.command("context").description("Run context window cost analysis").argument("
|
|
158
|
+
program.command("context").description("Run context window cost analysis").argument("[directory]", "Directory to analyze", ".").option("--max-depth <number>", "Maximum acceptable import depth", "5").option("--max-context <number>", "Maximum acceptable context budget (tokens)", "10000").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)").action(async (directory, options) => {
|
|
159
159
|
console.log(chalk.blue("\u{1F9E0} Analyzing context costs...\n"));
|
|
160
160
|
const startTime = Date.now();
|
|
161
161
|
try {
|
|
@@ -280,7 +280,7 @@ program.command("context").description("Run context window cost analysis").argum
|
|
|
280
280
|
handleCLIError(error, "Context analysis");
|
|
281
281
|
}
|
|
282
282
|
});
|
|
283
|
-
program.command("consistency").description("Check naming, patterns, and architecture consistency").argument("
|
|
283
|
+
program.command("consistency").description("Check naming, patterns, and architecture consistency").argument("[directory]", "Directory to analyze", ".").option("--naming", "Check naming conventions (default: true)").option("--no-naming", "Skip naming analysis").option("--patterns", "Check code patterns (default: true)").option("--no-patterns", "Skip pattern analysis").option("--min-severity <level>", "Minimum severity: info|minor|major|critical", "info").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, markdown", "console").option("--output-file <path>", "Output file path (for json/markdown)").action(async (directory, options) => {
|
|
284
284
|
console.log(chalk.blue("\u{1F50D} Analyzing consistency...\n"));
|
|
285
285
|
const startTime = Date.now();
|
|
286
286
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiready/cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.14",
|
|
4
4
|
"description": "Unified CLI for AIReady analysis tools",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"chalk": "^5.3.0",
|
|
14
14
|
"@aiready/core": "0.7.5",
|
|
15
15
|
"@aiready/context-analyzer": "0.7.7",
|
|
16
|
-
"@aiready/
|
|
17
|
-
"@aiready/
|
|
16
|
+
"@aiready/pattern-detect": "0.9.11",
|
|
17
|
+
"@aiready/consistency": "0.6.8"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"tsup": "^8.3.5",
|
package/src/cli.ts
CHANGED
|
@@ -21,7 +21,7 @@ program
|
|
|
21
21
|
program
|
|
22
22
|
.command('scan')
|
|
23
23
|
.description('Run unified analysis on a codebase')
|
|
24
|
-
.argument('
|
|
24
|
+
.argument('[directory]', 'Directory to analyze', '.')
|
|
25
25
|
.option('-t, --tools <tools>', 'Tools to run (comma-separated: patterns,context,consistency)', 'patterns,context,consistency')
|
|
26
26
|
.option('--include <patterns>', 'File patterns to include (comma-separated)')
|
|
27
27
|
.option('--exclude <patterns>', 'File patterns to exclude (comma-separated)')
|
|
@@ -95,7 +95,7 @@ program
|
|
|
95
95
|
program
|
|
96
96
|
.command('patterns')
|
|
97
97
|
.description('Run pattern detection analysis')
|
|
98
|
-
.argument('
|
|
98
|
+
.argument('[directory]', 'Directory to analyze', '.')
|
|
99
99
|
.option('-s, --similarity <number>', 'Minimum similarity score (0-1)', '0.40')
|
|
100
100
|
.option('-l, --min-lines <number>', 'Minimum lines to consider', '5')
|
|
101
101
|
.option('--max-candidates <number>', 'Maximum candidates per block (performance tuning)')
|
|
@@ -234,7 +234,7 @@ program
|
|
|
234
234
|
program
|
|
235
235
|
.command('context')
|
|
236
236
|
.description('Run context window cost analysis')
|
|
237
|
-
.argument('
|
|
237
|
+
.argument('[directory]', 'Directory to analyze', '.')
|
|
238
238
|
.option('--max-depth <number>', 'Maximum acceptable import depth', '5')
|
|
239
239
|
.option('--max-context <number>', 'Maximum acceptable context budget (tokens)', '10000')
|
|
240
240
|
.option('--include <patterns>', 'File patterns to include (comma-separated)')
|
|
@@ -393,7 +393,7 @@ program
|
|
|
393
393
|
program
|
|
394
394
|
.command('consistency')
|
|
395
395
|
.description('Check naming, patterns, and architecture consistency')
|
|
396
|
-
.argument('
|
|
396
|
+
.argument('[directory]', 'Directory to analyze', '.')
|
|
397
397
|
.option('--naming', 'Check naming conventions (default: true)')
|
|
398
398
|
.option('--no-naming', 'Skip naming analysis')
|
|
399
399
|
.option('--patterns', 'Check code patterns (default: true)')
|