@deepagents/react-genai 7.1.0 → 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.
- package/dist/lib/chat/agent-context.d.ts +6 -6
- package/dist/lib/chat/chat-manager.d.ts +4 -4
- package/dist/lib/chat/chat.d.ts +3 -3
- package/dist/lib/chat/citations.d.ts +1 -1
- package/dist/lib/chat/client-tool-output.d.ts +3 -3
- package/dist/lib/chat/markdown-paragraph.d.ts +1 -1
- package/dist/lib/chat/message-parts.d.ts +2 -2
- package/dist/lib/chat/read-only-transport.d.ts +1 -1
- package/dist/lib/chat/tool-abort.d.ts +1 -1
- package/dist/lib/chat/tools-schema.d.ts +1 -1
- package/dist/lib/chat/trajectory/IndexProgressSegment.d.ts +2 -2
- package/dist/lib/chat/trajectory/messages-context.d.ts +4 -4
- package/dist/lib/chat/trajectory/nested-trajectory.d.ts +1 -1
- package/dist/lib/chat/trajectory/segments/index.d.ts +6 -6
- package/dist/lib/chat/trajectory/tool-label.d.ts +3 -3
- package/dist/lib/chat/trajectory/trajectories/collapsible-disclosure.d.ts +1 -1
- package/dist/lib/chat/trajectory/trajectories/compact-messages.d.ts +5 -5
- package/dist/lib/chat/trajectory/trajectories/message-actions.d.ts +1 -1
- package/dist/lib/chat/trajectory/trajectories/messages-shell.d.ts +2 -2
- package/dist/lib/chat/trajectory/trajectories/messages.d.ts +2 -2
- package/dist/lib/chat/trajectory/trajectories/thinking-hint.d.ts +1 -1
- package/dist/lib/chat/trajectory/trajectories/timeline-item.d.ts +1 -1
- package/dist/lib/chat/trajectory/trajectories/timeline.d.ts +3 -3
- package/dist/lib/chat/trajectory/trajectories/timelined-messages.d.ts +2 -2
- package/dist/lib/chat/trajectory/trajectories/user-message.d.ts +2 -2
- package/dist/lib/chat/trajectory/trajectory-segments.d.ts +1 -1
- package/dist/lib/chat/zukhruf-chat-transport.d.ts +3 -3
- package/dist/lib/components/ChatAction.d.ts +1 -1
- package/dist/lib/components/ChatComposer.d.ts +4 -4
- package/dist/lib/components/ChatTextarea.d.ts +1 -1
- package/dist/lib/components/CitationPill.d.ts +1 -1
- package/dist/lib/components/InteractiveResponse.d.ts +2 -2
- package/dist/lib/components/PendingToolInput.d.ts +3 -3
- package/dist/lib/components/SubmitButton.d.ts +1 -1
- package/dist/lib/components/Tip/TipProvider.d.ts +2 -1
- package/dist/lib/components/queue.d.ts +1 -1
- package/dist/lib/components/text-shimmer.d.ts +1 -1
- package/dist/lib/components/tool-debug.d.ts +1 -1
- package/dist/lib/components/tool-error.d.ts +2 -2
- package/dist/lib/copy/assistant-snapshot.d.ts +2 -2
- package/dist/lib/copy/snapshot-context.d.ts +1 -1
- package/dist/lib/copy/snapshot-render.d.ts +2 -2
- package/dist/lib/copy/use-copy-element-as-image.d.ts +2 -2
- package/dist/lib/elements/ChainOfThought.d.ts +8 -8
- package/dist/lib/elements/CodeBlock.d.ts +1 -1
- package/dist/lib/elements/Conversation.d.ts +1 -1
- package/dist/lib/elements/Message.d.ts +4 -4
- package/dist/lib/elements/PromptInput.d.ts +2 -2
- package/dist/lib/elements/Response.d.ts +1 -1
- package/dist/lib/elements/Task.d.ts +1 -1
- package/dist/lib/elements/Tool.d.ts +2 -2
- package/dist/lib/elements/ToolDebug.d.ts +1 -1
- package/dist/lib/elements/interactive-element.d.ts +2 -2
- package/dist/lib/elements/table-panel-extension.d.ts +3 -3
- package/dist/lib/hooks/use-auto-resize-textarea.d.ts +1 -1
- package/dist/lib/renderers/render-part.d.ts +1 -1
- package/dist/lib/tools/helpers.d.ts +3 -3
- package/dist/lib/tools/registry.d.ts +4 -4
- package/dist/lib/ui/ArrowUpIcon.d.ts +2 -2
- package/dist/lib/ui/TheButton.d.ts +1 -1
- package/package.json +6 -6
|
@@ -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;
|
package/dist/lib/chat/chat.d.ts
CHANGED
|
@@ -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(
|
|
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,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
|
|
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(
|
|
13
|
-
export declare const MessageItemCtx: import(
|
|
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,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(
|
|
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,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(
|
|
89
|
+
UserBubble: import("react").MemoExoticComponent<({ className, }: {
|
|
90
90
|
className?: string;
|
|
91
91
|
}) => import("react").JSX.Element>;
|
|
92
|
-
AssistantContent: import(
|
|
92
|
+
AssistantContent: import("react").MemoExoticComponent<({ className, }: {
|
|
93
93
|
className?: string;
|
|
94
94
|
}) => import("react").JSX.Element>;
|
|
95
95
|
Actions: typeof MessagesActions;
|
|
@@ -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(
|
|
9
|
+
UserBubble: import("react").MemoExoticComponent<({ className, }: {
|
|
10
10
|
className?: string;
|
|
11
11
|
}) => import("react").JSX.Element>;
|
|
12
|
-
AssistantContent: import(
|
|
12
|
+
AssistantContent: import("react").MemoExoticComponent<({ className, }: {
|
|
13
13
|
className?: string;
|
|
14
14
|
}) => import("react").JSX.Element>;
|
|
15
15
|
Thinking: typeof MessagesThinking;
|
|
@@ -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(
|
|
9
|
+
UserBubble: import("react").MemoExoticComponent<({ className, }: {
|
|
10
10
|
className?: string;
|
|
11
11
|
}) => import("react").JSX.Element>;
|
|
12
|
-
AssistantContent: import(
|
|
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(
|
|
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,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,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(
|
|
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(
|
|
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,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,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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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,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(
|
|
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 & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TablePanelStreamdownProps } from './table-panel-extension.tsx';
|
|
2
1
|
import * as React from 'react';
|
|
2
|
+
import { type TablePanelStreamdownProps } from './table-panel-extension.tsx';
|
|
3
3
|
export type ResponseProps = TablePanelStreamdownProps;
|
|
4
4
|
export declare const Response: React.MemoExoticComponent<({ className, ...props }: ResponseProps) => React.JSX.Element>;
|
|
5
5
|
//# sourceMappingURL=Response.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
2
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@deepagents/react-shadcn';
|
|
3
3
|
export type TaskItemFileProps = ComponentProps<'div'>;
|
|
4
4
|
export declare const TaskItemFile: ({ children, className, ...props }: TaskItemFileProps) => import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DynamicToolUIPart, ToolUIPart } from 'ai';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
1
|
+
import type { DynamicToolUIPart, ToolUIPart } from 'ai';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
3
|
import { Collapsible, CollapsibleContent } from '@deepagents/react-shadcn';
|
|
4
4
|
export type ToolProps = ComponentProps<typeof Collapsible>;
|
|
5
5
|
export declare const Tool: ({ className, ...props }: ToolProps) => import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { ElementDescriptor } from '@deepagents/elements';
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { ElementDescriptor } from '@deepagents/elements';
|
|
3
3
|
export type ToolTip = {
|
|
4
4
|
text: string;
|
|
5
5
|
cooldown: 'frequent' | 'moderate' | 'rare';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Table } from 'mdast';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
import { Streamdown } from 'streamdown';
|
|
1
|
+
import type { Table } from 'mdast';
|
|
4
2
|
import * as React from 'react';
|
|
3
|
+
import { type ComponentProps } from 'react';
|
|
4
|
+
import { Streamdown } from 'streamdown';
|
|
5
5
|
export type TablePanelStreamdownProps = Omit<ComponentProps<typeof Streamdown>, 'parseMarkdownIntoBlocksFn'> & {
|
|
6
6
|
tableActions?: React.ReactNode;
|
|
7
7
|
};
|
|
@@ -4,7 +4,7 @@ interface UseAutoResizeTextareaProps {
|
|
|
4
4
|
value?: string;
|
|
5
5
|
}
|
|
6
6
|
export declare function useAutoResizeTextarea({ minHeight, maxHeight, value, }: UseAutoResizeTextareaProps): {
|
|
7
|
-
textareaRef: import(
|
|
7
|
+
textareaRef: import("react").RefObject<HTMLTextAreaElement | null>;
|
|
8
8
|
adjustHeight: (reset?: boolean) => void;
|
|
9
9
|
};
|
|
10
10
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ToolUIPart, UIMessage } from 'ai';
|
|
2
|
-
import { ComponentRegistry } from './registry.ts';
|
|
1
|
+
import type { ToolUIPart, UIMessage } from 'ai';
|
|
2
|
+
import type { ComponentRegistry } from './registry.ts';
|
|
3
3
|
/**
|
|
4
4
|
* A subagent call is identified by the `toolMetadata` the backend attaches to
|
|
5
5
|
* the tool definition, never by tool name — so every tool built by the subagent
|
|
@@ -9,7 +9,7 @@ export declare function isSubagentPart(part: UIMessage['parts'][number]): boolea
|
|
|
9
9
|
export declare function subagentDisplayName(part: ToolUIPart): string;
|
|
10
10
|
export declare function resolveToolEntry(part: Pick<UIMessage['parts'][number], 'type'>, registry: ComponentRegistry | undefined): {
|
|
11
11
|
toolKey: string;
|
|
12
|
-
toolEntry: import(
|
|
12
|
+
toolEntry: import("./registry.ts").StaticTool | import("./registry.ts").ComponentTool<import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>> | undefined;
|
|
13
13
|
};
|
|
14
14
|
export declare function isActiveClientInputTool(toolEntry: ComponentRegistry[string] | undefined, state: ToolUIPart['state'] | undefined): boolean;
|
|
15
15
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ToolUIPart } from 'ai';
|
|
2
|
-
import { ComponentType } from 'react';
|
|
3
|
-
import { ZodTypeAny } from 'zod';
|
|
4
|
-
import { ToolTip } from '../elements/interactive-element.ts';
|
|
1
|
+
import type { ToolUIPart } from 'ai';
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
3
|
+
import type { ZodTypeAny } from 'zod';
|
|
4
|
+
import type { ToolTip } from '../elements/interactive-element.ts';
|
|
5
5
|
export type ToolLabel = {
|
|
6
6
|
name: string;
|
|
7
7
|
icon?: ComponentType<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
2
|
export interface ArrowUpIconHandle {
|
|
3
3
|
startAnimation: () => void;
|
|
4
4
|
stopAnimation: () => void;
|
|
@@ -6,6 +6,6 @@ export interface ArrowUpIconHandle {
|
|
|
6
6
|
interface ArrowUpIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
7
|
size?: number;
|
|
8
8
|
}
|
|
9
|
-
declare const ArrowUpIcon: import(
|
|
9
|
+
declare const ArrowUpIcon: import("react").ForwardRefExoticComponent<ArrowUpIconProps & import("react").RefAttributes<ArrowUpIconHandle>>;
|
|
10
10
|
export { ArrowUpIcon };
|
|
11
11
|
//# sourceMappingURL=ArrowUpIcon.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepagents/react-genai",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@ai-sdk/react": "4.0.130",
|
|
32
|
-
"@deepagents/context": "7.1.
|
|
33
|
-
"@deepagents/elements": "7.1.
|
|
34
|
-
"@deepagents/react-formatters": "7.1.
|
|
35
|
-
"@deepagents/react-input": "7.1.
|
|
36
|
-
"@deepagents/react-shadcn": "7.1.
|
|
32
|
+
"@deepagents/context": "7.1.1",
|
|
33
|
+
"@deepagents/elements": "7.1.1",
|
|
34
|
+
"@deepagents/react-formatters": "7.1.1",
|
|
35
|
+
"@deepagents/react-input": "7.1.1",
|
|
36
|
+
"@deepagents/react-shadcn": "7.1.1",
|
|
37
37
|
"@radix-ui/react-use-controllable-state": "^1.2.2",
|
|
38
38
|
"@types/mdast": "^4.0.4",
|
|
39
39
|
"ai": "7.0.127",
|