@fivetu53/soul-chat 1.0.7 → 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.
Files changed (2) hide show
  1. package/bin/index.js +10 -1
  2. 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
  // 打字机效果:直接输出内容
@@ -741,7 +750,7 @@ function chatPrompt(query) {
741
750
  const stdin = process.stdin;
742
751
 
743
752
  // 先打印下方提示
744
- console.log(c('hint', ' /back 返回 /clear 清空对话 Ctrl+V 粘贴图片'));
753
+ console.log(c('hint', ' /back 返回 /clear 清空 /delete 撤回 Ctrl+V 粘贴图片'));
745
754
  console.log(c('primary', ' 门户网站: https://soul-chat.jdctools.com.cn'));
746
755
  // 光标上移3行,显示输入提示
747
756
  process.stdout.write('\x1b[3A');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fivetu53/soul-chat",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Soul Chat - 智能 AI 伴侣命令行客户端",
5
5
  "type": "module",
6
6
  "bin": {