teodor-new-chat-ui 4.3.398 → 4.3.400
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/{hooks/checkpoints → features/checkpoint/hooks}/index.d.ts +0 -1
- package/dist/{hooks/checkpoints → features/checkpoint/hooks}/useCheckpointIndex.d.ts +1 -1
- package/dist/{hooks/checkpoints → features/checkpoint/hooks}/useMessageMetadata.d.ts +2 -2
- package/dist/features/checkpoint/index.d.ts +4 -0
- package/dist/{types/checkpoints.d.ts → features/checkpoint/types.d.ts} +1 -0
- package/dist/{lib → features/checkpoint/utils}/attemptDetection.d.ts +2 -2
- package/dist/{lib → features/checkpoint/utils}/checkpointIndex.d.ts +1 -1
- package/dist/features/checkpoint/utils/index.d.ts +7 -0
- package/dist/{lib → features/checkpoint/utils}/messageMetadataResolver.d.ts +2 -2
- package/dist/{lib → features/checkpoint/utils}/messagePreviews.d.ts +1 -1
- 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/contexts/providers/index.d.ts +2 -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 +4 -3
- package/dist/features/core/types/index.d.ts +8 -0
- package/dist/features/core/types/models.d.ts +202 -0
- package/dist/features/core/types/requests.d.ts +22 -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 -1
- package/dist/{components → features/messaging/components}/chat/MessageList.d.ts +2 -2
- package/dist/{components → features/messaging/components}/chat/MessageRow.d.ts +2 -2
- package/dist/features/messaging/index.d.ts +12 -0
- package/dist/features/messaging/utils/markdown.worker.d.ts +1 -0
- package/dist/{context/providers/ChatSessionProvider.d.ts → features/streaming/contexts/StreamingProvider.d.ts} +9 -9
- package/dist/features/streaming/contexts/index.d.ts +3 -0
- package/dist/{context → 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 +101 -0
- package/dist/{hooks → features/thread/hooks}/useThreadHistoryState.d.ts +5 -5
- package/dist/{hooks → features/thread/hooks}/useThreadsState.d.ts +2 -2
- package/dist/features/thread/index.d.ts +2 -0
- package/dist/{components → features/ui/components}/ui/carousel.d.ts +2 -2
- package/dist/{components → features/ui/components}/ui/pagination.d.ts +1 -1
- package/dist/features/ui/components/ui/resizable.d.ts +23 -0
- package/dist/{components → features/ui/components}/ui/sidebar.d.ts +2 -2
- package/dist/features/ui/components/ui/use-toast.d.ts +2 -0
- package/dist/features/ui/hooks/index.d.ts +2 -0
- package/dist/{hooks → features/ui/hooks}/use-toast.d.ts +4 -4
- package/dist/features/ui/index.d.ts +17 -0
- package/dist/features/ui/utils/index.d.ts +1 -0
- package/dist/index.esm.js +13985 -12997
- package/dist/index.umd.js +49 -48
- package/dist/lib/index.d.ts +8 -27
- package/dist/types/events.d.ts +1 -90
- package/dist/types/index.d.ts +1 -3
- package/dist/types/models.d.ts +1 -226
- package/dist/types/requests.d.ts +1 -15
- package/package.json +1 -1
- package/dist/components/ui/resizable.d.ts +0 -23
- 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/types.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}/ResearchTaskArtifact.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/{components/settings → features/settings/components}/ChatSettings.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/accordion.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/alert-dialog.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/alert.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/aspect-ratio.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/avatar.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/badge.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/breadcrumb.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/button.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/calendar.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/card.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/chart.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/checkbox.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/collapsible.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/command.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/context-menu.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/dialog.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/drawer.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/dropdown-menu.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/form.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/hover-card.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/input-otp.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/menubar.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/navigation-menu.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/popover.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/progress.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/radio-group.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/skeleton.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/slider.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/table.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/tabs.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/toggle-group.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/toggle.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/tooltip.d.ts +0 -0
- /package/dist/{hooks → features/ui/hooks}/use-mobile.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,30 +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 { buildCheckpointIndex } from './checkpointIndex';
|
|
27
|
-
export type { CheckpointIndex } from './checkpointIndex';
|
|
28
|
-
export type { ChatAppProps, SimpleChatProps } from '../components/chat/ChatApp';
|
|
29
|
-
export type { ChatProvidersProps } from '../context/ChatProviders';
|
|
30
|
-
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
package/dist/types/models.d.ts
CHANGED
|
@@ -1,226 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type TextPart = {
|
|
3
|
-
type: "text";
|
|
4
|
-
text: string;
|
|
5
|
-
};
|
|
6
|
-
export type ImagePart = {
|
|
7
|
-
type: "image_url";
|
|
8
|
-
url: string;
|
|
9
|
-
mimeType?: string;
|
|
10
|
-
alt?: string;
|
|
11
|
-
};
|
|
12
|
-
export type FilePart = {
|
|
13
|
-
type: "file";
|
|
14
|
-
url: string;
|
|
15
|
-
mimeType?: string;
|
|
16
|
-
name?: string;
|
|
17
|
-
size?: number;
|
|
18
|
-
sourceType?: string;
|
|
19
|
-
};
|
|
20
|
-
export type ToolCallPart = {
|
|
21
|
-
type: "tool_call";
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
args: Record<string, unknown>;
|
|
25
|
-
};
|
|
26
|
-
export type InterruptPart = {
|
|
27
|
-
type: "interrupt";
|
|
28
|
-
value?: any;
|
|
29
|
-
[key: string]: unknown;
|
|
30
|
-
};
|
|
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
|
-
export type PlotData = {
|
|
37
|
-
format?: string;
|
|
38
|
-
content_base64?: string;
|
|
39
|
-
url?: string;
|
|
40
|
-
mimeType?: string;
|
|
41
|
-
mime_type?: string;
|
|
42
|
-
plotId?: string;
|
|
43
|
-
artifactId?: string;
|
|
44
|
-
[key: string]: unknown;
|
|
45
|
-
};
|
|
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
|
-
export interface MessageArtifact {
|
|
51
|
-
plots?: PlotData[];
|
|
52
|
-
[key: string]: unknown;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* UI rendering type for displaying a single artifact/plot.
|
|
56
|
-
* Converts from PlotData (with base64 or URL) to src attribute.
|
|
57
|
-
*/
|
|
58
|
-
export type ArtifactPreview = {
|
|
59
|
-
src: string;
|
|
60
|
-
alt: string;
|
|
61
|
-
label?: string;
|
|
62
|
-
};
|
|
63
|
-
export interface ChatMessage {
|
|
64
|
-
id: string;
|
|
65
|
-
role: Role;
|
|
66
|
-
content: MessagePart[];
|
|
67
|
-
name?: string;
|
|
68
|
-
model?: string;
|
|
69
|
-
createdAt?: string;
|
|
70
|
-
checkpointId?: string;
|
|
71
|
-
checkpointNs?: string;
|
|
72
|
-
artifact?: MessageArtifact;
|
|
73
|
-
additionalKwargs?: Record<string, unknown>;
|
|
74
|
-
responseMetadata?: Record<string, unknown>;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Default/welcome message type for rendering initial instructions
|
|
78
|
-
* Markdown content is automatically rendered with proper theme support
|
|
79
|
-
*/
|
|
80
|
-
export interface DefaultMessage {
|
|
81
|
-
id: "default-message";
|
|
82
|
-
role: "assistant";
|
|
83
|
-
type: "default_message";
|
|
84
|
-
content: string;
|
|
85
|
-
createdAt?: string;
|
|
86
|
-
}
|
|
87
|
-
export interface PregelTask {
|
|
88
|
-
id: string;
|
|
89
|
-
name: string;
|
|
90
|
-
path?: string[];
|
|
91
|
-
error?: string | null;
|
|
92
|
-
interrupts?: unknown[];
|
|
93
|
-
state?: unknown;
|
|
94
|
-
[key: string]: unknown;
|
|
95
|
-
}
|
|
96
|
-
export type PendingInterrupt = {
|
|
97
|
-
id: string;
|
|
98
|
-
value: unknown;
|
|
99
|
-
} | null;
|
|
100
|
-
export interface StateSnapshot {
|
|
101
|
-
values: Record<string, unknown>;
|
|
102
|
-
next: string[];
|
|
103
|
-
config?: {
|
|
104
|
-
configurable?: Record<string, unknown>;
|
|
105
|
-
} | null;
|
|
106
|
-
metadata?: Record<string, unknown> | null;
|
|
107
|
-
created_at?: string;
|
|
108
|
-
createdAt?: string;
|
|
109
|
-
parent_config?: {
|
|
110
|
-
configurable?: Record<string, unknown>;
|
|
111
|
-
} | null;
|
|
112
|
-
parentConfig?: {
|
|
113
|
-
configurable?: Record<string, unknown>;
|
|
114
|
-
} | null;
|
|
115
|
-
tasks?: PregelTask[] | null;
|
|
116
|
-
interrupts?: unknown[] | null;
|
|
117
|
-
}
|
|
118
|
-
export interface HydratedCheckpointSnapshot {
|
|
119
|
-
messages: ChatMessage[];
|
|
120
|
-
checkpointId: string | null;
|
|
121
|
-
checkpointNs: string | null;
|
|
122
|
-
createdAt: string;
|
|
123
|
-
parentId: string | null;
|
|
124
|
-
interrupt: PendingInterrupt;
|
|
125
|
-
metadata: {
|
|
126
|
-
step: number;
|
|
127
|
-
source: string | null;
|
|
128
|
-
[key: string]: unknown;
|
|
129
|
-
};
|
|
130
|
-
config?: Record<string, unknown> | null;
|
|
131
|
-
parentConfig?: Record<string, unknown> | null;
|
|
132
|
-
next?: unknown[] | null;
|
|
133
|
-
tasks?: PregelTask[] | null;
|
|
134
|
-
nextCursor?: string | null;
|
|
135
|
-
nextCursorNs?: string | null;
|
|
136
|
-
}
|
|
137
|
-
export interface HistoryPayload {
|
|
138
|
-
version: "chat-history@1";
|
|
139
|
-
threadId: string;
|
|
140
|
-
checkpoints: StateSnapshot[];
|
|
141
|
-
}
|
|
142
|
-
export interface CheckpointList {
|
|
143
|
-
thread_id: string;
|
|
144
|
-
items: HydratedCheckpointSnapshot[];
|
|
145
|
-
}
|
|
146
|
-
export interface StatePayload {
|
|
147
|
-
threadId: string;
|
|
148
|
-
checkpointId?: string;
|
|
149
|
-
state: unknown;
|
|
150
|
-
}
|
|
151
|
-
export interface Envelope<T = unknown> {
|
|
152
|
-
protocolVersion: "v1";
|
|
153
|
-
data: T;
|
|
154
|
-
}
|
|
155
|
-
export interface ThreadSummary {
|
|
156
|
-
threadId: string;
|
|
157
|
-
title: string;
|
|
158
|
-
createdAt: string;
|
|
159
|
-
updatedAt: string;
|
|
160
|
-
messageCount: number;
|
|
161
|
-
}
|
|
162
|
-
export interface SharedThreadSummary extends ThreadSummary {
|
|
163
|
-
shareId: string;
|
|
164
|
-
sharedByUserId: string;
|
|
165
|
-
sharedAt: string;
|
|
166
|
-
}
|
|
167
|
-
export interface ThreadShareResponse {
|
|
168
|
-
shareId: string;
|
|
169
|
-
threadId: string;
|
|
170
|
-
sharedByUserId: string;
|
|
171
|
-
sharedWithUserId: string;
|
|
172
|
-
sharedAt: string;
|
|
173
|
-
}
|
|
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
|
-
export interface ThreadShareTarget {
|
|
180
|
-
id: string;
|
|
181
|
-
label: string;
|
|
182
|
-
secondaryLabel?: string;
|
|
183
|
-
metadata?: Record<string, unknown>;
|
|
184
|
-
}
|
|
185
|
-
export interface ThreadInfo extends ThreadSummary {
|
|
186
|
-
lastMessage?: string | null;
|
|
187
|
-
}
|
|
188
|
-
export interface AgentSummary {
|
|
189
|
-
agentId: string;
|
|
190
|
-
name: string;
|
|
191
|
-
stateValue?: string | null;
|
|
192
|
-
description?: string | null;
|
|
193
|
-
}
|
|
194
|
-
export interface AgentList {
|
|
195
|
-
items: AgentSummary[];
|
|
196
|
-
}
|
|
197
|
-
export interface AgentDetail extends AgentSummary {
|
|
198
|
-
transferBackTo: string[];
|
|
199
|
-
transferForwardTo: string[];
|
|
200
|
-
transferReasons: Record<string, string>;
|
|
201
|
-
handoffQuestions: Record<string, string>;
|
|
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>;
|
|
210
|
-
}
|
|
211
|
-
export interface ExcelColumnSchema {
|
|
212
|
-
name: string;
|
|
213
|
-
sqlType: string;
|
|
214
|
-
nullable: boolean;
|
|
215
|
-
example?: string | null;
|
|
216
|
-
}
|
|
217
|
-
export interface ExcelSheetSchema {
|
|
218
|
-
sheetName: string;
|
|
219
|
-
tableName: string;
|
|
220
|
-
columns: ExcelColumnSchema[];
|
|
221
|
-
rowCount: number;
|
|
222
|
-
}
|
|
223
|
-
export interface ExcelUploadResponse {
|
|
224
|
-
status: "ok";
|
|
225
|
-
sheets: ExcelSheetSchema[];
|
|
226
|
-
}
|
|
1
|
+
export * from "@/features/core/types/models";
|
package/dist/types/requests.d.ts
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { TimelineCheckpoint } from "@/hooks/checkpoints";
|
|
3
|
-
export interface ChatRequest {
|
|
4
|
-
threadId?: string | null;
|
|
5
|
-
payload?: Record<string, unknown>;
|
|
6
|
-
checkpointId?: string | null;
|
|
7
|
-
checkpointNs?: string | null;
|
|
8
|
-
nodeFilter?: string | string[] | null;
|
|
9
|
-
config?: Record<string, unknown>;
|
|
10
|
-
edit?: boolean;
|
|
11
|
-
branchLabel?: string;
|
|
12
|
-
active_agent?: string;
|
|
13
|
-
command?: StreamCommand | null;
|
|
14
|
-
timelineCheckpoints?: TimelineCheckpoint[];
|
|
15
|
-
}
|
|
1
|
+
export * from "@/features/core/types/requests";
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as ResizablePrimitive from "react-resizable-panels";
|
|
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 | HTMLParagraphElement | HTMLObjectElement | HTMLSourceElement | HTMLMapElement | HTMLDataElement | HTMLHeadElement | HTMLLinkElement | HTMLBodyElement | HTMLMetaElement | HTMLTitleElement | HTMLImageElement | HTMLLabelElement | HTMLOutputElement | HTMLSlotElement | HTMLStyleElement | HTMLDialogElement | HTMLOptionElement | HTMLTableElement | HTMLAnchorElement | HTMLHeadingElement | HTMLInputElement | HTMLLIElement | HTMLOListElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLMeterElement | HTMLOptGroupElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLMenuElement | HTMLTableCaptionElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
4
|
-
className?: string | undefined;
|
|
5
|
-
collapsedSize?: number | undefined;
|
|
6
|
-
collapsible?: boolean | undefined;
|
|
7
|
-
defaultSize?: number | undefined;
|
|
8
|
-
id?: string | undefined;
|
|
9
|
-
maxSize?: number | undefined;
|
|
10
|
-
minSize?: number | undefined;
|
|
11
|
-
onCollapse?: ResizablePrimitive.PanelOnCollapse | undefined;
|
|
12
|
-
onExpand?: ResizablePrimitive.PanelOnExpand | undefined;
|
|
13
|
-
onResize?: ResizablePrimitive.PanelOnResize | undefined;
|
|
14
|
-
order?: number | undefined;
|
|
15
|
-
style?: object | undefined;
|
|
16
|
-
tagName?: keyof HTMLElementTagNameMap | undefined;
|
|
17
|
-
} & {
|
|
18
|
-
children?: import("react").ReactNode;
|
|
19
|
-
} & import("react").RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
20
|
-
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
21
|
-
withHandle?: boolean;
|
|
22
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|
package/dist/context/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Context Module - Public API
|
|
3
|
-
*
|
|
4
|
-
* Organized structure:
|
|
5
|
-
* - providers/ - All React Context providers
|
|
6
|
-
* - reducers/ - State management logic
|
|
7
|
-
* - services/ - Non-React utilities used by providers
|
|
8
|
-
* - legacy/ - Deprecated code (to be removed)
|
|
9
|
-
*/
|
|
10
|
-
export { ChatProviders } from './ChatProviders';
|
|
11
|
-
export { ApiProvider, useApi } from './providers/ApiProvider';
|
|
12
|
-
export { ChatSessionProvider, useHasChatSession, useStream, useThreads, useThreadState } from './providers/ChatSessionProvider';
|
|
13
|
-
export { useMessagesReducer } from './reducers/MessageReducer';
|
|
14
|
-
export type { ApiContextValue, CoordinatorOptions, SendOptions, StreamContextValue, ThreadsContextValue, ThreadStateContextValue } from '@/types';
|
package/dist/context/types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { ApiContextValue, CoordinatorOptions, MessageAction, SendOptions, StreamAction, StreamContextValue, StreamEvent, ThreadAction, ThreadsContextValue, ThreadStateContextValue } from '@/types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@/types/checkpoints";
|
package/dist/lib/markdown.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Markdown rendering utilities for chat content
|
|
3
|
-
* Handles basic markdown formatting without external dependencies
|
|
4
|
-
*/
|
|
5
|
-
interface MarkdownOptions {
|
|
6
|
-
escapeHtml?: boolean;
|
|
7
|
-
breaks?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Decode HTML entities back to plain text
|
|
11
|
-
*/
|
|
12
|
-
export declare function decodeHtmlEntities(content: string): string;
|
|
13
|
-
/**
|
|
14
|
-
* Process HTML content by decoding HTML entities
|
|
15
|
-
*/
|
|
16
|
-
export declare function processHtmlContent(content: string): string;
|
|
17
|
-
/**
|
|
18
|
-
* Simple markdown renderer for chat content
|
|
19
|
-
*/
|
|
20
|
-
export declare function renderMarkdown(content: string, options?: MarkdownOptions): string;
|
|
21
|
-
/**
|
|
22
|
-
* Check if content contains HTML tags or HTML entities
|
|
23
|
-
*/
|
|
24
|
-
export declare function isHtmlContent(content: string): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Check if content looks like markdown
|
|
27
|
-
*/
|
|
28
|
-
export declare function isMarkdownContent(content: string): boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Check if content should be rendered as HTML (either markdown or HTML)
|
|
31
|
-
*/
|
|
32
|
-
export declare function shouldRenderAsHtml(content: string): boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Sanitize HTML content
|
|
35
|
-
*/
|
|
36
|
-
export declare function sanitizeHtml(html: string): string;
|
|
37
|
-
/**
|
|
38
|
-
* React hook for rendering markdown content safely
|
|
39
|
-
*/
|
|
40
|
-
export declare function useMarkdownRenderer(): {
|
|
41
|
-
renderContent: (content: string, options?: MarkdownOptions) => string;
|
|
42
|
-
isMarkdownContent: typeof isMarkdownContent;
|
|
43
|
-
isHtmlContent: typeof isHtmlContent;
|
|
44
|
-
shouldRenderAsHtml: typeof shouldRenderAsHtml;
|
|
45
|
-
};
|
|
46
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type ToolStreamEntryType = "tool.start" | "tool.call" | "tool.progress" | "custom" | "tool.end";
|
|
2
|
-
export interface ToolStreamEntry {
|
|
3
|
-
id: string;
|
|
4
|
-
idx: number;
|
|
5
|
-
type: ToolStreamEntryType;
|
|
6
|
-
toolId?: string;
|
|
7
|
-
toolName?: string;
|
|
8
|
-
content?: string | null;
|
|
9
|
-
metadata?: Record<string, unknown>;
|
|
10
|
-
timestamp: string;
|
|
11
|
-
}
|
package/dist/utils/env.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare function isProductionEnv(): boolean;
|
|
2
|
-
export declare function isDevEnv(): boolean;
|
|
3
|
-
/**
|
|
4
|
-
* Check if debug logging is enabled via window.__ARTIFACT_DEBUG__
|
|
5
|
-
* Set this flag to true in your consuming app to enable debug logs in production
|
|
6
|
-
* Example in MainLayout: window.__ARTIFACT_DEBUG__ = true;
|
|
7
|
-
*/
|
|
8
|
-
export declare function isDebugLoggingEnabled(): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Combined check: show logs if either in dev mode OR if debug flag is enabled
|
|
11
|
-
*/
|
|
12
|
-
export declare function shouldShowLogs(): boolean;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|