@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.
- package/README.md +1 -0
- package/dist/AssetAutoImporter-BA8C4p09.js +403 -0
- package/dist/{ChatCreatorModal-Cd40SvdM.js → ChatCreatorModal-94gZ9D-y.js} +1 -1
- package/dist/{CodeBlock-Dj-GfTbW.js → CodeBlock-C9o09ipr.js} +1 -1
- package/dist/{CommunityModels-lX2RhHCG.js → CommunityModels-D48H9Bqt.js} +6 -6
- package/dist/{ConnectionView-CZ06qjjE.js → ConnectionView-sEXGE8Vs.js} +5 -5
- package/dist/{CreateEditorFromDatasourcePopup-DwA938kf.js → CreateEditorFromDatasourcePopup-BUoegyem.js} +2 -2
- package/dist/{Dashboard-CQsIqWZC.js → Dashboard-C6adKZ7q.js} +202 -203
- package/dist/{DashboardImportSelector-CkqH52FX.js → DashboardImportSelector-CQqXshDj.js} +1 -1
- package/dist/{DashboardMobile-DWFlel5p.js → DashboardMobile-BU1nDLQv.js} +42 -42
- package/dist/{Editor-DQ66Vp6v.js → Editor-DO4VRvek.js} +9 -10
- package/dist/{ErrorMessage-D5JeF3Iz.js → ErrorMessage-Cz7q7vJI.js} +1 -1
- package/dist/{GlobalChatPanel-B_s3COHE.js → GlobalChatPanel-Ct6oSj_A.js} +20 -20
- package/dist/{IDE-4-Jg6gsM.js → IDE-kdaEhA4g.js} +19 -20
- package/dist/{JobsView-B5NWDUgP.js → JobsView-BcyWrDRf.js} +11 -11
- package/dist/{LLMChat-eKgEc-I3.js → LLMChat-Dg8VvTIP.js} +19 -19
- package/dist/{LLMView-CdTwMLVV.js → LLMView-CZNNYXC1.js} +61 -61
- package/dist/{LoadingView-Bu3wLJ7J.js → LoadingView-k2CIKiN7.js} +1 -1
- package/dist/{MarkdownRenderer-B6lqdkgc.js → MarkdownRenderer-Dlb_KGmk.js} +1 -1
- package/dist/{MobileIDE-CZlg20oa.js → MobileIDE-BQcdjWUT.js} +26 -27
- package/dist/{ModelCard-Bs_d7Jis.js → ModelCard-Dn2b5WLs.js} +5 -5
- package/dist/{ModelView-BP5yyecx.js → ModelView-BEi83zrX.js} +6 -6
- package/dist/{PageLoading-DKFeqkmK.js → PageLoading-C7H6q6U6.js} +248 -248
- package/dist/{ResultComponent-BaDheojB.js → ResultComponent-DW9Q9tp9.js} +5 -5
- package/dist/{Results-CrpHB101.js → Results-N2OttUlb.js} +19 -19
- package/dist/{StatusIcon-Clfyy-Yn.js → StatusIcon-B21tjIXx.js} +1 -1
- package/dist/{StoreTokenModal-CO5hXMs3.js → StoreTokenModal-CHgvjLGl.js} +1 -1
- package/dist/{SymbolsPane-XFVErDFb.js → SymbolsPane-DUrLpSSw.js} +11 -11
- package/dist/{TutorialPage-CMcTYDOV.js → TutorialPage-DHgPuFN0.js} +11 -11
- package/dist/{VegaLiteChart-DX_LbF3g.js → VegaLiteChart-BqHLSptG.js} +11116 -11067
- package/dist/{WelcomePage-B6E35FUa.js → WelcomePage-CN6ptsoF.js} +3 -3
- package/dist/agent.js +1349 -0
- package/dist/components/VegaLiteChart.vue.d.ts.map +1 -1
- package/dist/components/chartControlsManager.d.ts +0 -1
- package/dist/components/chartControlsManager.d.ts.map +1 -1
- package/dist/{cssMode-zpO2ap2B.js → cssMode-DW4OByy3.js} +2 -2
- package/dist/dashboard.js +63 -63
- package/dist/dashboards/chartTheme.d.ts +68 -0
- package/dist/dashboards/chartTheme.d.ts.map +1 -0
- package/dist/dashboards/donutSpec.d.ts +2 -1
- package/dist/dashboards/donutSpec.d.ts.map +1 -1
- package/dist/dashboards/headlineSpec.d.ts +2 -1
- package/dist/dashboards/headlineSpec.d.ts.map +1 -1
- package/dist/dashboards/helpers.d.ts +23 -0
- package/dist/dashboards/helpers.d.ts.map +1 -1
- package/dist/dashboards/index.d.ts +2 -0
- package/dist/dashboards/index.d.ts.map +1 -1
- package/dist/dashboards/layerSpec.d.ts +4 -1
- package/dist/dashboards/layerSpec.d.ts.map +1 -1
- package/dist/dashboards/pointSpec.d.ts +2 -1
- package/dist/dashboards/pointSpec.d.ts.map +1 -1
- package/dist/dashboards/spec.d.ts +8 -1
- package/dist/dashboards/spec.d.ts.map +1 -1
- package/dist/{editor.main-BQh6DxDB.js → editor.main-TuTbSVcN.js} +22 -22
- package/dist/{editorStore-CiWH_nGN.js → editorStore-Czhpct1j.js} +1751 -1181
- package/dist/entry.agent.d.ts +12 -0
- package/dist/entry.agent.d.ts.map +1 -0
- package/dist/entry.llm.d.ts +1 -1
- package/dist/entry.llm.d.ts.map +1 -1
- package/dist/{freemarker2-DQBqlEXc.js → freemarker2-ZGcKAI8o.js} +1 -1
- package/dist/{globalChatRuntime-DAERmOdu.js → globalChatRuntime-BnMYNYqe.js} +35 -35
- package/dist/{handlebars-tgYxaM70.js → handlebars-B3s0Qrrb.js} +1 -1
- package/dist/{helpers-C2pARJoZ.js → helpers-B3tq3RZK.js} +17 -17
- package/dist/{html-jJahD3Mi.js → html-DM1koKCG.js} +1 -1
- package/dist/{htmlMode-BA1-8l2e.js → htmlMode-CpPImbDh.js} +2 -2
- package/dist/{javascript-Cypfo7va.js → javascript-jClqu73w.js} +1 -1
- package/dist/{jsonMode-xJye8PWS.js → jsonMode-CwFYTPO9.js} +2 -2
- package/dist/{liquid-BGDrv5da.js → liquid-C6l-UINC.js} +1 -1
- package/dist/llm/chatAgentPrompt.d.ts +4 -16
- package/dist/llm/chatAgentPrompt.d.ts.map +1 -1
- package/dist/llm/dashboardAgentRuntime.d.ts +10 -10
- package/dist/llm/dashboardAgentTools.d.ts +10 -10
- package/dist/llm/data/prompts.d.ts +1 -1
- package/dist/llm/data/prompts.d.ts.map +1 -1
- package/dist/llm/data/trilogySyntax.generated.d.ts +3 -3
- package/dist/llm/data/trilogySyntax.generated.d.ts.map +1 -1
- package/dist/llm/returnToUserTool.d.ts +20 -0
- package/dist/llm/returnToUserTool.d.ts.map +1 -0
- package/dist/llm/toolLoopCore.d.ts +7 -0
- package/dist/llm/toolLoopCore.d.ts.map +1 -1
- package/dist/llm/utils.d.ts.map +1 -1
- package/dist/{llm-Wf4Etiu9.js → llm-Bc1CfjOE.js} +2203 -2722
- package/dist/llm.js +3 -3
- package/dist/{localStorage-C3xms-ab.js → localStorage-Cy0sHlT0.js} +19 -19
- package/dist/{lspLanguageFeatures-V3e_p9oN.js → lspLanguageFeatures-GDtuGOTD.js} +1 -1
- package/dist/{mdx-BUR1aImW.js → mdx-BQEQ0k1f.js} +1 -1
- package/dist/monaco.js +3 -3
- package/dist/{python-YLkl0pc6.js → python-USoVCfWY.js} +1 -1
- package/dist/{razor-BP8TRMDY.js → razor-BxmgiR-q.js} +1 -1
- package/dist/{reconcile-BH_ReGDR.js → reconcile-DtPcgEjQ.js} +1 -1
- package/dist/{remoteStoreSync-B0K8QScO.js → remoteStoreSync-CscErZ-I.js} +2 -2
- package/dist/{stores-DTGQZ4_B.js → stores-DgdADCiH.js} +323 -323
- package/dist/stores.js +3 -4
- package/dist/trilogy-studio-components.css +1 -1
- package/dist/{tsMode-BH9HS_sH.js → tsMode-BEQ7aXX4.js} +1 -1
- package/dist/{typescript-BM-ynfk9.js → typescript-CzBSjjfY.js} +1 -1
- package/dist/{useChatWithTools-BSrzJtYI.js → useChatWithTools-CMhGxdyr.js} +14 -14
- package/dist/{useDashboard-CGeIdDuX.js → useDashboard-CjZgjmgb.js} +553 -553
- package/dist/{useGlobalChatPanel-D9kMZLeF.js → useGlobalChatPanel-Doeilj18.js} +69 -70
- package/dist/views/LLMView.vue.d.ts +23 -23
- package/dist/views/TutorialPage.vue.d.ts +10 -10
- package/dist/views.js +147 -148
- package/dist/vite.agent.config.d.ts +3 -0
- package/dist/vite.agent.config.d.ts.map +1 -0
- package/dist/{workers-B9Eybl-M.js → workers-CHvkad0r.js} +2 -2
- package/dist/{xml-M5WFPSpA.js → xml-ODdyS0gX.js} +1 -1
- package/dist/{yaml-CEeFwjz9.js → yaml-PCBTA2qD.js} +1 -1
- package/package.json +7 -2
- package/dist/AssetAutoImporter-C_7Ms9xe.js +0 -403
- package/dist/rolldown-runtime-B0aSnxlc.js +0 -20
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { At as e, Dt as t, Et as n, Nt as r, Ot as i, Rt as a, Tt as o, kt as s } from "./llm-Bc1CfjOE.js";
|
|
2
|
+
import { t as c } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
3
|
+
import { $ as l, C as u, D as d, E as f, Q as p, T as m, k as h, o as g, tt as _, w as v } from "./editorStore-Czhpct1j.js";
|
|
4
|
+
import { a as y, d as b, i as x, o as S, s as C } from "./stores-DgdADCiH.js";
|
|
5
5
|
import { u as w } from "./connections-CWH3zwH2.js";
|
|
6
6
|
import { i as ee, n as te, r as ne, t as re } from "./helpers-Bhue4TU-.js";
|
|
7
|
-
import { c as T, f as E, l as D, n as O, p as k, t as ie, u as A } from "./useGlobalChatPanel-
|
|
8
|
-
import { t as ae } from "./localStorage-
|
|
9
|
-
import { t as oe } from "./helpers-
|
|
10
|
-
import { n as se, r as ce, t as le } from "./remoteStoreSync-
|
|
11
|
-
import { t as ue } from "./StatusIcon-
|
|
12
|
-
import { t as de } from "./CreateEditorFromDatasourcePopup-
|
|
7
|
+
import { c as T, f as E, l as D, n as O, p as k, t as ie, u as A } from "./useGlobalChatPanel-Doeilj18.js";
|
|
8
|
+
import { t as ae } from "./localStorage-Cy0sHlT0.js";
|
|
9
|
+
import { t as oe } from "./helpers-B3tq3RZK.js";
|
|
10
|
+
import { n as se, r as ce, t as le } from "./remoteStoreSync-CscErZ-I.js";
|
|
11
|
+
import { t as ue } from "./StatusIcon-B21tjIXx.js";
|
|
12
|
+
import { t as de } from "./CreateEditorFromDatasourcePopup-BUoegyem.js";
|
|
13
13
|
import { Fragment as j, Transition as fe, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createStaticVNode as pe, createTextVNode as L, createVNode as R, defineComponent as z, inject as B, nextTick as me, normalizeClass as V, normalizeStyle as he, onBeforeUnmount as ge, onMounted as _e, onUnmounted as ve, openBlock as H, reactive as ye, ref as U, renderList as W, renderSlot as G, resolveComponent as K, shallowRef as be, toDisplayString as q, unref as xe, vModelCheckbox as Se, vModelDynamic as Ce, vModelSelect as J, vModelText as Y, vShow as X, watch as we, withCtx as Z, withDirectives as Q, withModifiers as $ } from "vue";
|
|
14
14
|
import { storeToRefs as Te } from "pinia";
|
|
15
15
|
//#region components/model/ModelCreator.vue?vue&type=script&lang.ts
|
|
@@ -257,7 +257,7 @@ function Re(e, t, n, r, i, a) {
|
|
|
257
257
|
onClick: t[16] ||= (t) => e.close()
|
|
258
258
|
}, "Cancel")])])])) : P("", !0);
|
|
259
259
|
}
|
|
260
|
-
var ze = /*#__PURE__*/
|
|
260
|
+
var ze = /*#__PURE__*/ c(Ee, [["render", Re], ["__scopeId", "data-v-acdd5351"]]), Be = "mdi mdi-file-document-outline", Ve = {
|
|
261
261
|
editors: "mdi mdi-file-document-edit-outline",
|
|
262
262
|
connections: "mdi mdi-database-outline",
|
|
263
263
|
llms: "mdi mdi-creation-outline",
|
|
@@ -320,7 +320,7 @@ var $e = z({
|
|
|
320
320
|
name: "EditorCreator",
|
|
321
321
|
components: {
|
|
322
322
|
Tooltip: E,
|
|
323
|
-
InlineErrorMessage: /* @__PURE__ */
|
|
323
|
+
InlineErrorMessage: /* @__PURE__ */ c(Je, [["render", Qe], ["__scopeId", "data-v-9408aaa1"]])
|
|
324
324
|
},
|
|
325
325
|
props: {
|
|
326
326
|
connection: {
|
|
@@ -418,7 +418,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
418
418
|
}, "Cancel")])
|
|
419
419
|
], 32)])) : P("", !0);
|
|
420
420
|
}
|
|
421
|
-
var ft = /*#__PURE__*/
|
|
421
|
+
var ft = /*#__PURE__*/ c($e, [["render", dt], ["__scopeId", "data-v-74250929"]]), pt = z({
|
|
422
422
|
name: "SidebarList",
|
|
423
423
|
props: { title: {
|
|
424
424
|
type: String,
|
|
@@ -442,7 +442,7 @@ function yt(e, t, n, r, i, a) {
|
|
|
442
442
|
I("div", vt, [G(e.$slots, "default", { isMobile: e.isMobile }, void 0, !0)])
|
|
443
443
|
]);
|
|
444
444
|
}
|
|
445
|
-
var bt = /*#__PURE__*/
|
|
445
|
+
var bt = /*#__PURE__*/ c(pt, [["render", yt], ["__scopeId", "data-v-9511e8c1"]]), xt = {
|
|
446
446
|
name: "SidebarItem",
|
|
447
447
|
props: {
|
|
448
448
|
itemId: {
|
|
@@ -532,7 +532,7 @@ function Ot(e, t, n, r, i, a) {
|
|
|
532
532
|
G(e.$slots, "extra-content", {}, void 0, !0)
|
|
533
533
|
], 2)]);
|
|
534
534
|
}
|
|
535
|
-
var kt = /*#__PURE__*/
|
|
535
|
+
var kt = /*#__PURE__*/ c(xt, [["render", Ot], ["__scopeId", "data-v-c3f9697d"]]), At = /* @__PURE__ */ z({
|
|
536
536
|
__name: "ConnectionStatusIcon",
|
|
537
537
|
props: { connection: {} },
|
|
538
538
|
setup(e) {
|
|
@@ -547,7 +547,7 @@ var kt = /*#__PURE__*/ e(xt, [["render", Ot], ["__scopeId", "data-v-c3f9697d"]])
|
|
|
547
547
|
"testName"
|
|
548
548
|
]));
|
|
549
549
|
}
|
|
550
|
-
}), jt = "data:image/webp;base64,UklGRlgDAABXRUJQVlA4TEwDAAAvHUAHELfnKpIkxco+Zl3Pvw9+7wvHhuNItlWlzzd0BSuLjphJgQhc33XUSJIjRfWa56LY44/oiKwruLVtq1bu3uf6/e5WAZqTOwXQExlFWEgRVoJb5u723ovdWe29KcP8mc8VfhMWBIQCAQCAAAAsACCiigaqICxqALqowwIwABIMCA3CQ1CBgACqIDwIwoIgAAKFSznQmqFAjn/kihH1khc84z4dyeC1EmbKbT8U31dP/882/5VOWmuKNWW1223L8/CoaZOfbkXdt8d2s1lmu+NuxE1mk7Kcil6UZBnjspgii/xkNlYoAAEOTqklVBFhAZig/jjFgignMhT4R4EqgAhAQFgABGGUTCfHH16Er0ZBhxGAEgANIiAC8MUgVAAxK0qSsQwWd1cPk1XCr/L/bakv4/uMnbF/Z9o0S7p1zO6VdbxNk9q+/1wbukkTfOujxCQFiACNGiwiAAMBIRAILCwEACAgCIEBYWAgEBAAIAA0AjwSWgAs6nAoQ0BYMKgipRPQR1UhiLJSQxRSAKLR6b2KC3/vSRX2v9/Ulbz+Lt/XlpSr38f6/9uZ+pt+Xfp5Pn9r59PPntb/GiTatm3sjZMT27Zt27atMrX+06a2bdv2CWrbts37APn/D2PkASL6PwGsx9TQEUfBxlRbhH/5oQH2RiECjZ49vyQCwMfaUJAZ9cPaSqMBADwtDHhNqR6MuLA4DFzjlQDczfU4TZo7CHF8Q0FSICT+yotThmAXE21ZU5slOHZBYXIMgHfq4w+/c2JVwd9KW8asETigLDscwM8u6+92ev3kT4oveOjLmDm8rSJDBYKcjbUYu76H6P23BHDjVB4JXma6rPuFe0fpiyOfKHBQY9LP7qevQmjKOCdEJNiqi5GZJs84OXHDyqKqRZy2WCp6cGodh0NqpnYbw/4foEPfc9PluCBKEAfOm8ym19at3HqU3j798ZPLhMZlLSNR0qu2FbHf4ocnid486JI2a2jvVZs+bVjaFxFxYtPqzYeJDt651C5t2pw1n0/QyY/rlvcf1WfFxhdERx5dYZxP3dxN9Grn2iXrnxEd23Gtg/E9c3sf0cvnx+nkrhtdTMjL9w8T0d5bp5nA765u23f3IhOx83w760EB", Mt = { class: "sidebar-tag-chip" }, Nt = /*#__PURE__*/
|
|
550
|
+
}), jt = "data:image/webp;base64,UklGRlgDAABXRUJQVlA4TEwDAAAvHUAHELfnKpIkxco+Zl3Pvw9+7wvHhuNItlWlzzd0BSuLjphJgQhc33XUSJIjRfWa56LY44/oiKwruLVtq1bu3uf6/e5WAZqTOwXQExlFWEgRVoJb5u723ovdWe29KcP8mc8VfhMWBIQCAQCAAAAsACCiigaqICxqALqowwIwABIMCA3CQ1CBgACqIDwIwoIgAAKFSznQmqFAjn/kihH1khc84z4dyeC1EmbKbT8U31dP/882/5VOWmuKNWW1223L8/CoaZOfbkXdt8d2s1lmu+NuxE1mk7Kcil6UZBnjspgii/xkNlYoAAEOTqklVBFhAZig/jjFgignMhT4R4EqgAhAQFgABGGUTCfHH16Er0ZBhxGAEgANIiAC8MUgVAAxK0qSsQwWd1cPk1XCr/L/bakv4/uMnbF/Z9o0S7p1zO6VdbxNk9q+/1wbukkTfOujxCQFiACNGiwiAAMBIRAILCwEACAgCIEBYWAgEBAAIAA0AjwSWgAs6nAoQ0BYMKgipRPQR1UhiLJSQxRSAKLR6b2KC3/vSRX2v9/Ulbz+Lt/XlpSr38f6/9uZ+pt+Xfp5Pn9r59PPntb/GiTatm3sjZMT27Zt27atMrX+06a2bdv2CWrbts37APn/D2PkASL6PwGsx9TQEUfBxlRbhH/5oQH2RiECjZ49vyQCwMfaUJAZ9cPaSqMBADwtDHhNqR6MuLA4DFzjlQDczfU4TZo7CHF8Q0FSICT+yotThmAXE21ZU5slOHZBYXIMgHfq4w+/c2JVwd9KW8asETigLDscwM8u6+92ev3kT4oveOjLmDm8rSJDBYKcjbUYu76H6P23BHDjVB4JXma6rPuFe0fpiyOfKHBQY9LP7qevQmjKOCdEJNiqi5GZJs84OXHDyqKqRZy2WCp6cGodh0NqpnYbw/4foEPfc9PluCBKEAfOm8ym19at3HqU3j798ZPLhMZlLSNR0qu2FbHf4ocnid486JI2a2jvVZs+bVjaFxFxYtPqzYeJDt651C5t2pw1n0/QyY/rlvcf1WfFxhdERx5dYZxP3dxN9Grn2iXrnxEd23Gtg/E9c3sf0cvnx+nkrhtdTMjL9w8T0d5bp5nA765u23f3IhOx83w760EB", Mt = { class: "sidebar-tag-chip" }, Nt = /*#__PURE__*/ c(/* @__PURE__ */ z({
|
|
551
551
|
__name: "SidebarTagChip",
|
|
552
552
|
props: { label: {} },
|
|
553
553
|
setup(e) {
|
|
@@ -621,7 +621,7 @@ function Rt(e, t, n, r, i, a) {
|
|
|
621
621
|
class: V(`mdi ${t.icon}`)
|
|
622
622
|
}, null, 2)) : P("", !0), I("span", null, q(t.label), 1)], 10, Lt))]))), 128))], 12, Ft)) : P("", !0);
|
|
623
623
|
}
|
|
624
|
-
var zt = /*#__PURE__*/
|
|
624
|
+
var zt = /*#__PURE__*/ c(Pt, [["render", Rt], ["__scopeId", "data-v-a366f0a9"]]), Bt = ["title", "data-testid"], Vt = 8, Ht = 6, Ut = 27, Wt = 4, Gt = /*#__PURE__*/ c(/* @__PURE__ */ z({
|
|
625
625
|
__name: "SidebarOverflowMenu",
|
|
626
626
|
props: {
|
|
627
627
|
items: {},
|
|
@@ -699,7 +699,7 @@ var zt = /*#__PURE__*/ e(Pt, [["render", Rt], ["__scopeId", "data-v-a366f0a9"]])
|
|
|
699
699
|
setup(e, { emit: t }) {
|
|
700
700
|
let n = B("connectionStore"), r = B("editorStore"), i = B("saveModels"), a = B("saveConnections"), o = B("saveEditors"), s = B("setActiveScreen"), c = B("setActiveEditor");
|
|
701
701
|
if (!n || !r || !i || !a || !o || !s || !c) throw Error("Connection store is not provided!");
|
|
702
|
-
let l =
|
|
702
|
+
let l = p();
|
|
703
703
|
return {
|
|
704
704
|
connectionStore: n,
|
|
705
705
|
resolvedConnection: M(() => {
|
|
@@ -915,7 +915,7 @@ function Qt(e, t, n, r, i, a) {
|
|
|
915
915
|
"onToggle"
|
|
916
916
|
]))]);
|
|
917
917
|
}
|
|
918
|
-
var $t = /*#__PURE__*/
|
|
918
|
+
var $t = /*#__PURE__*/ c(Kt, [["render", Qt], ["__scopeId", "data-v-9a03eb6c"]]);
|
|
919
919
|
//#endregion
|
|
920
920
|
//#region components/useConfirmationState.ts
|
|
921
921
|
function en(e) {
|
|
@@ -940,7 +940,7 @@ var tn = ["data-testid"], nn = ["data-testid"], rn = { class: "mobile-tree-count
|
|
|
940
940
|
key: 0,
|
|
941
941
|
class: "mobile-tree-branch-meta",
|
|
942
942
|
"aria-hidden": "true"
|
|
943
|
-
}, on = { key: 0 }, sn = ["data-testid"], cn = /*#__PURE__*/
|
|
943
|
+
}, on = { key: 0 }, sn = ["data-testid"], cn = /*#__PURE__*/ c(/* @__PURE__ */ z({
|
|
944
944
|
__name: "MobileTreeList",
|
|
945
945
|
props: {
|
|
946
946
|
items: {},
|
|
@@ -979,21 +979,21 @@ var tn = ["data-testid"], nn = ["data-testid"], rn = { class: "mobile-tree-count
|
|
|
979
979
|
"viewChange"
|
|
980
980
|
],
|
|
981
981
|
setup(e, { expose: t, emit: n }) {
|
|
982
|
-
let r = e, i = n, a =
|
|
982
|
+
let r = e, i = n, a = x(), o = ye({
|
|
983
983
|
mode: "root",
|
|
984
984
|
nodeKey: null
|
|
985
|
-
}), s = (e) => String(e[r.idField] ?? e.key), c = (e) => String(e[r.labelField] ?? e.label ?? ""), l = (e) => r.isBranch(e), u = (e) => r.isSelectable(e),
|
|
986
|
-
if (!
|
|
987
|
-
let e = r.items.findIndex((e) => s(e) === o.nodeKey), t = Number(
|
|
985
|
+
}), s = (e) => String(e[r.idField] ?? e.key), c = (e) => String(e[r.labelField] ?? e.label ?? ""), l = (e) => r.isBranch(e), u = (e) => r.isSelectable(e), d = M(() => r.items.find((e) => s(e) === o.nodeKey)), f = M(() => {
|
|
986
|
+
if (!d.value) return [];
|
|
987
|
+
let e = r.items.findIndex((e) => s(e) === o.nodeKey), t = Number(d.value.indent || 0), n = [];
|
|
988
988
|
for (let i = e + 1; i < r.items.length; i++) {
|
|
989
989
|
let e = r.items[i], a = Number(e.indent || 0);
|
|
990
990
|
if (a <= t) break;
|
|
991
991
|
a === t + 1 && n.push(e);
|
|
992
992
|
}
|
|
993
993
|
return n;
|
|
994
|
-
}),
|
|
994
|
+
}), p = M(() => f.value.filter((e) => r.isConfig(e))), m = M(() => f.value.filter((e) => !r.isConfig(e))), h = M(() => !r.enabled || r.flat ? r.items : o.mode === "root" ? r.items.filter((e) => Number(e.indent || 0) === 0) : m.value.length ? m.value : f.value), g = (e) => {
|
|
995
995
|
Object.assign(o, e), i("viewChange", o.mode === "root");
|
|
996
|
-
},
|
|
996
|
+
}, _ = (e) => g(e), v = (e, t = !1) => {
|
|
997
997
|
let n = r.items.findIndex((t) => s(t) === s(e));
|
|
998
998
|
if (n < 0) return [];
|
|
999
999
|
let i = Number(e.indent || 0), a = [];
|
|
@@ -1003,49 +1003,49 @@ var tn = ["data-testid"], nn = ["data-testid"], rn = { class: "mobile-tree-count
|
|
|
1003
1003
|
(!t || o === i + 1) && a.push(n);
|
|
1004
1004
|
}
|
|
1005
1005
|
return a;
|
|
1006
|
-
},
|
|
1006
|
+
}, y = (e) => v(e).filter((e) => !r.isBranch(e) && !r.isConfig(e)).length, b = (e) => {
|
|
1007
1007
|
if (!r.isBranch(e)) return i("select", e);
|
|
1008
1008
|
i("expand", e);
|
|
1009
|
-
let t = { ...o }, n =
|
|
1010
|
-
|
|
1009
|
+
let t = { ...o }, n = v(e, !0).some((e) => r.isConfig(e)), l = !r.isDirectBranch(e) && (r.isDetailBranch(e) || n || r.isSelectable(e));
|
|
1010
|
+
g({
|
|
1011
1011
|
mode: l ? "detail" : "children",
|
|
1012
1012
|
nodeKey: s(e)
|
|
1013
1013
|
}), a.push({
|
|
1014
1014
|
title: c(e),
|
|
1015
|
-
onBack: () =>
|
|
1015
|
+
onBack: () => _(t)
|
|
1016
1016
|
});
|
|
1017
1017
|
}, S = () => {
|
|
1018
|
-
if (!
|
|
1018
|
+
if (!d.value) return;
|
|
1019
1019
|
let e = { ...o };
|
|
1020
|
-
|
|
1020
|
+
g({
|
|
1021
1021
|
mode: "children",
|
|
1022
1022
|
nodeKey: o.nodeKey
|
|
1023
1023
|
}), a.push({
|
|
1024
|
-
title: `${c(
|
|
1025
|
-
onBack: () =>
|
|
1024
|
+
title: `${c(d.value)} children`,
|
|
1025
|
+
onBack: () => _(e)
|
|
1026
1026
|
});
|
|
1027
1027
|
};
|
|
1028
|
-
return t({ openItem:
|
|
1029
|
-
u(
|
|
1030
|
-
item:
|
|
1028
|
+
return t({ openItem: b }), (t, n) => (H(), F("div", { class: V(["mobile-tree-list", { "mobile-tree-list-enabled": e.enabled }]) }, [!e.flat && o.mode === "detail" && d.value ? (H(), F(j, { key: 0 }, [
|
|
1029
|
+
u(d.value) ? P("", !0) : G(t.$slots, "item", {
|
|
1030
|
+
item: d.value,
|
|
1031
1031
|
detail: !0
|
|
1032
1032
|
}, void 0, !0, 0),
|
|
1033
|
-
u(
|
|
1033
|
+
u(d.value) ? (H(), F("button", {
|
|
1034
1034
|
key: 1,
|
|
1035
1035
|
type: "button",
|
|
1036
1036
|
class: "mobile-tree-open",
|
|
1037
1037
|
"data-testid": `mobile-tree-open-${e.listId}`,
|
|
1038
|
-
onClick: n[0] ||= (e) => i("select",
|
|
1038
|
+
onClick: n[0] ||= (e) => i("select", d.value)
|
|
1039
1039
|
}, [...n[1] ||= [I("i", { class: "mdi mdi-open-in-new" }, null, -1), I("span", null, "Open", -1)]], 8, tn)) : P("", !0),
|
|
1040
|
-
(H(!0), F(j, null, W(
|
|
1040
|
+
(H(!0), F(j, null, W(p.value, (e) => (H(), F("div", {
|
|
1041
1041
|
key: s(e),
|
|
1042
1042
|
class: "mobile-tree-entry"
|
|
1043
1043
|
}, [G(t.$slots, "item", { item: e }, void 0, !0)]))), 128)),
|
|
1044
|
-
(H(!0), F(j, null, W(u(
|
|
1044
|
+
(H(!0), F(j, null, W(u(d.value) ? m.value : [], (e) => (H(), F("div", {
|
|
1045
1045
|
key: s(e),
|
|
1046
1046
|
class: "mobile-tree-entry"
|
|
1047
1047
|
}, [G(t.$slots, "item", { item: e }, void 0, !0)]))), 128)),
|
|
1048
|
-
|
|
1048
|
+
m.value.length && !u(d.value) ? (H(), F("button", {
|
|
1049
1049
|
key: 2,
|
|
1050
1050
|
type: "button",
|
|
1051
1051
|
class: "mobile-tree-children",
|
|
@@ -1054,17 +1054,17 @@ var tn = ["data-testid"], nn = ["data-testid"], rn = { class: "mobile-tree-count
|
|
|
1054
1054
|
}, [
|
|
1055
1055
|
n[2] ||= I("i", { class: "mdi mdi-folder-outline" }, null, -1),
|
|
1056
1056
|
n[3] ||= I("span", null, "Children", -1),
|
|
1057
|
-
I("span", rn, q(
|
|
1057
|
+
I("span", rn, q(m.value.length), 1),
|
|
1058
1058
|
n[4] ||= I("i", { class: "mdi mdi-chevron-right" }, null, -1)
|
|
1059
1059
|
], 8, nn)) : P("", !0)
|
|
1060
|
-
], 64)) : (H(), F(j, { key: 1 }, [(H(!0), F(j, null, W(
|
|
1060
|
+
], 64)) : (H(), F(j, { key: 1 }, [(H(!0), F(j, null, W(h.value, (r) => (H(), F("div", {
|
|
1061
1061
|
key: s(r),
|
|
1062
1062
|
class: "mobile-tree-entry"
|
|
1063
|
-
}, [G(t.$slots, "item", { item: r }, void 0, !0), e.enabled && l(r) ? (H(), F("div", an, [
|
|
1063
|
+
}, [G(t.$slots, "item", { item: r }, void 0, !0), e.enabled && l(r) ? (H(), F("div", an, [y(r) ? (H(), F("span", on, "(" + q(y(r)) + ")", 1)) : P("", !0), n[5] ||= I("i", { class: "mdi mdi-chevron-right" }, null, -1)])) : P("", !0)]))), 128)), e.enabled && !e.flat && o.mode !== "root" && !h.value.length ? (H(), F("div", {
|
|
1064
1064
|
key: 0,
|
|
1065
1065
|
class: "mobile-tree-empty",
|
|
1066
1066
|
"data-testid": `mobile-tree-empty-${e.listId}`
|
|
1067
|
-
}, q(
|
|
1067
|
+
}, q(d.value ? "Nothing here." : "This item is no longer available."), 9, sn)) : P("", !0)], 64))], 2));
|
|
1068
1068
|
}
|
|
1069
1069
|
}), [["__scopeId", "data-v-8d1c57f2"]]), ln = {
|
|
1070
1070
|
name: "EditorList",
|
|
@@ -1080,18 +1080,18 @@ var tn = ["data-testid"], nn = ["data-testid"], rn = { class: "mobile-tree-count
|
|
|
1080
1080
|
}
|
|
1081
1081
|
},
|
|
1082
1082
|
setup(e) {
|
|
1083
|
-
let t =
|
|
1083
|
+
let t = u(), n = b(), r = B("editorStore"), i = B("connectionStore"), a = B("modelStore"), o = B("storageSources", []), s = D();
|
|
1084
1084
|
if (!r || !i || !a) throw Error("Editor store is not provided!");
|
|
1085
|
-
let c = o.find((e) => e.type === "remote"),
|
|
1086
|
-
|
|
1087
|
-
},
|
|
1088
|
-
if (
|
|
1089
|
-
let e = Object.values(
|
|
1085
|
+
let c = o.find((e) => e.type === "remote"), d = U(/* @__PURE__ */ new Set([])), f = U(!1), p = U(!1), m = U(null), h = (e) => {
|
|
1086
|
+
d.value.has(e) ? d.value.delete(e) : d.value.add(e);
|
|
1087
|
+
}, g = M(() => {
|
|
1088
|
+
if (d.value.size === 0) return "All editors";
|
|
1089
|
+
let e = Object.values(_).filter((e) => !d.value.has(e));
|
|
1090
1090
|
return e.length === 0 ? "No editors" : e.length === 1 ? `${e.map((e) => e.split("_").map((e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join(" "))[0]} only` : `${e.length} types`;
|
|
1091
|
-
}),
|
|
1091
|
+
}), v = (e) => {
|
|
1092
1092
|
let t = e.target;
|
|
1093
|
-
|
|
1094
|
-
},
|
|
1093
|
+
m.value && t && !m.value.contains(t) && (p.value = !1);
|
|
1094
|
+
}, y = C(S.EDITORS) || "", x = (e, t, n) => {
|
|
1095
1095
|
let r = e.split("/"), i = [];
|
|
1096
1096
|
for (let e = 0; e < r.length - 1; e++) {
|
|
1097
1097
|
let a = r.slice(0, e + 1).join("/");
|
|
@@ -1099,13 +1099,13 @@ var tn = ["data-testid"], nn = ["data-testid"], rn = { class: "mobile-tree-count
|
|
|
1099
1099
|
}
|
|
1100
1100
|
return i;
|
|
1101
1101
|
}, w = M(() => {
|
|
1102
|
-
let t = Object.values(r.editors), n = e.activeEditor ||
|
|
1102
|
+
let t = Object.values(r.editors), n = e.activeEditor || y, i = n ? t.find((e) => e.id === n) : void 0;
|
|
1103
1103
|
if (i) {
|
|
1104
1104
|
let e = i.connectionId || i.connection;
|
|
1105
1105
|
return /* @__PURE__ */ new Set([
|
|
1106
1106
|
`s-${i.storage}`,
|
|
1107
1107
|
`c-${i.storage}-${e}`,
|
|
1108
|
-
...
|
|
1108
|
+
...x(i.name, i.storage, e)
|
|
1109
1109
|
]);
|
|
1110
1110
|
}
|
|
1111
1111
|
let a = new Set(t.map((e) => `s-${e.storage}`)), o = new Set(t.map((e) => `c-${e.storage}-${e.connectionId || e.connection}`));
|
|
@@ -1114,15 +1114,15 @@ var tn = ["data-testid"], nn = ["data-testid"], rn = { class: "mobile-tree-count
|
|
|
1114
1114
|
let t = r.getEditorByName(e);
|
|
1115
1115
|
if (!t) return;
|
|
1116
1116
|
let n = t.connectionId || t.connection;
|
|
1117
|
-
re(`s-${t.storage}`), re(`c-${t.storage}-${n}`),
|
|
1117
|
+
re(`s-${t.storage}`), re(`c-${t.storage}-${n}`), x(t.name, t.storage, n).forEach(re);
|
|
1118
1118
|
};
|
|
1119
1119
|
_e(() => {
|
|
1120
|
-
document.addEventListener("click",
|
|
1120
|
+
document.addEventListener("click", v);
|
|
1121
1121
|
}), ge(() => {
|
|
1122
|
-
document.removeEventListener("click",
|
|
1122
|
+
document.removeEventListener("click", v);
|
|
1123
1123
|
});
|
|
1124
1124
|
let E = M(() => e.mobileSearchQuery.trim().toLocaleLowerCase()), O = M(() => {
|
|
1125
|
-
let e =
|
|
1125
|
+
let e = l(Object.values(i.connections), Object.values(r.editors), s.value || E.value ? Ge : te, d.value);
|
|
1126
1126
|
return E.value ? e.filter((e) => e.type === "editor" && e.label.toLocaleLowerCase().includes(E.value)) : e;
|
|
1127
1127
|
}), { isOpen: k, openConfirmation: ie, closeConfirmation: A, confirm: ae } = en((e) => {
|
|
1128
1128
|
e.delete();
|
|
@@ -1132,19 +1132,19 @@ var tn = ["data-testid"], nn = ["data-testid"], rn = { class: "mobile-tree-count
|
|
|
1132
1132
|
communityStore: t,
|
|
1133
1133
|
connectionStore: i,
|
|
1134
1134
|
editorStore: r,
|
|
1135
|
-
EditorTag:
|
|
1136
|
-
toggleTagFilter:
|
|
1135
|
+
EditorTag: _,
|
|
1136
|
+
toggleTagFilter: h,
|
|
1137
1137
|
contentList: O,
|
|
1138
1138
|
searchQuery: E,
|
|
1139
1139
|
toggleCollapse: ne,
|
|
1140
1140
|
collapsed: ee,
|
|
1141
1141
|
isCollapsed: te,
|
|
1142
1142
|
revealEditor: T,
|
|
1143
|
-
hiddenTags:
|
|
1144
|
-
creatorVisible:
|
|
1145
|
-
filterMenuOpen:
|
|
1146
|
-
filterDropdown:
|
|
1147
|
-
filterSummary:
|
|
1143
|
+
hiddenTags: d,
|
|
1144
|
+
creatorVisible: f,
|
|
1145
|
+
filterMenuOpen: p,
|
|
1146
|
+
filterDropdown: m,
|
|
1147
|
+
filterSummary: g,
|
|
1148
1148
|
showDeleteConfirmationState: k,
|
|
1149
1149
|
showDeleteConfirmation: ie,
|
|
1150
1150
|
cancelDelete: A,
|
|
@@ -1283,7 +1283,7 @@ function vn(e, t, n, r, i, a) {
|
|
|
1283
1283
|
_: 1
|
|
1284
1284
|
});
|
|
1285
1285
|
}
|
|
1286
|
-
var yn = /*#__PURE__*/
|
|
1286
|
+
var yn = /*#__PURE__*/ c(ln, [["render", vn], ["__scopeId", "data-v-96a07efe"]]), bn = z({
|
|
1287
1287
|
name: "ConnectionCreator",
|
|
1288
1288
|
props: {
|
|
1289
1289
|
visible: {
|
|
@@ -1443,7 +1443,7 @@ function jn(e, t, n, r, i, a) {
|
|
|
1443
1443
|
}, "Cancel")])
|
|
1444
1444
|
], 32)])) : P("", !0);
|
|
1445
1445
|
}
|
|
1446
|
-
var Mn = /*#__PURE__*/
|
|
1446
|
+
var Mn = /*#__PURE__*/ c(bn, [["render", jn], ["__scopeId", "data-v-9207fd93"]]), Nn = "data:image/png;base64,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", Pn = {
|
|
1447
1447
|
key: 0,
|
|
1448
1448
|
class: "mdi mdi-duck"
|
|
1449
1449
|
}, Fn = ["src"], In = {
|
|
@@ -1455,7 +1455,7 @@ var Mn = /*#__PURE__*/ e(bn, [["render", jn], ["__scopeId", "data-v-9207fd93"]])
|
|
|
1455
1455
|
}, Rn = {
|
|
1456
1456
|
key: 4,
|
|
1457
1457
|
class: "mdi mdi-database"
|
|
1458
|
-
}, zn = /*#__PURE__*/
|
|
1458
|
+
}, zn = /*#__PURE__*/ c(/* @__PURE__ */ z({
|
|
1459
1459
|
__name: "ConnectionIcon",
|
|
1460
1460
|
props: { connectionType: {} },
|
|
1461
1461
|
setup(e) {
|
|
@@ -1477,7 +1477,7 @@ var Mn = /*#__PURE__*/ e(bn, [["render", jn], ["__scopeId", "data-v-9207fd93"]])
|
|
|
1477
1477
|
_: 1
|
|
1478
1478
|
}, 8, ["content"]));
|
|
1479
1479
|
}
|
|
1480
|
-
}), [["__scopeId", "data-v-d7a85282"]]), Bn = "sidebar-icon-button", Vn = /*#__PURE__*/
|
|
1480
|
+
}), [["__scopeId", "data-v-d7a85282"]]), Bn = "sidebar-icon-button", Vn = /*#__PURE__*/ c(/* @__PURE__ */ z({
|
|
1481
1481
|
__name: "ConnectionRefresh",
|
|
1482
1482
|
props: {
|
|
1483
1483
|
connection: {},
|
|
@@ -1586,7 +1586,7 @@ function Yn(e, t, n, r, i, a) {
|
|
|
1586
1586
|
"data-testid": `duckdb-import-loading-${e.connection.name}`
|
|
1587
1587
|
}, [t[7] ||= I("span", { class: "spinner" }, null, -1), I("span", Jn, q(e.loadingMessage), 1)], 8, qn)) : (H(), F("div", Kn, [...t[6] ||= [I("i", { class: "mdi mdi-plus upload-icon" }, null, -1), I("span", { class: "upload-copy" }, [I("span", { class: "upload-label" }, "Import data..."), I("span", { class: "upload-subtitle" }, "CSV, Parquet, DB")], -1)]]))], 42, Un);
|
|
1588
1588
|
}
|
|
1589
|
-
var Xn = /*#__PURE__*/
|
|
1589
|
+
var Xn = /*#__PURE__*/ c(Hn, [["render", Yn], ["__scopeId", "data-v-65f4bd26"]]), Zn = { class: "model-anchor" }, Qn = { class: "model-trigger-text truncate-text" }, $n = "~new-model", er = 180, tr = 8, nr = {
|
|
1590
1590
|
name: "ConnectionListItem",
|
|
1591
1591
|
components: {
|
|
1592
1592
|
SidebarItem: kt,
|
|
@@ -1595,7 +1595,7 @@ var Xn = /*#__PURE__*/ e(Hn, [["render", Yn], ["__scopeId", "data-v-65f4bd26"]])
|
|
|
1595
1595
|
ConnectionRefresh: Vn,
|
|
1596
1596
|
CreateEditorFromDatasourcePopup: de,
|
|
1597
1597
|
DuckDBImporter: Xn,
|
|
1598
|
-
ModelSelector: /* @__PURE__ */
|
|
1598
|
+
ModelSelector: /* @__PURE__ */ c(/* @__PURE__ */ z({
|
|
1599
1599
|
__name: "ModelSelector",
|
|
1600
1600
|
props: { connection: {} },
|
|
1601
1601
|
setup(e) {
|
|
@@ -2225,7 +2225,7 @@ var Sr = {
|
|
|
2225
2225
|
LoadingButton: A,
|
|
2226
2226
|
StatusIcon: ue,
|
|
2227
2227
|
Tooltip: E,
|
|
2228
|
-
ConnectionListItem: /* @__PURE__ */
|
|
2228
|
+
ConnectionListItem: /* @__PURE__ */ c(nr, [["render", xr], ["__scopeId", "data-v-f67ee2c5"]]),
|
|
2229
2229
|
MobileTreeList: cn
|
|
2230
2230
|
},
|
|
2231
2231
|
methods: {
|
|
@@ -2369,7 +2369,7 @@ function Ar(e, t, n, r, i, a) {
|
|
|
2369
2369
|
_: 1
|
|
2370
2370
|
});
|
|
2371
2371
|
}
|
|
2372
|
-
var jr = /*#__PURE__*/
|
|
2372
|
+
var jr = /*#__PURE__*/ c(Sr, [["render", Ar], ["__scopeId", "data-v-54ca2dab"]]), Mr = {
|
|
2373
2373
|
name: "DocumentationSidebar",
|
|
2374
2374
|
props: { activeDocumentationKey: {
|
|
2375
2375
|
type: String,
|
|
@@ -2378,11 +2378,11 @@ var jr = /*#__PURE__*/ e(Sr, [["render", Ar], ["__scopeId", "data-v-54ca2dab"]])
|
|
|
2378
2378
|
} },
|
|
2379
2379
|
setup(e, { emit: t }) {
|
|
2380
2380
|
if (!B("editorStore")) throw Error("Editor store is not provided!");
|
|
2381
|
-
let n =
|
|
2381
|
+
let n = C(S.TUTORIAL) || "", r = D(), i = U(null), a = `documentation+${n.split("+")[1]}`, { overrides: o, isCollapsed: s, toggle: c } = qe((e) => a.startsWith(e));
|
|
2382
2382
|
return {
|
|
2383
2383
|
documentationNodes: M(() => {
|
|
2384
2384
|
let e = [];
|
|
2385
|
-
return
|
|
2385
|
+
return g.forEach((t) => {
|
|
2386
2386
|
let n = `documentation+${t.title}`;
|
|
2387
2387
|
e.push({
|
|
2388
2388
|
id: n,
|
|
@@ -2475,7 +2475,7 @@ function Nr(e, t, n, r, i, a) {
|
|
|
2475
2475
|
_: 1
|
|
2476
2476
|
});
|
|
2477
2477
|
}
|
|
2478
|
-
var Pr = /*#__PURE__*/
|
|
2478
|
+
var Pr = /*#__PURE__*/ c(Mr, [["render", Nr], ["__scopeId", "data-v-07263be1"]]), Fr = {
|
|
2479
2479
|
name: "ModelList",
|
|
2480
2480
|
props: {
|
|
2481
2481
|
activeModelKey: String,
|
|
@@ -2489,12 +2489,12 @@ var Pr = /*#__PURE__*/ e(Mr, [["render", Nr], ["__scopeId", "data-v-07263be1"]])
|
|
|
2489
2489
|
}
|
|
2490
2490
|
},
|
|
2491
2491
|
setup(e) {
|
|
2492
|
-
let t = B("modelStore"), n = B("saveModels"), r = B("editorStore"), i = B("trilogyResolver"), a =
|
|
2493
|
-
if (
|
|
2494
|
-
let { overrides:
|
|
2492
|
+
let t = B("modelStore"), n = B("saveModels"), r = B("editorStore"), i = B("trilogyResolver"), a = y(), o = D(), s = U(null), c = U(!1), l = a.activeModelKey.value || C(S.MODELS) || "", u = l.split("+")[0], d = "", f = "", p = "", m = l.split("+");
|
|
2493
|
+
if (u === "model" ? d = m[1] : u === "source" ? (d = m[1], f = m[2]) : u === "datasource" ? (d = m[1], f = m[2], p = m[3]) : u === "concept" && (d = m[1], f = m[2], m.length > 5 && (p = m[3])), !t || !n || !r || !i) throw Error("Model store is not provided!");
|
|
2494
|
+
let { overrides: h, isCollapsed: g, toggle: _ } = qe((e) => {
|
|
2495
2495
|
let [t, n, r, i] = e.split("+");
|
|
2496
|
-
return n ===
|
|
2497
|
-
}),
|
|
2496
|
+
return n === d ? t === "model" ? !0 : r === f ? t === "source" || t === "datasource" && i === p : !1 : !1;
|
|
2497
|
+
}), v = M(() => e.mobileSearchQuery.trim().toLocaleLowerCase()), b = (e) => !v.value && g(e), x = M(() => {
|
|
2498
2498
|
let e = [];
|
|
2499
2499
|
return Object.values(t.models).sort((e, t) => e.name.localeCompare(t.name)).forEach((t) => {
|
|
2500
2500
|
if (t.deleted) return;
|
|
@@ -2506,7 +2506,7 @@ var Pr = /*#__PURE__*/ e(Mr, [["render", Nr], ["__scopeId", "data-v-07263be1"]])
|
|
|
2506
2506
|
count: t.sources.length,
|
|
2507
2507
|
type: "model",
|
|
2508
2508
|
concept: null
|
|
2509
|
-
}),
|
|
2509
|
+
}), b(n) || t.sources.forEach((n) => {
|
|
2510
2510
|
let r = [
|
|
2511
2511
|
"source",
|
|
2512
2512
|
t.name,
|
|
@@ -2519,7 +2519,7 @@ var Pr = /*#__PURE__*/ e(Mr, [["render", Nr], ["__scopeId", "data-v-07263be1"]])
|
|
|
2519
2519
|
count: n.concepts.length,
|
|
2520
2520
|
type: "source",
|
|
2521
2521
|
concept: null
|
|
2522
|
-
}),
|
|
2522
|
+
}), b(r) || (n.concepts.forEach((r) => {
|
|
2523
2523
|
e.push({
|
|
2524
2524
|
id: [
|
|
2525
2525
|
"concept",
|
|
@@ -2548,7 +2548,7 @@ var Pr = /*#__PURE__*/ e(Mr, [["render", Nr], ["__scopeId", "data-v-07263be1"]])
|
|
|
2548
2548
|
count: r.concepts.length,
|
|
2549
2549
|
type: "datasource",
|
|
2550
2550
|
concept: null
|
|
2551
|
-
}),
|
|
2551
|
+
}), b(i) || r.concepts.forEach((i) => {
|
|
2552
2552
|
e.push({
|
|
2553
2553
|
id: [
|
|
2554
2554
|
"concept",
|
|
@@ -2567,7 +2567,7 @@ var Pr = /*#__PURE__*/ e(Mr, [["render", Nr], ["__scopeId", "data-v-07263be1"]])
|
|
|
2567
2567
|
});
|
|
2568
2568
|
}));
|
|
2569
2569
|
});
|
|
2570
|
-
}),
|
|
2570
|
+
}), v.value ? e.filter((e) => e.type === "concept" && e.name.toLocaleLowerCase().includes(v.value)) : e;
|
|
2571
2571
|
}), w = (e) => i.resolveModel(e, t.models[e].sources.map((e) => ({
|
|
2572
2572
|
alias: e.alias,
|
|
2573
2573
|
contents: (r.editors[e.editor] || { contents: "" }).contents
|
|
@@ -2581,15 +2581,15 @@ var Pr = /*#__PURE__*/ e(Mr, [["render", Nr], ["__scopeId", "data-v-07263be1"]])
|
|
|
2581
2581
|
};
|
|
2582
2582
|
return {
|
|
2583
2583
|
creatorVisible: c,
|
|
2584
|
-
flatList:
|
|
2585
|
-
collapsed:
|
|
2586
|
-
isCollapsed:
|
|
2584
|
+
flatList: x,
|
|
2585
|
+
collapsed: h,
|
|
2586
|
+
isCollapsed: g,
|
|
2587
2587
|
saveModels: n,
|
|
2588
2588
|
fetchParseResults: w,
|
|
2589
2589
|
trilogyIcon: jt,
|
|
2590
2590
|
navigationStore: a,
|
|
2591
2591
|
handleClick: ee,
|
|
2592
|
-
handleToggle:
|
|
2592
|
+
handleToggle: _,
|
|
2593
2593
|
modelStore: t,
|
|
2594
2594
|
contextMenuItems: (e) => e.type === "model" ? [
|
|
2595
2595
|
{
|
|
@@ -2618,10 +2618,10 @@ var Pr = /*#__PURE__*/ e(Mr, [["render", Nr], ["__scopeId", "data-v-07263be1"]])
|
|
|
2618
2618
|
},
|
|
2619
2619
|
isMobile: o,
|
|
2620
2620
|
mobileTree: s,
|
|
2621
|
-
searchQuery:
|
|
2621
|
+
searchQuery: v,
|
|
2622
2622
|
isModelBranch: (e) => e.type === "model" || ["source", "datasource"].includes(e.type) && e.count > 0,
|
|
2623
2623
|
expandMobileBranch: (e) => {
|
|
2624
|
-
|
|
2624
|
+
g(e.id) && _(e.id);
|
|
2625
2625
|
},
|
|
2626
2626
|
selectMobileItem: (e) => ee(e.id)
|
|
2627
2627
|
};
|
|
@@ -2720,7 +2720,7 @@ function Hr(e, t, n, r, i, a) {
|
|
|
2720
2720
|
_: 1
|
|
2721
2721
|
});
|
|
2722
2722
|
}
|
|
2723
|
-
var Ur = /*#__PURE__*/
|
|
2723
|
+
var Ur = /*#__PURE__*/ c(Fr, [["render", Hr], ["__scopeId", "data-v-ad82d845"]]), Wr = {
|
|
2724
2724
|
key: 0,
|
|
2725
2725
|
class: "mdi mdi-server-network sidebar-icon"
|
|
2726
2726
|
}, Gr = {
|
|
@@ -2732,7 +2732,7 @@ var Ur = /*#__PURE__*/ e(Fr, [["render", Hr], ["__scopeId", "data-v-ad82d845"]])
|
|
|
2732
2732
|
}, qr = {
|
|
2733
2733
|
key: 0,
|
|
2734
2734
|
class: "tag-container"
|
|
2735
|
-
}, Jr = /*#__PURE__*/
|
|
2735
|
+
}, Jr = /*#__PURE__*/ c(/* @__PURE__ */ z({
|
|
2736
2736
|
__name: "JobsListItem",
|
|
2737
2737
|
props: {
|
|
2738
2738
|
item: {},
|
|
@@ -2749,7 +2749,7 @@ var Ur = /*#__PURE__*/ e(Fr, [["render", Hr], ["__scopeId", "data-v-ad82d845"]])
|
|
|
2749
2749
|
"refresh-store"
|
|
2750
2750
|
],
|
|
2751
2751
|
setup(e, { emit: t }) {
|
|
2752
|
-
let n = e, r = t, i =
|
|
2752
|
+
let n = e, r = t, i = b(), a = () => {
|
|
2753
2753
|
r("item-click", n.item);
|
|
2754
2754
|
}, o = () => {
|
|
2755
2755
|
r("item-toggle", n.item);
|
|
@@ -2817,7 +2817,7 @@ var Ur = /*#__PURE__*/ e(Fr, [["render", Hr], ["__scopeId", "data-v-ad82d845"]])
|
|
|
2817
2817
|
key: 0,
|
|
2818
2818
|
class: "form-error",
|
|
2819
2819
|
"data-testid": "add-jobs-store-error"
|
|
2820
|
-
}, $r = { class: "dialog-actions" }, ei = ["disabled"], ti = /*#__PURE__*/
|
|
2820
|
+
}, $r = { class: "dialog-actions" }, ei = ["disabled"], ti = /*#__PURE__*/ c(/* @__PURE__ */ z({
|
|
2821
2821
|
__name: "JobsAddStoreModal",
|
|
2822
2822
|
props: {
|
|
2823
2823
|
show: { type: Boolean },
|
|
@@ -2834,7 +2834,7 @@ var Ur = /*#__PURE__*/ e(Fr, [["render", Hr], ["__scopeId", "data-v-ad82d845"]])
|
|
|
2834
2834
|
s.value = "Base URL is required.";
|
|
2835
2835
|
return;
|
|
2836
2836
|
}
|
|
2837
|
-
r("add",
|
|
2837
|
+
r("add", h(a.value, i.value, o.value));
|
|
2838
2838
|
};
|
|
2839
2839
|
return (t, n) => (H(), N(k, {
|
|
2840
2840
|
show: e.show,
|
|
@@ -2942,19 +2942,19 @@ var Ur = /*#__PURE__*/ e(Fr, [["render", Hr], ["__scopeId", "data-v-ad82d845"]])
|
|
|
2942
2942
|
}, fi = {
|
|
2943
2943
|
key: 1,
|
|
2944
2944
|
class: "error-container"
|
|
2945
|
-
}, pi = { class: "error-text" }, mi = ["onClick"], hi = /*#__PURE__*/
|
|
2945
|
+
}, pi = { class: "error-text" }, mi = ["onClick"], hi = /*#__PURE__*/ c(/* @__PURE__ */ z({
|
|
2946
2946
|
__name: "JobsList",
|
|
2947
2947
|
props: { activeJobsKey: { default: "" } },
|
|
2948
2948
|
emits: ["jobs-key-selected"],
|
|
2949
2949
|
setup(e, { emit: t }) {
|
|
2950
|
-
let n = e, r = t, i =
|
|
2950
|
+
let n = e, r = t, i = u(), a = b(), o = y(), s = B("storageSources", []), c = B("editorStore"), l = B("connectionStore"), d = B("modelStore"), f = U(!1), p = D(), m = U(null), h = M(() => s.find((e) => e.type === "remote")), g = M(() => i.stores.filter((e) => e.type === "generic")), _ = M(() => g.value.some((e) => !!a.errors[e.id])), v = M(() => g.value.filter((e) => !!a.errors[e.id])), x = M(() => (n.activeJobsKey || "").split("+")[0] || ""), { isCollapsed: S, toggle: C, open: w } = qe((e) => e.includes("+directory+") ? !0 : x.value ? e === x.value : g.value.length === 1 && e === g.value[0].id), ee = M(() => li(S, g.value, a.filesByStore)), te = async (e) => {
|
|
2951
2951
|
try {
|
|
2952
|
-
await i.addStore(e), await a.fetchFilesForStore(e.id),
|
|
2952
|
+
await i.addStore(e), await a.fetchFilesForStore(e.id), h.value && c && l && d && await se(h.value, e.id, c, l, d), w(e.id), f.value = !1;
|
|
2953
2953
|
} catch (e) {
|
|
2954
2954
|
console.error("Failed to add jobs store:", e);
|
|
2955
2955
|
}
|
|
2956
2956
|
}, { isOpen: ne, openConfirmation: re, closeConfirmation: T, confirm: E } = en((e) => {
|
|
2957
|
-
c &&
|
|
2957
|
+
c && l && d && le(e.id, c, l, d), i.removeStore(e.id), a.clearStoreData(e.id);
|
|
2958
2958
|
}), O = (e) => {
|
|
2959
2959
|
o.openTab("jobs", null, e.key), r("jobs-key-selected", e.key);
|
|
2960
2960
|
}, k = (e) => {
|
|
@@ -2962,7 +2962,7 @@ var Ur = /*#__PURE__*/ e(Fr, [["render", Hr], ["__scopeId", "data-v-ad82d845"]])
|
|
|
2962
2962
|
}, ie = (e) => ["store", "directory"].includes(e.type), A = (e) => {
|
|
2963
2963
|
S(e.key) && k(e);
|
|
2964
2964
|
}, ae = (e) => {
|
|
2965
|
-
|
|
2965
|
+
p.value ? m.value?.openItem(e) : O(e);
|
|
2966
2966
|
}, oe = async (e) => {
|
|
2967
2967
|
await a.fetchFilesForStore(e);
|
|
2968
2968
|
};
|
|
@@ -2971,11 +2971,11 @@ var Ur = /*#__PURE__*/ e(Fr, [["render", Hr], ["__scopeId", "data-v-ad82d845"]])
|
|
|
2971
2971
|
}), (t, n) => (H(), N(bt, { title: "Jobs" }, {
|
|
2972
2972
|
header: Z(() => [I("div", ui, [n[3] ||= I("h3", { class: "font-sans sidebar-header" }, "Jobs", -1), I("button", {
|
|
2973
2973
|
class: "sidebar-control-button sidebar-header-action sidebar-primary-create",
|
|
2974
|
-
onClick: n[0] ||= (e) =>
|
|
2974
|
+
onClick: n[0] ||= (e) => f.value = !0
|
|
2975
2975
|
}, [...n[2] ||= [I("i", { class: "mdi mdi-plus" }, null, -1), L(" New ", -1)]])])]),
|
|
2976
2976
|
default: Z(() => [
|
|
2977
|
-
|
|
2978
|
-
|
|
2977
|
+
g.value.length ? P("", !0) : (H(), F("div", di, " Add a Trilogy local server to browse files and run jobs. ")),
|
|
2978
|
+
_.value ? (H(), F("div", fi, [(H(!0), F(j, null, W(v.value, (e) => (H(), F("div", {
|
|
2979
2979
|
key: e.id,
|
|
2980
2980
|
class: "error-item"
|
|
2981
2981
|
}, [I("span", pi, q(e.name) + ": " + q(xe(a).errors[e.id]), 1), I("button", {
|
|
@@ -2985,11 +2985,11 @@ var Ur = /*#__PURE__*/ e(Fr, [["render", Hr], ["__scopeId", "data-v-ad82d845"]])
|
|
|
2985
2985
|
R(cn, {
|
|
2986
2986
|
"list-id": "jobs",
|
|
2987
2987
|
ref_key: "mobileTree",
|
|
2988
|
-
ref:
|
|
2988
|
+
ref: m,
|
|
2989
2989
|
items: ee.value,
|
|
2990
2990
|
"id-field": "key",
|
|
2991
2991
|
"label-field": "label",
|
|
2992
|
-
enabled: xe(
|
|
2992
|
+
enabled: xe(p),
|
|
2993
2993
|
"is-branch": ie,
|
|
2994
2994
|
"is-selectable": ie,
|
|
2995
2995
|
onExpand: A,
|
|
@@ -3013,8 +3013,8 @@ var Ur = /*#__PURE__*/ e(Fr, [["render", Hr], ["__scopeId", "data-v-ad82d845"]])
|
|
|
3013
3013
|
_: 1
|
|
3014
3014
|
}, 8, ["items", "enabled"]),
|
|
3015
3015
|
R(ti, {
|
|
3016
|
-
show:
|
|
3017
|
-
onClose: n[1] ||= (e) =>
|
|
3016
|
+
show: f.value,
|
|
3017
|
+
onClose: n[1] ||= (e) => f.value = !1,
|
|
3018
3018
|
onAdd: te
|
|
3019
3019
|
}, null, 8, ["show"]),
|
|
3020
3020
|
R(ce, {
|
|
@@ -3082,7 +3082,7 @@ var Di = z({
|
|
|
3082
3082
|
name: "LLMConnectionListItem",
|
|
3083
3083
|
components: {
|
|
3084
3084
|
SidebarItem: kt,
|
|
3085
|
-
LLMProviderIcon: /* @__PURE__ */
|
|
3085
|
+
LLMProviderIcon: /* @__PURE__ */ c(_i, [["render", Ei], ["__scopeId", "data-v-bb5e5885"]]),
|
|
3086
3086
|
ConnectionStatusIcon: At,
|
|
3087
3087
|
Tooltip: E,
|
|
3088
3088
|
SidebarOverflowMenu: Gt
|
|
@@ -3118,17 +3118,17 @@ var Di = z({
|
|
|
3118
3118
|
"deleteChat",
|
|
3119
3119
|
"mobileItemClick"
|
|
3120
3120
|
],
|
|
3121
|
-
setup(e, { emit:
|
|
3122
|
-
let
|
|
3121
|
+
setup(e, { emit: a }) {
|
|
3122
|
+
let o = U(""), s = U(!1), c = U(""), l = U(""), u = U(""), d = U("idle"), f = null, p = null, m = null;
|
|
3123
3123
|
_e(() => {
|
|
3124
|
-
if (e.item.type === "api-key" && e.item.connection?.getApiKey() && (
|
|
3124
|
+
if (e.item.type === "api-key" && e.item.connection?.getApiKey() && (o.value = e.item.connection.getApiKey()), e.item.type === "model" && e.item.connection?.model && (c.value = e.item.connection.model), e.item.type === "fast-model" && (l.value = e.item.connection?.fastModel || ""), e.item.type === "compaction-threshold") {
|
|
3125
3125
|
let t = e.item.connection?.compactionThresholdTokens;
|
|
3126
3126
|
u.value = t == null ? "" : String(t);
|
|
3127
3127
|
}
|
|
3128
3128
|
}), we(() => e.item.connection?.apiKey, (t) => {
|
|
3129
|
-
e.item.type === "api-key" && t && (
|
|
3129
|
+
e.item.type === "api-key" && t && (o.value = t);
|
|
3130
3130
|
}), we(() => e.item.connection?.model, (t) => {
|
|
3131
|
-
e.item.type === "model" && t && (
|
|
3131
|
+
e.item.type === "model" && t && (c.value = t);
|
|
3132
3132
|
}, { immediate: !0 }), we(() => e.item.connection?.fastModel, (t) => {
|
|
3133
3133
|
e.item.type === "fast-model" && (l.value = t || "");
|
|
3134
3134
|
}, { immediate: !0 }), we(() => e.item.connection?.compactionThresholdTokens, (t) => {
|
|
@@ -3153,15 +3153,15 @@ var Di = z({
|
|
|
3153
3153
|
icon: "mdi-trash-can-outline",
|
|
3154
3154
|
danger: !0
|
|
3155
3155
|
})), t;
|
|
3156
|
-
}), g = (
|
|
3157
|
-
switch (
|
|
3156
|
+
}), g = (t) => {
|
|
3157
|
+
switch (t.id) {
|
|
3158
3158
|
case "delete":
|
|
3159
3159
|
ne(e.item.id);
|
|
3160
3160
|
break;
|
|
3161
3161
|
case "set-default":
|
|
3162
3162
|
te(e.item.id);
|
|
3163
3163
|
break;
|
|
3164
|
-
case "refresh":
|
|
3164
|
+
case "refresh": a("refresh", e.item.id, e.item.connection?.name || "", "connection");
|
|
3165
3165
|
}
|
|
3166
3166
|
}, _ = M(() => ["connection", "settings-group"].includes(e.item.type)), v = () => [
|
|
3167
3167
|
"api-key",
|
|
@@ -3173,50 +3173,50 @@ var Di = z({
|
|
|
3173
3173
|
"refresh-connection"
|
|
3174
3174
|
].includes(e.item.type) ? "" : e.item.name, y = () => {
|
|
3175
3175
|
if (e.mobileTreeMode) {
|
|
3176
|
-
|
|
3176
|
+
a("mobileItemClick", e.item);
|
|
3177
3177
|
return;
|
|
3178
3178
|
}
|
|
3179
3179
|
(_.value || e.item.type === "open-chat" || e.item.type === "open-validation" || e.item.type === "new-chat" || e.item.type === "chat-item") && b(e.item.id);
|
|
3180
|
-
}, b = (
|
|
3181
|
-
let
|
|
3182
|
-
|
|
3183
|
-
}, x = (
|
|
3184
|
-
|
|
3180
|
+
}, b = (t) => {
|
|
3181
|
+
let n = e.item.type === "chat-item" ? { chatId: e.item.chatId } : void 0;
|
|
3182
|
+
a("toggle", t, e.item.connection?.name || "", e.item.type, n);
|
|
3183
|
+
}, x = (t) => {
|
|
3184
|
+
t.stopPropagation(), a("refresh", e.item.id, e.item.connection?.name || "", "connection");
|
|
3185
3185
|
}, S = (e) => {
|
|
3186
|
-
|
|
3186
|
+
a("toggleSaveCredential", e);
|
|
3187
3187
|
}, C = (e) => {
|
|
3188
|
-
m &&= (clearTimeout(m), null), d.value = "saving",
|
|
3188
|
+
m &&= (clearTimeout(m), null), d.value = "saving", a("toggleSaveCredential", e), m = setTimeout(() => {
|
|
3189
3189
|
d.value = "saved", m = setTimeout(() => {
|
|
3190
3190
|
d.value = "idle", m = null;
|
|
3191
3191
|
}, 1500);
|
|
3192
3192
|
}, 400);
|
|
3193
|
-
}, w = (e) => e instanceof
|
|
3194
|
-
|
|
3195
|
-
}, ne = (
|
|
3196
|
-
|
|
3197
|
-
}, re = (
|
|
3198
|
-
|
|
3199
|
-
}, T = (e,
|
|
3200
|
-
|
|
3201
|
-
}, E = (e,
|
|
3202
|
-
|
|
3203
|
-
}, D = (e,
|
|
3204
|
-
|
|
3193
|
+
}, w = (e) => e instanceof t ? "anthropic" : e instanceof i ? "openai" : e instanceof n ? "google" : e.type || "unknown", ee = (e) => e && e.connected === !0, te = (t) => {
|
|
3194
|
+
a("setActive", t, e.item.connection?.name || "", "connection");
|
|
3195
|
+
}, ne = (t) => {
|
|
3196
|
+
a("deleteConnection", t, e.item.connection?.name || "");
|
|
3197
|
+
}, re = (t) => {
|
|
3198
|
+
t && a("deleteChat", t, e.item.connection?.name || "");
|
|
3199
|
+
}, T = (e, t) => {
|
|
3200
|
+
a("updateApiKey", e, t);
|
|
3201
|
+
}, E = (e, t) => {
|
|
3202
|
+
a("updateModel", e, t);
|
|
3203
|
+
}, D = (e, t) => {
|
|
3204
|
+
a("updateFastModel", e, t);
|
|
3205
3205
|
}, O = () => {
|
|
3206
|
-
e.item.type === "api-key" && e.item.connection &&
|
|
3207
|
-
T(e.item.connection,
|
|
3206
|
+
e.item.type === "api-key" && e.item.connection && o.value !== (e.item.connection.getApiKey() || "") && (f && clearTimeout(f), f = setTimeout(() => {
|
|
3207
|
+
T(e.item.connection, o.value);
|
|
3208
3208
|
}, 500));
|
|
3209
3209
|
}, k = () => {
|
|
3210
|
-
e.item.type === "model" && e.item.connection &&
|
|
3211
|
-
}, ie = (e,
|
|
3212
|
-
|
|
3210
|
+
e.item.type === "model" && e.item.connection && c.value && c.value !== e.item.connection.model && E(e.item.connection, c.value);
|
|
3211
|
+
}, ie = (e, t) => {
|
|
3212
|
+
a("updateCompactionThreshold", e, t);
|
|
3213
3213
|
};
|
|
3214
3214
|
return {
|
|
3215
|
-
apiKeyInput:
|
|
3216
|
-
selectedModel:
|
|
3215
|
+
apiKeyInput: o,
|
|
3216
|
+
selectedModel: c,
|
|
3217
3217
|
selectedFastModel: l,
|
|
3218
3218
|
compactionThresholdInput: u,
|
|
3219
|
-
defaultCompactionThreshold:
|
|
3219
|
+
defaultCompactionThreshold: r,
|
|
3220
3220
|
isExpandable: _,
|
|
3221
3221
|
getItemName: v,
|
|
3222
3222
|
handleItemClick: y,
|
|
@@ -3252,9 +3252,9 @@ var Di = z({
|
|
|
3252
3252
|
contextMenuItems: h,
|
|
3253
3253
|
handleContextMenuItemClick: g,
|
|
3254
3254
|
toggleCollapse: b,
|
|
3255
|
-
showApiKey:
|
|
3255
|
+
showApiKey: s,
|
|
3256
3256
|
toggleApiKeyVisibility: () => {
|
|
3257
|
-
|
|
3257
|
+
s.value = !s.value;
|
|
3258
3258
|
}
|
|
3259
3259
|
};
|
|
3260
3260
|
}
|
|
@@ -3443,9 +3443,9 @@ function $i(e, t, n, r, i, a) {
|
|
|
3443
3443
|
"onToggle"
|
|
3444
3444
|
])]);
|
|
3445
3445
|
}
|
|
3446
|
-
var ea = /*#__PURE__*/
|
|
3446
|
+
var ea = /*#__PURE__*/ c(Di, [["render", $i], ["__scopeId", "data-v-1bb5f28a"]]), ta = {
|
|
3447
3447
|
openai: [
|
|
3448
|
-
|
|
3448
|
+
i.DEFAULT_MODEL,
|
|
3449
3449
|
"gpt-5.3",
|
|
3450
3450
|
"gpt-5.2",
|
|
3451
3451
|
"gpt-5.2-mini"
|
|
@@ -3480,8 +3480,8 @@ var ea = /*#__PURE__*/ e(Di, [["render", $i], ["__scopeId", "data-v-1bb5f28a"]])
|
|
|
3480
3480
|
this.$emit("close");
|
|
3481
3481
|
} },
|
|
3482
3482
|
components: { LoadingButton: A },
|
|
3483
|
-
setup(
|
|
3484
|
-
let
|
|
3483
|
+
setup(r, { emit: a }) {
|
|
3484
|
+
let c = U({
|
|
3485
3485
|
name: "",
|
|
3486
3486
|
type: "demo",
|
|
3487
3487
|
options: {
|
|
@@ -3492,43 +3492,43 @@ var ea = /*#__PURE__*/ e(Di, [["render", $i], ["__scopeId", "data-v-1bb5f28a"]])
|
|
|
3492
3492
|
}), l = B("llmConnectionStore");
|
|
3493
3493
|
if (!l) throw Error("must inject llmConnectionStore to LLMConnectionCreator");
|
|
3494
3494
|
let u = l.connections, d = () => {
|
|
3495
|
-
|
|
3495
|
+
c.value.name = "", c.value.type = "demo", c.value.options = {
|
|
3496
3496
|
apiKey: "",
|
|
3497
3497
|
model: "",
|
|
3498
3498
|
saveCredential: !1
|
|
3499
3499
|
}, f("demo");
|
|
3500
|
-
}, f = (
|
|
3501
|
-
switch (
|
|
3500
|
+
}, f = (r) => {
|
|
3501
|
+
switch (r) {
|
|
3502
3502
|
case "openai":
|
|
3503
|
-
|
|
3503
|
+
c.value.options.model = i.getDefaultModel(ta.openai);
|
|
3504
3504
|
break;
|
|
3505
3505
|
case "anthropic":
|
|
3506
|
-
|
|
3506
|
+
c.value.options.model = t.getDefaultModel(ta.anthropic);
|
|
3507
3507
|
break;
|
|
3508
3508
|
case "google":
|
|
3509
|
-
|
|
3509
|
+
c.value.options.model = n.getDefaultModel(ta.google);
|
|
3510
3510
|
break;
|
|
3511
3511
|
case "demo":
|
|
3512
|
-
|
|
3512
|
+
c.value.options.model = s.getDefaultModel(ta.demo);
|
|
3513
3513
|
break;
|
|
3514
3514
|
case "openrouter":
|
|
3515
|
-
|
|
3515
|
+
c.value.options.model = e.getDefaultModel(ta.openrouter);
|
|
3516
3516
|
break;
|
|
3517
3517
|
case "deepseek":
|
|
3518
|
-
|
|
3518
|
+
c.value.options.model = o.getDefaultModel(ta.deepseek);
|
|
3519
3519
|
break;
|
|
3520
|
-
default:
|
|
3520
|
+
default: c.value.options.model = "";
|
|
3521
3521
|
}
|
|
3522
3522
|
}, p = async () => {
|
|
3523
3523
|
await m();
|
|
3524
3524
|
}, m = async () => {
|
|
3525
|
-
if (!
|
|
3526
|
-
if (!
|
|
3527
|
-
if (!
|
|
3528
|
-
return await l.newConnection(
|
|
3525
|
+
if (!c.value.name) throw Error("Connection name is required");
|
|
3526
|
+
if (!c.value.type) throw Error("Provider type is required");
|
|
3527
|
+
if (!c.value.options.apiKey && c.value.type !== "demo") throw Error("API key is required");
|
|
3528
|
+
return await l.newConnection(c.value.name, c.value.type, c.value.options), a("close"), "Connection created successfully";
|
|
3529
3529
|
};
|
|
3530
3530
|
return {
|
|
3531
|
-
connectionDetails:
|
|
3531
|
+
connectionDetails: c,
|
|
3532
3532
|
connections: u,
|
|
3533
3533
|
createConnection: d,
|
|
3534
3534
|
handleSubmitConnection: m,
|
|
@@ -3593,7 +3593,7 @@ function ua(e, t, n, r, i, a) {
|
|
|
3593
3593
|
}, "Cancel")])
|
|
3594
3594
|
], 32)])) : P("", !0);
|
|
3595
3595
|
}
|
|
3596
|
-
var da = /*#__PURE__*/
|
|
3596
|
+
var da = /*#__PURE__*/ c(na, [["render", ua], ["__scopeId", "data-v-6ed7be04"]]), fa = [{
|
|
3597
3597
|
value: "user",
|
|
3598
3598
|
label: "User Chats"
|
|
3599
3599
|
}, {
|
|
@@ -3621,14 +3621,14 @@ var da = /*#__PURE__*/ e(na, [["render", ua], ["__scopeId", "data-v-6ed7be04"]])
|
|
|
3621
3621
|
setup(e, { emit: t }) {
|
|
3622
3622
|
let n = B("llmConnectionStore"), r = B("saveLLMConnections"), i = B("chatStore", null);
|
|
3623
3623
|
if (!n || !r) throw Error("LLM connection store is not provided!");
|
|
3624
|
-
let a =
|
|
3625
|
-
|
|
3626
|
-
},
|
|
3627
|
-
let e = fa.filter((e) => !
|
|
3624
|
+
let a = y(), o = U({}), s = U({}), c = U(!1), l = U(null), u = D(), d = C(S.LLMS, "").split("+")[0], { overrides: f, isCollapsed: p, toggle: m } = qe((e) => !!d && e === d), h = U(/* @__PURE__ */ new Set(["dashboard", "editor"])), g = U(!1), _ = U(null), v = (e) => {
|
|
3625
|
+
h.value.has(e) ? h.value.delete(e) : h.value.add(e), h.value = new Set(h.value);
|
|
3626
|
+
}, b = M(() => {
|
|
3627
|
+
let e = fa.filter((e) => !h.value.has(e.value));
|
|
3628
3628
|
return e.length === fa.length ? "All chats" : e.length === 0 ? "No chats" : e.length === 1 ? e[0].label : `${e.length} scopes`;
|
|
3629
|
-
}),
|
|
3629
|
+
}), x = (e) => {
|
|
3630
3630
|
let t = e.target;
|
|
3631
|
-
|
|
3631
|
+
_.value && t && !_.value.contains(t) && (g.value = !1);
|
|
3632
3632
|
}, w = (e) => `${e}-settings`, ee = async (e, t) => {
|
|
3633
3633
|
t && (await n.connections[e.name].setApiKey(t), n.resetConnectionInBackground(e.name), await r());
|
|
3634
3634
|
}, te = (e, t) => {
|
|
@@ -3665,7 +3665,7 @@ var da = /*#__PURE__*/ e(na, [["render", ua], ["__scopeId", "data-v-6ed7be04"]])
|
|
|
3665
3665
|
t("llm-open-view", r, "validation");
|
|
3666
3666
|
return;
|
|
3667
3667
|
}
|
|
3668
|
-
if (a === "connection" &&
|
|
3668
|
+
if (a === "connection" && p(e)) {
|
|
3669
3669
|
let t = n.connections[r];
|
|
3670
3670
|
if (!t) {
|
|
3671
3671
|
console.log(`Connection not found ${t}`);
|
|
@@ -3673,14 +3673,14 @@ var da = /*#__PURE__*/ e(na, [["render", ua], ["__scopeId", "data-v-6ed7be04"]])
|
|
|
3673
3673
|
}
|
|
3674
3674
|
(!t.models || t.models.length === 0) && await T(e, r, "models");
|
|
3675
3675
|
}
|
|
3676
|
-
|
|
3676
|
+
m(e);
|
|
3677
3677
|
};
|
|
3678
3678
|
_e(() => {
|
|
3679
|
-
document.addEventListener("click",
|
|
3680
|
-
let e =
|
|
3681
|
-
|
|
3679
|
+
document.addEventListener("click", x);
|
|
3680
|
+
let e = C(S.LLMS, "").split("+")[1];
|
|
3681
|
+
d && n.connections[d] && (n.activeConnection = d, e && i && i.setActiveChat(e));
|
|
3682
3682
|
}), ge(() => {
|
|
3683
|
-
document.removeEventListener("click",
|
|
3683
|
+
document.removeEventListener("click", x);
|
|
3684
3684
|
});
|
|
3685
3685
|
let O = /* @__PURE__ */ new Set([
|
|
3686
3686
|
"loading",
|
|
@@ -3730,8 +3730,8 @@ var da = /*#__PURE__*/ e(na, [["render", ua], ["__scopeId", "data-v-6ed7be04"]])
|
|
|
3730
3730
|
count: 0,
|
|
3731
3731
|
type: "error",
|
|
3732
3732
|
connection: r
|
|
3733
|
-
}),
|
|
3734
|
-
let c = (i ? i.getConnectionChats(t) : []).filter((e) => !
|
|
3733
|
+
}), p(t))) return;
|
|
3734
|
+
let c = (i ? i.getConnectionChats(t) : []).filter((e) => !h.value.has(e.source));
|
|
3735
3735
|
e.push({
|
|
3736
3736
|
id: `${t}-new-chat`,
|
|
3737
3737
|
name: "New Chat",
|
|
@@ -3764,7 +3764,7 @@ var da = /*#__PURE__*/ e(na, [["render", ua], ["__scopeId", "data-v-6ed7be04"]])
|
|
|
3764
3764
|
count: 0,
|
|
3765
3765
|
type: "settings-group",
|
|
3766
3766
|
connection: r
|
|
3767
|
-
}),
|
|
3767
|
+
}), p(w(t)) || (r.type !== "demo" && e.push({
|
|
3768
3768
|
id: `${t}-api-key`,
|
|
3769
3769
|
name: "API Key",
|
|
3770
3770
|
indent: 2,
|
|
@@ -3803,8 +3803,8 @@ var da = /*#__PURE__*/ e(na, [["render", ua], ["__scopeId", "data-v-6ed7be04"]])
|
|
|
3803
3803
|
}), e;
|
|
3804
3804
|
}),
|
|
3805
3805
|
toggleCollapse: E,
|
|
3806
|
-
collapsed:
|
|
3807
|
-
isCollapsed:
|
|
3806
|
+
collapsed: f,
|
|
3807
|
+
isCollapsed: p,
|
|
3808
3808
|
saveConnections: r,
|
|
3809
3809
|
updateApiKey: ee,
|
|
3810
3810
|
updateModel: te,
|
|
@@ -3814,21 +3814,21 @@ var da = /*#__PURE__*/ e(na, [["render", ua], ["__scopeId", "data-v-6ed7be04"]])
|
|
|
3814
3814
|
creatorVisible: c,
|
|
3815
3815
|
isItemSelected: (e) => e.type === "chat-item" && e.chatId && i ? e.chatId === i.activeChatId : e.type === "connection" && e.id === n.activeConnection,
|
|
3816
3816
|
screenNavigation: a,
|
|
3817
|
-
hiddenScopes:
|
|
3818
|
-
filterMenuOpen:
|
|
3819
|
-
filterDropdown:
|
|
3820
|
-
filterSummary:
|
|
3821
|
-
toggleScopeFilter:
|
|
3817
|
+
hiddenScopes: h,
|
|
3818
|
+
filterMenuOpen: g,
|
|
3819
|
+
filterDropdown: _,
|
|
3820
|
+
filterSummary: b,
|
|
3821
|
+
toggleScopeFilter: v,
|
|
3822
3822
|
SCOPE_OPTIONS: fa,
|
|
3823
|
-
mobileTree:
|
|
3824
|
-
isMobile:
|
|
3823
|
+
mobileTree: l,
|
|
3824
|
+
isMobile: u,
|
|
3825
3825
|
isLLMConfig: (e) => O.has(e.type),
|
|
3826
3826
|
isLLMBranch: (e) => k.has(e.type),
|
|
3827
3827
|
expandMobileBranch: async (e) => {
|
|
3828
|
-
|
|
3828
|
+
p(e.id) && await E(e.id, e.connection?.name || "", e.type);
|
|
3829
3829
|
},
|
|
3830
3830
|
selectMobileItem: (e) => E(e.id, e.connection?.name || "", e.type, e.type === "chat-item" ? { chatId: e.chatId } : void 0),
|
|
3831
|
-
handleMobileItemClick: (e) =>
|
|
3831
|
+
handleMobileItemClick: (e) => l.value?.openItem(e)
|
|
3832
3832
|
};
|
|
3833
3833
|
},
|
|
3834
3834
|
components: {
|
|
@@ -3954,7 +3954,7 @@ function xa(e, t, n, r, i, a) {
|
|
|
3954
3954
|
_: 1
|
|
3955
3955
|
});
|
|
3956
3956
|
}
|
|
3957
|
-
var Sa = /*#__PURE__*/
|
|
3957
|
+
var Sa = /*#__PURE__*/ c(pa, [["render", xa], ["__scopeId", "data-v-41d73d1e"]]), Ca = {
|
|
3958
3958
|
class: "popup-content",
|
|
3959
3959
|
"data-testid": "dashboard-import-popup"
|
|
3960
3960
|
}, wa = { class: "popup-header" }, Ta = { class: "popup-body" }, Ea = { class: "import-mode-selector" }, Da = {
|
|
@@ -3978,13 +3978,13 @@ var Sa = /*#__PURE__*/ e(pa, [["render", xa], ["__scopeId", "data-v-41d73d1e"]])
|
|
|
3978
3978
|
}, za = {
|
|
3979
3979
|
key: 1,
|
|
3980
3980
|
class: "form-row"
|
|
3981
|
-
}, Ba = { class: "form-row" }, Va = { class: "form-row" }, Ha = { class: "form-row" }, Ua = { class: "popup-footer" }, Wa = ["disabled"], Ga = /*#__PURE__*/
|
|
3981
|
+
}, Ba = { class: "form-row" }, Va = { class: "form-row" }, Ha = { class: "form-row" }, Ua = { class: "popup-footer" }, Wa = ["disabled"], Ga = /*#__PURE__*/ c(/* @__PURE__ */ z({
|
|
3982
3982
|
__name: "DashboardImportPopup",
|
|
3983
3983
|
props: { isOpen: { type: Boolean } },
|
|
3984
3984
|
emits: ["close"],
|
|
3985
3985
|
setup(e, { emit: t }) {
|
|
3986
|
-
let n = t, r = B("dashboardStore"),
|
|
3987
|
-
if (!r || !
|
|
3986
|
+
let n = t, r = B("dashboardStore"), i = B("connectionStore"), o = B("saveDashboards"), s = B("saveAll");
|
|
3987
|
+
if (!r || !i || !o || !s) throw Error("Required stores not provided");
|
|
3988
3988
|
let c = U(""), l = U(""), u = U(null), d = U(!1), f = U(""), p = U("paste"), m = U(null), h = U({
|
|
3989
3989
|
mdToken: "",
|
|
3990
3990
|
projectId: "",
|
|
@@ -4032,12 +4032,12 @@ var Sa = /*#__PURE__*/ e(pa, [["render", xa], ["__scopeId", "data-v-41d73d1e"]])
|
|
|
4032
4032
|
}
|
|
4033
4033
|
}, y = async () => {
|
|
4034
4034
|
try {
|
|
4035
|
-
let e =
|
|
4035
|
+
let e = a.fromSerialized(JSON.parse(c.value));
|
|
4036
4036
|
e.storage = "local";
|
|
4037
4037
|
let t = l.value;
|
|
4038
4038
|
if (t.startsWith("new-")) {
|
|
4039
4039
|
let n = t.replace("new-", "");
|
|
4040
|
-
t = `dashboard-${e.name || "imported"}-connection`,
|
|
4040
|
+
t = `dashboard-${e.name || "imported"}-connection`, i.connectionByName(t) || i.newConnection(t, n, {
|
|
4041
4041
|
mdToken: h.value.mdToken,
|
|
4042
4042
|
projectId: h.value.projectId,
|
|
4043
4043
|
username: h.value.username,
|
|
@@ -4046,7 +4046,7 @@ var Sa = /*#__PURE__*/ e(pa, [["render", xa], ["__scopeId", "data-v-41d73d1e"]])
|
|
|
4046
4046
|
privateKey: h.value.sshPrivateKey
|
|
4047
4047
|
});
|
|
4048
4048
|
}
|
|
4049
|
-
let o =
|
|
4049
|
+
let o = i.connectionByName(t);
|
|
4050
4050
|
e.connection = t, o && (e.connectionId = o.id), e.id = Math.random().toString(36).substring(2, 15), r.addDashboard(e), b.value = !0, c.value = "", f.value = "", h.value = {
|
|
4051
4051
|
mdToken: "",
|
|
4052
4052
|
projectId: "",
|
|
@@ -4126,7 +4126,7 @@ var Sa = /*#__PURE__*/ e(pa, [["render", xa], ["__scopeId", "data-v-41d73d1e"]])
|
|
|
4126
4126
|
value: "",
|
|
4127
4127
|
disabled: ""
|
|
4128
4128
|
}, "-- Select Connection --", -1),
|
|
4129
|
-
(H(!0), F(j, null, W(xe(
|
|
4129
|
+
(H(!0), F(j, null, W(xe(i).connections, (e) => (H(), F("option", {
|
|
4130
4130
|
key: e.name,
|
|
4131
4131
|
value: e.name
|
|
4132
4132
|
}, q(e.name), 9, La))), 128)),
|
|
@@ -4394,7 +4394,7 @@ function Xa(e, t, n, r, i, a) {
|
|
|
4394
4394
|
"onToggle"
|
|
4395
4395
|
]));
|
|
4396
4396
|
}
|
|
4397
|
-
var Za = /*#__PURE__*/
|
|
4397
|
+
var Za = /*#__PURE__*/ c(Ka, [["render", Xa], ["__scopeId", "data-v-28e46aa7"]]);
|
|
4398
4398
|
//#endregion
|
|
4399
4399
|
//#region components/sidebar/DashboardList.vue?vue&type=script&lang.ts
|
|
4400
4400
|
function Qa(e, t, n) {
|
|
@@ -4469,31 +4469,31 @@ var $a = {
|
|
|
4469
4469
|
setup(e) {
|
|
4470
4470
|
let t = B("dashboardStore"), n = B("connectionStore"), r = B("chatStore", null), i = B("saveDashboards");
|
|
4471
4471
|
if (!t || !n || !i) throw Error("Dashboard or connection store is not provided!");
|
|
4472
|
-
let a = U(!1), o = U(!1), s = D(), c = U(null), l = U(!0), u =
|
|
4472
|
+
let a = U(!1), o = U(!1), s = D(), c = U(null), l = U(!0), u = C(S.DASHBOARD) || "", d = (e) => {
|
|
4473
4473
|
let t = e.storage || "local", n = e.connectionId || e.connection || "default";
|
|
4474
4474
|
return [`s-${t}`, `c-${t}-${n}`];
|
|
4475
|
-
},
|
|
4475
|
+
}, f = M(() => {
|
|
4476
4476
|
let n = Object.values(t.dashboards).filter((e) => !e.deleted), r = e.activeDashboardKey || u, i = r ? n.find((e) => e.id === r) : void 0;
|
|
4477
4477
|
if (i) return new Set(d(i));
|
|
4478
4478
|
let a = new Set(n.map((e) => `s-${e.storage || "local"}`));
|
|
4479
4479
|
return a.size === 1 ? a : /* @__PURE__ */ new Set();
|
|
4480
|
-
}), { overrides:
|
|
4480
|
+
}), { overrides: p, isCollapsed: m, toggle: h } = qe((e) => e.startsWith("d-") || f.value.has(e)), g = M(() => Qa(Object.values(t.dashboards), m, n)), { isOpen: _, openConfirmation: v, closeConfirmation: y, confirm: b } = en((e) => {
|
|
4481
4481
|
r && e.chatId && r.chats[e.chatId] && r.removeChat(e.chatId), e.delete();
|
|
4482
4482
|
});
|
|
4483
4483
|
return {
|
|
4484
4484
|
connectionStore: n,
|
|
4485
4485
|
dashboardStore: t,
|
|
4486
|
-
contentList:
|
|
4487
|
-
toggleCollapse:
|
|
4488
|
-
collapsed:
|
|
4489
|
-
isCollapsed:
|
|
4486
|
+
contentList: g,
|
|
4487
|
+
toggleCollapse: h,
|
|
4488
|
+
collapsed: p,
|
|
4489
|
+
isCollapsed: m,
|
|
4490
4490
|
creatorVisible: a,
|
|
4491
4491
|
importPopupVisible: o,
|
|
4492
4492
|
saveDashboards: i,
|
|
4493
|
-
showDeleteConfirmationState:
|
|
4494
|
-
showDeleteConfirmation:
|
|
4495
|
-
cancelDelete:
|
|
4496
|
-
confirmDelete:
|
|
4493
|
+
showDeleteConfirmationState: _,
|
|
4494
|
+
showDeleteConfirmation: v,
|
|
4495
|
+
cancelDelete: y,
|
|
4496
|
+
confirmDelete: b,
|
|
4497
4497
|
isMobile: s,
|
|
4498
4498
|
mobileTree: c,
|
|
4499
4499
|
mobileTreeAtRoot: l
|
|
@@ -4621,7 +4621,7 @@ function io(e, t, n, r, i, a) {
|
|
|
4621
4621
|
_: 1
|
|
4622
4622
|
});
|
|
4623
4623
|
}
|
|
4624
|
-
var ao = /*#__PURE__*/
|
|
4624
|
+
var ao = /*#__PURE__*/ c($a, [["render", io], ["__scopeId", "data-v-04081e74"]]), oo = {
|
|
4625
4625
|
key: 1,
|
|
4626
4626
|
class: "right-pad"
|
|
4627
4627
|
}, so = {
|
|
@@ -4633,7 +4633,7 @@ var ao = /*#__PURE__*/ e($a, [["render", io], ["__scopeId", "data-v-04081e74"]])
|
|
|
4633
4633
|
}, lo = {
|
|
4634
4634
|
key: 2,
|
|
4635
4635
|
class: "tag-container"
|
|
4636
|
-
}, uo = ["data-testid"], fo = /*#__PURE__*/
|
|
4636
|
+
}, uo = ["data-testid"], fo = /*#__PURE__*/ c(/* @__PURE__ */ z({
|
|
4637
4637
|
__name: "CommunityModelListItem",
|
|
4638
4638
|
props: {
|
|
4639
4639
|
item: {},
|
|
@@ -4660,7 +4660,7 @@ var ao = /*#__PURE__*/ e($a, [["render", io], ["__scopeId", "data-v-04081e74"]])
|
|
|
4660
4660
|
"mobile-item-click"
|
|
4661
4661
|
],
|
|
4662
4662
|
setup(e, { emit: t }) {
|
|
4663
|
-
let n = e, r = t, i =
|
|
4663
|
+
let n = e, r = t, i = u(), a = () => {
|
|
4664
4664
|
if (n.mobileTreeMode) {
|
|
4665
4665
|
r("mobile-item-click", n.item);
|
|
4666
4666
|
return;
|
|
@@ -4668,10 +4668,10 @@ var ao = /*#__PURE__*/ e($a, [["render", io], ["__scopeId", "data-v-04081e74"]])
|
|
|
4668
4668
|
n.item.type === "model" ? r("model-selected", n.item.model, n.item.key, n.item.modelRoot) : r("item-click", n.item.type, n.item.key, n.item.modelRoot);
|
|
4669
4669
|
}, o = () => {
|
|
4670
4670
|
["model"].includes(n.item.type) || r("item-toggle", n.item.type, n.item.key, n.item.modelRoot);
|
|
4671
|
-
}, s = () => "", c = (e) => e.id ===
|
|
4671
|
+
}, s = () => "", c = (e) => e.id === d.id, l = (e) => i.getStoreStatus(e.id), p = (e) => {
|
|
4672
4672
|
let t = i.errors[e.id];
|
|
4673
4673
|
if (t) return `Connection failed: ${t}`;
|
|
4674
|
-
if (i.getStoreStatus(e.id) === "connected") return `Connected: ${
|
|
4674
|
+
if (i.getStoreStatus(e.id) === "connected") return `Connected: ${f(e)}`;
|
|
4675
4675
|
};
|
|
4676
4676
|
return (t, n) => (H(), N(kt, {
|
|
4677
4677
|
"item-id": e.item.key,
|
|
@@ -4706,7 +4706,7 @@ var ao = /*#__PURE__*/ e($a, [["render", io], ["__scopeId", "data-v-04081e74"]])
|
|
|
4706
4706
|
})) : P("", !0), e.item.store ? (H(), N(ue, {
|
|
4707
4707
|
key: 1,
|
|
4708
4708
|
status: l(e.item.store),
|
|
4709
|
-
message:
|
|
4709
|
+
message: p(e.item.store),
|
|
4710
4710
|
"test-name": e.item.store.id
|
|
4711
4711
|
}, null, 8, [
|
|
4712
4712
|
"status",
|
|
@@ -4761,13 +4761,13 @@ var ao = /*#__PURE__*/ e($a, [["render", io], ["__scopeId", "data-v-04081e74"]])
|
|
|
4761
4761
|
c.value = "Please fill in all required fields";
|
|
4762
4762
|
return;
|
|
4763
4763
|
}
|
|
4764
|
-
t("add", (n.value === "static" ?
|
|
4764
|
+
t("add", (n.value === "static" ? m : h)(i.value, r.value || void 0));
|
|
4765
4765
|
} else {
|
|
4766
4766
|
if (!a.value || !o.value || !s.value) {
|
|
4767
4767
|
c.value = "Please fill in all required fields";
|
|
4768
4768
|
return;
|
|
4769
4769
|
}
|
|
4770
|
-
t("add",
|
|
4770
|
+
t("add", v(a.value.trim(), o.value.trim(), s.value.trim(), r.value || void 0));
|
|
4771
4771
|
}
|
|
4772
4772
|
} catch (e) {
|
|
4773
4773
|
c.value = e instanceof Error ? e.message : "Failed to add store";
|
|
@@ -4907,7 +4907,7 @@ function Ao(e, t, n, r, i, a) {
|
|
|
4907
4907
|
_: 1
|
|
4908
4908
|
}, 8, ["show"]);
|
|
4909
4909
|
}
|
|
4910
|
-
var jo = /*#__PURE__*/
|
|
4910
|
+
var jo = /*#__PURE__*/ c(po, [["render", Ao], ["__scopeId", "data-v-4dd2e9ea"]]), Mo = (e, t = [], n = {}) => {
|
|
4911
4911
|
let r = [];
|
|
4912
4912
|
return t.forEach((t) => {
|
|
4913
4913
|
let i = t.id, a = t.name, o = t.type === "static" ? t.origin : void 0, s = {
|
|
@@ -4953,20 +4953,20 @@ var jo = /*#__PURE__*/ e(po, [["render", Ao], ["__scopeId", "data-v-4dd2e9ea"]])
|
|
|
4953
4953
|
}, No = z({
|
|
4954
4954
|
name: "CommunityModelList",
|
|
4955
4955
|
setup() {
|
|
4956
|
-
let e =
|
|
4956
|
+
let e = u(), t = y(), n = B("editorStore"), r = B("connectionStore"), i = B("modelStore"), a = D(), o = U(null), s = t.activeCommunityModelKey.value || "", c = M(() => {
|
|
4957
4957
|
if (s) {
|
|
4958
4958
|
let [e, t] = s.split("+");
|
|
4959
4959
|
return new Set(t ? [e, `${e}+${t}`] : [e]);
|
|
4960
4960
|
}
|
|
4961
4961
|
let t = e.stores;
|
|
4962
4962
|
return t.length === 1 ? /* @__PURE__ */ new Set([t[0].id]) : /* @__PURE__ */ new Set();
|
|
4963
|
-
}), { overrides:
|
|
4963
|
+
}), { overrides: l, isCollapsed: d, toggle: f, open: p } = qe((e) => c.value.has(e)), m = async (t) => {
|
|
4964
4964
|
try {
|
|
4965
4965
|
await e.addStore(t), e.closeAddStoreModal();
|
|
4966
4966
|
} catch (e) {
|
|
4967
4967
|
console.error("Failed to add store:", e);
|
|
4968
4968
|
}
|
|
4969
|
-
}, { isOpen:
|
|
4969
|
+
}, { isOpen: h, openConfirmation: g, closeConfirmation: _, confirm: v } = en((t) => {
|
|
4970
4970
|
t.type === "generic" && n && r && i && le(t.id, n, r, i), e.removeStore(t.id);
|
|
4971
4971
|
}), b = (e, n, r) => {
|
|
4972
4972
|
t.openTab("community-models", e.name, n), console.log("Selected model:", e.name, "from root:", r);
|
|
@@ -4981,14 +4981,14 @@ var jo = /*#__PURE__*/ e(po, [["render", Ao], ["__scopeId", "data-v-4dd2e9ea"]])
|
|
|
4981
4981
|
communityStore: e,
|
|
4982
4982
|
navigationStore: t,
|
|
4983
4983
|
handleAddStoreSubmit: m,
|
|
4984
|
-
showDeleteStoreConfirmation:
|
|
4985
|
-
cancelDeleteStore:
|
|
4986
|
-
confirmDeleteStore:
|
|
4987
|
-
showDeleteConfirmationState:
|
|
4984
|
+
showDeleteStoreConfirmation: g,
|
|
4985
|
+
cancelDeleteStore: _,
|
|
4986
|
+
confirmDeleteStore: v,
|
|
4987
|
+
showDeleteConfirmationState: h,
|
|
4988
4988
|
handleModelSelected: b,
|
|
4989
4989
|
handleItemClick: x,
|
|
4990
4990
|
handleItemToggle: S,
|
|
4991
|
-
collapsed:
|
|
4991
|
+
collapsed: l,
|
|
4992
4992
|
isCollapsed: d,
|
|
4993
4993
|
displayTree: C,
|
|
4994
4994
|
isMobile: a,
|
|
@@ -5107,15 +5107,15 @@ function Bo(e, t, n, r, i, a) {
|
|
|
5107
5107
|
_: 1
|
|
5108
5108
|
});
|
|
5109
5109
|
}
|
|
5110
|
-
var Vo = /*#__PURE__*/
|
|
5111
|
-
editors: () => Promise.all([import("./Editor-
|
|
5112
|
-
connections: () => import("./ConnectionView-
|
|
5113
|
-
llms: () => import("./LLMView-
|
|
5114
|
-
dashboard: () => import("./Dashboard-
|
|
5115
|
-
models: () => import("./ModelView-
|
|
5116
|
-
"community-models": () => import("./CommunityModels-
|
|
5117
|
-
jobs: () => import("./JobsView-
|
|
5118
|
-
tutorial: () => import("./TutorialPage-
|
|
5110
|
+
var Vo = /*#__PURE__*/ c(No, [["render", Bo], ["__scopeId", "data-v-46a284c6"]]), Ho = {
|
|
5111
|
+
editors: () => Promise.all([import("./Editor-DO4VRvek.js").then((e) => e.n), import("./ResultComponent-DW9Q9tp9.js").then((e) => e.n)]),
|
|
5112
|
+
connections: () => import("./ConnectionView-sEXGE8Vs.js").then((e) => e.n),
|
|
5113
|
+
llms: () => import("./LLMView-CZNNYXC1.js"),
|
|
5114
|
+
dashboard: () => import("./Dashboard-C6adKZ7q.js").then((e) => e.n),
|
|
5115
|
+
models: () => import("./ModelView-BEi83zrX.js").then((e) => e.n),
|
|
5116
|
+
"community-models": () => import("./CommunityModels-D48H9Bqt.js").then((e) => e.n),
|
|
5117
|
+
jobs: () => import("./JobsView-BcyWrDRf.js").then((e) => e.n),
|
|
5118
|
+
tutorial: () => import("./TutorialPage-DHgPuFN0.js")
|
|
5119
5119
|
}, Uo = /* @__PURE__ */ new Set();
|
|
5120
5120
|
function Wo(e) {
|
|
5121
5121
|
if (Uo.has(e)) return;
|
|
@@ -5174,7 +5174,7 @@ var Ko = z({
|
|
|
5174
5174
|
}
|
|
5175
5175
|
},
|
|
5176
5176
|
setup() {
|
|
5177
|
-
let e = U(!1), t = U(null), n = D(), r =
|
|
5177
|
+
let e = U(!1), t = U(null), n = D(), r = x(), i = ie(), a = B("chatStore", null);
|
|
5178
5178
|
return {
|
|
5179
5179
|
llmConnectionStore: B("llmConnectionStore", null),
|
|
5180
5180
|
isSaving: e,
|
|
@@ -5643,7 +5643,7 @@ function ms(e, t, n, r, i, a) {
|
|
|
5643
5643
|
], 6), [[X, !e.isMobile || e.mobileNavigationLevel === "detail"]])
|
|
5644
5644
|
], 2);
|
|
5645
5645
|
}
|
|
5646
|
-
var hs = /*#__PURE__*/
|
|
5646
|
+
var hs = /*#__PURE__*/ c(Ko, [["render", ms], ["__scopeId", "data-v-8ea26f23"]]), gs = "demo-model-connection", _s = "demo-model", vs = "https://trilogy-data.github.io/trilogy-public-models/studio/demo-model.json", ys = "tutorial_one_basic";
|
|
5647
5647
|
function bs(e) {
|
|
5648
5648
|
let t = Object.values(e.editors).find((e) => e.name === ys && e.connection === "demo-model-connection");
|
|
5649
5649
|
return t ? t.id : null;
|
|
@@ -5798,7 +5798,7 @@ function Rs(e, t, n, r, i, a) {
|
|
|
5798
5798
|
//#region components/user/UserSettings.vue?vue&type=script&lang.ts
|
|
5799
5799
|
var zs = z({
|
|
5800
5800
|
name: "UserSettings",
|
|
5801
|
-
components: { StorageManager: /* @__PURE__ */
|
|
5801
|
+
components: { StorageManager: /* @__PURE__ */ c(Cs, [["render", Rs], ["__scopeId", "data-v-e5d394da"]]) },
|
|
5802
5802
|
setup() {
|
|
5803
5803
|
let e = B("userSettingsStore");
|
|
5804
5804
|
if (!e) throw Error("User Settings Store is required");
|
|
@@ -5897,7 +5897,7 @@ function $s(e, t, n, r, i, a) {
|
|
|
5897
5897
|
Q(I("div", Qs, [R(o)], 512), [[X, e.activeTab === "storage"]])
|
|
5898
5898
|
]);
|
|
5899
5899
|
}
|
|
5900
|
-
var ec = /*#__PURE__*/
|
|
5900
|
+
var ec = /*#__PURE__*/ c(zs, [["render", $s], ["__scopeId", "data-v-e04e640c"]]), tc = z({
|
|
5901
5901
|
name: "UserProfile",
|
|
5902
5902
|
setup() {
|
|
5903
5903
|
return {
|
|
@@ -5924,7 +5924,7 @@ function cc(e, t, n, r, i, a) {
|
|
|
5924
5924
|
e.profile.organization ? (H(), F("p", sc, [t[2] ||= I("strong", null, "Organization:", -1), L(" " + q(e.profile.organization), 1)])) : P("", !0)
|
|
5925
5925
|
])])]);
|
|
5926
5926
|
}
|
|
5927
|
-
var lc = /*#__PURE__*/
|
|
5927
|
+
var lc = /*#__PURE__*/ c(tc, [["render", cc], ["__scopeId", "data-v-e25754ef"]]), uc = {}, dc = {
|
|
5928
5928
|
class: "page-loading",
|
|
5929
5929
|
role: "status",
|
|
5930
5930
|
"aria-label": "Loading page"
|
|
@@ -5932,6 +5932,6 @@ var lc = /*#__PURE__*/ e(tc, [["render", cc], ["__scopeId", "data-v-e25754ef"]])
|
|
|
5932
5932
|
function fc(e, t) {
|
|
5933
5933
|
return H(), F("div", dc, [...t[0] ||= [pe("<div class=\"page-loading__bar\" data-v-bd8a428d><span class=\"skeleton skeleton--chip\" data-v-bd8a428d></span><span class=\"skeleton skeleton--title\" data-v-bd8a428d></span><span class=\"skeleton skeleton--chip\" data-v-bd8a428d></span></div><div class=\"page-loading__body\" data-v-bd8a428d><span class=\"skeleton skeleton--line skeleton--w60\" data-v-bd8a428d></span><span class=\"skeleton skeleton--line skeleton--w40\" data-v-bd8a428d></span><span class=\"skeleton skeleton--block\" data-v-bd8a428d></span><div class=\"page-loading__row\" data-v-bd8a428d><span class=\"skeleton skeleton--card\" data-v-bd8a428d></span><span class=\"skeleton skeleton--card\" data-v-bd8a428d></span></div></div>", 2)]]);
|
|
5934
5934
|
}
|
|
5935
|
-
var pc = /*#__PURE__*/
|
|
5935
|
+
var pc = /*#__PURE__*/ c(uc, [["render", fc], ["__scopeId", "data-v-bd8a428d"]]);
|
|
5936
5936
|
//#endregion
|
|
5937
5937
|
export { hs as a, jr as c, We as d, Ue as f, Ss as i, yn as l, lc as n, Go as o, ze as p, ec as r, Sa as s, pc as t, ft as u };
|