@aiready/cli 0.7.5 → 0.7.6
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 +5 -5
- 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.6 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[32m3.15 KB[39m
|
|
13
|
-
[32mCJS[39m [1mdist/cli.js [22m[32m27.
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
13
|
+
[32mCJS[39m [1mdist/cli.js [22m[32m27.05 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 61ms
|
|
15
15
|
[32mESM[39m [1mdist/index.mjs [22m[32m138.00 B[39m
|
|
16
|
-
[32mESM[39m [1mdist/cli.mjs [22m[32m21.
|
|
16
|
+
[32mESM[39m [1mdist/cli.mjs [22m[32m21.98 KB[39m
|
|
17
17
|
[32mESM[39m [1mdist/chunk-VOB7SA3E.mjs [22m[32m2.02 KB[39m
|
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 61ms
|
|
19
19
|
DTS Build start
|
|
20
|
-
DTS ⚡️ Build success in
|
|
20
|
+
DTS ⚡️ Build success in 565ms
|
|
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.6 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 [22m13:25:12
|
|
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 [22m13:25:12
|
|
22
|
+
[2m Duration [22m305ms
|
|
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 13:25:12
|
|
32
|
+
[2m Duration [22m 342ms[2m (transform 55ms, setup 0ms, import 255ms, tests 2ms, environment 0ms)[22m
|
|
33
33
|
|
|
34
34
|
[?25h
|
package/dist/cli.js
CHANGED
|
@@ -115,7 +115,7 @@ program.command("scan").description("Run unified analysis on a codebase").argume
|
|
|
115
115
|
file: void 0
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
|
-
const baseOptions = (0, import_core.loadMergedConfig)(directory, defaults, {
|
|
118
|
+
const baseOptions = await (0, import_core.loadMergedConfig)(directory, defaults, {
|
|
119
119
|
tools: options.tools ? options.tools.split(",").map((t) => t.trim()) : void 0,
|
|
120
120
|
include: options.include?.split(","),
|
|
121
121
|
exclude: options.exclude?.split(",")
|
|
@@ -182,7 +182,7 @@ program.command("patterns").description("Run pattern detection analysis").argume
|
|
|
182
182
|
if (options.minSharedTokens) {
|
|
183
183
|
cliOptions.minSharedTokens = parseInt(options.minSharedTokens);
|
|
184
184
|
}
|
|
185
|
-
const finalOptions = (0, import_core.loadMergedConfig)(directory, defaults, cliOptions);
|
|
185
|
+
const finalOptions = await (0, import_core.loadMergedConfig)(directory, defaults, cliOptions);
|
|
186
186
|
const { analyzePatterns: analyzePatterns2, generateSummary } = await import("@aiready/pattern-detect");
|
|
187
187
|
const { results, duplicates } = await analyzePatterns2(finalOptions);
|
|
188
188
|
const elapsedTime = (0, import_core.getElapsedTime)(startTime);
|
|
@@ -257,7 +257,7 @@ program.command("context").description("Run context window cost analysis").argum
|
|
|
257
257
|
file: void 0
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
|
-
let baseOptions = (0, import_core.loadMergedConfig)(directory, defaults, {
|
|
260
|
+
let baseOptions = await (0, import_core.loadMergedConfig)(directory, defaults, {
|
|
261
261
|
maxDepth: options.maxDepth ? parseInt(options.maxDepth) : void 0,
|
|
262
262
|
maxContextBudget: options.maxContext ? parseInt(options.maxContext) : void 0,
|
|
263
263
|
include: options.include?.split(","),
|
|
@@ -383,7 +383,7 @@ program.command("consistency").description("Check naming, patterns, and architec
|
|
|
383
383
|
file: void 0
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
|
-
const finalOptions = (0, import_core.loadMergedConfig)(directory, defaults, {
|
|
386
|
+
const finalOptions = await (0, import_core.loadMergedConfig)(directory, defaults, {
|
|
387
387
|
checkNaming: options.naming !== false,
|
|
388
388
|
checkPatterns: options.patterns !== false,
|
|
389
389
|
minSeverity: options.minSeverity,
|
package/dist/cli.mjs
CHANGED
|
@@ -27,7 +27,7 @@ program.command("scan").description("Run unified analysis on a codebase").argume
|
|
|
27
27
|
file: void 0
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
const baseOptions = loadMergedConfig(directory, defaults, {
|
|
30
|
+
const baseOptions = await loadMergedConfig(directory, defaults, {
|
|
31
31
|
tools: options.tools ? options.tools.split(",").map((t) => t.trim()) : void 0,
|
|
32
32
|
include: options.include?.split(","),
|
|
33
33
|
exclude: options.exclude?.split(",")
|
|
@@ -94,7 +94,7 @@ program.command("patterns").description("Run pattern detection analysis").argume
|
|
|
94
94
|
if (options.minSharedTokens) {
|
|
95
95
|
cliOptions.minSharedTokens = parseInt(options.minSharedTokens);
|
|
96
96
|
}
|
|
97
|
-
const finalOptions = loadMergedConfig(directory, defaults, cliOptions);
|
|
97
|
+
const finalOptions = await loadMergedConfig(directory, defaults, cliOptions);
|
|
98
98
|
const { analyzePatterns, generateSummary } = await import("@aiready/pattern-detect");
|
|
99
99
|
const { results, duplicates } = await analyzePatterns(finalOptions);
|
|
100
100
|
const elapsedTime = getElapsedTime(startTime);
|
|
@@ -169,7 +169,7 @@ program.command("context").description("Run context window cost analysis").argum
|
|
|
169
169
|
file: void 0
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
|
-
let baseOptions = loadMergedConfig(directory, defaults, {
|
|
172
|
+
let baseOptions = await loadMergedConfig(directory, defaults, {
|
|
173
173
|
maxDepth: options.maxDepth ? parseInt(options.maxDepth) : void 0,
|
|
174
174
|
maxContextBudget: options.maxContext ? parseInt(options.maxContext) : void 0,
|
|
175
175
|
include: options.include?.split(","),
|
|
@@ -295,7 +295,7 @@ program.command("consistency").description("Check naming, patterns, and architec
|
|
|
295
295
|
file: void 0
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
|
-
const finalOptions = loadMergedConfig(directory, defaults, {
|
|
298
|
+
const finalOptions = await loadMergedConfig(directory, defaults, {
|
|
299
299
|
checkNaming: options.naming !== false,
|
|
300
300
|
checkPatterns: options.patterns !== false,
|
|
301
301
|
minSeverity: options.minSeverity,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiready/cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"description": "Unified CLI for AIReady analysis tools",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"commander": "^12.1.0",
|
|
13
13
|
"chalk": "^5.3.0",
|
|
14
|
-
"@aiready/
|
|
15
|
-
"@aiready/
|
|
16
|
-
"@aiready/
|
|
17
|
-
"@aiready/
|
|
14
|
+
"@aiready/core": "0.7.2",
|
|
15
|
+
"@aiready/context-analyzer": "0.7.2",
|
|
16
|
+
"@aiready/consistency": "0.6.2",
|
|
17
|
+
"@aiready/pattern-detect": "0.9.4"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"tsup": "^8.3.5",
|
package/src/cli.ts
CHANGED
|
@@ -45,7 +45,7 @@ program
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
// Load and merge config with CLI options
|
|
48
|
-
const baseOptions = loadMergedConfig(directory, defaults, {
|
|
48
|
+
const baseOptions = await loadMergedConfig(directory, defaults, {
|
|
49
49
|
tools: options.tools ? options.tools.split(',').map((t: string) => t.trim()) as ('patterns' | 'context' | 'consistency')[] : undefined,
|
|
50
50
|
include: options.include?.split(','),
|
|
51
51
|
exclude: options.exclude?.split(','),
|
|
@@ -148,7 +148,7 @@ program
|
|
|
148
148
|
cliOptions.minSharedTokens = parseInt(options.minSharedTokens);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
const finalOptions = loadMergedConfig(directory, defaults, cliOptions);
|
|
151
|
+
const finalOptions = await loadMergedConfig(directory, defaults, cliOptions);
|
|
152
152
|
|
|
153
153
|
const { analyzePatterns, generateSummary } = await import('@aiready/pattern-detect');
|
|
154
154
|
|
|
@@ -260,7 +260,7 @@ program
|
|
|
260
260
|
};
|
|
261
261
|
|
|
262
262
|
// Load and merge config with CLI options
|
|
263
|
-
let baseOptions = loadMergedConfig(directory, defaults, {
|
|
263
|
+
let baseOptions = await loadMergedConfig(directory, defaults, {
|
|
264
264
|
maxDepth: options.maxDepth ? parseInt(options.maxDepth) : undefined,
|
|
265
265
|
maxContextBudget: options.maxContext ? parseInt(options.maxContext) : undefined,
|
|
266
266
|
include: options.include?.split(','),
|
|
@@ -423,7 +423,7 @@ program
|
|
|
423
423
|
};
|
|
424
424
|
|
|
425
425
|
// Load and merge config with CLI options
|
|
426
|
-
const finalOptions = loadMergedConfig(directory, defaults, {
|
|
426
|
+
const finalOptions = await loadMergedConfig(directory, defaults, {
|
|
427
427
|
checkNaming: options.naming !== false,
|
|
428
428
|
checkPatterns: options.patterns !== false,
|
|
429
429
|
minSeverity: options.minSeverity,
|