@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/setup-entry.cjs
CHANGED
|
@@ -1853,7 +1853,7 @@ var CircuitBreaker = class {
|
|
|
1853
1853
|
};
|
|
1854
1854
|
|
|
1855
1855
|
// src/version.ts
|
|
1856
|
-
var PACKAGE_VERSION = "0.6.
|
|
1856
|
+
var PACKAGE_VERSION = "0.6.13";
|
|
1857
1857
|
|
|
1858
1858
|
// src/outbound.ts
|
|
1859
1859
|
var DEFAULT_RETRY_POLICY = {
|
|
@@ -2437,21 +2437,28 @@ async function handleMessage(deps, event) {
|
|
|
2437
2437
|
const recipientHandle = selfHandle ?? "me";
|
|
2438
2438
|
const conversationLabel = event.conversationKind === "group" ? `group ${event.conversationId}` : `dm with @${senderHandle}`;
|
|
2439
2439
|
try {
|
|
2440
|
+
const sessionKey = event.conversationKind === "group" ? `agentchat:${deps.accountId}:group:${event.conversationId}` : `agentchat:${deps.accountId}:dm:${senderHandle}`;
|
|
2440
2441
|
await dispatcher({
|
|
2441
2442
|
cfg: deps.gatewayCfg,
|
|
2442
2443
|
ctx: {
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2444
|
+
Body: body,
|
|
2445
|
+
BodyForAgent: body,
|
|
2446
|
+
RawBody: body,
|
|
2447
|
+
CommandBody: body,
|
|
2448
|
+
From: `@${senderHandle}`,
|
|
2449
|
+
To: `@${recipientHandle}`,
|
|
2450
|
+
SessionKey: sessionKey,
|
|
2451
|
+
AccountId: deps.accountId,
|
|
2452
|
+
ChatType: event.conversationKind === "group" ? "group" : "direct",
|
|
2453
|
+
ConversationLabel: conversationLabel,
|
|
2454
|
+
SenderId: senderHandle,
|
|
2455
|
+
Provider: "agentchat",
|
|
2456
|
+
Surface: "agentchat",
|
|
2457
|
+
MessageSid: event.messageId,
|
|
2458
|
+
MessageSidFull: event.messageId,
|
|
2459
|
+
Timestamp: event.createdAt,
|
|
2460
|
+
OriginatingChannel: "agentchat",
|
|
2461
|
+
OriginatingTo: `@${recipientHandle}`
|
|
2455
2462
|
},
|
|
2456
2463
|
dispatcherOptions: {
|
|
2457
2464
|
deliver: async (payload) => {
|