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.
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/src/bot.ts +4 -0
- package/src/types.ts +2 -0
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
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
|
}
|