@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 CHANGED
@@ -1861,7 +1861,7 @@ var CircuitBreaker = class {
1861
1861
  };
1862
1862
 
1863
1863
  // src/version.ts
1864
- var PACKAGE_VERSION = "0.6.12";
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
- channel: "agentchat",
2452
- channelLabel: "AgentChat",
2453
- accountId: deps.accountId,
2454
- conversationId: event.conversationId,
2455
- conversationLabel,
2456
- senderId: senderHandle,
2457
- senderAddress: `@${senderHandle}`,
2458
- recipientAddress: `@${recipientHandle}`,
2459
- messageId: event.messageId,
2460
- rawBody: body,
2461
- timestamp: event.createdAt,
2462
- chatType: event.conversationKind === "group" ? "group" : "direct"
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) => {