@miiflow/assistant-ui 0.2.2 → 0.3.0
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/{WelcomeScreen-YsXZsAwZ.d.ts → WelcomeScreen-DAa22X9b.d.ts} +1 -1
- package/dist/{chunk-POKFMILU.js → chunk-IM4WITWJ.js} +9 -11
- package/dist/chunk-IM4WITWJ.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/styled/index.d.ts +1 -1
- package/dist/styled/index.js +1 -1
- package/dist/styles-no-preflight.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +9 -18
- package/dist/WelcomeScreen-BiY3uGhp.d.cts +0 -301
- package/dist/avatar-CL1hlGO5.d.cts +0 -109
- package/dist/branding-SzYU4ncD.d.cts +0 -18
- package/dist/chunk-3SEVU272.cjs +0 -2
- package/dist/chunk-3SEVU272.cjs.map +0 -1
- package/dist/chunk-HVCCZKEO.cjs +0 -2
- package/dist/chunk-HVCCZKEO.cjs.map +0 -1
- package/dist/chunk-KSMAVBLY.cjs +0 -2
- package/dist/chunk-KSMAVBLY.cjs.map +0 -1
- package/dist/chunk-POKFMILU.js.map +0 -1
- package/dist/chunk-QGRXQAWZ.cjs +0 -22
- package/dist/chunk-QGRXQAWZ.cjs.map +0 -1
- package/dist/chunk-SFEPMZCU.cjs +0 -2
- package/dist/chunk-SFEPMZCU.cjs.map +0 -1
- package/dist/chunk-TOYU46SZ.cjs +0 -2
- package/dist/chunk-TOYU46SZ.cjs.map +0 -1
- package/dist/chunk-ZKMXEECD.cjs +0 -2
- package/dist/chunk-ZKMXEECD.cjs.map +0 -1
- package/dist/client/index.cjs +0 -9
- package/dist/client/index.cjs.map +0 -1
- package/dist/client/index.d.cts +0 -249
- package/dist/context/index.cjs +0 -2
- package/dist/context/index.cjs.map +0 -1
- package/dist/context/index.d.cts +0 -43
- package/dist/hooks/index.cjs +0 -2
- package/dist/hooks/index.cjs.map +0 -1
- package/dist/hooks/index.d.cts +0 -146
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -157
- package/dist/message-9z0crkf9.d.cts +0 -88
- package/dist/primitives/index.cjs +0 -2
- package/dist/primitives/index.cjs.map +0 -1
- package/dist/primitives/index.d.cts +0 -91
- package/dist/streaming-CF63E6iS.d.cts +0 -426
- package/dist/styled/index.cjs +0 -2
- package/dist/styled/index.cjs.map +0 -1
- package/dist/styled/index.d.cts +0 -477
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { S as StreamingChunk, C as ClarificationData } from './streaming-CF63E6iS.cjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Citation source types for AI-generated content.
|
|
5
|
-
*/
|
|
6
|
-
interface SourceReference {
|
|
7
|
-
index: number;
|
|
8
|
-
reference_label: string;
|
|
9
|
-
source_type: string;
|
|
10
|
-
tool_name: string;
|
|
11
|
-
title: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
url?: string;
|
|
14
|
-
document_id?: string;
|
|
15
|
-
tool_execution_id?: string;
|
|
16
|
-
query?: string;
|
|
17
|
-
snippet?: string;
|
|
18
|
-
full_content?: string;
|
|
19
|
-
metadata?: Record<string, unknown>;
|
|
20
|
-
}
|
|
21
|
-
interface SourceTypeConfig {
|
|
22
|
-
label: string;
|
|
23
|
-
color: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
type ParticipantRole = "user" | "assistant" | "system";
|
|
27
|
-
interface Participant {
|
|
28
|
-
id: string;
|
|
29
|
-
name?: string;
|
|
30
|
-
role: ParticipantRole;
|
|
31
|
-
avatarUrl?: string;
|
|
32
|
-
}
|
|
33
|
-
interface Attachment {
|
|
34
|
-
id: string;
|
|
35
|
-
filename: string;
|
|
36
|
-
mimeType: string;
|
|
37
|
-
size: number;
|
|
38
|
-
url?: string;
|
|
39
|
-
previewUrl?: string;
|
|
40
|
-
isImage?: boolean;
|
|
41
|
-
isVideo?: boolean;
|
|
42
|
-
isDocument?: boolean;
|
|
43
|
-
humanReadableSize?: string;
|
|
44
|
-
fileExtension?: string;
|
|
45
|
-
}
|
|
46
|
-
interface MessageError {
|
|
47
|
-
/** Error message to display */
|
|
48
|
-
message: string;
|
|
49
|
-
/** Whether the error is recoverable (e.g. can retry) */
|
|
50
|
-
recoverable?: boolean;
|
|
51
|
-
}
|
|
52
|
-
interface MessageData {
|
|
53
|
-
id: string;
|
|
54
|
-
textContent: string;
|
|
55
|
-
participant?: Participant;
|
|
56
|
-
createdAt: string | Date;
|
|
57
|
-
updatedAt?: string | Date;
|
|
58
|
-
attachments?: Attachment[];
|
|
59
|
-
isStreaming?: boolean;
|
|
60
|
-
metadata?: Record<string, unknown>;
|
|
61
|
-
/** Error associated with this message (e.g. generation failed) */
|
|
62
|
-
error?: MessageError;
|
|
63
|
-
}
|
|
64
|
-
type SuggestedActionType = "send_message" | "navigate" | "copy_text" | "compose_email" | "search_emails" | "open_modal" | "api_call";
|
|
65
|
-
interface SuggestedAction {
|
|
66
|
-
id: string;
|
|
67
|
-
label: string;
|
|
68
|
-
value: string;
|
|
69
|
-
icon?: string;
|
|
70
|
-
type?: SuggestedActionType;
|
|
71
|
-
context?: Record<string, unknown>;
|
|
72
|
-
}
|
|
73
|
-
interface ChatMessage extends MessageData {
|
|
74
|
-
suggestedActions?: SuggestedAction[];
|
|
75
|
-
reasoning?: StreamingChunk[];
|
|
76
|
-
citations?: SourceReference[];
|
|
77
|
-
pendingClarification?: ClarificationData;
|
|
78
|
-
/** Wall-clock execution time in seconds (persisted after streaming completes) */
|
|
79
|
-
executionTime?: number;
|
|
80
|
-
}
|
|
81
|
-
interface ReasoningChunk {
|
|
82
|
-
id: string;
|
|
83
|
-
type: "thinking" | "planning" | "executing" | "complete";
|
|
84
|
-
content: string;
|
|
85
|
-
timestamp: string | Date;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export type { Attachment as A, ChatMessage as C, MessageData as M, ParticipantRole as P, ReasoningChunk as R, SourceReference as S, MessageError as a, Participant as b, SourceTypeConfig as c, SuggestedAction as d, SuggestedActionType as e };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk3SEVU272_cjs=require('../chunk-3SEVU272.cjs');require('../chunk-TOYU46SZ.cjs');Object.defineProperty(exports,"ActionButton",{enumerable:true,get:function(){return chunk3SEVU272_cjs.q}});Object.defineProperty(exports,"Avatar",{enumerable:true,get:function(){return chunk3SEVU272_cjs.l}});Object.defineProperty(exports,"ComposerContext",{enumerable:true,get:function(){return chunk3SEVU272_cjs.g}});Object.defineProperty(exports,"ComposerInput",{enumerable:true,get:function(){return chunk3SEVU272_cjs.j}});Object.defineProperty(exports,"ComposerSubmit",{enumerable:true,get:function(){return chunk3SEVU272_cjs.k}});Object.defineProperty(exports,"Message",{enumerable:true,get:function(){return chunk3SEVU272_cjs.c}});Object.defineProperty(exports,"MessageComposer",{enumerable:true,get:function(){return chunk3SEVU272_cjs.i}});Object.defineProperty(exports,"MessageContent",{enumerable:true,get:function(){return chunk3SEVU272_cjs.d}});Object.defineProperty(exports,"MessageContext",{enumerable:true,get:function(){return chunk3SEVU272_cjs.a}});Object.defineProperty(exports,"MessageList",{enumerable:true,get:function(){return chunk3SEVU272_cjs.f}});Object.defineProperty(exports,"MessageTimestamp",{enumerable:true,get:function(){return chunk3SEVU272_cjs.e}});Object.defineProperty(exports,"StreamingText",{enumerable:true,get:function(){return chunk3SEVU272_cjs.m}});Object.defineProperty(exports,"SuggestedActions",{enumerable:true,get:function(){return chunk3SEVU272_cjs.p}});Object.defineProperty(exports,"SuggestedActionsContext",{enumerable:true,get:function(){return chunk3SEVU272_cjs.n}});Object.defineProperty(exports,"TypingIndicator",{enumerable:true,get:function(){return chunk3SEVU272_cjs.r}});Object.defineProperty(exports,"useComposer",{enumerable:true,get:function(){return chunk3SEVU272_cjs.h}});Object.defineProperty(exports,"useMessage",{enumerable:true,get:function(){return chunk3SEVU272_cjs.b}});Object.defineProperty(exports,"useSuggestedActions",{enumerable:true,get:function(){return chunk3SEVU272_cjs.o}});//# sourceMappingURL=index.cjs.map
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
export { A as Avatar, h as AvatarProps, C as ComposerContext, a as ComposerInput, i as ComposerInputProps, b as ComposerSubmit, j as ComposerSubmitProps, e as Message, M as MessageComposer, k as MessageComposerProps, c as MessageContent, l as MessageContentProps, d as MessageContext, m as MessageProps, f as MessageTimestamp, n as MessageTimestampProps, u as useComposer, g as useMessage } from '../avatar-CL1hlGO5.cjs';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { HTMLAttributes, ReactNode, ButtonHTMLAttributes } from 'react';
|
|
4
|
-
import { d as SuggestedAction } from '../message-9z0crkf9.cjs';
|
|
5
|
-
import '../streaming-CF63E6iS.cjs';
|
|
6
|
-
|
|
7
|
-
interface MessageListProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
-
/** Messages to render */
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
/** Whether to auto-scroll to bottom on new messages */
|
|
11
|
-
autoScroll?: boolean;
|
|
12
|
-
/** Whether the viewport is currently at the bottom (exposed for scroll-to-bottom button) */
|
|
13
|
-
isAtBottom?: boolean;
|
|
14
|
-
/** Callback to receive scroll state updates */
|
|
15
|
-
onIsAtBottomChange?: (isAtBottom: boolean) => void;
|
|
16
|
-
/** Callback to receive scrollToBottom function */
|
|
17
|
-
onScrollToBottomRef?: (scrollToBottom: (behavior?: ScrollBehavior) => void) => void;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Headless MessageList primitive.
|
|
21
|
-
* Provides a scrollable container with auto-scroll behavior.
|
|
22
|
-
* Exposes isAtBottom and scrollToBottom for scroll-to-bottom button integration.
|
|
23
|
-
*/
|
|
24
|
-
declare const MessageList: react.ForwardRefExoticComponent<MessageListProps & react.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
|
|
26
|
-
interface StreamingTextProps extends HTMLAttributes<HTMLDivElement> {
|
|
27
|
-
/** The content to display */
|
|
28
|
-
content: string;
|
|
29
|
-
/** Whether the text is currently streaming */
|
|
30
|
-
isStreaming?: boolean;
|
|
31
|
-
/** Show a cursor indicator while streaming */
|
|
32
|
-
showCursor?: boolean;
|
|
33
|
-
/** Custom cursor element */
|
|
34
|
-
cursor?: ReactNode;
|
|
35
|
-
/** Children override (takes precedence over content) */
|
|
36
|
-
children?: ReactNode;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Headless StreamingText primitive.
|
|
40
|
-
* Renders text with streaming indicator support.
|
|
41
|
-
*/
|
|
42
|
-
declare const StreamingText: react.ForwardRefExoticComponent<StreamingTextProps & react.RefAttributes<HTMLDivElement>>;
|
|
43
|
-
|
|
44
|
-
interface SuggestedActionsContextValue {
|
|
45
|
-
actions: SuggestedAction[];
|
|
46
|
-
onSelect: (action: SuggestedAction) => void;
|
|
47
|
-
}
|
|
48
|
-
declare const SuggestedActionsContext: react.Context<SuggestedActionsContextValue | null>;
|
|
49
|
-
/**
|
|
50
|
-
* Hook to access suggested actions context.
|
|
51
|
-
*/
|
|
52
|
-
declare function useSuggestedActions(): SuggestedActionsContextValue;
|
|
53
|
-
interface SuggestedActionsProps {
|
|
54
|
-
/** List of suggested actions */
|
|
55
|
-
actions: SuggestedAction[];
|
|
56
|
-
/** Callback when an action is selected */
|
|
57
|
-
onSelect: (action: SuggestedAction) => void;
|
|
58
|
-
/** Children to render */
|
|
59
|
-
children: ReactNode;
|
|
60
|
-
/** Additional CSS classes */
|
|
61
|
-
className?: string;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Headless SuggestedActions primitive.
|
|
65
|
-
* Provides context for rendering action buttons.
|
|
66
|
-
*/
|
|
67
|
-
declare const SuggestedActions: react.ForwardRefExoticComponent<SuggestedActionsProps & react.RefAttributes<HTMLDivElement>>;
|
|
68
|
-
interface ActionButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
69
|
-
/** The action this button represents */
|
|
70
|
-
action: SuggestedAction;
|
|
71
|
-
/** Children to render inside button */
|
|
72
|
-
children?: ReactNode;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Button for a suggested action.
|
|
76
|
-
*/
|
|
77
|
-
declare const ActionButton: react.ForwardRefExoticComponent<ActionButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
78
|
-
|
|
79
|
-
interface TypingIndicatorProps extends HTMLAttributes<HTMLDivElement> {
|
|
80
|
-
/** Custom content to show while typing */
|
|
81
|
-
children?: ReactNode;
|
|
82
|
-
/** Number of dots to show */
|
|
83
|
-
dotCount?: number;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Headless TypingIndicator primitive.
|
|
87
|
-
* Shows animated dots or custom content.
|
|
88
|
-
*/
|
|
89
|
-
declare const TypingIndicator: react.ForwardRefExoticComponent<TypingIndicatorProps & react.RefAttributes<HTMLDivElement>>;
|
|
90
|
-
|
|
91
|
-
export { ActionButton, type ActionButtonProps, MessageList, type MessageListProps, StreamingText, type StreamingTextProps, SuggestedActions, SuggestedActionsContext, type SuggestedActionsProps, TypingIndicator, type TypingIndicatorProps, useSuggestedActions };
|
|
@@ -1,426 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Types for streaming message handling.
|
|
3
|
-
*/
|
|
4
|
-
interface StreamingState {
|
|
5
|
-
isStreaming: boolean;
|
|
6
|
-
streamingMessageId: string | null;
|
|
7
|
-
streamedContent: string;
|
|
8
|
-
}
|
|
9
|
-
interface StreamChunk {
|
|
10
|
-
type: "content" | "reasoning" | "tool_call" | "done" | "error";
|
|
11
|
-
content?: string;
|
|
12
|
-
messageId?: string;
|
|
13
|
-
error?: string;
|
|
14
|
-
}
|
|
15
|
-
interface StreamingOptions {
|
|
16
|
-
onChunk?: (chunk: StreamChunk) => void;
|
|
17
|
-
onComplete?: (finalContent: string) => void;
|
|
18
|
-
onError?: (error: Error) => void;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Extended chunk types for agentic streaming
|
|
22
|
-
*/
|
|
23
|
-
type ChunkType = "content" | "thinking" | "tool" | "observation" | "answer" | "planning" | "subtask" | "progress" | "wave_start" | "wave_complete" | "parallel_subtask_start" | "parallel_subtask_complete" | "multi_agent_planning" | "multi_agent_planning_complete" | "subagent_start" | "subagent_complete" | "subagent_failed" | "synthesis" | "clarification_needed" | "visualization" | "subagent" | "file_operation" | "terminal" | "search_results" | "web_operation" | "claude_text" | "claude_thinking";
|
|
24
|
-
/**
|
|
25
|
-
* Subtask data structure for Plan & Execute mode
|
|
26
|
-
*/
|
|
27
|
-
interface SubTaskData {
|
|
28
|
-
id: number;
|
|
29
|
-
description: string;
|
|
30
|
-
required_tools?: string[];
|
|
31
|
-
dependencies?: number[];
|
|
32
|
-
status: "pending" | "running" | "completed" | "failed";
|
|
33
|
-
result?: string;
|
|
34
|
-
error?: string;
|
|
35
|
-
execution_time?: number;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Plan data structure for Plan & Execute mode
|
|
39
|
-
*/
|
|
40
|
-
interface PlanData {
|
|
41
|
-
subtasks: SubTaskData[];
|
|
42
|
-
goal: string;
|
|
43
|
-
reasoning: string;
|
|
44
|
-
total_subtasks: number;
|
|
45
|
-
completed_subtasks: number;
|
|
46
|
-
failed_subtasks: number;
|
|
47
|
-
progress_percentage: number;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Progress data for streaming updates
|
|
51
|
-
*/
|
|
52
|
-
interface ProgressData {
|
|
53
|
-
completed: number;
|
|
54
|
-
failed?: number;
|
|
55
|
-
total: number;
|
|
56
|
-
percentage: number;
|
|
57
|
-
waveNumber?: number;
|
|
58
|
-
}
|
|
59
|
-
interface WaveData {
|
|
60
|
-
waveNumber: number;
|
|
61
|
-
subtaskIds: number[];
|
|
62
|
-
parallelCount: number;
|
|
63
|
-
totalWaves: number;
|
|
64
|
-
startTime?: number;
|
|
65
|
-
executionTime?: number;
|
|
66
|
-
success?: boolean;
|
|
67
|
-
completedIds?: number[];
|
|
68
|
-
}
|
|
69
|
-
interface ParallelSubtaskData {
|
|
70
|
-
subtaskId: number;
|
|
71
|
-
waveNumber: number;
|
|
72
|
-
description?: string;
|
|
73
|
-
success?: boolean;
|
|
74
|
-
result?: string;
|
|
75
|
-
error?: string;
|
|
76
|
-
executionTime?: number;
|
|
77
|
-
}
|
|
78
|
-
interface SubagentInfo {
|
|
79
|
-
id?: string;
|
|
80
|
-
name: string;
|
|
81
|
-
role?: string;
|
|
82
|
-
task?: string;
|
|
83
|
-
status: "pending" | "running" | "completed" | "failed";
|
|
84
|
-
result?: string;
|
|
85
|
-
error?: string;
|
|
86
|
-
executionTime?: number;
|
|
87
|
-
}
|
|
88
|
-
interface SearchResultItem {
|
|
89
|
-
filePath: string;
|
|
90
|
-
lineNumber?: number;
|
|
91
|
-
snippet?: string;
|
|
92
|
-
}
|
|
93
|
-
interface SubagentChunkData {
|
|
94
|
-
subagentId: string;
|
|
95
|
-
subagentType: string;
|
|
96
|
-
description: string;
|
|
97
|
-
prompt?: string;
|
|
98
|
-
status: "running" | "completed" | "failed";
|
|
99
|
-
result?: string;
|
|
100
|
-
durationMs?: number;
|
|
101
|
-
nestedChunks: StreamingChunk[];
|
|
102
|
-
}
|
|
103
|
-
interface FileOperationChunkData {
|
|
104
|
-
toolUseId: string;
|
|
105
|
-
operation: "read" | "write" | "edit";
|
|
106
|
-
filePath: string;
|
|
107
|
-
status: "pending" | "completed" | "error";
|
|
108
|
-
content?: string;
|
|
109
|
-
totalLines?: number;
|
|
110
|
-
language?: string;
|
|
111
|
-
oldString?: string;
|
|
112
|
-
newString?: string;
|
|
113
|
-
error?: string;
|
|
114
|
-
durationMs?: number;
|
|
115
|
-
}
|
|
116
|
-
interface TerminalChunkData {
|
|
117
|
-
toolUseId: string;
|
|
118
|
-
command: string;
|
|
119
|
-
description?: string;
|
|
120
|
-
status: "running" | "completed" | "failed";
|
|
121
|
-
stdout?: string;
|
|
122
|
-
stderr?: string;
|
|
123
|
-
exitCode?: number;
|
|
124
|
-
durationMs?: number;
|
|
125
|
-
}
|
|
126
|
-
interface SearchResultsChunkData {
|
|
127
|
-
toolUseId: string;
|
|
128
|
-
tool: "glob" | "grep";
|
|
129
|
-
pattern: string;
|
|
130
|
-
path?: string;
|
|
131
|
-
status: "pending" | "completed" | "error";
|
|
132
|
-
results: SearchResultItem[];
|
|
133
|
-
totalCount: number;
|
|
134
|
-
error?: string;
|
|
135
|
-
durationMs?: number;
|
|
136
|
-
}
|
|
137
|
-
interface WebOperationChunkData {
|
|
138
|
-
toolUseId: string;
|
|
139
|
-
operation: "search" | "fetch";
|
|
140
|
-
query?: string;
|
|
141
|
-
url?: string;
|
|
142
|
-
status: "pending" | "completed" | "error";
|
|
143
|
-
results?: string;
|
|
144
|
-
content?: string;
|
|
145
|
-
error?: string;
|
|
146
|
-
durationMs?: number;
|
|
147
|
-
}
|
|
148
|
-
interface ClaudeToolChunkData {
|
|
149
|
-
toolUseId: string;
|
|
150
|
-
toolName: string;
|
|
151
|
-
toolDescription?: string;
|
|
152
|
-
toolInput?: Record<string, unknown>;
|
|
153
|
-
status: "pending" | "completed" | "error";
|
|
154
|
-
content?: string;
|
|
155
|
-
isError?: boolean;
|
|
156
|
-
durationMs?: number;
|
|
157
|
-
}
|
|
158
|
-
interface ClarificationData {
|
|
159
|
-
question: string;
|
|
160
|
-
options?: string[];
|
|
161
|
-
context?: string;
|
|
162
|
-
allowFreeText?: boolean;
|
|
163
|
-
subtaskId?: number;
|
|
164
|
-
subtaskDescription?: string;
|
|
165
|
-
subagentName?: string;
|
|
166
|
-
subagentRole?: string;
|
|
167
|
-
}
|
|
168
|
-
type VisualizationType = "chart" | "table" | "card" | "kpi" | "code_preview" | "form";
|
|
169
|
-
type ChartDataType = "line" | "bar" | "pie" | "area" | "scatter" | "composed";
|
|
170
|
-
interface ChartSeries {
|
|
171
|
-
name: string;
|
|
172
|
-
data: Array<{
|
|
173
|
-
x: string | number;
|
|
174
|
-
y: number;
|
|
175
|
-
} | {
|
|
176
|
-
name: string;
|
|
177
|
-
value: number;
|
|
178
|
-
}>;
|
|
179
|
-
color?: string;
|
|
180
|
-
}
|
|
181
|
-
interface ChartAxis {
|
|
182
|
-
label?: string;
|
|
183
|
-
type?: "category" | "number" | "time";
|
|
184
|
-
min?: number;
|
|
185
|
-
max?: number;
|
|
186
|
-
}
|
|
187
|
-
interface ChartVisualizationData {
|
|
188
|
-
chartType: ChartDataType;
|
|
189
|
-
series: ChartSeries[];
|
|
190
|
-
xAxis?: ChartAxis;
|
|
191
|
-
yAxis?: ChartAxis;
|
|
192
|
-
}
|
|
193
|
-
type TableColumnType = "string" | "number" | "currency" | "date" | "badge" | "link" | "boolean" | "progress";
|
|
194
|
-
interface TableColumn {
|
|
195
|
-
key: string;
|
|
196
|
-
label: string;
|
|
197
|
-
type?: TableColumnType;
|
|
198
|
-
align?: "left" | "center" | "right";
|
|
199
|
-
width?: string;
|
|
200
|
-
}
|
|
201
|
-
interface TableVisualizationData {
|
|
202
|
-
columns: TableColumn[];
|
|
203
|
-
rows: Record<string, unknown>[];
|
|
204
|
-
}
|
|
205
|
-
interface CardSection {
|
|
206
|
-
title?: string;
|
|
207
|
-
items?: Array<{
|
|
208
|
-
label: string;
|
|
209
|
-
value: string | number;
|
|
210
|
-
}>;
|
|
211
|
-
content?: string;
|
|
212
|
-
}
|
|
213
|
-
interface CardAction {
|
|
214
|
-
label: string;
|
|
215
|
-
action: string;
|
|
216
|
-
variant?: "primary" | "secondary" | "text";
|
|
217
|
-
}
|
|
218
|
-
interface CardVisualizationData {
|
|
219
|
-
subtitle?: string;
|
|
220
|
-
imageUrl?: string;
|
|
221
|
-
sections: CardSection[];
|
|
222
|
-
actions?: CardAction[];
|
|
223
|
-
}
|
|
224
|
-
interface KpiMetric {
|
|
225
|
-
label: string;
|
|
226
|
-
value: string | number;
|
|
227
|
-
unit?: string;
|
|
228
|
-
trend?: "up" | "down" | "neutral";
|
|
229
|
-
change?: string;
|
|
230
|
-
changeLabel?: string;
|
|
231
|
-
sparkline?: number[];
|
|
232
|
-
color?: string;
|
|
233
|
-
}
|
|
234
|
-
interface KpiVisualizationData {
|
|
235
|
-
metrics: KpiMetric[];
|
|
236
|
-
layout?: "row" | "grid";
|
|
237
|
-
}
|
|
238
|
-
interface CodePreviewVisualizationData {
|
|
239
|
-
code: string;
|
|
240
|
-
language: string;
|
|
241
|
-
lineNumbers?: boolean;
|
|
242
|
-
highlightLines?: number[];
|
|
243
|
-
startLine?: number;
|
|
244
|
-
}
|
|
245
|
-
type FormFieldType = "text" | "number" | "email" | "select" | "multiselect" | "checkbox" | "radio" | "textarea" | "date" | "datetime";
|
|
246
|
-
interface FormField {
|
|
247
|
-
name: string;
|
|
248
|
-
type: FormFieldType;
|
|
249
|
-
label: string;
|
|
250
|
-
required?: boolean;
|
|
251
|
-
placeholder?: string;
|
|
252
|
-
options?: Array<{
|
|
253
|
-
value: string;
|
|
254
|
-
label: string;
|
|
255
|
-
}>;
|
|
256
|
-
defaultValue?: unknown;
|
|
257
|
-
validation?: {
|
|
258
|
-
min?: number;
|
|
259
|
-
max?: number;
|
|
260
|
-
pattern?: string;
|
|
261
|
-
message?: string;
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
interface FormVisualizationData {
|
|
265
|
-
fields: FormField[];
|
|
266
|
-
submitAction?: string;
|
|
267
|
-
}
|
|
268
|
-
interface VisualizationConfig {
|
|
269
|
-
height?: number;
|
|
270
|
-
width?: string;
|
|
271
|
-
colors?: string[];
|
|
272
|
-
legend?: boolean;
|
|
273
|
-
grid?: boolean;
|
|
274
|
-
tooltip?: boolean;
|
|
275
|
-
animate?: boolean;
|
|
276
|
-
stacked?: boolean;
|
|
277
|
-
sortable?: boolean;
|
|
278
|
-
paginated?: boolean;
|
|
279
|
-
pageSize?: number;
|
|
280
|
-
filterable?: boolean;
|
|
281
|
-
selectable?: boolean;
|
|
282
|
-
collapsible?: boolean;
|
|
283
|
-
initiallyCollapsed?: boolean;
|
|
284
|
-
submitButtonText?: string;
|
|
285
|
-
cancelButtonText?: string;
|
|
286
|
-
}
|
|
287
|
-
interface VisualizationData {
|
|
288
|
-
id: string;
|
|
289
|
-
/** Built-in type or any custom type registered via `registerVisualization()`. */
|
|
290
|
-
type: VisualizationType | (string & {});
|
|
291
|
-
title?: string;
|
|
292
|
-
description?: string;
|
|
293
|
-
data: ChartVisualizationData | TableVisualizationData | CardVisualizationData | KpiVisualizationData | CodePreviewVisualizationData | FormVisualizationData | Record<string, unknown>;
|
|
294
|
-
config?: VisualizationConfig;
|
|
295
|
-
}
|
|
296
|
-
interface VisualizationChunkData extends VisualizationData {
|
|
297
|
-
context?: {
|
|
298
|
-
orchestratorType?: string;
|
|
299
|
-
toolName?: string;
|
|
300
|
-
subtaskId?: number;
|
|
301
|
-
subagentName?: string;
|
|
302
|
-
};
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* Extended streaming chunk with full agentic support
|
|
306
|
-
*/
|
|
307
|
-
interface StreamingChunk {
|
|
308
|
-
type: ChunkType;
|
|
309
|
-
content: string;
|
|
310
|
-
toolName?: string;
|
|
311
|
-
toolDescription?: string;
|
|
312
|
-
toolArgs?: Record<string, unknown>;
|
|
313
|
-
success?: boolean;
|
|
314
|
-
status?: "planned" | "executing" | "completed";
|
|
315
|
-
subtaskId?: number;
|
|
316
|
-
sequence?: number;
|
|
317
|
-
subtaskData?: SubTaskData;
|
|
318
|
-
planData?: PlanData;
|
|
319
|
-
progress?: ProgressData;
|
|
320
|
-
isReplan?: boolean;
|
|
321
|
-
waveData?: WaveData;
|
|
322
|
-
parallelSubtaskData?: ParallelSubtaskData;
|
|
323
|
-
waveNumber?: number;
|
|
324
|
-
isParallel?: boolean;
|
|
325
|
-
isMultiAgent?: boolean;
|
|
326
|
-
subagentInfo?: SubagentInfo;
|
|
327
|
-
subagentAllocations?: {
|
|
328
|
-
name: string;
|
|
329
|
-
focus: string;
|
|
330
|
-
query?: string;
|
|
331
|
-
}[];
|
|
332
|
-
replanAttempt?: number;
|
|
333
|
-
maxReplans?: number;
|
|
334
|
-
failureReason?: string;
|
|
335
|
-
isSynthesis?: boolean;
|
|
336
|
-
orchestrator?: "react" | "plan_execute" | "claude_agent_sdk";
|
|
337
|
-
parentSubtaskId?: number;
|
|
338
|
-
subagentData?: SubagentChunkData;
|
|
339
|
-
fileOperationData?: FileOperationChunkData;
|
|
340
|
-
terminalData?: TerminalChunkData;
|
|
341
|
-
searchResultsData?: SearchResultsChunkData;
|
|
342
|
-
webOperationData?: WebOperationChunkData;
|
|
343
|
-
claudeToolData?: ClaudeToolChunkData;
|
|
344
|
-
clarificationData?: ClarificationData;
|
|
345
|
-
visualizationData?: VisualizationChunkData;
|
|
346
|
-
toolUseId?: string;
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* Streaming message with chunks and metadata
|
|
350
|
-
*/
|
|
351
|
-
interface StreamingMessage {
|
|
352
|
-
id?: string;
|
|
353
|
-
textContent: string;
|
|
354
|
-
previousMessageId?: string;
|
|
355
|
-
chunks?: StreamingChunk[];
|
|
356
|
-
orchestratorType?: "react" | "plan_execute" | "claude_agent_sdk";
|
|
357
|
-
executionPlan?: PlanData;
|
|
358
|
-
isParallelExecution?: boolean;
|
|
359
|
-
waveData?: Record<number, WaveData>;
|
|
360
|
-
currentWaveNumber?: number;
|
|
361
|
-
suggestedActions?: FollowupAction[];
|
|
362
|
-
activeSubagents?: Map<string, SubagentChunkData>;
|
|
363
|
-
pendingClarification?: ClarificationData;
|
|
364
|
-
visualizations?: VisualizationChunkData[];
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* Follow-up action suggested by AI
|
|
368
|
-
*/
|
|
369
|
-
interface FollowupAction {
|
|
370
|
-
label: string;
|
|
371
|
-
action: string;
|
|
372
|
-
type: "send_message" | "navigate" | "copy_text" | "compose_email" | "search_emails" | "open_modal" | "api_call";
|
|
373
|
-
context: Record<string, unknown>;
|
|
374
|
-
}
|
|
375
|
-
type EventStatus = "pending" | "running" | "completed" | "failed";
|
|
376
|
-
type EventType = "thinking" | "planning" | "tool" | "observation" | "subtask";
|
|
377
|
-
interface BaseEvent {
|
|
378
|
-
id: string;
|
|
379
|
-
type: EventType;
|
|
380
|
-
status: EventStatus;
|
|
381
|
-
timestamp?: number;
|
|
382
|
-
}
|
|
383
|
-
interface ThinkingEvent extends BaseEvent {
|
|
384
|
-
type: "thinking";
|
|
385
|
-
content: string;
|
|
386
|
-
}
|
|
387
|
-
interface PlanningEvent extends BaseEvent {
|
|
388
|
-
type: "planning";
|
|
389
|
-
content: string;
|
|
390
|
-
isComplete?: boolean;
|
|
391
|
-
}
|
|
392
|
-
interface ToolEvent extends BaseEvent {
|
|
393
|
-
type: "tool";
|
|
394
|
-
toolName: string;
|
|
395
|
-
toolDescription?: string;
|
|
396
|
-
input?: unknown;
|
|
397
|
-
}
|
|
398
|
-
interface ObservationEvent extends BaseEvent {
|
|
399
|
-
type: "observation";
|
|
400
|
-
toolName: string;
|
|
401
|
-
content: string;
|
|
402
|
-
success?: boolean;
|
|
403
|
-
}
|
|
404
|
-
interface SubtaskEvent extends BaseEvent {
|
|
405
|
-
type: "subtask";
|
|
406
|
-
title: string;
|
|
407
|
-
description?: string;
|
|
408
|
-
executionTime?: number;
|
|
409
|
-
result?: string;
|
|
410
|
-
error?: string;
|
|
411
|
-
children?: Event[];
|
|
412
|
-
}
|
|
413
|
-
type Event = ThinkingEvent | PlanningEvent | ToolEvent | ObservationEvent | SubtaskEvent;
|
|
414
|
-
type VisualizationActionEvent = {
|
|
415
|
-
type: "form_submit";
|
|
416
|
-
action: string;
|
|
417
|
-
data: Record<string, unknown>;
|
|
418
|
-
} | {
|
|
419
|
-
type: "form_cancel";
|
|
420
|
-
action: string;
|
|
421
|
-
} | {
|
|
422
|
-
type: "card_action";
|
|
423
|
-
action: string;
|
|
424
|
-
};
|
|
425
|
-
|
|
426
|
-
export type { VisualizationType as A, WebOperationChunkData as B, ClarificationData as C, Event as E, FormVisualizationData as F, KpiVisualizationData as K, ObservationEvent as O, PlanData as P, StreamingChunk as S, TableVisualizationData as T, VisualizationChunkData as V, WaveData as W, StreamChunk as a, StreamingOptions as b, StreamingState as c, VisualizationActionEvent as d, ChartVisualizationData as e, VisualizationConfig as f, CardVisualizationData as g, CodePreviewVisualizationData as h, EventStatus as i, ChunkType as j, ClaudeToolChunkData as k, EventType as l, FileOperationChunkData as m, FollowupAction as n, ParallelSubtaskData as o, PlanningEvent as p, ProgressData as q, SearchResultsChunkData as r, StreamingMessage as s, SubTaskData as t, SubagentChunkData as u, SubagentInfo as v, SubtaskEvent as w, TerminalChunkData as x, ThinkingEvent as y, ToolEvent as z };
|
package/dist/styled/index.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkQGRXQAWZ_cjs=require('../chunk-QGRXQAWZ.cjs'),chunk3SEVU272_cjs=require('../chunk-3SEVU272.cjs');require('../chunk-HVCCZKEO.cjs'),require('../chunk-TOYU46SZ.cjs');var chunkSFEPMZCU_cjs=require('../chunk-SFEPMZCU.cjs');Object.defineProperty(exports,"AttachmentPreview",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.b}});Object.defineProperty(exports,"Avatar",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.c}});Object.defineProperty(exports,"CardVisualization",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.F}});Object.defineProperty(exports,"ChartVisualization",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.D}});Object.defineProperty(exports,"ChatContainer",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.d}});Object.defineProperty(exports,"ChatHeader",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.Z}});Object.defineProperty(exports,"ChatLayout",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.$}});Object.defineProperty(exports,"CitationSources",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.g}});Object.defineProperty(exports,"ClarificationPanel",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.j}});Object.defineProperty(exports,"ClaudeToolPreview",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.u}});Object.defineProperty(exports,"CodePreviewVisualization",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.H}});Object.defineProperty(exports,"EventContent",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.p}});Object.defineProperty(exports,"EventTimeline",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.s}});Object.defineProperty(exports,"FileOperationPreview",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.w}});Object.defineProperty(exports,"FormVisualization",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.I}});Object.defineProperty(exports,"InlineCitation",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.i}});Object.defineProperty(exports,"KpiVisualization",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.G}});Object.defineProperty(exports,"LoadingDots",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.e}});Object.defineProperty(exports,"MarkdownContent",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.f}});Object.defineProperty(exports,"Message",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.T}});Object.defineProperty(exports,"MessageActionBar",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.k}});Object.defineProperty(exports,"MessageAttachments",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.l}});Object.defineProperty(exports,"MessageComposer",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.U}});Object.defineProperty(exports,"MessageList",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.W}});Object.defineProperty(exports,"PlanTimeline",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.t}});Object.defineProperty(exports,"ReasoningPanel",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.A}});Object.defineProperty(exports,"ScrollToBottomButton",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.V}});Object.defineProperty(exports,"SearchResultsView",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.x}});Object.defineProperty(exports,"SourceDetailModal",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.h}});Object.defineProperty(exports,"StatusBadge",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.m}});Object.defineProperty(exports,"StreamingText",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.B}});Object.defineProperty(exports,"SubagentPanel",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.z}});Object.defineProperty(exports,"SuggestedActions",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.C}});Object.defineProperty(exports,"TableVisualization",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.E}});Object.defineProperty(exports,"TerminalOutput",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.v}});Object.defineProperty(exports,"TimeMarker",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.X}});Object.defineProperty(exports,"Timeline",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.n}});Object.defineProperty(exports,"TimelineItem",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.o}});Object.defineProperty(exports,"ToolStatusIndicator",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs._}});Object.defineProperty(exports,"TypingIndicator",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.Y}});Object.defineProperty(exports,"VisualizationRenderer",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.S}});Object.defineProperty(exports,"WebOperationPreview",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.y}});Object.defineProperty(exports,"WelcomeScreen",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.aa}});Object.defineProperty(exports,"cardVisualizationSchema",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.O}});Object.defineProperty(exports,"chartVisualizationSchema",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.M}});Object.defineProperty(exports,"codePreviewVisualizationSchema",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.Q}});Object.defineProperty(exports,"convertChunkToEvent",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.q}});Object.defineProperty(exports,"convertTimelineToEvents",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.r}});Object.defineProperty(exports,"formVisualizationSchema",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.R}});Object.defineProperty(exports,"getRegisteredTypes",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.L}});Object.defineProperty(exports,"getVisualization",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.K}});Object.defineProperty(exports,"kpiVisualizationSchema",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.P}});Object.defineProperty(exports,"registerVisualization",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.J}});Object.defineProperty(exports,"tableVisualizationSchema",{enumerable:true,get:function(){return chunkQGRXQAWZ_cjs.N}});Object.defineProperty(exports,"useComposer",{enumerable:true,get:function(){return chunk3SEVU272_cjs.h}});Object.defineProperty(exports,"useMessage",{enumerable:true,get:function(){return chunk3SEVU272_cjs.b}});Object.defineProperty(exports,"ChatProvider",{enumerable:true,get:function(){return chunkSFEPMZCU_cjs.b}});Object.defineProperty(exports,"useChatContext",{enumerable:true,get:function(){return chunkSFEPMZCU_cjs.c}});//# sourceMappingURL=index.cjs.map
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|