palz-connector 1.4.6 → 1.4.7

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.4.6",
4
+ "version": "1.4.7",
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.4.6",
3
+ "version": "1.4.7",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "description": "Palz IM 接入 OpenClaw — 模块化架构,基于 OpenClaw Runtime 消息管道",
package/src/bot.ts CHANGED
@@ -530,6 +530,7 @@ async function _dispatchPalzMessageInner(params: HandlePalzMessageParams): Promi
530
530
 
531
531
  // 构建 UntrustedContext:将 IM 消息的关键字段注入到 AI agent 的上下文中
532
532
  const untrustedContext: string[] = [
533
+ `msg_id: ${msg.msg_id}`,
533
534
  `sender_id: ${msg.sender_id}`,
534
535
  `sender_name: ${senderName}`,
535
536
  `conversation_id: ${msg.conversation_id}`,
@@ -557,6 +558,9 @@ async function _dispatchPalzMessageInner(params: HandlePalzMessageParams): Promi
557
558
  if (groupId) {
558
559
  untrustedContext.push(`group_id: ${groupId}`);
559
560
  }
561
+ if (msg.group_owner_id) {
562
+ untrustedContext.push(`group_owner_id: ${msg.group_owner_id}`);
563
+ }
560
564
  if (msg.owner_id) {
561
565
  untrustedContext.push(`owner_id: ${msg.owner_id}`);
562
566
  }
package/src/types.ts CHANGED
@@ -37,6 +37,8 @@ export interface PalzMessageEvent {
37
37
  owner_name?: string;
38
38
  /** 群组 ID,群聊时 IM 可直接下发;若未提供则从 conversation_id 中解析 */
39
39
  group_id?: string;
40
+ /** 群主用户 ID,群聊时由 IM 下发 */
41
+ group_owner_id?: string;
40
42
  /** Lobster ID,标识 agent 身份(IM 通过此字段区分不同 agent) */
41
43
  lobster_id?: string;
42
44
  /** 群组类型,由 IM 下发 */