dsh-wechat-access 0.0.0-stage → 0.0.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/CHANGELOG.md +56 -0
- package/LICENSE +675 -0
- package/README.md +278 -2
- package/cordis.patch.yml +5 -0
- package/examples/config.example.json +98 -0
- package/index.mjs +123 -0
- package/lib/access.mjs +131 -0
- package/lib/anysearch.mjs +143 -0
- package/lib/capabilities.mjs +312 -0
- package/lib/client.js +2532 -0
- package/lib/config.mjs +509 -0
- package/lib/emotion-store.mjs +352 -0
- package/lib/emotion.mjs +428 -0
- package/lib/endocrine/LICENSE +21 -0
- package/lib/endocrine/README.md +39 -0
- package/lib/endocrine/diseases.js +791 -0
- package/lib/endocrine/engine.mjs +131 -0
- package/lib/endocrine/store.mjs +253 -0
- package/lib/endocrine/upstream.mjs +1230 -0
- package/lib/group-gate.mjs +305 -0
- package/lib/imagegen.mjs +360 -0
- package/lib/lock.mjs +204 -0
- package/lib/meme-classify.mjs +190 -0
- package/lib/memes.mjs +442 -0
- package/lib/memory.mjs +437 -0
- package/lib/normalize.mjs +230 -0
- package/lib/parser.mjs +602 -0
- package/lib/reply-settled.mjs +130 -0
- package/lib/runtime.mjs +3367 -0
- package/lib/startup.mjs +70 -0
- package/lib/steam-binding.mjs +144 -0
- package/lib/steam.mjs +334 -0
- package/lib/store.mjs +259 -0
- package/lib/thoughts.mjs +149 -0
- package/lib/time-context.mjs +182 -0
- package/lib/tools.mjs +583 -0
- package/lib/ui.mjs +997 -0
- package/lib/util.mjs +489 -0
- package/lib/virtual-life-generate.mjs +421 -0
- package/lib/virtual-life.mjs +971 -0
- package/lib/weather.mjs +172 -0
- package/lib/wechat-client.mjs +476 -0
- package/lib/wechat-events.mjs +269 -0
- package/locale/zh.json +6 -0
- package/package.json +77 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
## 0.0.2
|
|
2
|
+
|
|
3
|
+
### 改进
|
|
4
|
+
|
|
5
|
+
- 首次配置屏新增「还没装 agent-wechat?先做这四步」引导卡,
|
|
6
|
+
直接给出 [Releases 下载入口](https://github.com/thisnick/agent-wechat/releases)
|
|
7
|
+
和 `wx tokens create` 完整命令。
|
|
8
|
+
- 未连接屏新增 agent-wechat 下载入口。
|
|
9
|
+
- README 补充桌面端 / 命令行两种安装方式。
|
|
10
|
+
|
|
11
|
+
原 QQ 版的「插件自动下载 NapCat(约 118 MB)」逻辑已彻底移除:
|
|
12
|
+
这个插件不会下载或启动任何客户端,需要用户自己先把 agent-wechat 跑起来。
|
|
13
|
+
|
|
14
|
+
# 更新日志
|
|
15
|
+
|
|
16
|
+
## 0.0.1
|
|
17
|
+
|
|
18
|
+
首个版本。从 dsh-qq-access 分叉,接入方式从 NapCat 换成
|
|
19
|
+
[agent-wechat](https://github.com/thisnick/agent-wechat)。
|
|
20
|
+
|
|
21
|
+
### 新增
|
|
22
|
+
|
|
23
|
+
- `lib/wechat-client.mjs`:agent-wechat `/v1` HTTP 客户端,覆盖身份、会话、
|
|
24
|
+
消息、联系人、群、媒体、发送和撤回。
|
|
25
|
+
- `lib/wechat-events.mjs`:SSE 事件流消费,带游标持久化和断线重连。
|
|
26
|
+
- `lib/normalize.mjs`:微信消息 → 内部统一结构,含引用、@、图片和卡片。
|
|
27
|
+
- 28 个 `wx_*` 工具。
|
|
28
|
+
- 面板与教程改写为微信口径。
|
|
29
|
+
|
|
30
|
+
### 保留自 dsh-qq-access
|
|
31
|
+
|
|
32
|
+
人格、长期记忆、情感关系、内分泌、虚拟人生、群聊回复闸门、表情包、
|
|
33
|
+
Steam 绑定、天气、联网搜索、生图。
|
|
34
|
+
|
|
35
|
+
### 移除
|
|
36
|
+
|
|
37
|
+
QQ 空间(6 个工具及其 1000 余行实现)、戳一戳、名片点赞、群精华、
|
|
38
|
+
禁言成员、QQ 系统表情、复读消息、改他人群昵称,
|
|
39
|
+
以及 NapCat 托管与安装逻辑、本地上报事件服务器。
|
|
40
|
+
|
|
41
|
+
### 修复
|
|
42
|
+
|
|
43
|
+
- 发送轮询里 `setTimeout(...).unref()` 导致 `await` 永久挂起:
|
|
44
|
+
`unref` 的句柄不会把事件循环从等待中唤醒,在没有其它活跃句柄时
|
|
45
|
+
表现为「发送卡死、不报错」。
|
|
46
|
+
- 事件流首次连接不带游标会从第 1 号事件开始回放几千条历史:
|
|
47
|
+
改为先取 `?newest=true&limit=1` 定位当前位置。
|
|
48
|
+
- token 校验先 `trim()` 再查换行,等于永远查不到:改为先验原文。
|
|
49
|
+
- 微信身份 ID 不再沿用「5–12 位纯数字」,改为 `wxid_xxx` / 微信号 /
|
|
50
|
+
`xxx@chatroom` / `filehelper`。
|
|
51
|
+
- 面板 id 与 QQ 版冲突(都用 `qq-access`),导致后加载的覆盖前一个、
|
|
52
|
+
面板不显示:已改为 `wechat-access`。
|
|
53
|
+
- `client.js` 里 `useEffect` 依赖数组残留已删除的 `loadQzone`,
|
|
54
|
+
渲染时抛 `ReferenceError` 导致面板空白。
|
|
55
|
+
- Steam 绑定表用 `^\d{5,12}$` 校验 QQ 号,微信 ID 无法通过:
|
|
56
|
+
改为微信号格式。
|