palz-connector 1.3.7 → 1.3.8

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "palz-connector",
3
3
  "name": "Palz Connector Channel",
4
- "version": "1.3.7",
4
+ "version": "1.3.8",
5
5
  "description": "Palz IM 接入 OpenClaw",
6
6
  "channels": [
7
7
  "palz-connector"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palz-connector",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "description": "Palz IM 接入 OpenClaw — 模块化架构,基于 OpenClaw Runtime 消息管道",
package/src/bot.ts CHANGED
@@ -537,7 +537,11 @@ async function _dispatchPalzMessageInner(params: HandlePalzMessageParams): Promi
537
537
  `to: ${palzTo}`,
538
538
  `mentioned_bot: ${wasMentioned}`,
539
539
  `lobster_id: ${msg.lobster_id || ""}`,
540
+ `agent_id: ${effectiveAgentId}`,
540
541
  ];
542
+ if (msg.group_kind != null) {
543
+ untrustedContext.push(`group_kind: ${msg.group_kind}`);
544
+ }
541
545
  if (groupId) {
542
546
  untrustedContext.push(`group_id: ${groupId}`);
543
547
  }
package/src/types.ts CHANGED
@@ -39,6 +39,8 @@ export interface PalzMessageEvent {
39
39
  group_id?: string;
40
40
  /** Lobster ID,标识 agent 身份(IM 通过此字段区分不同 agent) */
41
41
  lobster_id?: string;
42
+ /** 群组类型,由 IM 下发 */
43
+ group_kind?: number;
42
44
  /** W3C Trace Context traceparent,由 IM 上游传递 */
43
45
  traceparent?: string;
44
46
  }