teodor-new-chat-ui 4.3.354 → 4.3.355

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.
@@ -1,6 +1,6 @@
1
1
  import * as ResizablePrimitive from "react-resizable-panels";
2
2
  declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
3
- declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLTextAreaElement | HTMLFormElement | HTMLDivElement | HTMLObjectElement | HTMLProgressElement | HTMLDataElement | HTMLHeadElement | HTMLLinkElement | HTMLBodyElement | HTMLMapElement | HTMLMetaElement | HTMLLabelElement | HTMLSourceElement | HTMLOutputElement | HTMLTitleElement | HTMLSlotElement | HTMLStyleElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLAnchorElement | HTMLHeadingElement | HTMLInputElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLMeterElement | HTMLOptGroupElement | HTMLPreElement | HTMLScriptElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLMenuElement | HTMLTableCaptionElement | HTMLPictureElement>, "id" | "onResize"> & {
3
+ declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLTextAreaElement | HTMLFormElement | HTMLDivElement | HTMLObjectElement | HTMLProgressElement | HTMLDataElement | HTMLHeadElement | HTMLLinkElement | HTMLBodyElement | HTMLMapElement | HTMLMetaElement | HTMLLabelElement | HTMLSourceElement | HTMLOutputElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLAnchorElement | HTMLHeadingElement | HTMLInputElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLMeterElement | HTMLOptGroupElement | HTMLPreElement | HTMLScriptElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLMenuElement | HTMLTableCaptionElement | HTMLPictureElement>, "id" | "onResize"> & {
4
4
  className?: string | undefined;
5
5
  collapsedSize?: number | undefined;
6
6
  collapsible?: boolean | undefined;
@@ -68,7 +68,9 @@ interface ThreadStateContextValue {
68
68
  navigateToCheckpoint: (checkpointId: string, checkpointNs?: string | null) => Promise<void>;
69
69
  setCurrentCheckpointId: (checkpointId: string | null, checkpointNs?: string | null) => void;
70
70
  returnToLatest: () => Promise<void>;
71
- loadThread: (threadId: string, checkpointId?: string, checkpointNs?: string) => Promise<void>;
71
+ loadThread: (threadId: string, checkpointId?: string, options?: {
72
+ clearProgress?: boolean;
73
+ }) => Promise<void>;
72
74
  clearThread: () => Promise<void>;
73
75
  respondToInterrupt: (interruptId: string, approved: boolean, value?: unknown) => Promise<void>;
74
76
  messagePreviews: Map<string, string>;
@@ -1,4 +1,5 @@
1
1
  import type { ChatMessage, PendingInterrupt, StreamEvent } from "@/types/api";
2
+ import type { ToolStreamEntry } from "@/types/toolStream";
2
3
  export interface MessagesState {
3
4
  messages: ChatMessage[];
4
5
  assemblingId: string | null;
@@ -7,9 +8,6 @@ export interface MessagesState {
7
8
  toolIndex: Record<string, string>;
8
9
  toolStreamingMessageId: string | null;
9
10
  toolStreamingStack: string[];
10
- lastBranch: Extract<StreamEvent, {
11
- type: "branch";
12
- }> | null;
13
11
  pendingInterrupt: PendingInterrupt;
14
12
  toolTimelines: Record<string, ToolStreamEntry[]>;
15
13
  messagesStreamMeta?: Record<string, {
@@ -74,20 +72,4 @@ export declare function useMessagesReducer(initial?: ChatMessage[]): {
74
72
  readonly state: MessagesState;
75
73
  readonly dispatch: import("react").Dispatch<MessagesAction>;
76
74
  };
77
- type ToolStreamEntryType = "tool.start" | "tool.call" | "progress" | "custom" | "tool.end";
78
- interface ToolStreamEntry {
79
- id: string;
80
- idx: number;
81
- type: ToolStreamEntryType;
82
- toolId?: string;
83
- toolName?: string;
84
- step?: string | null;
85
- title?: string | null;
86
- content?: string | null;
87
- factsFound?: number | null;
88
- isSufficient?: boolean | null;
89
- metadata?: Record<string, unknown>;
90
- timestamp: string;
91
- }
92
75
  export declare function computeSuffix(existing: string, incoming: string): string;
93
- export {};