@trilogy-data/trilogy-studio-components 0.1.27 → 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 (73) hide show
  1. package/dist/{AssetAutoImporter-OHphsfW9.js → AssetAutoImporter-CCbTLQ9v.js} +5 -5
  2. package/dist/{ChatCreatorModal-CuXha6Dg.js → ChatCreatorModal-C0OHgrEB.js} +1 -1
  3. package/dist/{CodeBlock-BBsaC6hX.js → CodeBlock-CS86Ipg1.js} +1 -1
  4. package/dist/{CommunityModels-CIQQhO-y.js → CommunityModels-BxJKe8_v.js} +4 -4
  5. package/dist/{ConnectionView-7Jj_Ggdi.js → ConnectionView-D-1gQNQ7.js} +4 -4
  6. package/dist/{CreateEditorFromDatasourcePopup-CrVHUWFl.js → CreateEditorFromDatasourcePopup-RkNgUdzU.js} +2 -2
  7. package/dist/{Dashboard-DxSi9W6Q.js → Dashboard-DWJPKIeQ.js} +5 -5
  8. package/dist/{DashboardImportSelector-kuDRDYi8.js → DashboardImportSelector-t6tKq5N4.js} +1 -1
  9. package/dist/{DashboardMobile-CZEgTb0R.js → DashboardMobile-CxObMuv6.js} +4 -4
  10. package/dist/{Editor-D6tdutTm.js → Editor-DD1inQuU.js} +6 -6
  11. package/dist/{GlobalChatPanel-BXZh0sdD.js → GlobalChatPanel-BArWsM8Y.js} +20 -20
  12. package/dist/{IDE-T8PmyAQ_.js → IDE-D5GKLVYn.js} +6 -6
  13. package/dist/{JobsView-Ca97MiSd.js → JobsView-By7OZgj_.js} +5 -5
  14. package/dist/{LLMChat-Cch33Yd_.js → LLMChat-B-q_7sa4.js} +2 -2
  15. package/dist/{LLMView-BDb6wD74.js → LLMView-8BKf70Ay.js} +9 -9
  16. package/dist/{LoadingView-B-xFwd2N.js → LoadingView-Da0HfQ56.js} +1 -1
  17. package/dist/{MarkdownRenderer-BWvdx0k3.js → MarkdownRenderer-CQppLv_n.js} +1 -1
  18. package/dist/{MobileIDE-DpdEQEqc.js → MobileIDE-C81gvbco.js} +12 -12
  19. package/dist/{ModelCard-DkAMP4X9.js → ModelCard-BMDgFDyQ.js} +4 -4
  20. package/dist/{ModelView-DomyhN8g.js → ModelView-C4B8qJwX.js} +4 -4
  21. package/dist/{PageLoading-BAvKGo9h.js → PageLoading-CRl9HNIg.js} +75 -75
  22. package/dist/{ResultComponent-zoOSoRLe.js → ResultComponent-C-A8sbr1.js} +4 -4
  23. package/dist/{Results-dq-SlJbU.js → Results-C1nNHU7C.js} +11 -11
  24. package/dist/{StatusIcon-AbxNvJ6p.js → StatusIcon-v2EhaU49.js} +1 -1
  25. package/dist/{StoreTokenModal-CM8WXdu1.js → StoreTokenModal-BV_gLE94.js} +1 -1
  26. package/dist/{SymbolsPane-DfaxeaPS.js → SymbolsPane-CuVCamJf.js} +1 -1
  27. package/dist/{TutorialPage-BtEJG7cT.js → TutorialPage-DGQGx3vF.js} +11 -11
  28. package/dist/{VegaLiteChart-BVyAab-o.js → VegaLiteChart-BIeSuNU8.js} +11413 -11363
  29. package/dist/{WelcomePage-BoqzYBLr.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/dashboardQueryExecutor.d.ts +9 -0
  37. package/dist/dashboards/dashboardQueryExecutor.d.ts.map +1 -1
  38. package/dist/dashboards/donutSpec.d.ts +2 -1
  39. package/dist/dashboards/donutSpec.d.ts.map +1 -1
  40. package/dist/dashboards/headlineSpec.d.ts +2 -1
  41. package/dist/dashboards/headlineSpec.d.ts.map +1 -1
  42. package/dist/dashboards/helpers.d.ts +23 -0
  43. package/dist/dashboards/helpers.d.ts.map +1 -1
  44. package/dist/dashboards/index.d.ts +2 -0
  45. package/dist/dashboards/index.d.ts.map +1 -1
  46. package/dist/dashboards/layerSpec.d.ts +4 -1
  47. package/dist/dashboards/layerSpec.d.ts.map +1 -1
  48. package/dist/dashboards/pointSpec.d.ts +2 -1
  49. package/dist/dashboards/pointSpec.d.ts.map +1 -1
  50. package/dist/dashboards/spec.d.ts +8 -1
  51. package/dist/dashboards/spec.d.ts.map +1 -1
  52. package/dist/{editorStore-CAlMJftt.js → editorStore-k4IbmW9-.js} +1094 -1094
  53. package/dist/{globalChatRuntime-CyS7vH51.js → globalChatRuntime-BWahbZxZ.js} +14 -14
  54. package/dist/{helpers-BbVlA3Pf.js → helpers-DDKx6kkf.js} +4 -4
  55. package/dist/llm/data/prompts.d.ts +1 -1
  56. package/dist/llm/data/prompts.d.ts.map +1 -1
  57. package/dist/llm/data/trilogySyntax.generated.d.ts +3 -3
  58. package/dist/llm/data/trilogySyntax.generated.d.ts.map +1 -1
  59. package/dist/{llm-ClU-2rgk.js → llm--BDQ6qkZ.js} +111 -77
  60. package/dist/llm.js +2 -2
  61. package/dist/{localStorage-CGQ1iJXt.js → localStorage-BYwXjN4M.js} +16 -16
  62. package/dist/monaco.js +2 -2
  63. package/dist/{reconcile-DXIvGwBk.js → reconcile-D-vMtlgJ.js} +1 -1
  64. package/dist/{remoteStoreSync-CuQBWpWf.js → remoteStoreSync-PLFQCOmY.js} +2 -2
  65. package/dist/{stores-LlyiwSbK.js → stores-S6dQ5cjI.js} +40 -32
  66. package/dist/stores.js +3 -3
  67. package/dist/trilogy-studio-components.css +1 -1
  68. package/dist/{useChatWithTools-m3Jn_SV-.js → useChatWithTools-Bkd9MeMh.js} +10 -10
  69. package/dist/{useDashboard-BOAuvVEw.js → useDashboard-50rwbG0x.js} +889 -889
  70. package/dist/{useGlobalChatPanel-DuP1q7_f.js → useGlobalChatPanel-JJZaHao8.js} +4 -4
  71. package/dist/views.js +11 -11
  72. package/dist/{vocabulary-CKLGILtR.js → vocabulary-DQK5jB7m.js} +3 -1
  73. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { $ as e, U as t, ct as n } from "./llm-ClU-2rgk.js";
1
+ import { W as e, et as t, lt as n } from "./llm--BDQ6qkZ.js";
2
2
  import { computed as r, ref as i, toValue as a, watch as o } from "vue";
3
3
  //#region composables/useChatWithTools.ts
4
4
  function s(s) {
@@ -20,7 +20,7 @@ function s(s) {
20
20
  alias: ""
21
21
  })) : [];
22
22
  }), V = r(() => N.value), H = async () => {
23
- let e = N.value, n = M.value;
23
+ let t = N.value, n = M.value;
24
24
  if (!n) return A.value = [], j.value = [], [];
25
25
  console.log(`[useChatWithTools] Refreshing symbols for connection: "${n}"`);
26
26
  let r = l?.connectionByName(n), i = f && r ? Object.values(f.editors).filter((e) => !e.deleted && e.connectionId === r.id).map((e) => ({
@@ -29,7 +29,7 @@ function s(s) {
29
29
  })) : [];
30
30
  console.log(`[useChatWithTools] Found ${i.length} editors:`, i.map((e) => e.alias));
31
31
  let a = l?.getConnectionSources(n) || [], o = /* @__PURE__ */ new Map();
32
- a.forEach((e) => o.set(e.alias, e.contents)), i.forEach((e) => o.set(e.alias, e.contents)), (e || []).map((e) => ({
32
+ a.forEach((e) => o.set(e.alias, e.contents)), i.forEach((e) => o.set(e.alias, e.contents)), (t || []).map((e) => ({
33
33
  alias: e.alias || e.name,
34
34
  contents: f?.editors[e.id]?.contents || ""
35
35
  })).forEach((e) => o.set(e.alias, e.contents));
@@ -42,13 +42,13 @@ function s(s) {
42
42
  let r = {
43
43
  text: "SELECT 1",
44
44
  editorType: "trilogy",
45
- imports: (e || []).map((e) => ({
45
+ imports: (t || []).map((e) => ({
46
46
  name: e.name,
47
47
  alias: e.alias || ""
48
48
  })),
49
49
  extraContent: s
50
50
  }, i = await u?.validateQuery(n, r, !1);
51
- if (i?.data?.completion_items) return console.log("Chat symbols refresh - completion_items count:", i.data.completion_items.length), console.log("Chat symbols refresh - trilogyTypes:", [...new Set(i.data.completion_items.map((e) => e.trilogyType))]), A.value = t(i.data.completion_items), j.value = i.data.completion_items.filter((e) => e.trilogyType === "concept"), console.log("Chat symbols refresh - filtered concepts count:", j.value.length), j.value;
51
+ if (i?.data?.completion_items) return console.log("Chat symbols refresh - completion_items count:", i.data.completion_items.length), console.log("Chat symbols refresh - trilogyTypes:", [...new Set(i.data.completion_items.map((e) => e.trilogyType))]), A.value = e(i.data.completion_items), j.value = i.data.completion_items.filter((e) => e.trilogyType === "concept"), console.log("Chat symbols refresh - filtered concepts count:", j.value.length), j.value;
52
52
  } catch (e) {
53
53
  console.error("Failed to fetch concepts from imports:", e), A.value = [], j.value = [];
54
54
  }
@@ -85,8 +85,8 @@ function s(s) {
85
85
  }, { deep: !0 }), o(() => d?.activeChat?.activeArtifactIndex, (e) => {
86
86
  e !== void 0 && (k.value = e);
87
87
  }));
88
- let G = async (t, n) => {
89
- if (d?.activeChatId && l && u && f) return d.executeMessage(d.activeChatId, t, {
88
+ let G = async (e, n) => {
89
+ if (d?.activeChatId && l && u && f) return d.executeMessage(d.activeChatId, e, {
90
90
  llmConnectionStore: c,
91
91
  connectionStore: l,
92
92
  queryExecutionService: u,
@@ -102,8 +102,8 @@ function s(s) {
102
102
  if (_ && _.length > 0) {
103
103
  D.value = [...D.value, {
104
104
  role: "user",
105
- content: t
106
- }], await e(t, c.activeConnection, { generateCompletion: (e, t, n) => c.generateCompletion(e, t, n) }, {
105
+ content: e
106
+ }], await t(e, c.activeConnection, { generateCompletion: (e, t, n) => c.generateCompletion(e, t, n) }, {
107
107
  addMessage: (e) => {
108
108
  D.value = [...D.value, e];
109
109
  },
@@ -140,7 +140,7 @@ function s(s) {
140
140
  return;
141
141
  }
142
142
  return { response: (await c.generateCompletion(c.activeConnection, {
143
- prompt: t,
143
+ prompt: e,
144
144
  systemPrompt: U.value
145
145
  }, n)).text };
146
146
  } catch (e) {