@aiready/agent-grounding 0.14.5 → 0.14.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/agent-grounding@0.14.5 build /Users/pengcao/projects/aiready/packages/agent-grounding
2
+ > @aiready/agent-grounding@0.14.6 build /Users/pengcao/projects/aiready/packages/agent-grounding
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
- ESM dist/index.mjs 1.18 KB
11
+ ESM dist/index.mjs 1.19 KB
12
12
  ESM dist/chunk-FCCOCULS.mjs 8.61 KB
13
13
  ESM dist/cli.mjs 4.15 KB
14
- ESM ⚡️ Build success in 97ms
14
+ ESM ⚡️ Build success in 182ms
15
+ CJS dist/index.js 11.05 KB
15
16
  CJS dist/cli.js 14.11 KB
16
- CJS dist/index.js 11.04 KB
17
- CJS ⚡️ Build success in 102ms
17
+ CJS ⚡️ Build success in 182ms
18
18
  DTS Build start
19
- DTS ⚡️ Build success in 5897ms
19
+ DTS ⚡️ Build success in 11264ms
20
20
  DTS dist/cli.d.ts 20.00 B
21
21
  DTS dist/index.d.ts 2.52 KB
22
22
  DTS dist/cli.d.mts 20.00 B
@@ -1,17 +1,16 @@
1
1
 
2
- > @aiready/agent-grounding@0.14.4 test /Users/pengcao/projects/aiready/packages/agent-grounding
2
+ > @aiready/agent-grounding@0.14.5 test /Users/pengcao/projects/aiready/packages/agent-grounding
3
3
  > vitest run
4
4
 
5
5
 
6
6
   RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/agent-grounding
7
7
 
8
8
  ✓ src/__tests__/scoring.test.ts (2 tests) 2ms
9
- ✓ src/__tests__/provider.test.ts (2 tests) 5ms
10
- ✓ src/__tests__/analyzer.test.ts (3 tests) 555ms
11
- ✓ should detect deep directories and vague file names  323ms
9
+ ✓ src/__tests__/provider.test.ts (2 tests) 3ms
10
+ ✓ src/__tests__/analyzer.test.ts (3 tests) 395ms
12
11
 
13
12
   Test Files  3 passed (3)
14
13
   Tests  7 passed (7)
15
-  Start at  21:12:45
16
-  Duration  2.40s (transform 772ms, setup 0ms, import 3.93s, tests 561ms, environment 0ms)
14
+  Start at  20:27:29
15
+  Duration  1.86s (transform 527ms, setup 0ms, import 3.04s, tests 400ms, environment 0ms)
17
16
 
package/dist/index.js CHANGED
@@ -302,8 +302,8 @@ var AgentGroundingProvider = (0, import_core3.createProvider)({
302
302
  score(output) {
303
303
  const report = {
304
304
  summary: output.summary,
305
- rawData: output.metadata.rawData,
306
- recommendations: output.summary.recommendations || []
305
+ rawData: output.metadata?.rawData ?? {},
306
+ recommendations: output.summary?.recommendations || []
307
307
  };
308
308
  return calculateGroundingScore(report);
309
309
  }
package/dist/index.mjs CHANGED
@@ -37,8 +37,8 @@ var AgentGroundingProvider = 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 calculateGroundingScore(report);
44
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/agent-grounding",
3
- "version": "0.14.5",
3
+ "version": "0.14.6",
4
4
  "description": "Measures how well an AI agent can navigate a codebase autonomously without human assistance",
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 AgentGroundingProvider = 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
  agentGroundingScore: report.summary.score,
28
28
  },
@@ -37,9 +37,9 @@ export const AgentGroundingProvider = 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 AgentGroundingReport;
40
+ rawData: output.metadata?.rawData ?? {},
41
+ recommendations: output.summary?.recommendations || [],
42
+ } as AgentGroundingReport;
43
43
  return calculateGroundingScore(report);
44
44
  },
45
45
  });