aeo-ready 1.7.6 → 1.7.8
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/package.json +1 -1
- package/src/benchmark/index.js +0 -32
- package/src/history/index.js +2 -0
- package/src/recommendations.js +8 -1
package/package.json
CHANGED
package/src/benchmark/index.js
CHANGED
|
@@ -5,29 +5,6 @@ import { runFern } from "./fern.js";
|
|
|
5
5
|
import { runVercel } from "./vercel.js";
|
|
6
6
|
import { runAgentgrade } from "./agentgrade.js";
|
|
7
7
|
|
|
8
|
-
const REFERENCE_SCORES = {
|
|
9
|
-
agenticSeo: {
|
|
10
|
-
Stripe: 17,
|
|
11
|
-
Cloudflare: 20,
|
|
12
|
-
Supabase: 20,
|
|
13
|
-
Average: 19,
|
|
14
|
-
},
|
|
15
|
-
cloudflare: {
|
|
16
|
-
Supabase: 4,
|
|
17
|
-
Cloudflare: 3,
|
|
18
|
-
Vercel: 2,
|
|
19
|
-
Stripe: 1,
|
|
20
|
-
Average: 2,
|
|
21
|
-
},
|
|
22
|
-
fern: {
|
|
23
|
-
Cloudflare: 85,
|
|
24
|
-
Stripe: 84,
|
|
25
|
-
Supabase: 82,
|
|
26
|
-
Vercel: 75,
|
|
27
|
-
Average: 55,
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
|
|
31
8
|
const W = 52;
|
|
32
9
|
|
|
33
10
|
export async function runAllBenchmarks(target, dir) {
|
|
@@ -127,14 +104,5 @@ function printBenchmarkBlock(name, key, b) {
|
|
|
127
104
|
}
|
|
128
105
|
}
|
|
129
106
|
|
|
130
|
-
const refs = REFERENCE_SCORES[key];
|
|
131
|
-
if (refs) {
|
|
132
|
-
const cmp = Object.entries(refs)
|
|
133
|
-
.sort((a, b) => b[1] - a[1])
|
|
134
|
-
.map(([n, s]) => `${n} ${s}`)
|
|
135
|
-
.join(" · ");
|
|
136
|
-
console.log(chalk.dim(` vs ${cmp}`));
|
|
137
|
-
}
|
|
138
|
-
|
|
139
107
|
console.log("");
|
|
140
108
|
}
|
package/src/history/index.js
CHANGED
|
@@ -20,6 +20,8 @@ export async function saveResult(result, baseDir) {
|
|
|
20
20
|
cloudflare: result.benchmarks?.cloudflare?.score ?? null,
|
|
21
21
|
cloudflareMax: result.benchmarks?.cloudflare?.maxScore ?? null,
|
|
22
22
|
fern: result.benchmarks?.fern?.score ?? null,
|
|
23
|
+
vercel: result.benchmarks?.vercel?.score ?? null,
|
|
24
|
+
agentgrade: result.benchmarks?.agentgrade?.score ?? null,
|
|
23
25
|
});
|
|
24
26
|
|
|
25
27
|
writeFileSync(historyPath, JSON.stringify(history, null, 2));
|
package/src/recommendations.js
CHANGED
|
@@ -381,7 +381,14 @@ export async function showRecommendations(result) {
|
|
|
381
381
|
const answer = await ask(` ${optStr} `);
|
|
382
382
|
|
|
383
383
|
if (answer === "v") {
|
|
384
|
-
|
|
384
|
+
console.log("");
|
|
385
|
+
console.log(
|
|
386
|
+
prompt
|
|
387
|
+
.split("\n")
|
|
388
|
+
.map((line) => ` ${line}`)
|
|
389
|
+
.join("\n"),
|
|
390
|
+
);
|
|
391
|
+
console.log("");
|
|
385
392
|
} else if (answer === "c") {
|
|
386
393
|
const copied = copyToClipboard(prompt);
|
|
387
394
|
if (copied) {
|