palz-connector 1.3.8 → 1.4.0

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.8",
4
+ "version": "1.4.0",
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.8",
3
+ "version": "1.4.0",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "description": "Palz IM 接入 OpenClaw — 模块化架构,基于 OpenClaw Runtime 消息管道",
package/src/bot.ts CHANGED
@@ -542,6 +542,9 @@ async function _dispatchPalzMessageInner(params: HandlePalzMessageParams): Promi
542
542
  if (msg.group_kind != null) {
543
543
  untrustedContext.push(`group_kind: ${msg.group_kind}`);
544
544
  }
545
+ if (msg.resource_id != null) {
546
+ untrustedContext.push(`resource_id: ${msg.resource_id}`);
547
+ }
545
548
  if (groupId) {
546
549
  untrustedContext.push(`group_id: ${groupId}`);
547
550
  }
@@ -555,7 +558,7 @@ async function _dispatchPalzMessageInner(params: HandlePalzMessageParams): Promi
555
558
  log(`${tag}: ${step6bCtx}`);
556
559
  span?.addEvent(step6bCtx);
557
560
 
558
- const showProcess = !isGroup && config.showProcess === true;
561
+ const showProcess = config.showProcess === true;
559
562
 
560
563
  const ctx = core.channel.reply.finalizeInboundContext({
561
564
  Body: combinedBody,
package/src/types.ts CHANGED
@@ -41,6 +41,8 @@ export interface PalzMessageEvent {
41
41
  lobster_id?: string;
42
42
  /** 群组类型,由 IM 下发 */
43
43
  group_kind?: number;
44
+ /** 资源 ID,由 IM 下发 */
45
+ resource_id?: string;
44
46
  /** W3C Trace Context traceparent,由 IM 上游传递 */
45
47
  traceparent?: string;
46
48
  }