teodor-new-chat-ui 4.3.397 → 4.3.399
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/features/checkpoint/components/TimelineColumn.d.ts +12 -0
- package/dist/features/checkpoint/components/index.d.ts +1 -0
- package/dist/features/checkpoint/hooks/index.d.ts +2 -0
- package/dist/features/checkpoint/hooks/useCheckpointIndex.d.ts +2 -0
- package/dist/features/checkpoint/hooks/useMessageMetadata.d.ts +18 -0
- package/dist/features/checkpoint/index.d.ts +4 -0
- package/dist/features/checkpoint/types.d.ts +34 -0
- package/dist/{lib → features/checkpoint/utils}/attemptDetection.d.ts +2 -6
- package/dist/features/checkpoint/utils/checkpointIndex.d.ts +15 -0
- package/dist/features/checkpoint/utils/index.d.ts +7 -0
- package/dist/features/checkpoint/utils/messageMetadataResolver.d.ts +32 -0
- package/dist/{lib → features/checkpoint/utils}/messagePreviews.d.ts +1 -0
- package/dist/{api/chat-api.d.ts → features/core/api/clients/chatClient.d.ts} +2 -3
- package/dist/features/core/api/clients/index.d.ts +2 -0
- package/dist/features/core/api/index.d.ts +2 -0
- package/dist/features/core/api/utils/index.d.ts +1 -0
- package/dist/{config → features/core/constants}/env.d.ts +1 -1
- package/dist/features/core/constants/index.d.ts +1 -0
- package/dist/{context → features/core/contexts}/ChatProviders.d.ts +2 -3
- package/dist/features/core/contexts/index.d.ts +6 -0
- package/dist/{context → features/core/contexts}/providers/ApiProvider.d.ts +1 -1
- package/dist/features/core/contexts/providers/ChatSessionProvider.d.ts +1 -0
- package/dist/features/core/hooks/index.d.ts +2 -0
- package/dist/features/core/index.d.ts +6 -0
- package/dist/{types → features/core/types}/context.d.ts +3 -3
- package/dist/features/core/types/index.d.ts +7 -0
- package/dist/features/core/utils/index.d.ts +1 -0
- package/dist/{components → features/messaging/components}/chat/ChatApp.d.ts +1 -2
- package/dist/{components → features/messaging/components}/chat/MessageComponent.d.ts +1 -2
- package/dist/{components → features/messaging/components}/chat/MessageList.d.ts +3 -11
- package/dist/{components → features/messaging/components}/chat/MessageRow.d.ts +3 -10
- package/dist/features/messaging/index.d.ts +12 -0
- package/dist/{context/providers/ChatSessionProvider.d.ts → features/streaming/contexts/StreamingProvider.d.ts} +10 -8
- package/dist/features/streaming/contexts/index.d.ts +3 -0
- package/dist/{context/services/streaming → features/streaming/contexts/services}/use-streaming-service.d.ts +3 -12
- package/dist/features/streaming/index.d.ts +3 -0
- package/dist/features/streaming/utils/index.d.ts +1 -0
- package/dist/features/streaming/utils/types.d.ts +109 -0
- package/dist/{hooks → features/thread/hooks}/useThreadHistoryState.d.ts +5 -3
- package/dist/{hooks → features/thread/hooks}/useThreadsState.d.ts +2 -2
- package/dist/features/thread/index.d.ts +2 -0
- package/dist/{hooks → features/ui/hooks}/use-toast.d.ts +3 -3
- package/dist/features/ui/index.d.ts +17 -0
- package/dist/features/ui/utils/index.d.ts +1 -0
- package/dist/index.esm.js +12635 -11688
- package/dist/index.umd.js +49 -48
- package/dist/lib/index.d.ts +8 -25
- package/dist/types/events.d.ts +1 -90
- package/dist/types/index.d.ts +1 -3
- package/dist/types/marked.d.ts +11 -0
- package/dist/types/models.d.ts +80 -104
- package/dist/types/requests.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/chat/message-components/artifacts/ResearchTaskArtifact.d.ts +0 -20
- package/dist/components/settings/ChatSettings.d.ts +0 -30
- package/dist/components/ui/accordion.d.ts +0 -7
- package/dist/components/ui/alert-dialog.d.ts +0 -20
- package/dist/components/ui/alert.d.ts +0 -8
- package/dist/components/ui/aspect-ratio.d.ts +0 -3
- package/dist/components/ui/avatar.d.ts +0 -6
- package/dist/components/ui/breadcrumb.d.ts +0 -19
- package/dist/components/ui/calendar.d.ts +0 -8
- package/dist/components/ui/carousel.d.ts +0 -18
- package/dist/components/ui/chart.d.ts +0 -62
- package/dist/components/ui/checkbox.d.ts +0 -4
- package/dist/components/ui/collapsible.d.ts +0 -5
- package/dist/components/ui/context-menu.d.ts +0 -27
- package/dist/components/ui/drawer.d.ts +0 -22
- package/dist/components/ui/form.d.ts +0 -23
- package/dist/components/ui/hover-card.d.ts +0 -6
- package/dist/components/ui/input-otp.d.ts +0 -34
- package/dist/components/ui/menubar.d.ts +0 -28
- package/dist/components/ui/navigation-menu.d.ts +0 -12
- package/dist/components/ui/pagination.d.ts +0 -28
- package/dist/components/ui/popover.d.ts +0 -6
- package/dist/components/ui/progress.d.ts +0 -4
- package/dist/components/ui/radio-group.d.ts +0 -5
- package/dist/components/ui/resizable.d.ts +0 -23
- package/dist/components/ui/sidebar.d.ts +0 -66
- package/dist/components/ui/skeleton.d.ts +0 -2
- package/dist/components/ui/slider.d.ts +0 -4
- package/dist/components/ui/table.d.ts +0 -10
- package/dist/components/ui/tabs.d.ts +0 -7
- package/dist/components/ui/toggle-group.d.ts +0 -12
- package/dist/components/ui/toggle.d.ts +0 -12
- package/dist/components/ui/use-toast.d.ts +0 -2
- package/dist/context/index.d.ts +0 -14
- package/dist/context/types.d.ts +0 -1
- package/dist/hooks/checkpoints/index.d.ts +0 -4
- package/dist/hooks/checkpoints/types.d.ts +0 -14
- package/dist/hooks/checkpoints/useCheckpointMetadata.d.ts +0 -33
- package/dist/hooks/checkpoints/useCheckpointSelectors.d.ts +0 -24
- package/dist/hooks/checkpoints/useMessageMetadata.d.ts +0 -39
- package/dist/hooks/use-mobile.d.ts +0 -1
- package/dist/lib/markdown.d.ts +0 -46
- package/dist/types/toolStream.d.ts +0 -11
- package/dist/utils/env.d.ts +0 -12
- /package/dist/{lib → features/checkpoint/utils}/historyUtils.d.ts +0 -0
- /package/dist/{lib → features/checkpoint/utils}/schemaUtils.d.ts +0 -0
- /package/dist/{api/file-api.d.ts → features/core/api/clients/fileClient.d.ts} +0 -0
- /package/dist/{api/utils.d.ts → features/core/api/utils/http.d.ts} +0 -0
- /package/dist/{lib → features/core/utils}/chatUtils.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/ChatInput.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/ChatInterface.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/FileViewerModal.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/MarkdownContent.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/ThreadManager.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/ArtifactRenderer.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/InterruptPartRenderer.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/SimpleJsonView.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/StreamProgress.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/ToolComponent.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/UserTextContent.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/artifacts/PlotArtifact.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message/artifacts}/ResearchTaskArtifact.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/index.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/useFilePreview.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/threads/ThreadListItem.d.ts +0 -0
- /package/dist/{lib → features/messaging/utils}/messageHelpers.d.ts +0 -0
- /package/dist/{lib → features/messaging/utils}/messageUtils.d.ts +0 -0
- /package/dist/{context → features/streaming/contexts}/reducers/MessageReducer.d.ts +0 -0
- /package/dist/{context → features/streaming/contexts}/reducers/utils/reducerUtils.d.ts +0 -0
- /package/dist/{hooks → features/streaming/hooks}/use-stream.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/badge.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/button.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/card.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/command.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/dialog.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/dropdown-menu.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/input.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/label.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/scroll-area.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/select.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/separator.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/sheet.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/sonner.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/switch.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/textarea.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/toast.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/toaster.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/tooltip.d.ts +0 -0
- /package/dist/{lib/utils.d.ts → features/ui/utils/cn.d.ts} +0 -0
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,28 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Chat Components - Clean public API exports
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export {
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export type { MessageComponentProps } from '../components/chat/MessageComponent';
|
|
13
|
-
export { MessageList } from '../components/chat/MessageList';
|
|
14
|
-
export type { MessageListProps } from '../components/chat/MessageList';
|
|
15
|
-
export { ThreadManager } from '../components/chat/ThreadManager';
|
|
16
|
-
export { useMessagesReducer } from '@/context/reducers/MessageReducer';
|
|
17
|
-
export { useStream as useChatStream } from '@/hooks/use-stream';
|
|
18
|
-
export { ChatApi, chatApiClient } from '../api/chat-api';
|
|
19
|
-
export { applySettings, getCurrentSettings, getDefaultApiConfig, getDefaultChatSettings } from "@/config/env";
|
|
20
|
-
export type { ChatConfig } from "@/config/env";
|
|
21
|
-
export { del, get, getChatToken, onChatTokenChanged, post, put, setChatToken } from '../api/utils';
|
|
22
|
-
export { ChatSettings } from '@/components/settings/ChatSettings';
|
|
23
|
-
export type { ChatSettingsConfig } from '@/components/settings/ChatSettings';
|
|
24
|
-
export type { ChatMessage, ChatRequest, StateSnapshot, HistoryPayload, HydratedCheckpointSnapshot, MessagePart, PregelTask, Role, StreamEvent, TextPart, ThreadInfo, ThreadShareTarget, ThreadSummary, ToolEndEvent } from '@/types';
|
|
25
|
-
export { buildMessagePreviewMap } from './messagePreviews';
|
|
26
|
-
export type { ChatAppProps, SimpleChatProps } from '../components/chat/ChatApp';
|
|
27
|
-
export type { ChatProvidersProps } from '../context/ChatProviders';
|
|
28
|
-
export { ChatApp as default } from '../components/chat/ChatApp';
|
|
4
|
+
export * from "../features/checkpoint";
|
|
5
|
+
export * from "../features/messaging";
|
|
6
|
+
export { useStream as useStreamingHook } from "../features/streaming";
|
|
7
|
+
export * from "../features/thread";
|
|
8
|
+
export * from "../features/ui";
|
|
9
|
+
export * from "../features/core";
|
|
10
|
+
export type { ChatMessage, ChatRequest, StateSnapshot, HistoryPayload, HydratedCheckpointSnapshot, MessagePart, PregelTask, Role, StreamEvent, TextPart, ThreadInfo, ThreadShareTarget, ThreadSummary, ToolEndEvent, } from '@/types';
|
|
11
|
+
export { ChatApp as default } from "../features/messaging/components/chat/ChatApp";
|
package/dist/types/events.d.ts
CHANGED
|
@@ -1,90 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export type StreamCommand = {
|
|
3
|
-
kind: "resume";
|
|
4
|
-
value: unknown;
|
|
5
|
-
} | {
|
|
6
|
-
kind: "goto";
|
|
7
|
-
node: string;
|
|
8
|
-
value?: unknown;
|
|
9
|
-
};
|
|
10
|
-
type ToolEventIdentity = {
|
|
11
|
-
id: string;
|
|
12
|
-
call_id?: string;
|
|
13
|
-
} | {
|
|
14
|
-
call_id: string;
|
|
15
|
-
id?: string;
|
|
16
|
-
};
|
|
17
|
-
export type ToolStartEvent = {
|
|
18
|
-
type: "tool.start";
|
|
19
|
-
args: Record<string, unknown>;
|
|
20
|
-
name?: string;
|
|
21
|
-
tool?: string;
|
|
22
|
-
seq?: number;
|
|
23
|
-
} & ToolEventIdentity;
|
|
24
|
-
export type ToolEndEvent = {
|
|
25
|
-
type: "tool.end";
|
|
26
|
-
output: unknown;
|
|
27
|
-
artifact?: unknown;
|
|
28
|
-
error?: string;
|
|
29
|
-
name?: string;
|
|
30
|
-
tool?: string;
|
|
31
|
-
seq?: number;
|
|
32
|
-
} & ToolEventIdentity;
|
|
33
|
-
export type ToolProgressEvent = {
|
|
34
|
-
type: "tool.progress";
|
|
35
|
-
content?: string;
|
|
36
|
-
seq?: number;
|
|
37
|
-
};
|
|
38
|
-
export type MessageStreamEvent = {
|
|
39
|
-
type: "message.start";
|
|
40
|
-
role: "assistant";
|
|
41
|
-
id: string;
|
|
42
|
-
model?: string;
|
|
43
|
-
} | {
|
|
44
|
-
type: "message.delta";
|
|
45
|
-
delta: MessagePart[];
|
|
46
|
-
} | {
|
|
47
|
-
type: "message.end";
|
|
48
|
-
} | ToolProgressEvent;
|
|
49
|
-
export type ToolStreamEvent = ToolStartEvent | ToolEndEvent;
|
|
50
|
-
export type ThreadStreamEvent = {
|
|
51
|
-
type: "thread_info";
|
|
52
|
-
threadId: string;
|
|
53
|
-
title: string;
|
|
54
|
-
createdAt: string;
|
|
55
|
-
updatedAt: string;
|
|
56
|
-
messageCount: number;
|
|
57
|
-
lastMessage?: string | null;
|
|
58
|
-
created?: boolean | null;
|
|
59
|
-
ready?: boolean | null;
|
|
60
|
-
seq?: number | null;
|
|
61
|
-
} | {
|
|
62
|
-
type: "checkpoint";
|
|
63
|
-
checkpointId: string;
|
|
64
|
-
checkpointNs?: string | null;
|
|
65
|
-
};
|
|
66
|
-
export type SystemStreamEvent = {
|
|
67
|
-
type: "error";
|
|
68
|
-
message: string;
|
|
69
|
-
error_type?: string;
|
|
70
|
-
code?: string;
|
|
71
|
-
} | {
|
|
72
|
-
type: "interrupt";
|
|
73
|
-
id: string;
|
|
74
|
-
value: any;
|
|
75
|
-
seq: number;
|
|
76
|
-
} | {
|
|
77
|
-
type: "heartbeat";
|
|
78
|
-
timestamp: number;
|
|
79
|
-
seq: number;
|
|
80
|
-
} | {
|
|
81
|
-
type: "cancelled";
|
|
82
|
-
reason?: string;
|
|
83
|
-
seq?: number;
|
|
84
|
-
} | ({
|
|
85
|
-
type: "state_history";
|
|
86
|
-
seq?: number;
|
|
87
|
-
} & HistoryPayload);
|
|
88
|
-
export type StreamEvent = MessageStreamEvent | ToolStreamEvent | ThreadStreamEvent | SystemStreamEvent;
|
|
89
|
-
export declare function isStreamEvent(obj: any): obj is StreamEvent;
|
|
90
|
-
export {};
|
|
1
|
+
export * from "../features/streaming/utils/types";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare module 'marked' {
|
|
2
|
+
type MarkedFn = ((src: string) => string) & {
|
|
3
|
+
parse?: (src: string) => string;
|
|
4
|
+
};
|
|
5
|
+
export const marked: MarkedFn;
|
|
6
|
+
export const parse: (src: string) => string;
|
|
7
|
+
const markedDefault: MarkedFn & {
|
|
8
|
+
parse: (src: string) => string;
|
|
9
|
+
};
|
|
10
|
+
export default markedDefault;
|
|
11
|
+
}
|
package/dist/types/models.d.ts
CHANGED
|
@@ -29,10 +29,6 @@ export type InterruptPart = {
|
|
|
29
29
|
[key: string]: unknown;
|
|
30
30
|
};
|
|
31
31
|
export type MessagePart = TextPart | ImagePart | FilePart | ToolCallPart | InterruptPart;
|
|
32
|
-
/**
|
|
33
|
-
* Represents a single plot/image artifact from a tool execution.
|
|
34
|
-
* The backend sends plots with base64-encoded image data.
|
|
35
|
-
*/
|
|
36
32
|
export type PlotData = {
|
|
37
33
|
format?: string;
|
|
38
34
|
content_base64?: string;
|
|
@@ -43,18 +39,9 @@ export type PlotData = {
|
|
|
43
39
|
artifactId?: string;
|
|
44
40
|
[key: string]: unknown;
|
|
45
41
|
};
|
|
46
|
-
/**
|
|
47
|
-
* Container for all artifacts (plots, files, etc.) attached to a message.
|
|
48
|
-
* Simplified: plots are stored directly at the top level.
|
|
49
|
-
*/
|
|
50
42
|
export interface MessageArtifact {
|
|
51
|
-
plots?: PlotData[];
|
|
52
43
|
[key: string]: unknown;
|
|
53
44
|
}
|
|
54
|
-
/**
|
|
55
|
-
* UI rendering type for displaying a single artifact/plot.
|
|
56
|
-
* Converts from PlotData (with base64 or URL) to src attribute.
|
|
57
|
-
*/
|
|
58
45
|
export type ArtifactPreview = {
|
|
59
46
|
src: string;
|
|
60
47
|
alt: string;
|
|
@@ -62,35 +49,37 @@ export type ArtifactPreview = {
|
|
|
62
49
|
};
|
|
63
50
|
export interface ChatMessage {
|
|
64
51
|
id: string;
|
|
52
|
+
threadId?: string;
|
|
65
53
|
role: Role;
|
|
66
54
|
content: MessagePart[];
|
|
55
|
+
createdAt: string;
|
|
56
|
+
artifacts?: MessageArtifact[];
|
|
57
|
+
artifactPreviews?: Record<string, ArtifactPreview>;
|
|
58
|
+
edited?: boolean;
|
|
59
|
+
checkpointId?: string | null;
|
|
60
|
+
checkpointNs?: string | null;
|
|
61
|
+
branchLabel?: string;
|
|
62
|
+
toolCalls?: Array<{
|
|
63
|
+
id: string;
|
|
64
|
+
name: string;
|
|
65
|
+
args: Record<string, unknown>;
|
|
66
|
+
}>;
|
|
67
|
+
artifact?: MessageArtifact;
|
|
67
68
|
name?: string;
|
|
68
69
|
model?: string;
|
|
69
|
-
createdAt?: string;
|
|
70
|
-
checkpointId?: string;
|
|
71
|
-
checkpointNs?: string;
|
|
72
|
-
artifact?: MessageArtifact;
|
|
73
70
|
additionalKwargs?: Record<string, unknown>;
|
|
74
71
|
responseMetadata?: Record<string, unknown>;
|
|
72
|
+
__syntheticStreaming?: boolean;
|
|
75
73
|
}
|
|
76
|
-
/**
|
|
77
|
-
* Default/welcome message type for rendering initial instructions
|
|
78
|
-
* Markdown content is automatically rendered with proper theme support
|
|
79
|
-
*/
|
|
80
74
|
export interface DefaultMessage {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
75
|
+
type?: "default_message";
|
|
76
|
+
id?: string;
|
|
77
|
+
threadId?: string;
|
|
78
|
+
role: Role;
|
|
84
79
|
content: string;
|
|
85
80
|
createdAt?: string;
|
|
86
81
|
}
|
|
87
82
|
export interface PregelTask {
|
|
88
|
-
id: string;
|
|
89
|
-
name: string;
|
|
90
|
-
path?: string[];
|
|
91
|
-
error?: string | null;
|
|
92
|
-
interrupts?: unknown[];
|
|
93
|
-
state?: unknown;
|
|
94
83
|
[key: string]: unknown;
|
|
95
84
|
}
|
|
96
85
|
export type PendingInterrupt = {
|
|
@@ -99,58 +88,59 @@ export type PendingInterrupt = {
|
|
|
99
88
|
} | null;
|
|
100
89
|
export interface StateSnapshot {
|
|
101
90
|
values: Record<string, unknown>;
|
|
102
|
-
next
|
|
103
|
-
config?:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
91
|
+
next?: string[];
|
|
92
|
+
config?: Record<string, unknown>;
|
|
93
|
+
metadata?: {
|
|
94
|
+
source?: string;
|
|
95
|
+
step?: number;
|
|
96
|
+
writes?: Record<string, unknown>;
|
|
97
|
+
execution_time?: number;
|
|
98
|
+
};
|
|
99
|
+
tasks?: PregelTask[];
|
|
107
100
|
created_at?: string;
|
|
108
101
|
createdAt?: string;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
} | null;
|
|
112
|
-
parentConfig?: {
|
|
113
|
-
configurable?: Record<string, unknown>;
|
|
114
|
-
} | null;
|
|
115
|
-
tasks?: PregelTask[] | null;
|
|
116
|
-
interrupts?: unknown[] | null;
|
|
102
|
+
parentConfig?: Record<string, unknown>;
|
|
103
|
+
parent_config?: Record<string, unknown>;
|
|
117
104
|
}
|
|
118
105
|
export interface HydratedCheckpointSnapshot {
|
|
119
|
-
messages: ChatMessage[];
|
|
120
106
|
checkpointId: string | null;
|
|
121
107
|
checkpointNs: string | null;
|
|
122
|
-
createdAt: string;
|
|
123
108
|
parentId: string | null;
|
|
109
|
+
createdAt: string;
|
|
110
|
+
messages: ChatMessage[];
|
|
111
|
+
nextCursor: string | null;
|
|
112
|
+
nextCursorNs: string | null;
|
|
124
113
|
interrupt: PendingInterrupt;
|
|
125
114
|
metadata: {
|
|
126
115
|
step: number;
|
|
127
116
|
source: string | null;
|
|
128
117
|
[key: string]: unknown;
|
|
129
118
|
};
|
|
130
|
-
config
|
|
131
|
-
parentConfig
|
|
132
|
-
next
|
|
133
|
-
tasks
|
|
134
|
-
nextCursor?: string | null;
|
|
135
|
-
nextCursorNs?: string | null;
|
|
119
|
+
config: Record<string, unknown> | null;
|
|
120
|
+
parentConfig: Record<string, unknown> | null;
|
|
121
|
+
next: string[] | null;
|
|
122
|
+
tasks: Record<string, unknown>[] | null;
|
|
136
123
|
}
|
|
137
124
|
export interface HistoryPayload {
|
|
138
|
-
version:
|
|
125
|
+
version: string;
|
|
139
126
|
threadId: string;
|
|
140
127
|
checkpoints: StateSnapshot[];
|
|
141
128
|
}
|
|
142
129
|
export interface CheckpointList {
|
|
143
|
-
|
|
144
|
-
|
|
130
|
+
checkpoints: Array<{
|
|
131
|
+
checkpoint_id: string;
|
|
132
|
+
checkpoint_ns: string | null;
|
|
133
|
+
checkpoint_config: Record<string, unknown> | null;
|
|
134
|
+
}>;
|
|
145
135
|
}
|
|
146
136
|
export interface StatePayload {
|
|
147
|
-
|
|
148
|
-
checkpointId?: string;
|
|
149
|
-
state: unknown;
|
|
137
|
+
[key: string]: unknown;
|
|
150
138
|
}
|
|
151
139
|
export interface Envelope<T = unknown> {
|
|
152
|
-
|
|
153
|
-
data
|
|
140
|
+
type?: string;
|
|
141
|
+
data?: T;
|
|
142
|
+
error?: string;
|
|
143
|
+
metadata?: Record<string, unknown>;
|
|
154
144
|
}
|
|
155
145
|
export interface ThreadSummary {
|
|
156
146
|
threadId: string;
|
|
@@ -158,69 +148,55 @@ export interface ThreadSummary {
|
|
|
158
148
|
createdAt: string;
|
|
159
149
|
updatedAt: string;
|
|
160
150
|
messageCount: number;
|
|
151
|
+
lastMessage?: string | null;
|
|
152
|
+
created?: boolean | null;
|
|
153
|
+
ready?: boolean | null;
|
|
161
154
|
}
|
|
162
155
|
export interface SharedThreadSummary extends ThreadSummary {
|
|
163
|
-
shareId: string;
|
|
164
|
-
sharedByUserId: string;
|
|
165
156
|
sharedAt: string;
|
|
157
|
+
sharedBy?: string;
|
|
158
|
+
sharedByUserId?: string;
|
|
166
159
|
}
|
|
167
160
|
export interface ThreadShareResponse {
|
|
168
|
-
|
|
161
|
+
success: boolean;
|
|
169
162
|
threadId: string;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
sharedAt: string;
|
|
163
|
+
shareUrl?: string;
|
|
164
|
+
message?: string;
|
|
173
165
|
}
|
|
174
|
-
/**
|
|
175
|
-
* Generic share target for thread sharing.
|
|
176
|
-
* Allows host applications to define their own user model and map it here.
|
|
177
|
-
* ThreadManager is agnostic to the user model structure.
|
|
178
|
-
*/
|
|
179
166
|
export interface ThreadShareTarget {
|
|
180
|
-
|
|
181
|
-
|
|
167
|
+
type: "email" | "link" | "user";
|
|
168
|
+
value: string;
|
|
169
|
+
id?: string;
|
|
170
|
+
label?: string;
|
|
182
171
|
secondaryLabel?: string;
|
|
183
|
-
|
|
172
|
+
sharedByUserId?: string;
|
|
184
173
|
}
|
|
185
174
|
export interface ThreadInfo extends ThreadSummary {
|
|
186
|
-
|
|
175
|
+
description?: string;
|
|
176
|
+
isArchived?: boolean;
|
|
177
|
+
tags?: string[];
|
|
187
178
|
}
|
|
188
179
|
export interface AgentSummary {
|
|
189
|
-
|
|
180
|
+
id: string;
|
|
190
181
|
name: string;
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
export interface AgentList {
|
|
195
|
-
items: AgentSummary[];
|
|
182
|
+
createdAt: string;
|
|
183
|
+
updatedAt: string;
|
|
196
184
|
}
|
|
197
185
|
export interface AgentDetail extends AgentSummary {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
saveBeforeTransfer: Record<string, boolean>;
|
|
203
|
-
outputStyle?: string | null;
|
|
204
|
-
systemPrompt?: string | null;
|
|
205
|
-
uiDefaultMessage?: string | null;
|
|
206
|
-
}
|
|
207
|
-
export interface AgentSchemaInfo {
|
|
208
|
-
agentId: string;
|
|
209
|
-
schema: Record<string, unknown>;
|
|
186
|
+
description?: string;
|
|
187
|
+
schema?: Record<string, unknown>;
|
|
188
|
+
uiDefaultMessage?: string;
|
|
189
|
+
[key: string]: unknown;
|
|
210
190
|
}
|
|
211
|
-
export interface
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
nullable: boolean;
|
|
215
|
-
example?: string | null;
|
|
191
|
+
export interface AgentList {
|
|
192
|
+
items?: AgentDetail[];
|
|
193
|
+
[key: string]: unknown;
|
|
216
194
|
}
|
|
217
|
-
export interface
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
columns: ExcelColumnSchema[];
|
|
221
|
-
rowCount: number;
|
|
195
|
+
export interface AgentSchemaInfo {
|
|
196
|
+
schema?: Record<string, unknown>;
|
|
197
|
+
[key: string]: unknown;
|
|
222
198
|
}
|
|
199
|
+
export type TokenListener = (token: string | null) => void;
|
|
223
200
|
export interface ExcelUploadResponse {
|
|
224
|
-
|
|
225
|
-
sheets: ExcelSheetSchema[];
|
|
201
|
+
[key: string]: unknown;
|
|
226
202
|
}
|
package/dist/types/requests.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StreamCommand } from "./events";
|
|
2
|
-
import type { TimelineCheckpoint } from "@/
|
|
2
|
+
import type { TimelineCheckpoint } from "@/features/checkpoint/types";
|
|
3
3
|
export interface ChatRequest {
|
|
4
4
|
threadId?: string | null;
|
|
5
5
|
payload?: Record<string, unknown>;
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom artifact renderer for research_task_info type
|
|
3
|
-
* Displays research task status with links and metadata
|
|
4
|
-
*/
|
|
5
|
-
export interface ResearchTaskInfo {
|
|
6
|
-
type: "research_task_info";
|
|
7
|
-
task_id: string;
|
|
8
|
-
progress_url: string;
|
|
9
|
-
query?: string;
|
|
10
|
-
status?: "pending" | "processing" | "completed" | "failed";
|
|
11
|
-
createdAt?: string;
|
|
12
|
-
[key: string]: unknown;
|
|
13
|
-
}
|
|
14
|
-
export interface ResearchTaskArtifactProps {
|
|
15
|
-
artifact: ResearchTaskInfo;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Renders a research task artifact with status badge and action buttons
|
|
19
|
-
*/
|
|
20
|
-
export declare function ResearchTaskArtifact({ artifact }: ResearchTaskArtifactProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Chat Settings Component - Persistent settings with beautiful UI
|
|
3
|
-
* Handles API configuration, layout preferences, and chat behavior
|
|
4
|
-
*/
|
|
5
|
-
export interface ChatSettingsConfig {
|
|
6
|
-
api: {
|
|
7
|
-
baseUrl: string;
|
|
8
|
-
authToken: string;
|
|
9
|
-
enableAuth: boolean;
|
|
10
|
-
};
|
|
11
|
-
ui: {
|
|
12
|
-
layout: 'sidebar' | 'fullscreen' | 'tabs';
|
|
13
|
-
theme: 'light' | 'dark' | 'system';
|
|
14
|
-
showTimestamps: boolean;
|
|
15
|
-
showAgentNames: boolean;
|
|
16
|
-
compactMessages: boolean;
|
|
17
|
-
};
|
|
18
|
-
behavior: {
|
|
19
|
-
autoSave: boolean;
|
|
20
|
-
enableStreaming: boolean;
|
|
21
|
-
showTypingIndicator: boolean;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
interface ChatSettingsProps {
|
|
25
|
-
settings: ChatSettingsConfig;
|
|
26
|
-
onSettingsChange: (settings: ChatSettingsConfig) => void;
|
|
27
|
-
className?: string;
|
|
28
|
-
}
|
|
29
|
-
export declare function ChatSettings({ settings, onSettingsChange, className }: ChatSettingsProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
3
|
-
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
-
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
4
|
-
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
-
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
6
|
-
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare const AlertDialogHeader: {
|
|
9
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
12
|
-
declare const AlertDialogFooter: {
|
|
13
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
displayName: string;
|
|
15
|
-
};
|
|
16
|
-
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
17
|
-
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
18
|
-
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
-
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
-
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
|
-
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
-
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
3
|
-
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
-
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
5
|
-
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
-
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
3
|
-
separator?: React.ReactNode;
|
|
4
|
-
} & React.RefAttributes<HTMLElement>>;
|
|
5
|
-
declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
6
|
-
declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
7
|
-
declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
10
|
-
declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
11
|
-
declare const BreadcrumbSeparator: {
|
|
12
|
-
({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
declare const BreadcrumbEllipsis: {
|
|
16
|
-
({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
19
|
-
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { DayPicker } from "react-day-picker";
|
|
3
|
-
export type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
4
|
-
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare namespace Calendar {
|
|
6
|
-
var displayName: string;
|
|
7
|
-
}
|
|
8
|
-
export { Calendar };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react";
|
|
3
|
-
type CarouselApi = UseEmblaCarouselType[1];
|
|
4
|
-
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
5
|
-
type CarouselOptions = UseCarouselParameters[0];
|
|
6
|
-
type CarouselPlugin = UseCarouselParameters[1];
|
|
7
|
-
type CarouselProps = {
|
|
8
|
-
opts?: CarouselOptions;
|
|
9
|
-
plugins?: CarouselPlugin;
|
|
10
|
-
orientation?: "horizontal" | "vertical";
|
|
11
|
-
setApi?: (api: CarouselApi) => void;
|
|
12
|
-
};
|
|
13
|
-
declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import("@/components/ui/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
17
|
-
declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import("@/components/ui/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
-
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
|