sidekick-chat 0.2.8 → 0.2.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/README.md +1 -1
- package/package.json +2 -3
- package/src/tui.mjs +1 -2
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Sidekick · 秘书 https://hkv4.cznorth.cn/chat
|
|
|
17
17
|
记成明天 9:30,提前 10 分钟提醒。
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
0.2.
|
|
20
|
+
0.2.9 起,当前会话各 bot 的最后 LLM 调用时间、对应活动、上下文用量和忙碌状态显示在输入框下方,并实时更新;输入框上方只显示对话内容,底部不再常驻操作提示。`/who` 查看全部 bot,`/conv` 也列出成员活动。纯文本交互在启动、切换会话及活动变化时输出。时间为调用开始时间,忙闲、消息和心跳不刷新它;没有记录时显示「尚无 LLM 活动记录」。
|
|
21
21
|
|
|
22
22
|
## 安装
|
|
23
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sidekick-chat",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Sidekick 终端客户端:在终端里和秘书对话",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/Cznorth/sidekick.git"
|
|
31
|
-
"directory": "cli"
|
|
30
|
+
"url": "git+https://github.com/Cznorth/sidekick-chat.git"
|
|
32
31
|
},
|
|
33
32
|
"dependencies": {
|
|
34
33
|
"@earendil-works/pi-tui": "1.0.0"
|
package/src/tui.mjs
CHANGED
|
@@ -32,12 +32,11 @@ export function createChatUI({ color, onSubmit, onQuit, onInput, onPasteImage, h
|
|
|
32
32
|
});
|
|
33
33
|
tui.addChild(transcript);
|
|
34
34
|
tui.addChild(live);
|
|
35
|
+
tui.addChild(editor);
|
|
35
36
|
tui.addChild(activity);
|
|
36
37
|
tui.addChild(status);
|
|
37
|
-
tui.addChild(editor);
|
|
38
38
|
const attachments = new Text('', 1, 0);
|
|
39
39
|
tui.addChild(attachments);
|
|
40
|
-
tui.addChild(new Text(paint(color, 'gray', 'Enter 发送 · Ctrl+V 图片 · /paste · /image 路径 · /help · Ctrl+C 退出'), 1, 0));
|
|
41
40
|
tui.setFocus(editor);
|
|
42
41
|
tui.addInputListener((data) => {
|
|
43
42
|
// 任何一个按键都算「人在终端前面」:调用方据此决定要不要把新消息标成已读。
|