@aiready/cli 0.12.23 → 0.13.0

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.22 build /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.12.23 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
@@ -10,7 +10,7 @@
10
10
  CJS Build start
11
11
  ESM Build start
12
12
 
13
- [3:18:55 pm]  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta]
13
+  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta] 6:35:40 pm
14
14
 
15
15
  src/cli.ts:32:31:
16
16
   32 │ return dirname(fileURLToPath(import.meta.url));
@@ -20,10 +20,10 @@
20
20
 
21
21
 
22
22
 
23
- ESM dist/index.mjs 170.00 B
24
- ESM dist/chunk-VOKP7FGM.mjs 9.52 KB
25
- ESM dist/cli.mjs 66.64 KB
26
- ESM ⚡️ Build success in 28ms
27
23
  CJS dist/index.js 10.62 KB
28
- CJS dist/cli.js 79.99 KB
29
- CJS ⚡️ Build success in 28ms
24
+ CJS dist/cli.js 80.29 KB
25
+ CJS ⚡️ Build success in 34ms
26
+ ESM dist/cli.mjs 66.94 KB
27
+ ESM dist/chunk-VOKP7FGM.mjs 9.52 KB
28
+ ESM dist/index.mjs 170.00 B
29
+ ESM ⚡️ Build success in 34ms
@@ -1,19 +1,19 @@
1
1
 
2
2
  
3
- > @aiready/cli@0.12.22 test /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.12.23 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
- ✓ src/commands/__tests__/testability.test.ts (2 tests) 9ms
9
+ ✓ src/commands/__tests__/testability.test.ts (2 tests) 19ms
10
+ ✓ src/commands/__tests__/deps-health.test.ts (1 test) 16ms
11
+ ✓ src/commands/__tests__/doc-drift.test.ts (1 test) 19ms
12
+ ✓ src/commands/__tests__/agent-grounding.test.ts (1 test) 18ms
10
13
  ✓ src/commands/__tests__/ai-signal-clarity.test.ts (1 test) 8ms
11
- ✓ src/commands/__tests__/deps-health.test.ts (1 test) 9ms
12
- ✓ src/commands/__tests__/doc-drift.test.ts (1 test) 9ms
13
14
  stdout | src/commands/__tests__/visualize.test.ts > Visualize CLI Action > should generate HTML from specified report
14
15
  Building graph from report...
15
16
 
16
- ✓ src/commands/__tests__/agent-grounding.test.ts (1 test) 8ms
17
17
  stdout | src/commands/__tests__/visualize.test.ts > Visualize CLI Action > should generate HTML from specified report
18
18
  Generating HTML...
19
19
  ✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
@@ -41,8 +41,8 @@ Or specify a custom report:
41
41
  Generating HTML...
42
42
  ✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
43
43
 
44
- ✓ src/commands/__tests__/visualize.test.ts (4 tests) 27ms
45
- ✓ src/utils/__tests__/helpers.test.ts (3 tests) 3ms
44
+ ✓ src/commands/__tests__/visualize.test.ts (4 tests) 30ms
45
+ ✓ src/utils/__tests__/helpers.test.ts (3 tests) 6ms
46
46
  stdout | src/commands/__tests__/upload.test.ts > Upload CLI Action > should fail if API key is missing
47
47
   Set AIREADY_API_KEY environment variable or use --api-key flag.
48
48
  Get an API key from https://platform.getaiready.dev/dashboard
@@ -58,18 +58,18 @@ Or specify a custom report:
58
58
  Score: 80/100
59
59
 
60
60
  ✓ src/commands/__tests__/upload.test.ts (2 tests) 5ms
61
- ✓ src/commands/__tests__/consistency.test.ts (4 tests) 4ms
62
- ✓ src/commands/__tests__/scan.test.ts (6 tests) 74ms
63
- ✓ src/__tests__/unified.test.ts (4 tests) 4ms
64
- ✓ src/commands/__tests__/extra-commands.test.ts (8 tests) 95ms
65
- ✓ src/__tests__/cli.test.ts (3 tests) 2501ms
66
- ✓ should run unified analysis with both tools  2499ms
67
- ✓ src/__tests__/config-shape.test.ts (3 tests) 2500ms
68
- ✓ should generate a strictly portable AIReadyConfig in summary  2499ms
61
+ ✓ src/commands/__tests__/consistency.test.ts (4 tests) 6ms
62
+ ✓ src/commands/__tests__/scan.test.ts (6 tests) 140ms
63
+ ✓ src/commands/__tests__/extra-commands.test.ts (8 tests) 122ms
64
+ ✓ src/__tests__/unified.test.ts (4 tests) 3ms
65
+ ✓ src/__tests__/cli.test.ts (3 tests) 3121ms
66
+ ✓ should run unified analysis with both tools  3120ms
67
+ ✓ src/__tests__/config-shape.test.ts (3 tests) 3122ms
68
+ ✓ should generate a strictly portable AIReadyConfig in summary  3121ms
69
69
 
70
70
   Test Files  14 passed (14)
71
71
   Tests  43 passed (43)
72
-  Start at  15:19:20
73
-  Duration  3.27s (transform 1.67s, setup 0ms, import 3.49s, tests 5.26s, environment 1ms)
72
+  Start at  18:35:57
73
+  Duration  4.61s (transform 3.16s, setup 0ms, import 7.21s, tests 6.64s, environment 2ms)
74
74
 
75
75
  [?25h
package/dist/cli.js CHANGED
@@ -805,11 +805,20 @@ async function scanAction(directory, options) {
805
805
  const failOnLevel = options.failOn || "critical";
806
806
  let shouldFail = false;
807
807
  let failReason = "";
808
+ const report = mapToUnifiedReport(results, scoringResult);
809
+ if (report.results && report.results.length > 0) {
810
+ console.log(
811
+ import_chalk3.default.cyan(
812
+ `
813
+ \u{1F4DD} Emitting GitHub Action annotations for ${report.results.length} issues...`
814
+ )
815
+ );
816
+ (0, import_core3.emitIssuesAsAnnotations)(report.results);
817
+ }
808
818
  if (threshold && scoringResult.overall < threshold) {
809
819
  shouldFail = true;
810
820
  failReason = `Score ${scoringResult.overall} < threshold ${threshold}`;
811
821
  }
812
- const report = mapToUnifiedReport(results, scoringResult);
813
822
  if (failOnLevel !== "none") {
814
823
  if (failOnLevel === "critical" && report.summary.criticalIssues > 0) {
815
824
  shouldFail = true;
package/dist/cli.mjs CHANGED
@@ -25,7 +25,8 @@ import {
25
25
  getRating,
26
26
  getRepoMetadata,
27
27
  Severity,
28
- ToolName
28
+ ToolName,
29
+ emitIssuesAsAnnotations
29
30
  } from "@aiready/core";
30
31
 
31
32
  // src/utils/helpers.ts
@@ -543,11 +544,20 @@ async function scanAction(directory, options) {
543
544
  const failOnLevel = options.failOn || "critical";
544
545
  let shouldFail = false;
545
546
  let failReason = "";
547
+ const report = mapToUnifiedReport(results, scoringResult);
548
+ if (report.results && report.results.length > 0) {
549
+ console.log(
550
+ chalk3.cyan(
551
+ `
552
+ \u{1F4DD} Emitting GitHub Action annotations for ${report.results.length} issues...`
553
+ )
554
+ );
555
+ emitIssuesAsAnnotations(report.results);
556
+ }
546
557
  if (threshold && scoringResult.overall < threshold) {
547
558
  shouldFail = true;
548
559
  failReason = `Score ${scoringResult.overall} < threshold ${threshold}`;
549
560
  }
550
- const report = mapToUnifiedReport(results, scoringResult);
551
561
  if (failOnLevel !== "none") {
552
562
  if (failOnLevel === "critical" && report.summary.criticalIssues > 0) {
553
563
  shouldFail = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/cli",
3
- "version": "0.12.23",
3
+ "version": "0.13.0",
4
4
  "description": "Unified CLI for AIReady analysis tools",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -11,18 +11,18 @@
11
11
  "dependencies": {
12
12
  "chalk": "^5.3.0",
13
13
  "commander": "^14.0.0",
14
- "@aiready/agent-grounding": "0.11.21",
15
14
  "@aiready/clawmart": "0.1.2",
16
- "@aiready/context-analyzer": "0.19.21",
17
- "@aiready/core": "0.21.21",
18
- "@aiready/consistency": "0.18.21",
19
- "@aiready/doc-drift": "0.11.21",
20
- "@aiready/ai-signal-clarity": "0.11.21",
21
- "@aiready/pattern-detect": "0.14.21",
22
- "@aiready/change-amplification": "0.11.21",
23
- "@aiready/visualizer": "0.4.22",
24
- "@aiready/deps": "0.11.21",
25
- "@aiready/testability": "0.4.21"
15
+ "@aiready/context-analyzer": "0.20.0",
16
+ "@aiready/agent-grounding": "0.12.0",
17
+ "@aiready/consistency": "0.19.0",
18
+ "@aiready/core": "0.22.0",
19
+ "@aiready/deps": "0.12.0",
20
+ "@aiready/doc-drift": "0.12.0",
21
+ "@aiready/change-amplification": "0.12.0",
22
+ "@aiready/ai-signal-clarity": "0.12.0",
23
+ "@aiready/pattern-detect": "0.15.0",
24
+ "@aiready/visualizer": "0.5.0",
25
+ "@aiready/testability": "0.5.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^24.0.0",