dsh-channel-wechat-ilink 0.1.1 → 0.1.2
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/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +2 -2
- package/providers/wechat.js +3 -2
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
## 与飞书的差异
|
|
33
33
|
|
|
34
|
-
-
|
|
34
|
+
- 没有卡片、不能编辑消息:**一轮回答一条完整消息**(超过 1800 字才拆续条),进度用「正在输入」+ 阶段性文本;
|
|
35
35
|
- **没有历史消息接口**:断线后无法像飞书那样按时间补拉。用两个定时器兜底——长轮询 2 分钟没完成就重建,游标 20 分钟没新消息就重置重新拉取;
|
|
36
36
|
- 只能在用户最近一次发消息后的 24 小时内主动推送;
|
|
37
37
|
- 问答是纯文本编号:回数字选择,直接回文字就是补充。
|
package/locale/en.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "WeChat channel",
|
|
4
|
-
"description": "Connects WeChat (ClawBot / iLink) to a DSH session:
|
|
4
|
+
"description": "Connects WeChat (ClawBot / iLink) to a DSH session: one complete plain-text message per turn (split only when very long), a typing indicator plus progress notes, and media in both directions. Run scripts/wechat-login.mjs to scan the QR code; the token lands in ~/.dsh/wechat-channel.json."
|
|
5
5
|
}
|
|
6
6
|
}
|
package/locale/zh.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "微信通道",
|
|
4
|
-
"description": "把微信(ClawBot / iLink)接到一个 DSH
|
|
4
|
+
"description": "把微信(ClawBot / iLink)接到一个 DSH 会话:一轮回答一条完整消息(只有超长才拆续条),长任务先显示「正在输入」再补进度,图片和文件双向收发,通道独占一个工作区。用 scripts/wechat-login.mjs 扫码登录,凭据写到 ~/.dsh/wechat-channel.json。",
|
|
5
5
|
"detail": "docs/DETAIL.zh.md"
|
|
6
6
|
}
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-channel-wechat-ilink",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "WeChat (iLink / ClawBot) channel for DeepSeek Harness:
|
|
5
|
+
"description": "WeChat (iLink / ClawBot) channel for DeepSeek Harness: one plain-text message per turn (split only when very long), typing plus progress, media both ways, one workspace per channel.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
package/providers/wechat.js
CHANGED
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
* padding, so decryption runs with `setAutoPadding(false)`
|
|
14
14
|
*
|
|
15
15
|
* There is no editable message and no card, so `card.*` is implemented on top of
|
|
16
|
-
* `text-stream.js`:
|
|
17
|
-
*
|
|
16
|
+
* `text-stream.js`: a turn is delivered as ONE plain-text message (progress notes
|
|
17
|
+
* while it runs, then the whole answer), and only an answer over the size cap is
|
|
18
|
+
* continued in a second message.
|
|
18
19
|
*/
|
|
19
20
|
|
|
20
21
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, randomUUID } from 'node:crypto'
|