teodor-new-chat-ui 4.3.662 → 4.3.663

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.
@@ -3,6 +3,7 @@ import type { ChatMessage, RespondToInterruptOptions, ToolConfig, PendingInterru
3
3
  import type { MessageBubbleProps } from "../messages/components/MessageBubble";
4
4
  import type { EditMeta } from "@/features/persistence/checkpoints/types";
5
5
  import type { CheckpointIndex } from "@/features/persistence/checkpoints/utils/checkpointIndex";
6
+ import type { ToolCallWithResult } from "../messages/utils/toolCallUtils";
6
7
  export interface ChatUIContextValue {
7
8
  layoutSize: "phone" | "tablet" | "desktop" | "half-screen";
8
9
  customStyles: {
@@ -22,6 +23,8 @@ export interface ChatUIContextValue {
22
23
  followNewMessages: boolean;
23
24
  streamingDebounceMs: number;
24
25
  toolConfig?: ToolConfig;
26
+ selectedToolCall?: ToolCallWithResult | null;
27
+ onSelectToolCall?: (toolCall: ToolCallWithResult | null) => void;
25
28
  checkpointIndex?: CheckpointIndex;
26
29
  activeCheckpointId?: string | null;
27
30
  onSelectCheckpoint?: (checkpointId: string | null, parentCheckpointId?: string | null, isLatest?: boolean) => Promise<void> | void;
@@ -0,0 +1,8 @@
1
+ import type { ToolCallWithResult } from "../messages/utils/toolCallUtils";
2
+ interface ToolDetailsModalProps {
3
+ isOpen: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ toolCall: ToolCallWithResult | null;
6
+ }
7
+ export declare function ToolDetailsModal({ isOpen, onOpenChange, toolCall, }: ToolDetailsModalProps): import("react/jsx-runtime").JSX.Element | null;
8
+ export {};