@trilogy-data/trilogy-studio-components 0.1.24 → 0.1.26
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 +5 -0
- package/dist/AssetAutoImporter-CBzvBaOt.js +405 -0
- package/dist/ChatCreatorModal-CL-jBnc3.js +218 -0
- package/dist/ChatModelSelect-Do-VRUFc.js +40 -0
- package/dist/{CommunityModels-CsDDXyIL.js → CommunityModels-Cmro0hV3.js} +101 -70
- package/dist/{Dashboard-BJfgRfRy.js → Dashboard-BH9ZwMVJ.js} +8 -8
- package/dist/{DashboardCreatorInline-wAlx6oH7.js → DashboardCreatorInline-CDU7kLy3.js} +3 -3
- package/dist/{DashboardImportSelector-D6ufVZIk.js → DashboardImportSelector-DQSvu9T-.js} +1 -1
- package/dist/{DashboardMobile-DoOyBHN7.js → DashboardMobile-BUPtdN2V.js} +4 -4
- package/dist/{Editor-Bs-h7edF.js → Editor-DQsYpkwl.js} +6 -6
- package/dist/{GlobalChatPanel-YsDZGxg8.js → GlobalChatPanel-DhnOaige.js} +155 -119
- package/dist/{IDE-CLF-KH2r.js → IDE-HLa8vybk.js} +9 -9
- package/dist/{JobsView-D1pp2xi5.js → JobsView-B97HBoIE.js} +8 -8
- package/dist/{LLMChat-CwM_brSg.js → LLMChat-CxJcPLEG.js} +1 -1
- package/dist/{LLMView-BiwCZb3Q.js → LLMView-C1MUf0c2.js} +21 -21
- package/dist/{MobileIDE-DrWh_OlB.js → MobileIDE-BpqXoaMR.js} +258 -253
- package/dist/{ModelCard-CsW4UwZI.js → ModelCard-BhN25jaV.js} +10 -10
- package/dist/{ModelCreator-C2douDis.js → ModelCreator-CCdC7EXt.js} +1 -1
- package/dist/{ModelView-D7ENFV2U.js → ModelView-DUDA_PtZ.js} +3 -3
- package/dist/{PageLoading-C5WK5i5Y.js → PageLoading-BzniJM0C.js} +622 -619
- package/dist/{ResultComponent-1MQlbELb.js → ResultComponent-CAn_r3BL.js} +3 -3
- package/dist/{Results-DXIYS4iW.js → Results-BJtlwebY.js} +3 -3
- package/dist/{SymbolsPane-BM6dUN-h.js → SymbolsPane-KYSwN9Sv.js} +1 -1
- package/dist/{TutorialPage-HXbXCznh.js → TutorialPage-NRcee6Dx.js} +8 -8
- package/dist/{VegaLiteChart-CS4h_t-K.js → VegaLiteChart-D1slfOUY.js} +11227 -11195
- package/dist/{WelcomePage-CLKvAvk-.js → WelcomePage-D5mU2x1L.js} +1 -1
- package/dist/components/AssetAutoImporter.vue.d.ts.map +1 -1
- package/dist/components/TipsCTA.vue.d.ts +1 -1
- package/dist/components/VegaLiteChart.vue.d.ts.map +1 -1
- package/dist/components/chartHelpers.d.ts +9 -1
- package/dist/components/chartHelpers.d.ts.map +1 -1
- package/dist/components/chartRenderManager.d.ts +4 -1
- package/dist/components/chartRenderManager.d.ts.map +1 -1
- package/dist/components/community/AddStoreModal.vue.d.ts +1 -1
- package/dist/components/community/AddStoreModal.vue.d.ts.map +1 -1
- package/dist/components/community/CommunityModelCard.vue.d.ts.map +1 -1
- package/dist/components/editor/Editor.vue.d.ts.map +1 -1
- package/dist/components/jobs/JobsAddStoreModal.vue.d.ts.map +1 -1
- package/dist/components/llm/ChatCreatorModal.vue.d.ts +17 -1
- package/dist/components/llm/ChatCreatorModal.vue.d.ts.map +1 -1
- package/dist/components/llm/ChatModelSelect.vue.d.ts +13 -0
- package/dist/components/llm/ChatModelSelect.vue.d.ts.map +1 -0
- package/dist/components/llm/GlobalChatPanel.vue.d.ts.map +1 -1
- package/dist/components/sidebar/CommunityModelList.vue.d.ts +33 -50
- package/dist/components/sidebar/CommunityModelList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/CommunityModelListItem.vue.d.ts.map +1 -1
- package/dist/components/sidebar/EditorList.vue.d.ts +32 -49
- package/dist/components/sidebar/EditorList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/Sidebar.vue.d.ts +65 -99
- package/dist/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/dashboard.js +52 -52
- package/dist/{dashboardStore-BzmI4OCV.js → dashboardStore-ppM6nGks.js} +33 -33
- package/dist/dashboards/layerSpec.d.ts +38 -4
- package/dist/dashboards/layerSpec.d.ts.map +1 -1
- package/dist/dashboards/lineAreaSpec.d.ts +8 -80
- package/dist/dashboards/lineAreaSpec.d.ts.map +1 -1
- package/dist/dashboards/mapSpec.d.ts +1 -0
- package/dist/dashboards/mapSpec.d.ts.map +1 -1
- package/dist/dashboards/spec.d.ts.map +1 -1
- package/dist/data/tutorial/documentation.d.ts.map +1 -1
- package/dist/data/tutorial/startupScripts.d.ts +3 -0
- package/dist/data/tutorial/startupScripts.d.ts.map +1 -0
- package/dist/{demoSetup-vmiMeH4_.js → demoSetup-mwa-RDC6.js} +19 -18
- package/dist/{editorRefinementRuntime-hC3u8GMO.js → editorRefinementRuntime-DoP9P5J2.js} +892 -871
- package/dist/{editorRefinementToolExecutor-Bomrpmns.js → editorRefinementToolExecutor-CVY3FA7k.js} +392 -267
- package/dist/{editorStore-Bj3Qnatp.js → editorStore-BhhmXbi-.js} +230 -183
- package/dist/entry.dashboard.d.ts +1 -0
- package/dist/entry.dashboard.d.ts.map +1 -1
- package/dist/{globalChatRuntime-DXI2KyGn.js → globalChatRuntime-DWZxeS57.js} +13 -13
- package/dist/{helpers-CFp2QCvv.js → helpers-BLQAgX3C.js} +17 -16
- package/dist/llm/chatAgentPrompt.d.ts.map +1 -1
- package/dist/llm/data/constants.d.ts +1 -1
- package/dist/llm/data/constants.d.ts.map +1 -1
- package/dist/llm/data/trilogySyntax.generated.d.ts +7 -1
- package/dist/llm/data/trilogySyntax.generated.d.ts.map +1 -1
- package/dist/llm/docsIndex.d.ts.map +1 -1
- package/dist/llm/openai.d.ts +2 -1
- package/dist/llm/openai.d.ts.map +1 -1
- package/dist/{llm-BuEsqH9Q.js → llm-BBOVWb-F.js} +7 -5
- package/dist/llm.js +3 -3
- package/dist/{llmStore-x5lRrKgx.js → llmStore-DJM2JhzY.js} +2 -2
- package/dist/{localStorage-C-ZtI6YA.js → localStorage-D9uyOFEO.js} +14 -14
- package/dist/models/helpers.d.ts.map +1 -1
- package/dist/monaco.js +1 -1
- package/dist/{reconcile-E5LR5p_f.js → reconcile-Dyf4UZmj.js} +1 -1
- package/dist/{remoteStoreSync-MwuJpHHt.js → remoteStoreSync-Z-yjlYtI.js} +1 -1
- package/dist/remotes/displayHelpers.d.ts.map +1 -1
- package/dist/remotes/genericStoreMetadata.d.ts +1 -0
- package/dist/remotes/genericStoreMetadata.d.ts.map +1 -1
- package/dist/remotes/models.d.ts +37 -5
- package/dist/remotes/models.d.ts.map +1 -1
- package/dist/remotes/staticStorePresets.d.ts +22 -0
- package/dist/remotes/staticStorePresets.d.ts.map +1 -0
- package/dist/remotes/storeService.d.ts +25 -4
- package/dist/remotes/storeService.d.ts.map +1 -1
- package/dist/stores/communityApiStore.d.ts +32 -60
- package/dist/stores/communityApiStore.d.ts.map +1 -1
- package/dist/stores/connectionStore.d.ts.map +1 -1
- package/dist/stores/resolver.d.ts +5 -0
- package/dist/stores/resolver.d.ts.map +1 -1
- package/dist/stores/urlStore.d.ts +1 -0
- package/dist/stores/urlStore.d.ts.map +1 -1
- package/dist/{stores-D-gHjj-_.js → stores-BT9hTLny.js} +47 -47
- package/dist/stores.js +7 -7
- package/dist/trilogy-studio-components.css +1 -1
- package/dist/{urlStore-Dgmwx1YI.js → urlStore-52HG6lsX.js} +1 -0
- package/dist/{useChatWithTools-BlCJrJT7.js → useChatWithTools-B0HZ_DVh.js} +1 -1
- package/dist/{useDashboard-CVlbV17V.js → useDashboard-CdSnPe_6.js} +186 -186
- package/dist/{useGlobalChatPanel-CNARTFYu.js → useGlobalChatPanel-D_0luajQ.js} +2 -2
- package/dist/views/MobileIDE.vue.d.ts.map +1 -1
- package/dist/views/TutorialPage.vue.d.ts +32 -49
- package/dist/views/TutorialPage.vue.d.ts.map +1 -1
- package/dist/views.js +16 -16
- package/package.json +1 -1
- package/dist/AssetAutoImporter-BD1P91Hq.js +0 -403
- package/dist/ChatCreatorModal-BTqY06B6.js +0 -177
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { r as t, t as n } from "./results-DTgAKr5j.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as o } from "./llmStore-
|
|
5
|
-
import { t as s } from "./DashboardImportSelector-
|
|
3
|
+
import { Ot as r, _t as i, kt as a } from "./editorRefinementToolExecutor-CVY3FA7k.js";
|
|
4
|
+
import { t as o } from "./llmStore-DJM2JhzY.js";
|
|
5
|
+
import { t as s } from "./DashboardImportSelector-DQSvu9T-.js";
|
|
6
6
|
import { t as c } from "./MarkdownRenderer-BNDuEyG-.js";
|
|
7
|
-
import { t as l } from "./SymbolsPane-
|
|
8
|
-
import { t as u } from "./useChatWithTools-
|
|
7
|
+
import { t as l } from "./SymbolsPane-KYSwN9Sv.js";
|
|
8
|
+
import { t as u } from "./useChatWithTools-B0HZ_DVh.js";
|
|
9
9
|
import { t as d } from "./CodeBlock-PT4no49I.js";
|
|
10
|
-
import { t as f } from "./Results-
|
|
11
|
-
import { t as p } from "./LLMChat-
|
|
10
|
+
import { t as f } from "./Results-BJtlwebY.js";
|
|
11
|
+
import { t as p } from "./LLMChat-CxJcPLEG.js";
|
|
12
12
|
import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, guardReactiveProps as C, inject as w, nextTick as T, normalizeClass as E, normalizeProps as D, normalizeStyle as O, onMounted as ee, openBlock as k, ref as A, renderList as j, renderSlot as M, resolveComponent as N, toDisplayString as P, vModelSelect as te, vModelText as F, vShow as I, watch as L, withCtx as R, withDirectives as z, withKeys as ne, withModifiers as B } from "vue";
|
|
13
13
|
//#region components/llm/ArtifactsPane.vue?vue&type=script&lang.ts
|
|
14
14
|
var V = 450, H = 25, U = 120, W = 450, G = 20, K = 80, q = 350, J = 800, Y = S({
|
|
@@ -568,7 +568,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]])
|
|
|
568
568
|
{
|
|
569
569
|
name: "Basic Query",
|
|
570
570
|
description: "Tests if the LLM can create a simple trilogy query from user input.",
|
|
571
|
-
prompt:
|
|
571
|
+
prompt: i("what were sales for the last 3 months by order date?", Q),
|
|
572
572
|
expectedResponse: {
|
|
573
573
|
contains: ["extended_price"],
|
|
574
574
|
mustIdentify: "order.date",
|
|
@@ -578,7 +578,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]])
|
|
|
578
578
|
{
|
|
579
579
|
name: "Aggregate Query",
|
|
580
580
|
description: "Tests if the LLM can generate an aggregate query.",
|
|
581
|
-
prompt:
|
|
581
|
+
prompt: i("what are sales by supplier name and nation?", Q),
|
|
582
582
|
expectedResponse: {
|
|
583
583
|
contains: ["extended_price"],
|
|
584
584
|
mustIdentify: "supplier.nation.name",
|
|
@@ -588,7 +588,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]])
|
|
|
588
588
|
{
|
|
589
589
|
name: "Complex Query",
|
|
590
590
|
description: "Tests for a more complex query, with limits and ordering.",
|
|
591
|
-
prompt:
|
|
591
|
+
prompt: i("Who were the top ten customers by sales in august 1995?", Q),
|
|
592
592
|
expectedResponse: {
|
|
593
593
|
contains: [
|
|
594
594
|
"extended_price",
|
|
@@ -602,7 +602,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]])
|
|
|
602
602
|
{
|
|
603
603
|
name: "Multi-part Conditions",
|
|
604
604
|
description: "Tests for a query that includes multiple conditions.",
|
|
605
|
-
prompt:
|
|
605
|
+
prompt: i("Who were the top ten customers by sales in august 1995 who had orders that shipped in october or september?", Q),
|
|
606
606
|
expectedResponse: {
|
|
607
607
|
contains: [
|
|
608
608
|
"extended_price",
|
|
@@ -616,7 +616,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]])
|
|
|
616
616
|
{
|
|
617
617
|
name: "Test Count(*) Handling",
|
|
618
618
|
description: "Test proper counting of identifiers",
|
|
619
|
-
prompt:
|
|
619
|
+
prompt: i("How many customers are there by country?", Q),
|
|
620
620
|
expectedResponse: {
|
|
621
621
|
contains: ["order.customer.id"],
|
|
622
622
|
mustIdentify: "order.customer.nation.name",
|
|
@@ -851,7 +851,7 @@ var rt = /*#__PURE__*/ e(Oe, [["render", nt], ["__scopeId", "data-v-28356d02"]])
|
|
|
851
851
|
//#endregion
|
|
852
852
|
//#region chats/publishArtifactsToDashboard.ts
|
|
853
853
|
function it(e, t) {
|
|
854
|
-
let n = t.name || "Chat Artifacts",
|
|
854
|
+
let n = t.name || "Chat Artifacts", r = new a({
|
|
855
855
|
id: n,
|
|
856
856
|
name: n,
|
|
857
857
|
connection: t.connection,
|
|
@@ -859,21 +859,21 @@ function it(e, t) {
|
|
|
859
859
|
storage: "local",
|
|
860
860
|
state: "editing"
|
|
861
861
|
});
|
|
862
|
-
t.imports && (
|
|
862
|
+
t.imports && (r.imports = t.imports.map((e) => ({ ...e })));
|
|
863
863
|
for (let t of e) {
|
|
864
864
|
let e = at(t);
|
|
865
865
|
if (!e) continue;
|
|
866
|
-
let { type: n, content:
|
|
867
|
-
|
|
866
|
+
let { type: n, content: i, name: a, chartConfig: o, height: s } = e, c = r.addItem(n, 0, 0, 20, s, null, a);
|
|
867
|
+
r.gridItems[c].content = i, o && (r.gridItems[c].chartConfig = o);
|
|
868
868
|
}
|
|
869
|
-
return
|
|
869
|
+
return r.changed = !0, r;
|
|
870
870
|
}
|
|
871
871
|
function at(e) {
|
|
872
872
|
switch (e.type) {
|
|
873
873
|
case "chart": {
|
|
874
874
|
let t = e.config?.query || "";
|
|
875
875
|
return {
|
|
876
|
-
type:
|
|
876
|
+
type: r.CHART,
|
|
877
877
|
content: t,
|
|
878
878
|
name: e.config?.title || "Chart",
|
|
879
879
|
chartConfig: e.config?.chartConfig,
|
|
@@ -883,7 +883,7 @@ function at(e) {
|
|
|
883
883
|
case "results": {
|
|
884
884
|
let t = e.config?.query || "";
|
|
885
885
|
return {
|
|
886
|
-
type:
|
|
886
|
+
type: r.TABLE,
|
|
887
887
|
content: t,
|
|
888
888
|
name: e.config?.title || "Table",
|
|
889
889
|
height: 10
|
|
@@ -895,7 +895,7 @@ function at(e) {
|
|
|
895
895
|
query: e.data?.query || ""
|
|
896
896
|
};
|
|
897
897
|
return {
|
|
898
|
-
type:
|
|
898
|
+
type: r.MARKDOWN,
|
|
899
899
|
content: t,
|
|
900
900
|
name: e.config?.title || "Markdown",
|
|
901
901
|
height: t.query ? 10 : 4
|
|
@@ -904,7 +904,7 @@ function at(e) {
|
|
|
904
904
|
case "code": {
|
|
905
905
|
let t = `\`\`\`${e.config?.language || "sql"}\n${e.data || ""}\n\`\`\``;
|
|
906
906
|
return {
|
|
907
|
-
type:
|
|
907
|
+
type: r.MARKDOWN,
|
|
908
908
|
content: t,
|
|
909
909
|
name: e.config?.title || "Code",
|
|
910
910
|
height: 4
|