@trilogy-data/trilogy-studio-components 0.1.28 → 0.1.30

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 (110) hide show
  1. package/README.md +1 -0
  2. package/dist/AssetAutoImporter-BA8C4p09.js +403 -0
  3. package/dist/{ChatCreatorModal-Cd40SvdM.js → ChatCreatorModal-94gZ9D-y.js} +1 -1
  4. package/dist/{CodeBlock-Dj-GfTbW.js → CodeBlock-C9o09ipr.js} +1 -1
  5. package/dist/{CommunityModels-lX2RhHCG.js → CommunityModels-D48H9Bqt.js} +6 -6
  6. package/dist/{ConnectionView-CZ06qjjE.js → ConnectionView-sEXGE8Vs.js} +5 -5
  7. package/dist/{CreateEditorFromDatasourcePopup-DwA938kf.js → CreateEditorFromDatasourcePopup-BUoegyem.js} +2 -2
  8. package/dist/{Dashboard-CQsIqWZC.js → Dashboard-C6adKZ7q.js} +202 -203
  9. package/dist/{DashboardImportSelector-CkqH52FX.js → DashboardImportSelector-CQqXshDj.js} +1 -1
  10. package/dist/{DashboardMobile-DWFlel5p.js → DashboardMobile-BU1nDLQv.js} +42 -42
  11. package/dist/{Editor-DQ66Vp6v.js → Editor-DO4VRvek.js} +9 -10
  12. package/dist/{ErrorMessage-D5JeF3Iz.js → ErrorMessage-Cz7q7vJI.js} +1 -1
  13. package/dist/{GlobalChatPanel-B_s3COHE.js → GlobalChatPanel-Ct6oSj_A.js} +20 -20
  14. package/dist/{IDE-4-Jg6gsM.js → IDE-kdaEhA4g.js} +19 -20
  15. package/dist/{JobsView-B5NWDUgP.js → JobsView-BcyWrDRf.js} +11 -11
  16. package/dist/{LLMChat-eKgEc-I3.js → LLMChat-Dg8VvTIP.js} +19 -19
  17. package/dist/{LLMView-CdTwMLVV.js → LLMView-CZNNYXC1.js} +61 -61
  18. package/dist/{LoadingView-Bu3wLJ7J.js → LoadingView-k2CIKiN7.js} +1 -1
  19. package/dist/{MarkdownRenderer-B6lqdkgc.js → MarkdownRenderer-Dlb_KGmk.js} +1 -1
  20. package/dist/{MobileIDE-CZlg20oa.js → MobileIDE-BQcdjWUT.js} +26 -27
  21. package/dist/{ModelCard-Bs_d7Jis.js → ModelCard-Dn2b5WLs.js} +5 -5
  22. package/dist/{ModelView-BP5yyecx.js → ModelView-BEi83zrX.js} +6 -6
  23. package/dist/{PageLoading-DKFeqkmK.js → PageLoading-C7H6q6U6.js} +248 -248
  24. package/dist/{ResultComponent-BaDheojB.js → ResultComponent-DW9Q9tp9.js} +5 -5
  25. package/dist/{Results-CrpHB101.js → Results-N2OttUlb.js} +19 -19
  26. package/dist/{StatusIcon-Clfyy-Yn.js → StatusIcon-B21tjIXx.js} +1 -1
  27. package/dist/{StoreTokenModal-CO5hXMs3.js → StoreTokenModal-CHgvjLGl.js} +1 -1
  28. package/dist/{SymbolsPane-XFVErDFb.js → SymbolsPane-DUrLpSSw.js} +11 -11
  29. package/dist/{TutorialPage-CMcTYDOV.js → TutorialPage-DHgPuFN0.js} +11 -11
  30. package/dist/{VegaLiteChart-DX_LbF3g.js → VegaLiteChart-BqHLSptG.js} +11116 -11067
  31. package/dist/{WelcomePage-B6E35FUa.js → WelcomePage-CN6ptsoF.js} +3 -3
  32. package/dist/agent.js +1349 -0
  33. package/dist/components/VegaLiteChart.vue.d.ts.map +1 -1
  34. package/dist/components/chartControlsManager.d.ts +0 -1
  35. package/dist/components/chartControlsManager.d.ts.map +1 -1
  36. package/dist/{cssMode-zpO2ap2B.js → cssMode-DW4OByy3.js} +2 -2
  37. package/dist/dashboard.js +63 -63
  38. package/dist/dashboards/chartTheme.d.ts +68 -0
  39. package/dist/dashboards/chartTheme.d.ts.map +1 -0
  40. package/dist/dashboards/donutSpec.d.ts +2 -1
  41. package/dist/dashboards/donutSpec.d.ts.map +1 -1
  42. package/dist/dashboards/headlineSpec.d.ts +2 -1
  43. package/dist/dashboards/headlineSpec.d.ts.map +1 -1
  44. package/dist/dashboards/helpers.d.ts +23 -0
  45. package/dist/dashboards/helpers.d.ts.map +1 -1
  46. package/dist/dashboards/index.d.ts +2 -0
  47. package/dist/dashboards/index.d.ts.map +1 -1
  48. package/dist/dashboards/layerSpec.d.ts +4 -1
  49. package/dist/dashboards/layerSpec.d.ts.map +1 -1
  50. package/dist/dashboards/pointSpec.d.ts +2 -1
  51. package/dist/dashboards/pointSpec.d.ts.map +1 -1
  52. package/dist/dashboards/spec.d.ts +8 -1
  53. package/dist/dashboards/spec.d.ts.map +1 -1
  54. package/dist/{editor.main-BQh6DxDB.js → editor.main-TuTbSVcN.js} +22 -22
  55. package/dist/{editorStore-CiWH_nGN.js → editorStore-Czhpct1j.js} +1751 -1181
  56. package/dist/entry.agent.d.ts +12 -0
  57. package/dist/entry.agent.d.ts.map +1 -0
  58. package/dist/entry.llm.d.ts +1 -1
  59. package/dist/entry.llm.d.ts.map +1 -1
  60. package/dist/{freemarker2-DQBqlEXc.js → freemarker2-ZGcKAI8o.js} +1 -1
  61. package/dist/{globalChatRuntime-DAERmOdu.js → globalChatRuntime-BnMYNYqe.js} +35 -35
  62. package/dist/{handlebars-tgYxaM70.js → handlebars-B3s0Qrrb.js} +1 -1
  63. package/dist/{helpers-C2pARJoZ.js → helpers-B3tq3RZK.js} +17 -17
  64. package/dist/{html-jJahD3Mi.js → html-DM1koKCG.js} +1 -1
  65. package/dist/{htmlMode-BA1-8l2e.js → htmlMode-CpPImbDh.js} +2 -2
  66. package/dist/{javascript-Cypfo7va.js → javascript-jClqu73w.js} +1 -1
  67. package/dist/{jsonMode-xJye8PWS.js → jsonMode-CwFYTPO9.js} +2 -2
  68. package/dist/{liquid-BGDrv5da.js → liquid-C6l-UINC.js} +1 -1
  69. package/dist/llm/chatAgentPrompt.d.ts +4 -16
  70. package/dist/llm/chatAgentPrompt.d.ts.map +1 -1
  71. package/dist/llm/dashboardAgentRuntime.d.ts +10 -10
  72. package/dist/llm/dashboardAgentTools.d.ts +10 -10
  73. package/dist/llm/data/prompts.d.ts +1 -1
  74. package/dist/llm/data/prompts.d.ts.map +1 -1
  75. package/dist/llm/data/trilogySyntax.generated.d.ts +3 -3
  76. package/dist/llm/data/trilogySyntax.generated.d.ts.map +1 -1
  77. package/dist/llm/returnToUserTool.d.ts +20 -0
  78. package/dist/llm/returnToUserTool.d.ts.map +1 -0
  79. package/dist/llm/toolLoopCore.d.ts +7 -0
  80. package/dist/llm/toolLoopCore.d.ts.map +1 -1
  81. package/dist/llm/utils.d.ts.map +1 -1
  82. package/dist/{llm-Wf4Etiu9.js → llm-Bc1CfjOE.js} +2203 -2722
  83. package/dist/llm.js +3 -3
  84. package/dist/{localStorage-C3xms-ab.js → localStorage-Cy0sHlT0.js} +19 -19
  85. package/dist/{lspLanguageFeatures-V3e_p9oN.js → lspLanguageFeatures-GDtuGOTD.js} +1 -1
  86. package/dist/{mdx-BUR1aImW.js → mdx-BQEQ0k1f.js} +1 -1
  87. package/dist/monaco.js +3 -3
  88. package/dist/{python-YLkl0pc6.js → python-USoVCfWY.js} +1 -1
  89. package/dist/{razor-BP8TRMDY.js → razor-BxmgiR-q.js} +1 -1
  90. package/dist/{reconcile-BH_ReGDR.js → reconcile-DtPcgEjQ.js} +1 -1
  91. package/dist/{remoteStoreSync-B0K8QScO.js → remoteStoreSync-CscErZ-I.js} +2 -2
  92. package/dist/{stores-DTGQZ4_B.js → stores-DgdADCiH.js} +323 -323
  93. package/dist/stores.js +3 -4
  94. package/dist/trilogy-studio-components.css +1 -1
  95. package/dist/{tsMode-BH9HS_sH.js → tsMode-BEQ7aXX4.js} +1 -1
  96. package/dist/{typescript-BM-ynfk9.js → typescript-CzBSjjfY.js} +1 -1
  97. package/dist/{useChatWithTools-BSrzJtYI.js → useChatWithTools-CMhGxdyr.js} +14 -14
  98. package/dist/{useDashboard-CGeIdDuX.js → useDashboard-CjZgjmgb.js} +553 -553
  99. package/dist/{useGlobalChatPanel-D9kMZLeF.js → useGlobalChatPanel-Doeilj18.js} +69 -70
  100. package/dist/views/LLMView.vue.d.ts +23 -23
  101. package/dist/views/TutorialPage.vue.d.ts +10 -10
  102. package/dist/views.js +147 -148
  103. package/dist/vite.agent.config.d.ts +3 -0
  104. package/dist/vite.agent.config.d.ts.map +1 -0
  105. package/dist/{workers-B9Eybl-M.js → workers-CHvkad0r.js} +2 -2
  106. package/dist/{xml-M5WFPSpA.js → xml-ODdyS0gX.js} +1 -1
  107. package/dist/{yaml-CEeFwjz9.js → yaml-PCBTA2qD.js} +1 -1
  108. package/package.json +7 -2
  109. package/dist/AssetAutoImporter-C_7Ms9xe.js +0 -403
  110. package/dist/rolldown-runtime-B0aSnxlc.js +0 -20
@@ -1,14 +1,14 @@
1
- import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
2
- import { c as t, u as n } from "./base-DuKnVD-A.js";
3
- import { Ft as r, It as i, vt as a } from "./llm-Wf4Etiu9.js";
4
- import { h as o } from "./stores-DTGQZ4_B.js";
5
- import { t as s } from "./DashboardImportSelector-CkqH52FX.js";
6
- import { t as c } from "./MarkdownRenderer-B6lqdkgc.js";
7
- import { t as l } from "./SymbolsPane-XFVErDFb.js";
8
- import { t as u } from "./useChatWithTools-BSrzJtYI.js";
9
- import { t as d } from "./CodeBlock-Dj-GfTbW.js";
10
- import { t as f } from "./Results-CrpHB101.js";
11
- import { t as p } from "./LLMChat-eKgEc-I3.js";
1
+ import { Lt as e, Rt as t, bt as n } from "./llm-Bc1CfjOE.js";
2
+ import { t as r } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
3
+ import { c as i, u as a } from "./base-DuKnVD-A.js";
4
+ import { h as o } from "./stores-DgdADCiH.js";
5
+ import { t as s } from "./DashboardImportSelector-CQqXshDj.js";
6
+ import { t as c } from "./MarkdownRenderer-Dlb_KGmk.js";
7
+ import { t as l } from "./SymbolsPane-DUrLpSSw.js";
8
+ import { t as u } from "./useChatWithTools-CMhGxdyr.js";
9
+ import { t as d } from "./CodeBlock-C9o09ipr.js";
10
+ import { t as f } from "./Results-N2OttUlb.js";
11
+ import { t as p } from "./LLMChat-Dg8VvTIP.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({
@@ -33,8 +33,8 @@ var V = 450, H = 25, U = 120, W = 450, G = 20, K = 80, q = 350, J = 800, Y = S({
33
33
  "update:activeArtifactIndex",
34
34
  "unhide-artifact"
35
35
  ],
36
- setup(e, { emit: r }) {
37
- let i = A(/* @__PURE__ */ new Set()), a = A(!1), o = h(() => e.artifacts.map((e, t) => ({
36
+ setup(e, { emit: t }) {
37
+ let n = A(/* @__PURE__ */ new Set()), r = A(!1), o = h(() => e.artifacts.map((e, t) => ({
38
38
  artifact: e,
39
39
  originalIndex: t
40
40
  })).filter(({ artifact: e }) => !e.hidden)), s = h(() => e.artifacts.map((e, t) => ({
@@ -42,11 +42,11 @@ var V = 450, H = 25, U = 120, W = 450, G = 20, K = 80, q = 350, J = 800, Y = S({
42
42
  originalIndex: t
43
43
  })).filter(({ artifact: e }) => e.hidden)), c = (e) => {
44
44
  let t = e.data;
45
- return t instanceof n ? t : t?.headers && t?.data ? n.fromJSON(t) : null;
45
+ return t instanceof a ? t : t?.headers && t?.data ? a.fromJSON(t) : null;
46
46
  }, l = (e) => {
47
47
  if (e.type !== "markdown") return null;
48
48
  let t = e.data?.queryResults;
49
- return t ? t instanceof n ? t : t?.headers && t?.data ? n.fromJSON(t) : null : null;
49
+ return t ? t instanceof a ? t : t?.headers && t?.data ? a.fromJSON(t) : null : null;
50
50
  }, u = (e) => {
51
51
  switch (e.type) {
52
52
  case "results": return "mdi mdi-table";
@@ -58,17 +58,17 @@ var V = 450, H = 25, U = 120, W = 450, G = 20, K = 80, q = 350, J = 800, Y = S({
58
58
  }, d = (e, t) => e.config?.title ? e.config.title : `${e.type === "results" ? "Query Result" : e.type === "chart" ? "Chart" : e.type === "markdown" ? "Markdown" : e.type} #${t + 1}`, f = (e) => {
59
59
  let t = [];
60
60
  return e.config?.resultSize && t.push(`${e.config.resultSize} rows`), e.config?.executionTime && t.push(`${e.config.executionTime}ms`), t.join(" | ");
61
- }, p = (e, t) => e.id || String(t), m = (e, t) => i.value.has(p(e, t)), g = (e, t) => {
62
- let n = p(e, t), a = new Set(i.value);
63
- a.has(n) ? a.delete(n) : (a.add(n), r("update:activeArtifactIndex", t)), i.value = a;
61
+ }, p = (e, t) => e.id || String(t), m = (e, t) => n.value.has(p(e, t)), g = (e, r) => {
62
+ let i = p(e, r), a = new Set(n.value);
63
+ a.has(i) ? a.delete(i) : (a.add(i), t("update:activeArtifactIndex", r)), n.value = a;
64
64
  }, _ = (e) => {
65
- for (let n of e.headers.values()) if (n.type === t.ARRAY || n.type === t.STRUCT) return !0;
65
+ for (let t of e.headers.values()) if (t.type === i.ARRAY || t.type === i.STRUCT) return !0;
66
66
  return !1;
67
67
  };
68
68
  return {
69
69
  visibleArtifacts: o,
70
70
  hiddenArtifacts: s,
71
- showHidden: a,
71
+ showHidden: r,
72
72
  getArtifactResults: c,
73
73
  getMarkdownResults: l,
74
74
  getArtifactIcon: u,
@@ -192,7 +192,7 @@ var he = S({
192
192
  name: "LLMChatSplitView",
193
193
  components: {
194
194
  LLMChat: p,
195
- ArtifactsPane: /* @__PURE__ */ e(Y, [["render", me], ["__scopeId", "data-v-2d83a10c"]]),
195
+ ArtifactsPane: /* @__PURE__ */ r(Y, [["render", me], ["__scopeId", "data-v-2d83a10c"]]),
196
196
  DashboardImportSelector: s,
197
197
  SymbolsPane: l
198
198
  },
@@ -477,7 +477,7 @@ function Te(e, t, n, r, i, a) {
477
477
  }, null, 8, ["symbols", "onSelectSymbol"])])) : _("", !0)])
478
478
  ], 2);
479
479
  }
480
- var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]]), Q = [
480
+ var Ee = /*#__PURE__*/ r(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]]), Q = [
481
481
  {
482
482
  name: "id",
483
483
  type: "int"
@@ -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: a("what were sales for the last 3 months by order date?", Q),
571
+ prompt: n("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: a("what are sales by supplier name and nation?", Q),
581
+ prompt: n("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: a("Who were the top ten customers by sales in august 1995?", Q),
591
+ prompt: n("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: a("Who were the top ten customers by sales in august 1995 who had orders that shipped in october or september?", Q),
605
+ prompt: n("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: a("How many customers are there by country?", Q),
619
+ prompt: n("How many customers are there by country?", Q),
620
620
  expectedResponse: {
621
621
  contains: ["order.customer.id"],
622
622
  mustIdentify: "order.customer.nation.name",
@@ -847,66 +847,66 @@ function nt(e, t, n, r, i, a) {
847
847
  e.testRunDetails[n] ? (k(), v("div", $, P(e.testRunDetails[n].passed) + "/5 runs passed ", 1)) : _("", !0)
848
848
  ], 10, Xe))), 128))])])]);
849
849
  }
850
- var rt = /*#__PURE__*/ e(Oe, [["render", nt], ["__scopeId", "data-v-28356d02"]]);
850
+ var rt = /*#__PURE__*/ r(Oe, [["render", nt], ["__scopeId", "data-v-28356d02"]]);
851
851
  //#endregion
852
852
  //#region chats/publishArtifactsToDashboard.ts
853
- function it(e, t) {
854
- let n = t.name || "Chat Artifacts", r = new i({
855
- id: n,
856
- name: n,
857
- connection: t.connection,
858
- connectionId: t.connectionId || "",
853
+ function it(e, n) {
854
+ let r = n.name || "Chat Artifacts", i = new t({
855
+ id: r,
856
+ name: r,
857
+ connection: n.connection,
858
+ connectionId: n.connectionId || "",
859
859
  storage: "local",
860
860
  state: "editing"
861
861
  });
862
- t.imports && (r.imports = t.imports.map((e) => ({ ...e })));
862
+ n.imports && (i.imports = n.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: 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);
866
+ let { type: n, content: r, name: a, chartConfig: o, height: s } = e, c = i.addItem(n, 0, 0, 20, s, null, a);
867
+ i.gridItems[c].content = r, o && (i.gridItems[c].chartConfig = o);
868
868
  }
869
- return r.changed = !0, r;
869
+ return i.changed = !0, i;
870
870
  }
871
- function at(e) {
872
- switch (e.type) {
871
+ function at(t) {
872
+ switch (t.type) {
873
873
  case "chart": {
874
- let t = e.config?.query || "";
874
+ let n = t.config?.query || "";
875
875
  return {
876
- type: r.CHART,
877
- content: t,
878
- name: e.config?.title || "Chart",
879
- chartConfig: e.config?.chartConfig,
876
+ type: e.CHART,
877
+ content: n,
878
+ name: t.config?.title || "Chart",
879
+ chartConfig: t.config?.chartConfig,
880
880
  height: 10
881
881
  };
882
882
  }
883
883
  case "results": {
884
- let t = e.config?.query || "";
884
+ let n = t.config?.query || "";
885
885
  return {
886
- type: r.TABLE,
887
- content: t,
888
- name: e.config?.title || "Table",
886
+ type: e.TABLE,
887
+ content: n,
888
+ name: t.config?.title || "Table",
889
889
  height: 10
890
890
  };
891
891
  }
892
892
  case "markdown": {
893
- let t = {
894
- markdown: e.data?.markdown || "",
895
- query: e.data?.query || ""
893
+ let n = {
894
+ markdown: t.data?.markdown || "",
895
+ query: t.data?.query || ""
896
896
  };
897
897
  return {
898
- type: r.MARKDOWN,
899
- content: t,
900
- name: e.config?.title || "Markdown",
901
- height: t.query ? 10 : 4
898
+ type: e.MARKDOWN,
899
+ content: n,
900
+ name: t.config?.title || "Markdown",
901
+ height: n.query ? 10 : 4
902
902
  };
903
903
  }
904
904
  case "code": {
905
- let t = `\`\`\`${e.config?.language || "sql"}\n${e.data || ""}\n\`\`\``;
905
+ let n = `\`\`\`${t.config?.language || "sql"}\n${t.data || ""}\n\`\`\``;
906
906
  return {
907
- type: r.MARKDOWN,
908
- content: t,
909
- name: e.config?.title || "Code",
907
+ type: e.MARKDOWN,
908
+ content: n,
909
+ name: t.config?.title || "Code",
910
910
  height: 4
911
911
  };
912
912
  }
@@ -1101,6 +1101,6 @@ function ht(e, t, n, r, i, a) {
1101
1101
  initialProvider: e.initialProvider
1102
1102
  }, null, 8, ["initialProvider"]))]);
1103
1103
  }
1104
- var gt = /*#__PURE__*/ e(ot, [["render", ht], ["__scopeId", "data-v-2a1999fc"]]);
1104
+ var gt = /*#__PURE__*/ r(ot, [["render", ht], ["__scopeId", "data-v-2a1999fc"]]);
1105
1105
  //#endregion
1106
1106
  export { gt as default };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
2
- import { c as t } from "./useGlobalChatPanel-D9kMZLeF.js";
2
+ import { c as t } from "./useGlobalChatPanel-Doeilj18.js";
3
3
  import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, nextTick as c, normalizeClass as l, onBeforeUnmount as u, onMounted as d, openBlock as f, ref as p, toDisplayString as m } from "vue";
4
4
  //#region components/LoadingView.vue?vue&type=script&lang.ts
5
5
  var h = s({
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
2
- import { o as t, s as n } from "./useGlobalChatPanel-D9kMZLeF.js";
2
+ import { o as t, s as n } from "./useGlobalChatPanel-Doeilj18.js";
3
3
  import { computed as r, createElementBlock as i, createElementVNode as a, defineComponent as o, openBlock as s, ref as c } from "vue";
4
4
  //#region node_modules/.pnpm/dompurify@3.4.16/node_modules/dompurify/dist/purify.es.mjs
5
5
  function l(e, t) {
@@ -1,16 +1,15 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
2
- import "./llm-Wf4Etiu9.js";
3
- import { a as t, i as n, l as r, o as i, s as a } from "./stores-DTGQZ4_B.js";
4
- import { tt as o } from "./editorStore-CiWH_nGN.js";
5
- import { u as s } from "./useGlobalChatPanel-D9kMZLeF.js";
6
- import { t as c } from "./ErrorMessage-D5JeF3Iz.js";
7
- import { t as l } from "./LoadingView-Bu3wLJ7J.js";
8
- import { t as u } from "./AssetAutoImporter-C_7Ms9xe.js";
9
- import { t as d } from "./CommunityModels-lX2RhHCG.js";
10
- import { a as f, d as p, f as ee, i as m, n as h, r as g, t as _ } from "./PageLoading-DKFeqkmK.js";
11
- import { t as v } from "./JobsView-B5NWDUgP.js";
12
- import { t as y } from "./ConnectionView-CZ06qjjE.js";
13
- import { t as b } from "./ModelView-BP5yyecx.js";
2
+ import { tt as t } from "./editorStore-Czhpct1j.js";
3
+ import { a as n, i as r, l as i, o as a, s as o } from "./stores-DgdADCiH.js";
4
+ import { u as s } from "./useGlobalChatPanel-Doeilj18.js";
5
+ import { t as c } from "./ErrorMessage-Cz7q7vJI.js";
6
+ import { t as l } from "./LoadingView-k2CIKiN7.js";
7
+ import { t as u } from "./AssetAutoImporter-BA8C4p09.js";
8
+ import { t as d } from "./CommunityModels-D48H9Bqt.js";
9
+ import { a as f, d as p, f as ee, i as m, n as h, r as g, t as _ } from "./PageLoading-C7H6q6U6.js";
10
+ import { t as v } from "./JobsView-BcyWrDRf.js";
11
+ import { t as y } from "./ConnectionView-sEXGE8Vs.js";
12
+ import { t as b } from "./ModelView-BEi83zrX.js";
14
13
  import { Fragment as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as D, createVNode as O, defineAsyncComponent as k, defineComponent as A, inject as j, markRaw as M, nextTick as te, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as F, onMounted as ne, openBlock as I, provide as L, ref as R, renderList as z, renderSlot as B, resolveComponent as V, toDisplayString as H, unref as U, vModelText as re, vShow as W, watch as G, withCtx as K, withDirectives as q, withKeys as J, withModifiers as Y } from "vue";
15
14
  //#region components/layout/TabDropdownItem.vue?vue&type=script&lang.ts
16
15
  var X = 10, Z = 200, ie = {
@@ -369,7 +368,7 @@ var Me = /*#__PURE__*/ e(Te, [["render", je], ["__scopeId", "data-v-046a9e75"]])
369
368
  loader: e,
370
369
  loadingComponent: _,
371
370
  delay: 0
372
- }), Ne = $(() => import("./TutorialPage-CMcTYDOV.js")), Pe = $(() => import("./Editor-DQ66Vp6v.js").then((e) => e.n)), Fe = k(() => import("./useGlobalChatPanel-D9kMZLeF.js").then((e) => e.i)), Ie = $(() => import("./WelcomePage-B6E35FUa.js")), Le = $(() => import("./DashboardMobile-DWFlel5p.js")), Re = k(() => import("./ResultComponent-BaDheojB.js").then((e) => e.n)), ze = $(() => import("./LLMView-CdTwMLVV.js")), Be = k(() => import("./ConnectionErrorPopup-7vpqgF0s.js")), Ve = k(() => import("./ChatCreatorModal-Cd40SvdM.js")), He = A({
371
+ }), Ne = $(() => import("./TutorialPage-DHgPuFN0.js")), Pe = $(() => import("./Editor-DO4VRvek.js").then((e) => e.n)), Fe = k(() => import("./useGlobalChatPanel-Doeilj18.js").then((e) => e.i)), Ie = $(() => import("./WelcomePage-CN6ptsoF.js")), Le = $(() => import("./DashboardMobile-BU1nDLQv.js")), Re = k(() => import("./ResultComponent-DW9Q9tp9.js").then((e) => e.n)), ze = $(() => import("./LLMView-CZNNYXC1.js")), Be = k(() => import("./ConnectionErrorPopup-7vpqgF0s.js")), Ve = k(() => import("./ChatCreatorModal-94gZ9D-y.js")), He = A({
373
372
  name: "MobileIDEComponent",
374
373
  data() {
375
374
  return {
@@ -404,10 +403,10 @@ var Me = /*#__PURE__*/ e(Te, [["render", je], ["__scopeId", "data-v-046a9e75"]])
404
403
  ConnectionErrorPopup: Be
405
404
  },
406
405
  setup() {
407
- let e = j("connectionStore"), r = j("editorStore"), i = j("modelStore"), a = j("dashboardStore"), o = j("trilogyResolver"), s = j("queryExecutionService"), c = j("storesLoaded", R(!0)), l = j("saveEditors"), u = j("saveConnections"), d = j("saveModels"), f = j("saveDashboards");
408
- if (!r || !e || !a || !o || !i || !u || !d || !f) throw Error("Requires injection of connection store, editor store, model store, editors, connections, and models saving.");
406
+ let e = j("connectionStore"), t = j("editorStore"), i = j("modelStore"), a = j("dashboardStore"), o = j("trilogyResolver"), s = j("queryExecutionService"), c = j("storesLoaded", R(!0)), l = j("saveEditors"), u = j("saveConnections"), d = j("saveModels"), f = j("saveDashboards");
407
+ if (!t || !e || !a || !o || !i || !u || !d || !f) throw Error("Requires injection of connection store, editor store, model store, editors, connections, and models saving.");
409
408
  l ||= () => {};
410
- let p = t(), ee = R(null), m = n(), { activeScreen: h, activeEditor: g, activeTab: _, activeDashboard: v, activeSidebarScreen: y, setActiveScreen: b, setActiveSidebarScreen: x, setActiveEditor: S, setActiveDashboard: C, activeConnectionKey: w, activeModelKey: T, activeDocumentationKey: E, setActiveConnectionKey: D, setActiveModelKey: O, setActiveDocumentationKey: k, activeLLMConnectionKey: A, setActiveLLMConnectionKey: M, activeCommunityModelKey: te, activeJobsKey: N, setActiveJobsKey: P, mobileMenuOpen: I, toggleMobileMenu: z, tabs: B, closeTab: V, closeOtherTabsExcept: H, openTab: U, addBackListeners: re, removeBacklisteners: W, onInitialLoad: G, updateTabName: K } = p, q = (e) => {
409
+ let p = n(), ee = R(null), m = r(), { activeScreen: h, activeEditor: g, activeTab: _, activeDashboard: v, activeSidebarScreen: y, setActiveScreen: b, setActiveSidebarScreen: x, setActiveEditor: S, setActiveDashboard: C, activeConnectionKey: w, activeModelKey: T, activeDocumentationKey: E, setActiveConnectionKey: D, setActiveModelKey: O, setActiveDocumentationKey: k, activeLLMConnectionKey: A, setActiveLLMConnectionKey: M, activeCommunityModelKey: te, activeJobsKey: N, setActiveJobsKey: P, mobileMenuOpen: I, toggleMobileMenu: z, tabs: B, closeTab: V, closeOtherTabsExcept: H, openTab: U, addBackListeners: re, removeBacklisteners: W, onInitialLoad: G, updateTabName: K } = p, q = (e) => {
411
410
  U(e.screen, null, e.address);
412
411
  }, J = (e) => {
413
412
  V(e, null);
@@ -427,7 +426,7 @@ var Me = /*#__PURE__*/ e(Te, [["render", je], ["__scopeId", "data-v-046a9e75"]])
427
426
  window.visualViewport?.removeEventListener("resize", Q);
428
427
  }), {
429
428
  connectionStore: e,
430
- editorStore: r,
429
+ editorStore: t,
431
430
  storesLoaded: c,
432
431
  dashboardStore: a,
433
432
  trilogyResolver: o,
@@ -518,15 +517,15 @@ var Me = /*#__PURE__*/ e(Te, [["render", je], ["__scopeId", "data-v-046a9e75"]])
518
517
  this.editorRef?.setContent(e);
519
518
  },
520
519
  updateActiveEditorName(e) {
521
- let t = this.activeEditor;
522
- if (!t) return;
523
- let n = this.editorStore.editors[t];
524
- if (n) {
525
- if (this.editorStore.updateEditorName(t, e), n.tags.includes(o.SOURCE)) {
526
- let t = n.connectionId ? this.connectionStore.connections[n.connectionId] : this.connectionStore.connectionByName(n.connection);
527
- t?.model && (this.modelStore.models[t.model].updateModelSourceName(n.id, e), this.saveModels());
520
+ let n = this.activeEditor;
521
+ if (!n) return;
522
+ let r = this.editorStore.editors[n];
523
+ if (r) {
524
+ if (this.editorStore.updateEditorName(n, e), r.tags.includes(t.SOURCE)) {
525
+ let t = r.connectionId ? this.connectionStore.connections[r.connectionId] : this.connectionStore.connectionByName(r.connection);
526
+ t?.model && (this.modelStore.models[t.model].updateModelSourceName(r.id, e), this.saveModels());
528
527
  }
529
- this.updateTabName("editors", null, t);
528
+ this.updateTabName("editors", null, n);
530
529
  }
531
530
  },
532
531
  saveEditorsCall() {
@@ -540,13 +539,13 @@ var Me = /*#__PURE__*/ e(Te, [["render", je], ["__scopeId", "data-v-046a9e75"]])
540
539
  });
541
540
  },
542
541
  maybeStartDemoFromHash() {
543
- return a(i.DEMO, "") === "true" ? this.launchDemo() : Promise.resolve();
542
+ return o(a.DEMO, "") === "true" ? this.launchDemo() : Promise.resolve();
544
543
  },
545
544
  async launchDemo() {
546
545
  if (!this.demoLaunchInFlight) {
547
546
  this.demoLaunchInFlight = !0, this.demoLaunchError = "";
548
547
  try {
549
- await this.waitForStoresLoaded(), await this.startDemo(), r(i.DEMO);
548
+ await this.waitForStoresLoaded(), await this.startDemo(), i(a.DEMO);
550
549
  } catch (e) {
551
550
  console.error("Demo setup failed:", e), this.demoLaunchError = e instanceof Error ? e.message : String(e);
552
551
  } finally {
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
2
- import { gn as t, mn as n } from "./llm-Wf4Etiu9.js";
3
- import "./stores-DTGQZ4_B.js";
4
- import { a as r, u as i } from "./useGlobalChatPanel-D9kMZLeF.js";
5
- import { t as a } from "./ErrorMessage-D5JeF3Iz.js";
6
- import { t as o } from "./Editor-DQ66Vp6v.js";
2
+ import { _t as t, ht as n } from "./editorStore-Czhpct1j.js";
3
+ import "./stores-DgdADCiH.js";
4
+ import { a as r, u as i } from "./useGlobalChatPanel-Doeilj18.js";
5
+ import { t as a } from "./ErrorMessage-Cz7q7vJI.js";
6
+ import { t as o } from "./Editor-DO4VRvek.js";
7
7
  import { Fragment as s, computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, inject as h, nextTick as g, normalizeClass as _, onBeforeUnmount as v, onMounted as y, openBlock as b, ref as x, renderList as S, resolveComponent as C, toDisplayString as w, vModelSelect as T, vModelText as E, watch as D, withCtx as O, withDirectives as k, withKeys as A, withModifiers as j } from "vue";
8
8
  //#region components/model/ModelConcept.vue?vue&type=script&setup=true&lang.ts
9
9
  var M = { class: "concept-container" }, ee = { class: "concept-header" }, te = { class: "namespace-badge" }, N = { class: "concept-content" }, P = {
@@ -1,10 +1,10 @@
1
- import { n as e } from "./rolldown-runtime-B0aSnxlc.js";
1
+ import { pn as e } from "./llm-Bc1CfjOE.js";
2
2
  import { t } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
3
- import { gn as n } from "./llm-Wf4Etiu9.js";
4
- import { u as r } from "./useGlobalChatPanel-D9kMZLeF.js";
5
- import { t as i } from "./ErrorMessage-D5JeF3Iz.js";
6
- import { t as a } from "./Editor-DQ66Vp6v.js";
7
- import { n as o, t as s } from "./ModelCard-Bs_d7Jis.js";
3
+ import { _t as n } from "./editorStore-Czhpct1j.js";
4
+ import { u as r } from "./useGlobalChatPanel-Doeilj18.js";
5
+ import { t as i } from "./ErrorMessage-Cz7q7vJI.js";
6
+ import { t as a } from "./Editor-DO4VRvek.js";
7
+ import { n as o, t as s } from "./ModelCard-Dn2b5WLs.js";
8
8
  import { createCommentVNode as c, createElementBlock as l, createVNode as u, defineComponent as d, inject as f, openBlock as p, ref as m, resolveComponent as h } from "vue";
9
9
  //#region views/ModelView.vue?vue&type=script&lang.ts
10
10
  var g = d({