@aiready/cli 0.14.11 → 0.14.12

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.14.11 build /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.14.12 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
-  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta] 11:51:54 pm
13
+  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta] 12:03:29 am
14
14
 
15
15
  src/cli.ts:29:31:
16
16
   29 │ return dirname(fileURLToPath(import.meta.url));
@@ -21,9 +21,9 @@
21
21
 
22
22
 
23
23
  CJS dist/index.js 10.87 KB
24
- CJS dist/cli.js 88.48 KB
25
- CJS ⚡️ Build success in 39ms
24
+ CJS dist/cli.js 88.84 KB
25
+ CJS ⚡️ Build success in 49ms
26
26
  ESM dist/index.mjs 170.00 B
27
- ESM dist/cli.mjs 74.23 KB
27
+ ESM dist/cli.mjs 74.59 KB
28
28
  ESM dist/chunk-JRRBBFYB.mjs 9.77 KB
29
- ESM ⚡️ Build success in 39ms
29
+ ESM ⚡️ Build success in 49ms
@@ -1,16 +1,29 @@
1
1
 
2
2
  
3
- > @aiready/cli@0.14.10 test /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.14.11 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) 15ms
10
9
  stdout | src/commands/__tests__/visualize.test.ts > Visualize CLI Action > should generate HTML from specified report
11
10
  Building graph from report...
12
11
 
13
- ✓ src/commands/__tests__/agent-grounding.test.ts (1 test) 18ms
12
+ stdout | src/commands/__tests__/upload.test.ts > Upload CLI Action > should fail if API key is missing
13
+  Set AIREADY_API_KEY environment variable or use --api-key flag.
14
+ Get an API key from https://platform.getaiready.dev/dashboard
15
+ 🚀 Uploading report to https://dev.platform.getaiready.dev...
16
+ Reading report from /Users/pengcao/projects/aiready/packages/cli/report.json...
17
+ Successfully parsed report JSON.
18
+
19
+ stdout | src/commands/__tests__/upload.test.ts > Upload CLI Action > should fail if API key is missing
20
+ 
21
+ ✅ Upload successful! (0.00s)
22
+ View results: https://dev.platform.getaiready.dev/dashboard
23
+ Analysis ID: 123
24
+ Score: 80/100
25
+
26
+ ✓ src/commands/__tests__/upload.test.ts (2 tests) 4ms
14
27
  stdout | src/commands/__tests__/visualize.test.ts > Visualize CLI Action > should generate HTML from specified report
15
28
  Generating HTML...
16
29
  ✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
@@ -38,39 +51,26 @@ Or specify a custom report:
38
51
  Generating HTML...
39
52
  ✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
40
53
 
41
- ✓ src/commands/__tests__/visualize.test.ts (4 tests) 28ms
42
- ✓ src/commands/__tests__/doc-drift.test.ts (1 test) 7ms
43
- ✓ src/commands/__tests__/ai-signal-clarity.test.ts (1 test) 9ms
44
- ✓ src/commands/__tests__/deps-health.test.ts (1 test) 8ms
45
- stdout | src/commands/__tests__/upload.test.ts > Upload CLI Action > should fail if API key is missing
46
-  Set AIREADY_API_KEY environment variable or use --api-key flag.
47
- Get an API key from https://platform.getaiready.dev/dashboard
48
- 🚀 Uploading report to https://dev.platform.getaiready.dev...
49
- Reading report from /Users/pengcao/projects/aiready/packages/cli/report.json...
50
- Successfully parsed report JSON.
51
-
52
- stdout | src/commands/__tests__/upload.test.ts > Upload CLI Action > should fail if API key is missing
53
- 
54
- ✅ Upload successful! (0.00s)
55
- View results: https://dev.platform.getaiready.dev/dashboard
56
- Analysis ID: 123
57
- Score: 80/100
58
-
59
- ✓ src/commands/__tests__/upload.test.ts (2 tests) 4ms
54
+ ✓ src/commands/__tests__/visualize.test.ts (4 tests) 24ms
55
+ ✓ src/commands/__tests__/agent-grounding.test.ts (1 test) 21ms
56
+ ✓ src/commands/__tests__/testability.test.ts (2 tests) 9ms
57
+ ✓ src/commands/__tests__/deps-health.test.ts (1 test) 11ms
58
+ ✓ src/commands/__tests__/ai-signal-clarity.test.ts (1 test) 12ms
59
+ ✓ src/commands/__tests__/doc-drift.test.ts (1 test) 13ms
60
60
  ✓ src/utils/__tests__/helpers.test.ts (3 tests) 2ms
61
61
  ✓ src/commands/__tests__/init.test.ts (2 tests) 4ms
62
62
  ✓ src/commands/__tests__/consistency.test.ts (4 tests) 4ms
63
- ✓ src/commands/__tests__/scan.test.ts (6 tests) 79ms
64
- ✓ src/commands/__tests__/extra-commands.test.ts (8 tests) 125ms
63
+ ✓ src/commands/__tests__/scan.test.ts (6 tests) 81ms
65
64
  ✓ src/__tests__/unified.test.ts (4 tests) 3ms
66
- ✓ src/__tests__/cli.test.ts (3 tests) 2817ms
67
- ✓ should run unified analysis with both tools  2816ms
68
- ✓ src/__tests__/config-shape.test.ts (3 tests) 2818ms
69
- ✓ should generate a strictly portable AIReadyConfig in summary  2816ms
65
+ ✓ src/commands/__tests__/extra-commands.test.ts (8 tests) 117ms
66
+ ✓ src/__tests__/cli.test.ts (3 tests) 2506ms
67
+ ✓ should run unified analysis with both tools  2505ms
68
+ ✓ src/__tests__/config-shape.test.ts (3 tests) 2506ms
69
+ ✓ should generate a strictly portable AIReadyConfig in summary  2505ms
70
70
 
71
71
   Test Files  15 passed (15)
72
72
   Tests  45 passed (45)
73
-  Start at  23:50:23
74
-  Duration  3.75s (transform 2.06s, setup 0ms, import 4.86s, tests 5.94s, environment 1ms)
73
+  Start at  00:01:59
74
+  Duration  3.47s (transform 2.12s, setup 0ms, import 5.20s, tests 5.32s, environment 1ms)
75
75
 
76
76
  [?25h
package/dist/cli.js CHANGED
@@ -1040,24 +1040,27 @@ async function initAction(options) {
1040
1040
  [import_core7.ToolName.PatternDetect]: {
1041
1041
  minSimilarity: 0.8,
1042
1042
  minLines: 5,
1043
+ minSharedTokens: 10,
1044
+ approx: true,
1043
1045
  ...options.full ? {
1044
- batchSize: 50,
1045
- approx: true,
1046
- minSharedTokens: 10,
1047
- maxCandidatesPerBlock: 100
1046
+ batchSize: 300,
1047
+ maxCandidatesPerBlock: 500,
1048
+ minClusterFiles: 3,
1049
+ minClusterTokenCost: 1e3
1048
1050
  } : {}
1049
1051
  },
1050
1052
  [import_core7.ToolName.ContextAnalyzer]: {
1051
1053
  maxContextBudget: 128e3,
1052
1054
  minCohesion: 0.6,
1053
- ...options.full ? {
1054
- maxDepth: 7,
1055
- maxFragmentation: 0.4,
1056
- focus: "all",
1057
- includeNodeModules: false
1058
- } : {}
1055
+ maxDepth: 7,
1056
+ maxFragmentation: 0.4,
1057
+ focus: "all",
1058
+ includeNodeModules: false
1059
1059
  },
1060
1060
  [import_core7.ToolName.NamingConsistency]: {
1061
+ checkNaming: true,
1062
+ checkPatterns: true,
1063
+ checkArchitecture: true,
1061
1064
  shortWords: ["id", "db", "ui", "ai"],
1062
1065
  acceptedAbbreviations: [
1063
1066
  "API",
@@ -1083,7 +1086,13 @@ async function initAction(options) {
1083
1086
  "MIN",
1084
1087
  "config",
1085
1088
  "INIT",
1086
- "SKILL"
1089
+ "SKILL",
1090
+ "ENV",
1091
+ "DEV",
1092
+ "PROD",
1093
+ "AWS",
1094
+ "S3",
1095
+ "ARN"
1087
1096
  ],
1088
1097
  ...options.full ? { disableChecks: [] } : {}
1089
1098
  },
@@ -1092,15 +1101,20 @@ async function initAction(options) {
1092
1101
  checkBooleanTraps: true,
1093
1102
  checkAmbiguousNames: true,
1094
1103
  checkUndocumentedExports: true,
1095
- ...options.full ? { checkImplicitSideEffects: false, checkDeepCallbacks: false } : {}
1104
+ checkImplicitSideEffects: true,
1105
+ checkDeepCallbacks: true,
1106
+ checkOverloadedSymbols: true,
1107
+ checkLargeFiles: true
1096
1108
  },
1097
1109
  [import_core7.ToolName.AgentGrounding]: {
1098
1110
  maxRecommendedDepth: 5,
1099
- readmeStaleDays: 30
1111
+ readmeStaleDays: 30,
1112
+ additionalVagueNames: ["stuff", "misc", "temp", "test"]
1100
1113
  },
1101
1114
  [import_core7.ToolName.TestabilityIndex]: {
1102
1115
  minCoverageRatio: 0.7,
1103
- testPatterns: ["**/*.test.ts", "**/__tests__/**"]
1116
+ testPatterns: ["**/*.test.ts", "**/__tests__/**", "**/*.spec.ts"],
1117
+ maxDepth: 10
1104
1118
  },
1105
1119
  [import_core7.ToolName.DocDrift]: {
1106
1120
  maxCommits: 50,
@@ -1110,7 +1124,7 @@ async function initAction(options) {
1110
1124
  trainingCutoffYear: 2023
1111
1125
  },
1112
1126
  [import_core7.ToolName.ChangeAmplification]: {
1113
- // No specific options yet, uses global scan settings
1127
+ // Change amplification primarily relies on global scan settings
1114
1128
  }
1115
1129
  },
1116
1130
  // Visualizer settings (interactive graph)
package/dist/cli.mjs CHANGED
@@ -777,24 +777,27 @@ async function initAction(options) {
777
777
  [ToolName2.PatternDetect]: {
778
778
  minSimilarity: 0.8,
779
779
  minLines: 5,
780
+ minSharedTokens: 10,
781
+ approx: true,
780
782
  ...options.full ? {
781
- batchSize: 50,
782
- approx: true,
783
- minSharedTokens: 10,
784
- maxCandidatesPerBlock: 100
783
+ batchSize: 300,
784
+ maxCandidatesPerBlock: 500,
785
+ minClusterFiles: 3,
786
+ minClusterTokenCost: 1e3
785
787
  } : {}
786
788
  },
787
789
  [ToolName2.ContextAnalyzer]: {
788
790
  maxContextBudget: 128e3,
789
791
  minCohesion: 0.6,
790
- ...options.full ? {
791
- maxDepth: 7,
792
- maxFragmentation: 0.4,
793
- focus: "all",
794
- includeNodeModules: false
795
- } : {}
792
+ maxDepth: 7,
793
+ maxFragmentation: 0.4,
794
+ focus: "all",
795
+ includeNodeModules: false
796
796
  },
797
797
  [ToolName2.NamingConsistency]: {
798
+ checkNaming: true,
799
+ checkPatterns: true,
800
+ checkArchitecture: true,
798
801
  shortWords: ["id", "db", "ui", "ai"],
799
802
  acceptedAbbreviations: [
800
803
  "API",
@@ -820,7 +823,13 @@ async function initAction(options) {
820
823
  "MIN",
821
824
  "config",
822
825
  "INIT",
823
- "SKILL"
826
+ "SKILL",
827
+ "ENV",
828
+ "DEV",
829
+ "PROD",
830
+ "AWS",
831
+ "S3",
832
+ "ARN"
824
833
  ],
825
834
  ...options.full ? { disableChecks: [] } : {}
826
835
  },
@@ -829,15 +838,20 @@ async function initAction(options) {
829
838
  checkBooleanTraps: true,
830
839
  checkAmbiguousNames: true,
831
840
  checkUndocumentedExports: true,
832
- ...options.full ? { checkImplicitSideEffects: false, checkDeepCallbacks: false } : {}
841
+ checkImplicitSideEffects: true,
842
+ checkDeepCallbacks: true,
843
+ checkOverloadedSymbols: true,
844
+ checkLargeFiles: true
833
845
  },
834
846
  [ToolName2.AgentGrounding]: {
835
847
  maxRecommendedDepth: 5,
836
- readmeStaleDays: 30
848
+ readmeStaleDays: 30,
849
+ additionalVagueNames: ["stuff", "misc", "temp", "test"]
837
850
  },
838
851
  [ToolName2.TestabilityIndex]: {
839
852
  minCoverageRatio: 0.7,
840
- testPatterns: ["**/*.test.ts", "**/__tests__/**"]
853
+ testPatterns: ["**/*.test.ts", "**/__tests__/**", "**/*.spec.ts"],
854
+ maxDepth: 10
841
855
  },
842
856
  [ToolName2.DocDrift]: {
843
857
  maxCommits: 50,
@@ -847,7 +861,7 @@ async function initAction(options) {
847
861
  trainingCutoffYear: 2023
848
862
  },
849
863
  [ToolName2.ChangeAmplification]: {
850
- // No specific options yet, uses global scan settings
864
+ // Change amplification primarily relies on global scan settings
851
865
  }
852
866
  },
853
867
  // Visualizer settings (interactive graph)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/cli",
3
- "version": "0.14.11",
3
+ "version": "0.14.12",
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/context-analyzer": "0.21.12",
15
- "@aiready/consistency": "0.20.8",
16
- "@aiready/core": "0.23.9",
17
- "@aiready/agent-grounding": "0.13.8",
18
- "@aiready/pattern-detect": "0.16.8",
19
- "@aiready/deps": "0.13.9",
20
- "@aiready/visualizer": "0.6.8",
21
- "@aiready/change-amplification": "0.13.8",
22
- "@aiready/doc-drift": "0.13.8",
23
- "@aiready/testability": "0.6.8",
24
- "@aiready/ai-signal-clarity": "0.13.9"
14
+ "@aiready/consistency": "0.20.9",
15
+ "@aiready/doc-drift": "0.13.9",
16
+ "@aiready/agent-grounding": "0.13.9",
17
+ "@aiready/context-analyzer": "0.21.13",
18
+ "@aiready/change-amplification": "0.13.9",
19
+ "@aiready/core": "0.23.10",
20
+ "@aiready/deps": "0.13.10",
21
+ "@aiready/visualizer": "0.6.9",
22
+ "@aiready/ai-signal-clarity": "0.13.10",
23
+ "@aiready/pattern-detect": "0.16.9",
24
+ "@aiready/testability": "0.6.9"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^24.0.0",
@@ -68,28 +68,29 @@ export async function initAction(options: {
68
68
  [ToolName.PatternDetect]: {
69
69
  minSimilarity: 0.8,
70
70
  minLines: 5,
71
+ minSharedTokens: 10,
72
+ approx: true,
71
73
  ...(options.full
72
74
  ? {
73
- batchSize: 50,
74
- approx: true,
75
- minSharedTokens: 10,
76
- maxCandidatesPerBlock: 100,
75
+ batchSize: 300,
76
+ maxCandidatesPerBlock: 500,
77
+ minClusterFiles: 3,
78
+ minClusterTokenCost: 1000,
77
79
  }
78
80
  : {}),
79
81
  },
80
82
  [ToolName.ContextAnalyzer]: {
81
83
  maxContextBudget: 128000,
82
84
  minCohesion: 0.6,
83
- ...(options.full
84
- ? {
85
- maxDepth: 7,
86
- maxFragmentation: 0.4,
87
- focus: 'all',
88
- includeNodeModules: false,
89
- }
90
- : {}),
85
+ maxDepth: 7,
86
+ maxFragmentation: 0.4,
87
+ focus: 'all',
88
+ includeNodeModules: false,
91
89
  },
92
90
  [ToolName.NamingConsistency]: {
91
+ checkNaming: true,
92
+ checkPatterns: true,
93
+ checkArchitecture: true,
93
94
  shortWords: ['id', 'db', 'ui', 'ai'],
94
95
  acceptedAbbreviations: [
95
96
  'API',
@@ -116,6 +117,12 @@ export async function initAction(options: {
116
117
  'config',
117
118
  'INIT',
118
119
  'SKILL',
120
+ 'ENV',
121
+ 'DEV',
122
+ 'PROD',
123
+ 'AWS',
124
+ 'S3',
125
+ 'ARN',
119
126
  ],
120
127
  ...(options.full ? { disableChecks: [] } : {}),
121
128
  },
@@ -124,17 +131,20 @@ export async function initAction(options: {
124
131
  checkBooleanTraps: true,
125
132
  checkAmbiguousNames: true,
126
133
  checkUndocumentedExports: true,
127
- ...(options.full
128
- ? { checkImplicitSideEffects: false, checkDeepCallbacks: false }
129
- : {}),
134
+ checkImplicitSideEffects: true,
135
+ checkDeepCallbacks: true,
136
+ checkOverloadedSymbols: true,
137
+ checkLargeFiles: true,
130
138
  },
131
139
  [ToolName.AgentGrounding]: {
132
140
  maxRecommendedDepth: 5,
133
141
  readmeStaleDays: 30,
142
+ additionalVagueNames: ['stuff', 'misc', 'temp', 'test'],
134
143
  },
135
144
  [ToolName.TestabilityIndex]: {
136
145
  minCoverageRatio: 0.7,
137
- testPatterns: ['**/*.test.ts', '**/__tests__/**'],
146
+ testPatterns: ['**/*.test.ts', '**/__tests__/**', '**/*.spec.ts'],
147
+ maxDepth: 10,
138
148
  },
139
149
  [ToolName.DocDrift]: {
140
150
  maxCommits: 50,
@@ -144,7 +154,7 @@ export async function initAction(options: {
144
154
  trainingCutoffYear: 2023,
145
155
  },
146
156
  [ToolName.ChangeAmplification]: {
147
- // No specific options yet, uses global scan settings
157
+ // Change amplification primarily relies on global scan settings
148
158
  },
149
159
  },
150
160