aeo-ready 1.7.3 → 1.7.4
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 +7 -2
package/package.json
CHANGED
package/src/recommendations.js
CHANGED
|
@@ -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"],
|