@aiready/testability 0.7.5 → 0.7.6

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,5 +1,5 @@
1
1
 
2
- > @aiready/testability@0.7.5 build /Users/pengcao/projects/aiready/packages/testability
2
+ > @aiready/testability@0.7.6 build /Users/pengcao/projects/aiready/packages/testability
3
3
  > tsup src/index.ts src/cli.ts --format cjs,esm --dts
4
4
 
5
5
  CLI Building entry: src/cli.ts, src/index.ts
@@ -8,15 +8,15 @@ CLI tsup v8.5.1
8
8
  CLI Target: es2020
9
9
  CJS Build start
10
10
  ESM Build start
11
- CJS dist/cli.js 11.88 KB
12
11
  CJS dist/index.js 8.62 KB
13
- CJS ⚡️ Build success in 66ms
12
+ CJS dist/cli.js 11.88 KB
13
+ CJS ⚡️ Build success in 126ms
14
14
  ESM dist/cli.mjs 4.33 KB
15
15
  ESM dist/index.mjs 1.17 KB
16
16
  ESM dist/chunk-NC2LRFVJ.mjs 6.35 KB
17
- ESM ⚡️ Build success in 66ms
17
+ ESM ⚡️ Build success in 127ms
18
18
  DTS Build start
19
- DTS ⚡️ Build success in 6364ms
19
+ DTS ⚡️ Build success in 10364ms
20
20
  DTS dist/cli.d.ts 20.00 B
21
21
  DTS dist/index.d.ts 2.42 KB
22
22
  DTS dist/cli.d.mts 20.00 B
@@ -1,18 +1,18 @@
1
1
 
2
- > @aiready/testability@0.7.4 test /Users/pengcao/projects/aiready/packages/testability
2
+ > @aiready/testability@0.7.5 test /Users/pengcao/projects/aiready/packages/testability
3
3
  > vitest run
4
4
 
5
5
 
6
6
   RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/testability
7
7
 
8
- ✓ src/__tests__/types.test.ts (4 tests) 2ms
9
- ✓ src/__tests__/provider.test.ts (2 tests) 6ms
10
- ✓ src/__tests__/scoring.test.ts (6 tests) 31ms
11
- ✓ src/__tests__/analyzer.test.ts (5 tests) 5002ms
12
- ✓ detects test frameworks in multiple languages  4916ms
8
+ ✓ src/__tests__/types.test.ts (4 tests) 6ms
9
+ ✓ src/__tests__/scoring.test.ts (6 tests) 2ms
10
+ ✓ src/__tests__/provider.test.ts (2 tests) 22ms
11
+ ✓ src/__tests__/analyzer.test.ts (5 tests) 3869ms
12
+ ✓ detects test frameworks in multiple languages  3833ms
13
13
 
14
14
   Test Files  4 passed (4)
15
15
   Tests  17 passed (17)
16
-  Start at  21:12:43
17
-  Duration  6.06s (transform 1.65s, setup 0ms, import 3.94s, tests 5.04s, environment 0ms)
16
+  Start at  20:27:24
17
+  Duration  8.32s (transform 2.13s, setup 0ms, import 10.42s, tests 3.90s, environment 0ms)
18
18
 
package/dist/index.js CHANGED
@@ -242,8 +242,8 @@ var TestabilityProvider = (0, import_core3.createProvider)({
242
242
  score(output) {
243
243
  const report = {
244
244
  summary: output.summary,
245
- rawData: output.metadata.rawData,
246
- recommendations: output.summary.recommendations || []
245
+ rawData: output.metadata?.rawData ?? {},
246
+ recommendations: output.summary?.recommendations || []
247
247
  };
248
248
  return calculateTestabilityScore(report);
249
249
  }
package/dist/index.mjs CHANGED
@@ -37,8 +37,8 @@ var TestabilityProvider = createProvider({
37
37
  score(output) {
38
38
  const report = {
39
39
  summary: output.summary,
40
- rawData: output.metadata.rawData,
41
- recommendations: output.summary.recommendations || []
40
+ rawData: output.metadata?.rawData ?? {},
41
+ recommendations: output.summary?.recommendations || []
42
42
  };
43
43
  return calculateTestabilityScore(report);
44
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/testability",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "description": "Measures how safely and verifiably AI-generated changes can be made to your codebase",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -40,7 +40,7 @@
40
40
  "chalk": "^5.3.0",
41
41
  "commander": "^14.0.0",
42
42
  "glob": "^13.0.0",
43
- "@aiready/core": "0.24.5"
43
+ "@aiready/core": "0.24.6"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "^24.0.0",
package/src/provider.ts CHANGED
@@ -22,7 +22,7 @@ export const TestabilityProvider = createProvider({
22
22
  getResults(report): AnalysisResult[] {
23
23
  return report.issues.map((issue) => ({
24
24
  fileName: issue.location.file,
25
- issues: [issue] as any[],
25
+ issues: [issue],
26
26
  metrics: {
27
27
  testabilityScore: report.summary.score,
28
28
  },
@@ -37,9 +37,9 @@ export const TestabilityProvider = createProvider({
37
37
  score(output) {
38
38
  const report = {
39
39
  summary: output.summary,
40
- rawData: (output.metadata as any).rawData,
41
- recommendations: (output.summary as any).recommendations || [],
42
- } as unknown as TestabilityReport;
40
+ rawData: output.metadata?.rawData ?? {},
41
+ recommendations: output.summary?.recommendations || [],
42
+ } as TestabilityReport;
43
43
  return calculateTestabilityScore(report);
44
44
  },
45
45
  });