@kabxx/dsh-btw 0.1.0 → 0.1.1
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 +7 -9
- package/dist/client.js +575 -247
- package/locale/en.json +18 -5
- package/locale/zh.json +20 -7
- package/package.json +2 -1
- package/src/host/index.js +332 -102
- package/src/host/session-store.js +125 -24
- package/src/shared/wire.js +70 -14
package/README.md
CHANGED
|
@@ -3,20 +3,18 @@
|
|
|
3
3
|
面向 DeepSeek Harness(`0.2.2-rc.5`)的侧问插件。
|
|
4
4
|
|
|
5
5
|
- `/侧问 <问题>` 或 `/btw <question>`:基于当前对话已完成的上下文快照生成文本回答,在输入框上方展开侧问卡片;可通过卡片右上角入口移至右侧栏继续追问。
|
|
6
|
-
- `/侧问` 或 `/btw
|
|
6
|
+
- `/侧问` 或 `/btw`:在右侧栏打开当前会话的侧问记录,支持查看单轮与累计 token 用量及上下文窗口占用。「语音输入」插件就绪时,追问框可直接录音识别。
|
|
7
|
+
- 支持多标签页与断线重连实时同步,追问发送失败或切换视图时自动保留未发草稿。
|
|
7
8
|
|
|
8
9
|
## 安装
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
需要 Node.js `>= 24.9.0`:
|
|
11
12
|
|
|
12
13
|
```bash
|
|
13
|
-
|
|
14
|
-
cd dsh-btw
|
|
15
|
-
npm ci
|
|
16
|
-
npm run pack:local
|
|
14
|
+
dsh plugin --profile web add @kabxx/dsh-btw
|
|
17
15
|
```
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
也可在 DSH 插件管理器中选择「添加插件」并输入 `@kabxx/dsh-btw`。本地调试源码时,先执行 `npm ci && npm run build`,再填入仓库目录绝对路径或执行 `dsh plugin --profile web add .` 即可。
|
|
20
18
|
|
|
21
19
|
## 开发
|
|
22
20
|
|
|
@@ -33,7 +31,7 @@ npm test
|
|
|
33
31
|
npm pack --dry-run
|
|
34
32
|
```
|
|
35
33
|
|
|
36
|
-
修改客户端源码或词条后,运行 `npm run build` 更新 `dist/client.js`;`npm run pack:local` 会自动完成构建并在 `dist/`
|
|
34
|
+
修改客户端源码或词条后,运行 `npm run build` 更新 `dist/client.js`;`npm run pack:local` 会自动完成构建并在 `dist/` 生成本地安装包。
|
|
37
35
|
|
|
38
36
|
## 项目结构
|
|
39
37
|
|
|
@@ -43,7 +41,7 @@ npm pack --dry-run
|
|
|
43
41
|
| [`src/client/`](src/client/) | 命令补全、侧问卡片、右侧栏与语音输入 |
|
|
44
42
|
| [`src/shared/`](src/shared/) | Host 与客户端共享的消息协议 |
|
|
45
43
|
| [`locale/`](locale/) | 中英文词条与插件元信息 |
|
|
46
|
-
|
|
|
44
|
+
| `dist/` | 构建生成的客户端 bundle 与本地安装包 |
|
|
47
45
|
| [`scripts/`](scripts/) · [`test/`](test/) | 构建脚本与回归测试 |
|
|
48
46
|
|
|
49
47
|
插件入口与加载配置见 [package.json](package.json) 和 [cordis.patch.yml](cordis.patch.yml),第三方素材声明见 [NOTICE](NOTICE)。
|