ai 3.1.0-canary.4 → 3.1.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.
Files changed (69) hide show
  1. package/dist/index.d.mts +982 -24
  2. package/dist/index.d.ts +982 -24
  3. package/dist/index.js +1748 -175
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +1723 -174
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +11 -28
  8. package/prompts/dist/index.d.mts +13 -1
  9. package/prompts/dist/index.d.ts +13 -1
  10. package/prompts/dist/index.js +13 -0
  11. package/prompts/dist/index.js.map +1 -1
  12. package/prompts/dist/index.mjs +12 -0
  13. package/prompts/dist/index.mjs.map +1 -1
  14. package/react/dist/index.d.mts +23 -6
  15. package/react/dist/index.d.ts +27 -8
  16. package/react/dist/index.js +154 -141
  17. package/react/dist/index.js.map +1 -1
  18. package/react/dist/index.mjs +153 -141
  19. package/react/dist/index.mjs.map +1 -1
  20. package/react/dist/index.server.d.mts +4 -2
  21. package/react/dist/index.server.d.ts +4 -2
  22. package/react/dist/index.server.js.map +1 -1
  23. package/react/dist/index.server.mjs.map +1 -1
  24. package/rsc/dist/index.d.ts +385 -20
  25. package/rsc/dist/rsc-client.d.mts +1 -1
  26. package/rsc/dist/rsc-client.mjs +2 -0
  27. package/rsc/dist/rsc-client.mjs.map +1 -1
  28. package/rsc/dist/rsc-server.d.mts +367 -20
  29. package/rsc/dist/rsc-server.mjs +676 -35
  30. package/rsc/dist/rsc-server.mjs.map +1 -1
  31. package/rsc/dist/rsc-shared.d.mts +24 -9
  32. package/rsc/dist/rsc-shared.mjs +98 -4
  33. package/rsc/dist/rsc-shared.mjs.map +1 -1
  34. package/solid/dist/index.d.mts +7 -3
  35. package/solid/dist/index.d.ts +7 -3
  36. package/solid/dist/index.js +106 -107
  37. package/solid/dist/index.js.map +1 -1
  38. package/solid/dist/index.mjs +106 -107
  39. package/solid/dist/index.mjs.map +1 -1
  40. package/svelte/dist/index.d.mts +7 -3
  41. package/svelte/dist/index.d.ts +7 -3
  42. package/svelte/dist/index.js +109 -109
  43. package/svelte/dist/index.js.map +1 -1
  44. package/svelte/dist/index.mjs +109 -109
  45. package/svelte/dist/index.mjs.map +1 -1
  46. package/vue/dist/index.d.mts +7 -3
  47. package/vue/dist/index.d.ts +7 -3
  48. package/vue/dist/index.js +106 -107
  49. package/vue/dist/index.js.map +1 -1
  50. package/vue/dist/index.mjs +106 -107
  51. package/vue/dist/index.mjs.map +1 -1
  52. package/ai-model-specification/dist/index.d.mts +0 -665
  53. package/ai-model-specification/dist/index.d.ts +0 -665
  54. package/ai-model-specification/dist/index.js +0 -716
  55. package/ai-model-specification/dist/index.js.map +0 -1
  56. package/ai-model-specification/dist/index.mjs +0 -656
  57. package/ai-model-specification/dist/index.mjs.map +0 -1
  58. package/core/dist/index.d.mts +0 -626
  59. package/core/dist/index.d.ts +0 -626
  60. package/core/dist/index.js +0 -1918
  61. package/core/dist/index.js.map +0 -1
  62. package/core/dist/index.mjs +0 -1873
  63. package/core/dist/index.mjs.map +0 -1
  64. package/openai/dist/index.d.mts +0 -429
  65. package/openai/dist/index.d.ts +0 -429
  66. package/openai/dist/index.js +0 -1231
  67. package/openai/dist/index.js.map +0 -1
  68. package/openai/dist/index.mjs +0 -1195
  69. package/openai/dist/index.mjs.map +0 -1
@@ -2,8 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
3
  import OpenAI from 'openai';
4
4
  import { z } from 'zod';
5
-
6
- declare const STREAMABLE_VALUE_TYPE: unique symbol;
5
+ import { LanguageModelV1 } from '@ai-sdk/provider';
7
6
 
8
7
  type AIAction<T = any, R = any> = (...args: T[]) => Promise<R>;
9
8
  type AIActions<T = any, R = any> = Record<string, AIAction<T, R>>;
@@ -30,12 +29,11 @@ type MutableAIState<AIState> = {
30
29
  update: (newState: ValueOrUpdater<AIState>) => void;
31
30
  done: ((newState: AIState) => void) | (() => void);
32
31
  };
33
- type StreamableValue<T = any, E = any> = {
34
- type?: typeof STREAMABLE_VALUE_TYPE;
35
- curr?: T;
36
- error?: E;
37
- next?: Promise<StreamableValue<T, E>>;
38
- };
32
+ /**
33
+ * StreamableValue is a value that can be streamed over the network via AI Actions.
34
+ * To read the streamed values, use the `readStreamableValue` or `useStreamableValue` APIs.
35
+ */
36
+ type StreamableValue<T = any, E = any> = {};
39
37
 
40
38
  /**
41
39
  * Get the current AI state.
@@ -73,28 +71,102 @@ declare function getMutableAIState<AI extends AIProvider = any>(key: keyof Infer
73
71
  * On the client side, it can be rendered as a normal React node.
74
72
  */
75
73
  declare function createStreamableUI(initialValue?: React.ReactNode): {
74
+ /**
75
+ * The value of the streamable UI. This can be returned from a Server Action and received by the client.
76
+ */
76
77
  value: react_jsx_runtime.JSX.Element;
78
+ /**
79
+ * This method updates the current UI node. It takes a new UI node and replaces the old one.
80
+ */
77
81
  update(value: React.ReactNode): void;
82
+ /**
83
+ * This method is used to append a new UI node to the end of the old one.
84
+ * Once appended a new UI node, the previous UI node cannot be updated anymore.
85
+ *
86
+ * @example
87
+ * ```jsx
88
+ * const ui = createStreamableUI(<div>hello</div>)
89
+ * ui.append(<div>world</div>)
90
+ *
91
+ * // The UI node will be:
92
+ * // <>
93
+ * // <div>hello</div>
94
+ * // <div>world</div>
95
+ * // </>
96
+ * ```
97
+ */
78
98
  append(value: React.ReactNode): void;
99
+ /**
100
+ * This method is used to signal that there is an error in the UI stream.
101
+ * It will be thrown on the client side and caught by the nearest error boundary component.
102
+ */
79
103
  error(error: any): void;
104
+ /**
105
+ * This method marks the UI node as finalized. You can either call it without any parameters or with a new UI node as the final state.
106
+ * Once called, the UI node cannot be updated or appended anymore.
107
+ *
108
+ * This method is always **required** to be called, otherwise the response will be stuck in a loading state.
109
+ */
80
110
  done(...args: [] | [React.ReactNode]): void;
81
111
  };
112
+ declare const STREAMABLE_VALUE_INTERNAL_LOCK: unique symbol;
82
113
  /**
83
114
  * Create a wrapped, changable value that can be streamed to the client.
84
115
  * On the client side, the value can be accessed via the readStreamableValue() API.
85
116
  */
86
- declare function createStreamableValue<T = any, E = any>(initialValue?: T): {
117
+ declare function createStreamableValue<T = any, E = any>(initialValue?: T | ReadableStream<T>): {
118
+ /**
119
+ * @internal This is an internal lock to prevent the value from being
120
+ * updated by the user.
121
+ */
122
+ [STREAMABLE_VALUE_INTERNAL_LOCK]: boolean;
123
+ /**
124
+ * The value of the streamable. This can be returned from a Server Action and
125
+ * received by the client. To read the streamed values, use the
126
+ * `readStreamableValue` or `useStreamableValue` APIs.
127
+ */
87
128
  readonly value: StreamableValue<T, E>;
129
+ /**
130
+ * This method updates the current value with a new one.
131
+ */
88
132
  update(value: T): void;
133
+ /**
134
+ * This method is used to append a delta string to the current value. It
135
+ * requires the current value of the streamable to be a string.
136
+ *
137
+ * @example
138
+ * ```jsx
139
+ * const streamable = createStreamableValue('hello');
140
+ * streamable.append(' world');
141
+ *
142
+ * // The value will be 'hello world'
143
+ * ```
144
+ */
145
+ append(value: T): void;
146
+ /**
147
+ * This method is used to signal that there is an error in the value stream.
148
+ * It will be thrown on the client side when consumed via
149
+ * `readStreamableValue` or `useStreamableValue`.
150
+ */
89
151
  error(error: any): void;
90
- done(...args: [
91
- ] | [T]): void;
152
+ /**
153
+ * This method marks the value as finalized. You can either call it without
154
+ * any parameters or with a new value as the final state.
155
+ * Once called, the value cannot be updated or appended anymore.
156
+ *
157
+ * This method is always **required** to be called, otherwise the response
158
+ * will be stuck in a loading state.
159
+ */
160
+ done(...args: [] | [T]): void;
92
161
  };
93
- type Streamable = ReactNode | Promise<ReactNode>;
94
- type Renderer<T> = (props: T) => Streamable | Generator<Streamable, Streamable, void> | AsyncGenerator<Streamable, Streamable, void>;
162
+
163
+ type Streamable$1 = ReactNode | Promise<ReactNode>;
164
+ type Renderer$1<T> = (props: T) => Streamable$1 | Generator<Streamable$1, Streamable$1, void> | AsyncGenerator<Streamable$1, Streamable$1, void>;
95
165
  /**
96
166
  * `render` is a helper function to create a streamable UI from some LLMs.
97
167
  * Currently, it only supports OpenAI's GPT models with Function Calling and Assistants Tools.
168
+ *
169
+ * @deprecated It's recommended to use the `experimental_streamUI` API for compatibility with the new core APIs.
98
170
  */
99
171
  declare function render<TS extends {
100
172
  [name: string]: z.Schema;
@@ -114,7 +186,7 @@ declare function render<TS extends {
114
186
  */
115
187
  provider: OpenAI;
116
188
  messages: Parameters<typeof OpenAI.prototype.chat.completions.create>[0]['messages'];
117
- text?: Renderer<{
189
+ text?: Renderer$1<{
118
190
  /**
119
191
  * The full text content from the model so far.
120
192
  */
@@ -133,26 +205,301 @@ declare function render<TS extends {
133
205
  [name in keyof TS]: {
134
206
  description?: string;
135
207
  parameters: TS[name];
136
- render: Renderer<z.infer<TS[name]>>;
208
+ render: Renderer$1<z.infer<TS[name]>>;
137
209
  };
138
210
  };
139
211
  functions?: {
140
212
  [name in keyof FS]: {
141
213
  description?: string;
142
214
  parameters: FS[name];
143
- render: Renderer<z.infer<FS[name]>>;
215
+ render: Renderer$1<z.infer<FS[name]>>;
144
216
  };
145
217
  };
146
218
  initial?: ReactNode;
147
219
  temperature?: number;
148
220
  }): ReactNode;
149
221
 
150
- declare function createAI<AIState = any, UIState = any, Actions extends AIActions = {}>({ actions, initialAIState, initialUIState, unstable_onSetAIState: onSetAIState, unstable_onGetUIState: onGetUIState, }: {
222
+ type CallSettings = {
223
+ /**
224
+ Maximum number of tokens to generate.
225
+ */
226
+ maxTokens?: number;
227
+ /**
228
+ Temperature setting. This is a number between 0 (almost no randomness) and
229
+ 1 (very random).
230
+
231
+ It is recommended to set either `temperature` or `topP`, but not both.
232
+
233
+ @default 0
234
+ */
235
+ temperature?: number;
236
+ /**
237
+ Nucleus sampling. This is a number between 0 and 1.
238
+
239
+ E.g. 0.1 would mean that only tokens with the top 10% probability mass
240
+ are considered.
241
+
242
+ It is recommended to set either `temperature` or `topP`, but not both.
243
+ */
244
+ topP?: number;
245
+ /**
246
+ Presence penalty setting. It affects the likelihood of the model to
247
+ repeat information that is already in the prompt.
248
+
249
+ The presence penalty is a number between -1 (increase repetition)
250
+ and 1 (maximum penalty, decrease repetition). 0 means no penalty.
251
+
252
+ @default 0
253
+ */
254
+ presencePenalty?: number;
255
+ /**
256
+ Frequency penalty setting. It affects the likelihood of the model
257
+ to repeatedly use the same words or phrases.
258
+
259
+ The frequency penalty is a number between -1 (increase repetition)
260
+ and 1 (maximum penalty, decrease repetition). 0 means no penalty.
261
+
262
+ @default 0
263
+ */
264
+ frequencyPenalty?: number;
265
+ /**
266
+ The seed (integer) to use for random sampling. If set and supported
267
+ by the model, calls will generate deterministic results.
268
+ */
269
+ seed?: number;
270
+ /**
271
+ Maximum number of retries. Set to 0 to disable retries.
272
+
273
+ @default 2
274
+ */
275
+ maxRetries?: number;
276
+ /**
277
+ Abort signal.
278
+ */
279
+ abortSignal?: AbortSignal;
280
+ };
281
+
282
+ /**
283
+ Data content. Can either be a base64-encoded string, a Uint8Array, an ArrayBuffer, or a Buffer.
284
+ */
285
+ type DataContent = string | Uint8Array | ArrayBuffer | Buffer;
286
+
287
+ /**
288
+ Text content part of a prompt. It contains a string of text.
289
+ */
290
+ interface TextPart {
291
+ type: 'text';
292
+ /**
293
+ The text content.
294
+ */
295
+ text: string;
296
+ }
297
+ /**
298
+ Image content part of a prompt. It contains an image.
299
+ */
300
+ interface ImagePart {
301
+ type: 'image';
302
+ /**
303
+ Image data. Can either be:
304
+
305
+ - data: a base64-encoded string, a Uint8Array, an ArrayBuffer, or a Buffer
306
+ - URL: a URL that points to the image
307
+ */
308
+ image: DataContent | URL;
309
+ /**
310
+ Optional mime type of the image.
311
+ */
312
+ mimeType?: string;
313
+ }
314
+ /**
315
+ Tool call content part of a prompt. It contains a tool call (usually generated by the AI model).
316
+ */
317
+ interface ToolCallPart {
318
+ type: 'tool-call';
319
+ /**
320
+ ID of the tool call. This ID is used to match the tool call with the tool result.
321
+ */
322
+ toolCallId: string;
323
+ /**
324
+ Name of the tool that is being called.
325
+ */
326
+ toolName: string;
327
+ /**
328
+ Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema.
329
+ */
330
+ args: unknown;
331
+ }
332
+ /**
333
+ Tool result content part of a prompt. It contains the result of the tool call with the matching ID.
334
+ */
335
+ interface ToolResultPart {
336
+ type: 'tool-result';
337
+ /**
338
+ ID of the tool call that this result is associated with.
339
+ */
340
+ toolCallId: string;
341
+ /**
342
+ Name of the tool that generated this result.
343
+ */
344
+ toolName: string;
345
+ /**
346
+ Result of the tool call. This is a JSON-serializable object.
347
+ */
348
+ result: unknown;
349
+ /**
350
+ Optional flag if the result is an error or an error message.
351
+ */
352
+ isError?: boolean;
353
+ }
354
+
355
+ /**
356
+ A message that can be used in the `messages` field of a prompt.
357
+ It can be a user message, an assistant message, or a tool message.
358
+ */
359
+ type CoreMessage = CoreUserMessage | CoreAssistantMessage | CoreToolMessage;
360
+ /**
361
+ A user message. It can contain text or a combination of text and images.
362
+ */
363
+ type CoreUserMessage = {
364
+ role: 'user';
365
+ content: UserContent;
366
+ };
367
+ /**
368
+ Content of a user message. It can be a string or an array of text and image parts.
369
+ */
370
+ type UserContent = string | Array<TextPart | ImagePart>;
371
+ /**
372
+ An assistant message. It can contain text, tool calls, or a combination of text and tool calls.
373
+ */
374
+ type CoreAssistantMessage = {
375
+ role: 'assistant';
376
+ content: AssistantContent;
377
+ };
378
+ /**
379
+ Content of an assistant message. It can be a string or an array of text and tool call parts.
380
+ */
381
+ type AssistantContent = string | Array<TextPart | ToolCallPart>;
382
+ /**
383
+ A tool message. It contains the result of one or more tool calls.
384
+ */
385
+ type CoreToolMessage = {
386
+ role: 'tool';
387
+ content: ToolContent;
388
+ };
389
+ /**
390
+ Content of a tool message. It is an array of tool result parts.
391
+ */
392
+ type ToolContent = Array<ToolResultPart>;
393
+
394
+ /**
395
+ Prompt part of the AI function options. It contains a system message, a simple text prompt, or a list of messages.
396
+ */
397
+ type Prompt = {
398
+ /**
399
+ System message to include in the prompt. Can be used with `prompt` or `messages`.
400
+ */
401
+ system?: string;
402
+ /**
403
+ A simple text prompt. You can either use `prompt` or `messages` but not both.
404
+ */
405
+ prompt?: string;
406
+ /**
407
+ A list of messsages. You can either use `prompt` or `messages` but not both.
408
+ */
409
+ messages?: Array<CoreMessage>;
410
+ };
411
+
412
+ type Streamable = ReactNode | Promise<ReactNode>;
413
+ type Renderer<T extends Array<any>> = (...args: T) => Streamable | Generator<Streamable, Streamable, void> | AsyncGenerator<Streamable, Streamable, void>;
414
+ type RenderTool<PARAMETERS extends z.ZodTypeAny = any> = {
415
+ description?: string;
416
+ parameters: PARAMETERS;
417
+ generate?: Renderer<[
418
+ z.infer<PARAMETERS>,
419
+ {
420
+ toolName: string;
421
+ toolCallId: string;
422
+ }
423
+ ]>;
424
+ };
425
+ type RenderText = Renderer<[
426
+ {
427
+ /**
428
+ * The full text content from the model so far.
429
+ */
430
+ content: string;
431
+ /**
432
+ * The new appended text content from the model since the last `text` call.
433
+ */
434
+ delta: string;
435
+ /**
436
+ * Whether the model is done generating text.
437
+ * If `true`, the `content` will be the final output and this call will be the last.
438
+ */
439
+ done: boolean;
440
+ }
441
+ ]>;
442
+ type RenderResult = {
443
+ value: ReactNode;
444
+ } & Awaited<ReturnType<LanguageModelV1['doStream']>>;
445
+ /**
446
+ * `experimental_streamUI` is a helper function to create a streamable UI from LLMs.
447
+ */
448
+ declare function experimental_streamUI<TOOLS extends {
449
+ [name: string]: z.ZodTypeAny;
450
+ } = {}>({ model, tools, system, prompt, messages, maxRetries, abortSignal, initial, text, ...settings }: CallSettings & Prompt & {
451
+ /**
452
+ * The language model to use.
453
+ */
454
+ model: LanguageModelV1;
455
+ /**
456
+ * The tools that the model can call. The model needs to support calling tools.
457
+ */
458
+ tools?: {
459
+ [name in keyof TOOLS]: RenderTool<TOOLS[name]>;
460
+ };
461
+ text?: RenderText;
462
+ initial?: ReactNode;
463
+ }): Promise<RenderResult>;
464
+
465
+ declare function createAI<AIState = any, UIState = any, Actions extends AIActions = {}>({ actions, initialAIState, initialUIState, onSetAIState, onGetUIState, }: {
151
466
  actions: Actions;
152
467
  initialAIState?: AIState;
153
468
  initialUIState?: UIState;
154
- unstable_onSetAIState?: OnSetAIState<AIState>;
155
- unstable_onGetUIState?: OnGetUIState<UIState>;
469
+ /**
470
+ * This function is called whenever the AI state is updated by an Action.
471
+ * You can use this to persist the AI state to a database, or to send it to a
472
+ * logging service.
473
+ */
474
+ onSetAIState?: OnSetAIState<AIState>;
475
+ /**
476
+ * This function is used to retrieve the UI state based on the AI state.
477
+ * For example, to render the initial UI state based on a given AI state, or
478
+ * to sync the UI state when the application is already loaded.
479
+ *
480
+ * If returning `undefined`, the client side UI state will not be updated.
481
+ *
482
+ * This function must be annotated with the `"use server"` directive.
483
+ *
484
+ * @example
485
+ * ```tsx
486
+ * onGetUIState: async () => {
487
+ * 'use server';
488
+ *
489
+ * const currentAIState = getAIState();
490
+ * const externalAIState = await loadAIStateFromDatabase();
491
+ *
492
+ * if (currentAIState === externalAIState) return undefined;
493
+ *
494
+ * // Update current AI state and return the new UI state
495
+ * const state = getMutableAIState()
496
+ * state.done(externalAIState)
497
+ *
498
+ * return <div>...</div>;
499
+ * }
500
+ * ```
501
+ */
502
+ onGetUIState?: OnGetUIState<UIState>;
156
503
  }): AIProvider<AIState, UIState, Actions>;
157
504
 
158
505
  /**
@@ -186,6 +533,24 @@ declare function createAI<AIState = any, UIState = any, Actions extends AIAction
186
533
  * This logs out 1, 2, 3 on console.
187
534
  */
188
535
  declare function readStreamableValue<T = unknown>(streamableValue: StreamableValue<T>): AsyncIterable<T | undefined>;
536
+ /**
537
+ * `useStreamableValue` is a React hook that takes a streamable value created via the `createStreamableValue().value` API,
538
+ * and returns the current value, error, and pending state.
539
+ *
540
+ * This is useful for consuming streamable values received from a component's props. For example:
541
+ *
542
+ * ```js
543
+ * function MyComponent({ streamableValue }) {
544
+ * const [data, error, pending] = useStreamableValue(streamableValue);
545
+ *
546
+ * if (pending) return <div>Loading...</div>;
547
+ * if (error) return <div>Error: {error.message}</div>;
548
+ *
549
+ * return <div>Data: {data}</div>;
550
+ * }
551
+ * ```
552
+ */
553
+ declare function useStreamableValue<T = unknown, Error = unknown>(streamableValue?: StreamableValue<T>): [data: T | undefined, error: Error | undefined, pending: boolean];
189
554
 
190
555
  declare function useUIState<AI extends AIProvider = any>(): [InferUIState<AI, any>, (v: InferUIState<AI, any> | ((v_: InferUIState<AI, any>) => InferUIState<AI, any>)) => void];
191
556
  declare function useAIState<AI extends AIProvider = any>(): [
@@ -199,4 +564,4 @@ declare function useAIState<AI extends AIProvider = any>(key: keyof InferAIState
199
564
  declare function useActions<AI extends AIProvider = any>(): InferActions<AI, any>;
200
565
  declare function useSyncUIState(): () => Promise<void>;
201
566
 
202
- export { StreamableValue, createAI, createStreamableUI, createStreamableValue, getAIState, getMutableAIState, readStreamableValue, render, useAIState, useActions, useSyncUIState, useUIState };
567
+ export { StreamableValue, createAI, createStreamableUI, createStreamableValue, experimental_streamUI, getAIState, getMutableAIState, readStreamableValue, render, useAIState, useActions, useStreamableValue, useSyncUIState, useUIState };
@@ -1 +1 @@
1
- export { readStreamableValue, useAIState, useActions, useSyncUIState, useUIState } from './rsc-shared.mjs';
1
+ export { readStreamableValue, useAIState, useActions, useStreamableValue, useSyncUIState, useUIState } from './rsc-shared.mjs';
@@ -1,6 +1,7 @@
1
1
  // rsc/rsc-client.ts
2
2
  import {
3
3
  readStreamableValue,
4
+ useStreamableValue,
4
5
  useUIState,
5
6
  useAIState,
6
7
  useActions,
@@ -10,6 +11,7 @@ export {
10
11
  readStreamableValue,
11
12
  useAIState,
12
13
  useActions,
14
+ useStreamableValue,
13
15
  useSyncUIState,
14
16
  useUIState
15
17
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../rsc-client.ts"],"sourcesContent":["export {\n readStreamableValue,\n useUIState,\n useAIState,\n useActions,\n useSyncUIState,\n} from './rsc-shared.mjs';\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
1
+ {"version":3,"sources":["../rsc-client.ts"],"sourcesContent":["export {\n readStreamableValue,\n useStreamableValue,\n useUIState,\n useAIState,\n useActions,\n useSyncUIState,\n} from './rsc-shared.mjs';\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}