@trilogy-data/trilogy-studio-components 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/README.md +6 -0
- package/dist/ChatCreatorModal-DTcvWDQi.js +192 -0
- package/dist/Dashboard-C8re96eZ.js +5104 -0
- package/dist/DashboardCreatorInline-Do-CDJgS.js +150 -0
- package/dist/DashboardMobile-BOrq0rBy.js +310 -0
- package/dist/LLMConnectionList-DVM5t-P2.js +4692 -0
- package/dist/LLMView-lUTKOMbr.js +558 -0
- package/dist/Manager-CXJNoqU2.js +4 -0
- package/dist/ResultComponent-C4EGIBY0.js +155 -0
- package/dist/Sidebar-BGKtM2n0.js +1841 -0
- package/dist/TutorialPage-CGjDXmYk.js +482 -0
- package/dist/WelcomePage-C6obXIyG.js +75 -0
- package/dist/abap-D0Neqhq6.js +1404 -0
- package/dist/apex-B5LhxkeG.js +332 -0
- package/dist/azcli-BrBH0QTU.js +74 -0
- package/dist/bat-BfzAov64.js +106 -0
- package/dist/bicep-C3bCSWel.js +108 -0
- package/dist/cameligo-sFL5plcd.js +180 -0
- package/dist/chats/chat.d.ts +63 -0
- package/dist/chats/chat.d.ts.map +1 -0
- package/dist/chats/index.d.ts +3 -0
- package/dist/chats/index.d.ts.map +1 -0
- package/dist/clojure-CfeExRz0.js +767 -0
- package/dist/coffee-Xws5K0WL.js +238 -0
- package/dist/components/AssetAutoImporter.vue.d.ts +10 -0
- package/dist/components/AssetAutoImporter.vue.d.ts.map +1 -0
- package/dist/components/ChartControlPanel.vue.d.ts +54 -0
- package/dist/components/ChartControlPanel.vue.d.ts.map +1 -0
- package/dist/components/CodeBlock.vue.d.ts +39 -0
- package/dist/components/CodeBlock.vue.d.ts.map +1 -0
- package/dist/components/ConceptTable.vue.d.ts +16 -0
- package/dist/components/ConceptTable.vue.d.ts.map +1 -0
- package/dist/components/ContextMenu.vue.d.ts +67 -0
- package/dist/components/ContextMenu.vue.d.ts.map +1 -0
- package/dist/components/DataTable.vue.d.ts +204 -0
- package/dist/components/DataTable.vue.d.ts.map +1 -0
- package/dist/components/DrilldownPane.vue.d.ts +94 -0
- package/dist/components/DrilldownPane.vue.d.ts.map +1 -0
- package/dist/components/EditableTitle.vue.d.ts +32 -0
- package/dist/components/EditableTitle.vue.d.ts.map +1 -0
- package/dist/components/ErrorMessage.vue.d.ts +20 -0
- package/dist/components/ErrorMessage.vue.d.ts.map +1 -0
- package/dist/components/HighlightComponent.vue.d.ts +21 -0
- package/dist/components/HighlightComponent.vue.d.ts.map +1 -0
- package/dist/components/HintComponent.vue.d.ts +12 -0
- package/dist/components/HintComponent.vue.d.ts.map +1 -0
- package/dist/components/InlineErrorMessage.vue.d.ts +3 -0
- package/dist/components/InlineErrorMessage.vue.d.ts.map +1 -0
- package/dist/components/LoadingButton.vue.d.ts +121 -0
- package/dist/components/LoadingButton.vue.d.ts.map +1 -0
- package/dist/components/LoadingView.vue.d.ts +21 -0
- package/dist/components/LoadingView.vue.d.ts.map +1 -0
- package/dist/components/MarkdownRenderer.vue.d.ts +39 -0
- package/dist/components/MarkdownRenderer.vue.d.ts.map +1 -0
- package/dist/components/PopupModal.vue.d.ts +50 -0
- package/dist/components/PopupModal.vue.d.ts.map +1 -0
- package/dist/components/SimpleEditor.vue.d.ts +246 -0
- package/dist/components/SimpleEditor.vue.d.ts.map +1 -0
- package/dist/components/StatusIcon.vue.d.ts +9 -0
- package/dist/components/StatusIcon.vue.d.ts.map +1 -0
- package/dist/components/SymbolsPane.vue.d.ts +96 -0
- package/dist/components/SymbolsPane.vue.d.ts.map +1 -0
- package/dist/components/Tooltip.vue.d.ts +40 -0
- package/dist/components/Tooltip.vue.d.ts.map +1 -0
- package/dist/components/VegaLiteChart.vue.d.ts +183 -0
- package/dist/components/VegaLiteChart.vue.d.ts.map +1 -0
- package/dist/components/chartControlsManager.d.ts +50 -0
- package/dist/components/chartControlsManager.d.ts.map +1 -0
- package/dist/components/chartHelpers.d.ts +51 -0
- package/dist/components/chartHelpers.d.ts.map +1 -0
- package/dist/components/chartOperationsManager.d.ts +10 -0
- package/dist/components/chartOperationsManager.d.ts.map +1 -0
- package/dist/components/chartRenderManager.d.ts +26 -0
- package/dist/components/chartRenderManager.d.ts.map +1 -0
- package/dist/components/community/AddStoreModal.vue.d.ts +35 -0
- package/dist/components/community/AddStoreModal.vue.d.ts.map +1 -0
- package/dist/components/community/CommunityModelCard.vue.d.ts +33 -0
- package/dist/components/community/CommunityModelCard.vue.d.ts.map +1 -0
- package/dist/components/community/CommunityModelHeader.vue.d.ts +22 -0
- package/dist/components/community/CommunityModelHeader.vue.d.ts.map +1 -0
- package/dist/components/community/CommunityModels.vue.d.ts +19 -0
- package/dist/components/community/CommunityModels.vue.d.ts.map +1 -0
- package/dist/components/community/CommunityRemote.vue.d.ts +33 -0
- package/dist/components/community/CommunityRemote.vue.d.ts.map +1 -0
- package/dist/components/connection/ConnectionDatabase.vue.d.ts +153 -0
- package/dist/components/connection/ConnectionDatabase.vue.d.ts.map +1 -0
- package/dist/components/connection/ConnectionHistory.vue.d.ts +13 -0
- package/dist/components/connection/ConnectionHistory.vue.d.ts.map +1 -0
- package/dist/components/connection/ConnectionSchema.vue.d.ts +35 -0
- package/dist/components/connection/ConnectionSchema.vue.d.ts.map +1 -0
- package/dist/components/connection/ConnectionTable.vue.d.ts +251 -0
- package/dist/components/connection/ConnectionTable.vue.d.ts.map +1 -0
- package/dist/components/connection/DatasourceTable.vue.d.ts +16 -0
- package/dist/components/connection/DatasourceTable.vue.d.ts.map +1 -0
- package/dist/components/dashboard/Dashboard.vue.d.ts +13 -0
- package/dist/components/dashboard/Dashboard.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardAddItemModal.vue.d.ts +13 -0
- package/dist/components/dashboard/DashboardAddItemModal.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardCTA.vue.d.ts +12 -0
- package/dist/components/dashboard/DashboardCTA.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardChart.vue.d.ts +427 -0
- package/dist/components/dashboard/DashboardChart.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardChartEditor.vue.d.ts +325 -0
- package/dist/components/dashboard/DashboardChartEditor.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts +52 -0
- package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardCreatorInline.vue.d.ts +36 -0
- package/dist/components/dashboard/DashboardCreatorInline.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardDataSelector.vue.d.ts +221 -0
- package/dist/components/dashboard/DashboardDataSelector.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardFilter.vue.d.ts +346 -0
- package/dist/components/dashboard/DashboardFilter.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardFilterAutocomplete.vue.d.ts +38 -0
- package/dist/components/dashboard/DashboardFilterAutocomplete.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardGridItem.vue.d.ts +31 -0
- package/dist/components/dashboard/DashboardGridItem.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardHeader.vue.d.ts +71 -0
- package/dist/components/dashboard/DashboardHeader.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardHeaderFilterInput.vue.d.ts +50 -0
- package/dist/components/dashboard/DashboardHeaderFilterInput.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardImportPopup.vue.d.ts +12 -0
- package/dist/components/dashboard/DashboardImportPopup.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardImportSelector.vue.d.ts +14 -0
- package/dist/components/dashboard/DashboardImportSelector.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardMarkdown.vue.d.ts +175 -0
- package/dist/components/dashboard/DashboardMarkdown.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardMarkdownEditor.vue.d.ts +325 -0
- package/dist/components/dashboard/DashboardMarkdownEditor.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardMobile.vue.d.ts +8 -0
- package/dist/components/dashboard/DashboardMobile.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardSharePopup.vue.d.ts +14 -0
- package/dist/components/dashboard/DashboardSharePopup.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardTable.vue.d.ts +332 -0
- package/dist/components/dashboard/DashboardTable.vue.d.ts.map +1 -0
- package/dist/components/dashboard/useDashboard.d.ts +96 -0
- package/dist/components/dashboard/useDashboard.d.ts.map +1 -0
- package/dist/components/editor/Editor.vue.d.ts +816 -0
- package/dist/components/editor/Editor.vue.d.ts.map +1 -0
- package/dist/components/editor/EditorCode.vue.d.ts +49 -0
- package/dist/components/editor/EditorCode.vue.d.ts.map +1 -0
- package/dist/components/editor/EditorCreatorIcon.vue.d.ts +61 -0
- package/dist/components/editor/EditorCreatorIcon.vue.d.ts.map +1 -0
- package/dist/components/editor/EditorCreatorInline.vue.d.ts +95 -0
- package/dist/components/editor/EditorCreatorInline.vue.d.ts.map +1 -0
- package/dist/components/editor/EditorHeader.vue.d.ts +185 -0
- package/dist/components/editor/EditorHeader.vue.d.ts.map +1 -0
- package/dist/components/editor/ResultComponent.vue.d.ts +1095 -0
- package/dist/components/editor/ResultComponent.vue.d.ts.map +1 -0
- package/dist/components/editor/Results.vue.d.ts +755 -0
- package/dist/components/editor/Results.vue.d.ts.map +1 -0
- package/dist/components/editor/editorHelpers.d.ts +45 -0
- package/dist/components/editor/editorHelpers.d.ts.map +1 -0
- package/dist/components/editor/events.d.ts +4 -0
- package/dist/components/editor/events.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/layout/MobileSidebarLayout.vue.d.ts +48 -0
- package/dist/components/layout/MobileSidebarLayout.vue.d.ts.map +1 -0
- package/dist/components/layout/SidebarLayout.vue.d.ts +20 -0
- package/dist/components/layout/SidebarLayout.vue.d.ts.map +1 -0
- package/dist/components/layout/TabDropdownItem.vue.d.ts +73 -0
- package/dist/components/layout/TabDropdownItem.vue.d.ts.map +1 -0
- package/dist/components/layout/TabbedBrowser.vue.d.ts +42 -0
- package/dist/components/layout/TabbedBrowser.vue.d.ts.map +1 -0
- package/dist/components/layout/TabbedLayout.vue.d.ts +5 -0
- package/dist/components/layout/TabbedLayout.vue.d.ts.map +1 -0
- package/dist/components/layout/VerticalSplitLayout.vue.d.ts +13 -0
- package/dist/components/layout/VerticalSplitLayout.vue.d.ts.map +1 -0
- package/dist/components/llm/ChatArtifact.vue.d.ts +470 -0
- package/dist/components/llm/ChatArtifact.vue.d.ts.map +1 -0
- package/dist/components/llm/ChatCreatorModal.vue.d.ts +87 -0
- package/dist/components/llm/ChatCreatorModal.vue.d.ts.map +1 -0
- package/dist/components/llm/LLMChat.vue.d.ts +260 -0
- package/dist/components/llm/LLMChat.vue.d.ts.map +1 -0
- package/dist/components/llm/LLMChatRefinement.vue.d.ts +135 -0
- package/dist/components/llm/LLMChatRefinement.vue.d.ts.map +1 -0
- package/dist/components/llm/LLMChatSplitView.vue.d.ts +2029 -0
- package/dist/components/llm/LLMChatSplitView.vue.d.ts.map +1 -0
- package/dist/components/llm/LLMValidationView.vue.d.ts +106 -0
- package/dist/components/llm/LLMValidationView.vue.d.ts.map +1 -0
- package/dist/components/llm/index.d.ts +6 -0
- package/dist/components/llm/index.d.ts.map +1 -0
- package/dist/components/model/ModelCard.vue.d.ts +1113 -0
- package/dist/components/model/ModelCard.vue.d.ts.map +1 -0
- package/dist/components/model/ModelConcept.vue.d.ts +14 -0
- package/dist/components/model/ModelConcept.vue.d.ts.map +1 -0
- package/dist/components/model/ModelCreator.vue.d.ts +241 -0
- package/dist/components/model/ModelCreator.vue.d.ts.map +1 -0
- package/dist/components/model/ModelSelector.vue.d.ts +9 -0
- package/dist/components/model/ModelSelector.vue.d.ts.map +1 -0
- package/dist/components/sidebar/CommunityModelListItem.vue.d.ts +26 -0
- package/dist/components/sidebar/CommunityModelListItem.vue.d.ts.map +1 -0
- package/dist/components/sidebar/ConnectionCreatorInline.vue.d.ts +68 -0
- package/dist/components/sidebar/ConnectionCreatorInline.vue.d.ts.map +1 -0
- package/dist/components/sidebar/ConnectionIcon.vue.d.ts +6 -0
- package/dist/components/sidebar/ConnectionIcon.vue.d.ts.map +1 -0
- package/dist/components/sidebar/ConnectionList.vue.d.ts +714 -0
- package/dist/components/sidebar/ConnectionList.vue.d.ts.map +1 -0
- package/dist/components/sidebar/ConnectionListItem.vue.d.ts +317 -0
- package/dist/components/sidebar/ConnectionListItem.vue.d.ts.map +1 -0
- package/dist/components/sidebar/ConnectionRefresh.vue.d.ts +15 -0
- package/dist/components/sidebar/ConnectionRefresh.vue.d.ts.map +1 -0
- package/dist/components/sidebar/ConnectionStatusIcon.vue.d.ts +11 -0
- package/dist/components/sidebar/ConnectionStatusIcon.vue.d.ts.map +1 -0
- package/dist/components/sidebar/CreateEditorFromDatasourcePopup.vue.d.ts +15 -0
- package/dist/components/sidebar/CreateEditorFromDatasourcePopup.vue.d.ts.map +1 -0
- package/dist/components/sidebar/DashboardList.vue.d.ts +684 -0
- package/dist/components/sidebar/DashboardList.vue.d.ts.map +1 -0
- package/dist/components/sidebar/DashboardListItem.vue.d.ts +343 -0
- package/dist/components/sidebar/DashboardListItem.vue.d.ts.map +1 -0
- package/dist/components/sidebar/DuckDBImporter.vue.d.ts +24 -0
- package/dist/components/sidebar/DuckDBImporter.vue.d.ts.map +1 -0
- package/dist/components/sidebar/EditorList.vue.d.ts +590 -0
- package/dist/components/sidebar/EditorList.vue.d.ts.map +1 -0
- package/dist/components/sidebar/EditorListItem.vue.d.ts +260 -0
- package/dist/components/sidebar/EditorListItem.vue.d.ts.map +1 -0
- package/dist/components/sidebar/GenericSidebarItem.vue.d.ts +91 -0
- package/dist/components/sidebar/GenericSidebarItem.vue.d.ts.map +1 -0
- package/dist/components/sidebar/LLMConnectionCreator.vue.d.ts +178 -0
- package/dist/components/sidebar/LLMConnectionCreator.vue.d.ts.map +1 -0
- package/dist/components/sidebar/LLMConnectionList.vue.d.ts +978 -0
- package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -0
- package/dist/components/sidebar/LLMConnectionListItem.vue.d.ts +404 -0
- package/dist/components/sidebar/LLMConnectionListItem.vue.d.ts.map +1 -0
- package/dist/components/sidebar/LLMProviderIcon.vue.d.ts +13 -0
- package/dist/components/sidebar/LLMProviderIcon.vue.d.ts.map +1 -0
- package/dist/components/sidebar/ModelSidebar.vue.d.ts +558 -0
- package/dist/components/sidebar/ModelSidebar.vue.d.ts.map +1 -0
- package/dist/components/sidebar/SidebarList.vue.d.ts +16 -0
- package/dist/components/sidebar/SidebarList.vue.d.ts.map +1 -0
- package/dist/components/sidebar/TutorialSidebar.vue.d.ts +134 -0
- package/dist/components/sidebar/TutorialSidebar.vue.d.ts.map +1 -0
- package/dist/components/tutorial/TutorialFunction.vue.d.ts +38 -0
- package/dist/components/tutorial/TutorialFunction.vue.d.ts.map +1 -0
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts +2002 -0
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -0
- package/dist/components/user/UserProfile.vue.d.ts +11 -0
- package/dist/components/user/UserProfile.vue.d.ts.map +1 -0
- package/dist/components/user/UserSettings.vue.d.ts +129 -0
- package/dist/components/user/UserSettings.vue.d.ts.map +1 -0
- package/dist/composables/ResizeHandles.vue.d.ts +6 -0
- package/dist/composables/ResizeHandles.vue.d.ts.map +1 -0
- package/dist/composables/useChatWithTools.d.ts +62 -0
- package/dist/composables/useChatWithTools.d.ts.map +1 -0
- package/dist/composables/useResizableDialog.d.ts +30 -0
- package/dist/composables/useResizableDialog.d.ts.map +1 -0
- package/dist/composables/useTrilogyChat.d.ts +61 -0
- package/dist/composables/useTrilogyChat.d.ts.map +1 -0
- package/dist/composables/useTrilogyCore.d.ts +51 -0
- package/dist/composables/useTrilogyCore.d.ts.map +1 -0
- package/dist/connections/base.d.ts +86 -0
- package/dist/connections/base.d.ts.map +1 -0
- package/dist/connections/bigquery_oauth.d.ts +35 -0
- package/dist/connections/bigquery_oauth.d.ts.map +1 -0
- package/dist/connections/bigquery_sa.d.ts +2 -0
- package/dist/connections/bigquery_sa.d.ts.map +1 -0
- package/dist/connections/constants.d.ts +2 -0
- package/dist/connections/constants.d.ts.map +1 -0
- package/dist/connections/duckdb.d.ts +43 -0
- package/dist/connections/duckdb.d.ts.map +1 -0
- package/dist/connections/helpers.d.ts +30 -0
- package/dist/connections/helpers.d.ts.map +1 -0
- package/dist/connections/index.d.ts +7 -0
- package/dist/connections/index.d.ts.map +1 -0
- package/dist/connections/motherduck.d.ts +19 -0
- package/dist/connections/motherduck.d.ts.map +1 -0
- package/dist/connections/snowflake.d.ts +94 -0
- package/dist/connections/snowflake.d.ts.map +1 -0
- package/dist/connections/sql_server.d.ts +2 -0
- package/dist/connections/sql_server.d.ts.map +1 -0
- package/dist/cpp-CqOUEpxN.js +395 -0
- package/dist/csharp-DVLiBOZb.js +332 -0
- package/dist/csp-DVFp9bw5.js +59 -0
- package/dist/css-DwARn2R6.js +193 -0
- package/dist/cssMode-Cr0iq_nL.js +1577 -0
- package/dist/cypher-uY0Mffat.js +269 -0
- package/dist/dart-D27H-mX_.js +287 -0
- package/dist/dashboards/barChartSpec.d.ts +28 -0
- package/dist/dashboards/barChartSpec.d.ts.map +1 -0
- package/dist/dashboards/barHChartSpec.d.ts +28 -0
- package/dist/dashboards/barHChartSpec.d.ts.map +1 -0
- package/dist/dashboards/base.d.ts +176 -0
- package/dist/dashboards/base.d.ts.map +1 -0
- package/dist/dashboards/beeSwarmSpec.d.ts +150 -0
- package/dist/dashboards/beeSwarmSpec.d.ts.map +1 -0
- package/dist/dashboards/conditions.d.ts +8 -0
- package/dist/dashboards/conditions.d.ts.map +1 -0
- package/dist/dashboards/conditionsParameters.d.ts +11 -0
- package/dist/dashboards/conditionsParameters.d.ts.map +1 -0
- package/dist/dashboards/constants.d.ts +22 -0
- package/dist/dashboards/constants.d.ts.map +1 -0
- package/dist/dashboards/countryLookup.d.ts +15 -0
- package/dist/dashboards/countryLookup.d.ts.map +1 -0
- package/dist/dashboards/d3utility.d.ts +7 -0
- package/dist/dashboards/d3utility.d.ts.map +1 -0
- package/dist/dashboards/dashboardQueryExecutor.d.ts +142 -0
- package/dist/dashboards/dashboardQueryExecutor.d.ts.map +1 -0
- package/dist/dashboards/donutSpec.d.ts +74 -0
- package/dist/dashboards/donutSpec.d.ts.map +1 -0
- package/dist/dashboards/formatting.d.ts +11 -0
- package/dist/dashboards/formatting.d.ts.map +1 -0
- package/dist/dashboards/headlineSpec.d.ts +23 -0
- package/dist/dashboards/headlineSpec.d.ts.map +1 -0
- package/dist/dashboards/heatmapSpec.d.ts +30 -0
- package/dist/dashboards/heatmapSpec.d.ts.map +1 -0
- package/dist/dashboards/helpers.d.ts +73 -0
- package/dist/dashboards/helpers.d.ts.map +1 -0
- package/dist/dashboards/index.d.ts +3 -0
- package/dist/dashboards/index.d.ts.map +1 -0
- package/dist/dashboards/lineAreaSpec.d.ts +177 -0
- package/dist/dashboards/lineAreaSpec.d.ts.map +1 -0
- package/dist/dashboards/mapSpec.d.ts +431 -0
- package/dist/dashboards/mapSpec.d.ts.map +1 -0
- package/dist/dashboards/pointSpec.d.ts +27 -0
- package/dist/dashboards/pointSpec.d.ts.map +1 -0
- package/dist/dashboards/prompts.d.ts +31 -0
- package/dist/dashboards/prompts.d.ts.map +1 -0
- package/dist/dashboards/spec.d.ts +19 -0
- package/dist/dashboards/spec.d.ts.map +1 -0
- package/dist/dashboards/treeSpec.d.ts +3 -0
- package/dist/dashboards/treeSpec.d.ts.map +1 -0
- package/dist/dashboards/types.d.ts +70 -0
- package/dist/dashboards/types.d.ts.map +1 -0
- package/dist/data/connectionHistoryStorage.d.ts +25 -0
- package/dist/data/connectionHistoryStorage.d.ts.map +1 -0
- package/dist/data/constants.d.ts +4 -0
- package/dist/data/constants.d.ts.map +1 -0
- package/dist/data/credentialHelpers.d.ts +30 -0
- package/dist/data/credentialHelpers.d.ts.map +1 -0
- package/dist/data/credentialService.d.ts +80 -0
- package/dist/data/credentialService.d.ts.map +1 -0
- package/dist/data/githubStorage.d.ts +54 -0
- package/dist/data/githubStorage.d.ts.map +1 -0
- package/dist/data/index.d.ts +3 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/localStorage.d.ts +48 -0
- package/dist/data/localStorage.d.ts.map +1 -0
- package/dist/data/storage.d.ts +33 -0
- package/dist/data/storage.d.ts.map +1 -0
- package/dist/data/tips.d.ts +12 -0
- package/dist/data/tips.d.ts.map +1 -0
- package/dist/data/tutorial/builtinFunctions.d.ts +3 -0
- package/dist/data/tutorial/builtinFunctions.d.ts.map +1 -0
- package/dist/data/tutorial/dashboardTutorial.d.ts +3 -0
- package/dist/data/tutorial/dashboardTutorial.d.ts.map +1 -0
- package/dist/data/tutorial/demoSetup.d.ts +6 -0
- package/dist/data/tutorial/demoSetup.d.ts.map +1 -0
- package/dist/data/tutorial/docTypes.d.ts +37 -0
- package/dist/data/tutorial/docTypes.d.ts.map +1 -0
- package/dist/data/tutorial/documentation.d.ts +3 -0
- package/dist/data/tutorial/documentation.d.ts.map +1 -0
- package/dist/data/tutorial/functionsReference.d.ts +3 -0
- package/dist/data/tutorial/functionsReference.d.ts.map +1 -0
- package/dist/data/tutorial/introTutorial.d.ts +3 -0
- package/dist/data/tutorial/introTutorial.d.ts.map +1 -0
- package/dist/data/tutorial/llmTutorial.d.ts +3 -0
- package/dist/data/tutorial/llmTutorial.d.ts.map +1 -0
- package/dist/data/tutorial/modelReference.d.ts +3 -0
- package/dist/data/tutorial/modelReference.d.ts.map +1 -0
- package/dist/data/tutorial/modelTutorial.d.ts +3 -0
- package/dist/data/tutorial/modelTutorial.d.ts.map +1 -0
- package/dist/data/tutorial/reference.d.ts +3 -0
- package/dist/data/tutorial/reference.d.ts.map +1 -0
- package/dist/data/tutorial/terms_of_service.d.ts +3 -0
- package/dist/data/tutorial/terms_of_service.d.ts.map +1 -0
- package/dist/data/tutorial/windowFunctionsReference.d.ts +3 -0
- package/dist/data/tutorial/windowFunctionsReference.d.ts.map +1 -0
- package/dist/dockerfile-CmV85WZK.js +136 -0
- package/dist/ecl--fKn7yzB.js +462 -0
- package/dist/editors/editor.d.ts +82 -0
- package/dist/editors/editor.d.ts.map +1 -0
- package/dist/editors/helpers.d.ts +12 -0
- package/dist/editors/helpers.d.ts.map +1 -0
- package/dist/editors/index.d.ts +3 -0
- package/dist/editors/index.d.ts.map +1 -0
- package/dist/editors/results.d.ts +61 -0
- package/dist/editors/results.d.ts.map +1 -0
- package/dist/elixir-DUhH17ON.js +575 -0
- package/dist/events/display.d.ts +9 -0
- package/dist/events/display.d.ts.map +1 -0
- package/dist/flow9-B3Dx2LLe.js +148 -0
- package/dist/freemarker2-de_cA50e.js +995 -0
- package/dist/fsharp-SyqBfUAR.js +223 -0
- package/dist/go-BbMR2tdT.js +224 -0
- package/dist/graphql-DDJE6tIl.js +157 -0
- package/dist/handlebars-C8f44E5O.js +425 -0
- package/dist/hcl-YBvpaUqf.js +189 -0
- package/dist/html-qaggIh0W.js +314 -0
- package/dist/html2canvas.esm-dgT_1dIT.js +4871 -0
- package/dist/htmlMode-xYurYOLw.js +1587 -0
- package/dist/ini-Ct73dBtM.js +77 -0
- package/dist/java-C_jlkwoG.js +238 -0
- package/dist/javascript-DeLkSgQX.js +76 -0
- package/dist/jsonMode-BM-L8w8F.js +2002 -0
- package/dist/julia-D8WE5U1e.js +517 -0
- package/dist/kotlin-Zy9aq5yB.js +259 -0
- package/dist/language/constants.d.ts +6 -0
- package/dist/language/constants.d.ts.map +1 -0
- package/dist/language/index.d.ts +2 -0
- package/dist/language/index.d.ts.map +1 -0
- package/dist/less-sZ0iHtE8.js +168 -0
- package/dist/lexon-CsdNL29A.js +163 -0
- package/dist/liquid-DLNUrc5y.js +246 -0
- package/dist/llm/anthropic.d.ts +13 -0
- package/dist/llm/anthropic.d.ts.map +1 -0
- package/dist/llm/base.d.ts +63 -0
- package/dist/llm/base.d.ts.map +1 -0
- package/dist/llm/chatAgentPrompt.d.ts +166 -0
- package/dist/llm/chatAgentPrompt.d.ts.map +1 -0
- package/dist/llm/chatHelpers.d.ts +23 -0
- package/dist/llm/chatHelpers.d.ts.map +1 -0
- package/dist/llm/chatToolExecutor.d.ts +39 -0
- package/dist/llm/chatToolExecutor.d.ts.map +1 -0
- package/dist/llm/consts.d.ts +3 -0
- package/dist/llm/consts.d.ts.map +1 -0
- package/dist/llm/data/constants.d.ts +5 -0
- package/dist/llm/data/constants.d.ts.map +1 -0
- package/dist/llm/data/models.d.ts +8 -0
- package/dist/llm/data/models.d.ts.map +1 -0
- package/dist/llm/data/prompts.d.ts +7 -0
- package/dist/llm/data/prompts.d.ts.map +1 -0
- package/dist/llm/data/testCases.d.ts +13 -0
- package/dist/llm/data/testCases.d.ts.map +1 -0
- package/dist/llm/googlev2.d.ts +15 -0
- package/dist/llm/googlev2.d.ts.map +1 -0
- package/dist/llm/index.d.ts +11 -0
- package/dist/llm/index.d.ts.map +1 -0
- package/dist/llm/mistral.d.ts +11 -0
- package/dist/llm/mistral.d.ts.map +1 -0
- package/dist/llm/models.d.ts +8 -0
- package/dist/llm/models.d.ts.map +1 -0
- package/dist/llm/openAI.d.ts +13 -0
- package/dist/llm/openAI.d.ts.map +1 -0
- package/dist/llm/utils.d.ts +50 -0
- package/dist/llm/utils.d.ts.map +1 -0
- package/dist/lua-C2YJo0zw.js +168 -0
- package/dist/m3-CPLP40SG.js +216 -0
- package/dist/main-oVvKtGNk.js +203688 -0
- package/dist/main.css +1 -0
- package/dist/main.d.ts +23 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +22 -0
- package/dist/main.umd.cjs +2885 -0
- package/dist/markdown-B1mf5e0R.js +235 -0
- package/dist/mdx-BmG1effK.js +171 -0
- package/dist/mips-DA33BZX1.js +204 -0
- package/dist/models/helpers.d.ts +59 -0
- package/dist/models/helpers.d.ts.map +1 -0
- package/dist/models/import.d.ts +18 -0
- package/dist/models/import.d.ts.map +1 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/model.d.ts +241 -0
- package/dist/models/model.d.ts.map +1 -0
- package/dist/monaco/editorHelpers.d.ts +32 -0
- package/dist/monaco/editorHelpers.d.ts.map +1 -0
- package/dist/monaco/index.d.ts +2 -0
- package/dist/monaco/index.d.ts.map +1 -0
- package/dist/monaco/setup.d.ts +2 -0
- package/dist/monaco/setup.d.ts.map +1 -0
- package/dist/msdax-CCYFIQsP.js +381 -0
- package/dist/mysql-hjmIjL-D.js +884 -0
- package/dist/objective-c-RRCpEmqC.js +189 -0
- package/dist/pascal-CeV8XfxB.js +257 -0
- package/dist/pascaligo-IEEGVJAJ.js +170 -0
- package/dist/perl-B5-QbHq_.js +632 -0
- package/dist/pgsql-s6kqEJmi.js +857 -0
- package/dist/php-CWWqzOo8.js +506 -0
- package/dist/pla-FSvb_YP_.js +143 -0
- package/dist/postiats-DQdscQXO.js +913 -0
- package/dist/powerquery-CtA5JA1I.js +896 -0
- package/dist/powershell-DglEq96N.js +245 -0
- package/dist/prism-sql-8Y2-THrf.js +33 -0
- package/dist/protobuf-BSepub3e.js +426 -0
- package/dist/pug-B1847F4G.js +408 -0
- package/dist/python-BLXKu9hO.js +307 -0
- package/dist/qsharp-D4i0Nqg9.js +307 -0
- package/dist/r-cdRigKxa.js +249 -0
- package/dist/razor-DSEd6veI.js +556 -0
- package/dist/redis-D9MFxvE8.js +308 -0
- package/dist/redshift-CmCnsvL-.js +815 -0
- package/dist/remotes/constants.d.ts +2 -0
- package/dist/remotes/constants.d.ts.map +1 -0
- package/dist/remotes/displayHelpers.d.ts +67 -0
- package/dist/remotes/displayHelpers.d.ts.map +1 -0
- package/dist/remotes/modelApiService.d.ts +38 -0
- package/dist/remotes/modelApiService.d.ts.map +1 -0
- package/dist/remotes/models.d.ts +48 -0
- package/dist/remotes/models.d.ts.map +1 -0
- package/dist/remotes/storeService.d.ts +42 -0
- package/dist/remotes/storeService.d.ts.map +1 -0
- package/dist/restructuredtext-CWy8J51t.js +180 -0
- package/dist/ruby-WP-c36m5.js +517 -0
- package/dist/rust-Q9FLdYpu.js +349 -0
- package/dist/sb-C54-JBGT.js +121 -0
- package/dist/scala-CzbFImc5.js +376 -0
- package/dist/scheme-BhfDmYN3.js +114 -0
- package/dist/scss-CEmiBXpS.js +268 -0
- package/dist/shell-Bmc1VhG0.js +227 -0
- package/dist/solidity-C9Q2I8Hh.js +1373 -0
- package/dist/sophia-jWa1UyKz.js +205 -0
- package/dist/sparql-CM7jctbc.js +207 -0
- package/dist/sql-WzihTkbg.js +859 -0
- package/dist/st-6y7_3aup.js +422 -0
- package/dist/stores/CredentialManager.vue.d.ts +50 -0
- package/dist/stores/CredentialManager.vue.d.ts.map +1 -0
- package/dist/stores/Manager.vue.d.ts +100 -0
- package/dist/stores/Manager.vue.d.ts.map +1 -0
- package/dist/stores/analyticsStore.d.ts +42 -0
- package/dist/stores/analyticsStore.d.ts.map +1 -0
- package/dist/stores/chatStore.d.ts +153 -0
- package/dist/stores/chatStore.d.ts.map +1 -0
- package/dist/stores/communityApiStore.d.ts +206 -0
- package/dist/stores/communityApiStore.d.ts.map +1 -0
- package/dist/stores/connectionHistoryStore.d.ts +24 -0
- package/dist/stores/connectionHistoryStore.d.ts.map +1 -0
- package/dist/stores/connectionStore.d.ts +31 -0
- package/dist/stores/connectionStore.d.ts.map +1 -0
- package/dist/stores/dashboardStore.d.ts +122 -0
- package/dist/stores/dashboardStore.d.ts.map +1 -0
- package/dist/stores/editorStore.d.ts +44 -0
- package/dist/stores/editorStore.d.ts.map +1 -0
- package/dist/stores/index.d.ts +14 -0
- package/dist/stores/index.d.ts.map +1 -0
- package/dist/stores/llmStore.d.ts +90 -0
- package/dist/stores/llmStore.d.ts.map +1 -0
- package/dist/stores/modelStore.d.ts +29 -0
- package/dist/stores/modelStore.d.ts.map +1 -0
- package/dist/stores/queryExecutionService.d.ts +60 -0
- package/dist/stores/queryExecutionService.d.ts.map +1 -0
- package/dist/stores/resolver.d.ts +91 -0
- package/dist/stores/resolver.d.ts.map +1 -0
- package/dist/stores/urlStore.d.ts +6 -0
- package/dist/stores/urlStore.d.ts.map +1 -0
- package/dist/stores/useScreenNavigation.d.ts +53 -0
- package/dist/stores/useScreenNavigation.d.ts.map +1 -0
- package/dist/stores/userSettingsStore.d.ts +133 -0
- package/dist/stores/userSettingsStore.d.ts.map +1 -0
- package/dist/swift-k-0zxG_D.js +318 -0
- package/dist/systemverilog-Pnr5_rIP.js +582 -0
- package/dist/tcl-fNPXval8.js +238 -0
- package/dist/tsMode-CdypNzs1.js +895 -0
- package/dist/twig-L2MkztkV.js +398 -0
- package/dist/typescript-DZ5G39rT.js +349 -0
- package/dist/typespec-Cqqo-3Pt.js +123 -0
- package/dist/useDashboard-CPI83oAm.js +3352 -0
- package/dist/utility/debounce.d.ts +12 -0
- package/dist/utility/debounce.d.ts.map +1 -0
- package/dist/utility/markdownRenderer.d.ts +34 -0
- package/dist/utility/markdownRenderer.d.ts.map +1 -0
- package/dist/utility/testHelpers.d.ts +2 -0
- package/dist/utility/testHelpers.d.ts.map +1 -0
- package/dist/vb-B5YC2xN9.js +378 -0
- package/dist/views/ConnectionView.vue.d.ts +522 -0
- package/dist/views/ConnectionView.vue.d.ts.map +1 -0
- package/dist/views/CredentialBackgroundPage.vue.d.ts +3 -0
- package/dist/views/CredentialBackgroundPage.vue.d.ts.map +1 -0
- package/dist/views/IDEPlaceholder.vue.d.ts +3 -0
- package/dist/views/IDEPlaceholder.vue.d.ts.map +1 -0
- package/dist/views/LLMView.vue.d.ts +7758 -0
- package/dist/views/LLMView.vue.d.ts.map +1 -0
- package/dist/views/MobileIDEPlaceholder.vue.d.ts +3 -0
- package/dist/views/MobileIDEPlaceholder.vue.d.ts.map +1 -0
- package/dist/views/ModelView.vue.d.ts +2170 -0
- package/dist/views/ModelView.vue.d.ts.map +1 -0
- package/dist/views/ResponsiveIDE.vue.d.ts +3 -0
- package/dist/views/ResponsiveIDE.vue.d.ts.map +1 -0
- package/dist/views/TutorialPage.vue.d.ts +7835 -0
- package/dist/views/TutorialPage.vue.d.ts.map +1 -0
- package/dist/views/WelcomePage.vue.d.ts +13 -0
- package/dist/views/WelcomePage.vue.d.ts.map +1 -0
- package/dist/views/index.d.ts +3 -0
- package/dist/views/index.d.ts.map +1 -0
- package/dist/vite.config.d.ts +3 -0
- package/dist/vite.config.d.ts.map +1 -0
- package/dist/vitest.config.d.ts +3 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/dist/wgsl-B-_uRex7.js +445 -0
- package/dist/xml-DsUsyRQY.js +101 -0
- package/dist/yaml-BpA1BNpS.js +212 -0
- package/package.json +55 -0
|
@@ -0,0 +1,558 @@
|
|
|
1
|
+
import { defineComponent as q, inject as R, ref as y, computed as D, watch as M, nextTick as X, onMounted as Z, createElementBlock as u, openBlock as d, createElementVNode as a, createCommentVNode as b, createTextVNode as N, withDirectives as B, Fragment as U, renderList as V, toDisplayString as h, vModelSelect as x, normalizeClass as T, withKeys as ee, withModifiers as te, vModelText as ne, resolveComponent as O, createBlock as j, createVNode as se, withCtx as G } from "vue";
|
|
2
|
+
import { y as A, z as oe, a as Q, B as ae, F as ie, I as re } from "./main-oVvKtGNk.js";
|
|
3
|
+
const P = [
|
|
4
|
+
{ name: "id", type: "int" },
|
|
5
|
+
{ name: "quantity", type: "float" },
|
|
6
|
+
{ name: "extended_price", type: "float::money" },
|
|
7
|
+
{ name: "discount", type: "float::percent", description: "percent discount" },
|
|
8
|
+
{ name: "tax", type: "float::percent", description: "tax, as percentage" },
|
|
9
|
+
{ name: "return_flag", type: "string" },
|
|
10
|
+
{ name: "line_status", type: "string" },
|
|
11
|
+
{ name: "ship_date", type: "date" },
|
|
12
|
+
{ name: "commit_date", type: "date" },
|
|
13
|
+
{ name: "receipt_date", type: "date" },
|
|
14
|
+
{ name: "ship_instruct", type: "string" },
|
|
15
|
+
{ name: "ship_mode", type: "string" },
|
|
16
|
+
{ name: "comment", type: "string" },
|
|
17
|
+
{ name: "supplier.id", type: "int" },
|
|
18
|
+
{ name: "supplier.nation.name", type: "string" },
|
|
19
|
+
{ name: "supplier.name", type: "string" },
|
|
20
|
+
{ name: "order.id", type: "int" },
|
|
21
|
+
{ name: "order.date", type: "date" },
|
|
22
|
+
{ name: "order.customer.name", type: "string" },
|
|
23
|
+
{ name: "order.customer.nation.name", type: "string" },
|
|
24
|
+
{ name: "order.customer.id", type: "int" }
|
|
25
|
+
], le = [
|
|
26
|
+
{
|
|
27
|
+
name: "Basic Query",
|
|
28
|
+
description: "Tests if the LLM can create a simple trilogy query from user input.",
|
|
29
|
+
prompt: A("what were sales for the last 3 months by order date?", P),
|
|
30
|
+
expectedResponse: {
|
|
31
|
+
contains: ["extended_price"],
|
|
32
|
+
mustIdentify: "order.date",
|
|
33
|
+
notContains: ["FROM"]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "Aggregate Query",
|
|
38
|
+
description: "Tests if the LLM can generate an aggregate query.",
|
|
39
|
+
prompt: A("what are sales by supplier name and nation?", P),
|
|
40
|
+
expectedResponse: {
|
|
41
|
+
contains: ["extended_price"],
|
|
42
|
+
mustIdentify: "supplier.nation.name",
|
|
43
|
+
notContains: ["FROM", "GROUP BY"]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: "Complex Query",
|
|
48
|
+
description: "Tests for a more complex query, with limits and ordering.",
|
|
49
|
+
prompt: A("Who were the top ten customers by sales in august 1995?", P),
|
|
50
|
+
expectedResponse: {
|
|
51
|
+
contains: ["extended_price", "order.customer.name", "8"],
|
|
52
|
+
mustIdentify: "order.customer.name",
|
|
53
|
+
notContains: ["FROM", "GROUP BY"]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "Multi-part Conditions",
|
|
58
|
+
description: "Tests for a query that includes multiple conditions.",
|
|
59
|
+
prompt: A(
|
|
60
|
+
"Who were the top ten customers by sales in august 1995 who had orders that shipped in october or september?",
|
|
61
|
+
P
|
|
62
|
+
),
|
|
63
|
+
expectedResponse: {
|
|
64
|
+
contains: ["extended_price", "order.customer.name", "8"],
|
|
65
|
+
mustIdentify: "order.customer.name",
|
|
66
|
+
notContains: ["FROM", "GROUP BY"]
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "Test Count(*) Handling",
|
|
71
|
+
description: "Test proper counting of identifiers",
|
|
72
|
+
prompt: A("How many customers are there by country?", P),
|
|
73
|
+
expectedResponse: {
|
|
74
|
+
contains: ["order.customer.id"],
|
|
75
|
+
mustIdentify: "order.customer.nation.name",
|
|
76
|
+
notContains: ["FROM", "GROUP BY", "*"]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
], de = q({
|
|
80
|
+
name: "LLMValidationView",
|
|
81
|
+
props: {
|
|
82
|
+
initialProvider: {
|
|
83
|
+
type: String,
|
|
84
|
+
default: ""
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
setup(e) {
|
|
88
|
+
const s = R("llmConnectionStore"), r = y([]), I = y(""), i = y(!1), L = y(!1), t = y(""), c = y(null), f = y([]), S = y([]), C = 5, $ = 4, o = y(
|
|
89
|
+
e.initialProvider || (Object.keys(s.connections).length > 0 ? Object.keys(s.connections)[0] : "")
|
|
90
|
+
), g = y(le), E = D(() => Object.keys(s.connections)), k = D(() => !!o.value && s.getConnection(o.value) !== null);
|
|
91
|
+
M(r, () => {
|
|
92
|
+
X(() => {
|
|
93
|
+
c.value && (c.value.scrollTop = c.value.scrollHeight);
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
const W = (p) => p ? s.getConnectionStatus(p) : "disconnected", Y = (p, l) => {
|
|
97
|
+
const n = { passed: !0 };
|
|
98
|
+
let v = oe(p);
|
|
99
|
+
if (l.contains) {
|
|
100
|
+
for (const m of l.contains)
|
|
101
|
+
if (!v.toLowerCase().includes(m.toLowerCase()))
|
|
102
|
+
return n.passed = !1, n.reason = `Response missing expected phrase: "${m}"`, n;
|
|
103
|
+
}
|
|
104
|
+
if (l.notContains)
|
|
105
|
+
for (const m of l.notContains) {
|
|
106
|
+
const w = v.split(`
|
|
107
|
+
`);
|
|
108
|
+
for (const _ of w)
|
|
109
|
+
if (!_.trim().startsWith("#") && _.toLowerCase().includes(m.toLowerCase()))
|
|
110
|
+
return n.passed = !1, n.reason = `Response contains forbidden phrase: "${m}"`, n;
|
|
111
|
+
}
|
|
112
|
+
if (l.mustIdentify) {
|
|
113
|
+
const m = v.toLowerCase(), w = l.mustIdentify.toLowerCase();
|
|
114
|
+
if (!m.includes(w) && !H(m, w))
|
|
115
|
+
return n.passed = !1, n.reason = `Response did not identify the issue: "${l.mustIdentify}"`, n;
|
|
116
|
+
}
|
|
117
|
+
return n;
|
|
118
|
+
}, H = (p, l) => {
|
|
119
|
+
const n = {
|
|
120
|
+
"missing index": [
|
|
121
|
+
"no index",
|
|
122
|
+
"should create index",
|
|
123
|
+
"index would improve",
|
|
124
|
+
"needs an index"
|
|
125
|
+
]
|
|
126
|
+
};
|
|
127
|
+
return l in n ? n[l].some((v) => p.includes(v)) : !1;
|
|
128
|
+
}, z = async () => {
|
|
129
|
+
if (!I.value.trim() || i.value || !o.value) return;
|
|
130
|
+
r.value.push({
|
|
131
|
+
role: "user",
|
|
132
|
+
content: I.value
|
|
133
|
+
});
|
|
134
|
+
const p = I.value;
|
|
135
|
+
I.value = "", i.value = !0, t.value = "";
|
|
136
|
+
try {
|
|
137
|
+
const l = {
|
|
138
|
+
prompt: p
|
|
139
|
+
}, n = await s.generateCompletion(
|
|
140
|
+
o.value,
|
|
141
|
+
l
|
|
142
|
+
);
|
|
143
|
+
r.value.push({
|
|
144
|
+
role: "assistant",
|
|
145
|
+
content: n.text,
|
|
146
|
+
modelInfo: {
|
|
147
|
+
totalTokens: n.usage.totalTokens
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
} catch (l) {
|
|
151
|
+
t.value = l instanceof Error ? l.message : "An unknown error occurred";
|
|
152
|
+
} finally {
|
|
153
|
+
i.value = !1;
|
|
154
|
+
}
|
|
155
|
+
}, K = async (p) => {
|
|
156
|
+
const l = g.value[p];
|
|
157
|
+
try {
|
|
158
|
+
const n = {
|
|
159
|
+
prompt: l.prompt
|
|
160
|
+
}, v = await s.generateCompletion(
|
|
161
|
+
o.value,
|
|
162
|
+
n
|
|
163
|
+
);
|
|
164
|
+
return Y(v.text, l.expectedResponse);
|
|
165
|
+
} catch (n) {
|
|
166
|
+
return {
|
|
167
|
+
passed: !1,
|
|
168
|
+
reason: `Error: ${n instanceof Error ? n.message : "An unknown error occurred"}`
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
}, F = async (p) => {
|
|
172
|
+
if (i.value || !o.value) return;
|
|
173
|
+
const l = g.value[p];
|
|
174
|
+
r.value = [], r.value.push({
|
|
175
|
+
role: "user",
|
|
176
|
+
content: `RUNNING TEST: ${l.name} (${C} iterations)`
|
|
177
|
+
}), i.value = !0, t.value = "";
|
|
178
|
+
try {
|
|
179
|
+
const n = {
|
|
180
|
+
passed: 0,
|
|
181
|
+
total: C,
|
|
182
|
+
runs: []
|
|
183
|
+
};
|
|
184
|
+
r.value.push({
|
|
185
|
+
role: "assistant",
|
|
186
|
+
content: `Running ${C} iterations of test "${l.name}"...`
|
|
187
|
+
});
|
|
188
|
+
for (let m = 0; m < C; m++) {
|
|
189
|
+
m > 0 && (r.value[r.value.length - 1].content += `
|
|
190
|
+
Running iteration ${m + 1}/${C}...`);
|
|
191
|
+
const w = await K(p);
|
|
192
|
+
n.runs.push(w), w.passed && n.passed++;
|
|
193
|
+
}
|
|
194
|
+
const v = {
|
|
195
|
+
passed: n.passed >= $,
|
|
196
|
+
reason: n.passed >= $ ? void 0 : `Only ${n.passed}/${C} runs passed (need at least ${$})`
|
|
197
|
+
};
|
|
198
|
+
f.value[p] = v, S.value[p] = n, r.value[r.value.length - 1].content = `Test "${l.name}" completed: ${n.passed}/${C} runs passed.
|
|
199
|
+
|
|
200
|
+
${v.passed ? "✓ OVERALL PASSED" : "✗ OVERALL FAILED"}
|
|
201
|
+
|
|
202
|
+
Iteration Results:
|
|
203
|
+
` + n.runs.map(
|
|
204
|
+
(m, w) => `Iteration ${w + 1}: ${m.passed ? "✓ PASSED" : "✗ FAILED"}${m.reason ? " - " + m.reason : ""}`
|
|
205
|
+
).join(`
|
|
206
|
+
`), r.value[r.value.length - 1].testResult = v;
|
|
207
|
+
} catch (n) {
|
|
208
|
+
t.value = n instanceof Error ? n.message : "An unknown error occurred", f.value[p] = {
|
|
209
|
+
passed: !1,
|
|
210
|
+
reason: `Error: ${t.value}`
|
|
211
|
+
};
|
|
212
|
+
} finally {
|
|
213
|
+
i.value = !1;
|
|
214
|
+
}
|
|
215
|
+
}, J = async () => {
|
|
216
|
+
if (!(i.value || !o.value)) {
|
|
217
|
+
L.value = !0, r.value = [], r.value.push({
|
|
218
|
+
role: "user",
|
|
219
|
+
content: "RUNNING ALL TESTS IN SEQUENCE (5 iterations each)"
|
|
220
|
+
});
|
|
221
|
+
try {
|
|
222
|
+
for (let n = 0; n < g.value.length; n++)
|
|
223
|
+
await F(n), n < g.value.length - 1 && await new Promise((v) => setTimeout(v, 500));
|
|
224
|
+
const p = Object.values(f.value).filter((n) => n == null ? void 0 : n.passed).length, l = Object.values(f.value).filter(
|
|
225
|
+
(n) => n && !n.passed
|
|
226
|
+
).length;
|
|
227
|
+
r.value.push({
|
|
228
|
+
role: "user",
|
|
229
|
+
content: `ALL TESTS COMPLETED: ${p} passed, ${l} failed`
|
|
230
|
+
});
|
|
231
|
+
} catch (p) {
|
|
232
|
+
t.value = p instanceof Error ? p.message : "An unknown error occurred";
|
|
233
|
+
} finally {
|
|
234
|
+
L.value = !1;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
return Z(() => {
|
|
239
|
+
E.value.length === 0 && (t.value = "No LLM connections found. Please add connections in the sidebar.");
|
|
240
|
+
}), {
|
|
241
|
+
messages: r,
|
|
242
|
+
userInput: I,
|
|
243
|
+
isLoading: i,
|
|
244
|
+
isRunningAll: L,
|
|
245
|
+
error: t,
|
|
246
|
+
selectedProvider: o,
|
|
247
|
+
availableProviders: E,
|
|
248
|
+
isProviderSelected: k,
|
|
249
|
+
messagesContainer: c,
|
|
250
|
+
getConnectionStatus: W,
|
|
251
|
+
sendPrompt: z,
|
|
252
|
+
scenarios: g,
|
|
253
|
+
runScenario: F,
|
|
254
|
+
scenarioResults: f,
|
|
255
|
+
testRunDetails: S,
|
|
256
|
+
runAllScenarios: J
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
}), ce = { class: "debug-container" }, ue = { class: "llm-chat-container" }, pe = { class: "connection-controls" }, me = { class: "provider-selector" }, ve = ["value"], he = { key: 0 }, fe = {
|
|
260
|
+
key: 0,
|
|
261
|
+
class: "error-message"
|
|
262
|
+
}, ye = {
|
|
263
|
+
class: "chat-messages",
|
|
264
|
+
ref: "messagesContainer"
|
|
265
|
+
}, ge = { class: "message-header" }, Ce = {
|
|
266
|
+
key: 0,
|
|
267
|
+
class: "model-info"
|
|
268
|
+
}, be = { class: "message-content" }, Ie = {
|
|
269
|
+
key: 0,
|
|
270
|
+
class: "failure-reason"
|
|
271
|
+
}, Se = { class: "input-container" }, we = ["disabled"], Le = ["disabled"], Re = { class: "scenarios-container" }, Te = { class: "section-header" }, $e = { class: "header-controls" }, ke = ["disabled"], Ae = {
|
|
272
|
+
key: 0,
|
|
273
|
+
class: "pass-indicator text-small"
|
|
274
|
+
}, Pe = { class: "scenarios-list" }, Me = ["onClick"], Ee = { class: "scenario-name" }, Ne = { class: "scenario-description" }, _e = {
|
|
275
|
+
key: 0,
|
|
276
|
+
class: "scenario-result-indicator"
|
|
277
|
+
}, Ue = {
|
|
278
|
+
key: 0,
|
|
279
|
+
class: "pass-indicator"
|
|
280
|
+
}, Ve = {
|
|
281
|
+
key: 1,
|
|
282
|
+
class: "fail-indicator"
|
|
283
|
+
}, Oe = {
|
|
284
|
+
key: 1,
|
|
285
|
+
class: "test-run-details"
|
|
286
|
+
};
|
|
287
|
+
function Fe(e, s, r, I, i, L) {
|
|
288
|
+
return d(), u("div", ce, [
|
|
289
|
+
a("div", ue, [
|
|
290
|
+
s[6] || (s[6] = a("div", { class: "section-header" }, [
|
|
291
|
+
N(" LLM Validation "),
|
|
292
|
+
a("span", { class: "text-faint text-small" }, "Test that your LLM connection will deliver acceptable experience.")
|
|
293
|
+
], -1)),
|
|
294
|
+
a("div", pe, [
|
|
295
|
+
a("div", me, [
|
|
296
|
+
s[5] || (s[5] = a("label", { for: "provider-select" }, "Provider:", -1)),
|
|
297
|
+
B(a("select", {
|
|
298
|
+
id: "provider-select",
|
|
299
|
+
"onUpdate:modelValue": s[0] || (s[0] = (t) => e.selectedProvider = t)
|
|
300
|
+
}, [
|
|
301
|
+
(d(!0), u(U, null, V(e.availableProviders, (t) => (d(), u("option", {
|
|
302
|
+
key: t,
|
|
303
|
+
value: t
|
|
304
|
+
}, [
|
|
305
|
+
N(h(t) + " ", 1),
|
|
306
|
+
e.getConnectionStatus(t) ? (d(), u("span", he, " (" + h(e.getConnectionStatus(t)) + ") ", 1)) : b("", !0)
|
|
307
|
+
], 8, ve))), 128))
|
|
308
|
+
], 512), [
|
|
309
|
+
[x, e.selectedProvider]
|
|
310
|
+
]),
|
|
311
|
+
a("span", {
|
|
312
|
+
class: T(["status-indicator", e.getConnectionStatus(e.selectedProvider)])
|
|
313
|
+
}, null, 2)
|
|
314
|
+
])
|
|
315
|
+
]),
|
|
316
|
+
e.error ? (d(), u("div", fe, h(e.error), 1)) : b("", !0),
|
|
317
|
+
a("div", ye, [
|
|
318
|
+
(d(!0), u(U, null, V(e.messages, (t, c) => (d(), u("div", {
|
|
319
|
+
key: c,
|
|
320
|
+
class: T(["message", t.role])
|
|
321
|
+
}, [
|
|
322
|
+
a("div", ge, [
|
|
323
|
+
a("strong", null, h(t.role === "user" ? "You" : "AI"), 1),
|
|
324
|
+
t.role === "assistant" && t.modelInfo ? (d(), u("span", Ce, h(t.modelInfo.totalTokens) + " tokens ", 1)) : b("", !0)
|
|
325
|
+
]),
|
|
326
|
+
a("div", be, [
|
|
327
|
+
a("pre", null, h(t.content), 1)
|
|
328
|
+
]),
|
|
329
|
+
t.testResult ? (d(), u("div", {
|
|
330
|
+
key: 0,
|
|
331
|
+
class: T(["test-result", t.testResult.passed ? "passed" : "failed"])
|
|
332
|
+
}, [
|
|
333
|
+
N(" Test: " + h(t.testResult.passed ? "PASSED ✓" : "FAILED ✗") + " ", 1),
|
|
334
|
+
t.testResult.passed ? b("", !0) : (d(), u("div", Ie, h(t.testResult.reason), 1))
|
|
335
|
+
], 2)) : b("", !0)
|
|
336
|
+
], 2))), 128))
|
|
337
|
+
], 512),
|
|
338
|
+
a("div", Se, [
|
|
339
|
+
B(a("textarea", {
|
|
340
|
+
"onUpdate:modelValue": s[1] || (s[1] = (t) => e.userInput = t),
|
|
341
|
+
onKeydown: s[2] || (s[2] = ee(te((...t) => e.sendPrompt && e.sendPrompt(...t), ["ctrl"]), ["enter"])),
|
|
342
|
+
placeholder: "Type your message here... (Ctrl+Enter to send)",
|
|
343
|
+
disabled: e.isLoading || !e.isProviderSelected
|
|
344
|
+
}, " ", 40, we), [
|
|
345
|
+
[ne, e.userInput]
|
|
346
|
+
]),
|
|
347
|
+
a("button", {
|
|
348
|
+
onClick: s[3] || (s[3] = (...t) => e.sendPrompt && e.sendPrompt(...t)),
|
|
349
|
+
disabled: e.isLoading || !e.userInput.trim() || !e.isProviderSelected
|
|
350
|
+
}, h(e.isLoading ? "Sending..." : "Send"), 9, Le)
|
|
351
|
+
])
|
|
352
|
+
]),
|
|
353
|
+
a("div", Re, [
|
|
354
|
+
a("div", Te, [
|
|
355
|
+
s[7] || (s[7] = N(" Test Scenarios ", -1)),
|
|
356
|
+
a("div", $e, [
|
|
357
|
+
a("button", {
|
|
358
|
+
onClick: s[4] || (s[4] = (...t) => e.runAllScenarios && e.runAllScenarios(...t)),
|
|
359
|
+
disabled: e.isLoading || !e.isProviderSelected,
|
|
360
|
+
class: "run-all-button"
|
|
361
|
+
}, h(e.isRunningAll ? "Running..." : "Run All Tests"), 9, ke),
|
|
362
|
+
Object.values(e.scenarioResults).length == e.scenarios.length && Object.values(e.scenarioResults).every((t) => t == null ? void 0 : t.passed) ? (d(), u("span", Ae, "✓ All passed, LLM integration should meet expectations!")) : b("", !0)
|
|
363
|
+
])
|
|
364
|
+
]),
|
|
365
|
+
a("div", Pe, [
|
|
366
|
+
(d(!0), u(U, null, V(e.scenarios, (t, c) => {
|
|
367
|
+
var f;
|
|
368
|
+
return d(), u("div", {
|
|
369
|
+
key: c,
|
|
370
|
+
class: T(["scenario-item", { passed: (f = e.scenarioResults[c]) == null ? void 0 : f.passed }]),
|
|
371
|
+
onClick: (S) => e.runScenario(c)
|
|
372
|
+
}, [
|
|
373
|
+
a("div", Ee, h(t.name), 1),
|
|
374
|
+
a("div", Ne, h(t.description), 1),
|
|
375
|
+
e.scenarioResults[c] ? (d(), u("div", _e, [
|
|
376
|
+
e.scenarioResults[c].passed ? (d(), u("span", Ue, "✓")) : (d(), u("span", Ve, "✗"))
|
|
377
|
+
])) : b("", !0),
|
|
378
|
+
e.testRunDetails[c] ? (d(), u("div", Oe, h(e.testRunDetails[c].passed) + "/5 runs passed ", 1)) : b("", !0)
|
|
379
|
+
], 10, Me);
|
|
380
|
+
}), 128))
|
|
381
|
+
])
|
|
382
|
+
])
|
|
383
|
+
]);
|
|
384
|
+
}
|
|
385
|
+
const De = /* @__PURE__ */ Q(de, [["render", Fe], ["__scopeId", "data-v-b89d0ed5"]]), Be = q({
|
|
386
|
+
name: "LLMChatDebugComponent",
|
|
387
|
+
components: {
|
|
388
|
+
LLMChatSplitView: ie,
|
|
389
|
+
LLMValidationView: De,
|
|
390
|
+
DashboardImportSelector: ae
|
|
391
|
+
},
|
|
392
|
+
props: {
|
|
393
|
+
initialProvider: {
|
|
394
|
+
type: String,
|
|
395
|
+
default: ""
|
|
396
|
+
},
|
|
397
|
+
initialModel: {
|
|
398
|
+
type: String,
|
|
399
|
+
default: ""
|
|
400
|
+
},
|
|
401
|
+
initialTab: {
|
|
402
|
+
type: String,
|
|
403
|
+
default: ""
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
setup(e) {
|
|
407
|
+
const s = R("llmConnectionStore"), r = R("connectionStore"), I = R("queryExecutionService"), i = R("chatStore"), L = R("editorStore"), t = R("navigationStore"), c = y(
|
|
408
|
+
e.initialTab === "chat" || e.initialTab === "validation" ? e.initialTab : "chat"
|
|
409
|
+
), f = y(null), S = re({
|
|
410
|
+
llmConnectionStore: s,
|
|
411
|
+
connectionStore: r,
|
|
412
|
+
queryExecutionService: I,
|
|
413
|
+
chatStore: i,
|
|
414
|
+
editorStore: L,
|
|
415
|
+
navigationStore: t
|
|
416
|
+
});
|
|
417
|
+
M(
|
|
418
|
+
() => e.initialTab,
|
|
419
|
+
(o) => {
|
|
420
|
+
(o === "chat" || o === "validation") && (c.value = o);
|
|
421
|
+
}
|
|
422
|
+
);
|
|
423
|
+
const C = async () => {
|
|
424
|
+
var g;
|
|
425
|
+
const o = ((g = i == null ? void 0 : i.activeChat) == null ? void 0 : g.llmConnectionName) || s.activeConnection;
|
|
426
|
+
if (o && s.getConnectionStatus(o) === "disabled")
|
|
427
|
+
try {
|
|
428
|
+
await s.resetConnection(o);
|
|
429
|
+
} catch (k) {
|
|
430
|
+
console.error("Failed to auto-connect LLM:", k);
|
|
431
|
+
}
|
|
432
|
+
}, $ = async () => {
|
|
433
|
+
if (!r || !(i != null && i.activeChat)) return;
|
|
434
|
+
const o = i.activeChat.dataConnectionName;
|
|
435
|
+
if (!o) return;
|
|
436
|
+
const g = r.connections[o];
|
|
437
|
+
if (!g) return;
|
|
438
|
+
if (r.connectionStateToStatus(g) === "disabled")
|
|
439
|
+
try {
|
|
440
|
+
await r.resetConnection(o);
|
|
441
|
+
} catch (k) {
|
|
442
|
+
console.error("Failed to auto-connect DB:", k);
|
|
443
|
+
}
|
|
444
|
+
};
|
|
445
|
+
return M(
|
|
446
|
+
() => c.value,
|
|
447
|
+
(o) => {
|
|
448
|
+
o === "chat" && (C(), $());
|
|
449
|
+
},
|
|
450
|
+
{ immediate: !0 }
|
|
451
|
+
), i && (M(
|
|
452
|
+
() => {
|
|
453
|
+
var o;
|
|
454
|
+
return (o = i == null ? void 0 : i.activeChat) == null ? void 0 : o.dataConnectionName;
|
|
455
|
+
},
|
|
456
|
+
(o) => {
|
|
457
|
+
c.value === "chat" && o && $();
|
|
458
|
+
}
|
|
459
|
+
), M(
|
|
460
|
+
() => {
|
|
461
|
+
var o;
|
|
462
|
+
return (o = i == null ? void 0 : i.activeChat) == null ? void 0 : o.llmConnectionName;
|
|
463
|
+
},
|
|
464
|
+
(o) => {
|
|
465
|
+
c.value === "chat" && o && C();
|
|
466
|
+
}
|
|
467
|
+
)), {
|
|
468
|
+
activeView: c,
|
|
469
|
+
chatSplitView: f,
|
|
470
|
+
// Spread all chat composable returns
|
|
471
|
+
...S
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
}), je = { class: "llm-view-container" }, Ge = { class: "view-tabs" }, qe = {
|
|
475
|
+
key: 0,
|
|
476
|
+
class: "chat-view"
|
|
477
|
+
}, Qe = ["disabled"], We = {
|
|
478
|
+
key: 0,
|
|
479
|
+
class: "mdi mdi-auto-fix"
|
|
480
|
+
}, Ye = {
|
|
481
|
+
key: 1,
|
|
482
|
+
class: "spinner"
|
|
483
|
+
}, He = { class: "chat-header-controls" }, ze = {
|
|
484
|
+
key: 1,
|
|
485
|
+
class: "connection-info"
|
|
486
|
+
};
|
|
487
|
+
function Ke(e, s, r, I, i, L) {
|
|
488
|
+
const t = O("dashboard-import-selector"), c = O("l-l-m-chat-split-view"), f = O("l-l-m-validation-view");
|
|
489
|
+
return d(), u("div", je, [
|
|
490
|
+
a("div", Ge, [
|
|
491
|
+
a("button", {
|
|
492
|
+
class: T(["view-tab", { active: e.activeView === "chat" }]),
|
|
493
|
+
onClick: s[0] || (s[0] = (S) => e.activeView = "chat"),
|
|
494
|
+
"data-testid": "llm-view-tab-chat"
|
|
495
|
+
}, " Chat ", 2),
|
|
496
|
+
a("button", {
|
|
497
|
+
class: T(["view-tab", { active: e.activeView === "validation" }]),
|
|
498
|
+
onClick: s[1] || (s[1] = (S) => e.activeView = "validation"),
|
|
499
|
+
"data-testid": "llm-view-tab-validation"
|
|
500
|
+
}, " Validation Tests ", 2)
|
|
501
|
+
]),
|
|
502
|
+
e.activeView === "chat" ? (d(), u("div", qe, [
|
|
503
|
+
se(c, {
|
|
504
|
+
ref: "chatSplitView",
|
|
505
|
+
title: e.activeChatTitle,
|
|
506
|
+
editableTitle: !0,
|
|
507
|
+
placeholder: "Ask about your data... (Enter to send)",
|
|
508
|
+
systemPrompt: e.chatSystemPrompt,
|
|
509
|
+
connectionInfo: e.chatConnectionInfo,
|
|
510
|
+
availableImports: e.availableImportsForChat,
|
|
511
|
+
activeImports: e.activeImportsForChat,
|
|
512
|
+
symbols: e.chatSymbols,
|
|
513
|
+
initialMessages: e.activeChatMessages,
|
|
514
|
+
initialArtifacts: e.activeChatArtifacts,
|
|
515
|
+
initialActiveArtifactIndex: e.activeChatArtifactIndex,
|
|
516
|
+
externalLoading: e.isChatLoading,
|
|
517
|
+
activeToolName: e.activeToolName,
|
|
518
|
+
onSendMessage: e.handleChatMessageWithTools,
|
|
519
|
+
"onUpdate:messages": e.handleMessagesUpdate,
|
|
520
|
+
"onUpdate:artifacts": e.handleArtifactsUpdate,
|
|
521
|
+
"onUpdate:activeArtifactIndex": e.handleActiveArtifactUpdate,
|
|
522
|
+
onImportChange: e.handleImportChange,
|
|
523
|
+
onTitleUpdate: e.handleTitleUpdate
|
|
524
|
+
}, {
|
|
525
|
+
"header-prefix": G(() => [
|
|
526
|
+
a("button", {
|
|
527
|
+
class: T(["auto-name-btn", { "is-loading": e.isGeneratingName }]),
|
|
528
|
+
onClick: s[2] || (s[2] = (...S) => e.generateChatName && e.generateChatName(...S)),
|
|
529
|
+
disabled: e.isGeneratingName || e.activeChatMessages.length === 0,
|
|
530
|
+
title: "Auto-generate chat name",
|
|
531
|
+
"data-testid": "auto-name-chat-btn"
|
|
532
|
+
}, [
|
|
533
|
+
e.isGeneratingName ? (d(), u("span", Ye)) : (d(), u("i", We))
|
|
534
|
+
], 10, Qe)
|
|
535
|
+
]),
|
|
536
|
+
"header-actions": G(() => [
|
|
537
|
+
a("div", He, [
|
|
538
|
+
e.availableImportsForChat.length > 0 ? (d(), j(t, {
|
|
539
|
+
key: 0,
|
|
540
|
+
"available-imports": e.availableImportsForChat,
|
|
541
|
+
"active-imports": e.activeImportsForChat,
|
|
542
|
+
"onUpdate:imports": e.handleImportChange
|
|
543
|
+
}, null, 8, ["available-imports", "active-imports", "onUpdate:imports"])) : b("", !0),
|
|
544
|
+
e.chatConnectionInfo ? (d(), u("span", ze, h(e.chatConnectionInfo), 1)) : b("", !0)
|
|
545
|
+
])
|
|
546
|
+
]),
|
|
547
|
+
_: 1
|
|
548
|
+
}, 8, ["title", "systemPrompt", "connectionInfo", "availableImports", "activeImports", "symbols", "initialMessages", "initialArtifacts", "initialActiveArtifactIndex", "externalLoading", "activeToolName", "onSendMessage", "onUpdate:messages", "onUpdate:artifacts", "onUpdate:activeArtifactIndex", "onImportChange", "onTitleUpdate"])
|
|
549
|
+
])) : (d(), j(f, {
|
|
550
|
+
key: 1,
|
|
551
|
+
initialProvider: e.initialProvider
|
|
552
|
+
}, null, 8, ["initialProvider"]))
|
|
553
|
+
]);
|
|
554
|
+
}
|
|
555
|
+
const Ze = /* @__PURE__ */ Q(Be, [["render", Ke], ["__scopeId", "data-v-1e3d990a"]]);
|
|
556
|
+
export {
|
|
557
|
+
Ze as default
|
|
558
|
+
};
|