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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aeo-ready",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "description": "AEO benchmark aggregator. One scan, every score. Collects agentic-seo, Cloudflare, Fern, Vercel, and AgentGrade in one report.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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
@@ -36,7 +36,7 @@ export async function scan(opts) {
36
36
  const baseDir = process.cwd();
37
37
  await saveResult(result, baseDir);
38
38
 
39
- if (!json && averageScore < 100 && process.stdin.isTTY) {
39
+ if (!json && averageScore < 100) {
40
40
  await showRecommendations(result);
41
41
  }
42
42