@deepagents/react-genai 7.0.2 → 7.1.1

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 (71) hide show
  1. package/dist/index.js +833 -836
  2. package/dist/index.js.map +1 -1
  3. package/dist/lib/chat/agent-context.d.ts +6 -6
  4. package/dist/lib/chat/chat-manager.d.ts +4 -4
  5. package/dist/lib/chat/chat.d.ts +3 -3
  6. package/dist/lib/chat/citations.d.ts +1 -1
  7. package/dist/lib/chat/client-tool-output.d.ts +3 -3
  8. package/dist/lib/chat/markdown-paragraph.d.ts +1 -1
  9. package/dist/lib/chat/message-parts.d.ts +2 -2
  10. package/dist/lib/chat/read-only-transport.d.ts +1 -1
  11. package/dist/lib/chat/tool-abort.d.ts +1 -1
  12. package/dist/lib/chat/tools-schema.d.ts +1 -1
  13. package/dist/lib/chat/trajectory/IndexProgressSegment.d.ts +2 -2
  14. package/dist/lib/chat/trajectory/messages-context.d.ts +4 -4
  15. package/dist/lib/chat/trajectory/nested-trajectory.d.ts +1 -1
  16. package/dist/lib/chat/trajectory/segments/index.d.ts +6 -6
  17. package/dist/lib/chat/trajectory/tool-label.d.ts +3 -3
  18. package/dist/lib/chat/trajectory/trajectories/collapsible-disclosure.d.ts +1 -1
  19. package/dist/lib/chat/trajectory/trajectories/compact-messages.d.ts +5 -5
  20. package/dist/lib/chat/trajectory/trajectories/message-actions.d.ts +1 -1
  21. package/dist/lib/chat/trajectory/trajectories/messages-shell.d.ts +2 -2
  22. package/dist/lib/chat/trajectory/trajectories/messages.d.ts +2 -2
  23. package/dist/lib/chat/trajectory/trajectories/thinking-hint.d.ts +1 -1
  24. package/dist/lib/chat/trajectory/trajectories/thinking-hint.d.ts.map +1 -1
  25. package/dist/lib/chat/trajectory/trajectories/timeline-item.d.ts +1 -1
  26. package/dist/lib/chat/trajectory/trajectories/timeline.d.ts +3 -3
  27. package/dist/lib/chat/trajectory/trajectories/timelined-messages.d.ts +2 -2
  28. package/dist/lib/chat/trajectory/trajectories/user-message.d.ts +2 -2
  29. package/dist/lib/chat/trajectory/trajectories/user-message.d.ts.map +1 -1
  30. package/dist/lib/chat/trajectory/trajectory-segments.d.ts +1 -1
  31. package/dist/lib/chat/usage.d.ts.map +1 -1
  32. package/dist/lib/chat/zukhruf-chat-transport.d.ts +3 -3
  33. package/dist/lib/components/ChatAction.d.ts +1 -1
  34. package/dist/lib/components/ChatComposer.d.ts +4 -4
  35. package/dist/lib/components/ChatTextarea.d.ts +1 -1
  36. package/dist/lib/components/CitationPill.d.ts +1 -1
  37. package/dist/lib/components/InteractiveResponse.d.ts +2 -2
  38. package/dist/lib/components/PendingToolInput.d.ts +3 -3
  39. package/dist/lib/components/SubmitButton.d.ts +1 -1
  40. package/dist/lib/components/Tip/TipProvider.d.ts +2 -1
  41. package/dist/lib/components/queue.d.ts +1 -1
  42. package/dist/lib/components/text-shimmer.d.ts +1 -1
  43. package/dist/lib/components/tool-debug.d.ts +1 -1
  44. package/dist/lib/components/tool-error.d.ts +2 -2
  45. package/dist/lib/copy/assistant-snapshot.d.ts +2 -2
  46. package/dist/lib/copy/snapshot-context.d.ts +1 -1
  47. package/dist/lib/copy/snapshot-render.d.ts +2 -2
  48. package/dist/lib/copy/use-copy-element-as-image.d.ts +2 -2
  49. package/dist/lib/elements/ChainOfThought.d.ts +8 -8
  50. package/dist/lib/elements/CodeBlock.d.ts +1 -1
  51. package/dist/lib/elements/Conversation.d.ts +1 -1
  52. package/dist/lib/elements/Message.d.ts +4 -4
  53. package/dist/lib/elements/PromptInput.d.ts +2 -2
  54. package/dist/lib/elements/PromptInput.d.ts.map +1 -1
  55. package/dist/lib/elements/Response.d.ts +1 -1
  56. package/dist/lib/elements/Task.d.ts +1 -1
  57. package/dist/lib/elements/Tool.d.ts +3 -3
  58. package/dist/lib/elements/Tool.d.ts.map +1 -1
  59. package/dist/lib/elements/ToolDebug.d.ts +1 -1
  60. package/dist/lib/elements/interactive-element.d.ts +2 -2
  61. package/dist/lib/elements/table-panel-extension.d.ts +3 -3
  62. package/dist/lib/hooks/use-auto-resize-textarea.d.ts +1 -1
  63. package/dist/lib/renderers/render-part.d.ts +1 -1
  64. package/dist/lib/tools/helpers.d.ts +3 -3
  65. package/dist/lib/tools/registry.d.ts +4 -4
  66. package/dist/lib/ui/ArrowUpIcon.d.ts +2 -2
  67. package/dist/lib/ui/TheButton.d.ts +1 -1
  68. package/dist/lib/ui/TheButton.d.ts.map +1 -1
  69. package/package.json +6 -6
  70. package/dist/lib/renderers/icon-picker.d.ts +0 -16
  71. package/dist/lib/renderers/icon-picker.d.ts.map +0 -1
@@ -1,9 +1,9 @@
1
- import { UIMessage, UseChatHelpers } from '@ai-sdk/react';
2
- import { ChatOnDataCallback, ChatOnFinishCallback, ChatStatus, ChatTransport, UIDataTypes, UITools } from 'ai';
3
- import { ReactNode } from 'react';
4
- import { ComponentRegistry } from '../tools/registry.ts';
5
- import { ChatManager, ChatSubmission } from './chat-manager.ts';
6
- import { ZukhrufChatTransport } from './zukhruf-chat-transport.ts';
1
+ import { type UIMessage, type UseChatHelpers } from '@ai-sdk/react';
2
+ import type { ChatOnDataCallback, ChatOnFinishCallback, ChatStatus, ChatTransport, UIDataTypes, UITools } from 'ai';
3
+ import { type ReactNode } from 'react';
4
+ import type { ComponentRegistry } from '../tools/registry.ts';
5
+ import { ChatManager, type ChatSubmission } from './chat-manager.ts';
6
+ import type { ZukhrufChatTransport } from './zukhruf-chat-transport.ts';
7
7
  export interface AgentConfigContextValue {
8
8
  chatId: string;
9
9
  registry?: ComponentRegistry;
@@ -1,7 +1,7 @@
1
- import { UIMessage, UseChatHelpers } from '@ai-sdk/react';
2
- import { ChatStatus, UIDataTypes, UITools } from 'ai';
3
- import { ComposerDraftSource } from '@deepagents/react-input/browser';
4
- import { ZukhrufChatTransport } from './zukhruf-chat-transport.ts';
1
+ import type { UIMessage, UseChatHelpers } from '@ai-sdk/react';
2
+ import type { ChatStatus, UIDataTypes, UITools } from 'ai';
3
+ import type { ComposerDraftSource } from '@deepagents/react-input/browser';
4
+ import type { ZukhrufChatTransport } from './zukhruf-chat-transport.ts';
5
5
  type UploadFile = ZukhrufChatTransport['uploadFile'];
6
6
  export interface ChatSubmission {
7
7
  prompt: string;
@@ -1,6 +1,6 @@
1
- import { ChatOnDataCallback, ChatOnFinishCallback, ChatTransport, UIDataTypes, UIMessage, UITools } from 'ai';
2
- import { ComponentRegistry } from '../tools/registry.ts';
1
+ import { type ChatOnDataCallback, type ChatOnFinishCallback, type ChatTransport, type UIDataTypes, type UIMessage, type UITools } from 'ai';
3
2
  import * as React from 'react';
3
+ import type { ComponentRegistry } from '../tools/registry.ts';
4
4
  export declare function useAgentChatSetup(props: {
5
5
  chatId: string;
6
6
  transport: ChatTransport<UIMessage<unknown, UIDataTypes, UITools>>;
@@ -8,7 +8,7 @@ export declare function useAgentChatSetup(props: {
8
8
  registry?: ComponentRegistry;
9
9
  onData?: ChatOnDataCallback<UIMessage<unknown, UIDataTypes, UITools>>;
10
10
  onFinish?: ChatOnFinishCallback<UIMessage<unknown, UIDataTypes, UITools>>;
11
- }): import('@ai-sdk/react').UseChatHelpers<UIMessage<unknown, UIDataTypes, UITools>>;
11
+ }): import("@ai-sdk/react").UseChatHelpers<UIMessage<unknown, UIDataTypes, UITools>>;
12
12
  export declare function ChatBot(props: React.PropsWithChildren<{
13
13
  className?: string;
14
14
  }>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { UIMessage } from 'ai';
1
+ import type { UIMessage } from 'ai';
2
2
  export interface CitationSource {
3
3
  url: string;
4
4
  title?: string;
@@ -1,6 +1,6 @@
1
- import { UIMessage, UseChatHelpers } from '@ai-sdk/react';
2
- import { UIDataTypes, UITools } from 'ai';
3
- import { ComponentRegistry } from '../tools/registry.ts';
1
+ import type { UIMessage, UseChatHelpers } from '@ai-sdk/react';
2
+ import type { UIDataTypes, UITools } from 'ai';
3
+ import type { ComponentRegistry } from '../tools/registry.ts';
4
4
  type ChatHelpers = UseChatHelpers<UIMessage<unknown, UIDataTypes, UITools>>;
5
5
  interface ToolCall {
6
6
  toolCallId: string;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export declare function MarkdownParagraph({ children, }: {
3
3
  children?: React.ReactNode;
4
4
  }): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
@@ -1,5 +1,5 @@
1
- import { ToolUIPart } from 'ai';
2
- import { GenAIInteractiveElement } from '../components/InteractiveResponse.tsx';
1
+ import type { ToolUIPart } from 'ai';
2
+ import { type GenAIInteractiveElement } from '../components/InteractiveResponse.tsx';
3
3
  export declare const SLIDE_UP_ANIMATED: {
4
4
  readonly animation: "slideUp";
5
5
  };
@@ -1,4 +1,4 @@
1
- import { ChatTransport, UIMessage, UIMessageChunk } from 'ai';
1
+ import type { ChatTransport, UIMessage, UIMessageChunk } from 'ai';
2
2
  /**
3
3
  * Transport for surfaces that only render stored messages (shared transcripts,
4
4
  * fixtures). Sending from such a surface is a programming error, so it rejects
@@ -1,4 +1,4 @@
1
- import { ChatStatus, ToolUIPart } from 'ai';
1
+ import type { ChatStatus, ToolUIPart } from 'ai';
2
2
  export declare function isToolStateAborted(state: ToolUIPart['state'] | undefined, status: ChatStatus): boolean;
3
3
  export declare function isToolAborted(part: ToolUIPart, status: ChatStatus): boolean;
4
4
  export declare function useIsToolAborted(part: ToolUIPart): boolean;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { ComponentRegistry } from '../tools/registry.ts';
2
+ import type { ComponentRegistry } from '../tools/registry.ts';
3
3
  export type SerializedToolRegistry = Record<string, {
4
4
  inputSchema: z.core.JSONSchema.BaseSchema;
5
5
  description: string;
@@ -1,5 +1,5 @@
1
- import { UIMessage } from 'ai';
2
- import { ReactNode } from 'react';
1
+ import type { UIMessage } from 'ai';
2
+ import { type ReactNode } from 'react';
3
3
  export type IndexProgressEventType = 'index:start' | 'index:end' | 'adapter:start' | 'adapter:end' | 'adapter:cache-hit' | 'adapter:cache-miss' | 'phase:start' | 'phase:progress' | 'phase:end' | 'adapter:error' | 'index:error';
4
4
  export type IndexProgressEvent = {
5
5
  type: IndexProgressEventType;
@@ -1,5 +1,5 @@
1
- import { ChatStatus, UIMessage } from 'ai';
2
- import { GenAIInteractiveElement } from '../../components/InteractiveResponse.tsx';
1
+ import type { ChatStatus, UIMessage } from 'ai';
2
+ import type { GenAIInteractiveElement } from '../../components/InteractiveResponse.tsx';
3
3
  export type MessagesContextValue = {
4
4
  messages: UIMessage[];
5
5
  elements?: GenAIInteractiveElement[];
@@ -9,8 +9,8 @@ type MessageItemContextValue = {
9
9
  message: UIMessage;
10
10
  index: number;
11
11
  };
12
- export declare const MessagesCtx: import('react').Context<MessagesContextValue | undefined>;
13
- export declare const MessageItemCtx: import('react').Context<MessageItemContextValue | undefined>;
12
+ export declare const MessagesCtx: import("react").Context<MessagesContextValue | undefined>;
13
+ export declare const MessageItemCtx: import("react").Context<MessageItemContextValue | undefined>;
14
14
  export declare function useMessagesContext(): MessagesContextValue;
15
15
  export declare function useMessagesStatus(): ChatStatus;
16
16
  export declare function useMessageItem(): MessageItemContextValue;
@@ -1,4 +1,4 @@
1
- import { UIMessage } from 'ai';
1
+ import type { UIMessage } from 'ai';
2
2
  /**
3
3
  * Replays a trajectory that is not the host message's own — currently a
4
4
  * subagent's run, captured into its tool output. It reuses the same Segment
@@ -1,8 +1,8 @@
1
- import { ToolUIPart, UIMessage } from 'ai';
2
- import { ReactNode } from 'react';
3
- import { ToolLabel } from '../../../tools/registry.ts';
4
- import { MessagesContextValue } from '../messages-context.ts';
5
- import { MessageTrajectorySegment } from '../trajectory-segments.ts';
1
+ import type { ToolUIPart, UIMessage } from 'ai';
2
+ import { type ReactNode } from 'react';
3
+ import type { ToolLabel } from '../../../tools/registry.ts';
4
+ import type { MessagesContextValue } from '../messages-context.ts';
5
+ import type { MessageTrajectorySegment } from '../trajectory-segments.ts';
6
6
  export declare function isCommentaryTextPart(part: UIMessage['parts'][number]): boolean;
7
7
  declare function SegmentText({ segment, elements, className, }: {
8
8
  segment: Extract<MessageTrajectorySegment, {
@@ -42,7 +42,7 @@ type ToolSegmentContextValue = {
42
42
  * Marker-relevant subset for arrangement wrappers (Timeline.Item) that sit
43
43
  * inside Segment.Tool and need label/state without the strict-context throw.
44
44
  */
45
- export declare const ToolSegmentMarkerContext: import('react').Context<{
45
+ export declare const ToolSegmentMarkerContext: import("react").Context<{
46
46
  label: ToolLabel | undefined;
47
47
  state: ToolUIPart["state"];
48
48
  aborted: boolean;
@@ -1,6 +1,6 @@
1
- import { ToolUIPart } from 'ai';
2
- import { ReactNode } from 'react';
3
- import { ToolLabel } from '../../tools/registry.ts';
1
+ import type { ToolUIPart } from 'ai';
2
+ import type { ReactNode } from 'react';
3
+ import type { ToolLabel } from '../../tools/registry.ts';
4
4
  export declare function ToolLabelInline({ label, part, }: {
5
5
  label: ToolLabel;
6
6
  part: ToolUIPart;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  export declare function CollapsibleDisclosure({ label, open, onOpenChange, children, className, triggerClassName, contentClassName, chevronClassName, }: {
3
3
  label: ReactNode;
4
4
  open: boolean;
@@ -1,6 +1,6 @@
1
- import { ReactNode } from 'react';
2
- import { ToolLabel } from '../../../tools/registry.ts';
3
- import { MessageTrajectorySegment } from '../trajectory-segments.ts';
1
+ import { type ReactNode } from 'react';
2
+ import type { ToolLabel } from '../../../tools/registry.ts';
3
+ import { type MessageTrajectorySegment } from '../trajectory-segments.ts';
4
4
  import { CopyAssistantMessageAction, CopyAssistantMessageJsonAction, MessagesActions, RegenerateAction } from './message-actions.tsx';
5
5
  import { MessagesError } from './messages-error.tsx';
6
6
  import { MessagesItem, MessagesList, MessagesRoot } from './messages-shell.tsx';
@@ -86,10 +86,10 @@ export declare const CompactMessages: {
86
86
  Root: typeof MessagesRoot;
87
87
  List: typeof MessagesList;
88
88
  Item: typeof MessagesItem;
89
- UserBubble: import('react').MemoExoticComponent<({ className, }: {
89
+ UserBubble: import("react").MemoExoticComponent<({ className, }: {
90
90
  className?: string;
91
91
  }) => import("react").JSX.Element>;
92
- AssistantContent: import('react').MemoExoticComponent<({ className, }: {
92
+ AssistantContent: import("react").MemoExoticComponent<({ className, }: {
93
93
  className?: string;
94
94
  }) => import("react").JSX.Element>;
95
95
  Actions: typeof MessagesActions;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  export declare function MessagesActions({ className, children, }: {
3
3
  className?: string;
4
4
  children: ReactNode;
@@ -1,5 +1,5 @@
1
- import { ChatStatus, UIMessage } from 'ai';
2
- import { GenAIInteractiveElement } from '../../../components/InteractiveResponse.tsx';
1
+ import type { ChatStatus, UIMessage } from 'ai';
2
+ import type { GenAIInteractiveElement } from '../../../components/InteractiveResponse.tsx';
3
3
  export declare function MessagesRoot({ messages, className, elements, status, children, }: {
4
4
  messages: UIMessage[];
5
5
  className?: string;
@@ -6,10 +6,10 @@ export declare const Messages: {
6
6
  Root: typeof MessagesRoot;
7
7
  List: typeof MessagesList;
8
8
  Item: typeof MessagesItem;
9
- UserBubble: import('react').MemoExoticComponent<({ className, }: {
9
+ UserBubble: import("react").MemoExoticComponent<({ className, }: {
10
10
  className?: string;
11
11
  }) => import("react").JSX.Element>;
12
- AssistantContent: import('react').MemoExoticComponent<({ className, }: {
12
+ AssistantContent: import("react").MemoExoticComponent<({ className, }: {
13
13
  className?: string;
14
14
  }) => import("react").JSX.Element>;
15
15
  Thinking: typeof MessagesThinking;
@@ -1,3 +1,3 @@
1
- import { ChatStatus, UIMessage } from 'ai';
1
+ import type { ChatStatus, UIMessage } from 'ai';
2
2
  export declare function thinking(status: ChatStatus, message: UIMessage): string | null;
3
3
  //# sourceMappingURL=thinking-hint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"thinking-hint.d.ts","sourceRoot":"","sources":["../../../../../src/lib/chat/trajectory/trajectories/thinking-hint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAGhD,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,iBA2C9D"}
1
+ {"version":3,"file":"thinking-hint.d.ts","sourceRoot":"","sources":["../../../../../src/lib/chat/trajectory/trajectories/thinking-hint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAKhD,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,iBA2C9D"}
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  export declare function TimelineItem({ marker, children, className, }: {
3
3
  marker: ReactNode;
4
4
  children: ReactNode;
@@ -1,6 +1,6 @@
1
- import { ToolUIPart } from 'ai';
2
- import { ReactNode } from 'react';
3
- import { ToolLabel } from '../../../tools/registry.ts';
1
+ import type { ToolUIPart } from 'ai';
2
+ import { type ReactNode } from 'react';
3
+ import type { ToolLabel } from '../../../tools/registry.ts';
4
4
  declare function TimelineRow({ isLast, label, state, aborted, children, }: {
5
5
  isLast: boolean;
6
6
  label?: ToolLabel;
@@ -6,10 +6,10 @@ export declare const TimelinedMessages: {
6
6
  Root: typeof MessagesRoot;
7
7
  List: typeof MessagesList;
8
8
  Item: typeof MessagesItem;
9
- UserBubble: import('react').MemoExoticComponent<({ className, }: {
9
+ UserBubble: import("react").MemoExoticComponent<({ className, }: {
10
10
  className?: string;
11
11
  }) => import("react").JSX.Element>;
12
- AssistantContent: import('react').MemoExoticComponent<({ className, }: {
12
+ AssistantContent: import("react").MemoExoticComponent<({ className, }: {
13
13
  className?: string;
14
14
  }) => import("react").JSX.Element>;
15
15
  Actions: typeof MessagesActions;
@@ -1,11 +1,11 @@
1
- import { UIMessage } from 'ai';
1
+ import type { UIMessage } from 'ai';
2
2
  export declare function MessageMetadata({ metadata, }: {
3
3
  metadata: UIMessage['metadata'];
4
4
  }): import("react").JSX.Element | null;
5
5
  export declare function UserMessageContent({ message: rawMessage, }: {
6
6
  message: UIMessage;
7
7
  }): import("react").JSX.Element;
8
- export declare const MessagesUserBubble: import('react').MemoExoticComponent<({ className, }: {
8
+ export declare const MessagesUserBubble: import("react").MemoExoticComponent<({ className, }: {
9
9
  className?: string;
10
10
  }) => import("react").JSX.Element>;
11
11
  //# sourceMappingURL=user-message.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-message.d.ts","sourceRoot":"","sources":["../../../../../src/lib/chat/trajectory/trajectories/user-message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAepC,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;CACjC,sCAWA;AAsKD,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EAAE,UAAU,GACpB,EAAE;IACD,OAAO,EAAE,SAAS,CAAC;CACpB,+BA+CA;AAED,eAAO,MAAM,kBAAkB,uDAE5B;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,iCAQC,CAAC"}
1
+ {"version":3,"file":"user-message.d.ts","sourceRoot":"","sources":["../../../../../src/lib/chat/trajectory/trajectories/user-message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAgBpC,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;CACjC,sCAWA;AAwKD,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EAAE,UAAU,GACpB,EAAE;IACD,OAAO,EAAE,SAAS,CAAC;CACpB,+BA4CA;AAED,eAAO,MAAM,kBAAkB,uDAE5B;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,iCAQC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { UIMessage } from 'ai';
1
+ import type { UIMessage } from 'ai';
2
2
  export type TimelineNodeKind = 'tool' | 'dynamic-tool' | 'reasoning';
3
3
  export type MessageTrajectorySegment = {
4
4
  kind: 'text';
@@ -1 +1 @@
1
- {"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../../src/lib/chat/usage.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACxD,gBAAgB,EAAE,YAAY,GAAG,IAAI,CAAC;CACvC,CAAC;AA0CF,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,YAAY,GAAG,IAAI,CAsB/D;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,OAAO,GAAG,YAAY,GAAG,IAAI,CAMzE;AAkGD,wBAAgB,0BAA0B,IAAI,aAAa,CAM1D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAE7D;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAehE"}
1
+ {"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../../src/lib/chat/usage.ts"],"names":[],"mappings":"AAYA,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACxD,gBAAgB,EAAE,YAAY,GAAG,IAAI,CAAC;CACvC,CAAC;AA0CF,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,YAAY,GAAG,IAAI,CAsB/D;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,OAAO,GAAG,YAAY,GAAG,IAAI,CAIzE;AAkGD,wBAAgB,0BAA0B,IAAI,aAAa,CAM1D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAE7D;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAehE"}
@@ -1,7 +1,7 @@
1
- import { DefaultChatTransport, UIMessage } from 'ai';
1
+ import { DefaultChatTransport, type UIMessage } from 'ai';
2
2
  import { z } from 'zod';
3
- import { GenAIInteractiveElement } from '../elements/interactive-element.ts';
4
- import { SerializedToolRegistry } from './tools-schema.ts';
3
+ import type { GenAIInteractiveElement } from '../elements/interactive-element.ts';
4
+ import type { SerializedToolRegistry } from './tools-schema.ts';
5
5
  export declare const uploadReceiptSchema: z.ZodObject<{
6
6
  path: z.ZodString;
7
7
  name: z.ZodString;
@@ -1,4 +1,4 @@
1
- import { HTMLMotionProps } from 'motion/react';
1
+ import type { HTMLMotionProps } from 'motion/react';
2
2
  import * as React from 'react';
3
3
  interface AgentActionButtonProps extends Omit<HTMLMotionProps<'button'>, 'children'> {
4
4
  icon: React.ReactNode;
@@ -1,5 +1,5 @@
1
- import { ComponentProps } from 'react';
2
- import { ComposerAttachFilesProps, ComposerAttachmentsProps, ComposerContentProps, ComposerEditorProps, ComposerRootProps, ComposerToolbarProps } from '@deepagents/react-input/browser';
1
+ import type { ComponentProps } from 'react';
2
+ import { type ComposerAttachFilesProps, type ComposerAttachmentsProps, type ComposerContentProps, type ComposerEditorProps, type ComposerRootProps, type ComposerToolbarProps } from '@deepagents/react-input/browser';
3
3
  declare function ChatComposerProvider({ className, ...props }: ComposerRootProps): import("react").JSX.Element;
4
4
  declare function ChatComposerRoot({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
5
5
  declare function ChatComposerContent({ className, ...props }: ComposerContentProps): import("react").JSX.Element;
@@ -11,11 +11,11 @@ declare function ChatComposerCommandButton(): import("react").JSX.Element;
11
11
  export declare const ChatComposer: {
12
12
  Provider: typeof ChatComposerProvider;
13
13
  Root: typeof ChatComposerRoot;
14
- Popup: ({ className, ...props }: import('@deepagents/react-input/browser').ComposerPopupProps) => import("react").JSX.Element | null;
14
+ Popup: ({ className, ...props }: import("@deepagents/react-input/browser").ComposerPopupProps) => import("react").JSX.Element | null;
15
15
  Content: typeof ChatComposerContent;
16
16
  Attachments: typeof ChatComposerAttachments;
17
17
  Editor: typeof ChatComposerEditor;
18
- Error: ({ className, ...props }: import('@deepagents/react-input/browser').ComposerErrorProps) => import("react").JSX.Element | null;
18
+ Error: ({ className, ...props }: import("@deepagents/react-input/browser").ComposerErrorProps) => import("react").JSX.Element | null;
19
19
  Toolbar: typeof ChatComposerToolbar;
20
20
  CommandButton: typeof ChatComposerCommandButton;
21
21
  AttachFiles: typeof ChatComposerAttachFiles;
@@ -1,4 +1,4 @@
1
- import { Ref, TextareaHTMLAttributes } from 'react';
1
+ import type { Ref, TextareaHTMLAttributes } from 'react';
2
2
  type ChatTextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
3
3
  ref?: Ref<HTMLTextAreaElement>;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { CitationSource } from '../chat/citations.ts';
1
+ import type { CitationSource } from '../chat/citations.ts';
2
2
  export declare function CitationPill({ source, index, }: {
3
3
  source: CitationSource;
4
4
  index: number;
@@ -1,5 +1,5 @@
1
- import { ResponseProps } from '../elements/Response.tsx';
2
- import { GenAIInteractiveElement } from '../elements/interactive-element.ts';
1
+ import { type ResponseProps } from '../elements/Response.tsx';
2
+ import type { GenAIInteractiveElement } from '../elements/interactive-element.ts';
3
3
  export type { GenAIInteractiveElement };
4
4
  type InteractiveResponseProps = Omit<ResponseProps, 'components' | 'allowedTags'> & {
5
5
  elements?: GenAIInteractiveElement[];
@@ -1,6 +1,6 @@
1
- import { ToolUIPart } from 'ai';
2
- import { PropsWithChildren } from 'react';
3
- import { ComponentTool } from '../tools/registry.ts';
1
+ import type { ToolUIPart } from 'ai';
2
+ import { type PropsWithChildren } from 'react';
3
+ import type { ComponentTool } from '../tools/registry.ts';
4
4
  export type ActivePendingTool = {
5
5
  part: ToolUIPart;
6
6
  entry: ComponentTool;
@@ -1,4 +1,4 @@
1
- import { HTMLMotionProps } from 'motion/react';
1
+ import { type HTMLMotionProps } from 'motion/react';
2
2
  type SubmitButtonVariant = 'send' | 'stop';
3
3
  type SubmitButtonProps = Omit<HTMLMotionProps<'button'>, 'children'> & {
4
4
  variant: SubmitButtonVariant;
@@ -1,4 +1,5 @@
1
- import { default as React, PropsWithChildren } from 'react';
1
+ import type React from 'react';
2
+ import { type PropsWithChildren } from 'react';
2
3
  export interface Tip<C = unknown> {
3
4
  id: string;
4
5
  content: (context: C) => Promise<string>;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  declare function MessageQueueRoot({ children, className, }: {
3
3
  children: ReactNode;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import { ElementType, ReactNode } from 'react';
1
+ import type { ElementType, ReactNode } from 'react';
2
2
  export type TextShimmerProps = {
3
3
  children: ReactNode;
4
4
  as?: ElementType;
@@ -1,4 +1,4 @@
1
- import { DynamicToolUIPart, ToolUIPart } from 'ai';
1
+ import { type DynamicToolUIPart, type ToolUIPart } from 'ai';
2
2
  export declare function ToolDebug({ part }: {
3
3
  part: ToolUIPart;
4
4
  }): import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
- import { ToolUIPart } from 'ai';
2
- import { ZodError } from 'zod';
1
+ import { type ToolUIPart } from 'ai';
2
+ import type { ZodError } from 'zod';
3
3
  export interface ToolErrorProps {
4
4
  title?: string;
5
5
  detail?: string;
@@ -1,5 +1,5 @@
1
- import { UIMessage } from 'ai';
2
- import { ReactNode } from 'react';
1
+ import { type UIMessage } from 'ai';
2
+ import { type ReactNode } from 'react';
3
3
  export declare function extractAssistantRawText(message: UIMessage): string;
4
4
  export declare function useIsAssistantSnapshotRender(): boolean;
5
5
  export declare function AssistantSnapshot({ message, renderContent, className, }: {
@@ -5,5 +5,5 @@
5
5
  * which stays exported from `assistant-snapshot.tsx` for its existing consumers
6
6
  * — can share it without importing each other.
7
7
  */
8
- export declare const SnapshotRenderContext: import('react').Context<boolean>;
8
+ export declare const SnapshotRenderContext: import("react").Context<boolean>;
9
9
  //# sourceMappingURL=snapshot-context.d.ts.map
@@ -1,4 +1,4 @@
1
- import { ReactNode, RefObject } from 'react';
1
+ import type { ReactNode, RefObject } from 'react';
2
2
  export declare function waitForNextPaint(): Promise<void>;
3
3
  /**
4
4
  * Renders `children` off-screen at a fixed width so a capture (image, PDF) does
@@ -16,5 +16,5 @@ export declare function SnapshotRenderPortal({ contentRef, children, width, padd
16
16
  width?: number;
17
17
  padding?: number;
18
18
  className?: string;
19
- }): import('react').ReactPortal | null;
19
+ }): import("react").ReactPortal | null;
20
20
  //# sourceMappingURL=snapshot-render.d.ts.map
@@ -1,5 +1,5 @@
1
- import { RefObject } from 'react';
2
- import { CopyExclusionMode } from './copy-image.ts';
1
+ import type { RefObject } from 'react';
2
+ import { type CopyExclusionMode } from './copy-image.ts';
3
3
  type CopySuccessMode = 'image' | 'text';
4
4
  export type CopyImageFeedback = {
5
5
  kind: 'success';
@@ -1,28 +1,28 @@
1
- import { ComponentProps, ReactNode } from 'react';
1
+ import type { ComponentProps, ReactNode } from 'react';
2
2
  import { Badge, CollapsibleContent, CollapsibleTrigger } from '@deepagents/react-shadcn';
3
3
  export type ChainOfThoughtProps = ComponentProps<'div'> & {
4
4
  open?: boolean;
5
5
  defaultOpen?: boolean;
6
6
  onOpenChange?: (open: boolean) => void;
7
7
  };
8
- export declare const ChainOfThought: import('react').MemoExoticComponent<({ className, open, defaultOpen, onOpenChange, children, ...props }: ChainOfThoughtProps) => import("react").JSX.Element>;
8
+ export declare const ChainOfThought: import("react").MemoExoticComponent<({ className, open, defaultOpen, onOpenChange, children, ...props }: ChainOfThoughtProps) => import("react").JSX.Element>;
9
9
  export type ChainOfThoughtHeaderProps = ComponentProps<typeof CollapsibleTrigger>;
10
- export declare const ChainOfThoughtHeader: import('react').MemoExoticComponent<({ className, children, ...props }: ChainOfThoughtHeaderProps) => import("react").JSX.Element>;
10
+ export declare const ChainOfThoughtHeader: import("react").MemoExoticComponent<({ className, children, ...props }: ChainOfThoughtHeaderProps) => import("react").JSX.Element>;
11
11
  export type ChainOfThoughtStepProps = ComponentProps<'div'> & {
12
12
  icon?: ReactNode;
13
13
  label: ReactNode;
14
14
  description?: string;
15
15
  status?: 'complete' | 'active' | 'pending';
16
16
  };
17
- export declare const ChainOfThoughtStep: import('react').MemoExoticComponent<({ className, icon, label, description, status, children, ...props }: ChainOfThoughtStepProps) => import("react").JSX.Element>;
17
+ export declare const ChainOfThoughtStep: import("react").MemoExoticComponent<({ className, icon, label, description, status, children, ...props }: ChainOfThoughtStepProps) => import("react").JSX.Element>;
18
18
  export type ChainOfThoughtSearchResultsProps = ComponentProps<'div'>;
19
- export declare const ChainOfThoughtSearchResults: import('react').MemoExoticComponent<({ className, ...props }: ChainOfThoughtSearchResultsProps) => import("react").JSX.Element>;
19
+ export declare const ChainOfThoughtSearchResults: import("react").MemoExoticComponent<({ className, ...props }: ChainOfThoughtSearchResultsProps) => import("react").JSX.Element>;
20
20
  export type ChainOfThoughtSearchResultProps = ComponentProps<typeof Badge>;
21
- export declare const ChainOfThoughtSearchResult: import('react').MemoExoticComponent<({ className, children, ...props }: ChainOfThoughtSearchResultProps) => import("react").JSX.Element>;
21
+ export declare const ChainOfThoughtSearchResult: import("react").MemoExoticComponent<({ className, children, ...props }: ChainOfThoughtSearchResultProps) => import("react").JSX.Element>;
22
22
  export type ChainOfThoughtContentProps = ComponentProps<typeof CollapsibleContent>;
23
- export declare const ChainOfThoughtContent: import('react').MemoExoticComponent<({ className, children, ...props }: ChainOfThoughtContentProps) => import("react").JSX.Element>;
23
+ export declare const ChainOfThoughtContent: import("react").MemoExoticComponent<({ className, children, ...props }: ChainOfThoughtContentProps) => import("react").JSX.Element>;
24
24
  export type ChainOfThoughtImageProps = ComponentProps<'div'> & {
25
25
  caption?: string;
26
26
  };
27
- export declare const ChainOfThoughtImage: import('react').MemoExoticComponent<({ className, children, caption, ...props }: ChainOfThoughtImageProps) => import("react").JSX.Element>;
27
+ export declare const ChainOfThoughtImage: import("react").MemoExoticComponent<({ className, children, caption, ...props }: ChainOfThoughtImageProps) => import("react").JSX.Element>;
28
28
  //# sourceMappingURL=ChainOfThought.d.ts.map
@@ -1,4 +1,4 @@
1
- import { ComponentProps, HTMLAttributes, ReactNode } from 'react';
1
+ import type { ComponentProps, HTMLAttributes, ReactNode } from 'react';
2
2
  import { Button } from '@deepagents/react-shadcn';
3
3
  export type CodeBlockProps = HTMLAttributes<HTMLDivElement> & {
4
4
  code: string;
@@ -1,4 +1,4 @@
1
- import { ComponentProps } from 'react';
1
+ import { type ComponentProps } from 'react';
2
2
  import { StickToBottom } from 'use-stick-to-bottom';
3
3
  import { Button } from '@deepagents/react-shadcn';
4
4
  export type ConversationProps = ComponentProps<typeof StickToBottom>;
@@ -1,6 +1,6 @@
1
- import { UIMessage } from 'ai';
2
- import { VariantProps } from 'class-variance-authority';
3
- import { ComponentProps, HTMLAttributes } from 'react';
1
+ import type { UIMessage } from 'ai';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ import type { ComponentProps, HTMLAttributes } from 'react';
4
4
  import { Avatar } from '@deepagents/react-shadcn';
5
5
  export type MessageProps = HTMLAttributes<HTMLDivElement> & {
6
6
  from: UIMessage['role'];
@@ -8,7 +8,7 @@ export type MessageProps = HTMLAttributes<HTMLDivElement> & {
8
8
  export declare const Message: ({ className, from, ...props }: MessageProps) => import("react").JSX.Element;
9
9
  declare const messageContentVariants: (props?: ({
10
10
  variant?: "flat" | "contained" | null | undefined;
11
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
12
  export type MessageContentProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof messageContentVariants>;
13
13
  export declare const MessageContent: ({ children, className, variant, ...props }: MessageContentProps) => import("react").JSX.Element;
14
14
  export type MessageAvatarProps = ComponentProps<typeof Avatar> & {
@@ -1,5 +1,5 @@
1
- import { ChatStatus, FileUIPart } from 'ai';
2
- import { ComponentProps, FormEvent, HTMLAttributes, PropsWithChildren, ReactNode, RefObject } from 'react';
1
+ import type { ChatStatus, FileUIPart } from 'ai';
2
+ import { type ComponentProps, type FormEvent, type HTMLAttributes, type PropsWithChildren, type ReactNode, type RefObject } from 'react';
3
3
  import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, DropdownMenu, DropdownMenuContent, DropdownMenuItem, HoverCard, HoverCardContent, HoverCardTrigger, InputGroupAddon, InputGroupButton, InputGroupTextarea, Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@deepagents/react-shadcn';
4
4
  export type AttachmentsContext = {
5
5
  files: (FileUIPart & {