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

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 (70) hide show
  1. package/dist/{AssetAutoImporter-C_7Ms9xe.js → AssetAutoImporter-CCbTLQ9v.js} +5 -5
  2. package/dist/{ChatCreatorModal-Cd40SvdM.js → ChatCreatorModal-C0OHgrEB.js} +1 -1
  3. package/dist/{CodeBlock-Dj-GfTbW.js → CodeBlock-CS86Ipg1.js} +1 -1
  4. package/dist/{CommunityModels-lX2RhHCG.js → CommunityModels-BxJKe8_v.js} +4 -4
  5. package/dist/{ConnectionView-CZ06qjjE.js → ConnectionView-D-1gQNQ7.js} +4 -4
  6. package/dist/{CreateEditorFromDatasourcePopup-DwA938kf.js → CreateEditorFromDatasourcePopup-RkNgUdzU.js} +2 -2
  7. package/dist/{Dashboard-CQsIqWZC.js → Dashboard-DWJPKIeQ.js} +5 -5
  8. package/dist/{DashboardImportSelector-CkqH52FX.js → DashboardImportSelector-t6tKq5N4.js} +1 -1
  9. package/dist/{DashboardMobile-DWFlel5p.js → DashboardMobile-CxObMuv6.js} +4 -4
  10. package/dist/{Editor-DQ66Vp6v.js → Editor-DD1inQuU.js} +6 -6
  11. package/dist/{GlobalChatPanel-B_s3COHE.js → GlobalChatPanel-BArWsM8Y.js} +20 -20
  12. package/dist/{IDE-4-Jg6gsM.js → IDE-D5GKLVYn.js} +6 -6
  13. package/dist/{JobsView-B5NWDUgP.js → JobsView-By7OZgj_.js} +5 -5
  14. package/dist/{LLMChat-eKgEc-I3.js → LLMChat-B-q_7sa4.js} +2 -2
  15. package/dist/{LLMView-CdTwMLVV.js → LLMView-8BKf70Ay.js} +9 -9
  16. package/dist/{LoadingView-Bu3wLJ7J.js → LoadingView-Da0HfQ56.js} +1 -1
  17. package/dist/{MarkdownRenderer-B6lqdkgc.js → MarkdownRenderer-CQppLv_n.js} +1 -1
  18. package/dist/{MobileIDE-CZlg20oa.js → MobileIDE-C81gvbco.js} +12 -12
  19. package/dist/{ModelCard-Bs_d7Jis.js → ModelCard-BMDgFDyQ.js} +4 -4
  20. package/dist/{ModelView-BP5yyecx.js → ModelView-C4B8qJwX.js} +4 -4
  21. package/dist/{PageLoading-DKFeqkmK.js → PageLoading-CRl9HNIg.js} +75 -75
  22. package/dist/{ResultComponent-BaDheojB.js → ResultComponent-C-A8sbr1.js} +4 -4
  23. package/dist/{Results-CrpHB101.js → Results-C1nNHU7C.js} +11 -11
  24. package/dist/{StatusIcon-Clfyy-Yn.js → StatusIcon-v2EhaU49.js} +1 -1
  25. package/dist/{StoreTokenModal-CO5hXMs3.js → StoreTokenModal-BV_gLE94.js} +1 -1
  26. package/dist/{SymbolsPane-XFVErDFb.js → SymbolsPane-CuVCamJf.js} +1 -1
  27. package/dist/{TutorialPage-CMcTYDOV.js → TutorialPage-DGQGx3vF.js} +11 -11
  28. package/dist/{VegaLiteChart-DX_LbF3g.js → VegaLiteChart-BIeSuNU8.js} +11413 -11363
  29. package/dist/{WelcomePage-B6E35FUa.js → WelcomePage-T757Ynnn.js} +3 -3
  30. package/dist/components/VegaLiteChart.vue.d.ts.map +1 -1
  31. package/dist/components/chartControlsManager.d.ts +0 -1
  32. package/dist/components/chartControlsManager.d.ts.map +1 -1
  33. package/dist/dashboard.js +19 -19
  34. package/dist/dashboards/chartTheme.d.ts +68 -0
  35. package/dist/dashboards/chartTheme.d.ts.map +1 -0
  36. package/dist/dashboards/donutSpec.d.ts +2 -1
  37. package/dist/dashboards/donutSpec.d.ts.map +1 -1
  38. package/dist/dashboards/headlineSpec.d.ts +2 -1
  39. package/dist/dashboards/headlineSpec.d.ts.map +1 -1
  40. package/dist/dashboards/helpers.d.ts +23 -0
  41. package/dist/dashboards/helpers.d.ts.map +1 -1
  42. package/dist/dashboards/index.d.ts +2 -0
  43. package/dist/dashboards/index.d.ts.map +1 -1
  44. package/dist/dashboards/layerSpec.d.ts +4 -1
  45. package/dist/dashboards/layerSpec.d.ts.map +1 -1
  46. package/dist/dashboards/pointSpec.d.ts +2 -1
  47. package/dist/dashboards/pointSpec.d.ts.map +1 -1
  48. package/dist/dashboards/spec.d.ts +8 -1
  49. package/dist/dashboards/spec.d.ts.map +1 -1
  50. package/dist/{editorStore-CiWH_nGN.js → editorStore-k4IbmW9-.js} +1094 -1094
  51. package/dist/{globalChatRuntime-DAERmOdu.js → globalChatRuntime-BWahbZxZ.js} +14 -14
  52. package/dist/{helpers-C2pARJoZ.js → helpers-DDKx6kkf.js} +4 -4
  53. package/dist/llm/data/prompts.d.ts +1 -1
  54. package/dist/llm/data/prompts.d.ts.map +1 -1
  55. package/dist/llm/data/trilogySyntax.generated.d.ts +3 -3
  56. package/dist/llm/data/trilogySyntax.generated.d.ts.map +1 -1
  57. package/dist/{llm-Wf4Etiu9.js → llm--BDQ6qkZ.js} +108 -74
  58. package/dist/llm.js +2 -2
  59. package/dist/{localStorage-C3xms-ab.js → localStorage-BYwXjN4M.js} +16 -16
  60. package/dist/monaco.js +1 -1
  61. package/dist/{reconcile-BH_ReGDR.js → reconcile-D-vMtlgJ.js} +1 -1
  62. package/dist/{remoteStoreSync-B0K8QScO.js → remoteStoreSync-PLFQCOmY.js} +2 -2
  63. package/dist/{stores-DTGQZ4_B.js → stores-S6dQ5cjI.js} +29 -29
  64. package/dist/stores.js +3 -3
  65. package/dist/trilogy-studio-components.css +1 -1
  66. package/dist/{useChatWithTools-BSrzJtYI.js → useChatWithTools-Bkd9MeMh.js} +10 -10
  67. package/dist/{useDashboard-CGeIdDuX.js → useDashboard-50rwbG0x.js} +889 -889
  68. package/dist/{useGlobalChatPanel-D9kMZLeF.js → useGlobalChatPanel-JJZaHao8.js} +3 -3
  69. package/dist/views.js +11 -11
  70. package/package.json +1 -1
package/dist/llm.js CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as e, At as t, Ct as n, Dt as r, Et as i, G as a, H as o, J as s, K as c, Mt as l, Nt as u, Ot as d, Pt as f, Tt as p, V as m, Y as h, _t as g, ct as _, gt as v, it as y, jt as b, lt as x, nt as S, ot as C, q as w, rt as T, st as E, t as D, vt as O, wt as k } from "./llm-Wf4Etiu9.js";
1
+ import { Dt as e, Et as t, Ft as n, H as r, J as i, K as a, Mt as o, Nt as s, Ot as c, Pt as l, Tt as u, U as d, X as f, Y as p, _t as m, at as h, ct as g, et as _, it as v, jt as y, kt as b, lt as x, q as S, rt as C, st as w, t as T, ut as E, vt as D, wt as O, yt as k } from "./llm--BDQ6qkZ.js";
2
2
  import { n as A, t as j } from "./chatHelpers-F_woEbYF.js";
3
- export { p as AnthropicProvider, C as CHAT_TOOLS, b as DEFAULT_COMPACTION_THRESHOLD_TOKENS, a as DEFAULT_KEEP_RECENT_TOKENS, n as DeepSeekProvider, r as DemoProvider, m as EDITOR_REFINEMENT_TOOLS, D as EditorRefinementToolExecutor, k as GoogleProvider, l as KEY_PLACEHOLDERS, t as LLMProvider, i as OpenAIProvider, d as OpenRouterProvider, u as PROVIDERS, f as PROVIDER_LABELS, E as RETURN_TO_USER_TOOL, _ as buildChatAgentSystemPrompt, x as buildCustomTrilogyPrompt, o as buildEditorRefinementPrompt, c as compactChat, w as compactHistory, j as createChatNamePrompt, v as createDashboardPrompt, g as createFilterPrompt, O as createPrompt, S as estimateHistoryTokens, T as estimateMessageTokens, y as estimateTextTokens, A as extractChatName, s as maybeCompactChat, e as runToolLoop, h as shouldCompact };
3
+ export { t as AnthropicProvider, w as CHAT_TOOLS, o as DEFAULT_COMPACTION_THRESHOLD_TOKENS, a as DEFAULT_KEEP_RECENT_TOKENS, O as DeepSeekProvider, c as DemoProvider, r as EDITOR_REFINEMENT_TOOLS, T as EditorRefinementToolExecutor, u as GoogleProvider, s as KEY_PLACEHOLDERS, y as LLMProvider, e as OpenAIProvider, b as OpenRouterProvider, l as PROVIDERS, n as PROVIDER_LABELS, g as RETURN_TO_USER_TOOL, x as buildChatAgentSystemPrompt, E as buildCustomTrilogyPrompt, d as buildEditorRefinementPrompt, S as compactChat, i as compactHistory, j as createChatNamePrompt, m as createDashboardPrompt, D as createFilterPrompt, k as createPrompt, C as estimateHistoryTokens, v as estimateMessageTokens, h as estimateTextTokens, A as extractChatName, p as maybeCompactChat, _ as runToolLoop, f as shouldCompact };
@@ -1,6 +1,6 @@
1
- import { Ct as e, Dt as t, Et as n, It as r, Ot as i, R as a, Tt as o, hn as s, wt as c } from "./llm-Wf4Etiu9.js";
2
- import { _ as l } from "./stores-DTGQZ4_B.js";
3
- import { Z as u, et as d } from "./editorStore-CiWH_nGN.js";
1
+ import { Dt as e, Et as t, Lt as n, Ot as r, Tt as i, gn as a, kt as o, wt as s, z as c } from "./llm--BDQ6qkZ.js";
2
+ import { _ as l } from "./stores-S6dQ5cjI.js";
3
+ import { Z as u, et as d } from "./editorStore-k4IbmW9-.js";
4
4
  import { c as f, f as p, l as m, n as h, o as g, u as _ } from "./connections-CWH3zwH2.js";
5
5
  import { reactive as v } from "vue";
6
6
  //#region data/idbKv.ts
@@ -172,7 +172,7 @@ var M = [
172
172
  async loadModelConfig() {
173
173
  let e = await this.readIdb(this.modelStorageKey), t = e ? JSON.parse(e) : [], n = {};
174
174
  return t.forEach((e) => {
175
- n[e.name] = v(s.fromJSON(e));
175
+ n[e.name] = v(a.fromJSON(e));
176
176
  }), n;
177
177
  }
178
178
  async saveModelConfig(e) {
@@ -198,29 +198,29 @@ var M = [
198
198
  }), localStorage.setItem(this.llmConnectionStorageKey, JSON.stringify(Object.values(t).map((e) => e.toJSON())));
199
199
  }
200
200
  async loadLLMConnections() {
201
- let r = localStorage.getItem(this.llmConnectionStorageKey), a = r ? JSON.parse(r) : [], s = {};
202
- for (let r of a) switch (r.type) {
201
+ let n = localStorage.getItem(this.llmConnectionStorageKey), a = n ? JSON.parse(n) : [], c = {};
202
+ for (let n of a) switch (n.type) {
203
203
  case "openai":
204
- s[r.name] = v(await n.fromJSON(r));
204
+ c[n.name] = v(await e.fromJSON(n));
205
205
  break;
206
206
  case "anthropic":
207
- s[r.name] = v(await o.fromJSON(r));
207
+ c[n.name] = v(await t.fromJSON(n));
208
208
  break;
209
209
  case "google":
210
- s[r.name] = v(await c.fromJSON(r));
210
+ c[n.name] = v(await i.fromJSON(n));
211
211
  break;
212
212
  case "openrouter":
213
- s[r.name] = v(await i.fromJSON(r));
213
+ c[n.name] = v(await o.fromJSON(n));
214
214
  break;
215
215
  case "deepseek":
216
- s[r.name] = v(await e.fromJSON(r));
216
+ c[n.name] = v(await s.fromJSON(n));
217
217
  break;
218
218
  case "demo":
219
- s[r.name] = v(await t.fromJSON(r));
219
+ c[n.name] = v(await r.fromJSON(n));
220
220
  break;
221
- default: console.warn(`Unknown LLM connection type: ${r.type}`);
221
+ default: console.warn(`Unknown LLM connection type: ${n.type}`);
222
222
  }
223
- return s;
223
+ return c;
224
224
  }
225
225
  async deleteLLMConnection(e) {
226
226
  let t = await this.loadLLMConnections();
@@ -241,7 +241,7 @@ var M = [
241
241
  }
242
242
  async loadDashboards() {
243
243
  let e = await this.readIdb(this.dashboardStorageKey);
244
- return (e ? JSON.parse(e) : []).reduce((e, t) => (r && typeof r.fromSerialized == "function" ? e[t.id] = v(r.fromSerialized(t)) : e[t.id] = v(t), e[t.id].storage = "local", e), {});
244
+ return (e ? JSON.parse(e) : []).reduce((e, t) => (n && typeof n.fromSerialized == "function" ? e[t.id] = v(n.fromSerialized(t)) : e[t.id] = v(t), e[t.id].storage = "local", e), {});
245
245
  }
246
246
  async deleteDashboard(e) {
247
247
  let t = await this.loadDashboards();
@@ -262,7 +262,7 @@ var M = [
262
262
  async loadChats() {
263
263
  let e = await this.readIdb(this.chatStorageKey);
264
264
  return (e ? JSON.parse(e) : []).reduce((e, t) => {
265
- let n = a.fromSerialized(t);
265
+ let n = c.fromSerialized(t);
266
266
  return e[n.id] = v(n), e[n.id].storage = "local", e;
267
267
  }, {});
268
268
  }
package/dist/monaco.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./editorStore-CiWH_nGN.js";
1
+ import { t as e } from "./editorStore-k4IbmW9-.js";
2
2
  import { a as t, c as n, i as r, l as i, o as a, r as o, s } from "./vocabulary-DQK5jB7m.js";
3
3
  import { l as c, p as l } from "./workers-B9Eybl-M.js";
4
4
  import "./editor.main-BQh6DxDB.js";
@@ -1,4 +1,4 @@
1
- import { et as e } from "./editorStore-CiWH_nGN.js";
1
+ import { et as e } from "./editorStore-k4IbmW9-.js";
2
2
  import { reactive as t } from "vue";
3
3
  //#region editors/reconcile.ts
4
4
  var n = (e, t, n) => Object.values(e).filter((e) => e.storage === "remote" && e.remoteStoreId === t && e.remotePath === n), r = (r, i) => {
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
2
- import { p as t } from "./useGlobalChatPanel-D9kMZLeF.js";
3
- import { n } from "./reconcile-BH_ReGDR.js";
2
+ import { p as t } from "./useGlobalChatPanel-JJZaHao8.js";
3
+ import { n } from "./reconcile-D-vMtlgJ.js";
4
4
  import { createBlock as r, createElementVNode as i, defineComponent as a, openBlock as o, toDisplayString as s, withCtx as c } from "vue";
5
5
  //#region components/ConfirmDialog.vue?vue&type=script&setup=true&lang.ts
6
6
  var l = { class: "confirm-message" }, u = ["data-testid"], d = ["data-testid", "disabled"], f = /*#__PURE__*/ e(/* @__PURE__ */ a({
@@ -1,6 +1,6 @@
1
1
  import { c as e, u as t } from "./base-DuKnVD-A.js";
2
- import { Ct as n, Dt as r, Et as i, Ft as a, Gt as o, It as s, Ot as c, Tt as l, _t as u, bt as d, fn as f, gt as p, kt as m, vt as h, wt as g } from "./llm-Wf4Etiu9.js";
3
- import { C as _, F as v, H as y, I as b, L as x, N as S, P as C, R as ee, S as te, i as ne, it as w, q as re, s as ie, t as ae, z as T } from "./editorStore-CiWH_nGN.js";
2
+ import { At as n, Dt as r, Et as i, It as a, Kt as o, Lt as s, Ot as c, Tt as l, _t as u, kt as d, pn as f, vt as p, wt as m, xt as h, yt as g } from "./llm--BDQ6qkZ.js";
3
+ import { C as _, F as v, H as y, I as b, L as x, N as S, P as C, R as ee, S as te, i as ne, it as w, q as re, s as ie, t as ae, z as T } from "./editorStore-k4IbmW9-.js";
4
4
  import { t as oe } from "./connections-CWH3zwH2.js";
5
5
  import { n as se, t as E } from "./chatHelpers-F_woEbYF.js";
6
6
  import { computed as D, ref as O } from "vue";
@@ -267,30 +267,30 @@ var A = class e {
267
267
  let t = e;
268
268
  return t.error ? "failed" : t.running ? "running" : t.connected ? "connected" : "disabled";
269
269
  },
270
- async newConnection(e, t, a) {
270
+ async newConnection(e, t, n) {
271
271
  if (this.connections[e]) throw Error(`LLM connection with name "${e}" already exists.`);
272
- let o;
273
- if (t === "demo") o = new r(e, a.model);
274
- else if (t === "anthropic") o = new l(e, a.apiKey, a.model, a.saveCredential);
275
- else if (t === "openai") o = new i(e, a.apiKey, a.model, a.saveCredential);
276
- else if (t === "google") o = new g(e, a.apiKey, a.model, a.saveCredential);
277
- else if (t === "openrouter") o = new c(e, a.apiKey, a.model, a.saveCredential, void 0, {
278
- httpReferer: a.httpReferer,
279
- appTitle: a.appTitle
272
+ let a;
273
+ if (t === "demo") a = new c(e, n.model);
274
+ else if (t === "anthropic") a = new i(e, n.apiKey, n.model, n.saveCredential);
275
+ else if (t === "openai") a = new r(e, n.apiKey, n.model, n.saveCredential);
276
+ else if (t === "google") a = new l(e, n.apiKey, n.model, n.saveCredential);
277
+ else if (t === "openrouter") a = new d(e, n.apiKey, n.model, n.saveCredential, void 0, {
278
+ httpReferer: n.httpReferer,
279
+ appTitle: n.appTitle
280
280
  });
281
- else if (t === "deepseek") o = new n(e, a.apiKey, a.model, a.saveCredential);
281
+ else if (t === "deepseek") a = new m(e, n.apiKey, n.model, n.saveCredential);
282
282
  else throw Error(`LLM provider type "${t}" not found.`);
283
- return this.addConnection(o), this.resetConnectionInBackground(e), o;
283
+ return this.addConnection(a), this.resetConnectionInBackground(e), a;
284
284
  },
285
285
  async fetchModelsForProvider(e, t) {
286
- let r, a = `__temp_${e}_${Date.now()}`;
287
- if (e === "anthropic") r = new l(a, t, "", !1);
288
- else if (e === "openai") r = new i(a, t, "", !1);
289
- else if (e === "google") r = new g(a, t, "", !1);
290
- else if (e === "openrouter") r = new c(a, t, "", !1);
291
- else if (e === "deepseek") r = new n(a, t, "", !1);
286
+ let n, a = `__temp_${e}_${Date.now()}`;
287
+ if (e === "anthropic") n = new i(a, t, "", !1);
288
+ else if (e === "openai") n = new r(a, t, "", !1);
289
+ else if (e === "google") n = new l(a, t, "", !1);
290
+ else if (e === "openrouter") n = new d(a, t, "", !1);
291
+ else if (e === "deepseek") n = new m(a, t, "", !1);
292
292
  else throw Error(`LLM provider type "${e}" not found.`);
293
- return await r.reset(), r.models;
293
+ return await n.reset(), n.models;
294
294
  },
295
295
  async generateValidatedCompletion(e, t = null, n = 3, r = null, i = null, a = !0) {
296
296
  let o = r || this.activeConnection || "", s = i || [];
@@ -331,11 +331,11 @@ var A = class e {
331
331
  };
332
332
  },
333
333
  async generateDashboardCompletion(e, t = null, n = [], r = 3) {
334
- let i = p(e, n);
334
+ let i = u(e, n);
335
335
  return this.generateValidatedCompletion(i, t, r).then((e) => e.content);
336
336
  },
337
337
  async generateQueryCompletion(e, t, n = null, r = 3, i = null) {
338
- let a = h(e, t);
338
+ let a = g(e, t);
339
339
  return this.generateValidatedCompletion(a, n, r, i);
340
340
  },
341
341
  async generateSQLQueryCompletion(e) {
@@ -348,7 +348,7 @@ var A = class e {
348
348
  }));
349
349
  },
350
350
  async generateFilterQuery(e, t, n = null, r = 3) {
351
- let i = u(e, t);
351
+ let i = p(e, t);
352
352
  return this.generateValidatedCompletion(i, n, r).then((e) => e.content);
353
353
  },
354
354
  async generateChatName(e, t) {
@@ -986,15 +986,15 @@ var F = k("dashboards", {
986
986
  }
987
987
  throw Error(`Dashboard with ID "${e}" not found.`);
988
988
  },
989
- async populateAIConcepts(e, t, n) {
990
- let r = await this.populateCompletion(e, t, n);
991
- if (!r) throw Error(`No completion items found for dashboard ID "${e}".`);
992
- return m(r);
989
+ async populateAIConcepts(e, t, r) {
990
+ let i = await this.populateCompletion(e, t, r);
991
+ if (!i) throw Error(`No completion items found for dashboard ID "${e}".`);
992
+ return n(i);
993
993
  },
994
994
  async generatePromptSpec(e, t, n, r) {
995
- let i = await this.populateAIConcepts(this.activeDashboardId, n, r), a = await t.generateDashboardCompletion(e, d, i, 3);
995
+ let i = await this.populateAIConcepts(this.activeDashboardId, n, r), a = await t.generateDashboardCompletion(e, h, i, 3);
996
996
  if (!a) throw Error("No response from LLM");
997
- return d(a);
997
+ return h(a);
998
998
  },
999
999
  async populateFromPromptSpec(e, t, n, r, i) {
1000
1000
  let o = this.dashboards[e];
package/dist/stores.js CHANGED
@@ -1,4 +1,4 @@
1
- import { dn as e, fn as t } from "./llm-Wf4Etiu9.js";
2
- import { a as n, d as r, g as i, i as a, n as o, p as s, t as c, u as l } from "./stores-DTGQZ4_B.js";
3
- import { C as u, Q as d, S as f, i as p, t as m } from "./editorStore-CiWH_nGN.js";
1
+ import { fn as e, pn as t } from "./llm--BDQ6qkZ.js";
2
+ import { a as n, d as r, g as i, i as a, n as o, p as s, t as c, u as l } from "./stores-S6dQ5cjI.js";
3
+ import { C as u, Q as d, S as f, i as p, t as m } from "./editorStore-k4IbmW9-.js";
4
4
  export { c as ConnectionStoreExecutionConnectionProvider, o as QueryExecutionService, e as TrilogyResolver, p as useChatStore, u as useCommunityApiStore, f as useConnectionStore, s as useDashboardStore, m as useEditorStore, r as useJobsApiStore, i as useLLMConnectionStore, a as useMobileSidebarNavigation, d as useModelConfigStore, l as useProjectStore, n as useScreenNavigation, t as useUserSettingsStore };