@gendive/chatllm 0.15.2 → 0.15.4
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/react/index.d.mts +46 -1
- package/dist/react/index.d.ts +46 -1
- package/dist/react/index.js +602 -333
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +609 -340
- package/dist/react/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react/index.d.mts
CHANGED
|
@@ -316,6 +316,16 @@ interface ToolCallResult {
|
|
|
316
316
|
content: string;
|
|
317
317
|
metadata?: Record<string, any>;
|
|
318
318
|
}
|
|
319
|
+
/** @Todo vibecode - 채팅 입력 파일 첨부 */
|
|
320
|
+
interface ChatAttachment {
|
|
321
|
+
id: string;
|
|
322
|
+
file: File;
|
|
323
|
+
name: string;
|
|
324
|
+
type: 'image' | 'file';
|
|
325
|
+
previewUrl?: string;
|
|
326
|
+
mimeType: string;
|
|
327
|
+
size: number;
|
|
328
|
+
}
|
|
319
329
|
/** @Todo vibecode - 도구 파라미터 정의 */
|
|
320
330
|
interface ChatToolParameter {
|
|
321
331
|
type: string;
|
|
@@ -842,6 +852,26 @@ interface InputProps {
|
|
|
842
852
|
* @Todo vibecode - 입력창 상단 진행 상태 칩
|
|
843
853
|
*/
|
|
844
854
|
activeSkillExecution?: SkillExecution | null;
|
|
855
|
+
/**
|
|
856
|
+
* @description 첨부 파일 목록
|
|
857
|
+
* @Todo vibecode - 입력창 프리뷰 영역에 표시
|
|
858
|
+
*/
|
|
859
|
+
attachments?: ChatAttachment[];
|
|
860
|
+
/**
|
|
861
|
+
* @description 파일 첨부 핸들러 (붙여넣기, 드래그앤드롭, 파일선택 공통)
|
|
862
|
+
* @Todo vibecode - File[] → ChatAttachment 변환 후 상태 추가
|
|
863
|
+
*/
|
|
864
|
+
onFileAttach?: (files: File[]) => void;
|
|
865
|
+
/**
|
|
866
|
+
* @description 첨부 파일 제거 핸들러
|
|
867
|
+
* @Todo vibecode - 프리뷰에서 X 버튼 클릭 시
|
|
868
|
+
*/
|
|
869
|
+
onRemoveAttachment?: (id: string) => void;
|
|
870
|
+
/**
|
|
871
|
+
* @description 허용 파일 타입
|
|
872
|
+
* @Todo vibecode - accept 속성 ('image/*', 'application/pdf' 등)
|
|
873
|
+
*/
|
|
874
|
+
acceptedFileTypes?: string[];
|
|
845
875
|
}
|
|
846
876
|
interface HeaderProps {
|
|
847
877
|
title: string;
|
|
@@ -975,6 +1005,21 @@ interface UseChatUIReturn {
|
|
|
975
1005
|
* @Todo vibecode - 사용자가 UI에서 스킬 선택 시 호출
|
|
976
1006
|
*/
|
|
977
1007
|
executeManualSkill: (skillName: string) => void;
|
|
1008
|
+
/**
|
|
1009
|
+
* @description 첨부 파일 목록
|
|
1010
|
+
* @Todo vibecode - 입력창 프리뷰 표시 + 전송 시 contentParts 변환
|
|
1011
|
+
*/
|
|
1012
|
+
attachments: ChatAttachment[];
|
|
1013
|
+
/**
|
|
1014
|
+
* @description 파일 첨부 핸들러
|
|
1015
|
+
* @Todo vibecode - File[] → ChatAttachment 변환 후 상태 추가
|
|
1016
|
+
*/
|
|
1017
|
+
addAttachments: (files: File[]) => void;
|
|
1018
|
+
/**
|
|
1019
|
+
* @description 첨부 파일 제거
|
|
1020
|
+
* @Todo vibecode - 프리뷰에서 삭제 시 objectURL 해제 포함
|
|
1021
|
+
*/
|
|
1022
|
+
removeAttachment: (id: string) => void;
|
|
978
1023
|
}
|
|
979
1024
|
|
|
980
1025
|
/**
|
|
@@ -1545,4 +1590,4 @@ declare const FileContentCard: React$1.FC<FileContentCardProps>;
|
|
|
1545
1590
|
*/
|
|
1546
1591
|
declare const convertToolsToSkills: (tools: ChatToolDefinition[], onToolCall: (name: string, params: Record<string, unknown>) => Promise<ToolCallResult>) => Record<string, SkillConfig>;
|
|
1547
1592
|
|
|
1548
|
-
export { type ActionItem, type ActionMenuProps, type AdvancedResearchOptions, type AlternativeResponse, ChatHeader, ChatInput, type ChatMessage, type ChatSession, ChatSidebar, type ChatToolDefinition, type ChatToolParameter, ChatUI, type ChatUIComponents, type ChatUIProps, ContentPartRenderer, type ContentPartRendererProps, type DeepResearchCallbacks, type DeepResearchProgress, DeepResearchProgressUI, EmptyState, type EmptyStateProps, type ErrorContentPart, FileContentCard, type FileContentCardProps, type FileContentPart, type HeaderProps, Icon, type IconName, type IconProps, IconSvg, ImageContentCard, type ImageContentCardProps, type ImageContentPart, type InputProps, LinkChip, type LinkChipProps, type ManualSkillItem, MarkdownRenderer, type MarkdownRendererProps, type MemoryItem, MemoryPanel, type MemoryPanelProps, MessageBubble, type MessageBubbleProps, type MessageContentPart, MessageList, type MessageListProps, type ModelConfig, type ModelSelectorProps, type PersonalizationConfig, type PollBlock, PollCard, type PollCardProps, type PollOption, type PollQuestion, type PollResponse, type PollState, type PromptTemplate, type ProviderType, type ResponseStyle, type SearchResult, type SearchResultContentPart, type SendMessageParams, type SendMessageResponse, SettingsModal, type SettingsModalProps, type SettingsTab, type SidebarProps, type SkillConfig, type SkillExecuteCallbacks, type SkillExecution, type SkillExecutionResult, type SkillProgress, SkillProgressUI, type SkillProgressUIProps, type SkillTrigger, type SourceItem, type SubAgentProgress, type TextContentPart, type ThemeConfig, type ThemeMode, type ToolCallResult, type ToolLoadingContentPart, type ToolResultContentPart, type UseChatUIOptions, type UseChatUIReturn, type UseDeepResearchOptions, type UseSkillsOptions, type UseSkillsReturn, type UserProfile, convertToolsToSkills, createAdvancedResearchSkill, createDeepResearchSkill, useChatUI, useDeepResearch, useSkills };
|
|
1593
|
+
export { type ActionItem, type ActionMenuProps, type AdvancedResearchOptions, type AlternativeResponse, type ChatAttachment, ChatHeader, ChatInput, type ChatMessage, type ChatSession, ChatSidebar, type ChatToolDefinition, type ChatToolParameter, ChatUI, type ChatUIComponents, type ChatUIProps, ContentPartRenderer, type ContentPartRendererProps, type DeepResearchCallbacks, type DeepResearchProgress, DeepResearchProgressUI, EmptyState, type EmptyStateProps, type ErrorContentPart, FileContentCard, type FileContentCardProps, type FileContentPart, type HeaderProps, Icon, type IconName, type IconProps, IconSvg, ImageContentCard, type ImageContentCardProps, type ImageContentPart, type InputProps, LinkChip, type LinkChipProps, type ManualSkillItem, MarkdownRenderer, type MarkdownRendererProps, type MemoryItem, MemoryPanel, type MemoryPanelProps, MessageBubble, type MessageBubbleProps, type MessageContentPart, MessageList, type MessageListProps, type ModelConfig, type ModelSelectorProps, type PersonalizationConfig, type PollBlock, PollCard, type PollCardProps, type PollOption, type PollQuestion, type PollResponse, type PollState, type PromptTemplate, type ProviderType, type ResponseStyle, type SearchResult, type SearchResultContentPart, type SendMessageParams, type SendMessageResponse, SettingsModal, type SettingsModalProps, type SettingsTab, type SidebarProps, type SkillConfig, type SkillExecuteCallbacks, type SkillExecution, type SkillExecutionResult, type SkillProgress, SkillProgressUI, type SkillProgressUIProps, type SkillTrigger, type SourceItem, type SubAgentProgress, type TextContentPart, type ThemeConfig, type ThemeMode, type ToolCallResult, type ToolLoadingContentPart, type ToolResultContentPart, type UseChatUIOptions, type UseChatUIReturn, type UseDeepResearchOptions, type UseSkillsOptions, type UseSkillsReturn, type UserProfile, convertToolsToSkills, createAdvancedResearchSkill, createDeepResearchSkill, useChatUI, useDeepResearch, useSkills };
|
package/dist/react/index.d.ts
CHANGED
|
@@ -316,6 +316,16 @@ interface ToolCallResult {
|
|
|
316
316
|
content: string;
|
|
317
317
|
metadata?: Record<string, any>;
|
|
318
318
|
}
|
|
319
|
+
/** @Todo vibecode - 채팅 입력 파일 첨부 */
|
|
320
|
+
interface ChatAttachment {
|
|
321
|
+
id: string;
|
|
322
|
+
file: File;
|
|
323
|
+
name: string;
|
|
324
|
+
type: 'image' | 'file';
|
|
325
|
+
previewUrl?: string;
|
|
326
|
+
mimeType: string;
|
|
327
|
+
size: number;
|
|
328
|
+
}
|
|
319
329
|
/** @Todo vibecode - 도구 파라미터 정의 */
|
|
320
330
|
interface ChatToolParameter {
|
|
321
331
|
type: string;
|
|
@@ -842,6 +852,26 @@ interface InputProps {
|
|
|
842
852
|
* @Todo vibecode - 입력창 상단 진행 상태 칩
|
|
843
853
|
*/
|
|
844
854
|
activeSkillExecution?: SkillExecution | null;
|
|
855
|
+
/**
|
|
856
|
+
* @description 첨부 파일 목록
|
|
857
|
+
* @Todo vibecode - 입력창 프리뷰 영역에 표시
|
|
858
|
+
*/
|
|
859
|
+
attachments?: ChatAttachment[];
|
|
860
|
+
/**
|
|
861
|
+
* @description 파일 첨부 핸들러 (붙여넣기, 드래그앤드롭, 파일선택 공통)
|
|
862
|
+
* @Todo vibecode - File[] → ChatAttachment 변환 후 상태 추가
|
|
863
|
+
*/
|
|
864
|
+
onFileAttach?: (files: File[]) => void;
|
|
865
|
+
/**
|
|
866
|
+
* @description 첨부 파일 제거 핸들러
|
|
867
|
+
* @Todo vibecode - 프리뷰에서 X 버튼 클릭 시
|
|
868
|
+
*/
|
|
869
|
+
onRemoveAttachment?: (id: string) => void;
|
|
870
|
+
/**
|
|
871
|
+
* @description 허용 파일 타입
|
|
872
|
+
* @Todo vibecode - accept 속성 ('image/*', 'application/pdf' 등)
|
|
873
|
+
*/
|
|
874
|
+
acceptedFileTypes?: string[];
|
|
845
875
|
}
|
|
846
876
|
interface HeaderProps {
|
|
847
877
|
title: string;
|
|
@@ -975,6 +1005,21 @@ interface UseChatUIReturn {
|
|
|
975
1005
|
* @Todo vibecode - 사용자가 UI에서 스킬 선택 시 호출
|
|
976
1006
|
*/
|
|
977
1007
|
executeManualSkill: (skillName: string) => void;
|
|
1008
|
+
/**
|
|
1009
|
+
* @description 첨부 파일 목록
|
|
1010
|
+
* @Todo vibecode - 입력창 프리뷰 표시 + 전송 시 contentParts 변환
|
|
1011
|
+
*/
|
|
1012
|
+
attachments: ChatAttachment[];
|
|
1013
|
+
/**
|
|
1014
|
+
* @description 파일 첨부 핸들러
|
|
1015
|
+
* @Todo vibecode - File[] → ChatAttachment 변환 후 상태 추가
|
|
1016
|
+
*/
|
|
1017
|
+
addAttachments: (files: File[]) => void;
|
|
1018
|
+
/**
|
|
1019
|
+
* @description 첨부 파일 제거
|
|
1020
|
+
* @Todo vibecode - 프리뷰에서 삭제 시 objectURL 해제 포함
|
|
1021
|
+
*/
|
|
1022
|
+
removeAttachment: (id: string) => void;
|
|
978
1023
|
}
|
|
979
1024
|
|
|
980
1025
|
/**
|
|
@@ -1545,4 +1590,4 @@ declare const FileContentCard: React$1.FC<FileContentCardProps>;
|
|
|
1545
1590
|
*/
|
|
1546
1591
|
declare const convertToolsToSkills: (tools: ChatToolDefinition[], onToolCall: (name: string, params: Record<string, unknown>) => Promise<ToolCallResult>) => Record<string, SkillConfig>;
|
|
1547
1592
|
|
|
1548
|
-
export { type ActionItem, type ActionMenuProps, type AdvancedResearchOptions, type AlternativeResponse, ChatHeader, ChatInput, type ChatMessage, type ChatSession, ChatSidebar, type ChatToolDefinition, type ChatToolParameter, ChatUI, type ChatUIComponents, type ChatUIProps, ContentPartRenderer, type ContentPartRendererProps, type DeepResearchCallbacks, type DeepResearchProgress, DeepResearchProgressUI, EmptyState, type EmptyStateProps, type ErrorContentPart, FileContentCard, type FileContentCardProps, type FileContentPart, type HeaderProps, Icon, type IconName, type IconProps, IconSvg, ImageContentCard, type ImageContentCardProps, type ImageContentPart, type InputProps, LinkChip, type LinkChipProps, type ManualSkillItem, MarkdownRenderer, type MarkdownRendererProps, type MemoryItem, MemoryPanel, type MemoryPanelProps, MessageBubble, type MessageBubbleProps, type MessageContentPart, MessageList, type MessageListProps, type ModelConfig, type ModelSelectorProps, type PersonalizationConfig, type PollBlock, PollCard, type PollCardProps, type PollOption, type PollQuestion, type PollResponse, type PollState, type PromptTemplate, type ProviderType, type ResponseStyle, type SearchResult, type SearchResultContentPart, type SendMessageParams, type SendMessageResponse, SettingsModal, type SettingsModalProps, type SettingsTab, type SidebarProps, type SkillConfig, type SkillExecuteCallbacks, type SkillExecution, type SkillExecutionResult, type SkillProgress, SkillProgressUI, type SkillProgressUIProps, type SkillTrigger, type SourceItem, type SubAgentProgress, type TextContentPart, type ThemeConfig, type ThemeMode, type ToolCallResult, type ToolLoadingContentPart, type ToolResultContentPart, type UseChatUIOptions, type UseChatUIReturn, type UseDeepResearchOptions, type UseSkillsOptions, type UseSkillsReturn, type UserProfile, convertToolsToSkills, createAdvancedResearchSkill, createDeepResearchSkill, useChatUI, useDeepResearch, useSkills };
|
|
1593
|
+
export { type ActionItem, type ActionMenuProps, type AdvancedResearchOptions, type AlternativeResponse, type ChatAttachment, ChatHeader, ChatInput, type ChatMessage, type ChatSession, ChatSidebar, type ChatToolDefinition, type ChatToolParameter, ChatUI, type ChatUIComponents, type ChatUIProps, ContentPartRenderer, type ContentPartRendererProps, type DeepResearchCallbacks, type DeepResearchProgress, DeepResearchProgressUI, EmptyState, type EmptyStateProps, type ErrorContentPart, FileContentCard, type FileContentCardProps, type FileContentPart, type HeaderProps, Icon, type IconName, type IconProps, IconSvg, ImageContentCard, type ImageContentCardProps, type ImageContentPart, type InputProps, LinkChip, type LinkChipProps, type ManualSkillItem, MarkdownRenderer, type MarkdownRendererProps, type MemoryItem, MemoryPanel, type MemoryPanelProps, MessageBubble, type MessageBubbleProps, type MessageContentPart, MessageList, type MessageListProps, type ModelConfig, type ModelSelectorProps, type PersonalizationConfig, type PollBlock, PollCard, type PollCardProps, type PollOption, type PollQuestion, type PollResponse, type PollState, type PromptTemplate, type ProviderType, type ResponseStyle, type SearchResult, type SearchResultContentPart, type SendMessageParams, type SendMessageResponse, SettingsModal, type SettingsModalProps, type SettingsTab, type SidebarProps, type SkillConfig, type SkillExecuteCallbacks, type SkillExecution, type SkillExecutionResult, type SkillProgress, SkillProgressUI, type SkillProgressUIProps, type SkillTrigger, type SourceItem, type SubAgentProgress, type TextContentPart, type ThemeConfig, type ThemeMode, type ToolCallResult, type ToolLoadingContentPart, type ToolResultContentPart, type UseChatUIOptions, type UseChatUIReturn, type UseDeepResearchOptions, type UseSkillsOptions, type UseSkillsReturn, type UserProfile, convertToolsToSkills, createAdvancedResearchSkill, createDeepResearchSkill, useChatUI, useDeepResearch, useSkills };
|