@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 @@
|
|
|
1
|
+
{"version":3,"file":"TutorialPrompt.vue.d.ts","sourceRoot":"","sources":["../../../components/tutorial/TutorialPrompt.vue"],"names":[],"mappings":"AAwEA;AA6WA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAElE,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,QAAQ,IAAI,IAAI,CAAA;CACjB;;aAwByB,cAAc,EAAE;aAAW,MAAM;cAAY,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAgClD,IAAI;sBAMJ,IAAI;2BAMC,IAAI;2BAYJ,IAAI;gCAMG,MAAM,KAAG,IAAI;;8BAxF9B,MAAM,KAAG,IAAI;wBACrB,IAAI;;8BADI,MAAM,KAAG,IAAI;wBACrB,IAAI;;;aAyBQ,cAAc,EAAE;aAAW,MAAM;cAAY,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6TjB,wBAgHC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
profile: {
|
|
3
|
+
name: string;
|
|
4
|
+
email: null;
|
|
5
|
+
organization: null;
|
|
6
|
+
};
|
|
7
|
+
editProfile: () => void;
|
|
8
|
+
trilogyIcon: string;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=UserProfile.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserProfile.vue.d.ts","sourceRoot":"","sources":["../../../components/user/UserProfile.vue"],"names":[],"mappings":"AAgBA;;;;;;;;;;AA8EA,wBAuBC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
settings: import('vue').Ref<import('../../stores/userSettingsStore').UserSettings, import('../../stores/userSettingsStore').UserSettings>;
|
|
3
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
4
|
+
hasChanges: import('vue').Ref<boolean, boolean>;
|
|
5
|
+
clearDismissedTips: () => Promise<void>;
|
|
6
|
+
saveSettings: () => Promise<void>;
|
|
7
|
+
resetToDefaults: () => void;
|
|
8
|
+
formatLabel: (key: string) => string;
|
|
9
|
+
toggleTheme: () => void;
|
|
10
|
+
onSettingChange: () => void;
|
|
11
|
+
onThemeChange: () => void;
|
|
12
|
+
userSettingsStore: import('pinia').Store<"userSettings", {
|
|
13
|
+
settings: import('../../stores/userSettingsStore').UserSettings;
|
|
14
|
+
defaults: import('../../stores/userSettingsStore').UserSettings;
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
hasChanges: boolean;
|
|
17
|
+
hasLoaded: boolean;
|
|
18
|
+
}, {
|
|
19
|
+
getSettings: (state: {
|
|
20
|
+
settings: {
|
|
21
|
+
[x: string]: string | number | boolean | string[] | null | undefined;
|
|
22
|
+
theme: "dark" | "light" | "";
|
|
23
|
+
trilogyResolver: string;
|
|
24
|
+
telemetryEnabled: boolean | null;
|
|
25
|
+
tipsRead: string[];
|
|
26
|
+
skipAllTips: boolean;
|
|
27
|
+
};
|
|
28
|
+
defaults: {
|
|
29
|
+
[x: string]: string | number | boolean | string[] | null | undefined;
|
|
30
|
+
theme: "dark" | "light" | "";
|
|
31
|
+
trilogyResolver: string;
|
|
32
|
+
telemetryEnabled: boolean | null;
|
|
33
|
+
tipsRead: string[];
|
|
34
|
+
skipAllTips: boolean;
|
|
35
|
+
};
|
|
36
|
+
isLoading: boolean;
|
|
37
|
+
hasChanges: boolean;
|
|
38
|
+
hasLoaded: boolean;
|
|
39
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
40
|
+
settings: import('../../stores/userSettingsStore').UserSettings;
|
|
41
|
+
defaults: import('../../stores/userSettingsStore').UserSettings;
|
|
42
|
+
isLoading: boolean;
|
|
43
|
+
hasChanges: boolean;
|
|
44
|
+
hasLoaded: boolean;
|
|
45
|
+
}>) => {
|
|
46
|
+
[x: string]: string | number | boolean | string[] | null | undefined;
|
|
47
|
+
theme: "dark" | "light" | "";
|
|
48
|
+
trilogyResolver: string;
|
|
49
|
+
telemetryEnabled: boolean | null;
|
|
50
|
+
tipsRead: string[];
|
|
51
|
+
skipAllTips: boolean;
|
|
52
|
+
};
|
|
53
|
+
getDefaults: (state: {
|
|
54
|
+
settings: {
|
|
55
|
+
[x: string]: string | number | boolean | string[] | null | undefined;
|
|
56
|
+
theme: "dark" | "light" | "";
|
|
57
|
+
trilogyResolver: string;
|
|
58
|
+
telemetryEnabled: boolean | null;
|
|
59
|
+
tipsRead: string[];
|
|
60
|
+
skipAllTips: boolean;
|
|
61
|
+
};
|
|
62
|
+
defaults: {
|
|
63
|
+
[x: string]: string | number | boolean | string[] | null | undefined;
|
|
64
|
+
theme: "dark" | "light" | "";
|
|
65
|
+
trilogyResolver: string;
|
|
66
|
+
telemetryEnabled: boolean | null;
|
|
67
|
+
tipsRead: string[];
|
|
68
|
+
skipAllTips: boolean;
|
|
69
|
+
};
|
|
70
|
+
isLoading: boolean;
|
|
71
|
+
hasChanges: boolean;
|
|
72
|
+
hasLoaded: boolean;
|
|
73
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
74
|
+
settings: import('../../stores/userSettingsStore').UserSettings;
|
|
75
|
+
defaults: import('../../stores/userSettingsStore').UserSettings;
|
|
76
|
+
isLoading: boolean;
|
|
77
|
+
hasChanges: boolean;
|
|
78
|
+
hasLoaded: boolean;
|
|
79
|
+
}>) => {
|
|
80
|
+
[x: string]: string | number | boolean | string[] | null | undefined;
|
|
81
|
+
theme: "dark" | "light" | "";
|
|
82
|
+
trilogyResolver: string;
|
|
83
|
+
telemetryEnabled: boolean | null;
|
|
84
|
+
tipsRead: string[];
|
|
85
|
+
skipAllTips: boolean;
|
|
86
|
+
};
|
|
87
|
+
hasUnsavedChanges: (state: {
|
|
88
|
+
settings: {
|
|
89
|
+
[x: string]: string | number | boolean | string[] | null | undefined;
|
|
90
|
+
theme: "dark" | "light" | "";
|
|
91
|
+
trilogyResolver: string;
|
|
92
|
+
telemetryEnabled: boolean | null;
|
|
93
|
+
tipsRead: string[];
|
|
94
|
+
skipAllTips: boolean;
|
|
95
|
+
};
|
|
96
|
+
defaults: {
|
|
97
|
+
[x: string]: string | number | boolean | string[] | null | undefined;
|
|
98
|
+
theme: "dark" | "light" | "";
|
|
99
|
+
trilogyResolver: string;
|
|
100
|
+
telemetryEnabled: boolean | null;
|
|
101
|
+
tipsRead: string[];
|
|
102
|
+
skipAllTips: boolean;
|
|
103
|
+
};
|
|
104
|
+
isLoading: boolean;
|
|
105
|
+
hasChanges: boolean;
|
|
106
|
+
hasLoaded: boolean;
|
|
107
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
108
|
+
settings: import('../../stores/userSettingsStore').UserSettings;
|
|
109
|
+
defaults: import('../../stores/userSettingsStore').UserSettings;
|
|
110
|
+
isLoading: boolean;
|
|
111
|
+
hasChanges: boolean;
|
|
112
|
+
hasLoaded: boolean;
|
|
113
|
+
}>) => boolean;
|
|
114
|
+
}, {
|
|
115
|
+
updateSetting<K extends keyof import('../../stores/userSettingsStore').UserSettings>(key: K, value: import('../../stores/userSettingsStore').UserSettings[K]): void;
|
|
116
|
+
getUnreadTips(tips: import('../../data/tips').ModalItem[]): import('../../data/tips').ModalItem[];
|
|
117
|
+
clearDismissedTips(): void;
|
|
118
|
+
markTipRead(tipId: string): void;
|
|
119
|
+
clearReadTips(): void;
|
|
120
|
+
toggleTheme(): void;
|
|
121
|
+
setHasChanges(value: boolean): void;
|
|
122
|
+
updateSettings(newSettings: Partial<import('../../stores/userSettingsStore').UserSettings>): void;
|
|
123
|
+
resetToDefaults(): void;
|
|
124
|
+
saveSettings(): Promise<boolean>;
|
|
125
|
+
loadSettings(): void;
|
|
126
|
+
}>;
|
|
127
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
128
|
+
export default _default;
|
|
129
|
+
//# sourceMappingURL=UserSettings.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserSettings.vue.d.ts","sourceRoot":"","sources":["../../../components/user/UserSettings.vue"],"names":[],"mappings":"AAwCA;;;;;;;;uBAqM8B,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA5CpC,wBAmEC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
onStartResize: (e: MouseEvent, direction: string) => void;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=ResizeHandles.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResizeHandles.vue.d.ts","sourceRoot":"","sources":["../../composables/ResizeHandles.vue"],"names":[],"mappings":"AAgGA,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC1D,CAAC;;AAmFF,wBAOG"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
import { LLMConnectionStoreType } from '../stores/llmStore';
|
|
3
|
+
import { ConnectionStoreType } from '../stores/connectionStore';
|
|
4
|
+
import { default as QueryExecutionService } from '../stores/queryExecutionService';
|
|
5
|
+
import { ChatStoreType } from '../stores/chatStore';
|
|
6
|
+
import { EditorStoreType } from '../stores/editorStore';
|
|
7
|
+
import { NavigationStore } from '../stores/useScreenNavigation';
|
|
8
|
+
import { ChatMessage, ChatArtifact, ChatImport } from '../chats/chat';
|
|
9
|
+
import { ModelConceptInput } from '../llm/data/models';
|
|
10
|
+
import { CompletionItem } from '../stores/resolver';
|
|
11
|
+
export interface UseChatWithToolsOptions {
|
|
12
|
+
llmConnectionStore: LLMConnectionStoreType;
|
|
13
|
+
connectionStore: ConnectionStoreType | null;
|
|
14
|
+
queryExecutionService: QueryExecutionService | null;
|
|
15
|
+
editorStore: EditorStoreType | null;
|
|
16
|
+
/**
|
|
17
|
+
* Optional chat store for persistent chats. If not provided, chat state
|
|
18
|
+
* is managed locally (throwaway/embedded chat mode).
|
|
19
|
+
*/
|
|
20
|
+
chatStore?: ChatStoreType | null;
|
|
21
|
+
/**
|
|
22
|
+
* Data connection name to use. If chatStore is provided, this is read from
|
|
23
|
+
* the active chat. For standalone mode, pass this directly.
|
|
24
|
+
*/
|
|
25
|
+
dataConnectionName?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Initial chat title for standalone mode. Ignored if chatStore is provided.
|
|
28
|
+
*/
|
|
29
|
+
initialTitle?: string;
|
|
30
|
+
/** Optional - only needed if you want tab name updates in navigation */
|
|
31
|
+
navigationStore?: NavigationStore | null;
|
|
32
|
+
/** Optional callback when title is updated (alternative to navigationStore) */
|
|
33
|
+
onTitleUpdate?: (newTitle: string, chatId: string) => void;
|
|
34
|
+
}
|
|
35
|
+
export interface UseChatWithToolsReturn {
|
|
36
|
+
isChatLoading: ComputedRef<boolean>;
|
|
37
|
+
isGeneratingName: Ref<boolean>;
|
|
38
|
+
activeToolName: ComputedRef<string>;
|
|
39
|
+
activeChatMessages: Ref<ChatMessage[]>;
|
|
40
|
+
activeChatArtifacts: Ref<ChatArtifact[]>;
|
|
41
|
+
activeChatArtifactIndex: Ref<number>;
|
|
42
|
+
chatConcepts: Ref<ModelConceptInput[]>;
|
|
43
|
+
chatSymbols: Ref<CompletionItem[]>;
|
|
44
|
+
activeChatTitle: ComputedRef<string>;
|
|
45
|
+
chatConnectionInfo: ComputedRef<string>;
|
|
46
|
+
chatSystemPrompt: ComputedRef<string>;
|
|
47
|
+
availableImportsForChat: ComputedRef<ChatImport[]>;
|
|
48
|
+
activeImportsForChat: ComputedRef<ChatImport[]>;
|
|
49
|
+
handleChatMessageWithTools: (message: string, chatMessages: ChatMessage[]) => Promise<{
|
|
50
|
+
response?: string;
|
|
51
|
+
artifacts?: ChatArtifact[];
|
|
52
|
+
} | void>;
|
|
53
|
+
handleMessagesUpdate: (newMessages: ChatMessage[]) => void;
|
|
54
|
+
handleArtifactsUpdate: (newArtifacts: ChatArtifact[]) => void;
|
|
55
|
+
handleActiveArtifactUpdate: (index: number) => void;
|
|
56
|
+
handleTitleUpdate: (newTitle: string) => void;
|
|
57
|
+
handleImportChange: (newImports: ChatImport[]) => void;
|
|
58
|
+
generateChatName: () => Promise<void>;
|
|
59
|
+
refreshChatSymbols: () => Promise<CompletionItem[]>;
|
|
60
|
+
}
|
|
61
|
+
export declare function useChatWithTools(options: UseChatWithToolsOptions): UseChatWithToolsReturn;
|
|
62
|
+
//# sourceMappingURL=useChatWithTools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChatWithTools.d.ts","sourceRoot":"","sources":["../../composables/useChatWithTools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,qBAAqB,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAEpE,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAI1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAgB,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAEtE,MAAM,WAAW,uBAAuB;IACtC,kBAAkB,EAAE,sBAAsB,CAAA;IAC1C,eAAe,EAAE,mBAAmB,GAAG,IAAI,CAAA;IAC3C,qBAAqB,EAAE,qBAAqB,GAAG,IAAI,CAAA;IACnD,WAAW,EAAE,eAAe,GAAG,IAAI,CAAA;IAEnC;;;OAGG;IACH,SAAS,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IAEhC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAElC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB,wEAAwE;IACxE,eAAe,CAAC,EAAE,eAAe,GAAG,IAAI,CAAA;IAExC,+EAA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B,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C,kBAAkB,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;IACtD,gBAAgB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IACrC,kBAAkB,EAAE,MAAM,OAAO,CAAC,cAAc,EAAE,CAAC,CAAA;CACpD;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,sBAAsB,CAoezF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export interface ResizableDialogOptions {
|
|
3
|
+
initialWidth?: number;
|
|
4
|
+
initialHeight?: number;
|
|
5
|
+
minWidth?: number;
|
|
6
|
+
minHeight?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface ResizableDialogReturn {
|
|
9
|
+
editorElement: Ref<HTMLElement | null>;
|
|
10
|
+
editorWidth: Ref<number>;
|
|
11
|
+
editorHeight: Ref<number>;
|
|
12
|
+
editorTop: Ref<number>;
|
|
13
|
+
editorLeft: Ref<number>;
|
|
14
|
+
isResizing: Ref<boolean>;
|
|
15
|
+
canCloseOnClickOutside: Ref<boolean>;
|
|
16
|
+
startResize: (e: MouseEvent, direction: string) => void;
|
|
17
|
+
dialogStyle: Ref<{
|
|
18
|
+
width: string;
|
|
19
|
+
height: string;
|
|
20
|
+
top: string;
|
|
21
|
+
left: string;
|
|
22
|
+
transform: string;
|
|
23
|
+
}>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Composable for resizable dialog functionality
|
|
27
|
+
* Handles resizing, positioning, and click-outside detection
|
|
28
|
+
*/
|
|
29
|
+
export declare function useResizableDialog(onCancel: () => void, options?: ResizableDialogOptions): ResizableDialogReturn;
|
|
30
|
+
//# sourceMappingURL=useResizableDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResizableDialog.d.ts","sourceRoot":"","sources":["../../composables/useResizableDialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAE3D,MAAM,WAAW,sBAAsB;IACrC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,qBAAqB;IAEpC,aAAa,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAGtC,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACxB,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACzB,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACtB,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAGvB,UAAU,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAGxB,sBAAsB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAGpC,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;IAGvD,WAAW,EAAE,GAAG,CAAC;QACf,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;QACd,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,MAAM,CAAA;KAClB,CAAC,CAAA;CACH;AAqBD;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,IAAI,EACpB,OAAO,GAAE,sBAA2B,GACnC,qBAAqB,CAyMvB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { TrilogyCoreOptions } from './useTrilogyCore';
|
|
2
|
+
import { UseChatWithToolsReturn } from './useChatWithTools';
|
|
3
|
+
import { NavigationStore } from '../stores/useScreenNavigation';
|
|
4
|
+
export interface TrilogyChatOptions extends TrilogyCoreOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Data connection name to use for queries.
|
|
7
|
+
* Must match a connection added to connectionStore.
|
|
8
|
+
*/
|
|
9
|
+
dataConnectionName?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Initial title for the chat (default: 'Chat')
|
|
12
|
+
*/
|
|
13
|
+
initialTitle?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Whether to persist chat to the chat store (default: true).
|
|
16
|
+
* Set to false for throwaway/embedded chat modes.
|
|
17
|
+
*/
|
|
18
|
+
persistChat?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Optional callback when the chat title is updated.
|
|
21
|
+
* Alternative to using navigationStore for tab updates.
|
|
22
|
+
*/
|
|
23
|
+
onTitleUpdate?: (newTitle: string, chatId: string) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Optional navigation store for tab name updates.
|
|
26
|
+
* If not provided, one will be created internally.
|
|
27
|
+
*/
|
|
28
|
+
navigationStore?: NavigationStore | null;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Simplified composable for Trilogy chat with tool execution.
|
|
32
|
+
*
|
|
33
|
+
* This is a convenience wrapper that combines useTrilogyCore() and
|
|
34
|
+
* useChatWithTools() into a single call. All stores are automatically
|
|
35
|
+
* initialized internally.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```typescript
|
|
39
|
+
* // Minimal setup - just start chatting
|
|
40
|
+
* const chat = useTrilogyChat()
|
|
41
|
+
*
|
|
42
|
+
* // With a data connection for queries
|
|
43
|
+
* const chat = useTrilogyChat({
|
|
44
|
+
* dataConnectionName: 'my-database',
|
|
45
|
+
* })
|
|
46
|
+
*
|
|
47
|
+
* // Throwaway chat (not persisted)
|
|
48
|
+
* const chat = useTrilogyChat({
|
|
49
|
+
* persistChat: false,
|
|
50
|
+
* initialTitle: 'Quick Question',
|
|
51
|
+
* })
|
|
52
|
+
*
|
|
53
|
+
* // With title update callback
|
|
54
|
+
* const chat = useTrilogyChat({
|
|
55
|
+
* onTitleUpdate: (title, id) => console.log(`Chat ${id} renamed to ${title}`),
|
|
56
|
+
* })
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
export declare function useTrilogyChat(options?: TrilogyChatOptions): UseChatWithToolsReturn;
|
|
60
|
+
export default useTrilogyChat;
|
|
61
|
+
//# sourceMappingURL=useTrilogyChat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTrilogyChat.d.ts","sourceRoot":"","sources":["../../composables/useTrilogyChat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1E,OAAO,EAAoB,KAAK,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAEpE,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAE1D;;;OAGG;IACH,eAAe,CAAC,EAAE,eAAe,GAAG,IAAI,CAAA;CACzC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,cAAc,CAAC,OAAO,GAAE,kBAAuB,GAAG,sBAAsB,CAkCvF;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { default as TrilogyResolver } from '../stores/resolver';
|
|
2
|
+
import { default as QueryExecutionService } from '../stores/queryExecutionService';
|
|
3
|
+
import { LLMConnectionStoreType } from '../stores/llmStore';
|
|
4
|
+
import { ConnectionStoreType } from '../stores/connectionStore';
|
|
5
|
+
import { EditorStoreType } from '../stores/editorStore';
|
|
6
|
+
import { ChatStoreType } from '../stores/chatStore';
|
|
7
|
+
import { UserSettingsStoreType } from '../stores/userSettingsStore';
|
|
8
|
+
import { NavigationStore } from '../stores/useScreenNavigation';
|
|
9
|
+
export interface TrilogyCoreOptions {
|
|
10
|
+
/** Whether to store query history (default: true) */
|
|
11
|
+
storeQueryHistory?: boolean;
|
|
12
|
+
/** Cache size for the resolver (default: 100) */
|
|
13
|
+
resolverCacheSize?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface TrilogyCoreReturn {
|
|
16
|
+
llmConnectionStore: LLMConnectionStoreType;
|
|
17
|
+
connectionStore: ConnectionStoreType;
|
|
18
|
+
editorStore: EditorStoreType;
|
|
19
|
+
chatStore: ChatStoreType;
|
|
20
|
+
navigationStore: NavigationStore;
|
|
21
|
+
userSettingsStore: UserSettingsStoreType;
|
|
22
|
+
queryExecutionService: QueryExecutionService;
|
|
23
|
+
resolver: TrilogyResolver;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Initialize all core Trilogy stores and services.
|
|
27
|
+
*
|
|
28
|
+
* This composable provides a single entry point for setting up the full
|
|
29
|
+
* Trilogy stack, including data connections, LLM connections, editors,
|
|
30
|
+
* chat persistence, and query execution.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```typescript
|
|
34
|
+
* // In your app setup
|
|
35
|
+
* const trilogy = useTrilogyCore()
|
|
36
|
+
*
|
|
37
|
+
* // Access individual stores
|
|
38
|
+
* trilogy.connectionStore.addConnection(...)
|
|
39
|
+
* trilogy.llmConnectionStore.newConnection(...)
|
|
40
|
+
*
|
|
41
|
+
* // Use with other composables
|
|
42
|
+
* const chat = useChatWithTools({
|
|
43
|
+
* llmConnectionStore: trilogy.llmConnectionStore,
|
|
44
|
+
* connectionStore: trilogy.connectionStore,
|
|
45
|
+
* // ...
|
|
46
|
+
* })
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare function useTrilogyCore(options?: TrilogyCoreOptions): TrilogyCoreReturn;
|
|
50
|
+
export default useTrilogyCore;
|
|
51
|
+
//# sourceMappingURL=useTrilogyCore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTrilogyCore.d.ts","sourceRoot":"","sources":["../../composables/useTrilogyCore.ts"],"names":[],"mappings":"AAMA,OAAO,eAAe,MAAM,oBAAoB,CAAA;AAChD,OAAO,qBAAqB,MAAM,iCAAiC,CAAA;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAEpE,MAAM,WAAW,kBAAkB;IACjC,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,iDAAiD;IACjD,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAEhC,kBAAkB,EAAE,sBAAsB,CAAA;IAC1C,eAAe,EAAE,mBAAmB,CAAA;IACpC,WAAW,EAAE,eAAe,CAAA;IAC5B,SAAS,EAAE,aAAa,CAAA;IACxB,eAAe,EAAE,eAAe,CAAA;IAChC,iBAAiB,EAAE,qBAAqB,CAAA;IAIxC,qBAAqB,EAAE,qBAAqB,CAAA;IAC5C,QAAQ,EAAE,eAAe,CAAA;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,cAAc,CAAC,OAAO,GAAE,kBAAuB,GAAG,iBAAiB,CAiClF;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Results, ColumnType } from '../editors/results';
|
|
2
|
+
export declare enum AssetType {
|
|
3
|
+
TABLE = "table",
|
|
4
|
+
VIEW = "view"
|
|
5
|
+
}
|
|
6
|
+
export declare const EscapePlaceholder = "!`";
|
|
7
|
+
export declare class Column {
|
|
8
|
+
name: string;
|
|
9
|
+
type: string;
|
|
10
|
+
trilogyType: ColumnType;
|
|
11
|
+
nullable: boolean;
|
|
12
|
+
primary: boolean;
|
|
13
|
+
unique: boolean;
|
|
14
|
+
default: string | null;
|
|
15
|
+
autoincrement: boolean;
|
|
16
|
+
description: string | null;
|
|
17
|
+
constructor(name: string, type: string, trilogyType: ColumnType, nullable: boolean, primary: boolean, unique: boolean, default_: string | null, autoincrement: boolean, description?: string | null);
|
|
18
|
+
}
|
|
19
|
+
export declare class Table {
|
|
20
|
+
name: string;
|
|
21
|
+
schema: string;
|
|
22
|
+
database: string;
|
|
23
|
+
columns: Column[];
|
|
24
|
+
description: string | null;
|
|
25
|
+
assetType: AssetType;
|
|
26
|
+
constructor(name: string, schema: string, database: string, columns: Column[], description?: string | null, assetType?: AssetType);
|
|
27
|
+
}
|
|
28
|
+
export declare class Schema {
|
|
29
|
+
name: string;
|
|
30
|
+
tables: Table[];
|
|
31
|
+
database: string;
|
|
32
|
+
description: string | null;
|
|
33
|
+
constructor(name: string, tables: Table[], database: string, description?: string | null);
|
|
34
|
+
}
|
|
35
|
+
export declare class Database {
|
|
36
|
+
name: string;
|
|
37
|
+
schemas: Schema[];
|
|
38
|
+
constructor(name: string, schemas: Schema[]);
|
|
39
|
+
}
|
|
40
|
+
export default abstract class BaseConnection {
|
|
41
|
+
name: string;
|
|
42
|
+
type: string;
|
|
43
|
+
storage: string;
|
|
44
|
+
model: string | null;
|
|
45
|
+
connected: boolean;
|
|
46
|
+
error: string | null;
|
|
47
|
+
query_type: string;
|
|
48
|
+
running: boolean;
|
|
49
|
+
databases: Database[] | null;
|
|
50
|
+
secureFields: string[];
|
|
51
|
+
saveCredential: boolean;
|
|
52
|
+
initialPollingIntervalMs: number;
|
|
53
|
+
maxPollingIntervalMs: number;
|
|
54
|
+
maxTotalWaitTimeMs: number;
|
|
55
|
+
backoffFactor: number;
|
|
56
|
+
changed: boolean;
|
|
57
|
+
deleted: boolean;
|
|
58
|
+
constructor(name: string, type: string, autoConnect?: boolean, model?: string, saveCredential?: boolean);
|
|
59
|
+
abstract getDatabases(): Promise<Database[]>;
|
|
60
|
+
abstract getSchemas(database: string): Promise<Schema[]>;
|
|
61
|
+
abstract getTables(database: string, schema: string | null): Promise<Table[]>;
|
|
62
|
+
abstract getColumns(database: string, schema: string, table: string): Promise<Column[]>;
|
|
63
|
+
abstract getTable(database: string, table: string, schema: string | null): Promise<Table>;
|
|
64
|
+
setAttribute<K extends keyof this>(key: K, value: this[K]): void;
|
|
65
|
+
setAttribute(key: string, value: any): void;
|
|
66
|
+
getSecret(): string | null;
|
|
67
|
+
delete(): void;
|
|
68
|
+
setSecret(secret: string): void;
|
|
69
|
+
getSecretName(): string;
|
|
70
|
+
abstract query_core(sql: string, parameters: Record<string, any> | null, identifier: string | null): Promise<Results>;
|
|
71
|
+
refreshDatabase(database: string): Promise<Schema[] | null>;
|
|
72
|
+
refreshSchema(database: string, schema: string): Promise<Schema | null>;
|
|
73
|
+
refreshColumns(database: string, schema: string, table: string): Promise<Column[]>;
|
|
74
|
+
getTableSample(database: string, schema: string, table: string, limit?: number): Promise<Results>;
|
|
75
|
+
getLocalTable(database: string, schema: string, table: string): Table | null;
|
|
76
|
+
replaceEscapedStrings(sql: string): string;
|
|
77
|
+
query(sql: string, parameters?: Record<string, any> | null, identifier?: string | null): Promise<Results>;
|
|
78
|
+
abstract cancelQuery(identifier: string): Promise<boolean>;
|
|
79
|
+
abstract connect(): Promise<boolean>;
|
|
80
|
+
setModel(model: string): void;
|
|
81
|
+
reset(): Promise<void>;
|
|
82
|
+
setError(error: string): Promise<void>;
|
|
83
|
+
abstract toJSON(): object;
|
|
84
|
+
static fromJSON(fields: object): void;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../connections/base.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAExD,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,eAAO,MAAM,iBAAiB,OAAO,CAAA;AAErC,qBAAa,MAAM;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,UAAU,CAAA;IACvB,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,aAAa,EAAE,OAAO,CAAA;IACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;gBAG/B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,aAAa,EAAE,OAAO,EACtB,WAAW,GAAE,MAAM,GAAG,IAAW;CAYpC;AACD,qBAAa,KAAK;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IACjC,SAAS,EAAE,SAAS,CAAkB;gBAGpC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ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AAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAqBvE,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAalF,cAAc,CAClB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,MAAY,GAClB,OAAO,CAAC,OAAO,CAAC;IAMnB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI;IAW5E,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAKpC,KAAK,CACT,GAAG,EAAE,MAAM,EACX,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAW,EAC7C,UAAU,GAAE,MAAM,GAAG,IAAW;IAuBlC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAE1D,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;IAEpC,QAAQ,CAAC,KAAK,EAAE,MAAM;IAIhB,KAAK;IAcL,QAAQ,CAAC,KAAK,EAAE,MAAM;IAK5B,QAAQ,CAAC,MAAM,IAAI,MAAM;IAGzB,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM;CAG/B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { default as BaseConnection, Database, Schema, Table, Column } from './base';
|
|
2
|
+
import { Results, ResultColumn } from '../editors/results';
|
|
3
|
+
export default class BigQueryOauthConnection extends BaseConnection {
|
|
4
|
+
private accessToken;
|
|
5
|
+
projectId: string;
|
|
6
|
+
browsingProjectId: string;
|
|
7
|
+
private activeJobs;
|
|
8
|
+
constructor(name: string, projectId: string, model?: string, browsingProjectId?: string);
|
|
9
|
+
toJSON(): object;
|
|
10
|
+
static fromJSON(fields: {
|
|
11
|
+
name: string;
|
|
12
|
+
projectId: string;
|
|
13
|
+
model: string | undefined;
|
|
14
|
+
browsingProjectId: string | undefined;
|
|
15
|
+
}): BigQueryOauthConnection;
|
|
16
|
+
connect(): Promise<boolean>;
|
|
17
|
+
fetchEndpoint(endpoint: string, args: any, method: string): Promise<any>;
|
|
18
|
+
getDatabases(): Promise<Database[]>;
|
|
19
|
+
getSchemas(database: string): Promise<Schema[]>;
|
|
20
|
+
getTables(database: string, schema: string): Promise<Table[]>;
|
|
21
|
+
getTableSample(database: string, schema: string, table: string, limit?: number): Promise<Results>;
|
|
22
|
+
getTable(database: string, schema: string, table: string): Promise<Table>;
|
|
23
|
+
private tableToColumns;
|
|
24
|
+
private getTableData;
|
|
25
|
+
getColumns(database: string, schema: string, table: string): Promise<Column[]>;
|
|
26
|
+
fieldToResultColumn(field: any, modeOverride?: string | null): ResultColumn;
|
|
27
|
+
processRow(row: any, headers: Map<string, ResultColumn>): any;
|
|
28
|
+
private pollJobCompletion;
|
|
29
|
+
private sleep;
|
|
30
|
+
replaceEscapedStrings(sql: string): string;
|
|
31
|
+
query_core(sql: string, parameters?: Record<string, any> | null, identifier?: string | null): Promise<Results>;
|
|
32
|
+
cancelQuery(identifier: string): Promise<boolean>;
|
|
33
|
+
private mapBigQueryTypeToColumnType;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=bigquery_oauth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigquery_oauth.d.ts","sourceRoot":"","sources":["../../connections/bigquery_oauth.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAqB,MAAM,QAAQ,CAAA;AAC3E,OAAO,EAAE,OAAO,EAAc,MAAM,oBAAoB,CAA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A0BR,YAAY;IAOpB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAMpF,mBAAmB,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,GAAE,MAAM,GAAG,IAAW,GAAG,YAAY;IA4BjF,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,GAAG;YAoD/C,iBAAiB;YAuEjB,KAAK;IAInB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAKpC,UAAU,CACd,GAAG,EAAE,MAAM,EACX,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAW,EAC7C,UAAU,GAAE,MAAM,GAAG,IAAW,GAC/B,OAAO,CAAC,OAAO,CAAC;IAsFb,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAkBvD,OAAO,CAAC,2BAA2B;CAmCpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigquery_sa.d.ts","sourceRoot":"","sources":["../../connections/bigquery_sa.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../connections/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,MAAM,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AsyncDuckDB } from '@duckdb/duckdb-wasm';
|
|
2
|
+
import { default as BaseConnection, Database, Schema, Table, Column } from './base';
|
|
3
|
+
import { Results, ResultColumn } from '../editors/results';
|
|
4
|
+
export default class DuckDBConnection extends BaseConnection {
|
|
5
|
+
private connection;
|
|
6
|
+
db: AsyncDuckDB;
|
|
7
|
+
private currentQueryIdentifier;
|
|
8
|
+
static fromJSON(fields: {
|
|
9
|
+
name: string;
|
|
10
|
+
model: string | null;
|
|
11
|
+
}): DuckDBConnection;
|
|
12
|
+
toJSON(): object;
|
|
13
|
+
connect(): Promise<boolean>;
|
|
14
|
+
constructor(name: string, model?: string);
|
|
15
|
+
private sanitizeTableName;
|
|
16
|
+
private getFileType;
|
|
17
|
+
private mapArrowTypeToDuckDB;
|
|
18
|
+
processCSV(file: File, tableName: string, onProgress?: (message: string) => void): Promise<void>;
|
|
19
|
+
processParquet(file: File, tableName: string, onProgress?: (message: string) => void): Promise<void>;
|
|
20
|
+
processDuckDBFile(file: File, onProgress?: (message: string) => void): Promise<string>;
|
|
21
|
+
importFile(file: File, onProgress?: (message: string) => void): Promise<{
|
|
22
|
+
type: 'table' | 'database';
|
|
23
|
+
name: string;
|
|
24
|
+
}>;
|
|
25
|
+
processSchema(schema: any): Map<string, ResultColumn>;
|
|
26
|
+
parseUint32ArrayToBigInt(arr: Uint32Array): bigint;
|
|
27
|
+
handleNumber(value: any): number;
|
|
28
|
+
processRow(row: any, headers: Map<string, ResultColumn>): any;
|
|
29
|
+
query_core(sql: string, parameters?: Record<string, any> | null, identifier?: string | null): Promise<Results>;
|
|
30
|
+
private mapDuckDBTypeToColumnType;
|
|
31
|
+
private mapDuckDBStringTypeToColumnType;
|
|
32
|
+
getTable(database: string, table: string, schema: string | null): Promise<Table>;
|
|
33
|
+
cancelQuery(identifier: string): Promise<boolean>;
|
|
34
|
+
getDatabases(): Promise<Database[]>;
|
|
35
|
+
getSchemas(database: string): Promise<Schema[]>;
|
|
36
|
+
getTables(database: string, schema: string): Promise<Table[]>;
|
|
37
|
+
getColumns(database: string, schema: string, table: string): Promise<Column[]>;
|
|
38
|
+
mapDescribeResult(describeResult: any[]): Column[];
|
|
39
|
+
mapShowSchemaResult(showSchemaResult: any[], database: string): Schema[];
|
|
40
|
+
mapShowTablesResult(showTablesResult: any[], database: string, schema: string): Table[];
|
|
41
|
+
mapShowDatabasesResult(showDatabaseResult: any[]): Database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MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAMpF,iBAAiB,CAAC,cAAc,EAAE,GAAG,EAAE,GAAG,MAAM,EAAE;IAqBlD,mBAAmB,CAAC,gBAAgB,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE;IASxE,mBAAmB,CAAC,gBAAgB,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,EAAE;IAcvF,sBAAsB,CAAC,kBAAkB,EAAE,GAAG,EAAE,GAAG,QAAQ,EAAE;CAM9D"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Connection } from '.';
|
|
2
|
+
export declare function buildConnectionTree(connections: Connection[], collapsed: Record<string, boolean>, isLoading: Record<string, boolean>, isErrored: Record<string, string>): Array<{
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
indent: number;
|
|
6
|
+
count: number;
|
|
7
|
+
type: string;
|
|
8
|
+
searchPath: string;
|
|
9
|
+
connection: any | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
export declare function filterConnectionTree(treeNodes: Array<{
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
indent: number;
|
|
15
|
+
count: number;
|
|
16
|
+
type: string;
|
|
17
|
+
searchPath: string;
|
|
18
|
+
connection: any | undefined;
|
|
19
|
+
object?: any;
|
|
20
|
+
}>, filterString?: string): Array<{
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
indent: number;
|
|
24
|
+
count: number;
|
|
25
|
+
type: string;
|
|
26
|
+
searchPath: string;
|
|
27
|
+
connection: any | undefined;
|
|
28
|
+
object?: any;
|
|
29
|
+
}>;
|
|
30
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot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