@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.
- package/.turbo/turbo-build.log +7 -7
- package/.turbo/turbo-test.log +17 -17
- package/dist/cli.js +30 -15
- package/dist/cli.mjs +30 -15
- package/package.json +12 -12
- package/src/commands/init.ts +29 -17
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/cli@0.14.
|
|
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
|
[34mCLI[39m Building entry: src/cli.ts, src/index.ts
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
|
|
13
|
-
[43m[30m WARN [39m[49m [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1m"import.meta" is not available with the "cjs" output format and will be empty[0m [empty-import-meta] [
|
|
13
|
+
[43m[30m WARN [39m[49m [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1m"import.meta" is not available with the "cjs" output format and will be empty[0m [empty-import-meta] [90m12:09:38 am[39m
|
|
14
14
|
|
|
15
15
|
src/cli.ts:29:31:
|
|
16
16
|
[37m 29 │ return dirname(fileURLToPath([32mimport.meta[37m.url));
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
[32mCJS[39m [1mdist/index.js [22m[32m10.87 KB[39m
|
|
24
|
-
[32mCJS[39m [1mdist/cli.js [22m[32m88.
|
|
25
|
-
[32mCJS[39m ⚡️ Build success in
|
|
26
|
-
[32mESM[39m [1mdist/
|
|
27
|
-
[32mESM[39m [1mdist/cli.mjs [22m[32m74.23 KB[39m
|
|
24
|
+
[32mCJS[39m [1mdist/cli.js [22m[32m88.89 KB[39m
|
|
25
|
+
[32mCJS[39m ⚡️ Build success in 59ms
|
|
26
|
+
[32mESM[39m [1mdist/cli.mjs [22m[32m74.64 KB[39m
|
|
28
27
|
[32mESM[39m [1mdist/chunk-JRRBBFYB.mjs [22m[32m9.77 KB[39m
|
|
29
|
-
[32mESM[39m
|
|
28
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m170.00 B[39m
|
|
29
|
+
[32mESM[39m ⚡️ Build success in 59ms
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/cli@0.14.
|
|
3
|
+
> @aiready/cli@0.14.12 test /Users/pengcao/projects/aiready/packages/cli
|
|
4
4
|
> vitest run
|
|
5
5
|
|
|
6
6
|
[?25l
|
|
7
7
|
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/Users/pengcao/projects/aiready/packages/cli[39m
|
|
8
8
|
|
|
9
|
-
[32m✓[39m src/commands/__tests__/testability.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 15[2mms[22m[39m
|
|
10
9
|
[90mstdout[2m | src/commands/__tests__/visualize.test.ts[2m > [22m[2mVisualize CLI Action[2m > [22m[2mshould generate HTML from specified report
|
|
11
10
|
[22m[39mBuilding graph from report...
|
|
12
11
|
|
|
13
|
-
[32m✓[39m src/commands/__tests__/agent-grounding.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m
|
|
12
|
+
[32m✓[39m src/commands/__tests__/agent-grounding.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
13
|
+
[32m✓[39m src/commands/__tests__/testability.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
14
14
|
[90mstdout[2m | src/commands/__tests__/visualize.test.ts[2m > [22m[2mVisualize CLI Action[2m > [22m[2mshould generate HTML from specified report
|
|
15
15
|
[22m[39mGenerating 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
|
[22m[39mGenerating HTML...
|
|
39
39
|
✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
|
|
40
40
|
|
|
41
|
-
[32m✓[39m src/commands/__tests__/visualize.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 28[2mms[22m[39m
|
|
42
|
-
[32m✓[39m src/commands/__tests__/doc-drift.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
43
|
-
[32m✓[39m src/commands/__tests__/ai-signal-clarity.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
44
|
-
[32m✓[39m src/commands/__tests__/deps-health.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
45
41
|
[90mstdout[2m | src/commands/__tests__/upload.test.ts[2m > [22m[2mUpload CLI Action[2m > [22m[2mshould fail if API key is missing
|
|
46
42
|
[22m[39m 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
|
-
[32m✓[39m src/commands/__tests__/
|
|
55
|
+
[32m✓[39m src/commands/__tests__/visualize.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 21[2mms[22m[39m
|
|
56
|
+
[32m✓[39m src/commands/__tests__/upload.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
57
|
+
[32m✓[39m src/commands/__tests__/ai-signal-clarity.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
58
|
+
[32m✓[39m src/commands/__tests__/doc-drift.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
59
|
+
[32m✓[39m src/commands/__tests__/deps-health.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
60
60
|
[32m✓[39m src/utils/__tests__/helpers.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
61
61
|
[32m✓[39m src/commands/__tests__/init.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
62
|
-
[32m✓[39m src/commands/__tests__/consistency.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
63
|
-
[32m✓[39m src/commands/__tests__/scan.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m
|
|
64
|
-
[32m✓[39m src/commands/__tests__/extra-commands.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m
|
|
62
|
+
[32m✓[39m src/commands/__tests__/consistency.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
63
|
+
[32m✓[39m src/commands/__tests__/scan.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 98[2mms[22m[39m
|
|
64
|
+
[32m✓[39m src/commands/__tests__/extra-commands.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 130[2mms[22m[39m
|
|
65
65
|
[32m✓[39m src/__tests__/unified.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
66
|
-
[32m✓[39m src/__tests__/cli.test.ts [2m([22m[2m3 tests[22m[2m)[22m[33m
|
|
67
|
-
[33m[2m✓[22m[39m should run unified analysis with both tools [33m
|
|
68
|
-
[32m✓[39m src/__tests__/config-shape.test.ts [2m([22m[2m3 tests[22m[2m)[22m[33m
|
|
69
|
-
[33m[2m✓[22m[39m should generate a strictly portable AIReadyConfig in summary [33m
|
|
66
|
+
[32m✓[39m src/__tests__/cli.test.ts [2m([22m[2m3 tests[22m[2m)[22m[33m 1947[2mms[22m[39m
|
|
67
|
+
[33m[2m✓[22m[39m should run unified analysis with both tools [33m 1946[2mms[22m[39m
|
|
68
|
+
[32m✓[39m src/__tests__/config-shape.test.ts [2m([22m[2m3 tests[22m[2m)[22m[33m 1948[2mms[22m[39m
|
|
69
|
+
[33m[2m✓[22m[39m should generate a strictly portable AIReadyConfig in summary [33m 1947[2mms[22m[39m
|
|
70
70
|
|
|
71
71
|
[2m Test Files [22m [1m[32m15 passed[39m[22m[90m (15)[39m
|
|
72
72
|
[2m Tests [22m [1m[32m45 passed[39m[22m[90m (45)[39m
|
|
73
|
-
[2m Start at [22m
|
|
74
|
-
[2m Duration [22m
|
|
73
|
+
[2m Start at [22m 00:08:07
|
|
74
|
+
[2m Duration [22m 2.94s[2m (transform 2.51s, setup 0ms, import 5.31s, tests 4.21s, environment 1ms)[22m
|
|
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:
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
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
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
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
|
-
|
|
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
|
-
//
|
|
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:
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
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
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
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
|
-
|
|
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
|
-
//
|
|
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.
|
|
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/
|
|
15
|
-
"@aiready/
|
|
16
|
-
"@aiready/
|
|
17
|
-
"@aiready/
|
|
18
|
-
"@aiready/
|
|
19
|
-
"@aiready/
|
|
20
|
-
"@aiready/
|
|
21
|
-
"@aiready/
|
|
22
|
-
"@aiready/
|
|
23
|
-
"@aiready/
|
|
24
|
-
"@aiready/
|
|
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",
|
package/src/commands/init.ts
CHANGED
|
@@ -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:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
|
|
128
|
-
|
|
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
|
-
//
|
|
159
|
+
// Change amplification primarily relies on global scan settings
|
|
148
160
|
},
|
|
149
161
|
},
|
|
150
162
|
|