@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.
Files changed (581) hide show
  1. package/README.md +6 -0
  2. package/dist/ChatCreatorModal-DTcvWDQi.js +192 -0
  3. package/dist/Dashboard-C8re96eZ.js +5104 -0
  4. package/dist/DashboardCreatorInline-Do-CDJgS.js +150 -0
  5. package/dist/DashboardMobile-BOrq0rBy.js +310 -0
  6. package/dist/LLMConnectionList-DVM5t-P2.js +4692 -0
  7. package/dist/LLMView-lUTKOMbr.js +558 -0
  8. package/dist/Manager-CXJNoqU2.js +4 -0
  9. package/dist/ResultComponent-C4EGIBY0.js +155 -0
  10. package/dist/Sidebar-BGKtM2n0.js +1841 -0
  11. package/dist/TutorialPage-CGjDXmYk.js +482 -0
  12. package/dist/WelcomePage-C6obXIyG.js +75 -0
  13. package/dist/abap-D0Neqhq6.js +1404 -0
  14. package/dist/apex-B5LhxkeG.js +332 -0
  15. package/dist/azcli-BrBH0QTU.js +74 -0
  16. package/dist/bat-BfzAov64.js +106 -0
  17. package/dist/bicep-C3bCSWel.js +108 -0
  18. package/dist/cameligo-sFL5plcd.js +180 -0
  19. package/dist/chats/chat.d.ts +63 -0
  20. package/dist/chats/chat.d.ts.map +1 -0
  21. package/dist/chats/index.d.ts +3 -0
  22. package/dist/chats/index.d.ts.map +1 -0
  23. package/dist/clojure-CfeExRz0.js +767 -0
  24. package/dist/coffee-Xws5K0WL.js +238 -0
  25. package/dist/components/AssetAutoImporter.vue.d.ts +10 -0
  26. package/dist/components/AssetAutoImporter.vue.d.ts.map +1 -0
  27. package/dist/components/ChartControlPanel.vue.d.ts +54 -0
  28. package/dist/components/ChartControlPanel.vue.d.ts.map +1 -0
  29. package/dist/components/CodeBlock.vue.d.ts +39 -0
  30. package/dist/components/CodeBlock.vue.d.ts.map +1 -0
  31. package/dist/components/ConceptTable.vue.d.ts +16 -0
  32. package/dist/components/ConceptTable.vue.d.ts.map +1 -0
  33. package/dist/components/ContextMenu.vue.d.ts +67 -0
  34. package/dist/components/ContextMenu.vue.d.ts.map +1 -0
  35. package/dist/components/DataTable.vue.d.ts +204 -0
  36. package/dist/components/DataTable.vue.d.ts.map +1 -0
  37. package/dist/components/DrilldownPane.vue.d.ts +94 -0
  38. package/dist/components/DrilldownPane.vue.d.ts.map +1 -0
  39. package/dist/components/EditableTitle.vue.d.ts +32 -0
  40. package/dist/components/EditableTitle.vue.d.ts.map +1 -0
  41. package/dist/components/ErrorMessage.vue.d.ts +20 -0
  42. package/dist/components/ErrorMessage.vue.d.ts.map +1 -0
  43. package/dist/components/HighlightComponent.vue.d.ts +21 -0
  44. package/dist/components/HighlightComponent.vue.d.ts.map +1 -0
  45. package/dist/components/HintComponent.vue.d.ts +12 -0
  46. package/dist/components/HintComponent.vue.d.ts.map +1 -0
  47. package/dist/components/InlineErrorMessage.vue.d.ts +3 -0
  48. package/dist/components/InlineErrorMessage.vue.d.ts.map +1 -0
  49. package/dist/components/LoadingButton.vue.d.ts +121 -0
  50. package/dist/components/LoadingButton.vue.d.ts.map +1 -0
  51. package/dist/components/LoadingView.vue.d.ts +21 -0
  52. package/dist/components/LoadingView.vue.d.ts.map +1 -0
  53. package/dist/components/MarkdownRenderer.vue.d.ts +39 -0
  54. package/dist/components/MarkdownRenderer.vue.d.ts.map +1 -0
  55. package/dist/components/PopupModal.vue.d.ts +50 -0
  56. package/dist/components/PopupModal.vue.d.ts.map +1 -0
  57. package/dist/components/SimpleEditor.vue.d.ts +246 -0
  58. package/dist/components/SimpleEditor.vue.d.ts.map +1 -0
  59. package/dist/components/StatusIcon.vue.d.ts +9 -0
  60. package/dist/components/StatusIcon.vue.d.ts.map +1 -0
  61. package/dist/components/SymbolsPane.vue.d.ts +96 -0
  62. package/dist/components/SymbolsPane.vue.d.ts.map +1 -0
  63. package/dist/components/Tooltip.vue.d.ts +40 -0
  64. package/dist/components/Tooltip.vue.d.ts.map +1 -0
  65. package/dist/components/VegaLiteChart.vue.d.ts +183 -0
  66. package/dist/components/VegaLiteChart.vue.d.ts.map +1 -0
  67. package/dist/components/chartControlsManager.d.ts +50 -0
  68. package/dist/components/chartControlsManager.d.ts.map +1 -0
  69. package/dist/components/chartHelpers.d.ts +51 -0
  70. package/dist/components/chartHelpers.d.ts.map +1 -0
  71. package/dist/components/chartOperationsManager.d.ts +10 -0
  72. package/dist/components/chartOperationsManager.d.ts.map +1 -0
  73. package/dist/components/chartRenderManager.d.ts +26 -0
  74. package/dist/components/chartRenderManager.d.ts.map +1 -0
  75. package/dist/components/community/AddStoreModal.vue.d.ts +35 -0
  76. package/dist/components/community/AddStoreModal.vue.d.ts.map +1 -0
  77. package/dist/components/community/CommunityModelCard.vue.d.ts +33 -0
  78. package/dist/components/community/CommunityModelCard.vue.d.ts.map +1 -0
  79. package/dist/components/community/CommunityModelHeader.vue.d.ts +22 -0
  80. package/dist/components/community/CommunityModelHeader.vue.d.ts.map +1 -0
  81. package/dist/components/community/CommunityModels.vue.d.ts +19 -0
  82. package/dist/components/community/CommunityModels.vue.d.ts.map +1 -0
  83. package/dist/components/community/CommunityRemote.vue.d.ts +33 -0
  84. package/dist/components/community/CommunityRemote.vue.d.ts.map +1 -0
  85. package/dist/components/connection/ConnectionDatabase.vue.d.ts +153 -0
  86. package/dist/components/connection/ConnectionDatabase.vue.d.ts.map +1 -0
  87. package/dist/components/connection/ConnectionHistory.vue.d.ts +13 -0
  88. package/dist/components/connection/ConnectionHistory.vue.d.ts.map +1 -0
  89. package/dist/components/connection/ConnectionSchema.vue.d.ts +35 -0
  90. package/dist/components/connection/ConnectionSchema.vue.d.ts.map +1 -0
  91. package/dist/components/connection/ConnectionTable.vue.d.ts +251 -0
  92. package/dist/components/connection/ConnectionTable.vue.d.ts.map +1 -0
  93. package/dist/components/connection/DatasourceTable.vue.d.ts +16 -0
  94. package/dist/components/connection/DatasourceTable.vue.d.ts.map +1 -0
  95. package/dist/components/dashboard/Dashboard.vue.d.ts +13 -0
  96. package/dist/components/dashboard/Dashboard.vue.d.ts.map +1 -0
  97. package/dist/components/dashboard/DashboardAddItemModal.vue.d.ts +13 -0
  98. package/dist/components/dashboard/DashboardAddItemModal.vue.d.ts.map +1 -0
  99. package/dist/components/dashboard/DashboardCTA.vue.d.ts +12 -0
  100. package/dist/components/dashboard/DashboardCTA.vue.d.ts.map +1 -0
  101. package/dist/components/dashboard/DashboardChart.vue.d.ts +427 -0
  102. package/dist/components/dashboard/DashboardChart.vue.d.ts.map +1 -0
  103. package/dist/components/dashboard/DashboardChartEditor.vue.d.ts +325 -0
  104. package/dist/components/dashboard/DashboardChartEditor.vue.d.ts.map +1 -0
  105. package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts +52 -0
  106. package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts.map +1 -0
  107. package/dist/components/dashboard/DashboardCreatorInline.vue.d.ts +36 -0
  108. package/dist/components/dashboard/DashboardCreatorInline.vue.d.ts.map +1 -0
  109. package/dist/components/dashboard/DashboardDataSelector.vue.d.ts +221 -0
  110. package/dist/components/dashboard/DashboardDataSelector.vue.d.ts.map +1 -0
  111. package/dist/components/dashboard/DashboardFilter.vue.d.ts +346 -0
  112. package/dist/components/dashboard/DashboardFilter.vue.d.ts.map +1 -0
  113. package/dist/components/dashboard/DashboardFilterAutocomplete.vue.d.ts +38 -0
  114. package/dist/components/dashboard/DashboardFilterAutocomplete.vue.d.ts.map +1 -0
  115. package/dist/components/dashboard/DashboardGridItem.vue.d.ts +31 -0
  116. package/dist/components/dashboard/DashboardGridItem.vue.d.ts.map +1 -0
  117. package/dist/components/dashboard/DashboardHeader.vue.d.ts +71 -0
  118. package/dist/components/dashboard/DashboardHeader.vue.d.ts.map +1 -0
  119. package/dist/components/dashboard/DashboardHeaderFilterInput.vue.d.ts +50 -0
  120. package/dist/components/dashboard/DashboardHeaderFilterInput.vue.d.ts.map +1 -0
  121. package/dist/components/dashboard/DashboardImportPopup.vue.d.ts +12 -0
  122. package/dist/components/dashboard/DashboardImportPopup.vue.d.ts.map +1 -0
  123. package/dist/components/dashboard/DashboardImportSelector.vue.d.ts +14 -0
  124. package/dist/components/dashboard/DashboardImportSelector.vue.d.ts.map +1 -0
  125. package/dist/components/dashboard/DashboardMarkdown.vue.d.ts +175 -0
  126. package/dist/components/dashboard/DashboardMarkdown.vue.d.ts.map +1 -0
  127. package/dist/components/dashboard/DashboardMarkdownEditor.vue.d.ts +325 -0
  128. package/dist/components/dashboard/DashboardMarkdownEditor.vue.d.ts.map +1 -0
  129. package/dist/components/dashboard/DashboardMobile.vue.d.ts +8 -0
  130. package/dist/components/dashboard/DashboardMobile.vue.d.ts.map +1 -0
  131. package/dist/components/dashboard/DashboardSharePopup.vue.d.ts +14 -0
  132. package/dist/components/dashboard/DashboardSharePopup.vue.d.ts.map +1 -0
  133. package/dist/components/dashboard/DashboardTable.vue.d.ts +332 -0
  134. package/dist/components/dashboard/DashboardTable.vue.d.ts.map +1 -0
  135. package/dist/components/dashboard/useDashboard.d.ts +96 -0
  136. package/dist/components/dashboard/useDashboard.d.ts.map +1 -0
  137. package/dist/components/editor/Editor.vue.d.ts +816 -0
  138. package/dist/components/editor/Editor.vue.d.ts.map +1 -0
  139. package/dist/components/editor/EditorCode.vue.d.ts +49 -0
  140. package/dist/components/editor/EditorCode.vue.d.ts.map +1 -0
  141. package/dist/components/editor/EditorCreatorIcon.vue.d.ts +61 -0
  142. package/dist/components/editor/EditorCreatorIcon.vue.d.ts.map +1 -0
  143. package/dist/components/editor/EditorCreatorInline.vue.d.ts +95 -0
  144. package/dist/components/editor/EditorCreatorInline.vue.d.ts.map +1 -0
  145. package/dist/components/editor/EditorHeader.vue.d.ts +185 -0
  146. package/dist/components/editor/EditorHeader.vue.d.ts.map +1 -0
  147. package/dist/components/editor/ResultComponent.vue.d.ts +1095 -0
  148. package/dist/components/editor/ResultComponent.vue.d.ts.map +1 -0
  149. package/dist/components/editor/Results.vue.d.ts +755 -0
  150. package/dist/components/editor/Results.vue.d.ts.map +1 -0
  151. package/dist/components/editor/editorHelpers.d.ts +45 -0
  152. package/dist/components/editor/editorHelpers.d.ts.map +1 -0
  153. package/dist/components/editor/events.d.ts +4 -0
  154. package/dist/components/editor/events.d.ts.map +1 -0
  155. package/dist/components/index.d.ts +2 -0
  156. package/dist/components/index.d.ts.map +1 -0
  157. package/dist/components/layout/MobileSidebarLayout.vue.d.ts +48 -0
  158. package/dist/components/layout/MobileSidebarLayout.vue.d.ts.map +1 -0
  159. package/dist/components/layout/SidebarLayout.vue.d.ts +20 -0
  160. package/dist/components/layout/SidebarLayout.vue.d.ts.map +1 -0
  161. package/dist/components/layout/TabDropdownItem.vue.d.ts +73 -0
  162. package/dist/components/layout/TabDropdownItem.vue.d.ts.map +1 -0
  163. package/dist/components/layout/TabbedBrowser.vue.d.ts +42 -0
  164. package/dist/components/layout/TabbedBrowser.vue.d.ts.map +1 -0
  165. package/dist/components/layout/TabbedLayout.vue.d.ts +5 -0
  166. package/dist/components/layout/TabbedLayout.vue.d.ts.map +1 -0
  167. package/dist/components/layout/VerticalSplitLayout.vue.d.ts +13 -0
  168. package/dist/components/layout/VerticalSplitLayout.vue.d.ts.map +1 -0
  169. package/dist/components/llm/ChatArtifact.vue.d.ts +470 -0
  170. package/dist/components/llm/ChatArtifact.vue.d.ts.map +1 -0
  171. package/dist/components/llm/ChatCreatorModal.vue.d.ts +87 -0
  172. package/dist/components/llm/ChatCreatorModal.vue.d.ts.map +1 -0
  173. package/dist/components/llm/LLMChat.vue.d.ts +260 -0
  174. package/dist/components/llm/LLMChat.vue.d.ts.map +1 -0
  175. package/dist/components/llm/LLMChatRefinement.vue.d.ts +135 -0
  176. package/dist/components/llm/LLMChatRefinement.vue.d.ts.map +1 -0
  177. package/dist/components/llm/LLMChatSplitView.vue.d.ts +2029 -0
  178. package/dist/components/llm/LLMChatSplitView.vue.d.ts.map +1 -0
  179. package/dist/components/llm/LLMValidationView.vue.d.ts +106 -0
  180. package/dist/components/llm/LLMValidationView.vue.d.ts.map +1 -0
  181. package/dist/components/llm/index.d.ts +6 -0
  182. package/dist/components/llm/index.d.ts.map +1 -0
  183. package/dist/components/model/ModelCard.vue.d.ts +1113 -0
  184. package/dist/components/model/ModelCard.vue.d.ts.map +1 -0
  185. package/dist/components/model/ModelConcept.vue.d.ts +14 -0
  186. package/dist/components/model/ModelConcept.vue.d.ts.map +1 -0
  187. package/dist/components/model/ModelCreator.vue.d.ts +241 -0
  188. package/dist/components/model/ModelCreator.vue.d.ts.map +1 -0
  189. package/dist/components/model/ModelSelector.vue.d.ts +9 -0
  190. package/dist/components/model/ModelSelector.vue.d.ts.map +1 -0
  191. package/dist/components/sidebar/CommunityModelListItem.vue.d.ts +26 -0
  192. package/dist/components/sidebar/CommunityModelListItem.vue.d.ts.map +1 -0
  193. package/dist/components/sidebar/ConnectionCreatorInline.vue.d.ts +68 -0
  194. package/dist/components/sidebar/ConnectionCreatorInline.vue.d.ts.map +1 -0
  195. package/dist/components/sidebar/ConnectionIcon.vue.d.ts +6 -0
  196. package/dist/components/sidebar/ConnectionIcon.vue.d.ts.map +1 -0
  197. package/dist/components/sidebar/ConnectionList.vue.d.ts +714 -0
  198. package/dist/components/sidebar/ConnectionList.vue.d.ts.map +1 -0
  199. package/dist/components/sidebar/ConnectionListItem.vue.d.ts +317 -0
  200. package/dist/components/sidebar/ConnectionListItem.vue.d.ts.map +1 -0
  201. package/dist/components/sidebar/ConnectionRefresh.vue.d.ts +15 -0
  202. package/dist/components/sidebar/ConnectionRefresh.vue.d.ts.map +1 -0
  203. package/dist/components/sidebar/ConnectionStatusIcon.vue.d.ts +11 -0
  204. package/dist/components/sidebar/ConnectionStatusIcon.vue.d.ts.map +1 -0
  205. package/dist/components/sidebar/CreateEditorFromDatasourcePopup.vue.d.ts +15 -0
  206. package/dist/components/sidebar/CreateEditorFromDatasourcePopup.vue.d.ts.map +1 -0
  207. package/dist/components/sidebar/DashboardList.vue.d.ts +684 -0
  208. package/dist/components/sidebar/DashboardList.vue.d.ts.map +1 -0
  209. package/dist/components/sidebar/DashboardListItem.vue.d.ts +343 -0
  210. package/dist/components/sidebar/DashboardListItem.vue.d.ts.map +1 -0
  211. package/dist/components/sidebar/DuckDBImporter.vue.d.ts +24 -0
  212. package/dist/components/sidebar/DuckDBImporter.vue.d.ts.map +1 -0
  213. package/dist/components/sidebar/EditorList.vue.d.ts +590 -0
  214. package/dist/components/sidebar/EditorList.vue.d.ts.map +1 -0
  215. package/dist/components/sidebar/EditorListItem.vue.d.ts +260 -0
  216. package/dist/components/sidebar/EditorListItem.vue.d.ts.map +1 -0
  217. package/dist/components/sidebar/GenericSidebarItem.vue.d.ts +91 -0
  218. package/dist/components/sidebar/GenericSidebarItem.vue.d.ts.map +1 -0
  219. package/dist/components/sidebar/LLMConnectionCreator.vue.d.ts +178 -0
  220. package/dist/components/sidebar/LLMConnectionCreator.vue.d.ts.map +1 -0
  221. package/dist/components/sidebar/LLMConnectionList.vue.d.ts +978 -0
  222. package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -0
  223. package/dist/components/sidebar/LLMConnectionListItem.vue.d.ts +404 -0
  224. package/dist/components/sidebar/LLMConnectionListItem.vue.d.ts.map +1 -0
  225. package/dist/components/sidebar/LLMProviderIcon.vue.d.ts +13 -0
  226. package/dist/components/sidebar/LLMProviderIcon.vue.d.ts.map +1 -0
  227. package/dist/components/sidebar/ModelSidebar.vue.d.ts +558 -0
  228. package/dist/components/sidebar/ModelSidebar.vue.d.ts.map +1 -0
  229. package/dist/components/sidebar/SidebarList.vue.d.ts +16 -0
  230. package/dist/components/sidebar/SidebarList.vue.d.ts.map +1 -0
  231. package/dist/components/sidebar/TutorialSidebar.vue.d.ts +134 -0
  232. package/dist/components/sidebar/TutorialSidebar.vue.d.ts.map +1 -0
  233. package/dist/components/tutorial/TutorialFunction.vue.d.ts +38 -0
  234. package/dist/components/tutorial/TutorialFunction.vue.d.ts.map +1 -0
  235. package/dist/components/tutorial/TutorialPrompt.vue.d.ts +2002 -0
  236. package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -0
  237. package/dist/components/user/UserProfile.vue.d.ts +11 -0
  238. package/dist/components/user/UserProfile.vue.d.ts.map +1 -0
  239. package/dist/components/user/UserSettings.vue.d.ts +129 -0
  240. package/dist/components/user/UserSettings.vue.d.ts.map +1 -0
  241. package/dist/composables/ResizeHandles.vue.d.ts +6 -0
  242. package/dist/composables/ResizeHandles.vue.d.ts.map +1 -0
  243. package/dist/composables/useChatWithTools.d.ts +62 -0
  244. package/dist/composables/useChatWithTools.d.ts.map +1 -0
  245. package/dist/composables/useResizableDialog.d.ts +30 -0
  246. package/dist/composables/useResizableDialog.d.ts.map +1 -0
  247. package/dist/composables/useTrilogyChat.d.ts +61 -0
  248. package/dist/composables/useTrilogyChat.d.ts.map +1 -0
  249. package/dist/composables/useTrilogyCore.d.ts +51 -0
  250. package/dist/composables/useTrilogyCore.d.ts.map +1 -0
  251. package/dist/connections/base.d.ts +86 -0
  252. package/dist/connections/base.d.ts.map +1 -0
  253. package/dist/connections/bigquery_oauth.d.ts +35 -0
  254. package/dist/connections/bigquery_oauth.d.ts.map +1 -0
  255. package/dist/connections/bigquery_sa.d.ts +2 -0
  256. package/dist/connections/bigquery_sa.d.ts.map +1 -0
  257. package/dist/connections/constants.d.ts +2 -0
  258. package/dist/connections/constants.d.ts.map +1 -0
  259. package/dist/connections/duckdb.d.ts +43 -0
  260. package/dist/connections/duckdb.d.ts.map +1 -0
  261. package/dist/connections/helpers.d.ts +30 -0
  262. package/dist/connections/helpers.d.ts.map +1 -0
  263. package/dist/connections/index.d.ts +7 -0
  264. package/dist/connections/index.d.ts.map +1 -0
  265. package/dist/connections/motherduck.d.ts +19 -0
  266. package/dist/connections/motherduck.d.ts.map +1 -0
  267. package/dist/connections/snowflake.d.ts +94 -0
  268. package/dist/connections/snowflake.d.ts.map +1 -0
  269. package/dist/connections/sql_server.d.ts +2 -0
  270. package/dist/connections/sql_server.d.ts.map +1 -0
  271. package/dist/cpp-CqOUEpxN.js +395 -0
  272. package/dist/csharp-DVLiBOZb.js +332 -0
  273. package/dist/csp-DVFp9bw5.js +59 -0
  274. package/dist/css-DwARn2R6.js +193 -0
  275. package/dist/cssMode-Cr0iq_nL.js +1577 -0
  276. package/dist/cypher-uY0Mffat.js +269 -0
  277. package/dist/dart-D27H-mX_.js +287 -0
  278. package/dist/dashboards/barChartSpec.d.ts +28 -0
  279. package/dist/dashboards/barChartSpec.d.ts.map +1 -0
  280. package/dist/dashboards/barHChartSpec.d.ts +28 -0
  281. package/dist/dashboards/barHChartSpec.d.ts.map +1 -0
  282. package/dist/dashboards/base.d.ts +176 -0
  283. package/dist/dashboards/base.d.ts.map +1 -0
  284. package/dist/dashboards/beeSwarmSpec.d.ts +150 -0
  285. package/dist/dashboards/beeSwarmSpec.d.ts.map +1 -0
  286. package/dist/dashboards/conditions.d.ts +8 -0
  287. package/dist/dashboards/conditions.d.ts.map +1 -0
  288. package/dist/dashboards/conditionsParameters.d.ts +11 -0
  289. package/dist/dashboards/conditionsParameters.d.ts.map +1 -0
  290. package/dist/dashboards/constants.d.ts +22 -0
  291. package/dist/dashboards/constants.d.ts.map +1 -0
  292. package/dist/dashboards/countryLookup.d.ts +15 -0
  293. package/dist/dashboards/countryLookup.d.ts.map +1 -0
  294. package/dist/dashboards/d3utility.d.ts +7 -0
  295. package/dist/dashboards/d3utility.d.ts.map +1 -0
  296. package/dist/dashboards/dashboardQueryExecutor.d.ts +142 -0
  297. package/dist/dashboards/dashboardQueryExecutor.d.ts.map +1 -0
  298. package/dist/dashboards/donutSpec.d.ts +74 -0
  299. package/dist/dashboards/donutSpec.d.ts.map +1 -0
  300. package/dist/dashboards/formatting.d.ts +11 -0
  301. package/dist/dashboards/formatting.d.ts.map +1 -0
  302. package/dist/dashboards/headlineSpec.d.ts +23 -0
  303. package/dist/dashboards/headlineSpec.d.ts.map +1 -0
  304. package/dist/dashboards/heatmapSpec.d.ts +30 -0
  305. package/dist/dashboards/heatmapSpec.d.ts.map +1 -0
  306. package/dist/dashboards/helpers.d.ts +73 -0
  307. package/dist/dashboards/helpers.d.ts.map +1 -0
  308. package/dist/dashboards/index.d.ts +3 -0
  309. package/dist/dashboards/index.d.ts.map +1 -0
  310. package/dist/dashboards/lineAreaSpec.d.ts +177 -0
  311. package/dist/dashboards/lineAreaSpec.d.ts.map +1 -0
  312. package/dist/dashboards/mapSpec.d.ts +431 -0
  313. package/dist/dashboards/mapSpec.d.ts.map +1 -0
  314. package/dist/dashboards/pointSpec.d.ts +27 -0
  315. package/dist/dashboards/pointSpec.d.ts.map +1 -0
  316. package/dist/dashboards/prompts.d.ts +31 -0
  317. package/dist/dashboards/prompts.d.ts.map +1 -0
  318. package/dist/dashboards/spec.d.ts +19 -0
  319. package/dist/dashboards/spec.d.ts.map +1 -0
  320. package/dist/dashboards/treeSpec.d.ts +3 -0
  321. package/dist/dashboards/treeSpec.d.ts.map +1 -0
  322. package/dist/dashboards/types.d.ts +70 -0
  323. package/dist/dashboards/types.d.ts.map +1 -0
  324. package/dist/data/connectionHistoryStorage.d.ts +25 -0
  325. package/dist/data/connectionHistoryStorage.d.ts.map +1 -0
  326. package/dist/data/constants.d.ts +4 -0
  327. package/dist/data/constants.d.ts.map +1 -0
  328. package/dist/data/credentialHelpers.d.ts +30 -0
  329. package/dist/data/credentialHelpers.d.ts.map +1 -0
  330. package/dist/data/credentialService.d.ts +80 -0
  331. package/dist/data/credentialService.d.ts.map +1 -0
  332. package/dist/data/githubStorage.d.ts +54 -0
  333. package/dist/data/githubStorage.d.ts.map +1 -0
  334. package/dist/data/index.d.ts +3 -0
  335. package/dist/data/index.d.ts.map +1 -0
  336. package/dist/data/localStorage.d.ts +48 -0
  337. package/dist/data/localStorage.d.ts.map +1 -0
  338. package/dist/data/storage.d.ts +33 -0
  339. package/dist/data/storage.d.ts.map +1 -0
  340. package/dist/data/tips.d.ts +12 -0
  341. package/dist/data/tips.d.ts.map +1 -0
  342. package/dist/data/tutorial/builtinFunctions.d.ts +3 -0
  343. package/dist/data/tutorial/builtinFunctions.d.ts.map +1 -0
  344. package/dist/data/tutorial/dashboardTutorial.d.ts +3 -0
  345. package/dist/data/tutorial/dashboardTutorial.d.ts.map +1 -0
  346. package/dist/data/tutorial/demoSetup.d.ts +6 -0
  347. package/dist/data/tutorial/demoSetup.d.ts.map +1 -0
  348. package/dist/data/tutorial/docTypes.d.ts +37 -0
  349. package/dist/data/tutorial/docTypes.d.ts.map +1 -0
  350. package/dist/data/tutorial/documentation.d.ts +3 -0
  351. package/dist/data/tutorial/documentation.d.ts.map +1 -0
  352. package/dist/data/tutorial/functionsReference.d.ts +3 -0
  353. package/dist/data/tutorial/functionsReference.d.ts.map +1 -0
  354. package/dist/data/tutorial/introTutorial.d.ts +3 -0
  355. package/dist/data/tutorial/introTutorial.d.ts.map +1 -0
  356. package/dist/data/tutorial/llmTutorial.d.ts +3 -0
  357. package/dist/data/tutorial/llmTutorial.d.ts.map +1 -0
  358. package/dist/data/tutorial/modelReference.d.ts +3 -0
  359. package/dist/data/tutorial/modelReference.d.ts.map +1 -0
  360. package/dist/data/tutorial/modelTutorial.d.ts +3 -0
  361. package/dist/data/tutorial/modelTutorial.d.ts.map +1 -0
  362. package/dist/data/tutorial/reference.d.ts +3 -0
  363. package/dist/data/tutorial/reference.d.ts.map +1 -0
  364. package/dist/data/tutorial/terms_of_service.d.ts +3 -0
  365. package/dist/data/tutorial/terms_of_service.d.ts.map +1 -0
  366. package/dist/data/tutorial/windowFunctionsReference.d.ts +3 -0
  367. package/dist/data/tutorial/windowFunctionsReference.d.ts.map +1 -0
  368. package/dist/dockerfile-CmV85WZK.js +136 -0
  369. package/dist/ecl--fKn7yzB.js +462 -0
  370. package/dist/editors/editor.d.ts +82 -0
  371. package/dist/editors/editor.d.ts.map +1 -0
  372. package/dist/editors/helpers.d.ts +12 -0
  373. package/dist/editors/helpers.d.ts.map +1 -0
  374. package/dist/editors/index.d.ts +3 -0
  375. package/dist/editors/index.d.ts.map +1 -0
  376. package/dist/editors/results.d.ts +61 -0
  377. package/dist/editors/results.d.ts.map +1 -0
  378. package/dist/elixir-DUhH17ON.js +575 -0
  379. package/dist/events/display.d.ts +9 -0
  380. package/dist/events/display.d.ts.map +1 -0
  381. package/dist/flow9-B3Dx2LLe.js +148 -0
  382. package/dist/freemarker2-de_cA50e.js +995 -0
  383. package/dist/fsharp-SyqBfUAR.js +223 -0
  384. package/dist/go-BbMR2tdT.js +224 -0
  385. package/dist/graphql-DDJE6tIl.js +157 -0
  386. package/dist/handlebars-C8f44E5O.js +425 -0
  387. package/dist/hcl-YBvpaUqf.js +189 -0
  388. package/dist/html-qaggIh0W.js +314 -0
  389. package/dist/html2canvas.esm-dgT_1dIT.js +4871 -0
  390. package/dist/htmlMode-xYurYOLw.js +1587 -0
  391. package/dist/ini-Ct73dBtM.js +77 -0
  392. package/dist/java-C_jlkwoG.js +238 -0
  393. package/dist/javascript-DeLkSgQX.js +76 -0
  394. package/dist/jsonMode-BM-L8w8F.js +2002 -0
  395. package/dist/julia-D8WE5U1e.js +517 -0
  396. package/dist/kotlin-Zy9aq5yB.js +259 -0
  397. package/dist/language/constants.d.ts +6 -0
  398. package/dist/language/constants.d.ts.map +1 -0
  399. package/dist/language/index.d.ts +2 -0
  400. package/dist/language/index.d.ts.map +1 -0
  401. package/dist/less-sZ0iHtE8.js +168 -0
  402. package/dist/lexon-CsdNL29A.js +163 -0
  403. package/dist/liquid-DLNUrc5y.js +246 -0
  404. package/dist/llm/anthropic.d.ts +13 -0
  405. package/dist/llm/anthropic.d.ts.map +1 -0
  406. package/dist/llm/base.d.ts +63 -0
  407. package/dist/llm/base.d.ts.map +1 -0
  408. package/dist/llm/chatAgentPrompt.d.ts +166 -0
  409. package/dist/llm/chatAgentPrompt.d.ts.map +1 -0
  410. package/dist/llm/chatHelpers.d.ts +23 -0
  411. package/dist/llm/chatHelpers.d.ts.map +1 -0
  412. package/dist/llm/chatToolExecutor.d.ts +39 -0
  413. package/dist/llm/chatToolExecutor.d.ts.map +1 -0
  414. package/dist/llm/consts.d.ts +3 -0
  415. package/dist/llm/consts.d.ts.map +1 -0
  416. package/dist/llm/data/constants.d.ts +5 -0
  417. package/dist/llm/data/constants.d.ts.map +1 -0
  418. package/dist/llm/data/models.d.ts +8 -0
  419. package/dist/llm/data/models.d.ts.map +1 -0
  420. package/dist/llm/data/prompts.d.ts +7 -0
  421. package/dist/llm/data/prompts.d.ts.map +1 -0
  422. package/dist/llm/data/testCases.d.ts +13 -0
  423. package/dist/llm/data/testCases.d.ts.map +1 -0
  424. package/dist/llm/googlev2.d.ts +15 -0
  425. package/dist/llm/googlev2.d.ts.map +1 -0
  426. package/dist/llm/index.d.ts +11 -0
  427. package/dist/llm/index.d.ts.map +1 -0
  428. package/dist/llm/mistral.d.ts +11 -0
  429. package/dist/llm/mistral.d.ts.map +1 -0
  430. package/dist/llm/models.d.ts +8 -0
  431. package/dist/llm/models.d.ts.map +1 -0
  432. package/dist/llm/openAI.d.ts +13 -0
  433. package/dist/llm/openAI.d.ts.map +1 -0
  434. package/dist/llm/utils.d.ts +50 -0
  435. package/dist/llm/utils.d.ts.map +1 -0
  436. package/dist/lua-C2YJo0zw.js +168 -0
  437. package/dist/m3-CPLP40SG.js +216 -0
  438. package/dist/main-oVvKtGNk.js +203688 -0
  439. package/dist/main.css +1 -0
  440. package/dist/main.d.ts +23 -0
  441. package/dist/main.d.ts.map +1 -0
  442. package/dist/main.js +22 -0
  443. package/dist/main.umd.cjs +2885 -0
  444. package/dist/markdown-B1mf5e0R.js +235 -0
  445. package/dist/mdx-BmG1effK.js +171 -0
  446. package/dist/mips-DA33BZX1.js +204 -0
  447. package/dist/models/helpers.d.ts +59 -0
  448. package/dist/models/helpers.d.ts.map +1 -0
  449. package/dist/models/import.d.ts +18 -0
  450. package/dist/models/import.d.ts.map +1 -0
  451. package/dist/models/index.d.ts +3 -0
  452. package/dist/models/index.d.ts.map +1 -0
  453. package/dist/models/model.d.ts +241 -0
  454. package/dist/models/model.d.ts.map +1 -0
  455. package/dist/monaco/editorHelpers.d.ts +32 -0
  456. package/dist/monaco/editorHelpers.d.ts.map +1 -0
  457. package/dist/monaco/index.d.ts +2 -0
  458. package/dist/monaco/index.d.ts.map +1 -0
  459. package/dist/monaco/setup.d.ts +2 -0
  460. package/dist/monaco/setup.d.ts.map +1 -0
  461. package/dist/msdax-CCYFIQsP.js +381 -0
  462. package/dist/mysql-hjmIjL-D.js +884 -0
  463. package/dist/objective-c-RRCpEmqC.js +189 -0
  464. package/dist/pascal-CeV8XfxB.js +257 -0
  465. package/dist/pascaligo-IEEGVJAJ.js +170 -0
  466. package/dist/perl-B5-QbHq_.js +632 -0
  467. package/dist/pgsql-s6kqEJmi.js +857 -0
  468. package/dist/php-CWWqzOo8.js +506 -0
  469. package/dist/pla-FSvb_YP_.js +143 -0
  470. package/dist/postiats-DQdscQXO.js +913 -0
  471. package/dist/powerquery-CtA5JA1I.js +896 -0
  472. package/dist/powershell-DglEq96N.js +245 -0
  473. package/dist/prism-sql-8Y2-THrf.js +33 -0
  474. package/dist/protobuf-BSepub3e.js +426 -0
  475. package/dist/pug-B1847F4G.js +408 -0
  476. package/dist/python-BLXKu9hO.js +307 -0
  477. package/dist/qsharp-D4i0Nqg9.js +307 -0
  478. package/dist/r-cdRigKxa.js +249 -0
  479. package/dist/razor-DSEd6veI.js +556 -0
  480. package/dist/redis-D9MFxvE8.js +308 -0
  481. package/dist/redshift-CmCnsvL-.js +815 -0
  482. package/dist/remotes/constants.d.ts +2 -0
  483. package/dist/remotes/constants.d.ts.map +1 -0
  484. package/dist/remotes/displayHelpers.d.ts +67 -0
  485. package/dist/remotes/displayHelpers.d.ts.map +1 -0
  486. package/dist/remotes/modelApiService.d.ts +38 -0
  487. package/dist/remotes/modelApiService.d.ts.map +1 -0
  488. package/dist/remotes/models.d.ts +48 -0
  489. package/dist/remotes/models.d.ts.map +1 -0
  490. package/dist/remotes/storeService.d.ts +42 -0
  491. package/dist/remotes/storeService.d.ts.map +1 -0
  492. package/dist/restructuredtext-CWy8J51t.js +180 -0
  493. package/dist/ruby-WP-c36m5.js +517 -0
  494. package/dist/rust-Q9FLdYpu.js +349 -0
  495. package/dist/sb-C54-JBGT.js +121 -0
  496. package/dist/scala-CzbFImc5.js +376 -0
  497. package/dist/scheme-BhfDmYN3.js +114 -0
  498. package/dist/scss-CEmiBXpS.js +268 -0
  499. package/dist/shell-Bmc1VhG0.js +227 -0
  500. package/dist/solidity-C9Q2I8Hh.js +1373 -0
  501. package/dist/sophia-jWa1UyKz.js +205 -0
  502. package/dist/sparql-CM7jctbc.js +207 -0
  503. package/dist/sql-WzihTkbg.js +859 -0
  504. package/dist/st-6y7_3aup.js +422 -0
  505. package/dist/stores/CredentialManager.vue.d.ts +50 -0
  506. package/dist/stores/CredentialManager.vue.d.ts.map +1 -0
  507. package/dist/stores/Manager.vue.d.ts +100 -0
  508. package/dist/stores/Manager.vue.d.ts.map +1 -0
  509. package/dist/stores/analyticsStore.d.ts +42 -0
  510. package/dist/stores/analyticsStore.d.ts.map +1 -0
  511. package/dist/stores/chatStore.d.ts +153 -0
  512. package/dist/stores/chatStore.d.ts.map +1 -0
  513. package/dist/stores/communityApiStore.d.ts +206 -0
  514. package/dist/stores/communityApiStore.d.ts.map +1 -0
  515. package/dist/stores/connectionHistoryStore.d.ts +24 -0
  516. package/dist/stores/connectionHistoryStore.d.ts.map +1 -0
  517. package/dist/stores/connectionStore.d.ts +31 -0
  518. package/dist/stores/connectionStore.d.ts.map +1 -0
  519. package/dist/stores/dashboardStore.d.ts +122 -0
  520. package/dist/stores/dashboardStore.d.ts.map +1 -0
  521. package/dist/stores/editorStore.d.ts +44 -0
  522. package/dist/stores/editorStore.d.ts.map +1 -0
  523. package/dist/stores/index.d.ts +14 -0
  524. package/dist/stores/index.d.ts.map +1 -0
  525. package/dist/stores/llmStore.d.ts +90 -0
  526. package/dist/stores/llmStore.d.ts.map +1 -0
  527. package/dist/stores/modelStore.d.ts +29 -0
  528. package/dist/stores/modelStore.d.ts.map +1 -0
  529. package/dist/stores/queryExecutionService.d.ts +60 -0
  530. package/dist/stores/queryExecutionService.d.ts.map +1 -0
  531. package/dist/stores/resolver.d.ts +91 -0
  532. package/dist/stores/resolver.d.ts.map +1 -0
  533. package/dist/stores/urlStore.d.ts +6 -0
  534. package/dist/stores/urlStore.d.ts.map +1 -0
  535. package/dist/stores/useScreenNavigation.d.ts +53 -0
  536. package/dist/stores/useScreenNavigation.d.ts.map +1 -0
  537. package/dist/stores/userSettingsStore.d.ts +133 -0
  538. package/dist/stores/userSettingsStore.d.ts.map +1 -0
  539. package/dist/swift-k-0zxG_D.js +318 -0
  540. package/dist/systemverilog-Pnr5_rIP.js +582 -0
  541. package/dist/tcl-fNPXval8.js +238 -0
  542. package/dist/tsMode-CdypNzs1.js +895 -0
  543. package/dist/twig-L2MkztkV.js +398 -0
  544. package/dist/typescript-DZ5G39rT.js +349 -0
  545. package/dist/typespec-Cqqo-3Pt.js +123 -0
  546. package/dist/useDashboard-CPI83oAm.js +3352 -0
  547. package/dist/utility/debounce.d.ts +12 -0
  548. package/dist/utility/debounce.d.ts.map +1 -0
  549. package/dist/utility/markdownRenderer.d.ts +34 -0
  550. package/dist/utility/markdownRenderer.d.ts.map +1 -0
  551. package/dist/utility/testHelpers.d.ts +2 -0
  552. package/dist/utility/testHelpers.d.ts.map +1 -0
  553. package/dist/vb-B5YC2xN9.js +378 -0
  554. package/dist/views/ConnectionView.vue.d.ts +522 -0
  555. package/dist/views/ConnectionView.vue.d.ts.map +1 -0
  556. package/dist/views/CredentialBackgroundPage.vue.d.ts +3 -0
  557. package/dist/views/CredentialBackgroundPage.vue.d.ts.map +1 -0
  558. package/dist/views/IDEPlaceholder.vue.d.ts +3 -0
  559. package/dist/views/IDEPlaceholder.vue.d.ts.map +1 -0
  560. package/dist/views/LLMView.vue.d.ts +7758 -0
  561. package/dist/views/LLMView.vue.d.ts.map +1 -0
  562. package/dist/views/MobileIDEPlaceholder.vue.d.ts +3 -0
  563. package/dist/views/MobileIDEPlaceholder.vue.d.ts.map +1 -0
  564. package/dist/views/ModelView.vue.d.ts +2170 -0
  565. package/dist/views/ModelView.vue.d.ts.map +1 -0
  566. package/dist/views/ResponsiveIDE.vue.d.ts +3 -0
  567. package/dist/views/ResponsiveIDE.vue.d.ts.map +1 -0
  568. package/dist/views/TutorialPage.vue.d.ts +7835 -0
  569. package/dist/views/TutorialPage.vue.d.ts.map +1 -0
  570. package/dist/views/WelcomePage.vue.d.ts +13 -0
  571. package/dist/views/WelcomePage.vue.d.ts.map +1 -0
  572. package/dist/views/index.d.ts +3 -0
  573. package/dist/views/index.d.ts.map +1 -0
  574. package/dist/vite.config.d.ts +3 -0
  575. package/dist/vite.config.d.ts.map +1 -0
  576. package/dist/vitest.config.d.ts +3 -0
  577. package/dist/vitest.config.d.ts.map +1 -0
  578. package/dist/wgsl-B-_uRex7.js +445 -0
  579. package/dist/xml-DsUsyRQY.js +101 -0
  580. package/dist/yaml-BpA1BNpS.js +212 -0
  581. 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
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./main-oVvKtGNk.js";
2
+ export {
3
+ f as default
4
+ };