@trilogy-data/trilogy-studio-components 0.1.4 → 0.1.6

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 (136) hide show
  1. package/dist/{ChatCreatorModal-CIwitCJr.js → ChatCreatorModal-D32gycfo.js} +1 -1
  2. package/dist/{Dashboard-D3jI63BM.js → Dashboard-BEpWQ_lG.js} +3 -3
  3. package/dist/{DashboardCreatorInline-BVr9jK0d.js → DashboardCreatorInline-B-fIUNyK.js} +1 -1
  4. package/dist/{DashboardMobile-CZfQYJND.js → DashboardMobile-DtUbR8cj.js} +18 -18
  5. package/dist/{LLMConnectionList-1HRJp3QF.js → LLMConnectionList-C6eBeD7-.js} +115 -115
  6. package/dist/{LLMView-CSLjYSdW.js → LLMView-ButHJ6fv.js} +9 -9
  7. package/dist/Manager-CHg0otBl.js +4 -0
  8. package/dist/ResultComponent-C-FIo-Rd.js +271 -0
  9. package/dist/{Sidebar-CLZWmBSc.js → Sidebar-0UcM4kHc.js} +3 -3
  10. package/dist/{TutorialPage-DC3pNBJ-.js → TutorialPage-CA7L1ghn.js} +4 -4
  11. package/dist/{WelcomePage-CzoMUeo0.js → WelcomePage-BaVZ5Xlm.js} +5 -5
  12. package/dist/chats/chat.d.ts +11 -3
  13. package/dist/chats/chat.d.ts.map +1 -1
  14. package/dist/components/SimpleEditor.vue.d.ts.map +1 -1
  15. package/dist/components/StatusIcon.vue.d.ts +1 -1
  16. package/dist/components/StatusIcon.vue.d.ts.map +1 -1
  17. package/dist/components/VegaLiteChart.vue.d.ts +1 -1
  18. package/dist/components/VegaLiteChart.vue.d.ts.map +1 -1
  19. package/dist/components/dashboard/DashboardChart.vue.d.ts +1 -1
  20. package/dist/components/dashboard/DashboardHeader.vue.d.ts +2 -2
  21. package/dist/components/editor/Editor.vue.d.ts +72 -0
  22. package/dist/components/editor/Editor.vue.d.ts.map +1 -1
  23. package/dist/components/editor/ResultComponent.vue.d.ts +3880 -385
  24. package/dist/components/editor/ResultComponent.vue.d.ts.map +1 -1
  25. package/dist/components/editor/Results.vue.d.ts +33 -15
  26. package/dist/components/editor/Results.vue.d.ts.map +1 -1
  27. package/dist/components/layout/TabbedBrowser.vue.d.ts +15 -3
  28. package/dist/components/layout/TabbedBrowser.vue.d.ts.map +1 -1
  29. package/dist/components/llm/ChatArtifact.vue.d.ts +2 -2
  30. package/dist/components/llm/LLMChat.vue.d.ts +101 -30
  31. package/dist/components/llm/LLMChat.vue.d.ts.map +1 -1
  32. package/dist/components/llm/LLMChatSplitView.vue.d.ts +572 -122
  33. package/dist/components/llm/LLMChatSplitView.vue.d.ts.map +1 -1
  34. package/dist/components/llm/LLMEditorRefinement.vue.d.ts +2074 -0
  35. package/dist/components/llm/LLMEditorRefinement.vue.d.ts.map +1 -0
  36. package/dist/components/llm/LLMValidationView.vue.d.ts +20 -0
  37. package/dist/components/llm/LLMValidationView.vue.d.ts.map +1 -1
  38. package/dist/components/llm/index.d.ts +1 -1
  39. package/dist/components/llm/index.d.ts.map +1 -1
  40. package/dist/components/model/ModelCard.vue.d.ts +143 -0
  41. package/dist/components/model/ModelCard.vue.d.ts.map +1 -1
  42. package/dist/components/sidebar/ConnectionList.vue.d.ts +71 -0
  43. package/dist/components/sidebar/ConnectionList.vue.d.ts.map +1 -1
  44. package/dist/components/sidebar/EditorList.vue.d.ts +71 -0
  45. package/dist/components/sidebar/EditorList.vue.d.ts.map +1 -1
  46. package/dist/components/sidebar/LLMConnectionCreator.vue.d.ts.map +1 -1
  47. package/dist/components/sidebar/LLMConnectionList.vue.d.ts +4 -3
  48. package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -1
  49. package/dist/components/sidebar/LLMConnectionListItem.vue.d.ts.map +1 -1
  50. package/dist/components/sidebar/LLMProviderIcon.vue.d.ts.map +1 -1
  51. package/dist/components/tutorial/TutorialPrompt.vue.d.ts +3957 -321
  52. package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -1
  53. package/dist/composables/useChatWithTools.d.ts.map +1 -1
  54. package/dist/composables/useEditorRefinement.d.ts +60 -0
  55. package/dist/composables/useEditorRefinement.d.ts.map +1 -0
  56. package/dist/composables/useToolLoop.d.ts +41 -0
  57. package/dist/composables/useToolLoop.d.ts.map +1 -0
  58. package/dist/{cssMode-BkaQoZFt.js → cssMode-Cr6wkL9u.js} +1 -1
  59. package/dist/dashboards/helpers.d.ts +1 -0
  60. package/dist/dashboards/helpers.d.ts.map +1 -1
  61. package/dist/data/githubStorage.d.ts.map +1 -1
  62. package/dist/data/localStorage.d.ts.map +1 -1
  63. package/dist/editors/editor.d.ts +33 -4
  64. package/dist/editors/editor.d.ts.map +1 -1
  65. package/dist/editors/results.d.ts.map +1 -1
  66. package/dist/{freemarker2-CNS10-fC.js → freemarker2-D2TXF0Ei.js} +1 -1
  67. package/dist/{handlebars-p2RiA3nK.js → handlebars-Dw7G8Qh-.js} +1 -1
  68. package/dist/{html-DPuxm26R.js → html-CTm9WAqj.js} +1 -1
  69. package/dist/{htmlMode-n-1DOFL9.js → htmlMode-CSGJkkDk.js} +1 -1
  70. package/dist/{javascript-DZ2T7Nqs.js → javascript-CrRL3IGx.js} +1 -1
  71. package/dist/{jsonMode-i7Kirheh.js → jsonMode-DneC7Bpk.js} +1 -1
  72. package/dist/{liquid-hX1l2fnN.js → liquid-CqZwZGDq.js} +1 -1
  73. package/dist/llm/anthropic.d.ts +28 -0
  74. package/dist/llm/anthropic.d.ts.map +1 -1
  75. package/dist/llm/base.d.ts +31 -2
  76. package/dist/llm/base.d.ts.map +1 -1
  77. package/dist/llm/chatAgentPrompt.d.ts +65 -78
  78. package/dist/llm/chatAgentPrompt.d.ts.map +1 -1
  79. package/dist/llm/chatHelpers.d.ts.map +1 -1
  80. package/dist/llm/consts.d.ts +1 -1
  81. package/dist/llm/data/constants.d.ts +1 -1
  82. package/dist/llm/data/constants.d.ts.map +1 -1
  83. package/dist/llm/data/prompts.d.ts.map +1 -1
  84. package/dist/llm/editorRefinementToolExecutor.d.ts +67 -0
  85. package/dist/llm/editorRefinementToolExecutor.d.ts.map +1 -0
  86. package/dist/llm/editorRefinementTools.d.ts +185 -0
  87. package/dist/llm/editorRefinementTools.d.ts.map +1 -0
  88. package/dist/llm/googlev2.d.ts +29 -1
  89. package/dist/llm/googlev2.d.ts.map +1 -1
  90. package/dist/llm/index.d.ts +7 -3
  91. package/dist/llm/index.d.ts.map +1 -1
  92. package/dist/llm/models.d.ts +1 -7
  93. package/dist/llm/models.d.ts.map +1 -1
  94. package/dist/llm/openai.d.ts +41 -0
  95. package/dist/llm/openai.d.ts.map +1 -0
  96. package/dist/llm/openrouter.d.ts +132 -0
  97. package/dist/llm/openrouter.d.ts.map +1 -0
  98. package/dist/llm/sharedToolSchemas.d.ts +93 -0
  99. package/dist/llm/sharedToolSchemas.d.ts.map +1 -0
  100. package/dist/llm/toolLoopCore.d.ts +67 -0
  101. package/dist/llm/toolLoopCore.d.ts.map +1 -0
  102. package/dist/llm/utils.d.ts +5 -1
  103. package/dist/llm/utils.d.ts.map +1 -1
  104. package/dist/{main-Dd5lVGEz.js → main-BmoSbE_9.js} +36019 -34523
  105. package/dist/main.css +1 -1
  106. package/dist/main.js +1 -1
  107. package/dist/main.umd.cjs +667 -606
  108. package/dist/{mdx-Cd5SqFY2.js → mdx-DtmV7PmJ.js} +1 -1
  109. package/dist/{python-B4N2TTBz.js → python-whlFbKu_.js} +1 -1
  110. package/dist/{razor-VmL1UHQI.js → razor-Dt3uTt_N.js} +1 -1
  111. package/dist/stores/Manager.vue.d.ts.map +1 -1
  112. package/dist/stores/chatStore.d.ts +4 -0
  113. package/dist/stores/chatStore.d.ts.map +1 -1
  114. package/dist/stores/editorStore.d.ts +119 -3
  115. package/dist/stores/editorStore.d.ts.map +1 -1
  116. package/dist/stores/llmStore.d.ts.map +1 -1
  117. package/dist/{tsMode-COLogGl9.js → tsMode-C88WO3kn.js} +1 -1
  118. package/dist/{typescript-CvklvdUQ.js → typescript-B6Ztla9f.js} +1 -1
  119. package/dist/{useDashboard-DwNI2E0x.js → useDashboard-JIHdMnMv.js} +136 -136
  120. package/dist/views/LLMView.vue.d.ts +2587 -513
  121. package/dist/views/LLMView.vue.d.ts.map +1 -1
  122. package/dist/views/ModelView.vue.d.ts +286 -0
  123. package/dist/views/ModelView.vue.d.ts.map +1 -1
  124. package/dist/views/TutorialPage.vue.d.ts +9587 -2029
  125. package/dist/views/TutorialPage.vue.d.ts.map +1 -1
  126. package/dist/{xml-D_weTR40.js → xml-D9x11trr.js} +1 -1
  127. package/dist/{yaml-BKP5OwFJ.js → yaml-AiXPOTHt.js} +1 -1
  128. package/package.json +1 -1
  129. package/dist/Manager-DZQXeAg1.js +0 -4
  130. package/dist/ResultComponent-JonPxGw9.js +0 -155
  131. package/dist/components/llm/LLMChatRefinement.vue.d.ts +0 -135
  132. package/dist/components/llm/LLMChatRefinement.vue.d.ts.map +0 -1
  133. package/dist/llm/mistral.d.ts +0 -12
  134. package/dist/llm/mistral.d.ts.map +0 -1
  135. package/dist/llm/openAI.d.ts +0 -13
  136. package/dist/llm/openAI.d.ts.map +0 -1
@@ -1,8 +1,8 @@
1
- var _e = Object.defineProperty;
2
- var Ne = (t, e, o) => e in t ? _e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
3
- var ne = (t, e, o) => Ne(t, typeof e != "symbol" ? e + "" : e, o);
4
- import { defineComponent as ae, ref as C, inject as Y, createElementBlock as l, createCommentVNode as I, openBlock as r, createElementVNode as s, withModifiers as A, withDirectives as _, vModelText as G, vModelSelect as ve, vModelCheckbox as Ie, Fragment as pe, computed as $, createBlock as z, withCtx as q, unref as qe, normalizeClass as me, toDisplayString as j, createTextVNode as de, renderList as fe, resolveComponent as U, createVNode as x, Transition as be, onMounted as Ae, onUnmounted as Ue, normalizeStyle as Oe, watch as ke, vModelDynamic as xe } from "vue";
5
- import { K as N, a as X, T as Ee, L as Se, l as Be, m as Ye, n as Fe, o as Pe, S as Re, h as Me, e as Le, A as Ge, O as je, p as Ke, G as Qe, g as Ve } from "./main-Dd5lVGEz.js";
1
+ var Oe = Object.defineProperty;
2
+ var xe = (t, e, o) => e in t ? Oe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
3
+ var ne = (t, e, o) => xe(t, typeof e != "symbol" ? e + "" : e, o);
4
+ import { defineComponent as ae, ref as C, inject as Y, createElementBlock as l, createCommentVNode as I, openBlock as r, createElementVNode as s, withModifiers as A, withDirectives as _, vModelText as G, vModelSelect as ve, vModelCheckbox as Re, Fragment as pe, computed as $, createBlock as z, withCtx as q, unref as Be, normalizeClass as me, toDisplayString as j, createTextVNode as de, renderList as fe, resolveComponent as U, createVNode as x, Transition as be, onMounted as Pe, onUnmounted as Ye, normalizeStyle as Fe, watch as Ae, vModelDynamic as Ge } from "vue";
5
+ import { K as N, a as X, T as Ee, L as Se, l as je, m as Ke, n as Qe, o as Me, S as Le, h as De, e as _e, A as Ne, O as Ie, G as qe, g as Ve } from "./main-BmoSbE_9.js";
6
6
  function He(t, e, o, i) {
7
7
  const c = [];
8
8
  return Object.values(t).sort((a, d) => a.connected && !d.connected ? -1 : !a.connected && d.connected ? 1 : a.name.localeCompare(d.name)).forEach((a) => {
@@ -308,7 +308,7 @@ function st(t, e, o, i, c, p) {
308
308
  "onUpdate:modelValue": e[3] || (e[3] = (a) => t.connectionDetails.options.saveCredential = a),
309
309
  label: "Save Credential?"
310
310
  }, null, 512), [
311
- [Ie, t.connectionDetails.options.saveCredential]
311
+ [Re, t.connectionDetails.options.saveCredential]
312
312
  ])
313
313
  ])) : I("", !0),
314
314
  t.connectionDetails.type === "bigquery" ? (r(), l("div", et, [
@@ -420,7 +420,7 @@ const rt = /* @__PURE__ */ X(ze, [["render", st], ["__scopeId", "data-v-bd6e19a1
420
420
  default: q(() => [
421
421
  t.connectionType === "duckdb" ? (r(), l("i", ct)) : t.connectionType === "motherduck" ? (r(), l("img", {
422
422
  key: 1,
423
- src: qe(lt),
423
+ src: Be(lt),
424
424
  class: "motherduck-icon",
425
425
  alt: "MotherDuck"
426
426
  }, null, 8, ut)) : t.connectionType === "bigquery-oauth" ? (r(), l("i", dt)) : t.connectionType === "bigquery" ? (r(), l("i", pt)) : (r(), l("i", mt))
@@ -467,7 +467,7 @@ const rt = /* @__PURE__ */ X(ze, [["render", st], ["__scopeId", "data-v-bd6e19a1
467
467
  _: 1
468
468
  }, 8, ["data-testid", "testId"]));
469
469
  }
470
- }), De = /* @__PURE__ */ X(ft, [["__scopeId", "data-v-a2ead502"]]), gt = ae({
470
+ }), Ue = /* @__PURE__ */ X(ft, [["__scopeId", "data-v-a2ead502"]]), gt = ae({
471
471
  name: "FileUpload",
472
472
  props: {
473
473
  connection: {
@@ -573,7 +573,7 @@ const kt = /* @__PURE__ */ X(gt, [["render", Ct], ["__scopeId", "data-v-d7832089
573
573
  if (a.value && i) {
574
574
  let E = a.value;
575
575
  E === "~new-model" && (E = e.connection.name, await (o == null ? void 0 : o.addModelConfig(
576
- new Be({
576
+ new je({
577
577
  name: e.connection.name,
578
578
  sources: [],
579
579
  storage: "local",
@@ -624,12 +624,12 @@ const kt = /* @__PURE__ */ X(gt, [["render", Ct], ["__scopeId", "data-v-d7832089
624
624
  }), Mt = /* @__PURE__ */ X(Rt, [["__scopeId", "data-v-11ffb5f2"]]), Lt = {
625
625
  name: "ConnectionListItem",
626
626
  components: {
627
- SidebarItem: Re,
627
+ SidebarItem: Le,
628
628
  ConnectionIcon: yt,
629
- ConnectionRefresh: De,
630
- ConnectionStatusIcon: Pe,
631
- EditorCreatorIcon: Fe,
632
- CreateEditorFromDatasourcePopup: Ye,
629
+ ConnectionRefresh: Ue,
630
+ ConnectionStatusIcon: Me,
631
+ EditorCreatorIcon: Qe,
632
+ CreateEditorFromDatasourcePopup: Ke,
633
633
  DuckDBImporter: kt,
634
634
  ModelSelector: Mt,
635
635
  Tooltip: Ee
@@ -1262,10 +1262,10 @@ const Xt = /* @__PURE__ */ X(Lt, [["render", zt], ["__scopeId", "data-v-fce665fc
1262
1262
  };
1263
1263
  },
1264
1264
  components: {
1265
- SidebarList: Le,
1265
+ SidebarList: _e,
1266
1266
  ConnectionCreatorInline: rt,
1267
1267
  LoadingButton: Se,
1268
- StatusIcon: Me,
1268
+ StatusIcon: De,
1269
1269
  Tooltip: Ee,
1270
1270
  ConnectionListItem: Xt
1271
1271
  },
@@ -1384,7 +1384,7 @@ function rn(t, e, o, i, c, p) {
1384
1384
  _: 1
1385
1385
  });
1386
1386
  }
1387
- const To = /* @__PURE__ */ X(Jt, [["render", rn], ["__scopeId", "data-v-e9246856"]]);
1387
+ const wo = /* @__PURE__ */ X(Jt, [["render", rn], ["__scopeId", "data-v-e9246856"]]);
1388
1388
  class n {
1389
1389
  constructor(e, o, i = null, c = null) {
1390
1390
  ne(this, "title");
@@ -1402,7 +1402,7 @@ class M {
1402
1402
  this.title = e, this.paragraphs = o, this.displayName = i;
1403
1403
  }
1404
1404
  }
1405
- class Ce {
1405
+ class ke {
1406
1406
  constructor(e, o) {
1407
1407
  ne(this, "title");
1408
1408
  ne(this, "articles");
@@ -3105,7 +3105,7 @@ select pi * 2 as circumference_ratio;`,
3105
3105
  )
3106
3106
  ],
3107
3107
  "Modeling"
3108
- ), yn = new Ce("Trilogy Reference", [
3108
+ ), yn = new ke("Trilogy Reference", [
3109
3109
  new M("Overview/Goals", [
3110
3110
  new n(
3111
3111
  "Introduction",
@@ -3483,7 +3483,7 @@ SELECT
3483
3483
  )
3484
3484
  ]),
3485
3485
  hn
3486
- ]), fn = new Ce("Terms of Service", [
3486
+ ]), fn = new ke("Terms of Service", [
3487
3487
  new M("Terms of Service", [
3488
3488
  new n("Last Updated", "February 22, 2025"),
3489
3489
  new n(
@@ -3558,8 +3558,8 @@ SELECT
3558
3558
  "conclusion"
3559
3559
  )
3560
3560
  ])
3561
- ]), bo = [
3562
- new Ce("Studio", [
3561
+ ]), To = [
3562
+ new ke("Studio", [
3563
3563
  un,
3564
3564
  ln,
3565
3565
  cn,
@@ -3641,7 +3641,7 @@ SELECT
3641
3641
  ])
3642
3642
  ]),
3643
3643
  yn,
3644
- new Ce("Privacy And Data", [
3644
+ new ke("Privacy And Data", [
3645
3645
  new M("Privacy Policy", [
3646
3646
  new n("Last Updated", "February 22, 2025"),
3647
3647
  new n(
@@ -3768,23 +3768,19 @@ SELECT
3768
3768
  title: "OpenAI"
3769
3769
  }, vn = {
3770
3770
  key: 2,
3771
- class: "mdi mdi-weather-windy",
3772
- title: "Mistral AI"
3773
- }, En = {
3774
- key: 3,
3775
3771
  class: "mdi mdi-google",
3776
3772
  title: "Google"
3777
- }, Sn = {
3778
- key: 4,
3773
+ }, En = {
3774
+ key: 3,
3779
3775
  class: "mdi mdi-robot",
3780
3776
  title: "LLM Provider"
3781
3777
  };
3782
- function Cn(t, e, o, i, c, p) {
3778
+ function Sn(t, e, o, i, c, p) {
3783
3779
  return r(), l("div", wn, [
3784
- t.providerType === "anthropic" ? (r(), l("i", Tn)) : t.providerType === "openai" ? (r(), l("i", bn)) : t.providerType === "mistral" ? (r(), l("i", vn)) : t.providerType === "google" ? (r(), l("i", En)) : (r(), l("i", Sn))
3780
+ t.providerType === "anthropic" ? (r(), l("i", Tn)) : t.providerType === "openai" ? (r(), l("i", bn)) : t.providerType === "google" ? (r(), l("i", vn)) : (r(), l("i", En))
3785
3781
  ]);
3786
3782
  }
3787
- const kn = /* @__PURE__ */ X(gn, [["render", Cn], ["__scopeId", "data-v-9c73c667"]]), An = ae({
3783
+ const Cn = /* @__PURE__ */ X(gn, [["render", Sn], ["__scopeId", "data-v-e96cf50b"]]), kn = ae({
3788
3784
  name: "ContextMenu",
3789
3785
  props: {
3790
3786
  items: {
@@ -3814,22 +3810,22 @@ const kn = /* @__PURE__ */ X(gn, [["render", Cn], ["__scopeId", "data-v-9c73c667
3814
3810
  }, c = (p) => {
3815
3811
  t.isVisible && e("close");
3816
3812
  };
3817
- return Ae(() => {
3813
+ return Pe(() => {
3818
3814
  setTimeout(() => {
3819
3815
  document.addEventListener("click", c);
3820
3816
  }, 300);
3821
- }), Ue(() => {
3817
+ }), Ye(() => {
3822
3818
  document.removeEventListener("click", c);
3823
3819
  }), {
3824
3820
  positionStyle: o,
3825
3821
  handleItemClick: i
3826
3822
  };
3827
3823
  }
3828
- }), In = ["onClick"];
3829
- function Pn(t, e, o, i, c, p) {
3824
+ }), An = ["onClick"];
3825
+ function In(t, e, o, i, c, p) {
3830
3826
  return t.isVisible ? (r(), l("div", {
3831
3827
  key: 0,
3832
- style: Oe(t.positionStyle),
3828
+ style: Fe(t.positionStyle),
3833
3829
  class: "context-menu"
3834
3830
  }, [
3835
3831
  (r(!0), l(pe, null, fe(t.items, (a) => (r(), l("div", {
@@ -3842,18 +3838,18 @@ function Pn(t, e, o, i, c, p) {
3842
3838
  class: me(`mdi ${a.icon}`)
3843
3839
  }, null, 2)) : I("", !0),
3844
3840
  s("span", null, j(a.label), 1)
3845
- ], 10, In))), 128))
3841
+ ], 10, An))), 128))
3846
3842
  ], 4)) : I("", !0);
3847
3843
  }
3848
- const Rn = /* @__PURE__ */ X(An, [["render", Pn], ["__scopeId", "data-v-48938153"]]), Mn = ae({
3844
+ const Pn = /* @__PURE__ */ X(kn, [["render", In], ["__scopeId", "data-v-48938153"]]), Rn = ae({
3849
3845
  name: "LLMConnectionListItem",
3850
3846
  components: {
3851
- SidebarItem: Re,
3852
- LLMProviderIcon: kn,
3853
- ConnectionRefresh: De,
3854
- ConnectionStatusIcon: Pe,
3847
+ SidebarItem: Le,
3848
+ LLMProviderIcon: Cn,
3849
+ ConnectionRefresh: Ue,
3850
+ ConnectionStatusIcon: Me,
3855
3851
  LoadingButton: Se,
3856
- ContextMenu: Rn,
3852
+ ContextMenu: Pn,
3857
3853
  Tooltip: Ee
3858
3854
  },
3859
3855
  props: {
@@ -3883,10 +3879,10 @@ const Rn = /* @__PURE__ */ X(An, [["render", Pn], ["__scopeId", "data-v-48938153
3883
3879
  ],
3884
3880
  setup(t, { emit: e }) {
3885
3881
  const o = C(""), i = C(!1), c = C(""), p = C("");
3886
- Ae(() => {
3882
+ Pe(() => {
3887
3883
  var y, D, u;
3888
3884
  t.item.type === "api-key" && ((y = t.item.connection) != null && y.getApiKey()) && (o.value = t.item.connection.getApiKey()), t.item.type === "model" && ((D = t.item.connection) != null && D.model) && (c.value = t.item.connection.model), t.item.type === "fast-model" && (p.value = ((u = t.item.connection) == null ? void 0 : u.fastModel) || "");
3889
- }), ke(
3885
+ }), Ae(
3890
3886
  // @ts-ignore
3891
3887
  () => {
3892
3888
  var y;
@@ -3895,7 +3891,7 @@ const Rn = /* @__PURE__ */ X(An, [["render", Pn], ["__scopeId", "data-v-48938153
3895
3891
  (y) => {
3896
3892
  t.item.type === "api-key" && y && (o.value = y);
3897
3893
  }
3898
- ), ke(
3894
+ ), Ae(
3899
3895
  () => {
3900
3896
  var y;
3901
3897
  return (y = t.item.connection) == null ? void 0 : y.model;
@@ -3904,7 +3900,7 @@ const Rn = /* @__PURE__ */ X(An, [["render", Pn], ["__scopeId", "data-v-48938153
3904
3900
  t.item.type === "model" && y && (c.value = y);
3905
3901
  },
3906
3902
  { immediate: !0 }
3907
- ), ke(
3903
+ ), Ae(
3908
3904
  () => {
3909
3905
  var y;
3910
3906
  return (y = t.item.connection) == null ? void 0 : y.fastModel;
@@ -3952,7 +3948,7 @@ const Rn = /* @__PURE__ */ X(An, [["render", Pn], ["__scopeId", "data-v-48938153
3952
3948
  y.stopPropagation(), e("refresh", t.item.id, ((D = t.item.connection) == null ? void 0 : D.name) || "", "connection");
3953
3949
  }, le = (y) => {
3954
3950
  e("toggleSaveCredential", y);
3955
- }, f = (y) => y instanceof Ge ? "anthropic" : y instanceof je ? "openai" : y instanceof Ke ? "mistral" : y instanceof Qe ? "google" : "unknown", k = (y) => y && y.connected === !0, v = (y) => {
3951
+ }, f = (y) => y instanceof Ne ? "anthropic" : y instanceof Ie ? "openai" : y instanceof qe ? "google" : "unknown", k = (y) => y && y.connected === !0, v = (y) => {
3956
3952
  var D;
3957
3953
  e("setActive", y, ((D = t.item.connection) == null ? void 0 : D.name) || "", "connection");
3958
3954
  }, L = (y) => {
@@ -3999,35 +3995,35 @@ const Rn = /* @__PURE__ */ X(An, [["render", Pn], ["__scopeId", "data-v-48938153
3999
3995
  }
4000
3996
  };
4001
3997
  }
4002
- }), Ln = {
3998
+ }), Mn = {
4003
3999
  key: 1,
4004
4000
  class: "mdi mdi-alert-circle node-icon"
4005
- }, Dn = {
4001
+ }, Ln = {
4006
4002
  key: 2,
4007
4003
  class: "mdi mdi-chat-outline node-icon"
4008
- }, _n = {
4004
+ }, Dn = {
4009
4005
  key: 3,
4010
4006
  class: "mdi mdi-test-tube node-icon"
4011
- }, Nn = {
4007
+ }, _n = {
4012
4008
  key: 4,
4013
4009
  class: "mdi mdi-chat-plus-outline node-icon"
4014
- }, qn = {
4010
+ }, Nn = {
4015
4011
  key: 5,
4016
4012
  class: "mdi mdi-chat node-icon"
4017
- }, Un = {
4013
+ }, qn = {
4018
4014
  key: 6,
4019
4015
  class: "mdi mdi-folder-outline node-icon"
4020
- }, On = { class: "api-key-input-wrapper" }, xn = ["type", "data-testid"], Bn = ["data-testid", "title"], Yn = ["data-testid"], Fn = ["data-testid"], Gn = ["data-testid"], jn = ["value", "data-testid"], Kn = ["data-testid"], Qn = ["data-testid"], Vn = ["data-testid"], Hn = ["value", "data-testid"], Wn = { class: "save-credential-toggle" }, zn = ["checked"], Xn = { key: 0 }, Jn = {
4016
+ }, Un = { class: "api-key-input-wrapper" }, On = ["type", "data-testid"], xn = ["data-testid", "title"], Bn = ["data-testid"], Yn = ["data-testid"], Fn = ["data-testid"], Gn = ["value", "data-testid"], jn = ["data-testid"], Kn = ["data-testid"], Qn = ["data-testid"], Vn = ["value", "data-testid"], Hn = { class: "save-credential-toggle" }, Wn = ["checked"], zn = { key: 0 }, Xn = {
4021
4017
  key: 0,
4022
4018
  class: "chat-actions"
4023
- }, Zn = {
4019
+ }, Jn = {
4024
4020
  key: 1,
4025
4021
  class: "connection-actions"
4026
- }, $n = {
4022
+ }, Zn = {
4027
4023
  key: 0,
4028
4024
  class: "mdi mdi-star loading-button is-active"
4029
4025
  };
4030
- function eo(t, e, o, i, c, p) {
4026
+ function $n(t, e, o, i, c, p) {
4031
4027
  const a = U("context-menu"), d = U("LLMProviderIcon"), w = U("tooltip"), h = U("LoadingButton"), P = U("connection-refresh"), E = U("connection-status-icon"), b = U("sidebar-item");
4032
4028
  return r(), l("div", null, [
4033
4029
  x(b, {
@@ -4046,7 +4042,7 @@ function eo(t, e, o, i, c, p) {
4046
4042
  t.item.type === "connection" ? (r(), z(d, {
4047
4043
  key: 0,
4048
4044
  "provider-type": t.getProviderType(t.item.connection)
4049
- }, null, 8, ["provider-type"])) : t.item.type === "error" ? (r(), l("i", Ln)) : t.item.type === "open-chat" ? (r(), l("i", Dn)) : t.item.type === "open-validation" ? (r(), l("i", _n)) : t.item.type === "new-chat" ? (r(), l("i", Nn)) : t.item.type === "chat-item" ? (r(), l("i", qn)) : t.item.type === "chats-header" ? (r(), l("i", Un)) : I("", !0)
4045
+ }, null, 8, ["provider-type"])) : t.item.type === "error" ? (r(), l("i", Mn)) : t.item.type === "open-chat" ? (r(), l("i", Ln)) : t.item.type === "open-validation" ? (r(), l("i", Dn)) : t.item.type === "new-chat" ? (r(), l("i", _n)) : t.item.type === "chat-item" ? (r(), l("i", Nn)) : t.item.type === "chats-header" ? (r(), l("i", qn)) : I("", !0)
4050
4046
  ]),
4051
4047
  name: q(() => [
4052
4048
  t.item.type === "refresh-connection" ? (r(), l("div", {
@@ -4066,7 +4062,7 @@ function eo(t, e, o, i, c, p) {
4066
4062
  type: "submit",
4067
4063
  class: "customize-button"
4068
4064
  }, "Update API Key", -1)),
4069
- s("div", On, [
4065
+ s("div", Un, [
4070
4066
  _(s("input", {
4071
4067
  type: t.showApiKey ? "text" : "password",
4072
4068
  id: "api-key",
@@ -4074,8 +4070,8 @@ function eo(t, e, o, i, c, p) {
4074
4070
  placeholder: "API Key",
4075
4071
  class: "connection-customize",
4076
4072
  "data-testid": `api-key-input-${t.item.connection.name}`
4077
- }, null, 8, xn), [
4078
- [xe, t.apiKeyInput]
4073
+ }, null, 8, On), [
4074
+ [Ge, t.apiKeyInput]
4079
4075
  ]),
4080
4076
  s("button", {
4081
4077
  type: "button",
@@ -4087,7 +4083,7 @@ function eo(t, e, o, i, c, p) {
4087
4083
  s("i", {
4088
4084
  class: me(t.showApiKey ? "mdi mdi-eye-off" : "mdi mdi-eye")
4089
4085
  }, null, 2)
4090
- ], 8, Bn)
4086
+ ], 8, xn)
4091
4087
  ])
4092
4088
  ], 32)
4093
4089
  ])) : t.item.type === "model" ? (r(), l("div", {
@@ -4104,7 +4100,7 @@ function eo(t, e, o, i, c, p) {
4104
4100
  type: "submit",
4105
4101
  class: "customize-button",
4106
4102
  "data-testid": `update-model-${t.item.connection.name}`
4107
- }, " Update Model ", 8, Fn),
4103
+ }, " Update Model ", 8, Yn),
4108
4104
  _(s("select", {
4109
4105
  "onUpdate:modelValue": e[6] || (e[6] = (m) => t.selectedModel = m),
4110
4106
  id: "connection-type",
@@ -4116,11 +4112,11 @@ function eo(t, e, o, i, c, p) {
4116
4112
  value: m,
4117
4113
  key: m,
4118
4114
  "data-testid": `model-option-${m}`
4119
- }, j(m), 9, jn))), 128))
4120
- ], 8, Gn), [
4115
+ }, j(m), 9, Gn))), 128))
4116
+ ], 8, Fn), [
4121
4117
  [ve, t.selectedModel]
4122
4118
  ])
4123
- ], 40, Yn)
4119
+ ], 40, Bn)
4124
4120
  ])) : t.item.type === "fast-model" ? (r(), l("div", {
4125
4121
  key: 3,
4126
4122
  class: "api-key-container",
@@ -4135,7 +4131,7 @@ function eo(t, e, o, i, c, p) {
4135
4131
  type: "submit",
4136
4132
  class: "customize-button",
4137
4133
  "data-testid": `update-fast-model-${t.item.connection.name}`
4138
- }, " Update Fast Model ", 8, Qn),
4134
+ }, " Update Fast Model ", 8, Kn),
4139
4135
  _(s("select", {
4140
4136
  "onUpdate:modelValue": e[9] || (e[9] = (m) => t.selectedFastModel = m),
4141
4137
  class: "connection-customize",
@@ -4149,23 +4145,23 @@ function eo(t, e, o, i, c, p) {
4149
4145
  value: m,
4150
4146
  key: m,
4151
4147
  "data-testid": `fast-model-option-${m}`
4152
- }, j(m), 9, Hn))), 128))
4153
- ], 8, Vn), [
4148
+ }, j(m), 9, Vn))), 128))
4149
+ ], 8, Qn), [
4154
4150
  [ve, t.selectedFastModel]
4155
4151
  ])
4156
- ], 40, Kn)
4152
+ ], 40, jn)
4157
4153
  ])) : t.item.type === "toggle-save-credential" ? (r(), l("div", {
4158
4154
  key: 4,
4159
4155
  class: "md-token-container",
4160
4156
  onClick: e[13] || (e[13] = A(() => {
4161
4157
  }, ["stop"]))
4162
4158
  }, [
4163
- s("label", Wn, [
4159
+ s("label", Hn, [
4164
4160
  s("input", {
4165
4161
  type: "checkbox",
4166
4162
  checked: t.item.connection.saveCredential,
4167
4163
  onChange: e[12] || (e[12] = (m) => t.toggleSaveCredential(t.item.connection))
4168
- }, null, 40, zn),
4164
+ }, null, 40, Wn),
4169
4165
  e[19] || (e[19] = s("span", { class: "checkbox-label" }, "Save Credentials", -1))
4170
4166
  ])
4171
4167
  ])) : (r(), l("span", {
@@ -4173,11 +4169,11 @@ function eo(t, e, o, i, c, p) {
4173
4169
  class: me(["title-pad-left truncate-text", { "error-indicator": t.item.type === "error" }])
4174
4170
  }, [
4175
4171
  de(j(t.item.name) + " ", 1),
4176
- t.item.count !== void 0 && t.item.count > 0 ? (r(), l("span", Xn, " (" + j(t.item.count) + ") ", 1)) : I("", !0)
4172
+ t.item.count !== void 0 && t.item.count > 0 ? (r(), l("span", zn, " (" + j(t.item.count) + ") ", 1)) : I("", !0)
4177
4173
  ], 2))
4178
4174
  ]),
4179
4175
  "extra-content": q(() => [
4180
- t.item.type === "chat-item" ? (r(), l("div", Jn, [
4176
+ t.item.type === "chat-item" ? (r(), l("div", Xn, [
4181
4177
  x(w, {
4182
4178
  class: "tactile-button",
4183
4179
  content: "Delete Chat",
@@ -4194,8 +4190,8 @@ function eo(t, e, o, i, c, p) {
4194
4190
  _: 1
4195
4191
  })
4196
4192
  ])) : I("", !0),
4197
- t.item.type === "connection" ? (r(), l("div", Zn, [
4198
- t.item.connection && t.item.connection.isDefault ? (r(), l("i", $n)) : (r(), z(h, {
4193
+ t.item.type === "connection" ? (r(), l("div", Jn, [
4194
+ t.item.connection && t.item.connection.isDefault ? (r(), l("i", Zn)) : (r(), z(h, {
4199
4195
  key: 1,
4200
4196
  class: "loading-button",
4201
4197
  onClick: e[15] || (e[15] = A(() => {
@@ -4249,7 +4245,11 @@ function eo(t, e, o, i, c, p) {
4249
4245
  }, 8, ["item-id", "name", "indent", "is-selected", "is-collapsible", "is-collapsed", "onClick", "onToggle", "onContextmenu"])
4250
4246
  ]);
4251
4247
  }
4252
- const to = /* @__PURE__ */ X(Mn, [["render", eo], ["__scopeId", "data-v-083169ee"]]), no = ae({
4248
+ const eo = /* @__PURE__ */ X(Rn, [["render", $n], ["__scopeId", "data-v-c4adb9d9"]]), Ce = {
4249
+ openai: ["gpt-5.2", "gpt-5.2-mini", "gpt-5.1"],
4250
+ anthropic: ["claude-opus-4-20250514", "claude-sonnet-4-20250514", "claude-3-5-sonnet-20240620"],
4251
+ google: ["models/gemini-2.5-pro", "models/gemini-2.5-flash"]
4252
+ }, to = ae({
4253
4253
  name: "LLMConnectionCreator",
4254
4254
  props: {
4255
4255
  visible: {
@@ -4276,7 +4276,7 @@ const to = /* @__PURE__ */ X(Mn, [["render", eo], ["__scopeId", "data-v-083169ee
4276
4276
  type: "openai",
4277
4277
  options: {
4278
4278
  apiKey: "",
4279
- model: "gpt-4o",
4279
+ model: Ie.getDefaultModel(Ce.openai),
4280
4280
  saveCredential: !1
4281
4281
  }
4282
4282
  }), i = Y("llmConnectionStore");
@@ -4291,19 +4291,19 @@ const to = /* @__PURE__ */ X(Mn, [["render", eo], ["__scopeId", "data-v-083169ee
4291
4291
  }, a = (h) => {
4292
4292
  switch (h) {
4293
4293
  case "openai":
4294
- o.value.options.model = "gpt-5.2-mini";
4294
+ o.value.options.model = Ie.getDefaultModel(
4295
+ Ce.openai
4296
+ );
4295
4297
  break;
4296
4298
  case "anthropic":
4297
- o.value.options.model = "claude-3-sonnet-20240229";
4298
- break;
4299
- case "cohere":
4300
- o.value.options.model = "command";
4301
- break;
4302
- case "mistral":
4303
- o.value.options.model = "mistral-large-latest";
4299
+ o.value.options.model = Ne.getDefaultModel(
4300
+ Ce.anthropic
4301
+ );
4304
4302
  break;
4305
4303
  case "google":
4306
- o.value.options.model = "models/gemini-2.5-flash";
4304
+ o.value.options.model = qe.getDefaultModel(
4305
+ Ce.google
4306
+ );
4307
4307
  break;
4308
4308
  default:
4309
4309
  o.value.options.model = "";
@@ -4339,17 +4339,17 @@ const to = /* @__PURE__ */ X(Mn, [["render", eo], ["__scopeId", "data-v-083169ee
4339
4339
  }
4340
4340
  }
4341
4341
  }
4342
- }), oo = {
4342
+ }), no = {
4343
4343
  key: 0,
4344
4344
  class: "creator-container"
4345
- }, io = { class: "form-row" }, ao = { class: "form-row" }, so = { class: "form-row" }, ro = { class: "form-row" }, lo = { class: "button-row" };
4346
- function co(t, e, o, i, c, p) {
4345
+ }, oo = { class: "form-row" }, io = { class: "form-row" }, ao = { class: "form-row" }, so = { class: "form-row" }, ro = { class: "button-row" };
4346
+ function lo(t, e, o, i, c, p) {
4347
4347
  const a = U("loading-button");
4348
- return t.visible ? (r(), l("div", oo, [
4348
+ return t.visible ? (r(), l("div", no, [
4349
4349
  s("form", {
4350
4350
  onSubmit: e[5] || (e[5] = A((...d) => t.submitConnectionCreation && t.submitConnectionCreation(...d), ["prevent"]))
4351
4351
  }, [
4352
- s("div", io, [
4352
+ s("div", oo, [
4353
4353
  e[6] || (e[6] = s("label", { for: "llm-connection-name" }, "Name", -1)),
4354
4354
  _(s("input", {
4355
4355
  type: "text",
@@ -4362,7 +4362,7 @@ function co(t, e, o, i, c, p) {
4362
4362
  [G, t.connectionDetails.name]
4363
4363
  ])
4364
4364
  ]),
4365
- s("div", ao, [
4365
+ s("div", io, [
4366
4366
  e[8] || (e[8] = s("label", { for: "llm-provider-type" }, "Provider", -1)),
4367
4367
  _(s("select", {
4368
4368
  "onUpdate:modelValue": e[1] || (e[1] = (d) => t.connectionDetails.type = d),
@@ -4386,7 +4386,7 @@ function co(t, e, o, i, c, p) {
4386
4386
  [ve, t.connectionDetails.type]
4387
4387
  ])
4388
4388
  ]),
4389
- s("div", so, [
4389
+ s("div", ao, [
4390
4390
  e[9] || (e[9] = s("label", { for: "llm-api-key" }, "API Key", -1)),
4391
4391
  _(s("input", {
4392
4392
  type: "password",
@@ -4399,7 +4399,7 @@ function co(t, e, o, i, c, p) {
4399
4399
  [G, t.connectionDetails.options.apiKey]
4400
4400
  ])
4401
4401
  ]),
4402
- s("div", ro, [
4402
+ s("div", so, [
4403
4403
  e[10] || (e[10] = s("label", { for: "save-credential" }, "Save Credential?", -1)),
4404
4404
  _(s("input", {
4405
4405
  type: "checkbox",
@@ -4407,10 +4407,10 @@ function co(t, e, o, i, c, p) {
4407
4407
  "onUpdate:modelValue": e[3] || (e[3] = (d) => t.connectionDetails.options.saveCredential = d),
4408
4408
  "data-testid": "llm-connection-creator-save-credential"
4409
4409
  }, null, 512), [
4410
- [Ie, t.connectionDetails.options.saveCredential]
4410
+ [Re, t.connectionDetails.options.saveCredential]
4411
4411
  ])
4412
4412
  ]),
4413
- s("div", lo, [
4413
+ s("div", ro, [
4414
4414
  x(a, {
4415
4415
  "data-testid": "llm-connection-creator-submit",
4416
4416
  action: t.handleSubmitConnection,
@@ -4429,7 +4429,7 @@ function co(t, e, o, i, c, p) {
4429
4429
  ], 32)
4430
4430
  ])) : I("", !0);
4431
4431
  }
4432
- const uo = /* @__PURE__ */ X(no, [["render", co], ["__scopeId", "data-v-0bf2aa76"]]), po = {
4432
+ const co = /* @__PURE__ */ X(to, [["render", lo], ["__scopeId", "data-v-7e9f9a7b"]]), uo = {
4433
4433
  name: "LLMConnectionList",
4434
4434
  props: {
4435
4435
  activeLLMKey: {
@@ -4499,7 +4499,7 @@ const uo = /* @__PURE__ */ X(no, [["render", co], ["__scopeId", "data-v-0bf2aa76
4499
4499
  Object.entries(o.connections).forEach(([f, k]) => {
4500
4500
  let v = f;
4501
4501
  E.value[v] = !0;
4502
- }), Ae(() => {
4502
+ }), Pe(() => {
4503
4503
  const f = Ve("llm-key", "");
4504
4504
  if (f) {
4505
4505
  const k = f.split(N), v = k[0], L = k[1];
@@ -4616,11 +4616,11 @@ const uo = /* @__PURE__ */ X(no, [["render", co], ["__scopeId", "data-v-0bf2aa76
4616
4616
  };
4617
4617
  },
4618
4618
  components: {
4619
- SidebarList: Le,
4620
- LLMConnectionListItem: to,
4621
- LLMConnectionCreator: uo,
4619
+ SidebarList: _e,
4620
+ LLMConnectionListItem: eo,
4621
+ LLMConnectionCreator: co,
4622
4622
  LoadingButton: Se,
4623
- StatusIcon: Me,
4623
+ StatusIcon: De,
4624
4624
  Tooltip: Ee
4625
4625
  },
4626
4626
  methods: {
@@ -4628,8 +4628,8 @@ const uo = /* @__PURE__ */ X(no, [["render", co], ["__scopeId", "data-v-0bf2aa76
4628
4628
  return this.llmConnectionStore.resetConnection(t.name);
4629
4629
  },
4630
4630
  setActiveConnection(t) {
4631
- this.llmConnectionStore.activeConnection = t, this.llmConnectionStore.connections[t].isDefault = !0, Object.keys(this.llmConnectionStore.connections).forEach((e) => {
4632
- e !== t && (this.llmConnectionStore.connections[e].isDefault = !1);
4631
+ this.llmConnectionStore.activeConnection = t, this.llmConnectionStore.connections[t].isDefault = !0, this.llmConnectionStore.connections[t].changed = !0, Object.keys(this.llmConnectionStore.connections).forEach((e) => {
4632
+ e !== t && this.llmConnectionStore.connections[e].isDefault && (this.llmConnectionStore.connections[e].isDefault = !1, this.llmConnectionStore.connections[e].changed = !0);
4633
4633
  }), this.saveConnections();
4634
4634
  },
4635
4635
  deleteConnection(t, e) {
@@ -4647,16 +4647,16 @@ const uo = /* @__PURE__ */ X(no, [["render", co], ["__scopeId", "data-v-0bf2aa76
4647
4647
  return Object.values(this.llmConnectionStore.connections);
4648
4648
  }
4649
4649
  }
4650
- }, mo = { class: "button-container" }, ho = ["data-testid"];
4651
- function yo(t, e, o, i, c, p) {
4650
+ }, po = { class: "button-container" }, mo = ["data-testid"];
4651
+ function ho(t, e, o, i, c, p) {
4652
4652
  const a = U("LLMConnectionCreator"), d = U("LLMConnectionListItem"), w = U("sidebar-list");
4653
4653
  return r(), z(w, { title: "LLM Connections" }, {
4654
4654
  actions: q(() => [
4655
- s("div", mo, [
4655
+ s("div", po, [
4656
4656
  s("button", {
4657
4657
  onClick: e[0] || (e[0] = (h) => i.creatorVisible = !i.creatorVisible),
4658
4658
  "data-testid": o.testTag ? `llm-connection-creator-add-${o.testTag}` : "llm-connection-creator-add"
4659
- }, j(i.creatorVisible ? "Hide" : "New"), 9, ho)
4659
+ }, j(i.creatorVisible ? "Hide" : "New"), 9, mo)
4660
4660
  ]),
4661
4661
  x(a, {
4662
4662
  visible: i.creatorVisible,
@@ -4683,10 +4683,10 @@ function yo(t, e, o, i, c, p) {
4683
4683
  _: 1
4684
4684
  });
4685
4685
  }
4686
- const vo = /* @__PURE__ */ X(po, [["render", yo], ["__scopeId", "data-v-376b250c"]]);
4686
+ const bo = /* @__PURE__ */ X(uo, [["render", ho], ["__scopeId", "data-v-6e87d854"]]);
4687
4687
  export {
4688
- To as C,
4689
- vo as L,
4688
+ wo as C,
4689
+ bo as L,
4690
4690
  yt as a,
4691
- bo as d
4691
+ To as d
4692
4692
  };