@liveblocks/react 3.13.0 → 3.13.1-hackathon

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
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkC7F5PZXEcjs = require('./chunk-C7F5PZXE.cjs');
6
+ var _chunk73OAUQFMcjs = require('./chunk-73OAUQFM.cjs');
7
7
 
8
8
 
9
9
 
@@ -81,12 +81,16 @@ var _chunkC7F5PZXEcjs = require('./chunk-C7F5PZXE.cjs');
81
81
 
82
82
 
83
83
 
84
- var _chunkQFAOGFJKcjs = require('./chunk-QFAOGFJK.cjs');
84
+
85
+
86
+ var _chunkJXNC4PPGcjs = require('./chunk-JXNC4PPG.cjs');
85
87
 
86
88
  // src/index.ts
87
89
  var _core = require('@liveblocks/core');
88
90
  var _client = require('@liveblocks/client');
89
- _core.detectDupes.call(void 0, _chunkC7F5PZXEcjs.PKG_NAME, _chunkC7F5PZXEcjs.PKG_VERSION, _chunkC7F5PZXEcjs.PKG_FORMAT);
91
+ _core.detectDupes.call(void 0, _chunk73OAUQFMcjs.PKG_NAME, _chunk73OAUQFMcjs.PKG_VERSION, _chunk73OAUQFMcjs.PKG_FORMAT);
92
+
93
+
90
94
 
91
95
 
92
96
 
@@ -167,5 +171,5 @@ _core.detectDupes.call(void 0, _chunkC7F5PZXEcjs.PKG_NAME, _chunkC7F5PZXEcjs.PKG
167
171
 
168
172
 
169
173
 
170
- exports.ClientContext = _chunkQFAOGFJKcjs.ClientContext; exports.ClientSideSuspense = _chunkC7F5PZXEcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkQFAOGFJKcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkQFAOGFJKcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkQFAOGFJKcjs.RegisterAiTool; exports.RoomContext = _chunkQFAOGFJKcjs.RoomContext; exports.RoomProvider = _chunkQFAOGFJKcjs._RoomProvider; exports.createLiveblocksContext = _chunkQFAOGFJKcjs.createLiveblocksContext; exports.createRoomContext = _chunkQFAOGFJKcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkQFAOGFJKcjs._useAddReaction; exports.useAiChat = _chunkQFAOGFJKcjs._useAiChat; exports.useAiChatMessages = _chunkQFAOGFJKcjs._useAiChatMessages; exports.useAiChatStatus = _chunkQFAOGFJKcjs.useAiChatStatus; exports.useAiChats = _chunkQFAOGFJKcjs._useAiChats; exports.useAttachmentUrl = _chunkQFAOGFJKcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkQFAOGFJKcjs._useBroadcastEvent; exports.useCanRedo = _chunkQFAOGFJKcjs.useCanRedo; exports.useCanUndo = _chunkQFAOGFJKcjs.useCanUndo; exports.useClient = _chunkQFAOGFJKcjs.useClient; exports.useCreateAiChat = _chunkQFAOGFJKcjs.useCreateAiChat; exports.useCreateComment = _chunkQFAOGFJKcjs._useCreateComment; exports.useCreateThread = _chunkQFAOGFJKcjs._useCreateThread; exports.useDeleteAiChat = _chunkQFAOGFJKcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkQFAOGFJKcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkQFAOGFJKcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkQFAOGFJKcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkQFAOGFJKcjs._useDeleteThread; exports.useEditComment = _chunkQFAOGFJKcjs._useEditComment; exports.useEditCommentMetadata = _chunkQFAOGFJKcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkQFAOGFJKcjs._useEditThreadMetadata; exports.useErrorListener = _chunkQFAOGFJKcjs.useErrorListener; exports.useEventListener = _chunkQFAOGFJKcjs._useEventListener; exports.useGroupInfo = _chunkQFAOGFJKcjs.useGroupInfo; exports.useHistory = _chunkQFAOGFJKcjs.useHistory; exports.useHistoryVersionData = _chunkQFAOGFJKcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkQFAOGFJKcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkQFAOGFJKcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkQFAOGFJKcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkQFAOGFJKcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkQFAOGFJKcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkQFAOGFJKcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkQFAOGFJKcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkQFAOGFJKcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkQFAOGFJKcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkQFAOGFJKcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkQFAOGFJKcjs._useMutation; exports.useMyPresence = _chunkQFAOGFJKcjs._useMyPresence; exports.useNotificationSettings = _chunkQFAOGFJKcjs.useNotificationSettings; exports.useOther = _chunkQFAOGFJKcjs._useOther; exports.useOthers = _chunkQFAOGFJKcjs._useOthers; exports.useOthersConnectionIds = _chunkQFAOGFJKcjs.useOthersConnectionIds; exports.useOthersListener = _chunkQFAOGFJKcjs._useOthersListener; exports.useOthersMapped = _chunkQFAOGFJKcjs._useOthersMapped; exports.useRedo = _chunkQFAOGFJKcjs.useRedo; exports.useRemoveReaction = _chunkQFAOGFJKcjs.useRemoveReaction; exports.useRoom = _chunkQFAOGFJKcjs._useRoom; exports.useRoomInfo = _chunkQFAOGFJKcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkQFAOGFJKcjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunkQFAOGFJKcjs._useSearchComments; exports.useSelf = _chunkQFAOGFJKcjs._useSelf; exports.useSendAiMessage = _chunkQFAOGFJKcjs.useSendAiMessage; exports.useStatus = _chunkQFAOGFJKcjs.useStatus; exports.useStorage = _chunkQFAOGFJKcjs._useStorage; exports.useStorageRoot = _chunkQFAOGFJKcjs._useStorageRoot; exports.useSubscribeToThread = _chunkQFAOGFJKcjs.useSubscribeToThread; exports.useSyncStatus = _chunkQFAOGFJKcjs.useSyncStatus; exports.useThreadSubscription = _chunkQFAOGFJKcjs.useThreadSubscription; exports.useThreads = _chunkQFAOGFJKcjs._useThreads; exports.useUndo = _chunkQFAOGFJKcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkQFAOGFJKcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkQFAOGFJKcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkQFAOGFJKcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkQFAOGFJKcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkQFAOGFJKcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkQFAOGFJKcjs._useUrlMetadata; exports.useUser = _chunkQFAOGFJKcjs._useUser; exports.useUserThreads_experimental = _chunkQFAOGFJKcjs._useUserThreads_experimental;
174
+ exports.ClientContext = _chunkJXNC4PPGcjs.ClientContext; exports.ClientSideSuspense = _chunk73OAUQFMcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkJXNC4PPGcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkJXNC4PPGcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkJXNC4PPGcjs.RegisterAiTool; exports.RoomContext = _chunkJXNC4PPGcjs.RoomContext; exports.RoomProvider = _chunkJXNC4PPGcjs._RoomProvider; exports.createLiveblocksContext = _chunkJXNC4PPGcjs.createLiveblocksContext; exports.createRoomContext = _chunkJXNC4PPGcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkJXNC4PPGcjs._useAddReaction; exports.useAgentSession = _chunkJXNC4PPGcjs._useAgentSession; exports.useAgentSessions = _chunkJXNC4PPGcjs._useAgentSessions; exports.useAiChat = _chunkJXNC4PPGcjs._useAiChat; exports.useAiChatMessages = _chunkJXNC4PPGcjs._useAiChatMessages; exports.useAiChatStatus = _chunkJXNC4PPGcjs.useAiChatStatus; exports.useAiChats = _chunkJXNC4PPGcjs._useAiChats; exports.useAttachmentUrl = _chunkJXNC4PPGcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkJXNC4PPGcjs._useBroadcastEvent; exports.useCanRedo = _chunkJXNC4PPGcjs.useCanRedo; exports.useCanUndo = _chunkJXNC4PPGcjs.useCanUndo; exports.useClient = _chunkJXNC4PPGcjs.useClient; exports.useCreateAiChat = _chunkJXNC4PPGcjs.useCreateAiChat; exports.useCreateComment = _chunkJXNC4PPGcjs._useCreateComment; exports.useCreateThread = _chunkJXNC4PPGcjs._useCreateThread; exports.useDeleteAiChat = _chunkJXNC4PPGcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkJXNC4PPGcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkJXNC4PPGcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkJXNC4PPGcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkJXNC4PPGcjs._useDeleteThread; exports.useEditComment = _chunkJXNC4PPGcjs._useEditComment; exports.useEditCommentMetadata = _chunkJXNC4PPGcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkJXNC4PPGcjs._useEditThreadMetadata; exports.useErrorListener = _chunkJXNC4PPGcjs.useErrorListener; exports.useEventListener = _chunkJXNC4PPGcjs._useEventListener; exports.useGroupInfo = _chunkJXNC4PPGcjs.useGroupInfo; exports.useHistory = _chunkJXNC4PPGcjs.useHistory; exports.useHistoryVersionData = _chunkJXNC4PPGcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkJXNC4PPGcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkJXNC4PPGcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkJXNC4PPGcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkJXNC4PPGcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkJXNC4PPGcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkJXNC4PPGcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkJXNC4PPGcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkJXNC4PPGcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkJXNC4PPGcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkJXNC4PPGcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkJXNC4PPGcjs._useMutation; exports.useMyPresence = _chunkJXNC4PPGcjs._useMyPresence; exports.useNotificationSettings = _chunkJXNC4PPGcjs.useNotificationSettings; exports.useOther = _chunkJXNC4PPGcjs._useOther; exports.useOthers = _chunkJXNC4PPGcjs._useOthers; exports.useOthersConnectionIds = _chunkJXNC4PPGcjs.useOthersConnectionIds; exports.useOthersListener = _chunkJXNC4PPGcjs._useOthersListener; exports.useOthersMapped = _chunkJXNC4PPGcjs._useOthersMapped; exports.useRedo = _chunkJXNC4PPGcjs.useRedo; exports.useRemoveReaction = _chunkJXNC4PPGcjs.useRemoveReaction; exports.useRoom = _chunkJXNC4PPGcjs._useRoom; exports.useRoomInfo = _chunkJXNC4PPGcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkJXNC4PPGcjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunkJXNC4PPGcjs._useSearchComments; exports.useSelf = _chunkJXNC4PPGcjs._useSelf; exports.useSendAiMessage = _chunkJXNC4PPGcjs.useSendAiMessage; exports.useStatus = _chunkJXNC4PPGcjs.useStatus; exports.useStorage = _chunkJXNC4PPGcjs._useStorage; exports.useStorageRoot = _chunkJXNC4PPGcjs._useStorageRoot; exports.useSubscribeToThread = _chunkJXNC4PPGcjs.useSubscribeToThread; exports.useSyncStatus = _chunkJXNC4PPGcjs.useSyncStatus; exports.useThreadSubscription = _chunkJXNC4PPGcjs.useThreadSubscription; exports.useThreads = _chunkJXNC4PPGcjs._useThreads; exports.useUndo = _chunkJXNC4PPGcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkJXNC4PPGcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkJXNC4PPGcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkJXNC4PPGcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkJXNC4PPGcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkJXNC4PPGcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkJXNC4PPGcjs._useUrlMetadata; exports.useUser = _chunkJXNC4PPGcjs._useUser; exports.useUserThreads_experimental = _chunkJXNC4PPGcjs._useUserThreads_experimental;
171
175
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACpFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADqF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,mhKAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"]}
1
+ {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACtFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADuF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,ipKAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useAgentSessions,\n useAgentSession,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"]}
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-CEMGQ1Mj.cjs';
2
- export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aJ as useAiChat, aL as useAiChatMessages, aM as useAiChatStatus, aK as useAiChats, av as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aB as useCreateAiChat, V as useCreateComment, W as useCreateThread, aC as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, aG as useGroupInfo, a6 as useHistory, am as useHistoryVersionData, aw as useHistoryVersions, _ as useInboxNotificationThread, ay as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, az as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ac as useOthersListener, aq as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, aF as useRoomInfo, ax as useRoomSubscriptionSettings, au as useSearchComments, ar as useSelf, aD as useSendAiMessage, ag as useStatus, as as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, at as useThreads, aj as useUndo, aH as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aA as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, aN as useUrlMetadata, aI as useUser, aE as useUserThreads_experimental } from './room-CEMGQ1Mj.cjs';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-CVCL9bCW.cjs';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, av as useAgentSession, au as useAgentSessions, aL as useAiChat, aN as useAiChatMessages, aO as useAiChatStatus, aM as useAiChats, ax as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aD as useCreateAiChat, V as useCreateComment, W as useCreateThread, aE as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, aI as useGroupInfo, a6 as useHistory, am as useHistoryVersionData, ay as useHistoryVersions, _ as useInboxNotificationThread, aA as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, aB as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ac as useOthersListener, aq as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, aH as useRoomInfo, az as useRoomSubscriptionSettings, aw as useSearchComments, ar as useSelf, aF as useSendAiMessage, ag as useStatus, as as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, at as useThreads, aj as useUndo, aJ as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aC as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, aP as useUrlMetadata, aK as useUser, aG as useUserThreads_experimental } from './room-CVCL9bCW.cjs';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as react from 'react';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-CEMGQ1Mj.js';
2
- export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aJ as useAiChat, aL as useAiChatMessages, aM as useAiChatStatus, aK as useAiChats, av as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aB as useCreateAiChat, V as useCreateComment, W as useCreateThread, aC as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, aG as useGroupInfo, a6 as useHistory, am as useHistoryVersionData, aw as useHistoryVersions, _ as useInboxNotificationThread, ay as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, az as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ac as useOthersListener, aq as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, aF as useRoomInfo, ax as useRoomSubscriptionSettings, au as useSearchComments, ar as useSelf, aD as useSendAiMessage, ag as useStatus, as as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, at as useThreads, aj as useUndo, aH as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aA as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, aN as useUrlMetadata, aI as useUser, aE as useUserThreads_experimental } from './room-CEMGQ1Mj.js';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-CVCL9bCW.js';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, av as useAgentSession, au as useAgentSessions, aL as useAiChat, aN as useAiChatMessages, aO as useAiChatStatus, aM as useAiChats, ax as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aD as useCreateAiChat, V as useCreateComment, W as useCreateThread, aE as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, aI as useGroupInfo, a6 as useHistory, am as useHistoryVersionData, ay as useHistoryVersions, _ as useInboxNotificationThread, aA as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, aB as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ac as useOthersListener, aq as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, aH as useRoomInfo, az as useRoomSubscriptionSettings, aw as useSearchComments, ar as useSelf, aF as useSendAiMessage, ag as useStatus, as as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, at as useThreads, aj as useUndo, aJ as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aC as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, aP as useUrlMetadata, aK as useUser, aG as useUserThreads_experimental } from './room-CVCL9bCW.js';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as react from 'react';
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-RTM66YNN.js";
6
+ } from "./chunk-A3DIFDDH.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -12,6 +12,8 @@ import {
12
12
  RoomContext,
13
13
  _RoomProvider,
14
14
  _useAddReaction,
15
+ _useAgentSession,
16
+ _useAgentSessions,
15
17
  _useAiChat,
16
18
  _useAiChatMessages,
17
19
  _useAiChats,
@@ -81,7 +83,7 @@ import {
81
83
  useUnsubscribeFromThread,
82
84
  useUpdateNotificationSettings,
83
85
  useUpdateRoomSubscriptionSettings
84
- } from "./chunk-ERRJHA6O.js";
86
+ } from "./chunk-VSUKKNOK.js";
85
87
 
86
88
  // src/index.ts
87
89
  import { detectDupes } from "@liveblocks/core";
@@ -100,6 +102,8 @@ export {
100
102
  isNotificationChannelEnabled,
101
103
  shallow,
102
104
  _useAddReaction as useAddReaction,
105
+ _useAgentSession as useAgentSession,
106
+ _useAgentSessions as useAgentSessions,
103
107
  _useAiChat as useAiChat,
104
108
  _useAiChatMessages as useAiChatMessages,
105
109
  useAiChatStatus,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useAgentSessions,\n useAgentSession,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
3
3
  import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
4
4
  import * as _liveblocks_core from '@liveblocks/core';
5
- import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, SearchCommentsResult, HistoryVersion, AiChat, UrlMetadata, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, DerivedSignal, DefaultMap, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DTM, DCM, TextEditorType, IYjsProvider, MentionData, DP, DS, DE } from '@liveblocks/core';
5
+ import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, SearchCommentsResult, AgentSession, AgentMessage, HistoryVersion, AiChat, UrlMetadata, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, DerivedSignal, DefaultMap, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DTM, DCM, TextEditorType, IYjsProvider, MentionData, DP, DS, DE } from '@liveblocks/core';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  /**
@@ -206,6 +206,26 @@ type UseInboxNotificationsOptions = {
206
206
  */
207
207
  query?: InboxNotificationsQuery;
208
208
  };
209
+ type UseAgentSessionsOptions = {
210
+ /**
211
+ * Optional timestamp filter. Only sessions created or updated after this timestamp will be returned.
212
+ */
213
+ since?: number;
214
+ /**
215
+ * Optional metadata filter. Only sessions with matching metadata will be returned.
216
+ */
217
+ metadata?: Record<string, string>;
218
+ };
219
+ type UseAgentSessionOptions = {
220
+ /**
221
+ * Optional cursor for pagination.
222
+ */
223
+ cursor?: string;
224
+ /**
225
+ * Optional limit for the number of messages to fetch.
226
+ */
227
+ limit?: number;
228
+ };
209
229
  type UserAsyncResult<T> = AsyncResult<T, "user">;
210
230
  type UserAsyncSuccess<T> = AsyncSuccess<T, "user">;
211
231
  type RoomInfoAsyncResult = AsyncResult<DRI, "info">;
@@ -268,6 +288,10 @@ type ThreadsAsyncResult<TM extends BaseMetadata, CM extends BaseMetadata> = Page
268
288
  type SearchCommentsAsyncResult = AsyncResult<Array<SearchCommentsResult>, "results">;
269
289
  type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
270
290
  type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
291
+ type AgentSessionsAsyncSuccess = PagedAsyncSuccess<AgentSession[], "sessions">;
292
+ type AgentSessionsAsyncResult = PagedAsyncResult<AgentSession[], "sessions">;
293
+ type AgentSessionAsyncSuccess = PagedAsyncSuccess<AgentMessage[], "messages">;
294
+ type AgentSessionAsyncResult = PagedAsyncResult<AgentMessage[], "messages">;
271
295
  type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
272
296
  type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
273
297
  type NotificationSettingsAsyncResult = AsyncResult<NotificationSettings, "settings">;
@@ -985,6 +1009,20 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
985
1009
  * const { threads, error, isLoading } = useThreads();
986
1010
  */
987
1011
  useThreads(options?: UseThreadsOptions<TM>): ThreadsAsyncResult<TM, CM>;
1012
+ /**
1013
+ * Returns agent sessions for the current room.
1014
+ *
1015
+ * @example
1016
+ * const { sessions, error, isLoading } = useAgentSessions();
1017
+ */
1018
+ useAgentSessions(options?: UseAgentSessionsOptions): AgentSessionsAsyncResult;
1019
+ /**
1020
+ * Returns agent messages for a specific session in the current room.
1021
+ *
1022
+ * @example
1023
+ * const { messages, error, isLoading } = useAgentSession("session-id");
1024
+ */
1025
+ useAgentSession(sessionId: string, options?: UseAgentSessionOptions): AgentSessionAsyncResult;
988
1026
  /**
989
1027
  * Returns the result of searching comments by text in the current room. The result includes the id and the plain text content of the matched comments along with the parent thread id of the comment.
990
1028
  *
@@ -1080,6 +1118,20 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
1080
1118
  * const { threads } = useThreads();
1081
1119
  */
1082
1120
  useThreads(options?: UseThreadsOptions<TM>): ThreadsAsyncSuccess<TM, CM>;
1121
+ /**
1122
+ * Returns agent sessions for the current room.
1123
+ *
1124
+ * @example
1125
+ * const { sessions } = useAgentSessions();
1126
+ */
1127
+ useAgentSessions(options?: UseAgentSessionsOptions): AgentSessionsAsyncSuccess;
1128
+ /**
1129
+ * Returns agent messages for a specific session in the current room.
1130
+ *
1131
+ * @example
1132
+ * const { messages } = useAgentSession("session-id");
1133
+ */
1134
+ useAgentSession(sessionId: string, options?: UseAgentSessionOptions): AgentSessionAsyncSuccess;
1083
1135
  /**
1084
1136
  * (Private beta) Returns a history of versions of the current room.
1085
1137
  *
@@ -1787,6 +1839,8 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
1787
1839
  readonly messagesByChatId: DefaultMap<string, DefaultMap<MessageId | null, LoadableResource<AiChatMessagesAsyncResult>>>;
1788
1840
  readonly aiChatById: DefaultMap<string, LoadableResource<AiChatAsyncResult>>;
1789
1841
  readonly urlMetadataByUrl: DefaultMap<string, LoadableResource<UrlMetadataAsyncResult>>;
1842
+ readonly loadingAgentSessions: DefaultMap<string, LoadableResource<AgentSessionsAsyncResult>>;
1843
+ readonly loadingAgentMessages: DefaultMap<string, LoadableResource<AgentSessionAsyncResult>>;
1790
1844
  };
1791
1845
  constructor(client: OpaqueClient);
1792
1846
  /**
@@ -1851,6 +1905,24 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
1851
1905
  */
1852
1906
  updateRoomSubscriptionSettings(roomId: string, optimisticId: string, settings: Readonly<RoomSubscriptionSettings$1>): void;
1853
1907
  fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
1908
+ /**
1909
+ * Registers a room instance for agent session fetching.
1910
+ * Called by RoomProvider when it mounts.
1911
+ */
1912
+ registerRoom(roomId: RoomId, room: OpaqueRoom): void;
1913
+ /**
1914
+ * Unregisters a room instance.
1915
+ * Called by RoomProvider when it unmounts.
1916
+ */
1917
+ unregisterRoom(roomId: RoomId): void;
1918
+ /**
1919
+ * Updates the agent sessions cache based on WebSocket events.
1920
+ */
1921
+ updateAgentSessions(roomId: RoomId, sessions: readonly AgentSession[], operation: "list" | "added" | "updated" | "deleted"): void;
1922
+ /**
1923
+ * Updates the agent messages cache based on WebSocket events.
1924
+ */
1925
+ updateAgentMessages(_roomId: RoomId, sessionId: string, messages: readonly AgentMessage[], operation: "list" | "added" | "updated" | "deleted"): void;
1854
1926
  fetchUnreadNotificationsCount(queryKey: InboxNotificationsQueryKey, signal: AbortSignal): Promise<void>;
1855
1927
  fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
1856
1928
  fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
@@ -2719,6 +2791,20 @@ declare const _useOthersMappedSuspense: TypedBundle["suspense"]["useOthersMapped
2719
2791
  * const { threads, error, isLoading } = useThreads();
2720
2792
  */
2721
2793
  declare const _useThreads: TypedBundle["useThreads"];
2794
+ /**
2795
+ * Returns agent sessions for the current room.
2796
+ *
2797
+ * @example
2798
+ * const { sessions, error, isLoading } = useAgentSessions();
2799
+ */
2800
+ declare const _useAgentSessions: TypedBundle["useAgentSessions"];
2801
+ /**
2802
+ * Returns agent messages for a specific session in the current room.
2803
+ *
2804
+ * @example
2805
+ * const { messages, error, isLoading } = useAgentSession("session-id");
2806
+ */
2807
+ declare const _useAgentSession: TypedBundle["useAgentSession"];
2722
2808
  /**
2723
2809
  * Returns the result of searching comments by text in the current room. The result includes the id and the plain text content of the matched comments along with the parent thread id of the comment.
2724
2810
  *
@@ -2990,4 +3076,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2990
3076
  */
2991
3077
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2992
3078
 
2993
- export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, _useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, _useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useGroupInfoSuspense as a$, _useEditCommentMetadata as a0, useMarkThreadAsResolved as a1, useMarkThreadAsUnresolved as a2, useSubscribeToThread as a3, useUnsubscribeFromThread as a4, _useEventListener as a5, useHistory as a6, _useIsInsideRoom as a7, useLostConnectionListener as a8, useMarkThreadAsRead as a9, useUpdateNotificationSettings as aA, useCreateAiChat as aB, useDeleteAiChat as aC, useSendAiMessage as aD, _useUserThreads_experimental as aE, useRoomInfo as aF, useGroupInfo as aG, useUnreadInboxNotificationsCount as aH, _useUser as aI, _useAiChat as aJ, _useAiChats as aK, _useAiChatMessages as aL, useAiChatStatus as aM, _useUrlMetadata as aN, _useOtherSuspense as aO, _useOthersSuspense as aP, useOthersConnectionIdsSuspense as aQ, _useOthersMappedSuspense as aR, _useSelfSuspense as aS, _useStorageSuspense as aT, _useThreadsSuspense as aU, useAttachmentUrlSuspense as aV, _useHistoryVersionsSuspense as aW, _useRoomSubscriptionSettingsSuspense as aX, useInboxNotificationsSuspense as aY, useNotificationSettingsSuspense as aZ, useRoomInfoSuspense as a_, _useMutation as aa, _useMyPresence as ab, _useOthersListener as ac, useRedo as ad, useRemoveReaction as ae, _useRoom as af, useStatus as ag, _useStorageRoot as ah, useThreadSubscription as ai, useUndo as aj, _useUpdateMyPresence as ak, useUpdateRoomSubscriptionSettings as al, useHistoryVersionData as am, _useOther as an, _useOthers as ao, useOthersConnectionIds as ap, _useOthersMapped as aq, _useSelf as ar, _useStorage as as, _useThreads as at, _useSearchComments as au, useAttachmentUrl as av, _useHistoryVersions as aw, _useRoomSubscriptionSettings as ax, useInboxNotifications as ay, useNotificationSettings as az, useCreateRoomComment as b, useUnreadInboxNotificationsCountSuspense as b0, _useUserSuspense as b1, _useUserThreadsSuspense_experimental as b2, _useAiChatsSuspense as b3, _useAiChatMessagesSuspense as b4, _useAiChatSuspense as b5, _useUrlMetadataSuspense as b6, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
3079
+ export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, _useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, _useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useNotificationSettingsSuspense as a$, _useEditCommentMetadata as a0, useMarkThreadAsResolved as a1, useMarkThreadAsUnresolved as a2, useSubscribeToThread as a3, useUnsubscribeFromThread as a4, _useEventListener as a5, useHistory as a6, _useIsInsideRoom as a7, useLostConnectionListener as a8, useMarkThreadAsRead as a9, useInboxNotifications as aA, useNotificationSettings as aB, useUpdateNotificationSettings as aC, useCreateAiChat as aD, useDeleteAiChat as aE, useSendAiMessage as aF, _useUserThreads_experimental as aG, useRoomInfo as aH, useGroupInfo as aI, useUnreadInboxNotificationsCount as aJ, _useUser as aK, _useAiChat as aL, _useAiChats as aM, _useAiChatMessages as aN, useAiChatStatus as aO, _useUrlMetadata as aP, _useOtherSuspense as aQ, _useOthersSuspense as aR, useOthersConnectionIdsSuspense as aS, _useOthersMappedSuspense as aT, _useSelfSuspense as aU, _useStorageSuspense as aV, _useThreadsSuspense as aW, useAttachmentUrlSuspense as aX, _useHistoryVersionsSuspense as aY, _useRoomSubscriptionSettingsSuspense as aZ, useInboxNotificationsSuspense as a_, _useMutation as aa, _useMyPresence as ab, _useOthersListener as ac, useRedo as ad, useRemoveReaction as ae, _useRoom as af, useStatus as ag, _useStorageRoot as ah, useThreadSubscription as ai, useUndo as aj, _useUpdateMyPresence as ak, useUpdateRoomSubscriptionSettings as al, useHistoryVersionData as am, _useOther as an, _useOthers as ao, useOthersConnectionIds as ap, _useOthersMapped as aq, _useSelf as ar, _useStorage as as, _useThreads as at, _useAgentSessions as au, _useAgentSession as av, _useSearchComments as aw, useAttachmentUrl as ax, _useHistoryVersions as ay, _useRoomSubscriptionSettings as az, useCreateRoomComment as b, useRoomInfoSuspense as b0, useGroupInfoSuspense as b1, useUnreadInboxNotificationsCountSuspense as b2, _useUserSuspense as b3, _useUserThreadsSuspense_experimental as b4, _useAiChatsSuspense as b5, _useAiChatMessagesSuspense as b6, _useAiChatSuspense as b7, _useUrlMetadataSuspense as b8, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
3
3
  import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
4
4
  import * as _liveblocks_core from '@liveblocks/core';
5
- import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, SearchCommentsResult, HistoryVersion, AiChat, UrlMetadata, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, DerivedSignal, DefaultMap, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DTM, DCM, TextEditorType, IYjsProvider, MentionData, DP, DS, DE } from '@liveblocks/core';
5
+ import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, SearchCommentsResult, AgentSession, AgentMessage, HistoryVersion, AiChat, UrlMetadata, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, DerivedSignal, DefaultMap, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DTM, DCM, TextEditorType, IYjsProvider, MentionData, DP, DS, DE } from '@liveblocks/core';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  /**
@@ -206,6 +206,26 @@ type UseInboxNotificationsOptions = {
206
206
  */
207
207
  query?: InboxNotificationsQuery;
208
208
  };
209
+ type UseAgentSessionsOptions = {
210
+ /**
211
+ * Optional timestamp filter. Only sessions created or updated after this timestamp will be returned.
212
+ */
213
+ since?: number;
214
+ /**
215
+ * Optional metadata filter. Only sessions with matching metadata will be returned.
216
+ */
217
+ metadata?: Record<string, string>;
218
+ };
219
+ type UseAgentSessionOptions = {
220
+ /**
221
+ * Optional cursor for pagination.
222
+ */
223
+ cursor?: string;
224
+ /**
225
+ * Optional limit for the number of messages to fetch.
226
+ */
227
+ limit?: number;
228
+ };
209
229
  type UserAsyncResult<T> = AsyncResult<T, "user">;
210
230
  type UserAsyncSuccess<T> = AsyncSuccess<T, "user">;
211
231
  type RoomInfoAsyncResult = AsyncResult<DRI, "info">;
@@ -268,6 +288,10 @@ type ThreadsAsyncResult<TM extends BaseMetadata, CM extends BaseMetadata> = Page
268
288
  type SearchCommentsAsyncResult = AsyncResult<Array<SearchCommentsResult>, "results">;
269
289
  type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
270
290
  type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
291
+ type AgentSessionsAsyncSuccess = PagedAsyncSuccess<AgentSession[], "sessions">;
292
+ type AgentSessionsAsyncResult = PagedAsyncResult<AgentSession[], "sessions">;
293
+ type AgentSessionAsyncSuccess = PagedAsyncSuccess<AgentMessage[], "messages">;
294
+ type AgentSessionAsyncResult = PagedAsyncResult<AgentMessage[], "messages">;
271
295
  type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
272
296
  type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
273
297
  type NotificationSettingsAsyncResult = AsyncResult<NotificationSettings, "settings">;
@@ -985,6 +1009,20 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
985
1009
  * const { threads, error, isLoading } = useThreads();
986
1010
  */
987
1011
  useThreads(options?: UseThreadsOptions<TM>): ThreadsAsyncResult<TM, CM>;
1012
+ /**
1013
+ * Returns agent sessions for the current room.
1014
+ *
1015
+ * @example
1016
+ * const { sessions, error, isLoading } = useAgentSessions();
1017
+ */
1018
+ useAgentSessions(options?: UseAgentSessionsOptions): AgentSessionsAsyncResult;
1019
+ /**
1020
+ * Returns agent messages for a specific session in the current room.
1021
+ *
1022
+ * @example
1023
+ * const { messages, error, isLoading } = useAgentSession("session-id");
1024
+ */
1025
+ useAgentSession(sessionId: string, options?: UseAgentSessionOptions): AgentSessionAsyncResult;
988
1026
  /**
989
1027
  * Returns the result of searching comments by text in the current room. The result includes the id and the plain text content of the matched comments along with the parent thread id of the comment.
990
1028
  *
@@ -1080,6 +1118,20 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
1080
1118
  * const { threads } = useThreads();
1081
1119
  */
1082
1120
  useThreads(options?: UseThreadsOptions<TM>): ThreadsAsyncSuccess<TM, CM>;
1121
+ /**
1122
+ * Returns agent sessions for the current room.
1123
+ *
1124
+ * @example
1125
+ * const { sessions } = useAgentSessions();
1126
+ */
1127
+ useAgentSessions(options?: UseAgentSessionsOptions): AgentSessionsAsyncSuccess;
1128
+ /**
1129
+ * Returns agent messages for a specific session in the current room.
1130
+ *
1131
+ * @example
1132
+ * const { messages } = useAgentSession("session-id");
1133
+ */
1134
+ useAgentSession(sessionId: string, options?: UseAgentSessionOptions): AgentSessionAsyncSuccess;
1083
1135
  /**
1084
1136
  * (Private beta) Returns a history of versions of the current room.
1085
1137
  *
@@ -1787,6 +1839,8 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
1787
1839
  readonly messagesByChatId: DefaultMap<string, DefaultMap<MessageId | null, LoadableResource<AiChatMessagesAsyncResult>>>;
1788
1840
  readonly aiChatById: DefaultMap<string, LoadableResource<AiChatAsyncResult>>;
1789
1841
  readonly urlMetadataByUrl: DefaultMap<string, LoadableResource<UrlMetadataAsyncResult>>;
1842
+ readonly loadingAgentSessions: DefaultMap<string, LoadableResource<AgentSessionsAsyncResult>>;
1843
+ readonly loadingAgentMessages: DefaultMap<string, LoadableResource<AgentSessionAsyncResult>>;
1790
1844
  };
1791
1845
  constructor(client: OpaqueClient);
1792
1846
  /**
@@ -1851,6 +1905,24 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
1851
1905
  */
1852
1906
  updateRoomSubscriptionSettings(roomId: string, optimisticId: string, settings: Readonly<RoomSubscriptionSettings$1>): void;
1853
1907
  fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
1908
+ /**
1909
+ * Registers a room instance for agent session fetching.
1910
+ * Called by RoomProvider when it mounts.
1911
+ */
1912
+ registerRoom(roomId: RoomId, room: OpaqueRoom): void;
1913
+ /**
1914
+ * Unregisters a room instance.
1915
+ * Called by RoomProvider when it unmounts.
1916
+ */
1917
+ unregisterRoom(roomId: RoomId): void;
1918
+ /**
1919
+ * Updates the agent sessions cache based on WebSocket events.
1920
+ */
1921
+ updateAgentSessions(roomId: RoomId, sessions: readonly AgentSession[], operation: "list" | "added" | "updated" | "deleted"): void;
1922
+ /**
1923
+ * Updates the agent messages cache based on WebSocket events.
1924
+ */
1925
+ updateAgentMessages(_roomId: RoomId, sessionId: string, messages: readonly AgentMessage[], operation: "list" | "added" | "updated" | "deleted"): void;
1854
1926
  fetchUnreadNotificationsCount(queryKey: InboxNotificationsQueryKey, signal: AbortSignal): Promise<void>;
1855
1927
  fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
1856
1928
  fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
@@ -2719,6 +2791,20 @@ declare const _useOthersMappedSuspense: TypedBundle["suspense"]["useOthersMapped
2719
2791
  * const { threads, error, isLoading } = useThreads();
2720
2792
  */
2721
2793
  declare const _useThreads: TypedBundle["useThreads"];
2794
+ /**
2795
+ * Returns agent sessions for the current room.
2796
+ *
2797
+ * @example
2798
+ * const { sessions, error, isLoading } = useAgentSessions();
2799
+ */
2800
+ declare const _useAgentSessions: TypedBundle["useAgentSessions"];
2801
+ /**
2802
+ * Returns agent messages for a specific session in the current room.
2803
+ *
2804
+ * @example
2805
+ * const { messages, error, isLoading } = useAgentSession("session-id");
2806
+ */
2807
+ declare const _useAgentSession: TypedBundle["useAgentSession"];
2722
2808
  /**
2723
2809
  * Returns the result of searching comments by text in the current room. The result includes the id and the plain text content of the matched comments along with the parent thread id of the comment.
2724
2810
  *
@@ -2990,4 +3076,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2990
3076
  */
2991
3077
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2992
3078
 
2993
- export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, _useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, _useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useGroupInfoSuspense as a$, _useEditCommentMetadata as a0, useMarkThreadAsResolved as a1, useMarkThreadAsUnresolved as a2, useSubscribeToThread as a3, useUnsubscribeFromThread as a4, _useEventListener as a5, useHistory as a6, _useIsInsideRoom as a7, useLostConnectionListener as a8, useMarkThreadAsRead as a9, useUpdateNotificationSettings as aA, useCreateAiChat as aB, useDeleteAiChat as aC, useSendAiMessage as aD, _useUserThreads_experimental as aE, useRoomInfo as aF, useGroupInfo as aG, useUnreadInboxNotificationsCount as aH, _useUser as aI, _useAiChat as aJ, _useAiChats as aK, _useAiChatMessages as aL, useAiChatStatus as aM, _useUrlMetadata as aN, _useOtherSuspense as aO, _useOthersSuspense as aP, useOthersConnectionIdsSuspense as aQ, _useOthersMappedSuspense as aR, _useSelfSuspense as aS, _useStorageSuspense as aT, _useThreadsSuspense as aU, useAttachmentUrlSuspense as aV, _useHistoryVersionsSuspense as aW, _useRoomSubscriptionSettingsSuspense as aX, useInboxNotificationsSuspense as aY, useNotificationSettingsSuspense as aZ, useRoomInfoSuspense as a_, _useMutation as aa, _useMyPresence as ab, _useOthersListener as ac, useRedo as ad, useRemoveReaction as ae, _useRoom as af, useStatus as ag, _useStorageRoot as ah, useThreadSubscription as ai, useUndo as aj, _useUpdateMyPresence as ak, useUpdateRoomSubscriptionSettings as al, useHistoryVersionData as am, _useOther as an, _useOthers as ao, useOthersConnectionIds as ap, _useOthersMapped as aq, _useSelf as ar, _useStorage as as, _useThreads as at, _useSearchComments as au, useAttachmentUrl as av, _useHistoryVersions as aw, _useRoomSubscriptionSettings as ax, useInboxNotifications as ay, useNotificationSettings as az, useCreateRoomComment as b, useUnreadInboxNotificationsCountSuspense as b0, _useUserSuspense as b1, _useUserThreadsSuspense_experimental as b2, _useAiChatsSuspense as b3, _useAiChatMessagesSuspense as b4, _useAiChatSuspense as b5, _useUrlMetadataSuspense as b6, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
3079
+ export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, _useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, _useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useNotificationSettingsSuspense as a$, _useEditCommentMetadata as a0, useMarkThreadAsResolved as a1, useMarkThreadAsUnresolved as a2, useSubscribeToThread as a3, useUnsubscribeFromThread as a4, _useEventListener as a5, useHistory as a6, _useIsInsideRoom as a7, useLostConnectionListener as a8, useMarkThreadAsRead as a9, useInboxNotifications as aA, useNotificationSettings as aB, useUpdateNotificationSettings as aC, useCreateAiChat as aD, useDeleteAiChat as aE, useSendAiMessage as aF, _useUserThreads_experimental as aG, useRoomInfo as aH, useGroupInfo as aI, useUnreadInboxNotificationsCount as aJ, _useUser as aK, _useAiChat as aL, _useAiChats as aM, _useAiChatMessages as aN, useAiChatStatus as aO, _useUrlMetadata as aP, _useOtherSuspense as aQ, _useOthersSuspense as aR, useOthersConnectionIdsSuspense as aS, _useOthersMappedSuspense as aT, _useSelfSuspense as aU, _useStorageSuspense as aV, _useThreadsSuspense as aW, useAttachmentUrlSuspense as aX, _useHistoryVersionsSuspense as aY, _useRoomSubscriptionSettingsSuspense as aZ, useInboxNotificationsSuspense as a_, _useMutation as aa, _useMyPresence as ab, _useOthersListener as ac, useRedo as ad, useRemoveReaction as ae, _useRoom as af, useStatus as ag, _useStorageRoot as ah, useThreadSubscription as ai, useUndo as aj, _useUpdateMyPresence as ak, useUpdateRoomSubscriptionSettings as al, useHistoryVersionData as am, _useOther as an, _useOthers as ao, useOthersConnectionIds as ap, _useOthersMapped as aq, _useSelf as ar, _useStorage as as, _useThreads as at, _useAgentSessions as au, _useAgentSession as av, _useSearchComments as aw, useAttachmentUrl as ax, _useHistoryVersions as ay, _useRoomSubscriptionSettings as az, useCreateRoomComment as b, useRoomInfoSuspense as b0, useGroupInfoSuspense as b1, useUnreadInboxNotificationsCountSuspense as b2, _useUserSuspense as b3, _useUserThreadsSuspense_experimental as b4, _useAiChatsSuspense as b5, _useAiChatMessagesSuspense as b6, _useAiChatSuspense as b7, _useUrlMetadataSuspense as b8, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
package/dist/suspense.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkC7F5PZXEcjs = require('./chunk-C7F5PZXE.cjs');
6
+ var _chunk73OAUQFMcjs = require('./chunk-73OAUQFM.cjs');
7
7
 
8
8
 
9
9
 
@@ -77,12 +77,12 @@ var _chunkC7F5PZXEcjs = require('./chunk-C7F5PZXE.cjs');
77
77
 
78
78
 
79
79
 
80
- var _chunkQFAOGFJKcjs = require('./chunk-QFAOGFJK.cjs');
80
+ var _chunkJXNC4PPGcjs = require('./chunk-JXNC4PPG.cjs');
81
81
 
82
82
  // src/suspense.ts
83
83
  var _core = require('@liveblocks/core');
84
84
  var _client = require('@liveblocks/client');
85
- _core.detectDupes.call(void 0, _chunkC7F5PZXEcjs.PKG_NAME, _chunkC7F5PZXEcjs.PKG_VERSION, _chunkC7F5PZXEcjs.PKG_FORMAT);
85
+ _core.detectDupes.call(void 0, _chunk73OAUQFMcjs.PKG_NAME, _chunk73OAUQFMcjs.PKG_VERSION, _chunk73OAUQFMcjs.PKG_FORMAT);
86
86
 
87
87
 
88
88
 
@@ -159,5 +159,5 @@ _core.detectDupes.call(void 0, _chunkC7F5PZXEcjs.PKG_NAME, _chunkC7F5PZXEcjs.PKG
159
159
 
160
160
 
161
161
 
162
- exports.ClientContext = _chunkQFAOGFJKcjs.ClientContext; exports.ClientSideSuspense = _chunkC7F5PZXEcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkQFAOGFJKcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkQFAOGFJKcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkQFAOGFJKcjs.RegisterAiTool; exports.RoomContext = _chunkQFAOGFJKcjs.RoomContext; exports.RoomProvider = _chunkQFAOGFJKcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkQFAOGFJKcjs._useAddReaction; exports.useAiChat = _chunkQFAOGFJKcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkQFAOGFJKcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkQFAOGFJKcjs.useAiChatStatus; exports.useAiChats = _chunkQFAOGFJKcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkQFAOGFJKcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkQFAOGFJKcjs._useBroadcastEvent; exports.useCanRedo = _chunkQFAOGFJKcjs.useCanRedo; exports.useCanUndo = _chunkQFAOGFJKcjs.useCanUndo; exports.useClient = _chunkQFAOGFJKcjs.useClient; exports.useCreateAiChat = _chunkQFAOGFJKcjs.useCreateAiChat; exports.useCreateComment = _chunkQFAOGFJKcjs._useCreateComment; exports.useCreateThread = _chunkQFAOGFJKcjs._useCreateThread; exports.useDeleteAiChat = _chunkQFAOGFJKcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkQFAOGFJKcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkQFAOGFJKcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkQFAOGFJKcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkQFAOGFJKcjs._useDeleteThread; exports.useEditComment = _chunkQFAOGFJKcjs._useEditComment; exports.useEditCommentMetadata = _chunkQFAOGFJKcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkQFAOGFJKcjs._useEditThreadMetadata; exports.useErrorListener = _chunkQFAOGFJKcjs.useErrorListener; exports.useEventListener = _chunkQFAOGFJKcjs._useEventListener; exports.useGroupInfo = _chunkQFAOGFJKcjs.useGroupInfoSuspense; exports.useHistory = _chunkQFAOGFJKcjs.useHistory; exports.useHistoryVersions = _chunkQFAOGFJKcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkQFAOGFJKcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkQFAOGFJKcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkQFAOGFJKcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkQFAOGFJKcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkQFAOGFJKcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkQFAOGFJKcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkQFAOGFJKcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkQFAOGFJKcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkQFAOGFJKcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkQFAOGFJKcjs._useMutation; exports.useMyPresence = _chunkQFAOGFJKcjs._useMyPresence; exports.useNotificationSettings = _chunkQFAOGFJKcjs.useNotificationSettingsSuspense; exports.useOther = _chunkQFAOGFJKcjs._useOtherSuspense; exports.useOthers = _chunkQFAOGFJKcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkQFAOGFJKcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkQFAOGFJKcjs._useOthersListener; exports.useOthersMapped = _chunkQFAOGFJKcjs._useOthersMappedSuspense; exports.useRedo = _chunkQFAOGFJKcjs.useRedo; exports.useRemoveReaction = _chunkQFAOGFJKcjs.useRemoveReaction; exports.useRoom = _chunkQFAOGFJKcjs._useRoom; exports.useRoomInfo = _chunkQFAOGFJKcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkQFAOGFJKcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkQFAOGFJKcjs._useSelfSuspense; exports.useSendAiMessage = _chunkQFAOGFJKcjs.useSendAiMessage; exports.useStatus = _chunkQFAOGFJKcjs.useStatus; exports.useStorage = _chunkQFAOGFJKcjs._useStorageSuspense; exports.useStorageRoot = _chunkQFAOGFJKcjs._useStorageRoot; exports.useSubscribeToThread = _chunkQFAOGFJKcjs.useSubscribeToThread; exports.useSyncStatus = _chunkQFAOGFJKcjs.useSyncStatus; exports.useThreadSubscription = _chunkQFAOGFJKcjs.useThreadSubscription; exports.useThreads = _chunkQFAOGFJKcjs._useThreadsSuspense; exports.useUndo = _chunkQFAOGFJKcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkQFAOGFJKcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkQFAOGFJKcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkQFAOGFJKcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkQFAOGFJKcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkQFAOGFJKcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkQFAOGFJKcjs._useUrlMetadataSuspense; exports.useUser = _chunkQFAOGFJKcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkQFAOGFJKcjs._useUserThreadsSuspense_experimental;
162
+ exports.ClientContext = _chunkJXNC4PPGcjs.ClientContext; exports.ClientSideSuspense = _chunk73OAUQFMcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkJXNC4PPGcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkJXNC4PPGcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkJXNC4PPGcjs.RegisterAiTool; exports.RoomContext = _chunkJXNC4PPGcjs.RoomContext; exports.RoomProvider = _chunkJXNC4PPGcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkJXNC4PPGcjs._useAddReaction; exports.useAiChat = _chunkJXNC4PPGcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkJXNC4PPGcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkJXNC4PPGcjs.useAiChatStatus; exports.useAiChats = _chunkJXNC4PPGcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkJXNC4PPGcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkJXNC4PPGcjs._useBroadcastEvent; exports.useCanRedo = _chunkJXNC4PPGcjs.useCanRedo; exports.useCanUndo = _chunkJXNC4PPGcjs.useCanUndo; exports.useClient = _chunkJXNC4PPGcjs.useClient; exports.useCreateAiChat = _chunkJXNC4PPGcjs.useCreateAiChat; exports.useCreateComment = _chunkJXNC4PPGcjs._useCreateComment; exports.useCreateThread = _chunkJXNC4PPGcjs._useCreateThread; exports.useDeleteAiChat = _chunkJXNC4PPGcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkJXNC4PPGcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkJXNC4PPGcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkJXNC4PPGcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkJXNC4PPGcjs._useDeleteThread; exports.useEditComment = _chunkJXNC4PPGcjs._useEditComment; exports.useEditCommentMetadata = _chunkJXNC4PPGcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkJXNC4PPGcjs._useEditThreadMetadata; exports.useErrorListener = _chunkJXNC4PPGcjs.useErrorListener; exports.useEventListener = _chunkJXNC4PPGcjs._useEventListener; exports.useGroupInfo = _chunkJXNC4PPGcjs.useGroupInfoSuspense; exports.useHistory = _chunkJXNC4PPGcjs.useHistory; exports.useHistoryVersions = _chunkJXNC4PPGcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkJXNC4PPGcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkJXNC4PPGcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkJXNC4PPGcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkJXNC4PPGcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkJXNC4PPGcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkJXNC4PPGcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkJXNC4PPGcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkJXNC4PPGcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkJXNC4PPGcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkJXNC4PPGcjs._useMutation; exports.useMyPresence = _chunkJXNC4PPGcjs._useMyPresence; exports.useNotificationSettings = _chunkJXNC4PPGcjs.useNotificationSettingsSuspense; exports.useOther = _chunkJXNC4PPGcjs._useOtherSuspense; exports.useOthers = _chunkJXNC4PPGcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkJXNC4PPGcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkJXNC4PPGcjs._useOthersListener; exports.useOthersMapped = _chunkJXNC4PPGcjs._useOthersMappedSuspense; exports.useRedo = _chunkJXNC4PPGcjs.useRedo; exports.useRemoveReaction = _chunkJXNC4PPGcjs.useRemoveReaction; exports.useRoom = _chunkJXNC4PPGcjs._useRoom; exports.useRoomInfo = _chunkJXNC4PPGcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkJXNC4PPGcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkJXNC4PPGcjs._useSelfSuspense; exports.useSendAiMessage = _chunkJXNC4PPGcjs.useSendAiMessage; exports.useStatus = _chunkJXNC4PPGcjs.useStatus; exports.useStorage = _chunkJXNC4PPGcjs._useStorageSuspense; exports.useStorageRoot = _chunkJXNC4PPGcjs._useStorageRoot; exports.useSubscribeToThread = _chunkJXNC4PPGcjs.useSubscribeToThread; exports.useSyncStatus = _chunkJXNC4PPGcjs.useSyncStatus; exports.useThreadSubscription = _chunkJXNC4PPGcjs.useThreadSubscription; exports.useThreads = _chunkJXNC4PPGcjs._useThreadsSuspense; exports.useUndo = _chunkJXNC4PPGcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkJXNC4PPGcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkJXNC4PPGcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkJXNC4PPGcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkJXNC4PPGcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkJXNC4PPGcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkJXNC4PPGcjs._useUrlMetadataSuspense; exports.useUser = _chunkJXNC4PPGcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkJXNC4PPGcjs._useUserThreadsSuspense_experimental;
163
163
  //# sourceMappingURL=suspense.cjs.map
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.cjs';
2
- export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b5 as useAiChat, b4 as useAiChatMessages, aM as useAiChatStatus, b3 as useAiChats, aV as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aB as useCreateAiChat, V as useCreateComment, W as useCreateThread, aC as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, a$ as useGroupInfo, a6 as useHistory, aW as useHistoryVersions, _ as useInboxNotificationThread, aY as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, aZ as useNotificationSettings, aO as useOther, aP as useOthers, aQ as useOthersConnectionIds, ac as useOthersListener, aR as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, a_ as useRoomInfo, aX as useRoomSubscriptionSettings, aS as useSelf, aD as useSendAiMessage, ag as useStatus, aT as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, aU as useThreads, aj as useUndo, b0 as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aA as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, b6 as useUrlMetadata, b1 as useUser, b2 as useUserThreads_experimental } from './room-CEMGQ1Mj.cjs';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b7 as useAiChat, b6 as useAiChatMessages, aO as useAiChatStatus, b5 as useAiChats, aX as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aD as useCreateAiChat, V as useCreateComment, W as useCreateThread, aE as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, b1 as useGroupInfo, a6 as useHistory, aY as useHistoryVersions, _ as useInboxNotificationThread, a_ as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, a$ as useNotificationSettings, aQ as useOther, aR as useOthers, aS as useOthersConnectionIds, ac as useOthersListener, aT as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, b0 as useRoomInfo, aZ as useRoomSubscriptionSettings, aU as useSelf, aF as useSendAiMessage, ag as useStatus, aV as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, aW as useThreads, aj as useUndo, b2 as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aC as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, b8 as useUrlMetadata, b3 as useUser, b4 as useUserThreads_experimental } from './room-CVCL9bCW.cjs';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.js';
2
- export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b5 as useAiChat, b4 as useAiChatMessages, aM as useAiChatStatus, b3 as useAiChats, aV as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aB as useCreateAiChat, V as useCreateComment, W as useCreateThread, aC as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, a$ as useGroupInfo, a6 as useHistory, aW as useHistoryVersions, _ as useInboxNotificationThread, aY as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, aZ as useNotificationSettings, aO as useOther, aP as useOthers, aQ as useOthersConnectionIds, ac as useOthersListener, aR as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, a_ as useRoomInfo, aX as useRoomSubscriptionSettings, aS as useSelf, aD as useSendAiMessage, ag as useStatus, aT as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, aU as useThreads, aj as useUndo, b0 as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aA as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, b6 as useUrlMetadata, b1 as useUser, b2 as useUserThreads_experimental } from './room-CEMGQ1Mj.js';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b7 as useAiChat, b6 as useAiChatMessages, aO as useAiChatStatus, b5 as useAiChats, aX as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aD as useCreateAiChat, V as useCreateComment, W as useCreateThread, aE as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, b1 as useGroupInfo, a6 as useHistory, aY as useHistoryVersions, _ as useInboxNotificationThread, a_ as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, a$ as useNotificationSettings, aQ as useOther, aR as useOthers, aS as useOthersConnectionIds, ac as useOthersListener, aT as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, b0 as useRoomInfo, aZ as useRoomSubscriptionSettings, aU as useSelf, aF as useSendAiMessage, ag as useStatus, aV as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, aW as useThreads, aj as useUndo, b2 as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aC as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, b8 as useUrlMetadata, b3 as useUser, b4 as useUserThreads_experimental } from './room-CVCL9bCW.js';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
package/dist/suspense.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-RTM66YNN.js";
6
+ } from "./chunk-A3DIFDDH.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -77,7 +77,7 @@ import {
77
77
  useUnsubscribeFromThread,
78
78
  useUpdateNotificationSettings,
79
79
  useUpdateRoomSubscriptionSettings
80
- } from "./chunk-ERRJHA6O.js";
80
+ } from "./chunk-VSUKKNOK.js";
81
81
 
82
82
  // src/suspense.ts
83
83
  import { detectDupes } from "@liveblocks/core";