@cadraos/sdk 0.3.15 → 0.3.16-dev.1
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/chat/index.cjs +200 -0
- package/dist/chat/index.cjs.map +1 -1
- package/dist/chat/index.d.cts +149 -1
- package/dist/chat/index.d.ts +149 -1
- package/dist/chat/index.js +198 -1
- package/dist/chat/index.js.map +1 -1
- package/dist/index.cjs +59 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +112 -1
- package/dist/index.d.ts +112 -1
- package/dist/index.js +57 -1
- package/dist/index.js.map +1 -1
- package/dist/kanban/index.cjs +56 -0
- package/dist/kanban/index.cjs.map +1 -1
- package/dist/kanban/index.d.cts +100 -0
- package/dist/kanban/index.d.ts +100 -0
- package/dist/kanban/index.js +56 -0
- package/dist/kanban/index.js.map +1 -1
- package/dist/teams/index.cjs +56 -0
- package/dist/teams/index.cjs.map +1 -1
- package/dist/teams/index.d.cts +100 -0
- package/dist/teams/index.d.ts +100 -0
- package/dist/teams/index.js +56 -0
- package/dist/teams/index.js.map +1 -1
- package/package.json +1 -1
package/dist/chat/index.d.cts
CHANGED
|
@@ -830,6 +830,63 @@ interface ExecuteResponse {
|
|
|
830
830
|
/** Initial status */
|
|
831
831
|
status: ExecutionStatus;
|
|
832
832
|
}
|
|
833
|
+
/**
|
|
834
|
+
* Language code an agent message is stored and rendered in (e.g. `en`,
|
|
835
|
+
* `pt-br`). Each agent sets its own language list; see
|
|
836
|
+
* `AgentMessageList.languages`. Was `'en' | 'es' | 'id'` before p13.
|
|
837
|
+
*/
|
|
838
|
+
type AgentMessageLang = string;
|
|
839
|
+
/**
|
|
840
|
+
* One saved agent message (e.g. `handoff.requested`), text per language.
|
|
841
|
+
*/
|
|
842
|
+
interface AgentMessage {
|
|
843
|
+
/** Lowercase dotted key, e.g. `chat.welcome` */
|
|
844
|
+
key: string;
|
|
845
|
+
/** Text per language code */
|
|
846
|
+
text: Partial<Record<AgentMessageLang, string>>;
|
|
847
|
+
/** `{word}` placeholder names found in any language */
|
|
848
|
+
placeholders: string[];
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* Response of `client.agents.messages.list()`
|
|
852
|
+
*/
|
|
853
|
+
interface AgentMessageList {
|
|
854
|
+
/** The resolved agent (a team uuid resolves to its lead agent) */
|
|
855
|
+
agentUuid: string;
|
|
856
|
+
/** The agent's saved messages, sorted by key */
|
|
857
|
+
messages: AgentMessage[];
|
|
858
|
+
/** Every key the platform knows about, for pickers (saved or not) */
|
|
859
|
+
knownKeys: string[];
|
|
860
|
+
/**
|
|
861
|
+
* The agent's message languages, in display order. Missing from older
|
|
862
|
+
* servers; fall back to the languages seen in `messages[].text`.
|
|
863
|
+
*/
|
|
864
|
+
languages?: AgentMessageLang[];
|
|
865
|
+
/** The agent's default message language. Missing from older servers; treat as `en`. */
|
|
866
|
+
defaultLanguage?: AgentMessageLang;
|
|
867
|
+
}
|
|
868
|
+
/**
|
|
869
|
+
* Options for `client.agents.messages.render()`
|
|
870
|
+
*/
|
|
871
|
+
interface AgentMessageRenderOptions {
|
|
872
|
+
/**
|
|
873
|
+
* Requested language. Server falls back: exact, then base (`pt-br` to `pt`),
|
|
874
|
+
* then the agent's default language, then `en`, then the first non-empty text.
|
|
875
|
+
*/
|
|
876
|
+
lang?: AgentMessageLang;
|
|
877
|
+
/** Values for `{word}` placeholders; unknown placeholders are left as-is */
|
|
878
|
+
vars?: Record<string, string | number>;
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* Response of `client.agents.messages.render()`
|
|
882
|
+
*/
|
|
883
|
+
interface AgentMessageRenderResult {
|
|
884
|
+
key: string;
|
|
885
|
+
/** The language actually rendered (after fallback) */
|
|
886
|
+
lang: AgentMessageLang;
|
|
887
|
+
/** Filled text, or `null` when the agent has no message for this key */
|
|
888
|
+
text: string | null;
|
|
889
|
+
}
|
|
833
890
|
|
|
834
891
|
/**
|
|
835
892
|
* Streaming types
|
|
@@ -2771,6 +2828,47 @@ interface StreamImagesResult {
|
|
|
2771
2828
|
executionId: string;
|
|
2772
2829
|
}
|
|
2773
2830
|
|
|
2831
|
+
/**
|
|
2832
|
+
* Agent Messages Resource API (p13)
|
|
2833
|
+
*
|
|
2834
|
+
* Read-only access to an agent's saved messages (welcome, handoff, fallback
|
|
2835
|
+
* copy, ...). Reached as `client.agents.messages`.
|
|
2836
|
+
* - list(): the agent's saved messages, every known key, the agent's languages
|
|
2837
|
+
* - render(): one message filled with vars, in a language (server falls back:
|
|
2838
|
+
* exact, base, agent default, en, first non-empty; `lang` says which was used)
|
|
2839
|
+
*/
|
|
2840
|
+
|
|
2841
|
+
declare class AgentMessagesAPI extends BaseResourceAPI {
|
|
2842
|
+
constructor(http: HttpClient);
|
|
2843
|
+
/**
|
|
2844
|
+
* List an agent's saved messages and the known keys
|
|
2845
|
+
*
|
|
2846
|
+
* @param agentUuid - Agent UUID (a team UUID resolves to its lead agent)
|
|
2847
|
+
*
|
|
2848
|
+
* @example
|
|
2849
|
+
* ```typescript
|
|
2850
|
+
* const { messages, knownKeys, languages, defaultLanguage } = await client.agents.messages.list('agent-uuid');
|
|
2851
|
+
* ```
|
|
2852
|
+
*/
|
|
2853
|
+
list(agentUuid: string): Promise<AgentMessageList>;
|
|
2854
|
+
/**
|
|
2855
|
+
* Render one message with placeholders filled
|
|
2856
|
+
*
|
|
2857
|
+
* Resolves with `text: null` when the agent has no message for the key.
|
|
2858
|
+
* Throws `ValidationError` before any request when the key is not a
|
|
2859
|
+
* lowercase dotted key (see `MESSAGE_KEY_PATTERN`).
|
|
2860
|
+
*
|
|
2861
|
+
* @example
|
|
2862
|
+
* ```typescript
|
|
2863
|
+
* const { text } = await client.agents.messages.render('agent-uuid', 'handoff.requested', {
|
|
2864
|
+
* lang: 'es',
|
|
2865
|
+
* vars: { agentName: 'Ana' },
|
|
2866
|
+
* });
|
|
2867
|
+
* ```
|
|
2868
|
+
*/
|
|
2869
|
+
render(agentUuid: string, key: string, options?: AgentMessageRenderOptions): Promise<AgentMessageRenderResult>;
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2774
2872
|
/**
|
|
2775
2873
|
* Agents Resource API
|
|
2776
2874
|
*
|
|
@@ -2786,6 +2884,8 @@ interface StreamImagesResult {
|
|
|
2786
2884
|
*/
|
|
2787
2885
|
declare class AgentsAPI extends BaseResourceAPI {
|
|
2788
2886
|
private readonly getStreamConfig;
|
|
2887
|
+
/** Saved agent messages (p13): `list()` and `render()` */
|
|
2888
|
+
readonly messages: AgentMessagesAPI;
|
|
2789
2889
|
constructor(http: HttpClient, getStreamConfig: () => StreamConfig);
|
|
2790
2890
|
/**
|
|
2791
2891
|
* List all agents in the organization
|
|
@@ -5178,6 +5278,54 @@ interface ChatInputProps {
|
|
|
5178
5278
|
*/
|
|
5179
5279
|
declare function ChatInput({ onSend, onStop, placeholder, disabled, isLoading, enableAttachments, attachments, onRemoveAttachment, dropZoneRef, isUploadingAttachments, className, onInputChange, onInputControlReady, }: ChatInputProps): react_jsx_runtime.JSX.Element;
|
|
5180
5280
|
|
|
5281
|
+
/** The slice of CadraClient the picker uses. */
|
|
5282
|
+
interface AgentMessagePickerClient {
|
|
5283
|
+
agents: {
|
|
5284
|
+
messages: {
|
|
5285
|
+
list(agentUuid: string): Promise<AgentMessageList>;
|
|
5286
|
+
};
|
|
5287
|
+
};
|
|
5288
|
+
}
|
|
5289
|
+
/** UI labels; override to translate. */
|
|
5290
|
+
interface AgentMessagePickerLabels {
|
|
5291
|
+
search: string;
|
|
5292
|
+
loading: string;
|
|
5293
|
+
loadError: string;
|
|
5294
|
+
empty: string;
|
|
5295
|
+
notSet: string;
|
|
5296
|
+
useCustom: (key: string) => string;
|
|
5297
|
+
invalidCustom: string;
|
|
5298
|
+
/** Accessible label of the preview-language select */
|
|
5299
|
+
language: string;
|
|
5300
|
+
}
|
|
5301
|
+
interface AgentMessagePickerProps {
|
|
5302
|
+
client: AgentMessagePickerClient;
|
|
5303
|
+
agentUuid: string;
|
|
5304
|
+
/** Selected key */
|
|
5305
|
+
value?: string | null;
|
|
5306
|
+
onChange: (key: string) => void;
|
|
5307
|
+
/** Let the user type a new dotted key */
|
|
5308
|
+
allowCustom?: boolean;
|
|
5309
|
+
/** Starting preview language. Default: the agent's defaultLanguage, else en */
|
|
5310
|
+
lang?: AgentMessageLang;
|
|
5311
|
+
/** Called when the user picks another preview language */
|
|
5312
|
+
onLangChange?: (lang: AgentMessageLang) => void;
|
|
5313
|
+
labels?: Partial<AgentMessagePickerLabels>;
|
|
5314
|
+
className?: string;
|
|
5315
|
+
}
|
|
5316
|
+
declare function AgentMessagePicker({ client, agentUuid, value, onChange, allowCustom, lang, onLangChange, labels: labelOverrides, className, }: AgentMessagePickerProps): react_jsx_runtime.JSX.Element;
|
|
5317
|
+
|
|
5318
|
+
/**
|
|
5319
|
+
* Agent message keys (p13) — lowercase dotted, e.g. `chat.welcome`.
|
|
5320
|
+
*
|
|
5321
|
+
* Same rule cadra-web enforces on `/api/v1/agents/:id/messages/render`, so an
|
|
5322
|
+
* invalid key fails client-side before a request is made. Kept free of any
|
|
5323
|
+
* client import so the chat entry can use it without pulling in the client.
|
|
5324
|
+
*/
|
|
5325
|
+
declare const MESSAGE_KEY_PATTERN: RegExp;
|
|
5326
|
+
/** True when `key` is a valid lowercase dotted agent message key. */
|
|
5327
|
+
declare function isValidMessageKey(key: string): boolean;
|
|
5328
|
+
|
|
5181
5329
|
/**
|
|
5182
5330
|
* Tool name patterns for internal/orchestration tools that should be hidden
|
|
5183
5331
|
* in compact verbosity mode. These are matched after stripping common prefixes
|
|
@@ -5420,4 +5568,4 @@ declare function ClockIcon({ className, ...props }: IconProps): react_jsx_runtim
|
|
|
5420
5568
|
*/
|
|
5421
5569
|
declare function compressImage(file: File, targetSizeKB?: number): Promise<File>;
|
|
5422
5570
|
|
|
5423
|
-
export { AgentChat, type AgentChatProps, AlertCircleIcon, type Artifact$1 as Artifact, AskUserPrompt, type AskUserPromptProps, type AttachmentData, type AttachmentFile, BotIcon, type ChatAdapter, ChatConfigProvider, type ChatConfigProviderProps, ChatContainer, type ChatContainerProps, type ChatError, ChatInput, type ChatInputProps, ChatMessage, type ChatMessageProps, type ChatMessage$1 as ChatMessageType, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CircleIcon, type ClarificationData, ClockIcon, CodeIcon, CopyIcon, type CurrentStep, DatabaseIcon, type DefaultAdapterConfig, type DelegationEvent, DelegationProgress, DelegationProgressList, type DelegationProgressListProps, type DelegationProgressProps, DownloadIcon, type Execution, type ExecutionResult, type ExecutionStreamEvent, ExternalLinkIcon, FileDropZone, type FileDropZoneProps, type FileDropZoneRef, FileIcon, FileTextIcon, HelpCircleIcon, type HistoryMessage, INTERNAL_TOOL_NAMES, type IconProps, type ImageData, ImageGallery, type ImageGalleryProps, ImageIcon, ImageLightbox, type ImageLightboxProps, type ImageStreamClient, type ImageStreamStatus, ImagesIcon, type ListSessionsInput, ListTodoIcon, LoadingSpinner, MarkdownContent, type MarkdownContentProps, Maximize2Icon, MessageCircleIcon, MessageList, type MessageListProps, Minimize2Icon, PaperclipIcon, SendIcon, type SendMessageInput$1 as SendMessageInput, type SendMessageOptions, type SessionHistory$1 as SessionHistory, type SessionList, type SessionListItem, SparklesIcon, type StartExecutionInput, StopCircleIcon, type ThemeMode, ThinkingBlock, ThinkingBlockList, type ThinkingBlockListProps, type ThinkingBlockProps, type ThinkingBlock$1 as ThinkingBlockType, type TodoItem, TodoList, type TodoListProps, type ToolCall, ToolCallEntry, type ToolCallEntryProps, type ToolCallVerbosity, type UploadUrlInput, type UploadUrlResult, type UseAgentChatOptions, type UseAgentChatResult, type UseExecutionStreamOptions, type UseExecutionStreamResult, type UseFileAttachmentsOptions, type UseFileAttachmentsResult, type UseImageStreamOptions, type UseImageStreamResult, UserIcon, XIcon, ZoomInIcon, ZoomOutIcon, compressImage, createDefaultAdapter, isInternalTool, useAgentChat, useChatConfig, useChatConfigOptional, useExecutionStream, useFileAttachments, useImageStream };
|
|
5571
|
+
export { AgentChat, type AgentChatProps, AgentMessagePicker, type AgentMessagePickerClient, type AgentMessagePickerLabels, type AgentMessagePickerProps, AlertCircleIcon, type Artifact$1 as Artifact, AskUserPrompt, type AskUserPromptProps, type AttachmentData, type AttachmentFile, BotIcon, type ChatAdapter, ChatConfigProvider, type ChatConfigProviderProps, ChatContainer, type ChatContainerProps, type ChatError, ChatInput, type ChatInputProps, ChatMessage, type ChatMessageProps, type ChatMessage$1 as ChatMessageType, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CircleIcon, type ClarificationData, ClockIcon, CodeIcon, CopyIcon, type CurrentStep, DatabaseIcon, type DefaultAdapterConfig, type DelegationEvent, DelegationProgress, DelegationProgressList, type DelegationProgressListProps, type DelegationProgressProps, DownloadIcon, type Execution, type ExecutionResult, type ExecutionStreamEvent, ExternalLinkIcon, FileDropZone, type FileDropZoneProps, type FileDropZoneRef, FileIcon, FileTextIcon, HelpCircleIcon, type HistoryMessage, INTERNAL_TOOL_NAMES, type IconProps, type ImageData, ImageGallery, type ImageGalleryProps, ImageIcon, ImageLightbox, type ImageLightboxProps, type ImageStreamClient, type ImageStreamStatus, ImagesIcon, type ListSessionsInput, ListTodoIcon, LoadingSpinner, MESSAGE_KEY_PATTERN, MarkdownContent, type MarkdownContentProps, Maximize2Icon, MessageCircleIcon, MessageList, type MessageListProps, Minimize2Icon, PaperclipIcon, SendIcon, type SendMessageInput$1 as SendMessageInput, type SendMessageOptions, type SessionHistory$1 as SessionHistory, type SessionList, type SessionListItem, SparklesIcon, type StartExecutionInput, StopCircleIcon, type ThemeMode, ThinkingBlock, ThinkingBlockList, type ThinkingBlockListProps, type ThinkingBlockProps, type ThinkingBlock$1 as ThinkingBlockType, type TodoItem, TodoList, type TodoListProps, type ToolCall, ToolCallEntry, type ToolCallEntryProps, type ToolCallVerbosity, type UploadUrlInput, type UploadUrlResult, type UseAgentChatOptions, type UseAgentChatResult, type UseExecutionStreamOptions, type UseExecutionStreamResult, type UseFileAttachmentsOptions, type UseFileAttachmentsResult, type UseImageStreamOptions, type UseImageStreamResult, UserIcon, XIcon, ZoomInIcon, ZoomOutIcon, compressImage, createDefaultAdapter, isInternalTool, isValidMessageKey, useAgentChat, useChatConfig, useChatConfigOptional, useExecutionStream, useFileAttachments, useImageStream };
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -830,6 +830,63 @@ interface ExecuteResponse {
|
|
|
830
830
|
/** Initial status */
|
|
831
831
|
status: ExecutionStatus;
|
|
832
832
|
}
|
|
833
|
+
/**
|
|
834
|
+
* Language code an agent message is stored and rendered in (e.g. `en`,
|
|
835
|
+
* `pt-br`). Each agent sets its own language list; see
|
|
836
|
+
* `AgentMessageList.languages`. Was `'en' | 'es' | 'id'` before p13.
|
|
837
|
+
*/
|
|
838
|
+
type AgentMessageLang = string;
|
|
839
|
+
/**
|
|
840
|
+
* One saved agent message (e.g. `handoff.requested`), text per language.
|
|
841
|
+
*/
|
|
842
|
+
interface AgentMessage {
|
|
843
|
+
/** Lowercase dotted key, e.g. `chat.welcome` */
|
|
844
|
+
key: string;
|
|
845
|
+
/** Text per language code */
|
|
846
|
+
text: Partial<Record<AgentMessageLang, string>>;
|
|
847
|
+
/** `{word}` placeholder names found in any language */
|
|
848
|
+
placeholders: string[];
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* Response of `client.agents.messages.list()`
|
|
852
|
+
*/
|
|
853
|
+
interface AgentMessageList {
|
|
854
|
+
/** The resolved agent (a team uuid resolves to its lead agent) */
|
|
855
|
+
agentUuid: string;
|
|
856
|
+
/** The agent's saved messages, sorted by key */
|
|
857
|
+
messages: AgentMessage[];
|
|
858
|
+
/** Every key the platform knows about, for pickers (saved or not) */
|
|
859
|
+
knownKeys: string[];
|
|
860
|
+
/**
|
|
861
|
+
* The agent's message languages, in display order. Missing from older
|
|
862
|
+
* servers; fall back to the languages seen in `messages[].text`.
|
|
863
|
+
*/
|
|
864
|
+
languages?: AgentMessageLang[];
|
|
865
|
+
/** The agent's default message language. Missing from older servers; treat as `en`. */
|
|
866
|
+
defaultLanguage?: AgentMessageLang;
|
|
867
|
+
}
|
|
868
|
+
/**
|
|
869
|
+
* Options for `client.agents.messages.render()`
|
|
870
|
+
*/
|
|
871
|
+
interface AgentMessageRenderOptions {
|
|
872
|
+
/**
|
|
873
|
+
* Requested language. Server falls back: exact, then base (`pt-br` to `pt`),
|
|
874
|
+
* then the agent's default language, then `en`, then the first non-empty text.
|
|
875
|
+
*/
|
|
876
|
+
lang?: AgentMessageLang;
|
|
877
|
+
/** Values for `{word}` placeholders; unknown placeholders are left as-is */
|
|
878
|
+
vars?: Record<string, string | number>;
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* Response of `client.agents.messages.render()`
|
|
882
|
+
*/
|
|
883
|
+
interface AgentMessageRenderResult {
|
|
884
|
+
key: string;
|
|
885
|
+
/** The language actually rendered (after fallback) */
|
|
886
|
+
lang: AgentMessageLang;
|
|
887
|
+
/** Filled text, or `null` when the agent has no message for this key */
|
|
888
|
+
text: string | null;
|
|
889
|
+
}
|
|
833
890
|
|
|
834
891
|
/**
|
|
835
892
|
* Streaming types
|
|
@@ -2771,6 +2828,47 @@ interface StreamImagesResult {
|
|
|
2771
2828
|
executionId: string;
|
|
2772
2829
|
}
|
|
2773
2830
|
|
|
2831
|
+
/**
|
|
2832
|
+
* Agent Messages Resource API (p13)
|
|
2833
|
+
*
|
|
2834
|
+
* Read-only access to an agent's saved messages (welcome, handoff, fallback
|
|
2835
|
+
* copy, ...). Reached as `client.agents.messages`.
|
|
2836
|
+
* - list(): the agent's saved messages, every known key, the agent's languages
|
|
2837
|
+
* - render(): one message filled with vars, in a language (server falls back:
|
|
2838
|
+
* exact, base, agent default, en, first non-empty; `lang` says which was used)
|
|
2839
|
+
*/
|
|
2840
|
+
|
|
2841
|
+
declare class AgentMessagesAPI extends BaseResourceAPI {
|
|
2842
|
+
constructor(http: HttpClient);
|
|
2843
|
+
/**
|
|
2844
|
+
* List an agent's saved messages and the known keys
|
|
2845
|
+
*
|
|
2846
|
+
* @param agentUuid - Agent UUID (a team UUID resolves to its lead agent)
|
|
2847
|
+
*
|
|
2848
|
+
* @example
|
|
2849
|
+
* ```typescript
|
|
2850
|
+
* const { messages, knownKeys, languages, defaultLanguage } = await client.agents.messages.list('agent-uuid');
|
|
2851
|
+
* ```
|
|
2852
|
+
*/
|
|
2853
|
+
list(agentUuid: string): Promise<AgentMessageList>;
|
|
2854
|
+
/**
|
|
2855
|
+
* Render one message with placeholders filled
|
|
2856
|
+
*
|
|
2857
|
+
* Resolves with `text: null` when the agent has no message for the key.
|
|
2858
|
+
* Throws `ValidationError` before any request when the key is not a
|
|
2859
|
+
* lowercase dotted key (see `MESSAGE_KEY_PATTERN`).
|
|
2860
|
+
*
|
|
2861
|
+
* @example
|
|
2862
|
+
* ```typescript
|
|
2863
|
+
* const { text } = await client.agents.messages.render('agent-uuid', 'handoff.requested', {
|
|
2864
|
+
* lang: 'es',
|
|
2865
|
+
* vars: { agentName: 'Ana' },
|
|
2866
|
+
* });
|
|
2867
|
+
* ```
|
|
2868
|
+
*/
|
|
2869
|
+
render(agentUuid: string, key: string, options?: AgentMessageRenderOptions): Promise<AgentMessageRenderResult>;
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2774
2872
|
/**
|
|
2775
2873
|
* Agents Resource API
|
|
2776
2874
|
*
|
|
@@ -2786,6 +2884,8 @@ interface StreamImagesResult {
|
|
|
2786
2884
|
*/
|
|
2787
2885
|
declare class AgentsAPI extends BaseResourceAPI {
|
|
2788
2886
|
private readonly getStreamConfig;
|
|
2887
|
+
/** Saved agent messages (p13): `list()` and `render()` */
|
|
2888
|
+
readonly messages: AgentMessagesAPI;
|
|
2789
2889
|
constructor(http: HttpClient, getStreamConfig: () => StreamConfig);
|
|
2790
2890
|
/**
|
|
2791
2891
|
* List all agents in the organization
|
|
@@ -5178,6 +5278,54 @@ interface ChatInputProps {
|
|
|
5178
5278
|
*/
|
|
5179
5279
|
declare function ChatInput({ onSend, onStop, placeholder, disabled, isLoading, enableAttachments, attachments, onRemoveAttachment, dropZoneRef, isUploadingAttachments, className, onInputChange, onInputControlReady, }: ChatInputProps): react_jsx_runtime.JSX.Element;
|
|
5180
5280
|
|
|
5281
|
+
/** The slice of CadraClient the picker uses. */
|
|
5282
|
+
interface AgentMessagePickerClient {
|
|
5283
|
+
agents: {
|
|
5284
|
+
messages: {
|
|
5285
|
+
list(agentUuid: string): Promise<AgentMessageList>;
|
|
5286
|
+
};
|
|
5287
|
+
};
|
|
5288
|
+
}
|
|
5289
|
+
/** UI labels; override to translate. */
|
|
5290
|
+
interface AgentMessagePickerLabels {
|
|
5291
|
+
search: string;
|
|
5292
|
+
loading: string;
|
|
5293
|
+
loadError: string;
|
|
5294
|
+
empty: string;
|
|
5295
|
+
notSet: string;
|
|
5296
|
+
useCustom: (key: string) => string;
|
|
5297
|
+
invalidCustom: string;
|
|
5298
|
+
/** Accessible label of the preview-language select */
|
|
5299
|
+
language: string;
|
|
5300
|
+
}
|
|
5301
|
+
interface AgentMessagePickerProps {
|
|
5302
|
+
client: AgentMessagePickerClient;
|
|
5303
|
+
agentUuid: string;
|
|
5304
|
+
/** Selected key */
|
|
5305
|
+
value?: string | null;
|
|
5306
|
+
onChange: (key: string) => void;
|
|
5307
|
+
/** Let the user type a new dotted key */
|
|
5308
|
+
allowCustom?: boolean;
|
|
5309
|
+
/** Starting preview language. Default: the agent's defaultLanguage, else en */
|
|
5310
|
+
lang?: AgentMessageLang;
|
|
5311
|
+
/** Called when the user picks another preview language */
|
|
5312
|
+
onLangChange?: (lang: AgentMessageLang) => void;
|
|
5313
|
+
labels?: Partial<AgentMessagePickerLabels>;
|
|
5314
|
+
className?: string;
|
|
5315
|
+
}
|
|
5316
|
+
declare function AgentMessagePicker({ client, agentUuid, value, onChange, allowCustom, lang, onLangChange, labels: labelOverrides, className, }: AgentMessagePickerProps): react_jsx_runtime.JSX.Element;
|
|
5317
|
+
|
|
5318
|
+
/**
|
|
5319
|
+
* Agent message keys (p13) — lowercase dotted, e.g. `chat.welcome`.
|
|
5320
|
+
*
|
|
5321
|
+
* Same rule cadra-web enforces on `/api/v1/agents/:id/messages/render`, so an
|
|
5322
|
+
* invalid key fails client-side before a request is made. Kept free of any
|
|
5323
|
+
* client import so the chat entry can use it without pulling in the client.
|
|
5324
|
+
*/
|
|
5325
|
+
declare const MESSAGE_KEY_PATTERN: RegExp;
|
|
5326
|
+
/** True when `key` is a valid lowercase dotted agent message key. */
|
|
5327
|
+
declare function isValidMessageKey(key: string): boolean;
|
|
5328
|
+
|
|
5181
5329
|
/**
|
|
5182
5330
|
* Tool name patterns for internal/orchestration tools that should be hidden
|
|
5183
5331
|
* in compact verbosity mode. These are matched after stripping common prefixes
|
|
@@ -5420,4 +5568,4 @@ declare function ClockIcon({ className, ...props }: IconProps): react_jsx_runtim
|
|
|
5420
5568
|
*/
|
|
5421
5569
|
declare function compressImage(file: File, targetSizeKB?: number): Promise<File>;
|
|
5422
5570
|
|
|
5423
|
-
export { AgentChat, type AgentChatProps, AlertCircleIcon, type Artifact$1 as Artifact, AskUserPrompt, type AskUserPromptProps, type AttachmentData, type AttachmentFile, BotIcon, type ChatAdapter, ChatConfigProvider, type ChatConfigProviderProps, ChatContainer, type ChatContainerProps, type ChatError, ChatInput, type ChatInputProps, ChatMessage, type ChatMessageProps, type ChatMessage$1 as ChatMessageType, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CircleIcon, type ClarificationData, ClockIcon, CodeIcon, CopyIcon, type CurrentStep, DatabaseIcon, type DefaultAdapterConfig, type DelegationEvent, DelegationProgress, DelegationProgressList, type DelegationProgressListProps, type DelegationProgressProps, DownloadIcon, type Execution, type ExecutionResult, type ExecutionStreamEvent, ExternalLinkIcon, FileDropZone, type FileDropZoneProps, type FileDropZoneRef, FileIcon, FileTextIcon, HelpCircleIcon, type HistoryMessage, INTERNAL_TOOL_NAMES, type IconProps, type ImageData, ImageGallery, type ImageGalleryProps, ImageIcon, ImageLightbox, type ImageLightboxProps, type ImageStreamClient, type ImageStreamStatus, ImagesIcon, type ListSessionsInput, ListTodoIcon, LoadingSpinner, MarkdownContent, type MarkdownContentProps, Maximize2Icon, MessageCircleIcon, MessageList, type MessageListProps, Minimize2Icon, PaperclipIcon, SendIcon, type SendMessageInput$1 as SendMessageInput, type SendMessageOptions, type SessionHistory$1 as SessionHistory, type SessionList, type SessionListItem, SparklesIcon, type StartExecutionInput, StopCircleIcon, type ThemeMode, ThinkingBlock, ThinkingBlockList, type ThinkingBlockListProps, type ThinkingBlockProps, type ThinkingBlock$1 as ThinkingBlockType, type TodoItem, TodoList, type TodoListProps, type ToolCall, ToolCallEntry, type ToolCallEntryProps, type ToolCallVerbosity, type UploadUrlInput, type UploadUrlResult, type UseAgentChatOptions, type UseAgentChatResult, type UseExecutionStreamOptions, type UseExecutionStreamResult, type UseFileAttachmentsOptions, type UseFileAttachmentsResult, type UseImageStreamOptions, type UseImageStreamResult, UserIcon, XIcon, ZoomInIcon, ZoomOutIcon, compressImage, createDefaultAdapter, isInternalTool, useAgentChat, useChatConfig, useChatConfigOptional, useExecutionStream, useFileAttachments, useImageStream };
|
|
5571
|
+
export { AgentChat, type AgentChatProps, AgentMessagePicker, type AgentMessagePickerClient, type AgentMessagePickerLabels, type AgentMessagePickerProps, AlertCircleIcon, type Artifact$1 as Artifact, AskUserPrompt, type AskUserPromptProps, type AttachmentData, type AttachmentFile, BotIcon, type ChatAdapter, ChatConfigProvider, type ChatConfigProviderProps, ChatContainer, type ChatContainerProps, type ChatError, ChatInput, type ChatInputProps, ChatMessage, type ChatMessageProps, type ChatMessage$1 as ChatMessageType, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CircleIcon, type ClarificationData, ClockIcon, CodeIcon, CopyIcon, type CurrentStep, DatabaseIcon, type DefaultAdapterConfig, type DelegationEvent, DelegationProgress, DelegationProgressList, type DelegationProgressListProps, type DelegationProgressProps, DownloadIcon, type Execution, type ExecutionResult, type ExecutionStreamEvent, ExternalLinkIcon, FileDropZone, type FileDropZoneProps, type FileDropZoneRef, FileIcon, FileTextIcon, HelpCircleIcon, type HistoryMessage, INTERNAL_TOOL_NAMES, type IconProps, type ImageData, ImageGallery, type ImageGalleryProps, ImageIcon, ImageLightbox, type ImageLightboxProps, type ImageStreamClient, type ImageStreamStatus, ImagesIcon, type ListSessionsInput, ListTodoIcon, LoadingSpinner, MESSAGE_KEY_PATTERN, MarkdownContent, type MarkdownContentProps, Maximize2Icon, MessageCircleIcon, MessageList, type MessageListProps, Minimize2Icon, PaperclipIcon, SendIcon, type SendMessageInput$1 as SendMessageInput, type SendMessageOptions, type SessionHistory$1 as SessionHistory, type SessionList, type SessionListItem, SparklesIcon, type StartExecutionInput, StopCircleIcon, type ThemeMode, ThinkingBlock, ThinkingBlockList, type ThinkingBlockListProps, type ThinkingBlockProps, type ThinkingBlock$1 as ThinkingBlockType, type TodoItem, TodoList, type TodoListProps, type ToolCall, ToolCallEntry, type ToolCallEntryProps, type ToolCallVerbosity, type UploadUrlInput, type UploadUrlResult, type UseAgentChatOptions, type UseAgentChatResult, type UseExecutionStreamOptions, type UseExecutionStreamResult, type UseFileAttachmentsOptions, type UseFileAttachmentsResult, type UseImageStreamOptions, type UseImageStreamResult, UserIcon, XIcon, ZoomInIcon, ZoomOutIcon, compressImage, createDefaultAdapter, isInternalTool, isValidMessageKey, useAgentChat, useChatConfig, useChatConfigOptional, useExecutionStream, useFileAttachments, useImageStream };
|
package/dist/chat/index.js
CHANGED
|
@@ -1823,13 +1823,69 @@ function executionCancelPath(executionId) {
|
|
|
1823
1823
|
return `${EXECUTION_PATH}/${executionId}/cancel`;
|
|
1824
1824
|
}
|
|
1825
1825
|
|
|
1826
|
+
// src/utils/message-key.ts
|
|
1827
|
+
var MESSAGE_KEY_PATTERN = /^[a-z][a-z0-9_]*(\.[a-z0-9_]+)+$/;
|
|
1828
|
+
function isValidMessageKey(key) {
|
|
1829
|
+
return MESSAGE_KEY_PATTERN.test(key);
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
// src/resources/agent-messages.ts
|
|
1833
|
+
var AgentMessagesAPI = class extends BaseResourceAPI {
|
|
1834
|
+
constructor(http) {
|
|
1835
|
+
super(http, "/api/v1/agents");
|
|
1836
|
+
}
|
|
1837
|
+
/**
|
|
1838
|
+
* List an agent's saved messages and the known keys
|
|
1839
|
+
*
|
|
1840
|
+
* @param agentUuid - Agent UUID (a team UUID resolves to its lead agent)
|
|
1841
|
+
*
|
|
1842
|
+
* @example
|
|
1843
|
+
* ```typescript
|
|
1844
|
+
* const { messages, knownKeys, languages, defaultLanguage } = await client.agents.messages.list('agent-uuid');
|
|
1845
|
+
* ```
|
|
1846
|
+
*/
|
|
1847
|
+
async list(agentUuid) {
|
|
1848
|
+
return this.httpGet(`/${agentUuid}/messages`);
|
|
1849
|
+
}
|
|
1850
|
+
/**
|
|
1851
|
+
* Render one message with placeholders filled
|
|
1852
|
+
*
|
|
1853
|
+
* Resolves with `text: null` when the agent has no message for the key.
|
|
1854
|
+
* Throws `ValidationError` before any request when the key is not a
|
|
1855
|
+
* lowercase dotted key (see `MESSAGE_KEY_PATTERN`).
|
|
1856
|
+
*
|
|
1857
|
+
* @example
|
|
1858
|
+
* ```typescript
|
|
1859
|
+
* const { text } = await client.agents.messages.render('agent-uuid', 'handoff.requested', {
|
|
1860
|
+
* lang: 'es',
|
|
1861
|
+
* vars: { agentName: 'Ana' },
|
|
1862
|
+
* });
|
|
1863
|
+
* ```
|
|
1864
|
+
*/
|
|
1865
|
+
async render(agentUuid, key, options = {}) {
|
|
1866
|
+
if (!isValidMessageKey(key)) {
|
|
1867
|
+
throw new ValidationError(`Invalid message key "${key}"`, [
|
|
1868
|
+
{ field: "key", message: "Must be a lowercase dotted key, e.g. chat.welcome" }
|
|
1869
|
+
]);
|
|
1870
|
+
}
|
|
1871
|
+
return this.httpPost(`/${agentUuid}/messages/render`, {
|
|
1872
|
+
key,
|
|
1873
|
+
...options.lang ? { lang: options.lang } : {},
|
|
1874
|
+
...options.vars ? { vars: options.vars } : {}
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
};
|
|
1878
|
+
|
|
1826
1879
|
// src/resources/agents.ts
|
|
1827
1880
|
var AgentsAPI = class extends BaseResourceAPI {
|
|
1828
1881
|
constructor(http, getStreamConfig) {
|
|
1829
1882
|
super(http, "/api/v1/agents");
|
|
1830
1883
|
this.getStreamConfig = getStreamConfig;
|
|
1884
|
+
this.messages = new AgentMessagesAPI(http);
|
|
1831
1885
|
}
|
|
1832
1886
|
getStreamConfig;
|
|
1887
|
+
/** Saved agent messages (p13): `list()` and `render()` */
|
|
1888
|
+
messages;
|
|
1833
1889
|
// ===== LIST Operations =====
|
|
1834
1890
|
/**
|
|
1835
1891
|
* List all agents in the organization
|
|
@@ -9603,6 +9659,147 @@ function useImageStream(options) {
|
|
|
9603
9659
|
}, [client, providedExecutionId, agentUuid, inputKey, sessionId, shouldConnect]);
|
|
9604
9660
|
return { images, status, error, executionId, output, cancel };
|
|
9605
9661
|
}
|
|
9662
|
+
var DEFAULT_LABELS = {
|
|
9663
|
+
search: "Search messages",
|
|
9664
|
+
loading: "Loading messages",
|
|
9665
|
+
loadError: "Could not load messages",
|
|
9666
|
+
empty: "No matching messages",
|
|
9667
|
+
notSet: "not set",
|
|
9668
|
+
useCustom: (key) => `Use "${key}"`,
|
|
9669
|
+
invalidCustom: "Keys are lowercase and dotted, like chat.welcome",
|
|
9670
|
+
language: "Preview language"
|
|
9671
|
+
};
|
|
9672
|
+
function previewOf(message, lang, defaultLanguage = "en") {
|
|
9673
|
+
const base = lang.split("-")[0] ?? lang;
|
|
9674
|
+
for (const candidate of [lang, base, defaultLanguage, "en"]) {
|
|
9675
|
+
const text = message.text[candidate];
|
|
9676
|
+
if (text) return text;
|
|
9677
|
+
}
|
|
9678
|
+
return Object.values(message.text).find((t) => Boolean(t)) ?? null;
|
|
9679
|
+
}
|
|
9680
|
+
function languagesOf(list) {
|
|
9681
|
+
if (list.languages && list.languages.length > 0) return list.languages;
|
|
9682
|
+
const seen = /* @__PURE__ */ new Set([list.defaultLanguage ?? "en"]);
|
|
9683
|
+
for (const m of list.messages) {
|
|
9684
|
+
for (const [code, text] of Object.entries(m.text)) if (text) seen.add(code);
|
|
9685
|
+
}
|
|
9686
|
+
return [...seen];
|
|
9687
|
+
}
|
|
9688
|
+
function AgentMessagePicker({
|
|
9689
|
+
client,
|
|
9690
|
+
agentUuid,
|
|
9691
|
+
value,
|
|
9692
|
+
onChange,
|
|
9693
|
+
allowCustom = false,
|
|
9694
|
+
lang,
|
|
9695
|
+
onLangChange,
|
|
9696
|
+
labels: labelOverrides,
|
|
9697
|
+
className = ""
|
|
9698
|
+
}) {
|
|
9699
|
+
const labels = { ...DEFAULT_LABELS, ...labelOverrides };
|
|
9700
|
+
const [data, setData] = useState(null);
|
|
9701
|
+
const [error, setError] = useState(false);
|
|
9702
|
+
const [query, setQuery] = useState("");
|
|
9703
|
+
const [pickedLang, setPickedLang] = useState(null);
|
|
9704
|
+
useEffect(() => {
|
|
9705
|
+
setPickedLang(null);
|
|
9706
|
+
}, [lang, agentUuid]);
|
|
9707
|
+
const defaultLanguage = data?.defaultLanguage ?? "en";
|
|
9708
|
+
const languages = useMemo(() => data ? languagesOf(data) : [], [data]);
|
|
9709
|
+
const activeLang = pickedLang ?? lang ?? defaultLanguage;
|
|
9710
|
+
useEffect(() => {
|
|
9711
|
+
let cancelled = false;
|
|
9712
|
+
setData(null);
|
|
9713
|
+
setError(false);
|
|
9714
|
+
client.agents.messages.list(agentUuid).then((result) => {
|
|
9715
|
+
if (!cancelled) setData(result);
|
|
9716
|
+
}).catch(() => {
|
|
9717
|
+
if (!cancelled) setError(true);
|
|
9718
|
+
});
|
|
9719
|
+
return () => {
|
|
9720
|
+
cancelled = true;
|
|
9721
|
+
};
|
|
9722
|
+
}, [client, agentUuid]);
|
|
9723
|
+
const items = useMemo(() => {
|
|
9724
|
+
if (!data) return [];
|
|
9725
|
+
const saved = data.messages.map((m) => ({
|
|
9726
|
+
key: m.key,
|
|
9727
|
+
preview: previewOf(m, activeLang, defaultLanguage)
|
|
9728
|
+
}));
|
|
9729
|
+
const savedKeys = new Set(saved.map((i) => i.key));
|
|
9730
|
+
const unsaved = data.knownKeys.filter((k) => !savedKeys.has(k)).sort().map((key) => ({ key, preview: null }));
|
|
9731
|
+
return [...saved, ...unsaved];
|
|
9732
|
+
}, [data, activeLang, defaultLanguage]);
|
|
9733
|
+
const needle = query.trim().toLowerCase();
|
|
9734
|
+
const visible = needle ? items.filter(
|
|
9735
|
+
(i) => i.key.includes(needle) || (i.preview?.toLowerCase().includes(needle) ?? false)
|
|
9736
|
+
) : items;
|
|
9737
|
+
const custom = query.trim();
|
|
9738
|
+
const showCustom = allowCustom && custom.length > 0 && !items.some((i) => i.key === custom);
|
|
9739
|
+
const customValid = showCustom && isValidMessageKey(custom);
|
|
9740
|
+
const languageChoices = languages.includes(activeLang) ? languages : [...languages, activeLang];
|
|
9741
|
+
return /* @__PURE__ */ jsxs("div", { className: `flex flex-col gap-2 text-sm ${className}`, children: [
|
|
9742
|
+
/* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
|
|
9743
|
+
/* @__PURE__ */ jsx(
|
|
9744
|
+
"input",
|
|
9745
|
+
{
|
|
9746
|
+
type: "search",
|
|
9747
|
+
value: query,
|
|
9748
|
+
onChange: (e) => setQuery(e.target.value),
|
|
9749
|
+
placeholder: labels.search,
|
|
9750
|
+
"aria-label": labels.search,
|
|
9751
|
+
className: "w-full min-w-0 flex-1 rounded-lg bg-gray-100 dark:bg-gray-800 px-3 py-2 text-gray-900 dark:text-gray-100 placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500"
|
|
9752
|
+
}
|
|
9753
|
+
),
|
|
9754
|
+
data && languages.length > 1 && /* @__PURE__ */ jsx(
|
|
9755
|
+
"select",
|
|
9756
|
+
{
|
|
9757
|
+
value: activeLang,
|
|
9758
|
+
onChange: (e) => {
|
|
9759
|
+
setPickedLang(e.target.value);
|
|
9760
|
+
onLangChange?.(e.target.value);
|
|
9761
|
+
},
|
|
9762
|
+
"aria-label": labels.language,
|
|
9763
|
+
className: "rounded-lg bg-gray-100 dark:bg-gray-800 px-2 py-2 font-mono text-xs text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500",
|
|
9764
|
+
children: languageChoices.map((code) => /* @__PURE__ */ jsx("option", { value: code, children: code }, code))
|
|
9765
|
+
}
|
|
9766
|
+
)
|
|
9767
|
+
] }),
|
|
9768
|
+
error ? /* @__PURE__ */ jsx("p", { role: "alert", className: "px-1 text-red-500", children: labels.loadError }) : !data ? /* @__PURE__ */ jsxs("p", { className: "flex items-center gap-2 px-1 text-gray-500 dark:text-gray-400", children: [
|
|
9769
|
+
/* @__PURE__ */ jsx(LoadingSpinner, { className: "h-4 w-4" }),
|
|
9770
|
+
labels.loading
|
|
9771
|
+
] }) : /* @__PURE__ */ jsxs("ul", { role: "listbox", "aria-label": labels.search, className: "flex max-h-72 flex-col gap-0.5 overflow-y-auto", children: [
|
|
9772
|
+
visible.map((item) => {
|
|
9773
|
+
const selected = item.key === value;
|
|
9774
|
+
return /* @__PURE__ */ jsx("li", { role: "option", "aria-selected": selected, children: /* @__PURE__ */ jsxs(
|
|
9775
|
+
"button",
|
|
9776
|
+
{
|
|
9777
|
+
type: "button",
|
|
9778
|
+
onClick: () => onChange(item.key),
|
|
9779
|
+
className: `flex w-full items-start gap-2 rounded-lg px-3 py-2 text-left transition-colors ${selected ? "bg-blue-50 dark:bg-blue-900/30" : "hover:bg-gray-100 dark:hover:bg-gray-800"}`,
|
|
9780
|
+
children: [
|
|
9781
|
+
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
9782
|
+
/* @__PURE__ */ jsx("span", { className: "font-mono text-xs text-gray-900 dark:text-gray-100", children: item.key }),
|
|
9783
|
+
item.preview !== null ? /* @__PURE__ */ jsx("span", { className: "truncate text-gray-500 dark:text-gray-400", children: item.preview }) : /* @__PURE__ */ jsx("span", { className: "italic text-gray-400 dark:text-gray-500", children: labels.notSet })
|
|
9784
|
+
] }),
|
|
9785
|
+
selected && /* @__PURE__ */ jsx(CheckIcon, { className: "h-4 w-4 flex-shrink-0 text-blue-500" })
|
|
9786
|
+
]
|
|
9787
|
+
}
|
|
9788
|
+
) }, item.key);
|
|
9789
|
+
}),
|
|
9790
|
+
visible.length === 0 && !showCustom && /* @__PURE__ */ jsx("li", { className: "px-3 py-2 text-gray-500 dark:text-gray-400", children: labels.empty })
|
|
9791
|
+
] }),
|
|
9792
|
+
data && showCustom && (customValid ? /* @__PURE__ */ jsx(
|
|
9793
|
+
"button",
|
|
9794
|
+
{
|
|
9795
|
+
type: "button",
|
|
9796
|
+
onClick: () => onChange(custom),
|
|
9797
|
+
className: "rounded-lg bg-gray-100 dark:bg-gray-800 px-3 py-2 text-left font-mono text-xs text-blue-600 dark:text-blue-400 hover:bg-gray-200 dark:hover:bg-gray-700",
|
|
9798
|
+
children: labels.useCustom(custom)
|
|
9799
|
+
}
|
|
9800
|
+
) : /* @__PURE__ */ jsx("p", { className: "px-1 text-xs text-gray-500 dark:text-gray-400", children: labels.invalidCustom }))
|
|
9801
|
+
] });
|
|
9802
|
+
}
|
|
9606
9803
|
function cn13(...classes) {
|
|
9607
9804
|
return classes.filter(Boolean).join(" ");
|
|
9608
9805
|
}
|
|
@@ -9698,6 +9895,6 @@ function TodoList({
|
|
|
9698
9895
|
);
|
|
9699
9896
|
}
|
|
9700
9897
|
|
|
9701
|
-
export { AgentChat, AlertCircleIcon, AskUserPrompt, BotIcon, ChatConfigProvider, ChatContainer, ChatInput, ChatMessage, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CircleIcon, ClockIcon, CodeIcon, CopyIcon, DatabaseIcon, DelegationProgress, DelegationProgressList, DownloadIcon, ExternalLinkIcon, FileDropZone, FileIcon, FileTextIcon, HelpCircleIcon, INTERNAL_TOOL_NAMES, ImageGallery, ImageIcon, ImageLightbox, ImagesIcon, ListTodoIcon, LoadingSpinner, MarkdownContent, Maximize2Icon, MessageCircleIcon, MessageList, Minimize2Icon, PaperclipIcon, SendIcon, SparklesIcon, StopCircleIcon, ThinkingBlock, ThinkingBlockList, TodoList, ToolCallEntry, UserIcon, XIcon, ZoomInIcon, ZoomOutIcon, compressImage, createDefaultAdapter, isInternalTool, useAgentChat, useChatConfig, useChatConfigOptional, useExecutionStream, useFileAttachments, useImageStream };
|
|
9898
|
+
export { AgentChat, AgentMessagePicker, AlertCircleIcon, AskUserPrompt, BotIcon, ChatConfigProvider, ChatContainer, ChatInput, ChatMessage, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CircleIcon, ClockIcon, CodeIcon, CopyIcon, DatabaseIcon, DelegationProgress, DelegationProgressList, DownloadIcon, ExternalLinkIcon, FileDropZone, FileIcon, FileTextIcon, HelpCircleIcon, INTERNAL_TOOL_NAMES, ImageGallery, ImageIcon, ImageLightbox, ImagesIcon, ListTodoIcon, LoadingSpinner, MESSAGE_KEY_PATTERN, MarkdownContent, Maximize2Icon, MessageCircleIcon, MessageList, Minimize2Icon, PaperclipIcon, SendIcon, SparklesIcon, StopCircleIcon, ThinkingBlock, ThinkingBlockList, TodoList, ToolCallEntry, UserIcon, XIcon, ZoomInIcon, ZoomOutIcon, compressImage, createDefaultAdapter, isInternalTool, isValidMessageKey, useAgentChat, useChatConfig, useChatConfigOptional, useExecutionStream, useFileAttachments, useImageStream };
|
|
9702
9899
|
//# sourceMappingURL=index.js.map
|
|
9703
9900
|
//# sourceMappingURL=index.js.map
|