@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,5 +1,5 @@
1
+ import "./llm-Bc1CfjOE.js";
1
2
  import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
2
- import "./llm-Wf4Etiu9.js";
3
3
  import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, normalizeClass as s, onMounted as c, onUnmounted as l, openBlock as u, ref as d, renderList as f, toDisplayString as p, unref as m, vModelText as h, watch as g, withDirectives as _, withModifiers as v } from "vue";
4
4
  //#region composables/useClickOutside.ts
5
5
  function y(e) {
@@ -1,9 +1,9 @@
1
- import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
2
- import { n as t, o as n, s as r } from "./config-DwTONafa.js";
3
- import { Ft as i, sn as a, un as o } from "./llm-Wf4Etiu9.js";
4
- import { p as ee } from "./stores-DTGQZ4_B.js";
5
- import { n as te } from "./useGlobalChatPanel-D9kMZLeF.js";
6
- import { a as s, i as c, m as l, n as u, o as d, r as f, s as ne, t as re } from "./useDashboard-CGeIdDuX.js";
1
+ import { Lt as e, fn as t, ln as n } from "./llm-Bc1CfjOE.js";
2
+ import { t as r } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
3
+ import { n as i, o as a, s as o } from "./config-DwTONafa.js";
4
+ import { p as ee } from "./stores-DgdADCiH.js";
5
+ import { n as te } from "./useGlobalChatPanel-Doeilj18.js";
6
+ import { a as s, i as c, m as l, n as u, o as d, r as f, s as ne, t as re } from "./useDashboard-CjZgjmgb.js";
7
7
  import { Fragment as p, Teleport 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, inject as ie, nextTick as ae, normalizeClass as oe, normalizeStyle as C, openBlock as w, renderList as se, toDisplayString as ce, unref as T } from "vue";
8
8
  //#region components/dashboard/DashboardMobile.vue?vue&type=script&setup=true&lang.ts
9
9
  var E = {
@@ -15,15 +15,15 @@ var E = {
15
15
  }, O = ["data-i"], k = {
16
16
  key: 1,
17
17
  class: "dashboard-not-found"
18
- }, A = 400, j = 120, M = /*#__PURE__*/ e(/* @__PURE__ */ S({
18
+ }, A = 400, j = 120, M = /*#__PURE__*/ r(/* @__PURE__ */ S({
19
19
  __name: "DashboardMobile",
20
20
  props: {
21
21
  name: {},
22
22
  connectionId: {},
23
23
  viewMode: { type: Boolean }
24
24
  },
25
- setup(e) {
26
- let S = e, M = ee(), N = h(() => {
25
+ setup(r) {
26
+ let S = r, M = ee(), N = h(() => {
27
27
  let e = Object.values(M.dashboards).find((e) => e.id === S.name);
28
28
  if (!e && S.connectionId) try {
29
29
  return M.newDashboard(S.name, S.connectionId);
@@ -40,16 +40,16 @@ var E = {
40
40
  dimensionsUpdate: (e) => Q(e),
41
41
  triggerResize: () => $(),
42
42
  fullScreen: () => {}
43
- }), De = ie("userSettingsStore", null), Oe = n(De), ke = r(), X = h(() => o({
43
+ }), De = ie("userSettingsStore", null), Oe = a(De), ke = o(), X = h(() => t({
44
44
  theme: N.value?.theme,
45
45
  mode: Oe.value
46
- })), Z = h(() => a(X.value.vars, t(ke.value?.theme)?.variables));
47
- function Q(e) {
46
+ })), Z = h(() => n(X.value.vars, i(ke.value?.theme)?.variables));
47
+ function Q(t) {
48
48
  if (!N.value) return;
49
- let t = document.querySelector(`.mobile-item[data-i="${e}"] .grid-item-content`);
50
- if (t) {
51
- let n = t.getBoundingClientRect(), r = J(e, N.value.id).type === i.SECTION_HEADER ? 0 : 36, a = Math.floor(n.width), o = Math.floor(n.height - r);
52
- N.value.id && Y(e, N.value.id, {
49
+ let n = document.querySelector(`.mobile-item[data-i="${t}"] .grid-item-content`);
50
+ if (n) {
51
+ let r = n.getBoundingClientRect(), i = J(t, N.value.id).type === e.SECTION_HEADER ? 0 : 36, a = Math.floor(r.width), o = Math.floor(r.height - i);
52
+ N.value.id && Y(t, N.value.id, {
53
53
  width: a,
54
54
  height: o
55
55
  });
@@ -63,25 +63,25 @@ var E = {
63
63
  function Ae(e) {
64
64
  return "100%";
65
65
  }
66
- function je(e) {
67
- let t = Math.min(window.innerWidth, 400);
68
- if (!N.value || !N.value.gridItems[e.i]) return `${t}px`;
69
- let n = J(e.i, N.value.id);
70
- if (n.type === i.MARKDOWN) return "100%";
71
- if (n.type === i.FILTER) return `${j}px`;
72
- let r = X.value.rowHeight;
73
- if (n.type === i.SECTION_HEADER) return `${Math.max(e.h * r + 4, 36)}px`;
74
- if (n.type === i.FREEFORM) return `${Math.max(e.h * r, t)}px`;
75
- if (n.type === i.CHART && n.chartConfig?.chartType === "headline" && n.width) return `${Math.max(n.width / 2, t)}px`;
76
- let a = n.type === i.CHART ? 1200 : 600;
77
- if (n.width && n.height) {
78
- let r = e.h / (e.w * 2), i = window.innerWidth - 50;
79
- ["point", "barh"].includes(n.chartConfig?.chartType || "") && (r *= 1.2);
80
- let o = i * r;
81
- return `${Math.max(Math.min(o, a), t)}px`;
66
+ function je(t) {
67
+ let n = Math.min(window.innerWidth, 400);
68
+ if (!N.value || !N.value.gridItems[t.i]) return `${n}px`;
69
+ let r = J(t.i, N.value.id);
70
+ if (r.type === e.MARKDOWN) return "100%";
71
+ if (r.type === e.FILTER) return `${j}px`;
72
+ let i = X.value.rowHeight;
73
+ if (r.type === e.SECTION_HEADER) return `${Math.max(t.h * i + 4, 36)}px`;
74
+ if (r.type === e.FREEFORM) return `${Math.max(t.h * i, n)}px`;
75
+ if (r.type === e.CHART && r.chartConfig?.chartType === "headline" && r.width) return `${Math.max(r.width / 2, n)}px`;
76
+ let a = r.type === e.CHART ? 1200 : 600;
77
+ if (r.width && r.height) {
78
+ let e = t.h / (t.w * 2), i = window.innerWidth - 50;
79
+ ["point", "barh"].includes(r.chartConfig?.chartType || "") && (e *= 1.2);
80
+ let o = i * e;
81
+ return `${Math.max(Math.min(o, a), n)}px`;
82
82
  }
83
- let o = e.h / e.w;
84
- return `${Math.max(Math.min(o * 12 * r, a), A)}px`;
83
+ let o = t.h / t.w;
84
+ return `${Math.max(Math.min(o * 12 * i, a), A)}px`;
85
85
  }
86
86
  function Me(e) {
87
87
  fe(e), ae(() => {
@@ -159,17 +159,17 @@ var E = {
159
159
  "onClearFilter",
160
160
  "onThemeChange"
161
161
  ]),
162
- N.value && T(P).length === 0 ? (w(), v("div", E, [x(u, { "dashboard-id": N.value.id }, null, 8, ["dashboard-id"])])) : (w(), v("div", D, [(w(!0), v(p, null, se(T(P), (e) => (w(), v("div", {
163
- key: e.i,
164
- "data-i": e.i,
165
- class: oe(["mobile-item", { "mobile-item-filter": T(J)(e.i, N.value.id).type === T(i).FILTER }]),
162
+ N.value && T(P).length === 0 ? (w(), v("div", E, [x(u, { "dashboard-id": N.value.id }, null, 8, ["dashboard-id"])])) : (w(), v("div", D, [(w(!0), v(p, null, se(T(P), (t) => (w(), v("div", {
163
+ key: t.i,
164
+ "data-i": t.i,
165
+ class: oe(["mobile-item", { "mobile-item-filter": T(J)(t.i, N.value.id).type === T(e).FILTER }]),
166
166
  style: C({
167
- height: je(e),
168
- width: Ae(e)
167
+ height: je(t),
168
+ width: Ae(t)
169
169
  })
170
170
  }, [x(ne, {
171
171
  "dashboard-id": N.value.id,
172
- item: e,
172
+ item: t,
173
173
  "edit-mode": T(F),
174
174
  "get-item-data": T(J),
175
175
  symbols: T(R),
@@ -260,7 +260,7 @@ var E = {
260
260
  "onSave",
261
261
  "onCancel"
262
262
  ])])) : _("", !0)
263
- ], 4)) : (w(), v("div", k, [e.name ? (w(), v(p, { key: 0 }, [n[0] ||= y("h2", null, "Dashboard Not Found", -1), y("p", null, "The dashboard \"" + ce(e.name) + "\" could not be found.", 1)], 64)) : (w(), v(p, { key: 1 }, [n[1] ||= y("h2", null, [
263
+ ], 4)) : (w(), v("div", k, [r.name ? (w(), v(p, { key: 0 }, [n[0] ||= y("h2", null, "Dashboard Not Found", -1), y("p", null, "The dashboard \"" + ce(r.name) + "\" could not be found.", 1)], 64)) : (w(), v(p, { key: 1 }, [n[1] ||= y("h2", null, [
264
264
  b("Ready to "),
265
265
  y("i", { class: "mdi mdi-chart-line" }),
266
266
  b("?")
@@ -1,16 +1,15 @@
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
3
  import { u as n } from "./base-DuKnVD-A.js";
4
- import "./llm-Wf4Etiu9.js";
5
- import "./stores-DTGQZ4_B.js";
6
- import { ct as r, dt as i, lt as a, rt as o, st as s, tt as c, ut as l } from "./editorStore-CiWH_nGN.js";
7
- import { n as u } from "./globalChatRuntime-DAERmOdu.js";
8
- import { l as d, u as f } from "./useGlobalChatPanel-D9kMZLeF.js";
9
- import { t as p } from "./ErrorMessage-D5JeF3Iz.js";
10
- import { a as m, d as h, l as ee, o as g, p as te } from "./workers-B9Eybl-M.js";
11
- import "./editor.main-BQh6DxDB.js";
4
+ import { ct as r, dt as i, lt as a, rt as o, st as s, tt as c, ut as l } from "./editorStore-Czhpct1j.js";
5
+ import "./stores-DgdADCiH.js";
6
+ import { n as u } from "./globalChatRuntime-BnMYNYqe.js";
7
+ import { l as d, u as f } from "./useGlobalChatPanel-Doeilj18.js";
8
+ import { t as p } from "./ErrorMessage-Cz7q7vJI.js";
9
+ import { a as m, d as h, l as ee, o as g, p as te } from "./workers-CHvkad0r.js";
10
+ import "./editor.main-TuTbSVcN.js";
12
11
  import { t as _ } from "./tokenTheme-DBbeCrCg.js";
13
- import { t as ne } from "./SymbolsPane-XFVErDFb.js";
12
+ import { t as ne } from "./SymbolsPane-DUrLpSSw.js";
14
13
  import { Fragment as re, computed as ie, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as S, createVNode as C, defineComponent as w, inject as T, mergeProps as E, nextTick as D, normalizeClass as O, normalizeStyle as ae, onMounted as oe, onUnmounted as se, openBlock as k, ref as A, resolveComponent as j, toDisplayString as M, unref as N, vModelText as P, watch as F, withCtx as I, withDirectives as L, withKeys as R } from "vue";
15
14
  //#region components/editor/EditorToolbarActions.vue?vue&type=script&setup=true&lang.ts
16
15
  var z = { class: "action-group action-group-scope" }, B = ["aria-pressed"], V = {
@@ -1,4 +1,4 @@
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
3
  import { Fragment as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, normalizeClass as o, openBlock as s, renderList as c, renderSlot as l, toDisplayString as u } from "vue";
4
4
  //#region components/ErrorMessage.vue?vue&type=script&lang.ts
@@ -1,19 +1,19 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
2
2
  import { c as t, u as n } from "./base-DuKnVD-A.js";
3
- import { a as r, i, r as a, t as o } from "./globalChatRuntime-DAERmOdu.js";
4
- import { r as s, t as c } from "./useGlobalChatPanel-D9kMZLeF.js";
5
- import { t as l } from "./VegaLiteChart-DX_LbF3g.js";
6
- import { t as u } from "./MarkdownRenderer-B6lqdkgc.js";
7
- import { t as d } from "./CodeBlock-Dj-GfTbW.js";
8
- import { n as f, t as p } from "./LLMChat-eKgEc-I3.js";
3
+ import { t as r } from "./VegaLiteChart-BqHLSptG.js";
4
+ import { a as i, i as a, r as o, t as s } from "./globalChatRuntime-BnMYNYqe.js";
5
+ import { r as c, t as l } from "./useGlobalChatPanel-Doeilj18.js";
6
+ import { t as u } from "./MarkdownRenderer-Dlb_KGmk.js";
7
+ import { t as d } from "./CodeBlock-C9o09ipr.js";
8
+ import { n as f, t as p } from "./LLMChat-Dg8VvTIP.js";
9
9
  import { t as ee } from "./ChatModelSelect-Cz7axWjP.js";
10
10
  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, inject as C, nextTick as te, normalizeClass as w, normalizeStyle as T, onBeforeUnmount as E, onMounted as ne, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveComponent as j, toDisplayString as M, unref as N, vModelSelect as re, watch as P, withCtx as ie, withDirectives as ae, withModifiers as F } from "vue";
11
11
  //#region components/llm/ChatArtifact.vue?vue&type=script&lang.ts
12
12
  var I = S({
13
13
  name: "ChatArtifactComponent",
14
14
  components: {
15
- DataTable: s,
16
- VegaLiteChart: l,
15
+ DataTable: c,
16
+ VegaLiteChart: r,
17
17
  CodeBlock: d,
18
18
  MarkdownRenderer: u
19
19
  },
@@ -206,7 +206,7 @@ var se = /*#__PURE__*/ e(I, [["render", oe], ["__scopeId", "data-v-12ad0967"]]),
206
206
  props: { activeChatId: {} },
207
207
  emits: ["select", "new-chat"],
208
208
  setup(e, { emit: t }) {
209
- let n = e, r = t, i = C("chatStore"), a = C("dashboardStore", null), s = (e, t) => new Date(t.updatedAt).getTime() - new Date(e.updatedAt).getTime(), c = h(() => i.chatList.filter((e) => e.kind === "user" && e.source === "user").sort(s)), l = h(() => i.chatList.filter((e) => e.kind === "user" && e.source === "dashboard").sort(s));
209
+ let n = e, r = t, i = C("chatStore"), a = C("dashboardStore", null), o = (e, t) => new Date(t.updatedAt).getTime() - new Date(e.updatedAt).getTime(), c = h(() => i.chatList.filter((e) => e.kind === "user" && e.source === "user").sort(o)), l = h(() => i.chatList.filter((e) => e.kind === "user" && e.source === "dashboard").sort(o));
210
210
  function u(e) {
211
211
  return (e.sourceRefId ? a?.dashboards[e.sourceRefId] : null)?.name || e.name;
212
212
  }
@@ -228,7 +228,7 @@ var se = /*#__PURE__*/ e(I, [["render", oe], ["__scopeId", "data-v-12ad0967"]]),
228
228
  return "";
229
229
  }
230
230
  function p(e) {
231
- window.confirm(`Delete conversation "${e.name}"?`) && (i.isChatExecuting(e.id) && i.stopExecution(e.id), i.removeChat(e.id), o(e.id));
231
+ window.confirm(`Delete conversation "${e.name}"?`) && (i.isChatExecuting(e.id) && i.stopExecution(e.id), i.removeChat(e.id), s(e.id));
232
232
  }
233
233
  return (e, t) => (D(), v("div", G, [
234
234
  y("button", {
@@ -297,7 +297,7 @@ var se = /*#__PURE__*/ e(I, [["render", oe], ["__scopeId", "data-v-12ad0967"]]),
297
297
  }, Ne = /*#__PURE__*/ e(/* @__PURE__ */ S({
298
298
  __name: "GlobalChatPanel",
299
299
  setup(e) {
300
- let t = C("chatStore"), n = C("llmConnectionStore"), s = C("connectionStore"), l = C("editorStore"), u = C("queryExecutionService"), d = C("dashboardStore", null), S = C("projectStore", null), A = C("modelStore", null), j = C("saveEditors", null), F = C("saveModels", null), I = C("saveLLMConnections", null), L = O(!1), R = O(""), z = c(), B = C("storesLoaded", O(!0)), V = h(() => {
300
+ let t = C("chatStore"), n = C("llmConnectionStore"), r = C("connectionStore"), c = C("editorStore"), u = C("queryExecutionService"), d = C("dashboardStore", null), S = C("projectStore", null), A = C("modelStore", null), j = C("saveEditors", null), F = C("saveModels", null), I = C("saveLLMConnections", null), L = O(!1), R = O(""), z = l(), B = C("storesLoaded", O(!0)), V = h(() => {
301
301
  let e = z.activePanelChatId.value;
302
302
  if (!e) return null;
303
303
  let n = t.chats[e];
@@ -355,17 +355,17 @@ var se = /*#__PURE__*/ e(I, [["render", oe], ["__scopeId", "data-v-12ad0967"]]),
355
355
  function ue(e) {
356
356
  z.setActivePanelChat(e);
357
357
  }
358
- async function de(e, r) {
359
- let i = V.value;
360
- i || (i = t.newChat(n.activeConnection || "", "", void 0, "", { activate: !1 }), z.setActivePanelChat(i.id), await te()), await a({
361
- chatId: i.id,
358
+ async function de(e, i) {
359
+ let a = V.value;
360
+ a || (a = t.newChat(n.activeConnection || "", "", void 0, "", { activate: !1 }), z.setActivePanelChat(a.id), await te()), await o({
361
+ chatId: a.id,
362
362
  message: e,
363
363
  chatStore: t,
364
364
  deps: {
365
365
  llmConnectionStore: n,
366
- connectionStore: s,
366
+ connectionStore: r,
367
367
  queryExecutionService: u,
368
- editorStore: l,
368
+ editorStore: c,
369
369
  ...S ? { projectStore: S } : {},
370
370
  ...d ? { dashboardStore: d } : {},
371
371
  ...A ? { modelStore: A } : {},
@@ -376,11 +376,11 @@ var se = /*#__PURE__*/ e(I, [["render", oe], ["__scopeId", "data-v-12ad0967"]]),
376
376
  }
377
377
  let Z = null;
378
378
  ne(() => {
379
- Z = r({
379
+ Z = i({
380
380
  chatStore: t,
381
381
  getTargetChatId: () => z.activePanelChatId.value,
382
382
  dashboardNameLookup: (e) => d?.dashboards[e]?.name ?? null,
383
- editorNameLookup: (e) => l.editors[e]?.name ?? null
383
+ editorNameLookup: (e) => c.editors[e]?.name ?? null
384
384
  });
385
385
  }), E(() => {
386
386
  Z &&= (Z(), null);
@@ -391,7 +391,7 @@ var se = /*#__PURE__*/ e(I, [["render", oe], ["__scopeId", "data-v-12ad0967"]]),
391
391
  }
392
392
  function fe() {
393
393
  let e = V.value;
394
- e && window.confirm(`Clear all messages in "${e.name}"?`) && (t.isChatExecuting(e.id) && t.stopExecution(e.id), t.clearChatMessages(e.id), o(e.id), i(e.id));
394
+ e && window.confirm(`Clear all messages in "${e.name}"?`) && (t.isChatExecuting(e.id) && t.stopExecution(e.id), t.clearChatMessages(e.id), s(e.id), a(e.id));
395
395
  }
396
396
  let $ = null;
397
397
  function pe(e) {
@@ -1,10 +1,9 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
2
- import "./llm-Wf4Etiu9.js";
3
- import { a as t, l as n, o as r, s as i } from "./stores-DTGQZ4_B.js";
4
- import { S as a, i as o, t as s } from "./editorStore-CiWH_nGN.js";
5
- import { t as c } from "./useGlobalChatPanel-D9kMZLeF.js";
2
+ import { S as t, i as n, t as r } from "./editorStore-Czhpct1j.js";
3
+ import { a as i, l as a, o, s } from "./stores-DgdADCiH.js";
4
+ import { t as c } from "./useGlobalChatPanel-Doeilj18.js";
6
5
  import { n as l, t as u } from "./useResizableDialog-Cs90WJdF.js";
7
- import { a as d, f, i as p, n as m, o as h, r as g, t as _ } from "./PageLoading-DKFeqkmK.js";
6
+ import { a as d, f, i as p, n as m, o as h, r as g, t as _ } from "./PageLoading-C7H6q6U6.js";
8
7
  import { Fragment as v, Teleport as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createStaticVNode as E, createVNode as D, defineAsyncComponent as O, defineComponent as k, inject as A, nextTick as j, normalizeClass as M, normalizeStyle as ee, onBeforeUnmount as N, onMounted as te, onUnmounted as ne, openBlock as P, provide as re, ref as F, renderList as I, renderSlot as L, resolveComponent as R, toDisplayString as z, unref as ie, watch as ae, withCtx as B, withModifiers as oe } from "vue";
9
8
  //#region node_modules/.pnpm/split.js@1.6.5/node_modules/split.js/dist/split.es.js
10
9
  var V = typeof window < "u" ? window : null, se = V === null, H = se ? void 0 : V.document, U = "addEventListener", W = "removeEventListener", G = "getBoundingClientRect", K = "_a", q = "_b", J = "_c", Y = "horizontal", X = function() {
@@ -274,7 +273,7 @@ var xe = /*#__PURE__*/ e(he, [["render", be], ["__scopeId", "data-v-877a08bc"]])
274
273
  "tabs-reordered"
275
274
  ],
276
275
  setup() {
277
- let e = t(), n = s(), r = a(), i = o(), { activeTab: c, tabs: l, openTab: u, closeTab: d, setActiveTab: f, closeOtherTabsExcept: p, closeTabsToRightOf: m } = e;
276
+ let e = i(), a = r(), o = t(), s = n(), { activeTab: c, tabs: l, openTab: u, closeTab: d, setActiveTab: f, closeOtherTabsExcept: p, closeTabsToRightOf: m } = e;
278
277
  return {
279
278
  activeTab: c,
280
279
  tabs: l,
@@ -285,12 +284,12 @@ var xe = /*#__PURE__*/ e(he, [["render", be], ["__scopeId", "data-v-877a08bc"]])
285
284
  closeTabsToRightOf: m,
286
285
  getTabStatus: (e) => {
287
286
  if (e.screen === "editors") {
288
- let t = n.editors[e.address];
289
- return t ? t.loading ? "running" : (t.connectionId && r.connections[t.connectionId] || r.connectionByName(t.connection))?.connected ? "connected" : "idle" : null;
287
+ let t = a.editors[e.address];
288
+ return t ? t.loading ? "running" : (t.connectionId && o.connections[t.connectionId] || o.connectionByName(t.connection))?.connected ? "connected" : "idle" : null;
290
289
  }
291
290
  if (e.screen === "llms") {
292
291
  let t = e.address.split("::"), n = t.length > 1 ? t[1] : null;
293
- return n && i.isChatExecuting(n) ? i.getChatActiveToolName(n) === "run_query" ? "running" : "waiting" : "connected";
292
+ return n && s.isChatExecuting(n) ? s.getChatActiveToolName(n) === "run_query" ? "running" : "waiting" : "connected";
294
293
  }
295
294
  return null;
296
295
  }
@@ -649,7 +648,7 @@ var Ve = /*#__PURE__*/ e(Re, [["render", Be], ["__scopeId", "data-v-919983af"]])
649
648
  loader: e,
650
649
  loadingComponent: _,
651
650
  delay: 0
652
- }), et = $(() => import("./TutorialPage-CMcTYDOV.js")), tt = $(() => import("./Editor-DQ66Vp6v.js").then((e) => e.n)), nt = $(() => import("./WelcomePage-B6E35FUa.js")), rt = $(() => import("./Dashboard-CQsIqWZC.js").then((e) => e.n)), it = O(() => import("./ResultComponent-BaDheojB.js").then((e) => e.n)), at = $(() => import("./ModelView-BP5yyecx.js").then((e) => e.n)), ot = $(() => import("./CommunityModels-lX2RhHCG.js").then((e) => e.n)), st = $(() => import("./JobsView-B5NWDUgP.js").then((e) => e.n)), ct = $(() => import("./ConnectionView-CZ06qjjE.js").then((e) => e.n)), lt = $(() => import("./LLMView-CdTwMLVV.js")), ut = O(() => import("./AssetAutoImporter-C_7Ms9xe.js").then((e) => e.n)), dt = O(() => import("./ChatCreatorModal-Cd40SvdM.js")), ft = O(() => import("./ConnectionErrorPopup-7vpqgF0s.js")), pt = O(() => import("./GlobalChatPanel-B_s3COHE.js")), mt = O(() => import("./ErrorMessage-D5JeF3Iz.js").then((e) => e.n)), ht = O(() => import("./useGlobalChatPanel-D9kMZLeF.js").then((e) => e.d)), gt = O(() => import("./useGlobalChatPanel-D9kMZLeF.js").then((e) => e.i)), _t = k({
651
+ }), et = $(() => import("./TutorialPage-DHgPuFN0.js")), tt = $(() => import("./Editor-DO4VRvek.js").then((e) => e.n)), nt = $(() => import("./WelcomePage-CN6ptsoF.js")), rt = $(() => import("./Dashboard-C6adKZ7q.js").then((e) => e.n)), it = O(() => import("./ResultComponent-DW9Q9tp9.js").then((e) => e.n)), at = $(() => import("./ModelView-BEi83zrX.js").then((e) => e.n)), ot = $(() => import("./CommunityModels-D48H9Bqt.js").then((e) => e.n)), st = $(() => import("./JobsView-BcyWrDRf.js").then((e) => e.n)), ct = $(() => import("./ConnectionView-sEXGE8Vs.js").then((e) => e.n)), lt = $(() => import("./LLMView-CZNNYXC1.js")), ut = O(() => import("./AssetAutoImporter-BA8C4p09.js").then((e) => e.n)), dt = O(() => import("./ChatCreatorModal-94gZ9D-y.js")), ft = O(() => import("./ConnectionErrorPopup-7vpqgF0s.js")), pt = O(() => import("./GlobalChatPanel-Ct6oSj_A.js")), mt = O(() => import("./ErrorMessage-Cz7q7vJI.js").then((e) => e.n)), ht = O(() => import("./useGlobalChatPanel-Doeilj18.js").then((e) => e.d)), gt = O(() => import("./useGlobalChatPanel-Doeilj18.js").then((e) => e.i)), _t = k({
653
652
  name: "IDEComponent",
654
653
  data() {
655
654
  return {
@@ -693,10 +692,10 @@ var Ve = /*#__PURE__*/ e(Re, [["render", Be], ["__scopeId", "data-v-919983af"]])
693
692
  "data-table": gt
694
693
  },
695
694
  setup() {
696
- let e = F(null), n = A("connectionStore"), r = A("editorStore"), i = A("userSettingsStore"), a = A("llmConnectionStore", null), o = A("storesLoaded", F(!0)), s = A("modelStore"), l = A("dashboardStore"), u = A("trilogyResolver"), d = A("queryExecutionService"), f = A("saveEditors"), p = A("saveConnections"), m = A("saveModels"), g = A("saveDashboards"), _ = A("saveAll");
697
- if (!r || !n || !l || !i || !u || !s || !p || !g || !f || !m || !_) throw Error("Requires injection of connection store, editor store, model store, editors, connections, and models saving.");
695
+ let e = F(null), t = A("connectionStore"), n = A("editorStore"), r = A("userSettingsStore"), a = A("llmConnectionStore", null), o = A("storesLoaded", F(!0)), s = A("modelStore"), l = A("dashboardStore"), u = A("trilogyResolver"), d = A("queryExecutionService"), f = A("saveEditors"), p = A("saveConnections"), m = A("saveModels"), g = A("saveDashboards"), _ = A("saveAll");
696
+ if (!n || !t || !l || !r || !u || !s || !p || !g || !f || !m || !_) throw Error("Requires injection of connection store, editor store, model store, editors, connections, and models saving.");
698
697
  f ||= () => {};
699
- let v = t(), { activeScreen: y, activeEditor: x, activeModelKey: S, activeDocumentationKey: C, activeConnectionKey: w, activeLLMConnectionKey: T, activeCommunityModelKey: E, activeJobsKey: D, activeDashboard: O, setActiveScreen: k, setActiveSidebarScreen: j, activeSidebarScreen: M, setActiveEditor: ee, setActiveModelKey: ne, setActiveCommunityModelKey: P, setActiveJobsKey: I, setActiveDocumentationKey: L, setActiveConnectionKey: R, setActiveLLMConnectionKey: z, setActiveDashboard: ie, onInitialLoad: B, showTipModal: oe, displayedTips: V, fullScreen: se, toggleFullScreen: H, addBackListeners: U, removeBacklisteners: W } = v;
698
+ let v = i(), { activeScreen: y, activeEditor: x, activeModelKey: S, activeDocumentationKey: C, activeConnectionKey: w, activeLLMConnectionKey: T, activeCommunityModelKey: E, activeJobsKey: D, activeDashboard: O, setActiveScreen: k, setActiveSidebarScreen: j, activeSidebarScreen: M, setActiveEditor: ee, setActiveModelKey: ne, setActiveCommunityModelKey: P, setActiveJobsKey: I, setActiveDocumentationKey: L, setActiveConnectionKey: R, setActiveLLMConnectionKey: z, setActiveDashboard: ie, onInitialLoad: B, showTipModal: oe, displayedTips: V, fullScreen: se, toggleFullScreen: H, addBackListeners: U, removeBacklisteners: W } = v;
700
699
  B(), U();
701
700
  let G = c(), K = () => !!a && Object.keys(a.connections || {}).length > 0;
702
701
  if (G.onInitialLoad(), G.addKeyListener(K), o.value) G.applyDefaultOpenState(K());
@@ -710,11 +709,11 @@ var Ve = /*#__PURE__*/ e(Re, [["render", Be], ["__scopeId", "data-v-919983af"]])
710
709
  }), N(() => {
711
710
  W(), G.removeKeyListener();
712
711
  }), re("navigationStore", v), re("hasGlobalChatPanel", !0);
713
- let q = i.markTipRead, J = (e) => {
712
+ let q = r.markTipRead, J = (e) => {
714
713
  q(e);
715
714
  }, Y = F(!1), X = F([]), ce = b(() => {
716
- if (i.settings.skipAllTips) return [];
717
- let e = i.settings.tipsRead || [];
715
+ if (r.settings.skipAllTips) return [];
716
+ let e = r.settings.tipsRead || [];
718
717
  return V.value.filter((t) => !e.includes(t.id));
719
718
  }), le = b(() => ce.value.length > 0), ue = b(() => ce.value.length), Z = () => {
720
719
  X.value = ce.value, Y.value = !0, oe.value = !1;
@@ -727,8 +726,8 @@ var Ve = /*#__PURE__*/ e(Re, [["render", Be], ["__scopeId", "data-v-919983af"]])
727
726
  }, 100);
728
727
  }, pe = F(!1), me = F("");
729
728
  return {
730
- connectionStore: n,
731
- editorStore: r,
729
+ connectionStore: t,
730
+ editorStore: n,
732
731
  dashboardStore: l,
733
732
  trilogyResolver: u,
734
733
  queryExecutionService: d,
@@ -822,13 +821,13 @@ var Ve = /*#__PURE__*/ e(Re, [["render", Be], ["__scopeId", "data-v-919983af"]])
822
821
  });
823
822
  },
824
823
  maybeStartDemoFromHash() {
825
- return i(r.DEMO, "") === "true" ? this.launchDemo() : Promise.resolve();
824
+ return s(o.DEMO, "") === "true" ? this.launchDemo() : Promise.resolve();
826
825
  },
827
826
  async launchDemo() {
828
827
  if (!this.demoLaunchInFlight) {
829
828
  this.demoLaunchInFlight = !0, this.demoLaunchError = "";
830
829
  try {
831
- await this.waitForStoresLoaded(), await this.startDemo(), n(r.DEMO);
830
+ await this.waitForStoresLoaded(), await this.startDemo(), a(o.DEMO);
832
831
  } catch (e) {
833
832
  console.error("Demo setup failed:", e), this.demoLaunchError = e instanceof Error ? e.message : String(e);
834
833
  } finally {
@@ -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 { d as ee } from "./stores-DTGQZ4_B.js";
4
- import { B as te, C as ne, G as re, J as ie, K as ae, U as oe, V as se, W as ce, nt as le, ot as ue } from "./editorStore-CiWH_nGN.js";
5
- import { t as de } from "./reconcile-BH_ReGDR.js";
6
- import { t as fe } from "./StoreTokenModal-CO5hXMs3.js";
7
- import { t as pe } from "./Editor-DQ66Vp6v.js";
3
+ import { B as ee, C as te, G as ne, J as re, K as ie, U as ae, V as oe, W as se, nt as ce, ot as le } from "./editorStore-Czhpct1j.js";
4
+ import { d as ue } from "./stores-DgdADCiH.js";
5
+ import { t as de } from "./reconcile-DtPcgEjQ.js";
6
+ import { t as fe } from "./StoreTokenModal-CHgvjLGl.js";
7
+ import { t as pe } from "./Editor-DO4VRvek.js";
8
8
  import { Fragment as n, computed as r, createBlock as me, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as he, defineComponent as c, inject as l, normalizeClass as u, openBlock as d, provide as ge, ref as f, renderList as p, toDisplayString as m, unref as h, watch as _e } from "vue";
9
9
  //#region utils/terminalOutput.ts
10
10
  var g = /\u001B(?:\][^\u0007]*(?:\u0007|\u001B\\)|\[[0-?]*[ -/]*[@-~])/g, ve = (e) => e ? e.replace(g, "") : "", ye = (e) => e ? (g.lastIndex = 0, g.test(e)) : !1, be = { class: "jobs-page" }, xe = { class: "jobs-header" }, Se = { class: "jobs-title" }, Ce = { class: "jobs-subtitle" }, we = { class: "header-actions" }, Te = ["disabled"], Ee = ["disabled"], De = ["disabled"], Oe = ["disabled"], ke = {
@@ -129,7 +129,7 @@ var g = /\u001B(?:\][^\u0007]*(?:\u0007|\u001B\\)|\[[0-?]*[ -/]*[@-~])/g, ve = (
129
129
  __name: "JobsView",
130
130
  props: { activeJobsKey: {} },
131
131
  setup(e) {
132
- let t = e, c = ne(), g = ee(), y = f(!1), b = r(() => c.stores.filter((e) => e.type === "generic")), x = r(() => t.activeJobsKey || b.value[0]?.id || ""), S = r(() => x.value.split("+")), C = r(() => S.value[0] || ""), w = r(() => b.value.find((e) => e.id === C.value) || null), T = r(() => w.value?.name || "No store selected"), E = r(() => S.value.length === 1 ? "store" : S.value[1] === "directory" ? "directory" : "file"), D = r(() => decodeURIComponent(S.value[2] || "")), O = r(() => C.value ? g.filesByStore[C.value] : void 0), nn = r(() => O.value?.directories.filter((e) => e.directory !== "").length || 0), rn = r(() => O.value?.directories.reduce((e, t) => e + t.files.length, 0) || 0), k = r(() => C.value ? g.errors[C.value] : ""), an = r(() => {
132
+ let t = e, c = te(), g = ue(), y = f(!1), b = r(() => c.stores.filter((e) => e.type === "generic")), x = r(() => t.activeJobsKey || b.value[0]?.id || ""), S = r(() => x.value.split("+")), C = r(() => S.value[0] || ""), w = r(() => b.value.find((e) => e.id === C.value) || null), T = r(() => w.value?.name || "No store selected"), E = r(() => S.value.length === 1 ? "store" : S.value[1] === "directory" ? "directory" : "file"), D = r(() => decodeURIComponent(S.value[2] || "")), O = r(() => C.value ? g.filesByStore[C.value] : void 0), nn = r(() => O.value?.directories.filter((e) => e.directory !== "").length || 0), rn = r(() => O.value?.directories.reduce((e, t) => e + t.files.length, 0) || 0), k = r(() => C.value ? g.errors[C.value] : ""), an = r(() => {
133
133
  let e = [{
134
134
  label: "Store",
135
135
  value: T.value
@@ -145,17 +145,17 @@ var g = /\u001B(?:\][^\u0007]*(?:\u0007|\u001B\\)|\[[0-?]*[ -/]*[@-~])/g, ve = (
145
145
  label: "Directory",
146
146
  value: D.value
147
147
  }), e;
148
- let t = le(D.value);
148
+ let t = ce(D.value);
149
149
  return t && e.push({
150
150
  label: "Type",
151
151
  value: t
152
152
  }), e;
153
- }), A = r(() => C.value ? E.value === "store" ? g.getStoreJobs(C.value) : g.getJobsForTarget(C.value, D.value) : []), j = r(() => E.value === "directory" || E.value === "file" && ue(D.value)), on = r(() => {
153
+ }), A = r(() => C.value ? E.value === "store" ? g.getStoreJobs(C.value) : g.getJobsForTarget(C.value, D.value) : []), j = r(() => E.value === "directory" || E.value === "file" && le(D.value)), on = r(() => {
154
154
  if (E.value === "store") return T.value;
155
155
  if (E.value === "directory") return D.value;
156
156
  let e = D.value.split("/");
157
157
  return e[e.length - 1] || T.value;
158
- }), sn = r(() => E.value === "store" ? "Track submitted jobs for this remote store and refresh its served assets." : "Run or refresh this target and watch job output update live."), cn = r(() => E.value === "store" ? "Recent Jobs" : "Jobs For This Target"), M = r(() => E.value !== "file"), N = r(() => E.value === "store" ? "." : D.value), P = r(() => C.value ? g.getState(C.value, N.value) : null), F = r(() => C.value ? g.isStateLoading(C.value, N.value) : !1), I = r(() => C.value ? g.getStateError(C.value, N.value) : ""), L = r(() => P.value ? re(P.value.assets) : []), R = l("editorStore"), ln = l("saveEditors");
158
+ }), sn = r(() => E.value === "store" ? "Track submitted jobs for this remote store and refresh its served assets." : "Run or refresh this target and watch job output update live."), cn = r(() => E.value === "store" ? "Recent Jobs" : "Jobs For This Target"), M = r(() => E.value !== "file"), N = r(() => E.value === "store" ? "." : D.value), P = r(() => C.value ? g.getState(C.value, N.value) : null), F = r(() => C.value ? g.isStateLoading(C.value, N.value) : !1), I = r(() => C.value ? g.getStateError(C.value, N.value) : ""), L = r(() => P.value ? ne(P.value.assets) : []), R = l("editorStore"), ln = l("saveEditors");
159
159
  ge("hideEditorSymbols", !0);
160
160
  let z = f(!1), un = r(() => !R || E.value !== "file" || !C.value ? null : de(R.editors, C.value, D.value)[0] || null), B = r(() => un.value?.id || ""), dn = r(() => `jobs:${B.value}`), fn = () => {
161
161
  ln?.();
@@ -171,7 +171,7 @@ var g = /\u001B(?:\][^\u0007]*(?:\u0007|\u001B\\)|\[[0-?]*[ -/]*[@-~])/g, ve = (
171
171
  H.value[e] = !H.value[e];
172
172
  }, hn = (e) => {
173
173
  U.value[e] = !U.value[e];
174
- }, W = (e) => ce(e), G = (e) => se(e), gn = (e) => oe(e), K = (e) => ie(e), _n = (e) => ae(e.partitions).slice(0, v), vn = (e) => Math.max(0, e.partitions.length - v), yn = (e) => te(e), q = async (e = !1) => {
174
+ }, W = (e) => se(e), G = (e) => oe(e), gn = (e) => ae(e), K = (e) => re(e), _n = (e) => ie(e.partitions).slice(0, v), vn = (e) => Math.max(0, e.partitions.length - v), yn = (e) => ee(e), q = async (e = !1) => {
175
175
  C.value && await g.fetchStateForTarget(C.value, N.value, e);
176
176
  }, J = async (e) => {
177
177
  C.value && D.value && await g.submitJob(C.value, D.value, e);
@@ -1,6 +1,6 @@
1
- import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
2
- import { et as t } from "./llm-Wf4Etiu9.js";
3
- import { t as n } from "./MarkdownRenderer-B6lqdkgc.js";
1
+ import { nt as e } from "./llm-Bc1CfjOE.js";
2
+ import { t } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
3
+ import { t as n } from "./MarkdownRenderer-Dlb_KGmk.js";
4
4
  import { Fragment as r, Teleport as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, nextTick as p, normalizeClass as m, onMounted as h, onUnmounted as g, openBlock as _, ref as v, renderList as y, renderSlot as b, resolveComponent as x, toDisplayString as S, vModelText as C, watch as w, withDirectives as T, withKeys as E, withModifiers as D } from "vue";
5
5
  //#region components/EditableTitle.vue?vue&type=script&lang.ts
6
6
  var O = f({
@@ -59,7 +59,7 @@ function N(e, t, n, r, i, a) {
59
59
  "data-testid": e.testId + "-edit-icon"
60
60
  }, "✎", 8, j)], 8, A))], 8, k);
61
61
  }
62
- var P = /*#__PURE__*/ e(O, [["render", N], ["__scopeId", "data-v-84c64122"]]), F = {
62
+ var P = /*#__PURE__*/ t(O, [["render", N], ["__scopeId", "data-v-84c64122"]]), F = {
63
63
  validate_query: "Validated query",
64
64
  run_query: "Ran query",
65
65
  run_active_editor_query: "Ran editor query",
@@ -258,24 +258,24 @@ var R = f({
258
258
  "title-update",
259
259
  "open-subchat"
260
260
  ],
261
- setup(e, { emit: n }) {
262
- let r = v([...e.messages]), i = v(""), o = v(null), s = v(null), c = v(0), l = v(!1), u = null, d = a(() => Array.isArray(e.placeholder) ? e.placeholder[c.value] || "" : e.placeholder), f = () => {
263
- Array.isArray(e.placeholder) && e.placeholder.length > 1 && (u = setInterval(() => {
261
+ setup(t, { emit: n }) {
262
+ let r = v([...t.messages]), i = v(""), o = v(null), s = v(null), c = v(0), l = v(!1), u = null, d = a(() => Array.isArray(t.placeholder) ? t.placeholder[c.value] || "" : t.placeholder), f = () => {
263
+ Array.isArray(t.placeholder) && t.placeholder.length > 1 && (u = setInterval(() => {
264
264
  l.value = !0, setTimeout(() => {
265
- c.value = (c.value + 1) % e.placeholder.length, l.value = !1;
265
+ c.value = (c.value + 1) % t.placeholder.length, l.value = !1;
266
266
  }, 300);
267
267
  }, 3500));
268
268
  }, m = () => {
269
269
  u &&= (clearInterval(u), null);
270
- }, _ = a(() => e.externalLoading), y = a(() => ee(r.value.filter((t) => (!t.hidden || t.compaction) && !(t.artifact && !t.content && !e.renderArtifacts)))), b = a(() => {
270
+ }, _ = a(() => t.externalLoading), y = a(() => ee(r.value.filter((e) => (!e.hidden || e.compaction) && !(e.artifact && !e.content && !t.renderArtifacts)))), b = a(() => {
271
271
  let e = /* @__PURE__ */ new Map(), t = 0;
272
272
  for (let n of r.value) n.compaction ? (e.set(n, t), t = 0) : n.archived && t++;
273
273
  return e;
274
274
  }), x = (e) => b.value.get(e) ?? 0, S = v(/* @__PURE__ */ new Set()), C = (e) => S.value.has(e), T = (e) => {
275
275
  let t = new Set(S.value);
276
276
  t.has(e) ? t.delete(e) : t.add(e), S.value = t;
277
- }, E = (e) => t(e.content).replace(/^\s*\[Conversation compacted\.[^\]]*\]\s*/i, "").trim();
278
- w(() => e.messages, (e) => {
277
+ }, E = (t) => e(t.content).replace(/^\s*\[Conversation compacted\.[^\]]*\]\s*/i, "").trim();
278
+ w(() => t.messages, (e) => {
279
279
  r.value = [...e];
280
280
  }, { deep: !0 }), w(r, () => {
281
281
  D();
@@ -290,9 +290,9 @@ var R = f({
290
290
  });
291
291
  };
292
292
  h(() => {
293
- D(), O(), f(), e.systemPrompt && r.value.length === 0 && r.value.push({
293
+ D(), O(), f(), t.systemPrompt && r.value.length === 0 && r.value.push({
294
294
  role: "system",
295
- content: e.systemPrompt,
295
+ content: t.systemPrompt,
296
296
  hidden: !0
297
297
  });
298
298
  }), g(() => {
@@ -301,7 +301,7 @@ var R = f({
301
301
  let k = (e) => {
302
302
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), U());
303
303
  }, A = (e) => e.content, j = () => {
304
- e.stopHandler && e.stopHandler();
304
+ t.stopHandler && t.stopHandler();
305
305
  }, M = (e) => ({
306
306
  run_trilogy_query: "Running query...",
307
307
  chart_trilogy_query: "Running query for chart...",
@@ -342,8 +342,8 @@ var R = f({
342
342
  return r.length > 0 && (a += ` · ${r.join(" · ")}`), i > 0 && (a += ` · +${i} more`), a;
343
343
  }, H = (e) => (e.executedToolCalls ? N(e.executedToolCalls) : []).map((e) => e.count > 1 ? `${e.label} (x${e.count})` : e.label).join(" · "), U = async () => {
344
344
  if (_.value || !i.value.trim()) return;
345
- let t = i.value.trim();
346
- i.value = "", D(), await e.sendHandler(t, r.value);
345
+ let e = i.value.trim();
346
+ i.value = "", D(), await t.sendHandler(e, r.value);
347
347
  };
348
348
  return {
349
349
  internalMessages: r,
@@ -381,9 +381,9 @@ var R = f({
381
381
  r.value.push(i), n("update:messages", r.value), n("artifact-created", e), D();
382
382
  },
383
383
  clearMessages: () => {
384
- r.value = [], e.systemPrompt && r.value.push({
384
+ r.value = [], t.systemPrompt && r.value.push({
385
385
  role: "system",
386
- content: e.systemPrompt,
386
+ content: t.systemPrompt,
387
387
  hidden: !0
388
388
  }), n("update:messages", r.value);
389
389
  },
@@ -590,6 +590,6 @@ function Pe(e, t, n, a, f, p) {
590
590
  ])])
591
591
  ]);
592
592
  }
593
- var Fe = /*#__PURE__*/ e(R, [["render", Pe], ["__scopeId", "data-v-2de9e5ac"]]);
593
+ var Fe = /*#__PURE__*/ t(R, [["render", Pe], ["__scopeId", "data-v-2de9e5ac"]]);
594
594
  //#endregion
595
595
  export { P as n, Fe as t };