@8wave/ai-elements 0.121.0-beta.47 → 0.121.0-beta.48

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.
@@ -1,3 +1,4 @@
1
+ import { ChatStatus } from 'ai';
1
2
  import { UIChatMessage } from '../../../models/src';
2
3
  import { ChatbotApiClient } from '../../../composable/src';
3
4
  /**
@@ -5,7 +6,9 @@ import { ChatbotApiClient } from '../../../composable/src';
5
6
  * nothing pushes to the page, so it reads the pending wakeup, sleeps until its
6
7
  * time and then reloads the conversation until the wakeup's turn is in it,
7
8
  * which the seed carrying its id proves (the seed and the answer are written
8
- * together). Then it reads the next one, if the turn scheduled it.
9
+ * together). Then it reads the next one, if the turn scheduled it. The
10
+ * pending one is read when the chat changes and after every turn of the
11
+ * user, which may have scheduled it.
9
12
  *
10
13
  * While a wakeup waits, the page also tells the server it is in front of the
11
14
  * user (Fase 1.2): every 30 seconds while the tab is visible, and at once
@@ -18,6 +21,7 @@ export declare function useWakeupWatch(options: {
18
21
  apiClient: () => ChatbotApiClient;
19
22
  messages: () => UIChatMessage[];
20
23
  refreshMessages: () => Promise<unknown>;
24
+ status: () => ChatStatus;
21
25
  }): {
22
26
  pendingWakeup: globalThis.Ref<{
23
27
  wakeId: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8wave/ai-elements",
3
3
  "private": false,
4
- "version": "0.121.0-beta.47",
4
+ "version": "0.121.0-beta.48",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite --port 8082 --open --host",