@sveda-ai/vue 0.1.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/LICENSE +21 -0
- package/README.md +9 -0
- package/dist/appearance.d.ts +52 -0
- package/dist/appearance.d.ts.map +1 -0
- package/dist/components/chat/AnimatedStreamBlock.vue.d.ts +16 -0
- package/dist/components/chat/AnimatedStreamBlock.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatHistoryDropdown.vue.d.ts +17 -0
- package/dist/components/chat/ChatHistoryDropdown.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatInput.vue.d.ts +30 -0
- package/dist/components/chat/ChatInput.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatMessageActivityBlock.vue.d.ts +13 -0
- package/dist/components/chat/ChatMessageActivityBlock.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatMessageItem.vue.d.ts +15 -0
- package/dist/components/chat/ChatMessageItem.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatMessageList.vue.d.ts +31 -0
- package/dist/components/chat/ChatMessageList.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatPendingIndicator.vue.d.ts +12 -0
- package/dist/components/chat/ChatPendingIndicator.vue.d.ts.map +1 -0
- package/dist/components/chat/ReasoningStream.vue.d.ts +11 -0
- package/dist/components/chat/ReasoningStream.vue.d.ts.map +1 -0
- package/dist/components/chat/index.d.ts +9 -0
- package/dist/components/chat/index.d.ts.map +1 -0
- package/dist/components/shell/SvedaAgentCompletedNotice.vue.d.ts +9 -0
- package/dist/components/shell/SvedaAgentCompletedNotice.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaAgentTasksPanel.vue.d.ts +12 -0
- package/dist/components/shell/SvedaAgentTasksPanel.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaChat.vue.d.ts +22 -0
- package/dist/components/shell/SvedaChat.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaContextUsageBar.vue.d.ts +10 -0
- package/dist/components/shell/SvedaContextUsageBar.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaHistorySheet.vue.d.ts +15 -0
- package/dist/components/shell/SvedaHistorySheet.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaHistorySidebar.vue.d.ts +15 -0
- package/dist/components/shell/SvedaHistorySidebar.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaInputSection.vue.d.ts +25 -0
- package/dist/components/shell/SvedaInputSection.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaLandingView.vue.d.ts +40 -0
- package/dist/components/shell/SvedaLandingView.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaMaxStepsNotice.vue.d.ts +13 -0
- package/dist/components/shell/SvedaMaxStepsNotice.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaMinimizedTrigger.vue.d.ts +15 -0
- package/dist/components/shell/SvedaMinimizedTrigger.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaModelControls.vue.d.ts +12 -0
- package/dist/components/shell/SvedaModelControls.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaModelSelect.vue.d.ts +10 -0
- package/dist/components/shell/SvedaModelSelect.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaQuickPrompts.vue.d.ts +13 -0
- package/dist/components/shell/SvedaQuickPrompts.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaResizeHandles.vue.d.ts +11 -0
- package/dist/components/shell/SvedaResizeHandles.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaTabs.vue.d.ts +17 -0
- package/dist/components/shell/SvedaTabs.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaToolbar.vue.d.ts +33 -0
- package/dist/components/shell/SvedaToolbar.vue.d.ts.map +1 -0
- package/dist/composables/useSvedaAgentTasks.d.ts +57 -0
- package/dist/composables/useSvedaAgentTasks.d.ts.map +1 -0
- package/dist/composables/useSvedaBootstrap.d.ts +18 -0
- package/dist/composables/useSvedaBootstrap.d.ts.map +1 -0
- package/dist/composables/useSvedaChat.d.ts +264 -0
- package/dist/composables/useSvedaChat.d.ts.map +1 -0
- package/dist/composables/useSvedaChatLayout.d.ts +39 -0
- package/dist/composables/useSvedaChatLayout.d.ts.map +1 -0
- package/dist/composables/useSvedaChatPage.d.ts +309 -0
- package/dist/composables/useSvedaChatPage.d.ts.map +1 -0
- package/dist/composables/useSvedaContextWindow.d.ts +10 -0
- package/dist/composables/useSvedaContextWindow.d.ts.map +1 -0
- package/dist/composables/useSvedaDocuments.d.ts +20 -0
- package/dist/composables/useSvedaDocuments.d.ts.map +1 -0
- package/dist/composables/useSvedaMaxStepsContinue.d.ts +12 -0
- package/dist/composables/useSvedaMaxStepsContinue.d.ts.map +1 -0
- package/dist/composables/useSvedaMessaging.d.ts +55 -0
- package/dist/composables/useSvedaMessaging.d.ts.map +1 -0
- package/dist/composables/useSvedaModel.d.ts +16 -0
- package/dist/composables/useSvedaModel.d.ts.map +1 -0
- package/dist/composables/useSvedaPrompts.d.ts +18 -0
- package/dist/composables/useSvedaPrompts.d.ts.map +1 -0
- package/dist/composables/useSvedaReadable.d.ts +3 -0
- package/dist/composables/useSvedaReadable.d.ts.map +1 -0
- package/dist/composables/useSvedaScroll.d.ts +19 -0
- package/dist/composables/useSvedaScroll.d.ts.map +1 -0
- package/dist/composables/useSvedaShell.d.ts +29 -0
- package/dist/composables/useSvedaShell.d.ts.map +1 -0
- package/dist/composables/useSvedaStreaming.d.ts +46 -0
- package/dist/composables/useSvedaStreaming.d.ts.map +1 -0
- package/dist/composables/useSvedaTool.d.ts +4 -0
- package/dist/composables/useSvedaTool.d.ts.map +1 -0
- package/dist/i18n/index.d.ts +18 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/locales/en.d.ts +4 -0
- package/dist/i18n/locales/en.d.ts.map +1 -0
- package/dist/i18n/locales/ru.d.ts +4 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6612 -0
- package/dist/launcherIcons.d.ts +5 -0
- package/dist/launcherIcons.d.ts.map +1 -0
- package/dist/lib/assistantMessage.d.ts +89 -0
- package/dist/lib/assistantMessage.d.ts.map +1 -0
- package/dist/lib/chatHistoryMerge.d.ts +20 -0
- package/dist/lib/chatHistoryMerge.d.ts.map +1 -0
- package/dist/lib/chatI18nKeys.d.ts +2 -0
- package/dist/lib/chatI18nKeys.d.ts.map +1 -0
- package/dist/lib/chatMessageVisibility.d.ts +4 -0
- package/dist/lib/chatMessageVisibility.d.ts.map +1 -0
- package/dist/lib/chatTabs.d.ts +9 -0
- package/dist/lib/chatTabs.d.ts.map +1 -0
- package/dist/lib/chatTitle.d.ts +3 -0
- package/dist/lib/chatTitle.d.ts.map +1 -0
- package/dist/lib/chatUiStorage.d.ts +4 -0
- package/dist/lib/chatUiStorage.d.ts.map +1 -0
- package/dist/lib/finalizeMessages.d.ts +21 -0
- package/dist/lib/finalizeMessages.d.ts.map +1 -0
- package/dist/lib/markdown.d.ts +8 -0
- package/dist/lib/markdown.d.ts.map +1 -0
- package/dist/lib/modelLabels.d.ts +3 -0
- package/dist/lib/modelLabels.d.ts.map +1 -0
- package/dist/lib/pendingStatusRotation.d.ts +3 -0
- package/dist/lib/pendingStatusRotation.d.ts.map +1 -0
- package/dist/lib/useAnimatedText.d.ts +8 -0
- package/dist/lib/useAnimatedText.d.ts.map +1 -0
- package/dist/lib/userMessage.d.ts +17 -0
- package/dist/lib/userMessage.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/plugin.d.ts +64 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/styles.css +5 -0
- package/dist/ui/alert-dialog/AlertDialog.vue.d.ts +18 -0
- package/dist/ui/alert-dialog/AlertDialog.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogAction.vue.d.ts +18 -0
- package/dist/ui/alert-dialog/AlertDialogAction.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogCancel.vue.d.ts +18 -0
- package/dist/ui/alert-dialog/AlertDialogCancel.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogContent.vue.d.ts +32 -0
- package/dist/ui/alert-dialog/AlertDialogContent.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogDescription.vue.d.ts +18 -0
- package/dist/ui/alert-dialog/AlertDialogDescription.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogFooter.vue.d.ts +17 -0
- package/dist/ui/alert-dialog/AlertDialogFooter.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogHeader.vue.d.ts +17 -0
- package/dist/ui/alert-dialog/AlertDialogHeader.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogTitle.vue.d.ts +18 -0
- package/dist/ui/alert-dialog/AlertDialogTitle.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +14 -0
- package/dist/ui/alert-dialog/AlertDialogTrigger.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/index.d.ts +10 -0
- package/dist/ui/alert-dialog/index.d.ts.map +1 -0
- package/dist/ui/badge/Badge.vue.d.ts +19 -0
- package/dist/ui/badge/Badge.vue.d.ts.map +1 -0
- package/dist/ui/badge/index.d.ts +7 -0
- package/dist/ui/badge/index.d.ts.map +1 -0
- package/dist/ui/button/Button.vue.d.ts +23 -0
- package/dist/ui/button/Button.vue.d.ts.map +1 -0
- package/dist/ui/button/index.d.ts +9 -0
- package/dist/ui/button/index.d.ts.map +1 -0
- package/dist/ui/card/Card.vue.d.ts +17 -0
- package/dist/ui/card/Card.vue.d.ts.map +1 -0
- package/dist/ui/card/CardContent.vue.d.ts +17 -0
- package/dist/ui/card/CardContent.vue.d.ts.map +1 -0
- package/dist/ui/card/CardDescription.vue.d.ts +17 -0
- package/dist/ui/card/CardDescription.vue.d.ts.map +1 -0
- package/dist/ui/card/CardFooter.vue.d.ts +17 -0
- package/dist/ui/card/CardFooter.vue.d.ts.map +1 -0
- package/dist/ui/card/CardHeader.vue.d.ts +17 -0
- package/dist/ui/card/CardHeader.vue.d.ts.map +1 -0
- package/dist/ui/card/CardTitle.vue.d.ts +17 -0
- package/dist/ui/card/CardTitle.vue.d.ts.map +1 -0
- package/dist/ui/card/index.d.ts +7 -0
- package/dist/ui/card/index.d.ts.map +1 -0
- package/dist/ui/checkbox/Checkbox.vue.d.ts +30 -0
- package/dist/ui/checkbox/Checkbox.vue.d.ts.map +1 -0
- package/dist/ui/checkbox/index.d.ts +2 -0
- package/dist/ui/checkbox/index.d.ts.map +1 -0
- package/dist/ui/dialog/Dialog.vue.d.ts +18 -0
- package/dist/ui/dialog/Dialog.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogClose.vue.d.ts +14 -0
- package/dist/ui/dialog/DialogClose.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogContent.vue.d.ts +32 -0
- package/dist/ui/dialog/DialogContent.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogDescription.vue.d.ts +18 -0
- package/dist/ui/dialog/DialogDescription.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogFooter.vue.d.ts +17 -0
- package/dist/ui/dialog/DialogFooter.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogHeader.vue.d.ts +17 -0
- package/dist/ui/dialog/DialogHeader.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogScrollContent.vue.d.ts +32 -0
- package/dist/ui/dialog/DialogScrollContent.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogTitle.vue.d.ts +18 -0
- package/dist/ui/dialog/DialogTitle.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogTrigger.vue.d.ts +14 -0
- package/dist/ui/dialog/DialogTrigger.vue.d.ts.map +1 -0
- package/dist/ui/dialog/index.d.ts +10 -0
- package/dist/ui/dialog/index.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenu.vue.d.ts +18 -0
- package/dist/ui/dropdown-menu/DropdownMenu.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +24 -0
- package/dist/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +32 -0
- package/dist/ui/dropdown-menu/DropdownMenuContent.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +14 -0
- package/dist/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +19 -0
- package/dist/ui/dropdown-menu/DropdownMenuItem.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +19 -0
- package/dist/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +18 -0
- package/dist/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +22 -0
- package/dist/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +8 -0
- package/dist/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +17 -0
- package/dist/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +18 -0
- package/dist/ui/dropdown-menu/DropdownMenuSub.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +34 -0
- package/dist/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +18 -0
- package/dist/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +14 -0
- package/dist/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/index.d.ts +16 -0
- package/dist/ui/dropdown-menu/index.d.ts.map +1 -0
- package/dist/ui/input/Input.vue.d.ts +13 -0
- package/dist/ui/input/Input.vue.d.ts.map +1 -0
- package/dist/ui/input/index.d.ts +2 -0
- package/dist/ui/input/index.d.ts.map +1 -0
- package/dist/ui/label/Label.vue.d.ts +18 -0
- package/dist/ui/label/Label.vue.d.ts.map +1 -0
- package/dist/ui/label/index.d.ts +2 -0
- package/dist/ui/label/index.d.ts.map +1 -0
- package/dist/ui/responsive-dialog/ResponsiveDialog.vue.d.ts +32 -0
- package/dist/ui/responsive-dialog/ResponsiveDialog.vue.d.ts.map +1 -0
- package/dist/ui/responsive-dialog/index.d.ts +2 -0
- package/dist/ui/responsive-dialog/index.d.ts.map +1 -0
- package/dist/ui/scroll-area/ScrollArea.vue.d.ts +18 -0
- package/dist/ui/scroll-area/ScrollArea.vue.d.ts.map +1 -0
- package/dist/ui/scroll-area/ScrollBar.vue.d.ts +10 -0
- package/dist/ui/scroll-area/ScrollBar.vue.d.ts.map +1 -0
- package/dist/ui/scroll-area/index.d.ts +3 -0
- package/dist/ui/scroll-area/index.d.ts.map +1 -0
- package/dist/ui/select/Select.vue.d.ts +21 -0
- package/dist/ui/select/Select.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectContent.vue.d.ts +28 -0
- package/dist/ui/select/SelectContent.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectGroup.vue.d.ts +18 -0
- package/dist/ui/select/SelectGroup.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectItem.vue.d.ts +18 -0
- package/dist/ui/select/SelectItem.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectItemText.vue.d.ts +14 -0
- package/dist/ui/select/SelectItemText.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectLabel.vue.d.ts +18 -0
- package/dist/ui/select/SelectLabel.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist/ui/select/SelectScrollDownButton.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist/ui/select/SelectScrollUpButton.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectSeparator.vue.d.ts +8 -0
- package/dist/ui/select/SelectSeparator.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectTrigger.vue.d.ts +18 -0
- package/dist/ui/select/SelectTrigger.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectValue.vue.d.ts +14 -0
- package/dist/ui/select/SelectValue.vue.d.ts.map +1 -0
- package/dist/ui/select/index.d.ts +12 -0
- package/dist/ui/select/index.d.ts.map +1 -0
- package/dist/ui/sheet/Sheet.vue.d.ts +18 -0
- package/dist/ui/sheet/Sheet.vue.d.ts.map +1 -0
- package/dist/ui/sheet/SheetClose.vue.d.ts +14 -0
- package/dist/ui/sheet/SheetClose.vue.d.ts.map +1 -0
- package/dist/ui/sheet/SheetContent.vue.d.ts +34 -0
- package/dist/ui/sheet/SheetContent.vue.d.ts.map +1 -0
- package/dist/ui/sheet/SheetDescription.vue.d.ts +18 -0
- package/dist/ui/sheet/SheetDescription.vue.d.ts.map +1 -0
- package/dist/ui/sheet/SheetFooter.vue.d.ts +17 -0
- package/dist/ui/sheet/SheetFooter.vue.d.ts.map +1 -0
- package/dist/ui/sheet/SheetHeader.vue.d.ts +17 -0
- package/dist/ui/sheet/SheetHeader.vue.d.ts.map +1 -0
- package/dist/ui/sheet/SheetTitle.vue.d.ts +18 -0
- package/dist/ui/sheet/SheetTitle.vue.d.ts.map +1 -0
- package/dist/ui/sheet/SheetTrigger.vue.d.ts +14 -0
- package/dist/ui/sheet/SheetTrigger.vue.d.ts.map +1 -0
- package/dist/ui/sheet/index.d.ts +14 -0
- package/dist/ui/sheet/index.d.ts.map +1 -0
- package/dist/ui/switch/Switch.vue.d.ts +23 -0
- package/dist/ui/switch/Switch.vue.d.ts.map +1 -0
- package/dist/ui/switch/index.d.ts +2 -0
- package/dist/ui/switch/index.d.ts.map +1 -0
- package/dist/ui/textarea/Textarea.vue.d.ts +13 -0
- package/dist/ui/textarea/Textarea.vue.d.ts.map +1 -0
- package/dist/ui/textarea/index.d.ts +2 -0
- package/dist/ui/textarea/index.d.ts.map +1 -0
- package/dist/ui/toast/Toast.vue.d.ts +96 -0
- package/dist/ui/toast/Toast.vue.d.ts.map +1 -0
- package/dist/ui/toast/ToastAction.vue.d.ts +18 -0
- package/dist/ui/toast/ToastAction.vue.d.ts.map +1 -0
- package/dist/ui/toast/ToastClose.vue.d.ts +8 -0
- package/dist/ui/toast/ToastClose.vue.d.ts.map +1 -0
- package/dist/ui/toast/ToastDescription.vue.d.ts +18 -0
- package/dist/ui/toast/ToastDescription.vue.d.ts.map +1 -0
- package/dist/ui/toast/ToastProvider.vue.d.ts +14 -0
- package/dist/ui/toast/ToastProvider.vue.d.ts.map +1 -0
- package/dist/ui/toast/ToastTitle.vue.d.ts +18 -0
- package/dist/ui/toast/ToastTitle.vue.d.ts.map +1 -0
- package/dist/ui/toast/ToastViewport.vue.d.ts +8 -0
- package/dist/ui/toast/ToastViewport.vue.d.ts.map +1 -0
- package/dist/ui/toast/Toaster.vue.d.ts +3 -0
- package/dist/ui/toast/Toaster.vue.d.ts.map +1 -0
- package/dist/ui/toast/index.d.ts +23 -0
- package/dist/ui/toast/index.d.ts.map +1 -0
- package/dist/ui/toast/use-toast.d.ts +23 -0
- package/dist/ui/toast/use-toast.d.ts.map +1 -0
- package/dist/ui/tooltip/Tooltip.vue.d.ts +18 -0
- package/dist/ui/tooltip/Tooltip.vue.d.ts.map +1 -0
- package/dist/ui/tooltip/TooltipContent.vue.d.ts +26 -0
- package/dist/ui/tooltip/TooltipContent.vue.d.ts.map +1 -0
- package/dist/ui/tooltip/TooltipProvider.vue.d.ts +14 -0
- package/dist/ui/tooltip/TooltipProvider.vue.d.ts.map +1 -0
- package/dist/ui/tooltip/TooltipTrigger.vue.d.ts +14 -0
- package/dist/ui/tooltip/TooltipTrigger.vue.d.ts.map +1 -0
- package/dist/ui/tooltip/index.d.ts +5 -0
- package/dist/ui/tooltip/index.d.ts.map +1 -0
- package/dist/ui/utils.d.ts +2 -0
- package/dist/ui/utils.d.ts.map +1 -0
- package/dist/vue.css +1 -0
- package/package.json +64 -0
- package/src/appearance.ts +568 -0
- package/src/components/chat/AnimatedStreamBlock.vue +94 -0
- package/src/components/chat/ChatHistoryDropdown.vue +226 -0
- package/src/components/chat/ChatInput.vue +571 -0
- package/src/components/chat/ChatMessageActivityBlock.vue +447 -0
- package/src/components/chat/ChatMessageItem.vue +357 -0
- package/src/components/chat/ChatMessageList.vue +178 -0
- package/src/components/chat/ChatPendingIndicator.vue +163 -0
- package/src/components/chat/ReasoningStream.vue +112 -0
- package/src/components/chat/index.ts +8 -0
- package/src/components/shell/SvedaAgentCompletedNotice.vue +25 -0
- package/src/components/shell/SvedaAgentTasksPanel.vue +146 -0
- package/src/components/shell/SvedaChat.vue +514 -0
- package/src/components/shell/SvedaContextUsageBar.vue +33 -0
- package/src/components/shell/SvedaHistorySheet.vue +52 -0
- package/src/components/shell/SvedaHistorySidebar.vue +41 -0
- package/src/components/shell/SvedaInputSection.vue +53 -0
- package/src/components/shell/SvedaLandingView.vue +93 -0
- package/src/components/shell/SvedaMaxStepsNotice.vue +33 -0
- package/src/components/shell/SvedaMinimizedTrigger.vue +43 -0
- package/src/components/shell/SvedaModelControls.vue +47 -0
- package/src/components/shell/SvedaModelSelect.vue +32 -0
- package/src/components/shell/SvedaQuickPrompts.vue +44 -0
- package/src/components/shell/SvedaResizeHandles.vue +31 -0
- package/src/components/shell/SvedaTabs.vue +123 -0
- package/src/components/shell/SvedaToolbar.vue +171 -0
- package/src/composables/useSvedaAgentTasks.ts +93 -0
- package/src/composables/useSvedaBootstrap.ts +36 -0
- package/src/composables/useSvedaChat.ts +593 -0
- package/src/composables/useSvedaChatLayout.ts +539 -0
- package/src/composables/useSvedaChatPage.ts +339 -0
- package/src/composables/useSvedaContextWindow.ts +31 -0
- package/src/composables/useSvedaDocuments.ts +115 -0
- package/src/composables/useSvedaMaxStepsContinue.ts +68 -0
- package/src/composables/useSvedaMessaging.ts +99 -0
- package/src/composables/useSvedaModel.ts +85 -0
- package/src/composables/useSvedaPrompts.ts +59 -0
- package/src/composables/useSvedaReadable.ts +33 -0
- package/src/composables/useSvedaScroll.ts +93 -0
- package/src/composables/useSvedaShell.ts +91 -0
- package/src/composables/useSvedaStreaming.ts +408 -0
- package/src/composables/useSvedaTool.ts +18 -0
- package/src/i18n/index.ts +72 -0
- package/src/i18n/locales/en.ts +58 -0
- package/src/i18n/locales/ru.ts +59 -0
- package/src/index.ts +141 -0
- package/src/launcherIcons.ts +39 -0
- package/src/lib/assistantMessage.ts +437 -0
- package/src/lib/chatHistoryMerge.ts +93 -0
- package/src/lib/chatI18nKeys.ts +62 -0
- package/src/lib/chatMessageVisibility.ts +50 -0
- package/src/lib/chatTabs.ts +54 -0
- package/src/lib/chatTitle.ts +30 -0
- package/src/lib/chatUiStorage.ts +33 -0
- package/src/lib/finalizeMessages.ts +81 -0
- package/src/lib/markdown.ts +90 -0
- package/src/lib/modelLabels.ts +24 -0
- package/src/lib/pendingStatusRotation.ts +26 -0
- package/src/lib/shims-vue.d.ts +6 -0
- package/src/lib/useAnimatedText.ts +78 -0
- package/src/lib/userMessage.ts +55 -0
- package/src/lib/utils.ts +6 -0
- package/src/plugin.ts +164 -0
- package/src/styles.css +5 -0
- package/src/theme.css +95 -0
- package/src/theme.test.mjs +80 -0
- package/src/ui/alert-dialog/AlertDialog.vue +14 -0
- package/src/ui/alert-dialog/AlertDialogAction.vue +17 -0
- package/src/ui/alert-dialog/AlertDialogCancel.vue +24 -0
- package/src/ui/alert-dialog/AlertDialogContent.vue +39 -0
- package/src/ui/alert-dialog/AlertDialogDescription.vue +22 -0
- package/src/ui/alert-dialog/AlertDialogFooter.vue +21 -0
- package/src/ui/alert-dialog/AlertDialogHeader.vue +16 -0
- package/src/ui/alert-dialog/AlertDialogTitle.vue +19 -0
- package/src/ui/alert-dialog/AlertDialogTrigger.vue +11 -0
- package/src/ui/alert-dialog/index.ts +9 -0
- package/src/ui/badge/Badge.vue +16 -0
- package/src/ui/badge/index.ts +27 -0
- package/src/ui/button/Button.vue +56 -0
- package/src/ui/button/index.ts +50 -0
- package/src/ui/card/Card.vue +14 -0
- package/src/ui/card/CardContent.vue +14 -0
- package/src/ui/card/CardDescription.vue +14 -0
- package/src/ui/card/CardFooter.vue +14 -0
- package/src/ui/card/CardHeader.vue +14 -0
- package/src/ui/card/CardTitle.vue +14 -0
- package/src/ui/card/index.ts +6 -0
- package/src/ui/checkbox/Checkbox.vue +41 -0
- package/src/ui/checkbox/index.ts +1 -0
- package/src/ui/dialog/Dialog.vue +14 -0
- package/src/ui/dialog/DialogClose.vue +11 -0
- package/src/ui/dialog/DialogContent.vue +50 -0
- package/src/ui/dialog/DialogDescription.vue +24 -0
- package/src/ui/dialog/DialogFooter.vue +19 -0
- package/src/ui/dialog/DialogHeader.vue +16 -0
- package/src/ui/dialog/DialogScrollContent.vue +59 -0
- package/src/ui/dialog/DialogTitle.vue +29 -0
- package/src/ui/dialog/DialogTrigger.vue +11 -0
- package/src/ui/dialog/index.ts +9 -0
- package/src/ui/dropdown-menu/DropdownMenu.vue +14 -0
- package/src/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +42 -0
- package/src/ui/dropdown-menu/DropdownMenuContent.vue +40 -0
- package/src/ui/dropdown-menu/DropdownMenuGroup.vue +11 -0
- package/src/ui/dropdown-menu/DropdownMenuItem.vue +30 -0
- package/src/ui/dropdown-menu/DropdownMenuLabel.vue +21 -0
- package/src/ui/dropdown-menu/DropdownMenuRadioGroup.vue +14 -0
- package/src/ui/dropdown-menu/DropdownMenuRadioItem.vue +43 -0
- package/src/ui/dropdown-menu/DropdownMenuSeparator.vue +21 -0
- package/src/ui/dropdown-menu/DropdownMenuShortcut.vue +14 -0
- package/src/ui/dropdown-menu/DropdownMenuSub.vue +14 -0
- package/src/ui/dropdown-menu/DropdownMenuSubContent.vue +30 -0
- package/src/ui/dropdown-menu/DropdownMenuSubTrigger.vue +31 -0
- package/src/ui/dropdown-menu/DropdownMenuTrigger.vue +13 -0
- package/src/ui/dropdown-menu/index.ts +16 -0
- package/src/ui/input/Input.vue +32 -0
- package/src/ui/input/index.ts +1 -0
- package/src/ui/label/Label.vue +22 -0
- package/src/ui/label/index.ts +1 -0
- package/src/ui/responsive-dialog/ResponsiveDialog.vue +55 -0
- package/src/ui/responsive-dialog/index.ts +1 -0
- package/src/ui/scroll-area/ScrollArea.vue +29 -0
- package/src/ui/scroll-area/ScrollBar.vue +30 -0
- package/src/ui/scroll-area/index.ts +2 -0
- package/src/ui/select/Select.vue +15 -0
- package/src/ui/select/SelectContent.vue +53 -0
- package/src/ui/select/SelectGroup.vue +19 -0
- package/src/ui/select/SelectItem.vue +44 -0
- package/src/ui/select/SelectItemText.vue +11 -0
- package/src/ui/select/SelectLabel.vue +13 -0
- package/src/ui/select/SelectScrollDownButton.vue +24 -0
- package/src/ui/select/SelectScrollUpButton.vue +24 -0
- package/src/ui/select/SelectSeparator.vue +17 -0
- package/src/ui/select/SelectTrigger.vue +31 -0
- package/src/ui/select/SelectValue.vue +11 -0
- package/src/ui/select/index.ts +11 -0
- package/src/ui/sheet/Sheet.vue +14 -0
- package/src/ui/sheet/SheetClose.vue +11 -0
- package/src/ui/sheet/SheetContent.vue +53 -0
- package/src/ui/sheet/SheetDescription.vue +19 -0
- package/src/ui/sheet/SheetFooter.vue +12 -0
- package/src/ui/sheet/SheetHeader.vue +12 -0
- package/src/ui/sheet/SheetTitle.vue +19 -0
- package/src/ui/sheet/SheetTrigger.vue +11 -0
- package/src/ui/sheet/index.ts +29 -0
- package/src/ui/switch/Switch.vue +55 -0
- package/src/ui/switch/index.ts +1 -0
- package/src/ui/textarea/Textarea.vue +24 -0
- package/src/ui/textarea/index.ts +1 -0
- package/src/ui/toast/Toast.vue +28 -0
- package/src/ui/toast/ToastAction.vue +19 -0
- package/src/ui/toast/ToastClose.vue +22 -0
- package/src/ui/toast/ToastDescription.vue +19 -0
- package/src/ui/toast/ToastProvider.vue +11 -0
- package/src/ui/toast/ToastTitle.vue +19 -0
- package/src/ui/toast/ToastViewport.vue +17 -0
- package/src/ui/toast/Toaster.vue +48 -0
- package/src/ui/toast/index.ts +39 -0
- package/src/ui/toast/use-toast.ts +109 -0
- package/src/ui/tooltip/Tooltip.vue +14 -0
- package/src/ui/tooltip/TooltipContent.vue +39 -0
- package/src/ui/tooltip/TooltipProvider.vue +11 -0
- package/src/ui/tooltip/TooltipTrigger.vue +11 -0
- package/src/ui/tooltip/index.ts +4 -0
- package/src/ui/utils.ts +1 -0
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import SvedaAgentCompletedNotice from './SvedaAgentCompletedNotice.vue';
|
|
3
|
+
import SvedaAgentTasksPanel from './SvedaAgentTasksPanel.vue';
|
|
4
|
+
import SvedaHistorySheet from './SvedaHistorySheet.vue';
|
|
5
|
+
import SvedaHistorySidebar from './SvedaHistorySidebar.vue';
|
|
6
|
+
import SvedaInputSection from './SvedaInputSection.vue';
|
|
7
|
+
import SvedaLandingView from './SvedaLandingView.vue';
|
|
8
|
+
import SvedaMaxStepsNotice from './SvedaMaxStepsNotice.vue';
|
|
9
|
+
import SvedaMinimizedTrigger from './SvedaMinimizedTrigger.vue';
|
|
10
|
+
import SvedaQuickPrompts from './SvedaQuickPrompts.vue';
|
|
11
|
+
import SvedaResizeHandles from './SvedaResizeHandles.vue';
|
|
12
|
+
import SvedaTabs from './SvedaTabs.vue';
|
|
13
|
+
import SvedaToolbar from './SvedaToolbar.vue';
|
|
14
|
+
import ChatHistoryDropdown from '../chat/ChatHistoryDropdown.vue';
|
|
15
|
+
import ChatMessageList from '../chat/ChatMessageList.vue';
|
|
16
|
+
import { Button } from '../../ui/button';
|
|
17
|
+
import { Card, CardContent } from '../../ui/card';
|
|
18
|
+
import { Input } from '../../ui/input';
|
|
19
|
+
import { ResponsiveDialog } from '../../ui/responsive-dialog';
|
|
20
|
+
import { useToast } from '../../ui/toast';
|
|
21
|
+
import { useSvedaChatPage } from '../../composables/useSvedaChatPage';
|
|
22
|
+
import { useSvedaT } from '../../i18n/index';
|
|
23
|
+
import { useSvedaConfig, SvedaHideLauncherKey } from '../../plugin';
|
|
24
|
+
import { Plus } from 'lucide-vue-next';
|
|
25
|
+
import { computed, inject, ref } from 'vue';
|
|
26
|
+
|
|
27
|
+
const props = defineProps({
|
|
28
|
+
models: { type: Array, default: undefined },
|
|
29
|
+
quickPrompts: { type: Array, default: undefined },
|
|
30
|
+
brandName: { type: String, default: undefined },
|
|
31
|
+
brandLogo: { type: String, default: undefined },
|
|
32
|
+
pageUrl: { type: String, default: undefined },
|
|
33
|
+
onNavigate: { type: Function, default: undefined },
|
|
34
|
+
notify: { type: Function, default: undefined },
|
|
35
|
+
agentTasksSubscribe: { type: Function, default: undefined },
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const config = useSvedaConfig();
|
|
39
|
+
const hideLauncher = inject(SvedaHideLauncherKey, false);
|
|
40
|
+
const t = useSvedaT();
|
|
41
|
+
const { toast } = useToast();
|
|
42
|
+
|
|
43
|
+
const messagesContainerRef = ref(null);
|
|
44
|
+
const chatCardRef = ref(null);
|
|
45
|
+
|
|
46
|
+
const notifyHandler = (kind, message) => {
|
|
47
|
+
if (typeof props.notify === 'function') {
|
|
48
|
+
props.notify(kind, message);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (kind === 'error') {
|
|
52
|
+
toast({ title: t('commonError'), description: message, variant: 'destructive' });
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const chat = useSvedaChatPage(
|
|
57
|
+
{
|
|
58
|
+
models: computed(() => props.models ?? config.models),
|
|
59
|
+
quickPrompts: computed(() => props.quickPrompts ?? config.quickPrompts),
|
|
60
|
+
brand: computed(() => ({
|
|
61
|
+
name: props.brandName ?? config.brand.name,
|
|
62
|
+
logoUrl: props.brandLogo ?? config.brand.logoUrl,
|
|
63
|
+
})),
|
|
64
|
+
pageUrl: computed(() => props.pageUrl ?? ''),
|
|
65
|
+
onNavigate: props.onNavigate,
|
|
66
|
+
notify: notifyHandler,
|
|
67
|
+
agentTasksSubscribe: props.agentTasksSubscribe,
|
|
68
|
+
},
|
|
69
|
+
{ messagesContainerRef, chatCardRef }
|
|
70
|
+
);
|
|
71
|
+
</script>
|
|
72
|
+
|
|
73
|
+
<template>
|
|
74
|
+
<div
|
|
75
|
+
:class="[
|
|
76
|
+
'sveda-chat',
|
|
77
|
+
chat.fillHost
|
|
78
|
+
? 'relative h-full min-h-0 w-full overflow-hidden'
|
|
79
|
+
: chat.isMinimized
|
|
80
|
+
? 'fixed bottom-0 right-0 z-50 min-[1872px]:bottom-4 min-[1872px]:right-4'
|
|
81
|
+
: chat.isMobile
|
|
82
|
+
? 'sveda-chat-surface fixed inset-0 z-50 pb-[env(safe-area-inset-bottom)] pt-[env(safe-area-inset-top)]'
|
|
83
|
+
: chat.viewMode === 'immersive'
|
|
84
|
+
? 'sveda-chat-surface fixed right-0 top-0 z-50 flex h-[100dvh] flex-col pb-[env(safe-area-inset-bottom)] pt-[env(safe-area-inset-top)]'
|
|
85
|
+
: chat.viewMode === 'fixed'
|
|
86
|
+
? 'sveda-chat-surface fixed right-0 top-0 z-50 h-screen pt-[env(safe-area-inset-top)]'
|
|
87
|
+
: 'fixed bottom-4 right-4 z-50',
|
|
88
|
+
'flex flex-col',
|
|
89
|
+
chat.fillHost || chat.isMobile || chat.viewMode === 'fixed' || chat.viewMode === 'immersive'
|
|
90
|
+
? 'items-stretch'
|
|
91
|
+
: 'items-end gap-2',
|
|
92
|
+
chat.isImmersiveModeTransitioning && !chat.isMobile && !chat.isMinimized ? 'overflow-hidden transition-[width,height] duration-300 ease-out' : '',
|
|
93
|
+
]"
|
|
94
|
+
:style="chat.chatShellStyle"
|
|
95
|
+
>
|
|
96
|
+
<Transition name="chat">
|
|
97
|
+
<div
|
|
98
|
+
v-if="!chat.isMinimized"
|
|
99
|
+
:class="[
|
|
100
|
+
chat.isMobile || chat.viewMode === 'fixed' || chat.fillHost
|
|
101
|
+
? 'flex h-full min-h-0 w-full min-w-0 flex-1'
|
|
102
|
+
: chat.viewMode === 'immersive'
|
|
103
|
+
? 'flex h-full min-h-0 w-full min-w-0 flex-1 flex-col'
|
|
104
|
+
: 'flex gap-2',
|
|
105
|
+
]"
|
|
106
|
+
>
|
|
107
|
+
<div
|
|
108
|
+
v-if="chat.isImmersiveDesktop"
|
|
109
|
+
class="sveda-chat-surface flex h-full min-h-0 w-full flex-1 flex-col"
|
|
110
|
+
>
|
|
111
|
+
<SvedaToolbar
|
|
112
|
+
:is-mobile="chat.isMobile"
|
|
113
|
+
:view-mode="chat.viewMode"
|
|
114
|
+
:is-immersive-desktop="chat.isImmersiveDesktop"
|
|
115
|
+
:show-history-sidebar="chat.showHistorySidebar"
|
|
116
|
+
:title="chat.headerTitle"
|
|
117
|
+
:view-mode-floating-label="chat.t('viewModeFloating')"
|
|
118
|
+
:view-mode-fixed-label="chat.t('viewModeFixed')"
|
|
119
|
+
:immersive-enter-label="chat.t('immersiveModeEnter')"
|
|
120
|
+
:immersive-exit-label="chat.t('immersiveModeExit')"
|
|
121
|
+
:immersive-brand-name="chat.brandDisplayName"
|
|
122
|
+
:immersive-brand-logo="chat.brandLogo"
|
|
123
|
+
@toggle-history-sidebar="chat.showHistorySidebar = !chat.showHistorySidebar"
|
|
124
|
+
@exit-immersive="chat.exitImmersiveMode"
|
|
125
|
+
@enter-immersive="chat.enterImmersiveMode"
|
|
126
|
+
@toggle-view-mode="chat.toggleViewMode"
|
|
127
|
+
@new-chat="chat.handleNewChat"
|
|
128
|
+
@minimize="chat.minimizeChat"
|
|
129
|
+
/>
|
|
130
|
+
<div class="flex min-h-0 flex-1 flex-row">
|
|
131
|
+
<aside class="sveda-chat-surface flex w-[min(20rem,33vw)] shrink-0 flex-col border-r border-border">
|
|
132
|
+
<div class="border-b border-border/50 p-3">
|
|
133
|
+
<Button
|
|
134
|
+
variant=""
|
|
135
|
+
class="w-full justify-center gap-2"
|
|
136
|
+
@click="chat.handleNewChat"
|
|
137
|
+
>
|
|
138
|
+
<Plus class="h-4 w-4" />
|
|
139
|
+
{{ chat.t('newChat') }}
|
|
140
|
+
</Button>
|
|
141
|
+
</div>
|
|
142
|
+
<div class="min-h-0 flex-1">
|
|
143
|
+
<ChatHistoryDropdown
|
|
144
|
+
variant="sidebar"
|
|
145
|
+
:show="true"
|
|
146
|
+
:histories="chat.sortedHistories"
|
|
147
|
+
:current-chat-id="chat.currentChat?.id"
|
|
148
|
+
@close="chat.showHistorySidebar = false"
|
|
149
|
+
@select-chat="chat.handleSelectChat"
|
|
150
|
+
@delete-chat="chat.handleDeleteChat"
|
|
151
|
+
@rename-chat="chat.handleRenameChat"
|
|
152
|
+
/>
|
|
153
|
+
</div>
|
|
154
|
+
</aside>
|
|
155
|
+
<div class="sveda-chat-surface flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden">
|
|
156
|
+
<SvedaTabs
|
|
157
|
+
:tabs="chat.openChatTabs"
|
|
158
|
+
:current-chat-id="chat.currentChat?.id"
|
|
159
|
+
:streaming-chat-ids="chat.streamingChatIds"
|
|
160
|
+
:unread-chat-ids="chat.unreadChatIds"
|
|
161
|
+
@select-chat="chat.handleSelectChat"
|
|
162
|
+
@close-tab="chat.closeChatTab"
|
|
163
|
+
@new-chat="chat.handleNewChat"
|
|
164
|
+
/>
|
|
165
|
+
<div class="mx-auto flex min-h-0 w-full max-w-7xl flex-1 flex-col overflow-hidden px-4 md:px-6">
|
|
166
|
+
<Transition
|
|
167
|
+
name="landing-layout-shift"
|
|
168
|
+
mode="out-in"
|
|
169
|
+
>
|
|
170
|
+
<SvedaLandingView
|
|
171
|
+
v-if="chat.isImmersiveLandingLayout"
|
|
172
|
+
key="immersive-landing"
|
|
173
|
+
v-model:input-message="chat.inputMessage"
|
|
174
|
+
v-model:selected-chat-model="chat.selectedChatModel"
|
|
175
|
+
v-model:thinking-enabled="chat.thinkingEnabled"
|
|
176
|
+
v-model:pending-files="chat.pendingChatFiles"
|
|
177
|
+
:is-loading="chat.isLoading || chat.isLoadingChatHistory"
|
|
178
|
+
:has-current-chat="chat.hasCurrentChat"
|
|
179
|
+
:is-streaming="chat.isStreaming"
|
|
180
|
+
:context-window-usage-percent="chat.contextWindowUsagePercent"
|
|
181
|
+
:show-quick-prompt-buttons="chat.showQuickPromptButtons"
|
|
182
|
+
:quick-prompt-buttons="chat.quickPromptButtons"
|
|
183
|
+
:models="chat.chatModels"
|
|
184
|
+
:thinking-tooltip="chat.thinkingTooltipText"
|
|
185
|
+
:status-banner="chat.chatInputStatusBanner"
|
|
186
|
+
@send="chat.sendMessage"
|
|
187
|
+
@stop="chat.stopStreaming"
|
|
188
|
+
@send-quick-prompt="chat.sendQuickPrompt"
|
|
189
|
+
>
|
|
190
|
+
<template #top>
|
|
191
|
+
<SvedaAgentTasksPanel
|
|
192
|
+
v-if="chat.agentTasks.tasks.length > 0"
|
|
193
|
+
class="mb-4 shrink-0"
|
|
194
|
+
:phase="chat.agentTasks.phase"
|
|
195
|
+
:tasks="chat.agentTasks.tasks"
|
|
196
|
+
:show-live-status="chat.isStreaming"
|
|
197
|
+
/>
|
|
198
|
+
<ChatMessageList
|
|
199
|
+
v-if="chat.messages.length > 0"
|
|
200
|
+
ref="messagesContainerRef"
|
|
201
|
+
:messages="chat.messages"
|
|
202
|
+
:is-loading="chat.isLoading || chat.isLoadingChatHistory"
|
|
203
|
+
:is-thinking="chat.isThinking"
|
|
204
|
+
:content-animations-enabled="chat.isStreaming"
|
|
205
|
+
:thinking-message="chat.thinkingMessage"
|
|
206
|
+
no-mt-auto
|
|
207
|
+
class="mb-4 max-h-[30vh] flex-none"
|
|
208
|
+
@near-bottom-change="chat.handleMessagesNearBottomChange"
|
|
209
|
+
@activity-link-click="chat.handleActivityLinkClick"
|
|
210
|
+
/>
|
|
211
|
+
</template>
|
|
212
|
+
</SvedaLandingView>
|
|
213
|
+
|
|
214
|
+
<div
|
|
215
|
+
v-else
|
|
216
|
+
key="immersive-conversation"
|
|
217
|
+
class="flex min-h-0 flex-1 flex-col"
|
|
218
|
+
>
|
|
219
|
+
<SvedaAgentTasksPanel
|
|
220
|
+
v-if="chat.agentTasks.tasks.length > 0"
|
|
221
|
+
:phase="chat.agentTasks.phase"
|
|
222
|
+
:tasks="chat.agentTasks.tasks"
|
|
223
|
+
:show-live-status="chat.isStreaming"
|
|
224
|
+
/>
|
|
225
|
+
<ChatMessageList
|
|
226
|
+
ref="messagesContainerRef"
|
|
227
|
+
:messages="chat.messages"
|
|
228
|
+
:is-loading="chat.isLoading || chat.isLoadingChatHistory"
|
|
229
|
+
:is-thinking="chat.isThinking"
|
|
230
|
+
:content-animations-enabled="chat.isStreaming"
|
|
231
|
+
:thinking-message="chat.thinkingMessage"
|
|
232
|
+
@near-bottom-change="chat.handleMessagesNearBottomChange"
|
|
233
|
+
@activity-link-click="chat.handleActivityLinkClick"
|
|
234
|
+
/>
|
|
235
|
+
<SvedaMaxStepsNotice
|
|
236
|
+
v-if="chat.showMaxStepsContinueNotice"
|
|
237
|
+
:message="chat.maxStepsContinueMessage"
|
|
238
|
+
:continue-label="chat.t('maxStepsContinue')"
|
|
239
|
+
:loading="chat.isLoading || chat.isLoadingChatHistory || chat.isStreaming"
|
|
240
|
+
@continue="chat.continueAfterMaxSteps"
|
|
241
|
+
/>
|
|
242
|
+
<SvedaAgentCompletedNotice
|
|
243
|
+
v-if="chat.showAgentCompletedNotice"
|
|
244
|
+
:label="chat.t('agentFinishedNotice')"
|
|
245
|
+
@scroll="chat.scrollToCompletedAnswer"
|
|
246
|
+
/>
|
|
247
|
+
<SvedaInputSection
|
|
248
|
+
v-model:input-message="chat.inputMessage"
|
|
249
|
+
v-model:pending-files="chat.pendingChatFiles"
|
|
250
|
+
v-model:selected-chat-model="chat.selectedChatModel"
|
|
251
|
+
v-model:thinking-enabled="chat.thinkingEnabled"
|
|
252
|
+
:is-loading="chat.isLoading || chat.isLoadingChatHistory"
|
|
253
|
+
:has-current-chat="chat.hasCurrentChat"
|
|
254
|
+
:is-streaming="chat.isStreaming"
|
|
255
|
+
:status-banner="chat.chatInputStatusBanner"
|
|
256
|
+
:model-select-placeholder="chat.t('modelSelectPlaceholder')"
|
|
257
|
+
:models="chat.chatModels"
|
|
258
|
+
:thinking-tooltip="chat.thinkingTooltipText"
|
|
259
|
+
:context-window-usage-percent="chat.contextWindowUsagePercent"
|
|
260
|
+
:context-window-tooltip="chat.t('contextWindowPercent', { percent: chat.contextWindowUsagePercent })"
|
|
261
|
+
@send="chat.sendMessage"
|
|
262
|
+
@stop="chat.stopStreaming"
|
|
263
|
+
/>
|
|
264
|
+
</div>
|
|
265
|
+
</Transition>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
</div>
|
|
270
|
+
|
|
271
|
+
<div
|
|
272
|
+
v-else
|
|
273
|
+
:class="chat.nonImmersiveShellClass"
|
|
274
|
+
:style="chat.floatNonImmersiveShellStyle"
|
|
275
|
+
>
|
|
276
|
+
<SvedaHistorySidebar
|
|
277
|
+
v-if="chat.showHistorySidebar && !chat.isMobile"
|
|
278
|
+
:surface-class="chat.historyAsideSurfaceClass"
|
|
279
|
+
:histories="chat.sortedHistories"
|
|
280
|
+
:current-chat-id="chat.currentChat?.id"
|
|
281
|
+
:new-chat-label="chat.t('newChat')"
|
|
282
|
+
@new-chat="chat.handleNewChat"
|
|
283
|
+
@select-chat="chat.handleSelectChat"
|
|
284
|
+
@delete-chat="chat.handleDeleteChat"
|
|
285
|
+
@rename-chat="chat.handleRenameChat"
|
|
286
|
+
@close="chat.showHistorySidebar = false"
|
|
287
|
+
/>
|
|
288
|
+
<Card
|
|
289
|
+
ref="chatCardRef"
|
|
290
|
+
class="sveda-chat-surface relative flex min-h-0 flex-col overflow-hidden shadow-sm"
|
|
291
|
+
:class="{
|
|
292
|
+
resizing: chat.isResizing || chat.isEnteringImmersiveFromDrag,
|
|
293
|
+
'border-[2px] border-border': chat.viewMode === 'floating',
|
|
294
|
+
'h-full min-w-0 flex-1 rounded-none border-0': chat.isMobile,
|
|
295
|
+
'h-full min-w-0 flex-1 rounded-none border-b-0 border-l-[2px] border-r-0 border-t-0 border-border': chat.viewMode === 'fixed' && !chat.isMobile,
|
|
296
|
+
'rounded-[var(--sveda-radius)]': chat.viewMode === 'floating',
|
|
297
|
+
'rounded-none': chat.isMobile || chat.viewMode === 'fixed',
|
|
298
|
+
'transition-[width] duration-300 ease-out': chat.isEnteringImmersiveFromDrag && chat.viewMode === 'fixed' && !chat.isMobile,
|
|
299
|
+
'min-w-0 shrink-0': chat.viewMode === 'floating' && !chat.isMobile && !chat.fillHost,
|
|
300
|
+
'h-full min-w-0 flex-1': chat.viewMode === 'floating' && !chat.isMobile && chat.fillHost,
|
|
301
|
+
}"
|
|
302
|
+
:style="chat.chatCardStyle"
|
|
303
|
+
>
|
|
304
|
+
<SvedaResizeHandles
|
|
305
|
+
:is-mobile="chat.isMobile"
|
|
306
|
+
:view-mode="chat.viewMode"
|
|
307
|
+
@start-resize="chat.startResize"
|
|
308
|
+
/>
|
|
309
|
+
<SvedaToolbar
|
|
310
|
+
:is-mobile="chat.isMobile"
|
|
311
|
+
:view-mode="chat.viewMode"
|
|
312
|
+
:is-immersive-desktop="chat.isImmersiveDesktop"
|
|
313
|
+
:show-history-sidebar="chat.showHistorySidebar"
|
|
314
|
+
:title="chat.headerTitle"
|
|
315
|
+
:view-mode-floating-label="chat.t('viewModeFloating')"
|
|
316
|
+
:view-mode-fixed-label="chat.t('viewModeFixed')"
|
|
317
|
+
:immersive-enter-label="chat.t('immersiveModeEnter')"
|
|
318
|
+
:immersive-exit-label="chat.t('immersiveModeExit')"
|
|
319
|
+
:immersive-brand-name="chat.brandDisplayName"
|
|
320
|
+
:immersive-brand-logo="chat.brandLogo"
|
|
321
|
+
@toggle-history-sidebar="chat.showHistorySidebar = !chat.showHistorySidebar"
|
|
322
|
+
@exit-immersive="chat.exitImmersiveMode"
|
|
323
|
+
@enter-immersive="chat.enterImmersiveMode"
|
|
324
|
+
@toggle-view-mode="chat.toggleViewMode"
|
|
325
|
+
@new-chat="chat.handleNewChat"
|
|
326
|
+
@minimize="chat.minimizeChat"
|
|
327
|
+
/>
|
|
328
|
+
|
|
329
|
+
<CardContent class="sveda-chat-surface relative flex flex-1 flex-col overflow-hidden p-0">
|
|
330
|
+
<div class="flex min-h-0 flex-1 flex-col">
|
|
331
|
+
<SvedaTabs
|
|
332
|
+
:tabs="chat.openChatTabs"
|
|
333
|
+
:current-chat-id="chat.currentChat?.id"
|
|
334
|
+
:streaming-chat-ids="chat.streamingChatIds"
|
|
335
|
+
:unread-chat-ids="chat.unreadChatIds"
|
|
336
|
+
compact
|
|
337
|
+
@select-chat="chat.handleSelectChat"
|
|
338
|
+
@close-tab="chat.closeChatTab"
|
|
339
|
+
@new-chat="chat.handleNewChat"
|
|
340
|
+
/>
|
|
341
|
+
<SvedaAgentTasksPanel
|
|
342
|
+
v-if="chat.agentTasks.tasks.length > 0"
|
|
343
|
+
class="mx-4 mt-3 shrink-0"
|
|
344
|
+
:phase="chat.agentTasks.phase"
|
|
345
|
+
:tasks="chat.agentTasks.tasks"
|
|
346
|
+
:show-live-status="chat.isStreaming"
|
|
347
|
+
/>
|
|
348
|
+
<ChatMessageList
|
|
349
|
+
ref="messagesContainerRef"
|
|
350
|
+
:messages="chat.messages"
|
|
351
|
+
:is-loading="chat.isLoading || chat.isLoadingChatHistory"
|
|
352
|
+
:is-thinking="chat.isThinking"
|
|
353
|
+
:content-animations-enabled="chat.isStreaming"
|
|
354
|
+
:thinking-message="chat.thinkingMessage"
|
|
355
|
+
@near-bottom-change="chat.handleMessagesNearBottomChange"
|
|
356
|
+
@activity-link-click="chat.handleActivityLinkClick"
|
|
357
|
+
/>
|
|
358
|
+
<SvedaMaxStepsNotice
|
|
359
|
+
v-if="chat.showMaxStepsContinueNotice"
|
|
360
|
+
:message="chat.maxStepsContinueMessage"
|
|
361
|
+
:continue-label="chat.t('maxStepsContinue')"
|
|
362
|
+
:loading="chat.isLoading || chat.isLoadingChatHistory || chat.isStreaming"
|
|
363
|
+
@continue="chat.continueAfterMaxSteps"
|
|
364
|
+
/>
|
|
365
|
+
<SvedaAgentCompletedNotice
|
|
366
|
+
v-if="chat.showAgentCompletedNotice"
|
|
367
|
+
:label="chat.t('agentFinishedNotice')"
|
|
368
|
+
@scroll="chat.scrollToCompletedAnswer"
|
|
369
|
+
/>
|
|
370
|
+
<SvedaQuickPrompts
|
|
371
|
+
v-if="chat.showQuickPromptButtons"
|
|
372
|
+
class="shrink-0 px-4 pb-1 pt-0"
|
|
373
|
+
:prompts="chat.quickPromptButtons"
|
|
374
|
+
:title="chat.t('quickPromptsTitle')"
|
|
375
|
+
:disabled="chat.isLoading || chat.isStreaming"
|
|
376
|
+
@select="chat.sendQuickPrompt"
|
|
377
|
+
/>
|
|
378
|
+
<SvedaInputSection
|
|
379
|
+
v-model:input-message="chat.inputMessage"
|
|
380
|
+
v-model:pending-files="chat.pendingChatFiles"
|
|
381
|
+
v-model:selected-chat-model="chat.selectedChatModel"
|
|
382
|
+
v-model:thinking-enabled="chat.thinkingEnabled"
|
|
383
|
+
:is-loading="chat.isLoading || chat.isLoadingChatHistory"
|
|
384
|
+
:has-current-chat="chat.hasCurrentChat"
|
|
385
|
+
:is-streaming="chat.isStreaming"
|
|
386
|
+
:status-banner="chat.chatInputStatusBanner"
|
|
387
|
+
:model-select-placeholder="chat.t('modelSelectPlaceholder')"
|
|
388
|
+
:models="chat.chatModels"
|
|
389
|
+
:thinking-tooltip="chat.thinkingTooltipText"
|
|
390
|
+
:context-window-usage-percent="chat.contextWindowUsagePercent"
|
|
391
|
+
:context-window-tooltip="chat.t('contextWindowPercent', { percent: chat.contextWindowUsagePercent })"
|
|
392
|
+
@send="chat.sendMessage"
|
|
393
|
+
@stop="chat.stopStreaming"
|
|
394
|
+
/>
|
|
395
|
+
</div>
|
|
396
|
+
</CardContent>
|
|
397
|
+
</Card>
|
|
398
|
+
</div>
|
|
399
|
+
</div>
|
|
400
|
+
</Transition>
|
|
401
|
+
|
|
402
|
+
<SvedaHistorySheet
|
|
403
|
+
:open="chat.isMobile && chat.showHistorySidebar"
|
|
404
|
+
:title="chat.t('chatHistory')"
|
|
405
|
+
:histories="chat.sortedHistories"
|
|
406
|
+
:current-chat-id="chat.currentChat?.id"
|
|
407
|
+
:new-chat-label="chat.t('newChat')"
|
|
408
|
+
@update:open="chat.showHistorySidebar = $event"
|
|
409
|
+
@new-chat="chat.handleNewChat"
|
|
410
|
+
@select-chat="
|
|
411
|
+
chatId => {
|
|
412
|
+
chat.handleSelectChat(chatId);
|
|
413
|
+
chat.showHistorySidebar = false;
|
|
414
|
+
}
|
|
415
|
+
"
|
|
416
|
+
@delete-chat="chat.handleDeleteChat"
|
|
417
|
+
@rename-chat="chat.handleRenameChat"
|
|
418
|
+
/>
|
|
419
|
+
|
|
420
|
+
<SvedaMinimizedTrigger
|
|
421
|
+
v-if="chat.isMinimized && !chat.isMobile && !hideLauncher"
|
|
422
|
+
:label="chat.launcherLabel"
|
|
423
|
+
:icon="chat.launcherIcon"
|
|
424
|
+
:logo-src="chat.launcherImage"
|
|
425
|
+
:logo-alt="chat.t('assistantLogoAlt')"
|
|
426
|
+
@open="chat.openChat"
|
|
427
|
+
/>
|
|
428
|
+
|
|
429
|
+
<ResponsiveDialog v-model:open="chat.showDeleteChatDialog">
|
|
430
|
+
<template #title>{{ chat.t('commonDelete') }}</template>
|
|
431
|
+
<template #description>{{ chat.t('confirmDeleteChat') }}</template>
|
|
432
|
+
<template #footer>
|
|
433
|
+
<Button
|
|
434
|
+
variant="outline"
|
|
435
|
+
@click="chat.cancelDeleteChat"
|
|
436
|
+
>
|
|
437
|
+
{{ chat.t('commonCancel') }}
|
|
438
|
+
</Button>
|
|
439
|
+
<Button
|
|
440
|
+
variant="destructive"
|
|
441
|
+
@click="chat.confirmDeleteChat"
|
|
442
|
+
>
|
|
443
|
+
{{ chat.t('commonDelete') }}
|
|
444
|
+
</Button>
|
|
445
|
+
</template>
|
|
446
|
+
</ResponsiveDialog>
|
|
447
|
+
|
|
448
|
+
<ResponsiveDialog v-model:open="chat.showRenameChatDialog">
|
|
449
|
+
<template #title>{{ chat.t('renameChat') }}</template>
|
|
450
|
+
<Input
|
|
451
|
+
v-model="chat.pendingRenameChatTitle"
|
|
452
|
+
:placeholder="chat.t('renameChatPlaceholder')"
|
|
453
|
+
maxlength="80"
|
|
454
|
+
@keydown.enter="chat.confirmRenameChat"
|
|
455
|
+
/>
|
|
456
|
+
<template #footer>
|
|
457
|
+
<Button
|
|
458
|
+
variant="outline"
|
|
459
|
+
@click="chat.cancelRenameChat"
|
|
460
|
+
>
|
|
461
|
+
{{ chat.t('commonCancel') }}
|
|
462
|
+
</Button>
|
|
463
|
+
<Button
|
|
464
|
+
:disabled="!chat.pendingRenameChatTitle.trim()"
|
|
465
|
+
@click="chat.confirmRenameChat"
|
|
466
|
+
>
|
|
467
|
+
{{ chat.t('commonSave') }}
|
|
468
|
+
</Button>
|
|
469
|
+
</template>
|
|
470
|
+
</ResponsiveDialog>
|
|
471
|
+
</div>
|
|
472
|
+
</template>
|
|
473
|
+
|
|
474
|
+
<style scoped>
|
|
475
|
+
.chat-enter-active,
|
|
476
|
+
.chat-leave-active {
|
|
477
|
+
transition: all 0.3s ease;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.chat-enter-from,
|
|
481
|
+
.chat-leave-to {
|
|
482
|
+
opacity: 0;
|
|
483
|
+
transform: translateY(20px) scale(0.95);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.landing-layout-shift-enter-active,
|
|
487
|
+
.landing-layout-shift-leave-active {
|
|
488
|
+
transition:
|
|
489
|
+
opacity 0.28s ease,
|
|
490
|
+
transform 0.28s ease;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.landing-layout-shift-enter-from {
|
|
494
|
+
opacity: 0;
|
|
495
|
+
transform: translateY(-12px);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.landing-layout-shift-leave-to {
|
|
499
|
+
opacity: 0;
|
|
500
|
+
transform: translateY(26px);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
:deep([data-radix-card-root]) {
|
|
504
|
+
user-select: none;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
:deep([data-radix-card-root].resizing) {
|
|
508
|
+
user-select: none;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
:deep([data-radix-card-root].resizing *) {
|
|
512
|
+
pointer-events: none;
|
|
513
|
+
}
|
|
514
|
+
</style>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../../ui/tooltip';
|
|
3
|
+
|
|
4
|
+
defineProps({
|
|
5
|
+
percent: { type: Number, required: true },
|
|
6
|
+
tooltip: { type: String, required: true },
|
|
7
|
+
});
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div class="flex w-full items-center px-1 pb-1 pt-1">
|
|
12
|
+
<TooltipProvider>
|
|
13
|
+
<Tooltip>
|
|
14
|
+
<TooltipTrigger as-child>
|
|
15
|
+
<div class="h-[2px] w-full cursor-help overflow-hidden rounded-full bg-primary/20">
|
|
16
|
+
<div
|
|
17
|
+
class="h-full bg-primary transition-all duration-300"
|
|
18
|
+
:style="{ width: `${percent}%` }"
|
|
19
|
+
/>
|
|
20
|
+
</div>
|
|
21
|
+
</TooltipTrigger>
|
|
22
|
+
<TooltipContent
|
|
23
|
+
side="top"
|
|
24
|
+
align="end"
|
|
25
|
+
>
|
|
26
|
+
<div class="text-xs">
|
|
27
|
+
{{ tooltip }}
|
|
28
|
+
</div>
|
|
29
|
+
</TooltipContent>
|
|
30
|
+
</Tooltip>
|
|
31
|
+
</TooltipProvider>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import ChatHistoryDropdown from '../chat/ChatHistoryDropdown.vue';
|
|
3
|
+
import { Button } from '../../ui/button';
|
|
4
|
+
import { Sheet, SheetContent, SheetHeader, SheetTitle } from '../../ui/sheet';
|
|
5
|
+
import { Plus } from 'lucide-vue-next';
|
|
6
|
+
|
|
7
|
+
const open = defineModel('open', { type: Boolean, default: false });
|
|
8
|
+
|
|
9
|
+
defineProps({
|
|
10
|
+
title: { type: String, required: true },
|
|
11
|
+
histories: { type: Array, required: true },
|
|
12
|
+
currentChatId: { type: String, default: null },
|
|
13
|
+
newChatLabel: { type: String, required: true },
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const emit = defineEmits(['new-chat', 'select-chat', 'delete-chat', 'rename-chat']);
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<Sheet v-model:open="open">
|
|
21
|
+
<SheetContent
|
|
22
|
+
side="bottom"
|
|
23
|
+
class="flex h-[85vh] max-h-[85vh] flex-col overflow-hidden rounded-t-[var(--sveda-radius)] p-0"
|
|
24
|
+
>
|
|
25
|
+
<SheetHeader class="border-b border-border/50 p-4 pr-12 text-left">
|
|
26
|
+
<SheetTitle>{{ title }}</SheetTitle>
|
|
27
|
+
</SheetHeader>
|
|
28
|
+
<div class="border-b border-border/50 p-3">
|
|
29
|
+
<Button
|
|
30
|
+
variant=""
|
|
31
|
+
class="w-full justify-center gap-2"
|
|
32
|
+
@click="emit('new-chat')"
|
|
33
|
+
>
|
|
34
|
+
<Plus class="h-4 w-4" />
|
|
35
|
+
{{ newChatLabel }}
|
|
36
|
+
</Button>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="min-h-0 flex-1">
|
|
39
|
+
<ChatHistoryDropdown
|
|
40
|
+
variant="sidebar"
|
|
41
|
+
:show="true"
|
|
42
|
+
:histories="histories"
|
|
43
|
+
:current-chat-id="currentChatId"
|
|
44
|
+
@close="open = false"
|
|
45
|
+
@select-chat="emit('select-chat', $event)"
|
|
46
|
+
@delete-chat="emit('delete-chat', $event)"
|
|
47
|
+
@rename-chat="emit('rename-chat', $event)"
|
|
48
|
+
/>
|
|
49
|
+
</div>
|
|
50
|
+
</SheetContent>
|
|
51
|
+
</Sheet>
|
|
52
|
+
</template>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import ChatHistoryDropdown from '../chat/ChatHistoryDropdown.vue';
|
|
3
|
+
import { Button } from '../../ui/button';
|
|
4
|
+
import { Plus } from 'lucide-vue-next';
|
|
5
|
+
|
|
6
|
+
defineProps({
|
|
7
|
+
surfaceClass: { type: String, required: true },
|
|
8
|
+
histories: { type: Array, required: true },
|
|
9
|
+
currentChatId: { type: String, default: null },
|
|
10
|
+
newChatLabel: { type: String, required: true },
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
const emit = defineEmits(['new-chat', 'select-chat', 'delete-chat', 'rename-chat', 'close']);
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<aside :class="surfaceClass">
|
|
18
|
+
<div class="border-b border-border/50 p-3">
|
|
19
|
+
<Button
|
|
20
|
+
variant=""
|
|
21
|
+
class="w-full justify-center gap-2"
|
|
22
|
+
@click="emit('new-chat')"
|
|
23
|
+
>
|
|
24
|
+
<Plus class="h-4 w-4" />
|
|
25
|
+
{{ newChatLabel }}
|
|
26
|
+
</Button>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="min-h-0 flex-1">
|
|
29
|
+
<ChatHistoryDropdown
|
|
30
|
+
variant="sidebar"
|
|
31
|
+
:show="true"
|
|
32
|
+
:histories="histories"
|
|
33
|
+
:current-chat-id="currentChatId"
|
|
34
|
+
@close="emit('close')"
|
|
35
|
+
@select-chat="emit('select-chat', $event)"
|
|
36
|
+
@delete-chat="emit('delete-chat', $event)"
|
|
37
|
+
@rename-chat="emit('rename-chat', $event)"
|
|
38
|
+
/>
|
|
39
|
+
</div>
|
|
40
|
+
</aside>
|
|
41
|
+
</template>
|