felo-ai 0.2.53 → 0.2.54
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.
|
@@ -528,7 +528,14 @@ async function main() {
|
|
|
528
528
|
|
|
529
529
|
if (streamError) throw new Error(streamError);
|
|
530
530
|
|
|
531
|
-
|
|
531
|
+
// Replace internal preview URLs in answer text with signed S3 URLs from tool results
|
|
532
|
+
let answer = chunks.join('').trim();
|
|
533
|
+
for (const r of toolResults) {
|
|
534
|
+
if (r.type === 'image' && r.file_id && r.image_url) {
|
|
535
|
+
const previewUrl = `https://api.felo.ai/search/files/${r.file_id}/preview`;
|
|
536
|
+
answer = answer.split(previewUrl).join(r.image_url);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
532
539
|
|
|
533
540
|
if (isJson) {
|
|
534
541
|
const images = toolResults.filter((r) => r.type === 'image');
|
|
@@ -559,8 +566,15 @@ async function main() {
|
|
|
559
566
|
)
|
|
560
567
|
);
|
|
561
568
|
} else {
|
|
562
|
-
if (answer) console.log('');
|
|
563
569
|
if (!answer && toolResults.length === 0) console.log('(No content in stream)');
|
|
570
|
+
const images = toolResults.filter((r) => r.type === 'image');
|
|
571
|
+
if (images.length > 0 || liveDocUrl) {
|
|
572
|
+
console.log('\n---');
|
|
573
|
+
for (const r of images) {
|
|
574
|
+
console.log(`[${r.title || 'Image'}](${r.image_url})`);
|
|
575
|
+
}
|
|
576
|
+
if (liveDocUrl) console.log(`LiveDoc: ${liveDocUrl}`);
|
|
577
|
+
}
|
|
564
578
|
process.stderr.write(`\n[state] thread_short_id=${thread_short_id || ''} live_doc_short_id=${live_doc_short_id || ''} live_doc_url=${liveDocUrl || ''}\n`);
|
|
565
579
|
}
|
|
566
580
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "felo-ai",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.54",
|
|
4
4
|
"description": "Felo AI CLI - real-time search, PPT generation, SuperAgent conversation, LiveDoc management, web fetch, YouTube subtitles, LiveDoc knowledge base, and X (Twitter) search from the terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/cli.js",
|