@aiready/cli 0.12.4 → 0.12.8

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.12.3 build /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.12.7 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,8 +9,7 @@
9
9
  CLI Target: es2020
10
10
  CJS Build start
11
11
  ESM Build start
12
-
13
-  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta] 11:12:15 am
12
+ [warn] ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta]
14
13
 
15
14
  src/cli.ts:25:31:
16
15
   25 │ return dirname(fileURLToPath(import.meta.url));
@@ -19,11 +18,10 @@
19
18
  You need to set the output format to "esm" for "import.meta" to work correctly.
20
19
 
21
20
 
22
-
23
- CJS dist/cli.js 67.18 KB
24
- CJS dist/index.js 8.42 KB
25
- CJS ⚡️ Build success in 28ms
26
- ESM dist/cli.mjs 56.79 KB
21
+ ESM dist/cli.mjs 56.62 KB
27
22
  ESM dist/index.mjs 170.00 B
28
23
  ESM dist/chunk-7K3CNS6C.mjs 7.29 KB
29
- ESM ⚡️ Build success in 28ms
24
+ ESM ⚡️ Build success in 78ms
25
+ CJS dist/cli.js 67.00 KB
26
+ CJS dist/index.js 8.42 KB
27
+ CJS ⚡️ Build success in 82ms
@@ -1,55 +1,55 @@
1
1
 
2
2
  
3
- > @aiready/cli@0.12.3 test /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.12.7 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
9
  stdout | src/__tests__/cli.test.ts
10
- [ToolRegistry#0.657519876473521] Registering tool: pattern-detect (patterns, duplicates, duplication)
10
+ [ToolRegistry#0.13728077651445802] Registering tool: pattern-detect (patterns, duplicates, duplication)
11
11
 
12
12
  stdout | src/__tests__/cli.test.ts
13
- [ToolRegistry#0.657519876473521] Registering tool: context-analyzer (context, fragmentation, budget)
13
+ [ToolRegistry#0.13728077651445802] Registering tool: context-analyzer (context, fragmentation, budget)
14
14
 
15
15
  stdout | src/__tests__/cli.test.ts
16
- [ToolRegistry#0.657519876473521] Registering tool: naming-consistency (consistency, naming, standards)
16
+ [ToolRegistry#0.13728077651445802] Registering tool: naming-consistency (consistency, naming, standards)
17
17
 
18
18
  stdout | src/__tests__/cli.test.ts
19
- [ToolRegistry#0.657519876473521] Registering tool: ai-signal-clarity (ai-signal, clarity, hallucination)
19
+ [ToolRegistry#0.13728077651445802] Registering tool: ai-signal-clarity (ai-signal, clarity, hallucination)
20
20
 
21
21
  stdout | src/__tests__/cli.test.ts
22
- [ToolRegistry#0.657519876473521] Registering tool: agent-grounding (agent-grounding, grounding, navigation)
22
+ [ToolRegistry#0.13728077651445802] Registering tool: agent-grounding (agent-grounding, grounding, navigation)
23
23
 
24
24
  stdout | src/__tests__/cli.test.ts
25
- [ToolRegistry#0.657519876473521] Registering tool: testability-index (testability, tests, verification)
25
+ [ToolRegistry#0.13728077651445802] Registering tool: testability-index (testability, tests, verification)
26
26
 
27
27
  stdout | src/__tests__/cli.test.ts
28
- [ToolRegistry#0.657519876473521] Registering tool: doc-drift (doc-drift, docs, jsdoc)
28
+ [ToolRegistry#0.13728077651445802] Registering tool: doc-drift (doc-drift, docs, jsdoc)
29
29
 
30
30
  stdout | src/__tests__/cli.test.ts
31
- [ToolRegistry#0.657519876473521] Registering tool: dependency-health (deps, deps-health, packages)
31
+ [ToolRegistry#0.13728077651445802] Registering tool: dependency-health (deps, deps-health, packages)
32
32
 
33
33
  stdout | src/__tests__/cli.test.ts
34
- [ToolRegistry#0.657519876473521] Registering tool: change-amplification (change-amp, change-amplification, coupling)
34
+ [ToolRegistry#0.13728077651445802] Registering tool: change-amplification (change-amp, change-amplification, coupling)
35
35
 
36
36
  stdout | src/__tests__/cli.test.ts > CLI Unified Analysis > should run unified analysis with both tools
37
- [ToolRegistry#0.657519876473521] Registering tool: pattern-detect (patterns)
38
- [ToolRegistry#0.657519876473521] Registering tool: context-analyzer (context)
37
+ [ToolRegistry#0.13728077651445802] Registering tool: pattern-detect (patterns)
38
+ [ToolRegistry#0.13728077651445802] Registering tool: context-analyzer (context)
39
39
 
40
40
  stdout | src/__tests__/cli.test.ts > CLI Unified Analysis > should run analysis with only patterns tool
41
- [ToolRegistry#0.657519876473521] Registering tool: pattern-detect (patterns)
42
- [ToolRegistry#0.657519876473521] Registering tool: context-analyzer (context)
41
+ [ToolRegistry#0.13728077651445802] Registering tool: pattern-detect (patterns)
42
+ [ToolRegistry#0.13728077651445802] Registering tool: context-analyzer (context)
43
43
 
44
44
  stdout | src/__tests__/cli.test.ts > CLI Unified Analysis > should run analysis with only context tool
45
- [ToolRegistry#0.657519876473521] Registering tool: pattern-detect (patterns)
46
- [ToolRegistry#0.657519876473521] Registering tool: context-analyzer (context)
45
+ [ToolRegistry#0.13728077651445802] Registering tool: pattern-detect (patterns)
46
+ [ToolRegistry#0.13728077651445802] Registering tool: context-analyzer (context)
47
47
 
48
48
  ✓ src/__tests__/cli.test.ts (3 tests) 3ms
49
49
 
50
50
   Test Files  1 passed (1)
51
51
   Tests  3 passed (3)
52
-  Start at  11:12:33
53
-  Duration  443ms (transform 116ms, setup 0ms, import 321ms, tests 3ms, environment 0ms)
52
+  Start at  13:15:47
53
+  Duration  475ms (transform 126ms, setup 0ms, import 348ms, tests 3ms, environment 0ms)
54
54
 
55
55
  [?25h
package/dist/cli.js CHANGED
@@ -539,7 +539,7 @@ async function scanAction(directory, options) {
539
539
  process.stdout.write(`\r\x1B[K [${event.tool}] ${event.message}`);
540
540
  return;
541
541
  }
542
- process.stdout.write("\n");
542
+ process.stdout.write("\r\x1B[K");
543
543
  console.log(import_chalk3.default.cyan(`--- ${event.tool.toUpperCase()} RESULTS ---`));
544
544
  const res = event.data;
545
545
  if (res && res.summary) {
@@ -556,11 +556,7 @@ async function scanAction(directory, options) {
556
556
  const results = await analyzeUnified({
557
557
  ...finalOptions,
558
558
  progressCallback,
559
- onProgress: (processed, total, message) => {
560
- process.stdout.write(
561
- `\r\x1B[K [${processed}/${total}] ${message}...`
562
- );
563
- if (processed === total) process.stdout.write("\n");
559
+ onProgress: () => {
564
560
  },
565
561
  suppressToolConfig: true
566
562
  });
package/dist/cli.mjs CHANGED
@@ -345,7 +345,7 @@ async function scanAction(directory, options) {
345
345
  process.stdout.write(`\r\x1B[K [${event.tool}] ${event.message}`);
346
346
  return;
347
347
  }
348
- process.stdout.write("\n");
348
+ process.stdout.write("\r\x1B[K");
349
349
  console.log(chalk3.cyan(`--- ${event.tool.toUpperCase()} RESULTS ---`));
350
350
  const res = event.data;
351
351
  if (res && res.summary) {
@@ -362,11 +362,7 @@ async function scanAction(directory, options) {
362
362
  const results = await analyzeUnified({
363
363
  ...finalOptions,
364
364
  progressCallback,
365
- onProgress: (processed, total, message) => {
366
- process.stdout.write(
367
- `\r\x1B[K [${processed}/${total}] ${message}...`
368
- );
369
- if (processed === total) process.stdout.write("\n");
365
+ onProgress: () => {
370
366
  },
371
367
  suppressToolConfig: true
372
368
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/cli",
3
- "version": "0.12.4",
3
+ "version": "0.12.8",
4
4
  "description": "Unified CLI for AIReady analysis tools",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -11,17 +11,17 @@
11
11
  "dependencies": {
12
12
  "chalk": "^5.3.0",
13
13
  "commander": "^14.0.0",
14
- "@aiready/agent-grounding": "0.11.4",
15
- "@aiready/consistency": "0.18.4",
16
- "@aiready/context-analyzer": "0.19.4",
17
- "@aiready/core": "0.21.4",
18
- "@aiready/deps": "0.11.4",
19
- "@aiready/doc-drift": "0.11.4",
20
- "@aiready/ai-signal-clarity": "0.11.4",
21
- "@aiready/pattern-detect": "0.14.4",
22
- "@aiready/change-amplification": "0.11.4",
23
- "@aiready/visualizer": "0.4.4",
24
- "@aiready/testability": "0.4.4"
14
+ "@aiready/agent-grounding": "0.11.8",
15
+ "@aiready/deps": "0.11.8",
16
+ "@aiready/doc-drift": "0.11.8",
17
+ "@aiready/change-amplification": "0.11.8",
18
+ "@aiready/pattern-detect": "0.14.8",
19
+ "@aiready/context-analyzer": "0.19.8",
20
+ "@aiready/core": "0.21.8",
21
+ "@aiready/ai-signal-clarity": "0.11.8",
22
+ "@aiready/testability": "0.4.8",
23
+ "@aiready/visualizer": "0.4.8",
24
+ "@aiready/consistency": "0.18.8"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^24.0.0",