@fivetu53/soul-chat 1.0.8 → 1.0.9
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/bin/index.js +9 -0
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -571,6 +571,15 @@ async function showChat() {
|
|
|
571
571
|
|
|
572
572
|
if (json.type === 'info') {
|
|
573
573
|
currentConversationId = json.conversationId;
|
|
574
|
+
} else if (json.type === 'tool_call') {
|
|
575
|
+
// 显示搜索状态
|
|
576
|
+
process.stdout.write('\r\x1b[K');
|
|
577
|
+
process.stdout.write(c('cyan', ` 🔍 正在搜索: ${json.query}...`));
|
|
578
|
+
} else if (json.type === 'tool_result') {
|
|
579
|
+
// 显示搜索结果数量
|
|
580
|
+
process.stdout.write('\r\x1b[K');
|
|
581
|
+
process.stdout.write(c('green', ` 📋 找到 ${json.count} 条结果\n`));
|
|
582
|
+
process.stdout.write(c('bot', ` ${currentCharacter.name}: `));
|
|
574
583
|
} else if (json.type === 'content') {
|
|
575
584
|
fullResponse += json.content;
|
|
576
585
|
// 打字机效果:直接输出内容
|