@aiready/change-amplification 0.9.3 → 0.9.5
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 +10 -10
- package/.turbo/turbo-test.log +4 -4
- package/package.json +2 -2
- package/src/analyzer.ts +4 -2
- package/src/types.ts +6 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/change-amplification@0.9.
|
|
3
|
+
> @aiready/change-amplification@0.9.4 build /Users/pengcao/projects/aiready/packages/change-amplification
|
|
4
4
|
> tsup src/index.ts src/cli.ts --format cjs,esm --dts
|
|
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 [1mThe condition "types" here will never be used as it comes after both "import" and "require"[0m [package.json] [
|
|
13
|
+
[43m[30m WARN [39m[49m [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1mThe condition "types" here will never be used as it comes after both "import" and "require"[0m [package.json] [90m9:38:41 pm[39m
|
|
14
14
|
|
|
15
15
|
package.json:33:6:
|
|
16
16
|
[37m 33 │ [32m"types"[37m: "./dist/index.d.ts"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
[43m[30m WARN [39m[49m [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1mThe condition "types" here will never be used as it comes after both "import" and "require"[0m [package.json] [
|
|
34
|
+
[43m[30m WARN [39m[49m [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1mThe condition "types" here will never be used as it comes after both "import" and "require"[0m [package.json] [90m9:38:41 pm[39m
|
|
35
35
|
|
|
36
36
|
package.json:38:6:
|
|
37
37
|
[37m 38 │ [32m"types"[37m: "./dist/cli.d.ts"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
[43m[30m WARN [39m[49m [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1mThe condition "types" here will never be used as it comes after both "import" and "require"[0m [package.json] [
|
|
55
|
+
[43m[30m WARN [39m[49m [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1mThe condition "types" here will never be used as it comes after both "import" and "require"[0m [package.json] [90m9:38:41 pm[39m
|
|
56
56
|
|
|
57
57
|
package.json:33:6:
|
|
58
58
|
[37m 33 │ [32m"types"[37m: "./dist/index.d.ts"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
[43m[30m WARN [39m[49m [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1mThe condition "types" here will never be used as it comes after both "import" and "require"[0m [package.json] [
|
|
76
|
+
[43m[30m WARN [39m[49m [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1mThe condition "types" here will never be used as it comes after both "import" and "require"[0m [package.json] [90m9:38:41 pm[39m
|
|
77
77
|
|
|
78
78
|
package.json:38:6:
|
|
79
79
|
[37m 38 │ [32m"types"[37m: "./dist/cli.d.ts"
|
|
@@ -93,15 +93,15 @@
|
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
[32mESM[39m [1mdist/cli.mjs [22m[32m2.78 KB[39m
|
|
97
96
|
[32mESM[39m [1mdist/index.mjs [22m[32m110.00 B[39m
|
|
97
|
+
[32mESM[39m [1mdist/cli.mjs [22m[32m2.78 KB[39m
|
|
98
98
|
[32mESM[39m [1mdist/chunk-GLHIV53G.mjs [22m[32m3.79 KB[39m
|
|
99
|
-
[32mESM[39m ⚡️ Build success in
|
|
100
|
-
[32mCJS[39m [1mdist/cli.js [22m[32m7.98 KB[39m
|
|
99
|
+
[32mESM[39m ⚡️ Build success in 154ms
|
|
101
100
|
[32mCJS[39m [1mdist/index.js [22m[32m5.11 KB[39m
|
|
102
|
-
[32mCJS[39m
|
|
101
|
+
[32mCJS[39m [1mdist/cli.js [22m[32m7.98 KB[39m
|
|
102
|
+
[32mCJS[39m ⚡️ Build success in 155ms
|
|
103
103
|
DTS Build start
|
|
104
|
-
DTS ⚡️ Build success in
|
|
104
|
+
DTS ⚡️ Build success in 3747ms
|
|
105
105
|
DTS dist/cli.d.ts 152.00 B
|
|
106
106
|
DTS dist/index.d.ts 941.00 B
|
|
107
107
|
DTS dist/cli.d.mts 152.00 B
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/change-amplification@0.9.
|
|
3
|
+
> @aiready/change-amplification@0.9.4 test /Users/pengcao/projects/aiready/packages/change-amplification
|
|
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/change-amplification[39m
|
|
8
8
|
|
|
9
|
-
[32m✓[39m src/__tests__/dummy.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m
|
|
9
|
+
[32m✓[39m src/__tests__/dummy.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
10
10
|
|
|
11
11
|
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
12
12
|
[2m Tests [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
13
|
-
[2m Start at [22m
|
|
14
|
-
[2m Duration [22m
|
|
13
|
+
[2m Start at [22m 21:39:02
|
|
14
|
+
[2m Duration [22m 395ms[2m (transform 81ms, setup 0ms, import 98ms, tests 2ms, environment 0ms)[22m
|
|
15
15
|
|
|
16
16
|
[?25h
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiready/change-amplification",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"description": "AI-Readiness: Change Amplification Detection",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"commander": "^14.0.0",
|
|
11
11
|
"glob": "^13.0.0",
|
|
12
12
|
"chalk": "^5.3.0",
|
|
13
|
-
"@aiready/core": "0.19.
|
|
13
|
+
"@aiready/core": "0.19.5"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/node": "^24.0.0",
|
package/src/analyzer.ts
CHANGED
|
@@ -99,7 +99,8 @@ export async function analyzeChangeAmplification(
|
|
|
99
99
|
if (hotspot.amplificationFactor > 20) {
|
|
100
100
|
issues.push({
|
|
101
101
|
type: IssueType.ChangeAmplification,
|
|
102
|
-
severity:
|
|
102
|
+
severity:
|
|
103
|
+
hotspot.amplificationFactor > 40 ? Severity.Critical : Severity.Major,
|
|
103
104
|
message: `High change amplification detected (Factor: ${hotspot.amplificationFactor}). Changes here cascade heavily.`,
|
|
104
105
|
location: { file: hotspot.file, line: 1 },
|
|
105
106
|
suggestion: `Reduce coupling. Fan-out is ${hotspot.fanOut}, Fan-in is ${hotspot.fanIn}.`,
|
|
@@ -128,7 +129,8 @@ export async function analyzeChangeAmplification(
|
|
|
128
129
|
0
|
|
129
130
|
),
|
|
130
131
|
majorIssues: results.reduce(
|
|
131
|
-
(sum, r) =>
|
|
132
|
+
(sum, r) =>
|
|
133
|
+
sum + r.issues.filter((i) => getLevel(i.severity) === 3).length,
|
|
132
134
|
0
|
|
133
135
|
),
|
|
134
136
|
score: riskResult.score,
|
package/src/types.ts
CHANGED