aeo-ready 1.7.3 → 1.7.5
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/recommendations.js +14 -9
- package/src/scan.js +1 -1
package/package.json
CHANGED
package/src/recommendations.js
CHANGED
|
@@ -17,6 +17,13 @@ const RECOMMENDATION_MAP = [
|
|
|
17
17
|
"Add User-agent / Allow rules for GPTBot, ClaudeBot, and other AI crawlers",
|
|
18
18
|
match: (id) => /^robots\.txt$|robots.*blocked/i.test(id),
|
|
19
19
|
},
|
|
20
|
+
{
|
|
21
|
+
key: "links-resolve",
|
|
22
|
+
label: "Fix broken links in llms.txt",
|
|
23
|
+
detail:
|
|
24
|
+
"Some links in llms.txt point to pages that return errors or unexpected content types",
|
|
25
|
+
match: (id) => /llms-txt-links/i.test(id),
|
|
26
|
+
},
|
|
20
27
|
{
|
|
21
28
|
key: "llms-txt",
|
|
22
29
|
label: "Create and link llms.txt",
|
|
@@ -134,13 +141,6 @@ const RECOMMENDATION_MAP = [
|
|
|
134
141
|
"Add tool-name and tool-description attributes to <form> elements for browser AI agents",
|
|
135
142
|
match: (id) => /form tool annotations/i.test(id),
|
|
136
143
|
},
|
|
137
|
-
{
|
|
138
|
-
key: "links-resolve",
|
|
139
|
-
label: "Fix broken links in llms.txt",
|
|
140
|
-
detail:
|
|
141
|
-
"Some links in llms.txt point to pages that return errors or unexpected content types",
|
|
142
|
-
match: (id) => /llms-txt-links/i.test(id),
|
|
143
|
-
},
|
|
144
144
|
];
|
|
145
145
|
|
|
146
146
|
function collectFailedChecks(benchmarks) {
|
|
@@ -318,10 +318,15 @@ export async function showRecommendations(result) {
|
|
|
318
318
|
? `${recs.length} recommendations (${highCount} high priority)`
|
|
319
319
|
: `${recs.length} recommendations`;
|
|
320
320
|
|
|
321
|
-
console.log(`\n ${chalk.bold(summary)}\n`);
|
|
322
|
-
|
|
323
321
|
const prompt = generateAgentPrompt(result, recs);
|
|
324
322
|
|
|
323
|
+
if (!process.stdin.isTTY) {
|
|
324
|
+
console.log(`\n${prompt}\n`);
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
console.log(`\n ${chalk.bold(summary)}\n`);
|
|
329
|
+
|
|
325
330
|
const optStr = [
|
|
326
331
|
["v", "View prompt"],
|
|
327
332
|
["c", "Copy prompt"],
|
package/src/scan.js
CHANGED