@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.
- package/.turbo/turbo-build.log +24 -23
- package/.turbo/turbo-test.log +20 -17
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
- package/src/provider.ts +4 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
DTS
|
|
20
|
-
DTS
|
|
21
|
-
DTS dist/
|
|
22
|
-
DTS dist/
|
|
23
|
-
DTS dist/
|
|
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
|
+
[34mCLI[39m Building entry: src/cli.ts, src/index.ts
|
|
7
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
+
[34mCLI[39m tsup v8.5.1
|
|
9
|
+
[34mCLI[39m Target: es2020
|
|
10
|
+
[34mCJS[39m Build start
|
|
11
|
+
[34mESM[39m Build start
|
|
12
|
+
[32mESM[39m [1mdist/chunk-FCCOCULS.mjs [22m[32m8.61 KB[39m
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m1.19 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/cli.mjs [22m[32m4.15 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 171ms
|
|
16
|
+
[32mCJS[39m [1mdist/index.js [22m[32m11.05 KB[39m
|
|
17
|
+
[32mCJS[39m [1mdist/cli.js [22m[32m14.11 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ 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
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[32m✓[39m src/__tests__/
|
|
10
|
-
[32m✓[39m src/__tests__/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
[2m
|
|
14
|
-
|
|
15
|
-
[2m
|
|
16
|
-
[2m
|
|
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
|
+
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/Users/pengcao/projects/aiready/packages/agent-grounding[39m
|
|
8
|
+
|
|
9
|
+
[32m✓[39m src/__tests__/scoring.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
10
|
+
[32m✓[39m src/__tests__/provider.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 93[2mms[22m[39m
|
|
11
|
+
[32m✓[39m src/__tests__/analyzer.test.ts [2m([22m[2m3 tests[22m[2m)[22m[33m 1012[2mms[22m[39m
|
|
12
|
+
[33m[2m✓[22m[39m should detect deep directories and vague file names [33m 554[2mms[22m[39m
|
|
13
|
+
[33m[2m✓[22m[39m should detect missing READMEs in directories [33m 397[2mms[22m[39m
|
|
14
|
+
|
|
15
|
+
[2m Test Files [22m [1m[32m3 passed[39m[22m[90m (3)[39m
|
|
16
|
+
[2m Tests [22m [1m[32m7 passed[39m[22m[90m (7)[39m
|
|
17
|
+
[2m Start at [22m 22:04:25
|
|
18
|
+
[2m Duration [22m 7.15s[2m (transform 3.58s, setup 0ms, import 13.47s, tests 1.11s, environment 2ms)[22m
|
|
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
|
|
306
|
-
recommendations: output.summary
|
|
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
|
|
41
|
-
recommendations: output.summary
|
|
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.
|
|
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.
|
|
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]
|
|
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:
|
|
41
|
-
recommendations:
|
|
42
|
-
} as
|
|
40
|
+
rawData: output.metadata?.rawData ?? {},
|
|
41
|
+
recommendations: output.summary?.recommendations || [],
|
|
42
|
+
} as AgentGroundingReport;
|
|
43
43
|
return calculateGroundingScore(report);
|
|
44
44
|
},
|
|
45
45
|
});
|