@creatoraris/openclaw-wecom 0.4.0 → 0.4.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/index.js +3 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -436,8 +436,9 @@ const plugin = {
|
|
|
436
436
|
|
|
437
437
|
// ── Context reset command ──
|
|
438
438
|
if (RESET_COMMANDS.includes(text.trim().toLowerCase())) {
|
|
439
|
-
const
|
|
440
|
-
|
|
439
|
+
const rawSessionId = chattype === 'group' ? `wecom_group_${chatid}` : `wecom_bot_${from?.userid}`;
|
|
440
|
+
// OpenClaw lowercases user IDs internally, so we must match that
|
|
441
|
+
const sessionKey = `agent:main:openresponses-user:${rawSessionId.toLowerCase()}`;
|
|
441
442
|
let resetMsg = '上下文已重置,开始新的对话。';
|
|
442
443
|
|
|
443
444
|
try {
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@creatoraris/openclaw-wecom",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Enterprise WeChat (WeCom) channel plugin for OpenClaw - 企业微信智能助手机器人桥接",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"plugin",
|
|
14
14
|
"ai"
|
|
15
15
|
],
|
|
16
|
-
"author": "CreatorAris <
|
|
16
|
+
"author": "CreatorAris <arisyingying13@gmail.com>",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|