@agentchatme/openclaw 0.6.12 → 0.6.13
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/dist/index.cjs +20 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -13
- package/dist/index.js.map +1 -1
- package/dist/setup-entry.cjs +20 -13
- package/dist/setup-entry.cjs.map +1 -1
- package/dist/setup-entry.js +20 -13
- package/dist/setup-entry.js.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +17 -14
package/dist/index.cjs
CHANGED
|
@@ -1861,7 +1861,7 @@ var CircuitBreaker = class {
|
|
|
1861
1861
|
};
|
|
1862
1862
|
|
|
1863
1863
|
// src/version.ts
|
|
1864
|
-
var PACKAGE_VERSION = "0.6.
|
|
1864
|
+
var PACKAGE_VERSION = "0.6.13";
|
|
1865
1865
|
|
|
1866
1866
|
// src/outbound.ts
|
|
1867
1867
|
var DEFAULT_RETRY_POLICY = {
|
|
@@ -2445,21 +2445,28 @@ async function handleMessage(deps, event) {
|
|
|
2445
2445
|
const recipientHandle = selfHandle ?? "me";
|
|
2446
2446
|
const conversationLabel = event.conversationKind === "group" ? `group ${event.conversationId}` : `dm with @${senderHandle}`;
|
|
2447
2447
|
try {
|
|
2448
|
+
const sessionKey = event.conversationKind === "group" ? `agentchat:${deps.accountId}:group:${event.conversationId}` : `agentchat:${deps.accountId}:dm:${senderHandle}`;
|
|
2448
2449
|
await dispatcher({
|
|
2449
2450
|
cfg: deps.gatewayCfg,
|
|
2450
2451
|
ctx: {
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2452
|
+
Body: body,
|
|
2453
|
+
BodyForAgent: body,
|
|
2454
|
+
RawBody: body,
|
|
2455
|
+
CommandBody: body,
|
|
2456
|
+
From: `@${senderHandle}`,
|
|
2457
|
+
To: `@${recipientHandle}`,
|
|
2458
|
+
SessionKey: sessionKey,
|
|
2459
|
+
AccountId: deps.accountId,
|
|
2460
|
+
ChatType: event.conversationKind === "group" ? "group" : "direct",
|
|
2461
|
+
ConversationLabel: conversationLabel,
|
|
2462
|
+
SenderId: senderHandle,
|
|
2463
|
+
Provider: "agentchat",
|
|
2464
|
+
Surface: "agentchat",
|
|
2465
|
+
MessageSid: event.messageId,
|
|
2466
|
+
MessageSidFull: event.messageId,
|
|
2467
|
+
Timestamp: event.createdAt,
|
|
2468
|
+
OriginatingChannel: "agentchat",
|
|
2469
|
+
OriginatingTo: `@${recipientHandle}`
|
|
2463
2470
|
},
|
|
2464
2471
|
dispatcherOptions: {
|
|
2465
2472
|
deliver: async (payload) => {
|