@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.
@@ -1845,7 +1845,7 @@ var CircuitBreaker = class {
1845
1845
  };
1846
1846
 
1847
1847
  // src/version.ts
1848
- var PACKAGE_VERSION = "0.6.12";
1848
+ var PACKAGE_VERSION = "0.6.13";
1849
1849
 
1850
1850
  // src/outbound.ts
1851
1851
  var DEFAULT_RETRY_POLICY = {
@@ -2429,21 +2429,28 @@ async function handleMessage(deps, event) {
2429
2429
  const recipientHandle = selfHandle ?? "me";
2430
2430
  const conversationLabel = event.conversationKind === "group" ? `group ${event.conversationId}` : `dm with @${senderHandle}`;
2431
2431
  try {
2432
+ const sessionKey = event.conversationKind === "group" ? `agentchat:${deps.accountId}:group:${event.conversationId}` : `agentchat:${deps.accountId}:dm:${senderHandle}`;
2432
2433
  await dispatcher({
2433
2434
  cfg: deps.gatewayCfg,
2434
2435
  ctx: {
2435
- channel: "agentchat",
2436
- channelLabel: "AgentChat",
2437
- accountId: deps.accountId,
2438
- conversationId: event.conversationId,
2439
- conversationLabel,
2440
- senderId: senderHandle,
2441
- senderAddress: `@${senderHandle}`,
2442
- recipientAddress: `@${recipientHandle}`,
2443
- messageId: event.messageId,
2444
- rawBody: body,
2445
- timestamp: event.createdAt,
2446
- chatType: event.conversationKind === "group" ? "group" : "direct"
2436
+ Body: body,
2437
+ BodyForAgent: body,
2438
+ RawBody: body,
2439
+ CommandBody: body,
2440
+ From: `@${senderHandle}`,
2441
+ To: `@${recipientHandle}`,
2442
+ SessionKey: sessionKey,
2443
+ AccountId: deps.accountId,
2444
+ ChatType: event.conversationKind === "group" ? "group" : "direct",
2445
+ ConversationLabel: conversationLabel,
2446
+ SenderId: senderHandle,
2447
+ Provider: "agentchat",
2448
+ Surface: "agentchat",
2449
+ MessageSid: event.messageId,
2450
+ MessageSidFull: event.messageId,
2451
+ Timestamp: event.createdAt,
2452
+ OriginatingChannel: "agentchat",
2453
+ OriginatingTo: `@${recipientHandle}`
2447
2454
  },
2448
2455
  dispatcherOptions: {
2449
2456
  deliver: async (payload) => {