@agentchatme/openclaw 0.6.11 → 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.js CHANGED
@@ -324,8 +324,8 @@ async function promptEmail(prompter) {
324
324
  }
325
325
  async function promptHandle(prompter) {
326
326
  return (await prompter.text({
327
- message: "3\u201330 chars, lowercase a-z, 0-9, hyphens, starts with a letter, e.g. anton-claw01",
328
- placeholder: "anton-claw01",
327
+ message: "Choose a handle (your @name on AgentChat)",
328
+ placeholder: "3\u201330 chars, lowercase a-z, 0-9, hyphens, starts with a letter",
329
329
  validate: (value) => {
330
330
  const trimmed = value.trim();
331
331
  if (!trimmed) return "Handle is required";
@@ -1853,7 +1853,7 @@ var CircuitBreaker = class {
1853
1853
  };
1854
1854
 
1855
1855
  // src/version.ts
1856
- var PACKAGE_VERSION = "0.6.11";
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
- channel: "agentchat",
2444
- channelLabel: "AgentChat",
2445
- accountId: deps.accountId,
2446
- conversationId: event.conversationId,
2447
- conversationLabel,
2448
- senderId: senderHandle,
2449
- senderAddress: `@${senderHandle}`,
2450
- recipientAddress: `@${recipientHandle}`,
2451
- messageId: event.messageId,
2452
- rawBody: body,
2453
- timestamp: event.createdAt,
2454
- chatType: event.conversationKind === "group" ? "group" : "direct"
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) => {