@elizaos/client 1.5.9-alpha.8 → 1.5.9-beta.0

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.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <link rel="icon" type="image/x-icon" href="/favicon.ico" />
7
7
  <title>ElizaOS - Client</title>
8
- <script type="module" crossorigin src="/assets/main-BZDx41Zd.js"></script>
8
+ <script type="module" crossorigin src="/assets/main-Cxu5WF7C.js"></script>
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/client",
3
- "version": "1.5.9-alpha.8",
3
+ "version": "1.5.9-beta.0",
4
4
  "description": "Web client interface for ElizaOS agents",
5
5
  "repository": {
6
6
  "type": "git",
@@ -61,8 +61,8 @@
61
61
  "access": "public"
62
62
  },
63
63
  "dependencies": {
64
- "@elizaos/api-client": "1.5.9-alpha.8",
65
- "@elizaos/core": "1.5.9-alpha.8",
64
+ "@elizaos/api-client": "1.5.9-beta.0",
65
+ "@elizaos/core": "1.5.9-beta.0",
66
66
  "@hookform/resolvers": "^5.1.1",
67
67
  "@radix-ui/react-alert-dialog": "^1.0.5",
68
68
  "@radix-ui/react-avatar": "^1.1.3",
@@ -155,5 +155,5 @@
155
155
  "vite-tsconfig-paths": "^5.1.4",
156
156
  "wait-on": "^8.0.3"
157
157
  },
158
- "gitHead": "8c82cd7b7968b9c4aeaa90b2d7c9e6a2d90c2251"
158
+ "gitHead": "ee3beca254917db3d4108305e5b449899a2b94ab"
159
159
  }
@@ -675,22 +675,25 @@ export default function Chat({
675
675
  updateChatState({ currentDmChannelId: agentDmChannels[0].id });
676
676
  }
677
677
  }, [agentDmChannels, isLoadingAgentDmChannels, updateChatState]);
678
-
678
+
679
679
  // Function to add channelId to URL
680
- const addChannelIdToUrl = useCallback((channelId: UUID) => {
681
- if (chatType === ChannelType.DM && contextId && channelId && typeof window !== 'undefined') {
682
- const newPath = `/chat/${contextId}/${channelId}`;
683
- if (window.location.pathname !== newPath && window.history) {
684
- window.history.replaceState(null, '', newPath);
680
+ const addChannelIdToUrl = useCallback(
681
+ (channelId: UUID) => {
682
+ if (chatType === ChannelType.DM && contextId && channelId && typeof window !== 'undefined') {
683
+ const newPath = `/chat/${contextId}/${channelId}`;
684
+ if (window.location.pathname !== newPath && window.history) {
685
+ window.history.replaceState(null, '', newPath);
686
+ }
685
687
  }
686
- }
687
- }, [chatType, contextId]);
688
+ },
689
+ [chatType, contextId]
690
+ );
688
691
 
689
692
  // useEffect to listen for channelId switching and append id to URL
690
693
  useEffect(() => {
691
- if (chatState.currentDmChannelId) {
692
- addChannelIdToUrl(chatState.currentDmChannelId);
693
- }
694
+ if (chatState.currentDmChannelId) {
695
+ addChannelIdToUrl(chatState.currentDmChannelId);
696
+ }
694
697
  }, [chatState.currentDmChannelId, addChannelIdToUrl]);
695
698
 
696
699
  // useEffect to handle direct URL navigation with channelId (only runs once on mount)
@@ -699,10 +702,15 @@ export default function Chat({
699
702
  initialDmChannelId,
700
703
  agentDmChannelsLength: agentDmChannels.length,
701
704
  isLoadingAgentDmChannels,
702
- currentDmChannelId: chatState.currentDmChannelId
705
+ currentDmChannelId: chatState.currentDmChannelId,
703
706
  });
704
707
 
705
- if (initialDmChannelId && agentDmChannels.length > 0 && !isLoadingAgentDmChannels && !hasHandledInitialUrl.current) {
708
+ if (
709
+ initialDmChannelId &&
710
+ agentDmChannels.length > 0 &&
711
+ !isLoadingAgentDmChannels &&
712
+ !hasHandledInitialUrl.current
713
+ ) {
706
714
  // Validate the channel ID format first
707
715
  const validChannelId = validateUuid(initialDmChannelId);
708
716
  if (!validChannelId) {
@@ -712,7 +720,7 @@ export default function Chat({
712
720
  }
713
721
 
714
722
  // Check if the channel from URL exists in user's channels
715
- const channelExists = agentDmChannels.some(ch => ch.id === initialDmChannelId);
723
+ const channelExists = agentDmChannels.some((ch) => ch.id === initialDmChannelId);
716
724
  if (channelExists) {
717
725
  clientLogger.info('[Chat] Switching to channel from URL:', initialDmChannelId);
718
726
  updateChatState({ currentDmChannelId: initialDmChannelId });
@@ -720,7 +728,7 @@ export default function Chat({
720
728
  } else {
721
729
  clientLogger.warn('[Chat] Channel from URL not found, staying with current channel', {
722
730
  initialDmChannelId,
723
- availableChannels: agentDmChannels.map(ch => ch.id)
731
+ availableChannels: agentDmChannels.map((ch) => ch.id),
724
732
  });
725
733
  hasHandledInitialUrl.current = true;
726
734
  }