@aiready/agent-grounding 0.14.5 → 0.14.7

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,23 +1,24 @@
1
-
2
- > @aiready/agent-grounding@0.14.5 build /Users/pengcao/projects/aiready/packages/agent-grounding
3
- > tsup src/index.ts src/cli.ts --format cjs,esm --dts
4
-
5
- CLI Building entry: src/cli.ts, src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.1
8
- CLI Target: es2020
9
- CJS Build start
10
- ESM Build start
11
- ESM dist/index.mjs 1.18 KB
12
- ESM dist/chunk-FCCOCULS.mjs 8.61 KB
13
- ESM dist/cli.mjs 4.15 KB
14
- ESM ⚡️ Build success in 97ms
15
- CJS dist/cli.js 14.11 KB
16
- CJS dist/index.js 11.04 KB
17
- CJS ⚡️ Build success in 102ms
18
- DTS Build start
19
- DTS ⚡️ Build success in 5897ms
20
- DTS dist/cli.d.ts 20.00 B
21
- DTS dist/index.d.ts 2.52 KB
22
- DTS dist/cli.d.mts 20.00 B
23
- DTS dist/index.d.mts 2.52 KB
1
+
2
+ 
3
+ > @aiready/agent-grounding@0.14.7 build /Users/pengcao/projects/aiready/packages/agent-grounding
4
+ > tsup src/index.ts src/cli.ts --format cjs,esm --dts
5
+
6
+ CLI Building entry: src/cli.ts, src/index.ts
7
+ CLI Using tsconfig: tsconfig.json
8
+ CLI tsup v8.5.1
9
+ CLI Target: es2020
10
+ CJS Build start
11
+ ESM Build start
12
+ ESM dist/chunk-FCCOCULS.mjs 8.61 KB
13
+ ESM dist/index.mjs 1.19 KB
14
+ ESM dist/cli.mjs 4.15 KB
15
+ ESM ⚡️ Build success in 171ms
16
+ CJS dist/index.js 11.05 KB
17
+ CJS dist/cli.js 14.11 KB
18
+ CJS ⚡️ Build success in 171ms
19
+ DTS Build start
20
+ DTS ⚡️ Build success in 4955ms
21
+ DTS dist/cli.d.ts 20.00 B
22
+ DTS dist/index.d.ts 2.52 KB
23
+ DTS dist/cli.d.mts 20.00 B
24
+ DTS dist/index.d.mts 2.52 KB
@@ -1,17 +1,20 @@
1
-
2
- > @aiready/agent-grounding@0.14.4 test /Users/pengcao/projects/aiready/packages/agent-grounding
3
- > vitest run
4
-
5
-
6
-  RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/agent-grounding
7
-
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
12
-
13
-  Test Files  3 passed (3)
14
-  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)
17
-
1
+
2
+ 
3
+ > @aiready/agent-grounding@0.14.6 test /Users/pengcao/projects/aiready/packages/agent-grounding
4
+ > vitest run
5
+
6
+ [?25l
7
+  RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/agent-grounding
8
+
9
+ ✓ src/__tests__/scoring.test.ts (2 tests) 2ms
10
+ ✓ src/__tests__/provider.test.ts (2 tests) 93ms
11
+ ✓ src/__tests__/analyzer.test.ts (3 tests) 1012ms
12
+ ✓ should detect deep directories and vague file names  554ms
13
+ ✓ should detect missing READMEs in directories  397ms
14
+
15
+  Test Files  3 passed (3)
16
+  Tests  7 passed (7)
17
+  Start at  22:04:25
18
+  Duration  7.15s (transform 3.58s, setup 0ms, import 13.47s, tests 1.11s, environment 2ms)
19
+
20
+ [?25h
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.7",
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.7"
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
  });