@alfe.ai/openclaw-chat 0.0.31 → 0.0.33

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/plugin2.cjs CHANGED
@@ -633,13 +633,13 @@ async function handleAgentRequest(request, log) {
633
633
  chatClient?.sendResponse(request.id, false, { message: "OpenClaw SDK not available — cannot dispatch" });
634
634
  return;
635
635
  }
636
- const { message, sessionKey: legacySessionKey, userId, conversationId, conversationType, tenantId, clientType, displayName, attachments: rawAttachments, a2a } = request.params;
636
+ const { message, sessionKey: legacySessionKey, userId, conversationId, conversationType, tenantId, clientType, displayName, identityId, attachments: rawAttachments, a2a } = request.params;
637
637
  const isA2A = !!a2a;
638
638
  if (!message && !rawAttachments?.length) {
639
639
  chatClient?.sendResponse(request.id, false, { message: "Missing message" });
640
640
  return;
641
641
  }
642
- const senderId = displayName ?? userId ?? "anon";
642
+ const senderId = userId ?? "anon";
643
643
  const cfg = runtime.config.loadConfig();
644
644
  const sessionId = conversationId ?? legacySessionKey;
645
645
  if (!await getSession(sessionId)) await createSession(sessionId, "", "alfe", tenantId, userId);
@@ -689,7 +689,7 @@ async function handleAgentRequest(request, log) {
689
689
  id: conversationId ? `${senderId}:conv:${conversationId}` : senderId
690
690
  },
691
691
  senderId,
692
- senderAddress: `user:${senderId}`,
692
+ senderAddress: senderId,
693
693
  recipientAddress: "agent",
694
694
  conversationLabel,
695
695
  rawBody: message || "",
@@ -701,6 +701,8 @@ async function handleAgentRequest(request, log) {
701
701
  ...clientType ? { ClientType: clientType } : {},
702
702
  ...conversationId ? { ConversationId: conversationId } : {},
703
703
  ...displayName ? { SenderName: displayName } : {},
704
+ ...identityId ? { IdentityId: identityId } : {},
705
+ ...userId ? { UserId: userId } : {},
704
706
  ChannelMode: channelMode,
705
707
  ...isA2A ? {
706
708
  CallerType: "agent",
package/dist/plugin2.js CHANGED
@@ -633,13 +633,13 @@ async function handleAgentRequest(request, log) {
633
633
  chatClient?.sendResponse(request.id, false, { message: "OpenClaw SDK not available — cannot dispatch" });
634
634
  return;
635
635
  }
636
- const { message, sessionKey: legacySessionKey, userId, conversationId, conversationType, tenantId, clientType, displayName, attachments: rawAttachments, a2a } = request.params;
636
+ const { message, sessionKey: legacySessionKey, userId, conversationId, conversationType, tenantId, clientType, displayName, identityId, attachments: rawAttachments, a2a } = request.params;
637
637
  const isA2A = !!a2a;
638
638
  if (!message && !rawAttachments?.length) {
639
639
  chatClient?.sendResponse(request.id, false, { message: "Missing message" });
640
640
  return;
641
641
  }
642
- const senderId = displayName ?? userId ?? "anon";
642
+ const senderId = userId ?? "anon";
643
643
  const cfg = runtime.config.loadConfig();
644
644
  const sessionId = conversationId ?? legacySessionKey;
645
645
  if (!await getSession(sessionId)) await createSession(sessionId, "", "alfe", tenantId, userId);
@@ -689,7 +689,7 @@ async function handleAgentRequest(request, log) {
689
689
  id: conversationId ? `${senderId}:conv:${conversationId}` : senderId
690
690
  },
691
691
  senderId,
692
- senderAddress: `user:${senderId}`,
692
+ senderAddress: senderId,
693
693
  recipientAddress: "agent",
694
694
  conversationLabel,
695
695
  rawBody: message || "",
@@ -701,6 +701,8 @@ async function handleAgentRequest(request, log) {
701
701
  ...clientType ? { ClientType: clientType } : {},
702
702
  ...conversationId ? { ConversationId: conversationId } : {},
703
703
  ...displayName ? { SenderName: displayName } : {},
704
+ ...identityId ? { IdentityId: identityId } : {},
705
+ ...userId ? { UserId: userId } : {},
704
706
  ChannelMode: channelMode,
705
707
  ...isA2A ? {
706
708
  CallerType: "agent",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/openclaw-chat",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "description": "OpenClaw chat plugin for Alfe — web widget and mobile app channels",
5
5
  "type": "module",
6
6
  "main": "./dist/plugin.js",
@@ -27,7 +27,7 @@
27
27
  "openclaw.plugin.json"
28
28
  ],
29
29
  "dependencies": {
30
- "@alfe.ai/agent-api-client": "^0.0.11",
30
+ "@alfe.ai/agent-api-client": "^0.0.13",
31
31
  "@alfe.ai/chat": "^0.0.8",
32
32
  "@alfe.ai/config": "^0.0.8"
33
33
  },