@meistrari/chat-nuxt 1.0.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/README.md +274 -0
- package/dist/module.d.mts +3 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +250 -0
- package/dist/runtime/assets/css/code-theme.css +1 -0
- package/dist/runtime/assets/css/markstream.css +1 -0
- package/dist/runtime/components/AppStatusToast.d.vue.ts +3 -0
- package/dist/runtime/components/AppStatusToast.vue +42 -0
- package/dist/runtime/components/AppStatusToast.vue.d.ts +3 -0
- package/dist/runtime/components/TelaChat.d.vue.ts +19 -0
- package/dist/runtime/components/TelaChat.vue +25 -0
- package/dist/runtime/components/TelaChat.vue.d.ts +19 -0
- package/dist/runtime/components/app-markdown-render.d.vue.ts +15 -0
- package/dist/runtime/components/app-markdown-render.vue +45 -0
- package/dist/runtime/components/app-markdown-render.vue.d.ts +15 -0
- package/dist/runtime/components/application-card.d.vue.ts +9 -0
- package/dist/runtime/components/application-card.vue +52 -0
- package/dist/runtime/components/application-card.vue.d.ts +9 -0
- package/dist/runtime/components/audio-preview.d.vue.ts +14 -0
- package/dist/runtime/components/audio-preview.vue +52 -0
- package/dist/runtime/components/audio-preview.vue.d.ts +14 -0
- package/dist/runtime/components/chat/bash-widget.d.vue.ts +9 -0
- package/dist/runtime/components/chat/bash-widget.vue +86 -0
- package/dist/runtime/components/chat/bash-widget.vue.d.ts +9 -0
- package/dist/runtime/components/chat/canvas-selector-modal.d.vue.ts +14 -0
- package/dist/runtime/components/chat/canvas-selector-modal.vue +290 -0
- package/dist/runtime/components/chat/canvas-selector-modal.vue.d.ts +14 -0
- package/dist/runtime/components/chat/context-config.d.vue.ts +30 -0
- package/dist/runtime/components/chat/context-config.vue +423 -0
- package/dist/runtime/components/chat/context-config.vue.d.ts +30 -0
- package/dist/runtime/components/chat/conversation-item.d.vue.ts +20 -0
- package/dist/runtime/components/chat/conversation-item.vue +184 -0
- package/dist/runtime/components/chat/conversation-item.vue.d.ts +20 -0
- package/dist/runtime/components/chat/conversation-list.d.vue.ts +10 -0
- package/dist/runtime/components/chat/conversation-list.vue +78 -0
- package/dist/runtime/components/chat/conversation-list.vue.d.ts +10 -0
- package/dist/runtime/components/chat/doc-sdk-widget.d.vue.ts +9 -0
- package/dist/runtime/components/chat/doc-sdk-widget.vue +74 -0
- package/dist/runtime/components/chat/doc-sdk-widget.vue.d.ts +9 -0
- package/dist/runtime/components/chat/file-preview.d.vue.ts +7 -0
- package/dist/runtime/components/chat/file-preview.vue +313 -0
- package/dist/runtime/components/chat/file-preview.vue.d.ts +7 -0
- package/dist/runtime/components/chat/files-view.d.vue.ts +6 -0
- package/dist/runtime/components/chat/files-view.vue +399 -0
- package/dist/runtime/components/chat/files-view.vue.d.ts +6 -0
- package/dist/runtime/components/chat/generic-tool-widget.d.vue.ts +9 -0
- package/dist/runtime/components/chat/generic-tool-widget.vue +334 -0
- package/dist/runtime/components/chat/generic-tool-widget.vue.d.ts +9 -0
- package/dist/runtime/components/chat/grep-widget.d.vue.ts +9 -0
- package/dist/runtime/components/chat/grep-widget.vue +259 -0
- package/dist/runtime/components/chat/grep-widget.vue.d.ts +9 -0
- package/dist/runtime/components/chat/mention-dropdown.d.vue.ts +14 -0
- package/dist/runtime/components/chat/mention-dropdown.vue +90 -0
- package/dist/runtime/components/chat/mention-dropdown.vue.d.ts +14 -0
- package/dist/runtime/components/chat/message-bubble.d.vue.ts +11 -0
- package/dist/runtime/components/chat/message-bubble.vue +288 -0
- package/dist/runtime/components/chat/message-bubble.vue.d.ts +11 -0
- package/dist/runtime/components/chat/message-input.d.vue.ts +34 -0
- package/dist/runtime/components/chat/message-input.vue +428 -0
- package/dist/runtime/components/chat/message-input.vue.d.ts +34 -0
- package/dist/runtime/components/chat/message-list.d.vue.ts +11 -0
- package/dist/runtime/components/chat/message-list.vue +36 -0
- package/dist/runtime/components/chat/message-list.vue.d.ts +11 -0
- package/dist/runtime/components/chat/model-selector.d.vue.ts +15 -0
- package/dist/runtime/components/chat/model-selector.vue +35 -0
- package/dist/runtime/components/chat/model-selector.vue.d.ts +15 -0
- package/dist/runtime/components/chat/new-conversation-modal.d.vue.ts +14 -0
- package/dist/runtime/components/chat/new-conversation-modal.vue +271 -0
- package/dist/runtime/components/chat/new-conversation-modal.vue.d.ts +14 -0
- package/dist/runtime/components/chat/read-widget.d.vue.ts +9 -0
- package/dist/runtime/components/chat/read-widget.vue +195 -0
- package/dist/runtime/components/chat/read-widget.vue.d.ts +9 -0
- package/dist/runtime/components/chat/reasoning-message.d.vue.ts +13 -0
- package/dist/runtime/components/chat/reasoning-message.vue +341 -0
- package/dist/runtime/components/chat/reasoning-message.vue.d.ts +13 -0
- package/dist/runtime/components/chat/reasoning-step-item.d.vue.ts +37 -0
- package/dist/runtime/components/chat/reasoning-step-item.vue +125 -0
- package/dist/runtime/components/chat/reasoning-step-item.vue.d.ts +37 -0
- package/dist/runtime/components/chat/reasoning-steps.d.vue.ts +12 -0
- package/dist/runtime/components/chat/reasoning-steps.vue +47 -0
- package/dist/runtime/components/chat/reasoning-steps.vue.d.ts +12 -0
- package/dist/runtime/components/chat/reasoning-thought.d.vue.ts +11 -0
- package/dist/runtime/components/chat/reasoning-thought.vue +287 -0
- package/dist/runtime/components/chat/reasoning-thought.vue.d.ts +11 -0
- package/dist/runtime/components/chat/tela-skill-widget.d.vue.ts +9 -0
- package/dist/runtime/components/chat/tela-skill-widget.vue +94 -0
- package/dist/runtime/components/chat/tela-skill-widget.vue.d.ts +9 -0
- package/dist/runtime/components/chat/thinking-indicator.d.vue.ts +3 -0
- package/dist/runtime/components/chat/thinking-indicator.vue +52 -0
- package/dist/runtime/components/chat/thinking-indicator.vue.d.ts +3 -0
- package/dist/runtime/components/chat/thinking-widget.d.vue.ts +8 -0
- package/dist/runtime/components/chat/thinking-widget.vue +53 -0
- package/dist/runtime/components/chat/thinking-widget.vue.d.ts +8 -0
- package/dist/runtime/components/chat/topbar.d.vue.ts +43 -0
- package/dist/runtime/components/chat/topbar.vue +223 -0
- package/dist/runtime/components/chat/topbar.vue.d.ts +43 -0
- package/dist/runtime/components/chat/usage-view.d.vue.ts +8 -0
- package/dist/runtime/components/chat/usage-view.vue +393 -0
- package/dist/runtime/components/chat/usage-view.vue.d.ts +8 -0
- package/dist/runtime/components/chat/vault-link.d.vue.ts +20 -0
- package/dist/runtime/components/chat/vault-link.vue +34 -0
- package/dist/runtime/components/chat/vault-link.vue.d.ts +20 -0
- package/dist/runtime/components/chat/web-search-widget.d.vue.ts +9 -0
- package/dist/runtime/components/chat/web-search-widget.vue +121 -0
- package/dist/runtime/components/chat/web-search-widget.vue.d.ts +9 -0
- package/dist/runtime/components/chat/workstation-query-widget.d.vue.ts +10 -0
- package/dist/runtime/components/chat/workstation-query-widget.vue +552 -0
- package/dist/runtime/components/chat/workstation-query-widget.vue.d.ts +10 -0
- package/dist/runtime/components/chat/workstation-selector-modal.d.vue.ts +14 -0
- package/dist/runtime/components/chat/workstation-selector-modal.vue +272 -0
- package/dist/runtime/components/chat/workstation-selector-modal.vue.d.ts +14 -0
- package/dist/runtime/components/chat/write-widget.d.vue.ts +9 -0
- package/dist/runtime/components/chat/write-widget.vue +165 -0
- package/dist/runtime/components/chat/write-widget.vue.d.ts +9 -0
- package/dist/runtime/components/conversation-files-panel.d.vue.ts +3 -0
- package/dist/runtime/components/conversation-files-panel.vue +252 -0
- package/dist/runtime/components/conversation-files-panel.vue.d.ts +3 -0
- package/dist/runtime/components/csv-preview.d.vue.ts +20 -0
- package/dist/runtime/components/csv-preview.vue +157 -0
- package/dist/runtime/components/csv-preview.vue.d.ts +20 -0
- package/dist/runtime/components/file-preview-panel.d.vue.ts +3 -0
- package/dist/runtime/components/file-preview-panel.vue +185 -0
- package/dist/runtime/components/file-preview-panel.vue.d.ts +3 -0
- package/dist/runtime/components/file-uploader.d.vue.ts +16 -0
- package/dist/runtime/components/file-uploader.vue +136 -0
- package/dist/runtime/components/file-uploader.vue.d.ts +16 -0
- package/dist/runtime/components/icons/anthropic.d.vue.ts +3 -0
- package/dist/runtime/components/icons/anthropic.vue +5 -0
- package/dist/runtime/components/icons/anthropic.vue.d.ts +3 -0
- package/dist/runtime/components/image-preview.d.vue.ts +14 -0
- package/dist/runtime/components/image-preview.vue +54 -0
- package/dist/runtime/components/image-preview.vue.d.ts +14 -0
- package/dist/runtime/components/json-tree-node.d.vue.ts +9 -0
- package/dist/runtime/components/json-tree-node.vue +109 -0
- package/dist/runtime/components/json-tree-node.vue.d.ts +9 -0
- package/dist/runtime/components/json-viewer.d.vue.ts +6 -0
- package/dist/runtime/components/json-viewer.vue +88 -0
- package/dist/runtime/components/json-viewer.vue.d.ts +6 -0
- package/dist/runtime/components/pdf-preview.d.vue.ts +20 -0
- package/dist/runtime/components/pdf-preview.vue +89 -0
- package/dist/runtime/components/pdf-preview.vue.d.ts +20 -0
- package/dist/runtime/components/pdf-viewer.d.vue.ts +10 -0
- package/dist/runtime/components/pdf-viewer.vue +265 -0
- package/dist/runtime/components/pdf-viewer.vue.d.ts +10 -0
- package/dist/runtime/components/powered-by-tela.d.vue.ts +3 -0
- package/dist/runtime/components/powered-by-tela.vue +14 -0
- package/dist/runtime/components/powered-by-tela.vue.d.ts +3 -0
- package/dist/runtime/components/renderers/artifact-display.d.vue.ts +15 -0
- package/dist/runtime/components/renderers/artifact-display.vue +105 -0
- package/dist/runtime/components/renderers/artifact-display.vue.d.ts +15 -0
- package/dist/runtime/components/renderers/audio-renderer.d.vue.ts +7 -0
- package/dist/runtime/components/renderers/audio-renderer.vue +52 -0
- package/dist/runtime/components/renderers/audio-renderer.vue.d.ts +7 -0
- package/dist/runtime/components/renderers/csv-renderer.d.vue.ts +6 -0
- package/dist/runtime/components/renderers/csv-renderer.vue +203 -0
- package/dist/runtime/components/renderers/csv-renderer.vue.d.ts +6 -0
- package/dist/runtime/components/renderers/image-renderer.d.vue.ts +7 -0
- package/dist/runtime/components/renderers/image-renderer.vue +44 -0
- package/dist/runtime/components/renderers/image-renderer.vue.d.ts +7 -0
- package/dist/runtime/components/renderers/markdown-renderer.d.vue.ts +6 -0
- package/dist/runtime/components/renderers/markdown-renderer.vue +66 -0
- package/dist/runtime/components/renderers/markdown-renderer.vue.d.ts +6 -0
- package/dist/runtime/components/renderers/mermaid-diagram.d.vue.ts +7 -0
- package/dist/runtime/components/renderers/mermaid-diagram.vue +165 -0
- package/dist/runtime/components/renderers/mermaid-diagram.vue.d.ts +7 -0
- package/dist/runtime/components/renderers/text-renderer.d.vue.ts +7 -0
- package/dist/runtime/components/renderers/text-renderer.vue +70 -0
- package/dist/runtime/components/renderers/text-renderer.vue.d.ts +7 -0
- package/dist/runtime/components/renderers/video-renderer.d.vue.ts +6 -0
- package/dist/runtime/components/renderers/video-renderer.vue +43 -0
- package/dist/runtime/components/renderers/video-renderer.vue.d.ts +6 -0
- package/dist/runtime/components/text-preview.d.vue.ts +19 -0
- package/dist/runtime/components/text-preview.vue +105 -0
- package/dist/runtime/components/text-preview.vue.d.ts +19 -0
- package/dist/runtime/components/video-preview.d.vue.ts +14 -0
- package/dist/runtime/components/video-preview.vue +55 -0
- package/dist/runtime/components/video-preview.vue.d.ts +14 -0
- package/dist/runtime/composables/PageNavigation.d.ts +13 -0
- package/dist/runtime/composables/PageNavigation.js +18 -0
- package/dist/runtime/composables/useChat.d.ts +25 -0
- package/dist/runtime/composables/useChat.js +512 -0
- package/dist/runtime/composables/useChatApi.d.ts +6 -0
- package/dist/runtime/composables/useChatApi.js +28 -0
- package/dist/runtime/composables/useConversationFiles.d.ts +13 -0
- package/dist/runtime/composables/useConversationFiles.js +98 -0
- package/dist/runtime/composables/useConversationFilesPanel.d.ts +11 -0
- package/dist/runtime/composables/useConversationFilesPanel.js +35 -0
- package/dist/runtime/composables/useConversations.d.ts +15 -0
- package/dist/runtime/composables/useConversations.js +191 -0
- package/dist/runtime/composables/useDiagramExport.d.ts +11 -0
- package/dist/runtime/composables/useDiagramExport.js +186 -0
- package/dist/runtime/composables/useEmbedConfig.d.ts +13 -0
- package/dist/runtime/composables/useEmbedConfig.js +11 -0
- package/dist/runtime/composables/useFeatureFlags.d.ts +19 -0
- package/dist/runtime/composables/useFeatureFlags.js +67 -0
- package/dist/runtime/composables/useFileDrop.d.ts +17 -0
- package/dist/runtime/composables/useFileDrop.js +89 -0
- package/dist/runtime/composables/useFilePreviewPanel.d.ts +30 -0
- package/dist/runtime/composables/useFilePreviewPanel.js +42 -0
- package/dist/runtime/composables/useFileUpload.d.ts +7 -0
- package/dist/runtime/composables/useFileUpload.js +39 -0
- package/dist/runtime/composables/useGitHubSkills.d.ts +6 -0
- package/dist/runtime/composables/useGitHubSkills.js +68 -0
- package/dist/runtime/composables/useGitHubSkillsCallback.d.ts +5 -0
- package/dist/runtime/composables/useGitHubSkillsCallback.js +42 -0
- package/dist/runtime/composables/useIDB.d.ts +11 -0
- package/dist/runtime/composables/useIDB.js +57 -0
- package/dist/runtime/composables/useInputHistory.d.ts +7 -0
- package/dist/runtime/composables/useInputHistory.js +36 -0
- package/dist/runtime/composables/useKnowledgeSources.d.ts +6 -0
- package/dist/runtime/composables/useKnowledgeSources.js +15 -0
- package/dist/runtime/composables/useMediaCache.d.ts +13 -0
- package/dist/runtime/composables/useMediaCache.js +92 -0
- package/dist/runtime/composables/useMentionAutocomplete.d.ts +10 -0
- package/dist/runtime/composables/useMentionAutocomplete.js +272 -0
- package/dist/runtime/composables/useMermaidRenderer.d.ts +5 -0
- package/dist/runtime/composables/useMermaidRenderer.js +121 -0
- package/dist/runtime/composables/usePdf.d.ts +21 -0
- package/dist/runtime/composables/usePdf.js +138 -0
- package/dist/runtime/composables/usePolling.d.ts +12 -0
- package/dist/runtime/composables/usePolling.js +55 -0
- package/dist/runtime/composables/useSelectedModel.d.ts +4 -0
- package/dist/runtime/composables/useSelectedModel.js +46 -0
- package/dist/runtime/composables/useSplashScreen.d.ts +3 -0
- package/dist/runtime/composables/useSplashScreen.js +4 -0
- package/dist/runtime/composables/useStatusToast.d.ts +22 -0
- package/dist/runtime/composables/useStatusToast.js +40 -0
- package/dist/runtime/composables/useTela.d.ts +12 -0
- package/dist/runtime/composables/useTela.js +47 -0
- package/dist/runtime/composables/useToolFormatting.d.ts +5 -0
- package/dist/runtime/composables/useToolFormatting.js +61 -0
- package/dist/runtime/composables/useVault.d.ts +13 -0
- package/dist/runtime/composables/useVault.js +35 -0
- package/dist/runtime/composables/useVerbConjugation.d.ts +6 -0
- package/dist/runtime/composables/useVerbConjugation.js +256 -0
- package/dist/runtime/composables/useWorkspaceContextFiles.d.ts +19 -0
- package/dist/runtime/composables/useWorkspaceContextFiles.js +74 -0
- package/dist/runtime/composables/useWorkspaceCredentials.d.ts +34 -0
- package/dist/runtime/composables/useWorkspaceCredentials.js +175 -0
- package/dist/runtime/composables/useWorkspaceExternalSkills.d.ts +22 -0
- package/dist/runtime/composables/useWorkspaceExternalSkills.js +135 -0
- package/dist/runtime/composables/useWorkspaceKnowledgeSources.d.ts +11 -0
- package/dist/runtime/composables/useWorkspaceKnowledgeSources.js +88 -0
- package/dist/runtime/composables/useWorkspaceMembers.d.ts +13 -0
- package/dist/runtime/composables/useWorkspaceMembers.js +37 -0
- package/dist/runtime/composables/useWorkspacePersonalization.d.ts +6 -0
- package/dist/runtime/composables/useWorkspacePersonalization.js +19 -0
- package/dist/runtime/composables/useWorkspaceSettings.d.ts +30 -0
- package/dist/runtime/composables/useWorkspaceSettings.js +135 -0
- package/dist/runtime/composables/useWorkspaceTelaTools.d.ts +13 -0
- package/dist/runtime/composables/useWorkspaceTelaTools.js +91 -0
- package/dist/runtime/composables/useWorkspaces.d.ts +5 -0
- package/dist/runtime/composables/useWorkspaces.js +14 -0
- package/dist/runtime/composables/useZoomPan.d.ts +18 -0
- package/dist/runtime/composables/useZoomPan.js +130 -0
- package/dist/runtime/embed/components/ChatEmbed.d.vue.ts +23 -0
- package/dist/runtime/embed/components/ChatEmbed.vue +27 -0
- package/dist/runtime/embed/components/ChatEmbed.vue.d.ts +23 -0
- package/dist/runtime/embed/components/ChatEmbedInner.d.vue.ts +19 -0
- package/dist/runtime/embed/components/ChatEmbedInner.vue +604 -0
- package/dist/runtime/embed/components/ChatEmbedInner.vue.d.ts +19 -0
- package/dist/runtime/public/favicon.svg +4 -0
- package/dist/runtime/public/files/archive.svg +9 -0
- package/dist/runtime/public/files/audio.svg +4 -0
- package/dist/runtime/public/files/c.svg +4 -0
- package/dist/runtime/public/files/cpp.svg +6 -0
- package/dist/runtime/public/files/css.svg +4 -0
- package/dist/runtime/public/files/doc.svg +5 -0
- package/dist/runtime/public/files/generic.svg +7 -0
- package/dist/runtime/public/files/go.svg +6 -0
- package/dist/runtime/public/files/html.svg +4 -0
- package/dist/runtime/public/files/image.svg +3 -0
- package/dist/runtime/public/files/java.svg +7 -0
- package/dist/runtime/public/files/javascript.svg +4 -0
- package/dist/runtime/public/files/json.svg +5 -0
- package/dist/runtime/public/files/markdown.svg +5 -0
- package/dist/runtime/public/files/pdf.svg +5 -0
- package/dist/runtime/public/files/presentation.svg +5 -0
- package/dist/runtime/public/files/python.svg +5 -0
- package/dist/runtime/public/files/ruby.svg +5 -0
- package/dist/runtime/public/files/rust.svg +13 -0
- package/dist/runtime/public/files/sheet.svg +9 -0
- package/dist/runtime/public/files/shell.svg +5 -0
- package/dist/runtime/public/files/sql.svg +6 -0
- package/dist/runtime/public/files/typescript.svg +5 -0
- package/dist/runtime/public/files/video.svg +5 -0
- package/dist/runtime/public/files/yaml.svg +7 -0
- package/dist/runtime/public/github.svg +3 -0
- package/dist/runtime/public/robots.txt +1 -0
- package/dist/runtime/server/api/admin/trigger-usage-report.post.d.ts +2 -0
- package/dist/runtime/server/api/admin/trigger-usage-report.post.js +15 -0
- package/dist/runtime/server/api/chat/conversations/[id]/cancel.post.d.ts +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/cancel.post.js +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/clear.post.d.ts +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/clear.post.js +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/duplicate.post.d.ts +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/duplicate.post.js +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/files.get.d.ts +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/files.get.js +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/index.delete.d.ts +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/index.delete.js +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/index.get.d.ts +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/index.get.js +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/index.patch.d.ts +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/index.patch.js +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/messages/[messageId]/retry.post.d.ts +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/messages/[messageId]/retry.post.js +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/messages/index.get.d.ts +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/messages/index.get.js +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/messages/index.post.d.ts +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/messages/index.post.js +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/usage.get.d.ts +1 -0
- package/dist/runtime/server/api/chat/conversations/[id]/usage.get.js +1 -0
- package/dist/runtime/server/api/chat/conversations/generate-title.post.d.ts +1 -0
- package/dist/runtime/server/api/chat/conversations/generate-title.post.js +1 -0
- package/dist/runtime/server/api/chat/conversations/index.get.d.ts +1 -0
- package/dist/runtime/server/api/chat/conversations/index.get.js +1 -0
- package/dist/runtime/server/api/chat/conversations/index.post.d.ts +1 -0
- package/dist/runtime/server/api/chat/conversations/index.post.js +1 -0
- package/dist/runtime/server/api/chat/workspace/settings.get.d.ts +2 -0
- package/dist/runtime/server/api/chat/workspace/settings.get.js +14 -0
- package/dist/runtime/server/api/conversations/[id]/cancel.post.d.ts +2 -0
- package/dist/runtime/server/api/conversations/[id]/cancel.post.js +58 -0
- package/dist/runtime/server/api/conversations/[id]/clear.post.d.ts +2 -0
- package/dist/runtime/server/api/conversations/[id]/clear.post.js +38 -0
- package/dist/runtime/server/api/conversations/[id]/duplicate.post.d.ts +2 -0
- package/dist/runtime/server/api/conversations/[id]/duplicate.post.js +41 -0
- package/dist/runtime/server/api/conversations/[id]/files.get.d.ts +2 -0
- package/dist/runtime/server/api/conversations/[id]/files.get.js +131 -0
- package/dist/runtime/server/api/conversations/[id]/index.delete.d.ts +2 -0
- package/dist/runtime/server/api/conversations/[id]/index.delete.js +35 -0
- package/dist/runtime/server/api/conversations/[id]/index.get.d.ts +2 -0
- package/dist/runtime/server/api/conversations/[id]/index.get.js +34 -0
- package/dist/runtime/server/api/conversations/[id]/index.patch.d.ts +2 -0
- package/dist/runtime/server/api/conversations/[id]/index.patch.js +54 -0
- package/dist/runtime/server/api/conversations/[id]/messages/[messageId]/retry.post.d.ts +2 -0
- package/dist/runtime/server/api/conversations/[id]/messages/[messageId]/retry.post.js +168 -0
- package/dist/runtime/server/api/conversations/[id]/messages/index.get.d.ts +2 -0
- package/dist/runtime/server/api/conversations/[id]/messages/index.get.js +220 -0
- package/dist/runtime/server/api/conversations/[id]/messages/index.post.d.ts +2 -0
- package/dist/runtime/server/api/conversations/[id]/messages/index.post.js +181 -0
- package/dist/runtime/server/api/conversations/[id]/usage.get.d.ts +8 -0
- package/dist/runtime/server/api/conversations/[id]/usage.get.js +96 -0
- package/dist/runtime/server/api/conversations/generate-title.post.d.ts +2 -0
- package/dist/runtime/server/api/conversations/generate-title.post.js +49 -0
- package/dist/runtime/server/api/conversations/index.get.d.ts +2 -0
- package/dist/runtime/server/api/conversations/index.get.js +11 -0
- package/dist/runtime/server/api/conversations/index.post.d.ts +2 -0
- package/dist/runtime/server/api/conversations/index.post.js +41 -0
- package/dist/runtime/server/api/external-skills/discover.post.d.ts +2 -0
- package/dist/runtime/server/api/external-skills/discover.post.js +65 -0
- package/dist/runtime/server/api/github/disconnect.post.d.ts +2 -0
- package/dist/runtime/server/api/github/disconnect.post.js +21 -0
- package/dist/runtime/server/api/github/status.get.d.ts +2 -0
- package/dist/runtime/server/api/github/status.get.js +23 -0
- package/dist/runtime/server/api/tela/canvas.get.d.ts +2 -0
- package/dist/runtime/server/api/tela/canvas.get.js +18 -0
- package/dist/runtime/server/api/tela/projects.get.d.ts +2 -0
- package/dist/runtime/server/api/tela/projects.get.js +9 -0
- package/dist/runtime/server/api/tela/workspaces.get.d.ts +2 -0
- package/dist/runtime/server/api/tela/workspaces.get.js +9 -0
- package/dist/runtime/server/api/tela/workstations.get.d.ts +2 -0
- package/dist/runtime/server/api/tela/workstations.get.js +24 -0
- package/dist/runtime/server/api/vault/permalink-metadata.post.d.ts +2 -0
- package/dist/runtime/server/api/vault/permalink-metadata.post.js +77 -0
- package/dist/runtime/server/api/vault/resolve.post.d.ts +2 -0
- package/dist/runtime/server/api/vault/resolve.post.js +82 -0
- package/dist/runtime/server/api/vault/upload.post.d.ts +2 -0
- package/dist/runtime/server/api/vault/upload.post.js +55 -0
- package/dist/runtime/server/api/workspace/credentials/[id].delete.d.ts +2 -0
- package/dist/runtime/server/api/workspace/credentials/[id].delete.js +18 -0
- package/dist/runtime/server/api/workspace/credentials/[id].put.d.ts +2 -0
- package/dist/runtime/server/api/workspace/credentials/[id].put.js +28 -0
- package/dist/runtime/server/api/workspace/credentials/index.get.d.ts +2 -0
- package/dist/runtime/server/api/workspace/credentials/index.get.js +10 -0
- package/dist/runtime/server/api/workspace/credentials/index.post.d.ts +2 -0
- package/dist/runtime/server/api/workspace/credentials/index.post.js +33 -0
- package/dist/runtime/server/api/workspace/settings.get.d.ts +2 -0
- package/dist/runtime/server/api/workspace/settings.get.js +27 -0
- package/dist/runtime/server/api/workspace/settings.patch.d.ts +2 -0
- package/dist/runtime/server/api/workspace/settings.patch.js +86 -0
- package/dist/runtime/server/api/workspace/usage.get.d.ts +48 -0
- package/dist/runtime/server/api/workspace/usage.get.js +186 -0
- package/dist/runtime/server/db/index.d.ts +6 -0
- package/dist/runtime/server/db/index.js +19 -0
- package/dist/runtime/server/db/schema/conversation-usage.d.ts +438 -0
- package/dist/runtime/server/db/schema/conversation-usage.js +34 -0
- package/dist/runtime/server/db/schema/conversations.d.ts +197 -0
- package/dist/runtime/server/db/schema/conversations.js +18 -0
- package/dist/runtime/server/db/schema/external-skills.d.ts +235 -0
- package/dist/runtime/server/db/schema/external-skills.js +26 -0
- package/dist/runtime/server/db/schema/index.d.ts +5 -0
- package/dist/runtime/server/db/schema/index.js +5 -0
- package/dist/runtime/server/db/schema/messages.d.ts +221 -0
- package/dist/runtime/server/db/schema/messages.js +19 -0
- package/dist/runtime/server/db/schema/workspace-settings.d.ts +164 -0
- package/dist/runtime/server/db/schema/workspace-settings.js +15 -0
- package/dist/runtime/server/db/schema.d.ts +1 -0
- package/dist/runtime/server/db/schema.js +1 -0
- package/dist/runtime/server/middleware/domain-validation.d.ts +2 -0
- package/dist/runtime/server/middleware/domain-validation.js +22 -0
- package/dist/runtime/server/middleware/request-logger.d.ts +2 -0
- package/dist/runtime/server/middleware/request-logger.js +15 -0
- package/dist/runtime/server/prompts/base-system.d.ts +2 -0
- package/dist/runtime/server/prompts/base-system.js +100 -0
- package/dist/runtime/server/prompts/base-system.md +99 -0
- package/dist/runtime/server/prompts/knowledge-sources.d.ts +2 -0
- package/dist/runtime/server/prompts/knowledge-sources.js +37 -0
- package/dist/runtime/server/prompts/knowledge-sources.md +36 -0
- package/dist/runtime/server/tasks/send-daily-usage-report.d.ts +2 -0
- package/dist/runtime/server/tasks/send-daily-usage-report.js +73 -0
- package/dist/runtime/server/tsconfig.json +21 -0
- package/dist/runtime/server/utils/agent-api.d.ts +39 -0
- package/dist/runtime/server/utils/agent-api.js +169 -0
- package/dist/runtime/server/utils/auth-api.d.ts +1 -0
- package/dist/runtime/server/utils/auth-api.js +25 -0
- package/dist/runtime/server/utils/auth.d.ts +17 -0
- package/dist/runtime/server/utils/auth.js +28 -0
- package/dist/runtime/server/utils/billing.d.ts +37 -0
- package/dist/runtime/server/utils/billing.js +68 -0
- package/dist/runtime/server/utils/chat-context.d.ts +9 -0
- package/dist/runtime/server/utils/chat-context.js +24 -0
- package/dist/runtime/server/utils/chat-message-builder.d.ts +4 -0
- package/dist/runtime/server/utils/chat-message-builder.js +39 -0
- package/dist/runtime/server/utils/chat-prompts.d.ts +7 -0
- package/dist/runtime/server/utils/chat-prompts.js +9 -0
- package/dist/runtime/server/utils/chat-workspace-settings.d.ts +16 -0
- package/dist/runtime/server/utils/chat-workspace-settings.js +115 -0
- package/dist/runtime/server/utils/external-skills.d.ts +2 -0
- package/dist/runtime/server/utils/external-skills.js +15 -0
- package/dist/runtime/server/utils/logger.d.ts +2 -0
- package/dist/runtime/server/utils/logger.js +12 -0
- package/dist/runtime/server/utils/slack.d.ts +32 -0
- package/dist/runtime/server/utils/slack.js +102 -0
- package/dist/runtime/server/utils/tela-api.d.ts +2 -0
- package/dist/runtime/server/utils/tela-api.js +29 -0
- package/dist/runtime/server/utils/vault.d.ts +3 -0
- package/dist/runtime/server/utils/vault.js +52 -0
- package/dist/runtime/server/utils/workspace-settings-resolver.stub.d.ts +2 -0
- package/dist/runtime/server/utils/workspace-settings-resolver.stub.js +1 -0
- package/dist/runtime/server/utils/workspace.d.ts +4 -0
- package/dist/runtime/server/utils/workspace.js +21 -0
- package/dist/runtime/types/agent.d.ts +168 -0
- package/dist/runtime/types/agent.js +95 -0
- package/dist/runtime/types/chat-workspace-settings-resolver.d.ts +4 -0
- package/dist/runtime/types/chat.d.ts +81 -0
- package/dist/runtime/types/chat.js +12 -0
- package/dist/runtime/types/credential.d.ts +8 -0
- package/dist/runtime/types/credential.js +0 -0
- package/dist/runtime/types/csv.d.ts +4 -0
- package/dist/runtime/types/csv.js +0 -0
- package/dist/runtime/types/external-skills.d.ts +8 -0
- package/dist/runtime/types/external-skills.js +0 -0
- package/dist/runtime/types/feature-flags.d.ts +7 -0
- package/dist/runtime/types/feature-flags.js +6 -0
- package/dist/runtime/types/reasoning.d.ts +17 -0
- package/dist/runtime/types/reasoning.js +0 -0
- package/dist/runtime/types/tela.d.ts +46 -0
- package/dist/runtime/types/tela.js +0 -0
- package/dist/runtime/types/workspace.d.ts +20 -0
- package/dist/runtime/types/workspace.js +0 -0
- package/dist/runtime/utils/calculate-usage.d.ts +48 -0
- package/dist/runtime/utils/calculate-usage.js +63 -0
- package/dist/runtime/utils/code-detection.d.ts +1 -0
- package/dist/runtime/utils/code-detection.js +24 -0
- package/dist/runtime/utils/export-conversation.d.ts +2 -0
- package/dist/runtime/utils/export-conversation.js +43 -0
- package/dist/runtime/utils/file.d.ts +46 -0
- package/dist/runtime/utils/file.js +500 -0
- package/dist/runtime/utils/format-time.d.ts +22 -0
- package/dist/runtime/utils/format-time.js +96 -0
- package/dist/runtime/utils/markdown-nodes.d.ts +22 -0
- package/dist/runtime/utils/markdown-nodes.js +40 -0
- package/dist/runtime/utils/string.d.ts +4 -0
- package/dist/runtime/utils/string.js +5 -0
- package/dist/runtime/utils/tela-chat.d.ts +19 -0
- package/dist/runtime/utils/tela-chat.js +20 -0
- package/dist/types.d.mts +7 -0
- package/package.json +72 -0
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useClipboard } from "@vueuse/core";
|
|
3
|
+
import { formatFileSize, formatUploadDate, getFileIcon, getFileTypeLabel } from "../../utils/file";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
conversationId: { type: String, required: true }
|
|
6
|
+
});
|
|
7
|
+
const conversationIdRef = computed(() => props.conversationId);
|
|
8
|
+
const { files, loading } = useConversationFiles(conversationIdRef);
|
|
9
|
+
const { openPreview, updatePreview, setError } = useFilePreviewPanel();
|
|
10
|
+
const { getCached, fetchUrlAsBase64, setCache } = useMediaCache();
|
|
11
|
+
const { copy } = useClipboard();
|
|
12
|
+
const searchQuery = ref("");
|
|
13
|
+
const fileTypeFilter = ref(null);
|
|
14
|
+
const currentRequestId = ref(0);
|
|
15
|
+
const fileTypeOptions = [
|
|
16
|
+
{ label: "Todos", value: null },
|
|
17
|
+
{ label: "PDF", value: "pdf" },
|
|
18
|
+
{ label: "Documento", value: "document" },
|
|
19
|
+
{ label: "Planilha", value: "spreadsheet" },
|
|
20
|
+
{ label: "Texto", value: "text" },
|
|
21
|
+
{ label: "Imagem", value: "image" },
|
|
22
|
+
{ label: "V\xEDdeo", value: "video" },
|
|
23
|
+
{ label: "\xC1udio", value: "audio" }
|
|
24
|
+
];
|
|
25
|
+
const fileSourceFilter = ref(null);
|
|
26
|
+
const fileSourceOptions = [
|
|
27
|
+
{ label: "Todos", value: null },
|
|
28
|
+
{ label: "Upload do usu\xE1rio", value: "user" },
|
|
29
|
+
{ label: "Gerado pelo assistente", value: "assistant" }
|
|
30
|
+
];
|
|
31
|
+
function getSourceLabel(role) {
|
|
32
|
+
if (role === "user")
|
|
33
|
+
return "Usu\xE1rio";
|
|
34
|
+
if (role === "assistant")
|
|
35
|
+
return "Assistente";
|
|
36
|
+
return "-";
|
|
37
|
+
}
|
|
38
|
+
const filteredFiles = computed(() => {
|
|
39
|
+
let result = files.value;
|
|
40
|
+
if (searchQuery.value) {
|
|
41
|
+
const query = searchQuery.value.toLowerCase();
|
|
42
|
+
result = result.filter((f) => f.name.toLowerCase().includes(query));
|
|
43
|
+
}
|
|
44
|
+
if (fileTypeFilter.value) {
|
|
45
|
+
result = result.filter((f) => {
|
|
46
|
+
const mime = f.mimeType.toLowerCase();
|
|
47
|
+
switch (fileTypeFilter.value) {
|
|
48
|
+
case "pdf":
|
|
49
|
+
return mime.includes("pdf");
|
|
50
|
+
case "document":
|
|
51
|
+
return mime.includes("word") || mime.includes("document");
|
|
52
|
+
case "spreadsheet":
|
|
53
|
+
return mime.includes("excel") || mime.includes("spreadsheet") || mime.includes("csv");
|
|
54
|
+
case "text":
|
|
55
|
+
return mime.startsWith("text/") || mime.includes("json");
|
|
56
|
+
case "image":
|
|
57
|
+
return mime.startsWith("image/");
|
|
58
|
+
case "video":
|
|
59
|
+
return mime.startsWith("video/");
|
|
60
|
+
case "audio":
|
|
61
|
+
return mime.startsWith("audio/");
|
|
62
|
+
default:
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
if (fileSourceFilter.value) {
|
|
68
|
+
result = result.filter((f) => f.messageRole === fileSourceFilter.value);
|
|
69
|
+
}
|
|
70
|
+
return result;
|
|
71
|
+
});
|
|
72
|
+
async function handleFileClick(file) {
|
|
73
|
+
const requestId = ++currentRequestId.value;
|
|
74
|
+
const detectedFile = {
|
|
75
|
+
type: file.url.startsWith("vault://") ? "vault" : "url",
|
|
76
|
+
reference: file.url,
|
|
77
|
+
name: file.name,
|
|
78
|
+
mimeType: file.mimeType
|
|
79
|
+
};
|
|
80
|
+
if (file.url.startsWith("vault://")) {
|
|
81
|
+
let cachedBase64 = null;
|
|
82
|
+
try {
|
|
83
|
+
cachedBase64 = await Promise.race([
|
|
84
|
+
getCached(file.url),
|
|
85
|
+
new Promise((resolve) => setTimeout(() => resolve(null), 1e3))
|
|
86
|
+
]);
|
|
87
|
+
} catch {
|
|
88
|
+
}
|
|
89
|
+
if (requestId !== currentRequestId.value)
|
|
90
|
+
return;
|
|
91
|
+
if (cachedBase64) {
|
|
92
|
+
openPreview({
|
|
93
|
+
file: detectedFile,
|
|
94
|
+
originalFileName: file.name,
|
|
95
|
+
resolvedMimeType: file.mimeType,
|
|
96
|
+
cachedBase64
|
|
97
|
+
});
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
openPreview({
|
|
101
|
+
file: detectedFile,
|
|
102
|
+
originalFileName: file.name,
|
|
103
|
+
resolvedMimeType: file.mimeType
|
|
104
|
+
});
|
|
105
|
+
try {
|
|
106
|
+
const { url, mimeType, originalFileName } = await $fetch("/api/vault/resolve", {
|
|
107
|
+
method: "POST",
|
|
108
|
+
body: { reference: file.url }
|
|
109
|
+
});
|
|
110
|
+
if (requestId !== currentRequestId.value)
|
|
111
|
+
return;
|
|
112
|
+
updatePreview({
|
|
113
|
+
resolvedUrl: url,
|
|
114
|
+
resolvedMimeType: mimeType ?? file.mimeType,
|
|
115
|
+
originalFileName: originalFileName ?? file.name
|
|
116
|
+
});
|
|
117
|
+
fetchUrlAsBase64(url).then((base64) => {
|
|
118
|
+
if (base64 && requestId === currentRequestId.value) {
|
|
119
|
+
setCache(file.url, base64);
|
|
120
|
+
}
|
|
121
|
+
}).catch(() => {
|
|
122
|
+
});
|
|
123
|
+
} catch {
|
|
124
|
+
if (requestId !== currentRequestId.value)
|
|
125
|
+
return;
|
|
126
|
+
setError();
|
|
127
|
+
}
|
|
128
|
+
} else {
|
|
129
|
+
let cachedBase64;
|
|
130
|
+
if (file.mimeType.startsWith("image/") || file.mimeType.startsWith("video/") || file.mimeType.startsWith("audio/")) {
|
|
131
|
+
try {
|
|
132
|
+
cachedBase64 = await fetchUrlAsBase64(file.url) ?? void 0;
|
|
133
|
+
} catch {
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (requestId !== currentRequestId.value)
|
|
137
|
+
return;
|
|
138
|
+
openPreview({
|
|
139
|
+
file: detectedFile,
|
|
140
|
+
resolvedUrl: file.url,
|
|
141
|
+
cachedBase64,
|
|
142
|
+
originalFileName: file.name,
|
|
143
|
+
resolvedMimeType: file.mimeType
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
const statusToast = useStatusToast();
|
|
148
|
+
async function handleDownload(file) {
|
|
149
|
+
statusToast.update({
|
|
150
|
+
text: "Baixando arquivo...",
|
|
151
|
+
loading: true
|
|
152
|
+
});
|
|
153
|
+
try {
|
|
154
|
+
let downloadUrl = file.url;
|
|
155
|
+
if (file.url.startsWith("vault://")) {
|
|
156
|
+
const { url } = await $fetch("/api/vault/resolve", {
|
|
157
|
+
method: "POST",
|
|
158
|
+
body: { reference: file.url }
|
|
159
|
+
});
|
|
160
|
+
downloadUrl = url;
|
|
161
|
+
}
|
|
162
|
+
const response = await fetch(downloadUrl);
|
|
163
|
+
const blob = await response.blob();
|
|
164
|
+
const blobUrl = URL.createObjectURL(blob);
|
|
165
|
+
const link = document.createElement("a");
|
|
166
|
+
link.href = blobUrl;
|
|
167
|
+
link.download = file.name;
|
|
168
|
+
document.body.appendChild(link);
|
|
169
|
+
link.click();
|
|
170
|
+
document.body.removeChild(link);
|
|
171
|
+
URL.revokeObjectURL(blobUrl);
|
|
172
|
+
statusToast.update({
|
|
173
|
+
text: "Download conclu\xEDdo",
|
|
174
|
+
icon: "i-ph-check"
|
|
175
|
+
});
|
|
176
|
+
} catch (error) {
|
|
177
|
+
console.error("Failed to download file:", error);
|
|
178
|
+
statusToast.update({
|
|
179
|
+
text: "Erro ao baixar arquivo",
|
|
180
|
+
icon: "i-ph-warning"
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
async function handleCopyLink(file) {
|
|
185
|
+
try {
|
|
186
|
+
let publicUrl = file.url;
|
|
187
|
+
if (file.url.startsWith("vault://")) {
|
|
188
|
+
const { url } = await $fetch("/api/vault/resolve", {
|
|
189
|
+
method: "POST",
|
|
190
|
+
body: { reference: file.url }
|
|
191
|
+
});
|
|
192
|
+
publicUrl = url;
|
|
193
|
+
}
|
|
194
|
+
await copy(publicUrl);
|
|
195
|
+
statusToast.update({
|
|
196
|
+
text: "Link copiado",
|
|
197
|
+
icon: "i-ph-check"
|
|
198
|
+
});
|
|
199
|
+
} catch (error) {
|
|
200
|
+
console.error("Failed to copy link:", error);
|
|
201
|
+
statusToast.update({
|
|
202
|
+
text: "Erro ao copiar link",
|
|
203
|
+
icon: "i-ph-warning"
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
function getFileMenuItems(file) {
|
|
208
|
+
return [
|
|
209
|
+
{
|
|
210
|
+
label: "Copiar link",
|
|
211
|
+
icon: "i-ph-link",
|
|
212
|
+
click: () => handleCopyLink(file)
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
label: "Baixar",
|
|
216
|
+
icon: "i-ph-download-simple",
|
|
217
|
+
click: () => handleDownload(file)
|
|
218
|
+
}
|
|
219
|
+
];
|
|
220
|
+
}
|
|
221
|
+
</script>
|
|
222
|
+
|
|
223
|
+
<template>
|
|
224
|
+
<div flex="~ col" h-full pt-96px px-48px pb-32px>
|
|
225
|
+
<div flex="~ col 1" gap-40px min-h-0>
|
|
226
|
+
<div flex items-end w-full>
|
|
227
|
+
<div flex gap-16px items-center>
|
|
228
|
+
<div flex gap-8px items-center>
|
|
229
|
+
<TelaDropdownMenu
|
|
230
|
+
:items="fileTypeOptions.map((opt) => ({
|
|
231
|
+
label: opt.label,
|
|
232
|
+
click: () => fileTypeFilter = opt.value
|
|
233
|
+
}))"
|
|
234
|
+
align="start"
|
|
235
|
+
>
|
|
236
|
+
<button
|
|
237
|
+
flex gap-6px items-center justify-center
|
|
238
|
+
px-12px py-7px
|
|
239
|
+
bg-white b=".5px grey-160" rounded-10px
|
|
240
|
+
shadow-sm
|
|
241
|
+
hover:bg-neutral-50 transition-colors
|
|
242
|
+
whitespace-nowrap shrink-0
|
|
243
|
+
>
|
|
244
|
+
<span text-14px font-580 text-gray-900 leading-18px tracking="-.15px">
|
|
245
|
+
{{ fileTypeFilter ? fileTypeOptions.find((o) => o.value === fileTypeFilter)?.label : "Tipo de arquivo" }}
|
|
246
|
+
</span>
|
|
247
|
+
<span i-ph-caret-down text-12px text-gray-900 shrink-0 />
|
|
248
|
+
</button>
|
|
249
|
+
</TelaDropdownMenu>
|
|
250
|
+
|
|
251
|
+
<TelaDropdownMenu
|
|
252
|
+
:items="fileSourceOptions.map((opt) => ({
|
|
253
|
+
label: opt.label,
|
|
254
|
+
click: () => fileSourceFilter = opt.value
|
|
255
|
+
}))"
|
|
256
|
+
align="start"
|
|
257
|
+
>
|
|
258
|
+
<button
|
|
259
|
+
flex gap-6px items-center justify-center
|
|
260
|
+
px-12px py-7px
|
|
261
|
+
bg-white b=".5px grey-160" rounded-10px
|
|
262
|
+
shadow-sm
|
|
263
|
+
hover:bg-neutral-50 transition-colors
|
|
264
|
+
whitespace-nowrap shrink-0
|
|
265
|
+
>
|
|
266
|
+
<span text-14px font-580 text-gray-900 leading-18px tracking="-.15px">
|
|
267
|
+
{{ fileSourceFilter ? fileSourceOptions.find((o) => o.value === fileSourceFilter)?.label : "Origem do arquivo" }}
|
|
268
|
+
</span>
|
|
269
|
+
<span i-ph-caret-down text-12px text-gray-900 shrink-0 />
|
|
270
|
+
</button>
|
|
271
|
+
</TelaDropdownMenu>
|
|
272
|
+
|
|
273
|
+
<div
|
|
274
|
+
flex items-center justify-between
|
|
275
|
+
pl-12px pr-8px py-4px
|
|
276
|
+
bg-white b=".5px grey-160" rounded-10px
|
|
277
|
+
shadow-sm w-176px
|
|
278
|
+
>
|
|
279
|
+
<div flex flex-1 gap-8px items-center>
|
|
280
|
+
<span i-ph-magnifying-glass text-12px text-gray-400 />
|
|
281
|
+
<input
|
|
282
|
+
v-model="searchQuery"
|
|
283
|
+
type="text"
|
|
284
|
+
placeholder="Buscar"
|
|
285
|
+
text-14px text-primary placeholder-gray-400
|
|
286
|
+
outline-none bg-transparent leading-18px tracking="-.15px"
|
|
287
|
+
w-full
|
|
288
|
+
>
|
|
289
|
+
</div>
|
|
290
|
+
</div>
|
|
291
|
+
</div>
|
|
292
|
+
|
|
293
|
+
<span text-14px text-secondary leading-18px tracking="-.15px" whitespace-nowrap shrink-0>
|
|
294
|
+
{{ filteredFiles.length }} {{ filteredFiles.length === 1 ? "arquivo" : "arquivos" }}
|
|
295
|
+
</span>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
|
|
299
|
+
<div flex="~ col" overflow-hidden min-h-0>
|
|
300
|
+
<div
|
|
301
|
+
flex items-center w-full
|
|
302
|
+
bg-white b-y=".5px border-default"
|
|
303
|
+
>
|
|
304
|
+
<div flex items-center self-stretch flex-1 min-w-200px>
|
|
305
|
+
<div px-20px py-12px>
|
|
306
|
+
<span text-12px font-580 text-primary leading-16px whitespace-nowrap>Nome</span>
|
|
307
|
+
</div>
|
|
308
|
+
</div>
|
|
309
|
+
<div shrink-0 px-20px py-12px w-80px>
|
|
310
|
+
<span text-12px font-580 text-primary leading-16px whitespace-nowrap>Tipo</span>
|
|
311
|
+
</div>
|
|
312
|
+
<div shrink-0 px-20px py-12px w-90px>
|
|
313
|
+
<span text-12px font-580 text-primary leading-16px whitespace-nowrap>Tamanho</span>
|
|
314
|
+
</div>
|
|
315
|
+
<div shrink-0 px-20px py-12px w-140px>
|
|
316
|
+
<span text-12px font-580 text-primary leading-16px whitespace-nowrap>Data de upload</span>
|
|
317
|
+
</div>
|
|
318
|
+
<div shrink-0 px-20px py-12px w-100px>
|
|
319
|
+
<span text-12px font-580 text-primary leading-16px whitespace-nowrap>Origem</span>
|
|
320
|
+
</div>
|
|
321
|
+
<div w-40px h-48px shrink-0 />
|
|
322
|
+
</div>
|
|
323
|
+
|
|
324
|
+
<div v-if="loading" flex="~ col" items-center justify-center py-64px>
|
|
325
|
+
<span i-ph-spinner animate-spin text-32px text-gray-400 />
|
|
326
|
+
</div>
|
|
327
|
+
|
|
328
|
+
<div
|
|
329
|
+
v-else-if="filteredFiles.length === 0"
|
|
330
|
+
flex="~ col" items-center justify-center py-64px gap-12px
|
|
331
|
+
>
|
|
332
|
+
<span i-ph-files-duotone text-48px text-gray-300 />
|
|
333
|
+
<p text-14px text-tertiary>
|
|
334
|
+
{{ searchQuery || fileTypeFilter || fileSourceFilter ? "Nenhum arquivo encontrado" : "Nenhum arquivo nessa conversa" }}
|
|
335
|
+
</p>
|
|
336
|
+
</div>
|
|
337
|
+
|
|
338
|
+
<div v-else flex="~ col" overflow-y-auto>
|
|
339
|
+
<button
|
|
340
|
+
v-for="file in filteredFiles"
|
|
341
|
+
:key="file.id"
|
|
342
|
+
flex items-center w-full
|
|
343
|
+
bg-white b-b=".5px border-subtle"
|
|
344
|
+
hover:bg-neutral-50 transition-colors
|
|
345
|
+
text-left
|
|
346
|
+
@click="handleFileClick(file)"
|
|
347
|
+
>
|
|
348
|
+
<div flex gap-8px items-center h-48px px-20px py-12px flex-1 min-w-200px>
|
|
349
|
+
<img
|
|
350
|
+
:src="getFileIcon(file.mimeType)"
|
|
351
|
+
:alt="file.name"
|
|
352
|
+
w-16px h-16px flex-shrink-0
|
|
353
|
+
>
|
|
354
|
+
<span
|
|
355
|
+
text-14px text-primary leading-18px tracking="-.15px"
|
|
356
|
+
truncate flex-1
|
|
357
|
+
:title="file.name"
|
|
358
|
+
>
|
|
359
|
+
{{ file.name }}
|
|
360
|
+
</span>
|
|
361
|
+
</div>
|
|
362
|
+
<div shrink-0 w-80px h-48px px-20px py-12px flex items-center>
|
|
363
|
+
<span text-12px text-tertiary leading-16px whitespace-nowrap>
|
|
364
|
+
{{ getFileTypeLabel(file.mimeType) }}
|
|
365
|
+
</span>
|
|
366
|
+
</div>
|
|
367
|
+
<div shrink-0 w-90px h-48px px-20px py-12px flex items-center>
|
|
368
|
+
<span text-12px text-tertiary leading-16px whitespace-nowrap>
|
|
369
|
+
{{ formatFileSize(file.size) }}
|
|
370
|
+
</span>
|
|
371
|
+
</div>
|
|
372
|
+
<div shrink-0 w-140px h-48px px-20px py-12px flex items-center>
|
|
373
|
+
<span text-12px text-tertiary leading-16px whitespace-nowrap>
|
|
374
|
+
{{ formatUploadDate(file.createdAt) }}
|
|
375
|
+
</span>
|
|
376
|
+
</div>
|
|
377
|
+
<div shrink-0 w-100px h-48px px-20px py-12px flex items-center>
|
|
378
|
+
<span text-12px text-tertiary leading-16px whitespace-nowrap>
|
|
379
|
+
{{ getSourceLabel(file.messageRole) }}
|
|
380
|
+
</span>
|
|
381
|
+
</div>
|
|
382
|
+
<div w-40px shrink-0 px-8px py-12px flex items-start @click.stop>
|
|
383
|
+
<TelaDropdownMenu :items="getFileMenuItems(file)" align="end">
|
|
384
|
+
<div
|
|
385
|
+
flex items-center justify-center
|
|
386
|
+
p-4px rounded-6px
|
|
387
|
+
hover:bg-neutral-100
|
|
388
|
+
cursor-pointer
|
|
389
|
+
>
|
|
390
|
+
<span i-ph-dots-three text-16px text-gray-900 />
|
|
391
|
+
</div>
|
|
392
|
+
</TelaDropdownMenu>
|
|
393
|
+
</div>
|
|
394
|
+
</button>
|
|
395
|
+
</div>
|
|
396
|
+
</div>
|
|
397
|
+
</div>
|
|
398
|
+
</div>
|
|
399
|
+
</template>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
conversationId: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ToolUse, ToolResult } from '../../types/reasoning.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
toolUse: ToolUse;
|
|
4
|
+
toolResult?: ToolResult;
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|