@aiready/cli 0.14.11 → 0.14.13

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.13 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:09:38 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
26
- ESM dist/index.mjs 170.00 B
27
- ESM dist/cli.mjs 74.23 KB
24
+ CJS dist/cli.js 88.89 KB
25
+ CJS ⚡️ Build success in 59ms
26
+ ESM dist/cli.mjs 74.64 KB
28
27
  ESM dist/chunk-JRRBBFYB.mjs 9.77 KB
29
- ESM ⚡️ Build success in 39ms
28
+ ESM dist/index.mjs 170.00 B
29
+ ESM ⚡️ Build success in 59ms
@@ -1,16 +1,16 @@
1
1
 
2
2
  
3
- > @aiready/cli@0.14.10 test /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.14.12 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
+ ✓ src/commands/__tests__/agent-grounding.test.ts (1 test) 7ms
13
+ ✓ src/commands/__tests__/testability.test.ts (2 tests) 9ms
14
14
  stdout | src/commands/__tests__/visualize.test.ts > Visualize CLI Action > should generate HTML from specified report
15
15
  Generating HTML...
16
16
  ✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
@@ -38,10 +38,6 @@ Or specify a custom report:
38
38
  Generating HTML...
39
39
  ✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
40
40
 
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
41
  stdout | src/commands/__tests__/upload.test.ts > Upload CLI Action > should fail if API key is missing
46
42
   Set AIREADY_API_KEY environment variable or use --api-key flag.
47
43
  Get an API key from https://platform.getaiready.dev/dashboard
@@ -56,21 +52,25 @@ Or specify a custom report:
56
52
  Analysis ID: 123
57
53
  Score: 80/100
58
54
 
59
- ✓ src/commands/__tests__/upload.test.ts (2 tests) 4ms
55
+ ✓ src/commands/__tests__/visualize.test.ts (4 tests) 21ms
56
+ ✓ src/commands/__tests__/upload.test.ts (2 tests) 5ms
57
+ ✓ src/commands/__tests__/ai-signal-clarity.test.ts (1 test) 9ms
58
+ ✓ src/commands/__tests__/doc-drift.test.ts (1 test) 11ms
59
+ ✓ src/commands/__tests__/deps-health.test.ts (1 test) 10ms
60
60
  ✓ src/utils/__tests__/helpers.test.ts (3 tests) 2ms
61
61
  ✓ src/commands/__tests__/init.test.ts (2 tests) 4ms
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
62
+ ✓ src/commands/__tests__/consistency.test.ts (4 tests) 6ms
63
+ ✓ src/commands/__tests__/scan.test.ts (6 tests) 98ms
64
+ ✓ src/commands/__tests__/extra-commands.test.ts (8 tests) 130ms
65
65
  ✓ 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
66
+ ✓ src/__tests__/cli.test.ts (3 tests) 1947ms
67
+ ✓ should run unified analysis with both tools  1946ms
68
+ ✓ src/__tests__/config-shape.test.ts (3 tests) 1948ms
69
+ ✓ should generate a strictly portable AIReadyConfig in summary  1947ms
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:08:07
74
+  Duration  2.94s (transform 2.51s, setup 0ms, import 5.31s, tests 4.21s, environment 1ms)
75
75
 
76
76
  [?25h
package/dist/cli.js CHANGED
@@ -996,6 +996,7 @@ async function initAction(options) {
996
996
  process.exit(1);
997
997
  }
998
998
  const baseConfig = {
999
+ $schema: "https://getaiready.dev/schema.json",
999
1000
  // Target quality score threshold (0-100)
1000
1001
  threshold: 75,
1001
1002
  // Global scan settings
@@ -1040,24 +1041,27 @@ async function initAction(options) {
1040
1041
  [import_core7.ToolName.PatternDetect]: {
1041
1042
  minSimilarity: 0.8,
1042
1043
  minLines: 5,
1044
+ minSharedTokens: 10,
1045
+ approx: true,
1043
1046
  ...options.full ? {
1044
- batchSize: 50,
1045
- approx: true,
1046
- minSharedTokens: 10,
1047
- maxCandidatesPerBlock: 100
1047
+ batchSize: 300,
1048
+ maxCandidatesPerBlock: 500,
1049
+ minClusterFiles: 3,
1050
+ minClusterTokenCost: 1e3
1048
1051
  } : {}
1049
1052
  },
1050
1053
  [import_core7.ToolName.ContextAnalyzer]: {
1051
1054
  maxContextBudget: 128e3,
1052
1055
  minCohesion: 0.6,
1053
- ...options.full ? {
1054
- maxDepth: 7,
1055
- maxFragmentation: 0.4,
1056
- focus: "all",
1057
- includeNodeModules: false
1058
- } : {}
1056
+ maxDepth: 7,
1057
+ maxFragmentation: 0.4,
1058
+ focus: "all",
1059
+ includeNodeModules: false
1059
1060
  },
1060
1061
  [import_core7.ToolName.NamingConsistency]: {
1062
+ checkNaming: true,
1063
+ checkPatterns: true,
1064
+ checkArchitecture: true,
1061
1065
  shortWords: ["id", "db", "ui", "ai"],
1062
1066
  acceptedAbbreviations: [
1063
1067
  "API",
@@ -1083,7 +1087,13 @@ async function initAction(options) {
1083
1087
  "MIN",
1084
1088
  "config",
1085
1089
  "INIT",
1086
- "SKILL"
1090
+ "SKILL",
1091
+ "ENV",
1092
+ "DEV",
1093
+ "PROD",
1094
+ "AWS",
1095
+ "S3",
1096
+ "ARN"
1087
1097
  ],
1088
1098
  ...options.full ? { disableChecks: [] } : {}
1089
1099
  },
@@ -1092,15 +1102,20 @@ async function initAction(options) {
1092
1102
  checkBooleanTraps: true,
1093
1103
  checkAmbiguousNames: true,
1094
1104
  checkUndocumentedExports: true,
1095
- ...options.full ? { checkImplicitSideEffects: false, checkDeepCallbacks: false } : {}
1105
+ checkImplicitSideEffects: true,
1106
+ checkDeepCallbacks: true,
1107
+ checkOverloadedSymbols: true,
1108
+ checkLargeFiles: true
1096
1109
  },
1097
1110
  [import_core7.ToolName.AgentGrounding]: {
1098
1111
  maxRecommendedDepth: 5,
1099
- readmeStaleDays: 30
1112
+ readmeStaleDays: 30,
1113
+ additionalVagueNames: ["stuff", "misc", "temp", "test"]
1100
1114
  },
1101
1115
  [import_core7.ToolName.TestabilityIndex]: {
1102
1116
  minCoverageRatio: 0.7,
1103
- testPatterns: ["**/*.test.ts", "**/__tests__/**"]
1117
+ testPatterns: ["**/*.test.ts", "**/__tests__/**", "**/*.spec.ts"],
1118
+ maxDepth: 10
1104
1119
  },
1105
1120
  [import_core7.ToolName.DocDrift]: {
1106
1121
  maxCommits: 50,
@@ -1110,7 +1125,7 @@ async function initAction(options) {
1110
1125
  trainingCutoffYear: 2023
1111
1126
  },
1112
1127
  [import_core7.ToolName.ChangeAmplification]: {
1113
- // No specific options yet, uses global scan settings
1128
+ // Change amplification primarily relies on global scan settings
1114
1129
  }
1115
1130
  },
1116
1131
  // Visualizer settings (interactive graph)
package/dist/cli.mjs CHANGED
@@ -733,6 +733,7 @@ async function initAction(options) {
733
733
  process.exit(1);
734
734
  }
735
735
  const baseConfig = {
736
+ $schema: "https://getaiready.dev/schema.json",
736
737
  // Target quality score threshold (0-100)
737
738
  threshold: 75,
738
739
  // Global scan settings
@@ -777,24 +778,27 @@ async function initAction(options) {
777
778
  [ToolName2.PatternDetect]: {
778
779
  minSimilarity: 0.8,
779
780
  minLines: 5,
781
+ minSharedTokens: 10,
782
+ approx: true,
780
783
  ...options.full ? {
781
- batchSize: 50,
782
- approx: true,
783
- minSharedTokens: 10,
784
- maxCandidatesPerBlock: 100
784
+ batchSize: 300,
785
+ maxCandidatesPerBlock: 500,
786
+ minClusterFiles: 3,
787
+ minClusterTokenCost: 1e3
785
788
  } : {}
786
789
  },
787
790
  [ToolName2.ContextAnalyzer]: {
788
791
  maxContextBudget: 128e3,
789
792
  minCohesion: 0.6,
790
- ...options.full ? {
791
- maxDepth: 7,
792
- maxFragmentation: 0.4,
793
- focus: "all",
794
- includeNodeModules: false
795
- } : {}
793
+ maxDepth: 7,
794
+ maxFragmentation: 0.4,
795
+ focus: "all",
796
+ includeNodeModules: false
796
797
  },
797
798
  [ToolName2.NamingConsistency]: {
799
+ checkNaming: true,
800
+ checkPatterns: true,
801
+ checkArchitecture: true,
798
802
  shortWords: ["id", "db", "ui", "ai"],
799
803
  acceptedAbbreviations: [
800
804
  "API",
@@ -820,7 +824,13 @@ async function initAction(options) {
820
824
  "MIN",
821
825
  "config",
822
826
  "INIT",
823
- "SKILL"
827
+ "SKILL",
828
+ "ENV",
829
+ "DEV",
830
+ "PROD",
831
+ "AWS",
832
+ "S3",
833
+ "ARN"
824
834
  ],
825
835
  ...options.full ? { disableChecks: [] } : {}
826
836
  },
@@ -829,15 +839,20 @@ async function initAction(options) {
829
839
  checkBooleanTraps: true,
830
840
  checkAmbiguousNames: true,
831
841
  checkUndocumentedExports: true,
832
- ...options.full ? { checkImplicitSideEffects: false, checkDeepCallbacks: false } : {}
842
+ checkImplicitSideEffects: true,
843
+ checkDeepCallbacks: true,
844
+ checkOverloadedSymbols: true,
845
+ checkLargeFiles: true
833
846
  },
834
847
  [ToolName2.AgentGrounding]: {
835
848
  maxRecommendedDepth: 5,
836
- readmeStaleDays: 30
849
+ readmeStaleDays: 30,
850
+ additionalVagueNames: ["stuff", "misc", "temp", "test"]
837
851
  },
838
852
  [ToolName2.TestabilityIndex]: {
839
853
  minCoverageRatio: 0.7,
840
- testPatterns: ["**/*.test.ts", "**/__tests__/**"]
854
+ testPatterns: ["**/*.test.ts", "**/__tests__/**", "**/*.spec.ts"],
855
+ maxDepth: 10
841
856
  },
842
857
  [ToolName2.DocDrift]: {
843
858
  maxCommits: 50,
@@ -847,7 +862,7 @@ async function initAction(options) {
847
862
  trainingCutoffYear: 2023
848
863
  },
849
864
  [ToolName2.ChangeAmplification]: {
850
- // No specific options yet, uses global scan settings
865
+ // Change amplification primarily relies on global scan settings
851
866
  }
852
867
  },
853
868
  // 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.13",
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/agent-grounding": "0.13.10",
15
+ "@aiready/context-analyzer": "0.21.14",
16
+ "@aiready/consistency": "0.20.10",
17
+ "@aiready/doc-drift": "0.13.10",
18
+ "@aiready/core": "0.23.11",
19
+ "@aiready/change-amplification": "0.13.10",
20
+ "@aiready/deps": "0.13.11",
21
+ "@aiready/pattern-detect": "0.16.10",
22
+ "@aiready/ai-signal-clarity": "0.13.11",
23
+ "@aiready/visualizer": "0.6.10",
24
+ "@aiready/testability": "0.6.10"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^24.0.0",
@@ -20,6 +20,8 @@ export async function initAction(options: {
20
20
  }
21
21
 
22
22
  const baseConfig = {
23
+ $schema: 'https://getaiready.dev/schema.json',
24
+
23
25
  // Target quality score threshold (0-100)
24
26
  threshold: 75,
25
27
 
@@ -68,28 +70,29 @@ export async function initAction(options: {
68
70
  [ToolName.PatternDetect]: {
69
71
  minSimilarity: 0.8,
70
72
  minLines: 5,
73
+ minSharedTokens: 10,
74
+ approx: true,
71
75
  ...(options.full
72
76
  ? {
73
- batchSize: 50,
74
- approx: true,
75
- minSharedTokens: 10,
76
- maxCandidatesPerBlock: 100,
77
+ batchSize: 300,
78
+ maxCandidatesPerBlock: 500,
79
+ minClusterFiles: 3,
80
+ minClusterTokenCost: 1000,
77
81
  }
78
82
  : {}),
79
83
  },
80
84
  [ToolName.ContextAnalyzer]: {
81
85
  maxContextBudget: 128000,
82
86
  minCohesion: 0.6,
83
- ...(options.full
84
- ? {
85
- maxDepth: 7,
86
- maxFragmentation: 0.4,
87
- focus: 'all',
88
- includeNodeModules: false,
89
- }
90
- : {}),
87
+ maxDepth: 7,
88
+ maxFragmentation: 0.4,
89
+ focus: 'all',
90
+ includeNodeModules: false,
91
91
  },
92
92
  [ToolName.NamingConsistency]: {
93
+ checkNaming: true,
94
+ checkPatterns: true,
95
+ checkArchitecture: true,
93
96
  shortWords: ['id', 'db', 'ui', 'ai'],
94
97
  acceptedAbbreviations: [
95
98
  'API',
@@ -116,6 +119,12 @@ export async function initAction(options: {
116
119
  'config',
117
120
  'INIT',
118
121
  'SKILL',
122
+ 'ENV',
123
+ 'DEV',
124
+ 'PROD',
125
+ 'AWS',
126
+ 'S3',
127
+ 'ARN',
119
128
  ],
120
129
  ...(options.full ? { disableChecks: [] } : {}),
121
130
  },
@@ -124,17 +133,20 @@ export async function initAction(options: {
124
133
  checkBooleanTraps: true,
125
134
  checkAmbiguousNames: true,
126
135
  checkUndocumentedExports: true,
127
- ...(options.full
128
- ? { checkImplicitSideEffects: false, checkDeepCallbacks: false }
129
- : {}),
136
+ checkImplicitSideEffects: true,
137
+ checkDeepCallbacks: true,
138
+ checkOverloadedSymbols: true,
139
+ checkLargeFiles: true,
130
140
  },
131
141
  [ToolName.AgentGrounding]: {
132
142
  maxRecommendedDepth: 5,
133
143
  readmeStaleDays: 30,
144
+ additionalVagueNames: ['stuff', 'misc', 'temp', 'test'],
134
145
  },
135
146
  [ToolName.TestabilityIndex]: {
136
147
  minCoverageRatio: 0.7,
137
- testPatterns: ['**/*.test.ts', '**/__tests__/**'],
148
+ testPatterns: ['**/*.test.ts', '**/__tests__/**', '**/*.spec.ts'],
149
+ maxDepth: 10,
138
150
  },
139
151
  [ToolName.DocDrift]: {
140
152
  maxCommits: 50,
@@ -144,7 +156,7 @@ export async function initAction(options: {
144
156
  trainingCutoffYear: 2023,
145
157
  },
146
158
  [ToolName.ChangeAmplification]: {
147
- // No specific options yet, uses global scan settings
159
+ // Change amplification primarily relies on global scan settings
148
160
  },
149
161
  },
150
162