@assistant-ui/react 0.5.19 → 0.5.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/dist/AssistantTypes-D93BmqD5.d.mts +160 -0
  2. package/dist/AssistantTypes-D93BmqD5.d.ts +160 -0
  3. package/dist/Thread-BbLf1cc4.d.mts +156 -0
  4. package/dist/Thread-jfAlPLli.d.ts +156 -0
  5. package/dist/chunk-2RKUKZSZ.mjs +761 -0
  6. package/dist/chunk-2RKUKZSZ.mjs.map +1 -0
  7. package/dist/chunk-BJPOCE4O.mjs +11 -0
  8. package/dist/chunk-BJPOCE4O.mjs.map +1 -0
  9. package/dist/chunk-QBS6JLLN.mjs +63 -0
  10. package/dist/chunk-QBS6JLLN.mjs.map +1 -0
  11. package/dist/chunk-V66MVXBH.mjs +608 -0
  12. package/dist/chunk-V66MVXBH.mjs.map +1 -0
  13. package/dist/edge.d.mts +5 -90
  14. package/dist/edge.d.ts +5 -90
  15. package/dist/edge.js +1 -0
  16. package/dist/edge.js.map +1 -1
  17. package/dist/edge.mjs +49 -799
  18. package/dist/edge.mjs.map +1 -1
  19. package/dist/index.d.mts +17 -293
  20. package/dist/index.d.ts +17 -293
  21. package/dist/index.js +341 -283
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.mjs +313 -1601
  24. package/dist/index.mjs.map +1 -1
  25. package/dist/internal.d.mts +9 -0
  26. package/dist/internal.d.ts +9 -0
  27. package/dist/internal.js +620 -0
  28. package/dist/internal.js.map +1 -0
  29. package/dist/internal.mjs +24 -0
  30. package/dist/internal.mjs.map +1 -0
  31. package/dist/styles/index.css +3 -3
  32. package/dist/styles/index.css.map +1 -1
  33. package/dist/styles/tailwindcss/thread.css +1 -1
  34. package/dist/tailwindcss/index.js +1 -0
  35. package/dist/tailwindcss/index.js.map +1 -1
  36. package/dist/tailwindcss/index.mjs +3 -0
  37. package/dist/tailwindcss/index.mjs.map +1 -1
  38. package/internal/README.md +1 -0
  39. package/internal/package.json +5 -0
  40. package/package.json +12 -1
package/dist/index.d.ts CHANGED
@@ -1,179 +1,22 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, ComponentType, PropsWithChildren, ComponentPropsWithoutRef, FC } from 'react';
3
- import { z } from 'zod';
4
- import { JSONSchema7 } from 'json-schema';
5
- import { LanguageModelV1LogProbs, LanguageModelV1Message, LanguageModelV1FunctionTool } from '@ai-sdk/provider';
2
+ import { ComponentType, PropsWithChildren, ComponentPropsWithoutRef, FC, ElementType, ReactNode } from 'react';
3
+ import { T as ThreadRuntime, U as Unsubscribe, A as AddToolResultOptions, B as BaseAssistantRuntime, R as ReactThreadRuntime, a as AssistantRuntime, b as ThreadState, c as ThreadActionsState, C as ContentPartState, d as TooltipIconButtonProps, e as ButtonProps } from './Thread-jfAlPLli.js';
4
+ export { i as INTERNAL } from './Thread-jfAlPLli.js';
5
+ import { T as ThreadAssistantContentPart, M as MessageStatus, a as ThreadRoundtrip, b as ThreadMessage, c as ModelConfig, d as TextContentPart, C as ContentPartStatus, I as ImageContentPart, U as UIContentPart, e as ToolCallContentPart, f as ToolCallContentPartStatus, g as CoreMessage, h as ModelConfigProvider, A as AppendMessage, i as Tool, j as CoreToolCallContentPart } from './AssistantTypes-D93BmqD5.js';
6
+ export { p as CoreAssistantContentPart, s as CoreAssistantMessage, q as CoreSystemMessage, o as CoreUserContentPart, r as CoreUserMessage, m as ThreadAssistantMessage, l as ThreadSystemMessage, k as ThreadUserContentPart, n as ThreadUserMessage } from './AssistantTypes-D93BmqD5.js';
6
7
  import { UseBoundStore, StoreApi } from 'zustand';
7
8
  import { Primitive } from '@radix-ui/react-primitive';
8
9
  import * as PopoverPrimitive from '@radix-ui/react-popover';
9
10
  import * as react_textarea_autosize from 'react-textarea-autosize';
10
11
  import { TextareaAutosizeProps } from 'react-textarea-autosize';
11
- import * as class_variance_authority from 'class-variance-authority';
12
- import { VariantProps } from 'class-variance-authority';
13
- import * as class_variance_authority_types from 'class-variance-authority/types';
14
-
15
- declare const LanguageModelV1CallSettingsSchema: z.ZodObject<{
16
- maxTokens: z.ZodOptional<z.ZodNumber>;
17
- temperature: z.ZodOptional<z.ZodNumber>;
18
- topP: z.ZodOptional<z.ZodNumber>;
19
- presencePenalty: z.ZodOptional<z.ZodNumber>;
20
- frequencyPenalty: z.ZodOptional<z.ZodNumber>;
21
- seed: z.ZodOptional<z.ZodNumber>;
22
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
23
- }, "strip", z.ZodTypeAny, {
24
- maxTokens?: number | undefined;
25
- temperature?: number | undefined;
26
- topP?: number | undefined;
27
- presencePenalty?: number | undefined;
28
- frequencyPenalty?: number | undefined;
29
- seed?: number | undefined;
30
- headers?: Record<string, string | undefined> | undefined;
31
- }, {
32
- maxTokens?: number | undefined;
33
- temperature?: number | undefined;
34
- topP?: number | undefined;
35
- presencePenalty?: number | undefined;
36
- frequencyPenalty?: number | undefined;
37
- seed?: number | undefined;
38
- headers?: Record<string, string | undefined> | undefined;
39
- }>;
40
- type LanguageModelV1CallSettings = z.infer<typeof LanguageModelV1CallSettingsSchema>;
41
- declare const LanguageModelConfigSchema: z.ZodObject<{
42
- apiKey: z.ZodOptional<z.ZodString>;
43
- baseUrl: z.ZodOptional<z.ZodString>;
44
- modelName: z.ZodOptional<z.ZodString>;
45
- }, "strip", z.ZodTypeAny, {
46
- apiKey?: string | undefined;
47
- baseUrl?: string | undefined;
48
- modelName?: string | undefined;
49
- }, {
50
- apiKey?: string | undefined;
51
- baseUrl?: string | undefined;
52
- modelName?: string | undefined;
53
- }>;
54
- type LanguageModelConfig = z.infer<typeof LanguageModelConfigSchema>;
55
- type ToolExecuteFunction<TArgs, TResult> = (args: TArgs) => TResult | Promise<TResult>;
56
- type Tool<TArgs extends Record<string, unknown> = Record<string | number, unknown>, TResult = unknown> = {
57
- description?: string | undefined;
58
- parameters: z.ZodSchema<TArgs> | JSONSchema7;
59
- execute?: ToolExecuteFunction<TArgs, TResult>;
60
- };
61
- type ModelConfig = {
62
- priority?: number | undefined;
63
- system?: string | undefined;
64
- tools?: Record<string, Tool<any, any>> | undefined;
65
- callSettings?: LanguageModelV1CallSettings | undefined;
66
- config?: LanguageModelConfig | undefined;
67
- };
68
- type ModelConfigProvider = {
69
- getModelConfig: () => ModelConfig;
70
- };
71
-
72
- type Unsubscribe = () => void;
73
-
74
- type TextContentPart = {
75
- type: "text";
76
- text: string;
77
- };
78
- type ImageContentPart = {
79
- type: "image";
80
- image: string;
81
- };
82
- type UIContentPart = {
83
- type: "ui";
84
- display: ReactNode;
85
- };
86
- type CoreToolCallContentPart<TArgs extends Record<string, unknown> = Record<string | number, unknown>, TResult = unknown> = {
87
- type: "tool-call";
88
- toolCallId: string;
89
- toolName: string;
90
- args: TArgs;
91
- result?: TResult | undefined;
92
- isError?: boolean | undefined;
93
- };
94
- type ToolCallContentPart<TArgs extends Record<string, unknown> = Record<string | number, unknown>, TResult = unknown> = CoreToolCallContentPart<TArgs, TResult> & {
95
- argsText: string;
96
- };
97
- type ThreadUserContentPart = TextContentPart | ImageContentPart | UIContentPart;
98
- type ThreadAssistantContentPart = TextContentPart | ToolCallContentPart | UIContentPart;
99
- type MessageCommonProps = {
100
- id: string;
101
- createdAt: Date;
102
- };
103
- type ThreadRoundtrip = {
104
- logprobs?: LanguageModelV1LogProbs | undefined;
105
- usage?: {
106
- promptTokens: number;
107
- completionTokens: number;
108
- } | undefined;
109
- };
110
- type ContentPartStatus = {
111
- type: "running";
112
- } | {
113
- type: "complete";
114
- } | {
115
- type: "incomplete";
116
- reason: "cancelled" | "length" | "content-filter" | "other" | "error";
117
- error?: unknown;
118
- };
119
- type ToolContentPartStatus = {
120
- type: "requires-action";
121
- reason: "tool-calls";
122
- } | ContentPartStatus;
123
- type MessageStatus = {
124
- type: "running";
125
- } | {
126
- type: "requires-action";
127
- reason: "tool-calls";
128
- } | {
129
- type: "complete";
130
- reason: "stop" | "unknown";
131
- } | {
132
- type: "incomplete";
133
- reason: "cancelled" | "tool-calls" | "length" | "content-filter" | "other" | "error";
134
- error?: unknown;
135
- };
136
- type ThreadSystemMessage = MessageCommonProps & {
137
- role: "system";
138
- content: [TextContentPart];
139
- };
140
- type ThreadUserMessage = MessageCommonProps & {
141
- role: "user";
142
- content: ThreadUserContentPart[];
143
- };
144
- type ThreadAssistantMessage = MessageCommonProps & {
145
- role: "assistant";
146
- content: ThreadAssistantContentPart[];
147
- status: MessageStatus;
148
- roundtrips?: ThreadRoundtrip[] | undefined;
149
- };
150
- type AppendMessage = CoreMessage & {
151
- parentId: string | null;
152
- };
153
- type ThreadMessage = ThreadSystemMessage | ThreadUserMessage | ThreadAssistantMessage;
154
- /** Core Message Types (without UI content parts) */
155
- type CoreUserContentPart = TextContentPart | ImageContentPart;
156
- type CoreAssistantContentPart = TextContentPart | CoreToolCallContentPart;
157
- type CoreSystemMessage = {
158
- role: "system";
159
- content: [TextContentPart];
160
- };
161
- type CoreUserMessage = {
162
- role: "user";
163
- content: CoreUserContentPart[];
164
- };
165
- type CoreAssistantMessage = {
166
- role: "assistant";
167
- content: CoreAssistantContentPart[];
168
- };
169
- type CoreMessage = CoreSystemMessage | CoreUserMessage | CoreAssistantMessage;
12
+ import { LanguageModelV1Message, LanguageModelV1FunctionTool } from '@ai-sdk/provider';
13
+ import { JSONSchema7 } from 'json-schema';
14
+ import { z } from 'zod';
15
+ import 'class-variance-authority';
16
+ import 'class-variance-authority/types';
170
17
 
171
18
  type ReadonlyStore<T> = UseBoundStore<Omit<StoreApi<T>, "setState" | "destroy">>;
172
19
 
173
- type ReactThreadRuntime = ThreadRuntime & {
174
- unstable_synchronizer?: ComponentType;
175
- };
176
-
177
20
  type ChatModelRunUpdate = {
178
21
  content: ThreadAssistantContentPart[];
179
22
  };
@@ -195,18 +38,6 @@ type ChatModelAdapter = {
195
38
  run: (options: ChatModelRunOptions) => Promise<ChatModelRunResult> | AsyncGenerator<ChatModelRunResult, void>;
196
39
  };
197
40
 
198
- declare abstract class BaseAssistantRuntime<TThreadRuntime extends ReactThreadRuntime> implements AssistantRuntime {
199
- private _thread;
200
- constructor(_thread: TThreadRuntime);
201
- get thread(): TThreadRuntime;
202
- set thread(thread: TThreadRuntime);
203
- abstract registerModelConfigProvider(provider: ModelConfigProvider): Unsubscribe;
204
- abstract switchToThread(threadId: string | null): void;
205
- private _subscriptions;
206
- subscribe(callback: () => void): Unsubscribe;
207
- private subscriptionHandler;
208
- }
209
-
210
41
  type TextContentPartProps = {
211
42
  part: TextContentPart;
212
43
  status: ContentPartStatus;
@@ -224,7 +55,7 @@ type UIContentPartProps = {
224
55
  type UIContentPartComponent = ComponentType<UIContentPartProps>;
225
56
  type ToolCallContentPartProps<TArgs extends Record<string, unknown> = any, TResult = unknown> = {
226
57
  part: ToolCallContentPart<TArgs, TResult>;
227
- status: ToolContentPartStatus;
58
+ status: ToolCallContentPartStatus;
228
59
  addResult: (result: any) => void;
229
60
  };
230
61
  type ToolCallContentPartComponent<TArgs extends Record<string, unknown> = any, TResult = any> = ComponentType<ToolCallContentPartProps<TArgs, TResult>>;
@@ -585,69 +416,6 @@ type ExternalStoreAdapterBase<T> = {
585
416
  };
586
417
  type ExternalStoreAdapter<T = ThreadMessage> = ExternalStoreAdapterBase<T> & (T extends ThreadMessage ? object : ExternalStoreMessageConverterAdapter<T>);
587
418
 
588
- declare class ProxyConfigProvider implements ModelConfigProvider {
589
- private _providers;
590
- getModelConfig(): ModelConfig;
591
- registerModelConfigProvider(provider: ModelConfigProvider): () => void;
592
- }
593
-
594
- declare class MessageRepository {
595
- private messages;
596
- private head;
597
- private root;
598
- private performOp;
599
- getMessages(): ThreadMessage[];
600
- addOrUpdateMessage(parentId: string | null, message: ThreadMessage): void;
601
- getMessage(messageId: string): {
602
- parentId: string | null;
603
- message: ThreadMessage;
604
- };
605
- appendOptimisticMessage(parentId: string | null, message: CoreMessage): string;
606
- deleteMessage(messageId: string, replacementId?: string | null | undefined): void;
607
- getBranches(messageId: string): string[];
608
- switchToBranch(messageId: string): void;
609
- resetHead(messageId: string | null): void;
610
- }
611
-
612
- declare const useSmooth: (text: string, smooth?: boolean) => string;
613
-
614
- declare const buttonVariants: (props?: ({
615
- variant?: "default" | "outline" | "ghost" | null | undefined;
616
- size?: "default" | "icon" | null | undefined;
617
- } & class_variance_authority_types.ClassProp) | undefined) => string;
618
- type ButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button> & VariantProps<typeof buttonVariants>;
619
-
620
- type TooltipIconButtonProps = ButtonProps & {
621
- tooltip: string;
622
- side?: "top" | "bottom" | "left" | "right";
623
- };
624
- declare const TooltipIconButton: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
625
- ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
626
- } & {
627
- asChild?: boolean;
628
- }, "ref"> & class_variance_authority.VariantProps<(props?: ({
629
- variant?: "default" | "outline" | "ghost" | null | undefined;
630
- size?: "default" | "icon" | null | undefined;
631
- } & class_variance_authority_types.ClassProp) | undefined) => string> & {
632
- tooltip: string;
633
- side?: "top" | "bottom" | "left" | "right";
634
- } & react.RefAttributes<HTMLButtonElement>>;
635
-
636
- declare const generateId: (size?: number) => string;
637
-
638
- type internal_BaseAssistantRuntime<TThreadRuntime extends ReactThreadRuntime> = BaseAssistantRuntime<TThreadRuntime>;
639
- declare const internal_BaseAssistantRuntime: typeof BaseAssistantRuntime;
640
- type internal_MessageRepository = MessageRepository;
641
- declare const internal_MessageRepository: typeof MessageRepository;
642
- type internal_ProxyConfigProvider = ProxyConfigProvider;
643
- declare const internal_ProxyConfigProvider: typeof ProxyConfigProvider;
644
- declare const internal_TooltipIconButton: typeof TooltipIconButton;
645
- declare const internal_generateId: typeof generateId;
646
- declare const internal_useSmooth: typeof useSmooth;
647
- declare namespace internal {
648
- export { internal_BaseAssistantRuntime as BaseAssistantRuntime, internal_MessageRepository as MessageRepository, internal_ProxyConfigProvider as ProxyConfigProvider, internal_TooltipIconButton as TooltipIconButton, internal_generateId as generateId, internal_useSmooth as useSmooth };
649
- }
650
-
651
419
  declare class ExternalStoreThreadRuntime implements ReactThreadRuntime {
652
420
  store: ExternalStoreAdapter<any>;
653
421
  private _subscriptions;
@@ -694,42 +462,6 @@ declare const getExternalStoreMessage: <T>(message: ThreadMessage) => T | undefi
694
462
 
695
463
  type ThreadRuntimeStore = ThreadRuntime;
696
464
 
697
- type AddToolResultOptions = {
698
- messageId: string;
699
- toolCallId: string;
700
- result: any;
701
- };
702
- type RuntimeCapabilities = {
703
- switchToBranch: boolean;
704
- edit: boolean;
705
- reload: boolean;
706
- cancel: boolean;
707
- copy: boolean;
708
- };
709
- type ThreadActionsState = Readonly<{
710
- capabilities: Readonly<RuntimeCapabilities>;
711
- getBranches: (messageId: string) => readonly string[];
712
- switchToBranch: (branchId: string) => void;
713
- append: (message: AppendMessage) => void;
714
- startRun: (parentId: string | null) => void;
715
- cancelRun: () => void;
716
- addToolResult: (options: AddToolResultOptions) => void;
717
- }>;
718
-
719
- type ThreadRuntime = Readonly<ThreadState & Omit<ThreadActionsState, "getRuntime"> & {
720
- messages: readonly ThreadMessage[];
721
- subscribe: (callback: () => void) => Unsubscribe;
722
- }>;
723
-
724
- type ThreadRuntimeWithSubscribe = {
725
- readonly thread: ThreadRuntime;
726
- subscribe: (callback: () => void) => Unsubscribe;
727
- };
728
- type AssistantRuntime = ThreadRuntimeWithSubscribe & {
729
- switchToThread: (threadId: string | null) => void;
730
- registerModelConfigProvider: (provider: ModelConfigProvider) => Unsubscribe;
731
- };
732
-
733
465
  type AssistantRuntimeProviderProps = {
734
466
  runtime: AssistantRuntime;
735
467
  };
@@ -764,11 +496,6 @@ declare function useAssistantContext(options: {
764
496
  optional: true;
765
497
  }): AssistantContextValue | null;
766
498
 
767
- type ThreadState = Readonly<{
768
- isRunning: boolean;
769
- isDisabled: boolean;
770
- }>;
771
-
772
499
  type ThreadViewportState = Readonly<{
773
500
  isAtBottom: boolean;
774
501
  scrollToBottom: () => void;
@@ -828,11 +555,6 @@ declare function useMessageContext(options: {
828
555
  optional: true;
829
556
  }): MessageContextValue | null;
830
557
 
831
- type ContentPartState = Readonly<{
832
- status: ToolContentPartStatus;
833
- part: TextContentPart | ImageContentPart | UIContentPart | ToolCallContentPart;
834
- }>;
835
-
836
558
  type ContentPartContextValue = {
837
559
  useContentPart: ReadonlyStore<ContentPartState>;
838
560
  };
@@ -1088,15 +810,17 @@ declare namespace index$3 {
1088
810
  }
1089
811
 
1090
812
  type PrimitiveSpanProps$1 = ComponentPropsWithoutRef<typeof Primitive.span>;
1091
- type ContentPartPrimitiveTextProps = Omit<PrimitiveSpanProps$1, "children"> & {
813
+ type ContentPartPrimitiveTextProps = Omit<PrimitiveSpanProps$1, "children" | "asChild"> & {
1092
814
  smooth?: boolean;
815
+ component?: ElementType;
1093
816
  };
1094
817
  declare const ContentPartPrimitiveText: react.ForwardRefExoticComponent<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
1095
818
  ref?: ((instance: HTMLSpanElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLSpanElement> | null | undefined;
1096
819
  } & {
1097
820
  asChild?: boolean;
1098
- }, "ref">, "children"> & {
821
+ }, "ref">, "children" | "asChild"> & {
1099
822
  smooth?: boolean;
823
+ component?: ElementType;
1100
824
  } & react.RefAttributes<HTMLSpanElement>>;
1101
825
 
1102
826
  type PrimitiveImageProps = ComponentPropsWithoutRef<typeof Primitive.img>;
@@ -1487,7 +1211,7 @@ declare const exports$1: {
1487
1211
  declare const _default: typeof ThreadWelcome & typeof exports$1;
1488
1212
 
1489
1213
  declare const exports: {
1490
- Text: FC<TextContentPartProps>;
1214
+ Text: FC;
1491
1215
  };
1492
1216
 
1493
- export { index$6 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type AddToolResultOptions, type AppendMessage, _default$9 as AssistantActionBar, type AssistantActionsState, type AssistantContextValue, _default$8 as AssistantMessage, type AssistantMessageConfig, type AssistantMessageContentProps, _default$7 as AssistantModal, index$5 as AssistantModalPrimitive, type AssistantModalPrimitiveContentProps, type AssistantModalPrimitiveRootProps, type AssistantModalPrimitiveTriggerProps, type AssistantModelConfigState, type AssistantRuntime, AssistantRuntimeProvider, type AssistantToolProps, type AssistantToolUIProps, type AssistantToolUIsState, _default$6 as BranchPicker, index$4 as BranchPickerPrimitive, type BranchPickerPrimitiveCountProps, type BranchPickerPrimitiveNextProps, type BranchPickerPrimitiveNumberProps, type BranchPickerPrimitivePreviousProps, type BranchPickerPrimitiveRootProps, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type ChatModelRunUpdate, _default$5 as Composer, type ComposerContextValue, type ComposerInputProps, index$3 as ComposerPrimitive, type ComposerPrimitiveCancelProps, type ComposerPrimitiveIfProps, type ComposerPrimitiveInputProps, type ComposerPrimitiveRootProps, type ComposerPrimitiveSendProps, type ComposerState, exports as ContentPart, type ContentPartContextValue, index$2 as ContentPartPrimitive, type ContentPartPrimitiveDisplayProps, type ContentPartPrimitiveImageProps, type ContentPartPrimitiveInProgressProps, type ContentPartPrimitiveTextProps, type ContentPartState, type CoreAssistantContentPart, type CoreAssistantMessage, type CoreMessage, type CoreSystemMessage, type CoreUserContentPart, type CoreUserMessage, EdgeChatAdapter, type EdgeRuntimeOptions, type EdgeRuntimeRequestOptions, _default$4 as EditComposer, type EditComposerState, type ExternalStoreAdapter, type ExternalStoreMessageConverter, ExternalStoreRuntime, internal as INTERNAL, type ImageContentPart, type ImageContentPartComponent, type ImageContentPartProps, type LocalRuntimeOptions, type MessageContextValue, index$1 as MessagePrimitive, type MessagePrimitiveContentProps, type MessagePrimitiveIfProps, type MessagePrimitiveInProgressProps, type MessagePrimitiveRootProps, type MessageState, type MessageStatus, type MessageUtilsState, type ModelConfig, type ModelConfigProvider, type ReactThreadRuntime, type StringsConfig, type SuggestionConfig, type TextContentPart, type TextContentPartComponent, type TextContentPartProps, _default$3 as Thread, type ThreadActionsState, type ThreadAssistantContentPart, type ThreadAssistantMessage, type ThreadConfig, ThreadConfigProvider, type ThreadConfigProviderProps, type ThreadContextValue, type ThreadMessage, type ThreadMessageLike, type ThreadMessagesState, index as ThreadPrimitive, type ThreadPrimitiveEmptyProps, type ThreadPrimitiveIfProps, type ThreadPrimitiveMessagesProps, type ThreadPrimitiveRootProps, type ThreadPrimitiveScrollToBottomProps, type ThreadPrimitiveSuggestionProps, type ThreadPrimitiveViewportProps, type ThreadRootProps, type ThreadRuntime, type ThreadState, type ThreadSystemMessage, type ThreadUserContentPart, type ThreadUserMessage, type ThreadViewportState, _default as ThreadWelcome, type ThreadWelcomeConfig, type ThreadWelcomeMessageProps, type ThreadWelcomeSuggestionProps, type Tool, type ToolCallContentPart, type ToolCallContentPartComponent, type ToolCallContentPartProps, type UIContentPart, type UIContentPartComponent, type UIContentPartProps, type Unsubscribe, type UseActionBarCopyProps, _default$1 as UserActionBar, _default$2 as UserMessage, type UserMessageConfig, type UserMessageContentProps, fromCoreMessage, fromCoreMessages, fromLanguageModelMessages, fromLanguageModelTools, getExternalStoreMessage, makeAssistantTool, makeAssistantToolUI, toCoreMessage, toCoreMessages, toLanguageModelMessages, toLanguageModelTools, useActionBarCopy, useActionBarEdit, useActionBarReload, useAppendMessage, useAssistantContext, useAssistantInstructions, useAssistantTool, useAssistantToolUI, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposerCancel, useComposerContext, useComposerIf, useComposerSend, useContentPartContext, useContentPartDisplay, useContentPartImage, useContentPartText, useEdgeRuntime, useExternalStoreRuntime, useLocalRuntime, useMessageContext, useMessageIf, useSwitchToNewThread, useThreadConfig, useThreadContext, useThreadEmpty, useThreadIf, useThreadScrollToBottom, useThreadSuggestion };
1217
+ export { index$6 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, AddToolResultOptions, AppendMessage, _default$9 as AssistantActionBar, type AssistantActionsState, type AssistantContextValue, _default$8 as AssistantMessage, type AssistantMessageConfig, type AssistantMessageContentProps, _default$7 as AssistantModal, index$5 as AssistantModalPrimitive, type AssistantModalPrimitiveContentProps, type AssistantModalPrimitiveRootProps, type AssistantModalPrimitiveTriggerProps, type AssistantModelConfigState, AssistantRuntime, AssistantRuntimeProvider, type AssistantToolProps, type AssistantToolUIProps, type AssistantToolUIsState, _default$6 as BranchPicker, index$4 as BranchPickerPrimitive, type BranchPickerPrimitiveCountProps, type BranchPickerPrimitiveNextProps, type BranchPickerPrimitiveNumberProps, type BranchPickerPrimitivePreviousProps, type BranchPickerPrimitiveRootProps, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type ChatModelRunUpdate, _default$5 as Composer, type ComposerContextValue, type ComposerInputProps, index$3 as ComposerPrimitive, type ComposerPrimitiveCancelProps, type ComposerPrimitiveIfProps, type ComposerPrimitiveInputProps, type ComposerPrimitiveRootProps, type ComposerPrimitiveSendProps, type ComposerState, exports as ContentPart, type ContentPartContextValue, index$2 as ContentPartPrimitive, type ContentPartPrimitiveDisplayProps, type ContentPartPrimitiveImageProps, type ContentPartPrimitiveInProgressProps, type ContentPartPrimitiveTextProps, ContentPartState, CoreMessage, EdgeChatAdapter, type EdgeRuntimeOptions, type EdgeRuntimeRequestOptions, _default$4 as EditComposer, type EditComposerState, type ExternalStoreAdapter, type ExternalStoreMessageConverter, ExternalStoreRuntime, ImageContentPart, type ImageContentPartComponent, type ImageContentPartProps, type LocalRuntimeOptions, type MessageContextValue, index$1 as MessagePrimitive, type MessagePrimitiveContentProps, type MessagePrimitiveIfProps, type MessagePrimitiveInProgressProps, type MessagePrimitiveRootProps, type MessageState, MessageStatus, type MessageUtilsState, ModelConfig, ModelConfigProvider, ReactThreadRuntime, type StringsConfig, type SuggestionConfig, TextContentPart, type TextContentPartComponent, type TextContentPartProps, _default$3 as Thread, ThreadActionsState, ThreadAssistantContentPart, type ThreadConfig, ThreadConfigProvider, type ThreadConfigProviderProps, type ThreadContextValue, ThreadMessage, type ThreadMessageLike, type ThreadMessagesState, index as ThreadPrimitive, type ThreadPrimitiveEmptyProps, type ThreadPrimitiveIfProps, type ThreadPrimitiveMessagesProps, type ThreadPrimitiveRootProps, type ThreadPrimitiveScrollToBottomProps, type ThreadPrimitiveSuggestionProps, type ThreadPrimitiveViewportProps, type ThreadRootProps, ThreadRuntime, ThreadState, type ThreadViewportState, _default as ThreadWelcome, type ThreadWelcomeConfig, type ThreadWelcomeMessageProps, type ThreadWelcomeSuggestionProps, Tool, ToolCallContentPart, type ToolCallContentPartComponent, type ToolCallContentPartProps, UIContentPart, type UIContentPartComponent, type UIContentPartProps, Unsubscribe, type UseActionBarCopyProps, _default$1 as UserActionBar, _default$2 as UserMessage, type UserMessageConfig, type UserMessageContentProps, fromCoreMessage, fromCoreMessages, fromLanguageModelMessages, fromLanguageModelTools, getExternalStoreMessage, makeAssistantTool, makeAssistantToolUI, toCoreMessage, toCoreMessages, toLanguageModelMessages, toLanguageModelTools, useActionBarCopy, useActionBarEdit, useActionBarReload, useAppendMessage, useAssistantContext, useAssistantInstructions, useAssistantTool, useAssistantToolUI, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposerCancel, useComposerContext, useComposerIf, useComposerSend, useContentPartContext, useContentPartDisplay, useContentPartImage, useContentPartText, useEdgeRuntime, useExternalStoreRuntime, useLocalRuntime, useMessageContext, useMessageIf, useSwitchToNewThread, useThreadConfig, useThreadContext, useThreadEmpty, useThreadIf, useThreadScrollToBottom, useThreadSuggestion };