@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,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { h as o } from "./stores-
|
|
5
|
-
import { t as s } from "./DashboardImportSelector-
|
|
6
|
-
import { t as c } from "./MarkdownRenderer-
|
|
7
|
-
import { t as l } from "./SymbolsPane-
|
|
8
|
-
import { t as u } from "./useChatWithTools-
|
|
9
|
-
import { t as d } from "./CodeBlock-
|
|
10
|
-
import { t as f } from "./Results-
|
|
11
|
-
import { t as p } from "./LLMChat-
|
|
1
|
+
import { Lt as e, Rt as t, bt as n } from "./llm-Bc1CfjOE.js";
|
|
2
|
+
import { t as r } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
3
|
+
import { c as i, u as a } from "./base-DuKnVD-A.js";
|
|
4
|
+
import { h as o } from "./stores-DgdADCiH.js";
|
|
5
|
+
import { t as s } from "./DashboardImportSelector-CQqXshDj.js";
|
|
6
|
+
import { t as c } from "./MarkdownRenderer-Dlb_KGmk.js";
|
|
7
|
+
import { t as l } from "./SymbolsPane-DUrLpSSw.js";
|
|
8
|
+
import { t as u } from "./useChatWithTools-CMhGxdyr.js";
|
|
9
|
+
import { t as d } from "./CodeBlock-C9o09ipr.js";
|
|
10
|
+
import { t as f } from "./Results-N2OttUlb.js";
|
|
11
|
+
import { t as p } from "./LLMChat-Dg8VvTIP.js";
|
|
12
12
|
import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, guardReactiveProps as C, inject as w, nextTick as T, normalizeClass as E, normalizeProps as D, normalizeStyle as O, onMounted as ee, openBlock as k, ref as A, renderList as j, renderSlot as M, resolveComponent as N, toDisplayString as P, vModelSelect as te, vModelText as F, vShow as I, watch as L, withCtx as R, withDirectives as z, withKeys as ne, withModifiers as B } from "vue";
|
|
13
13
|
//#region components/llm/ArtifactsPane.vue?vue&type=script&lang.ts
|
|
14
14
|
var V = 450, H = 25, U = 120, W = 450, G = 20, K = 80, q = 350, J = 800, Y = S({
|
|
@@ -33,8 +33,8 @@ var V = 450, H = 25, U = 120, W = 450, G = 20, K = 80, q = 350, J = 800, Y = S({
|
|
|
33
33
|
"update:activeArtifactIndex",
|
|
34
34
|
"unhide-artifact"
|
|
35
35
|
],
|
|
36
|
-
setup(e, { emit:
|
|
37
|
-
let
|
|
36
|
+
setup(e, { emit: t }) {
|
|
37
|
+
let n = A(/* @__PURE__ */ new Set()), r = A(!1), o = h(() => e.artifacts.map((e, t) => ({
|
|
38
38
|
artifact: e,
|
|
39
39
|
originalIndex: t
|
|
40
40
|
})).filter(({ artifact: e }) => !e.hidden)), s = h(() => e.artifacts.map((e, t) => ({
|
|
@@ -42,11 +42,11 @@ var V = 450, H = 25, U = 120, W = 450, G = 20, K = 80, q = 350, J = 800, Y = S({
|
|
|
42
42
|
originalIndex: t
|
|
43
43
|
})).filter(({ artifact: e }) => e.hidden)), c = (e) => {
|
|
44
44
|
let t = e.data;
|
|
45
|
-
return t instanceof
|
|
45
|
+
return t instanceof a ? t : t?.headers && t?.data ? a.fromJSON(t) : null;
|
|
46
46
|
}, l = (e) => {
|
|
47
47
|
if (e.type !== "markdown") return null;
|
|
48
48
|
let t = e.data?.queryResults;
|
|
49
|
-
return t ? t instanceof
|
|
49
|
+
return t ? t instanceof a ? t : t?.headers && t?.data ? a.fromJSON(t) : null : null;
|
|
50
50
|
}, u = (e) => {
|
|
51
51
|
switch (e.type) {
|
|
52
52
|
case "results": return "mdi mdi-table";
|
|
@@ -58,17 +58,17 @@ var V = 450, H = 25, U = 120, W = 450, G = 20, K = 80, q = 350, J = 800, Y = S({
|
|
|
58
58
|
}, d = (e, t) => e.config?.title ? e.config.title : `${e.type === "results" ? "Query Result" : e.type === "chart" ? "Chart" : e.type === "markdown" ? "Markdown" : e.type} #${t + 1}`, f = (e) => {
|
|
59
59
|
let t = [];
|
|
60
60
|
return e.config?.resultSize && t.push(`${e.config.resultSize} rows`), e.config?.executionTime && t.push(`${e.config.executionTime}ms`), t.join(" | ");
|
|
61
|
-
}, p = (e, t) => e.id || String(t), m = (e, t) =>
|
|
62
|
-
let
|
|
63
|
-
a.has(
|
|
61
|
+
}, p = (e, t) => e.id || String(t), m = (e, t) => n.value.has(p(e, t)), g = (e, r) => {
|
|
62
|
+
let i = p(e, r), a = new Set(n.value);
|
|
63
|
+
a.has(i) ? a.delete(i) : (a.add(i), t("update:activeArtifactIndex", r)), n.value = a;
|
|
64
64
|
}, _ = (e) => {
|
|
65
|
-
for (let
|
|
65
|
+
for (let t of e.headers.values()) if (t.type === i.ARRAY || t.type === i.STRUCT) return !0;
|
|
66
66
|
return !1;
|
|
67
67
|
};
|
|
68
68
|
return {
|
|
69
69
|
visibleArtifacts: o,
|
|
70
70
|
hiddenArtifacts: s,
|
|
71
|
-
showHidden:
|
|
71
|
+
showHidden: r,
|
|
72
72
|
getArtifactResults: c,
|
|
73
73
|
getMarkdownResults: l,
|
|
74
74
|
getArtifactIcon: u,
|
|
@@ -192,7 +192,7 @@ var he = S({
|
|
|
192
192
|
name: "LLMChatSplitView",
|
|
193
193
|
components: {
|
|
194
194
|
LLMChat: p,
|
|
195
|
-
ArtifactsPane: /* @__PURE__ */
|
|
195
|
+
ArtifactsPane: /* @__PURE__ */ r(Y, [["render", me], ["__scopeId", "data-v-2d83a10c"]]),
|
|
196
196
|
DashboardImportSelector: s,
|
|
197
197
|
SymbolsPane: l
|
|
198
198
|
},
|
|
@@ -477,7 +477,7 @@ function Te(e, t, n, r, i, a) {
|
|
|
477
477
|
}, null, 8, ["symbols", "onSelectSymbol"])])) : _("", !0)])
|
|
478
478
|
], 2);
|
|
479
479
|
}
|
|
480
|
-
var Ee = /*#__PURE__*/
|
|
480
|
+
var Ee = /*#__PURE__*/ r(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]]), Q = [
|
|
481
481
|
{
|
|
482
482
|
name: "id",
|
|
483
483
|
type: "int"
|
|
@@ -568,7 +568,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]])
|
|
|
568
568
|
{
|
|
569
569
|
name: "Basic Query",
|
|
570
570
|
description: "Tests if the LLM can create a simple trilogy query from user input.",
|
|
571
|
-
prompt:
|
|
571
|
+
prompt: n("what were sales for the last 3 months by order date?", Q),
|
|
572
572
|
expectedResponse: {
|
|
573
573
|
contains: ["extended_price"],
|
|
574
574
|
mustIdentify: "order.date",
|
|
@@ -578,7 +578,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]])
|
|
|
578
578
|
{
|
|
579
579
|
name: "Aggregate Query",
|
|
580
580
|
description: "Tests if the LLM can generate an aggregate query.",
|
|
581
|
-
prompt:
|
|
581
|
+
prompt: n("what are sales by supplier name and nation?", Q),
|
|
582
582
|
expectedResponse: {
|
|
583
583
|
contains: ["extended_price"],
|
|
584
584
|
mustIdentify: "supplier.nation.name",
|
|
@@ -588,7 +588,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]])
|
|
|
588
588
|
{
|
|
589
589
|
name: "Complex Query",
|
|
590
590
|
description: "Tests for a more complex query, with limits and ordering.",
|
|
591
|
-
prompt:
|
|
591
|
+
prompt: n("Who were the top ten customers by sales in august 1995?", Q),
|
|
592
592
|
expectedResponse: {
|
|
593
593
|
contains: [
|
|
594
594
|
"extended_price",
|
|
@@ -602,7 +602,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]])
|
|
|
602
602
|
{
|
|
603
603
|
name: "Multi-part Conditions",
|
|
604
604
|
description: "Tests for a query that includes multiple conditions.",
|
|
605
|
-
prompt:
|
|
605
|
+
prompt: n("Who were the top ten customers by sales in august 1995 who had orders that shipped in october or september?", Q),
|
|
606
606
|
expectedResponse: {
|
|
607
607
|
contains: [
|
|
608
608
|
"extended_price",
|
|
@@ -616,7 +616,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]])
|
|
|
616
616
|
{
|
|
617
617
|
name: "Test Count(*) Handling",
|
|
618
618
|
description: "Test proper counting of identifiers",
|
|
619
|
-
prompt:
|
|
619
|
+
prompt: n("How many customers are there by country?", Q),
|
|
620
620
|
expectedResponse: {
|
|
621
621
|
contains: ["order.customer.id"],
|
|
622
622
|
mustIdentify: "order.customer.nation.name",
|
|
@@ -847,66 +847,66 @@ function nt(e, t, n, r, i, a) {
|
|
|
847
847
|
e.testRunDetails[n] ? (k(), v("div", $, P(e.testRunDetails[n].passed) + "/5 runs passed ", 1)) : _("", !0)
|
|
848
848
|
], 10, Xe))), 128))])])]);
|
|
849
849
|
}
|
|
850
|
-
var rt = /*#__PURE__*/
|
|
850
|
+
var rt = /*#__PURE__*/ r(Oe, [["render", nt], ["__scopeId", "data-v-28356d02"]]);
|
|
851
851
|
//#endregion
|
|
852
852
|
//#region chats/publishArtifactsToDashboard.ts
|
|
853
|
-
function it(e,
|
|
854
|
-
let
|
|
855
|
-
id:
|
|
856
|
-
name:
|
|
857
|
-
connection:
|
|
858
|
-
connectionId:
|
|
853
|
+
function it(e, n) {
|
|
854
|
+
let r = n.name || "Chat Artifacts", i = new t({
|
|
855
|
+
id: r,
|
|
856
|
+
name: r,
|
|
857
|
+
connection: n.connection,
|
|
858
|
+
connectionId: n.connectionId || "",
|
|
859
859
|
storage: "local",
|
|
860
860
|
state: "editing"
|
|
861
861
|
});
|
|
862
|
-
|
|
862
|
+
n.imports && (i.imports = n.imports.map((e) => ({ ...e })));
|
|
863
863
|
for (let t of e) {
|
|
864
864
|
let e = at(t);
|
|
865
865
|
if (!e) continue;
|
|
866
|
-
let { type: n, content:
|
|
867
|
-
|
|
866
|
+
let { type: n, content: r, name: a, chartConfig: o, height: s } = e, c = i.addItem(n, 0, 0, 20, s, null, a);
|
|
867
|
+
i.gridItems[c].content = r, o && (i.gridItems[c].chartConfig = o);
|
|
868
868
|
}
|
|
869
|
-
return
|
|
869
|
+
return i.changed = !0, i;
|
|
870
870
|
}
|
|
871
|
-
function at(
|
|
872
|
-
switch (
|
|
871
|
+
function at(t) {
|
|
872
|
+
switch (t.type) {
|
|
873
873
|
case "chart": {
|
|
874
|
-
let
|
|
874
|
+
let n = t.config?.query || "";
|
|
875
875
|
return {
|
|
876
|
-
type:
|
|
877
|
-
content:
|
|
878
|
-
name:
|
|
879
|
-
chartConfig:
|
|
876
|
+
type: e.CHART,
|
|
877
|
+
content: n,
|
|
878
|
+
name: t.config?.title || "Chart",
|
|
879
|
+
chartConfig: t.config?.chartConfig,
|
|
880
880
|
height: 10
|
|
881
881
|
};
|
|
882
882
|
}
|
|
883
883
|
case "results": {
|
|
884
|
-
let
|
|
884
|
+
let n = t.config?.query || "";
|
|
885
885
|
return {
|
|
886
|
-
type:
|
|
887
|
-
content:
|
|
888
|
-
name:
|
|
886
|
+
type: e.TABLE,
|
|
887
|
+
content: n,
|
|
888
|
+
name: t.config?.title || "Table",
|
|
889
889
|
height: 10
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
892
|
case "markdown": {
|
|
893
|
-
let
|
|
894
|
-
markdown:
|
|
895
|
-
query:
|
|
893
|
+
let n = {
|
|
894
|
+
markdown: t.data?.markdown || "",
|
|
895
|
+
query: t.data?.query || ""
|
|
896
896
|
};
|
|
897
897
|
return {
|
|
898
|
-
type:
|
|
899
|
-
content:
|
|
900
|
-
name:
|
|
901
|
-
height:
|
|
898
|
+
type: e.MARKDOWN,
|
|
899
|
+
content: n,
|
|
900
|
+
name: t.config?.title || "Markdown",
|
|
901
|
+
height: n.query ? 10 : 4
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
904
|
case "code": {
|
|
905
|
-
let
|
|
905
|
+
let n = `\`\`\`${t.config?.language || "sql"}\n${t.data || ""}\n\`\`\``;
|
|
906
906
|
return {
|
|
907
|
-
type:
|
|
908
|
-
content:
|
|
909
|
-
name:
|
|
907
|
+
type: e.MARKDOWN,
|
|
908
|
+
content: n,
|
|
909
|
+
name: t.config?.title || "Code",
|
|
910
910
|
height: 4
|
|
911
911
|
};
|
|
912
912
|
}
|
|
@@ -1101,6 +1101,6 @@ function ht(e, t, n, r, i, a) {
|
|
|
1101
1101
|
initialProvider: e.initialProvider
|
|
1102
1102
|
}, null, 8, ["initialProvider"]))]);
|
|
1103
1103
|
}
|
|
1104
|
-
var gt = /*#__PURE__*/
|
|
1104
|
+
var gt = /*#__PURE__*/ r(ot, [["render", ht], ["__scopeId", "data-v-2a1999fc"]]);
|
|
1105
1105
|
//#endregion
|
|
1106
1106
|
export { gt as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
2
|
-
import { c as t } from "./useGlobalChatPanel-
|
|
2
|
+
import { c as t } from "./useGlobalChatPanel-Doeilj18.js";
|
|
3
3
|
import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, nextTick as c, normalizeClass as l, onBeforeUnmount as u, onMounted as d, openBlock as f, ref as p, toDisplayString as m } from "vue";
|
|
4
4
|
//#region components/LoadingView.vue?vue&type=script&lang.ts
|
|
5
5
|
var h = s({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
2
|
-
import { o as t, s as n } from "./useGlobalChatPanel-
|
|
2
|
+
import { o as t, s as n } from "./useGlobalChatPanel-Doeilj18.js";
|
|
3
3
|
import { computed as r, createElementBlock as i, createElementVNode as a, defineComponent as o, openBlock as s, ref as c } from "vue";
|
|
4
4
|
//#region node_modules/.pnpm/dompurify@3.4.16/node_modules/dompurify/dist/purify.es.mjs
|
|
5
5
|
function l(e, t) {
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
2
|
-
import "./
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as b } from "./ModelView-BP5yyecx.js";
|
|
2
|
+
import { tt as t } from "./editorStore-Czhpct1j.js";
|
|
3
|
+
import { a as n, i as r, l as i, o as a, s as o } from "./stores-DgdADCiH.js";
|
|
4
|
+
import { u as s } from "./useGlobalChatPanel-Doeilj18.js";
|
|
5
|
+
import { t as c } from "./ErrorMessage-Cz7q7vJI.js";
|
|
6
|
+
import { t as l } from "./LoadingView-k2CIKiN7.js";
|
|
7
|
+
import { t as u } from "./AssetAutoImporter-BA8C4p09.js";
|
|
8
|
+
import { t as d } from "./CommunityModels-D48H9Bqt.js";
|
|
9
|
+
import { a as f, d as p, f as ee, i as m, n as h, r as g, t as _ } from "./PageLoading-C7H6q6U6.js";
|
|
10
|
+
import { t as v } from "./JobsView-BcyWrDRf.js";
|
|
11
|
+
import { t as y } from "./ConnectionView-sEXGE8Vs.js";
|
|
12
|
+
import { t as b } from "./ModelView-BEi83zrX.js";
|
|
14
13
|
import { Fragment as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as D, createVNode as O, defineAsyncComponent as k, defineComponent as A, inject as j, markRaw as M, nextTick as te, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as F, onMounted as ne, openBlock as I, provide as L, ref as R, renderList as z, renderSlot as B, resolveComponent as V, toDisplayString as H, unref as U, vModelText as re, vShow as W, watch as G, withCtx as K, withDirectives as q, withKeys as J, withModifiers as Y } from "vue";
|
|
15
14
|
//#region components/layout/TabDropdownItem.vue?vue&type=script&lang.ts
|
|
16
15
|
var X = 10, Z = 200, ie = {
|
|
@@ -369,7 +368,7 @@ var Me = /*#__PURE__*/ e(Te, [["render", je], ["__scopeId", "data-v-046a9e75"]])
|
|
|
369
368
|
loader: e,
|
|
370
369
|
loadingComponent: _,
|
|
371
370
|
delay: 0
|
|
372
|
-
}), Ne = $(() => import("./TutorialPage-
|
|
371
|
+
}), Ne = $(() => import("./TutorialPage-DHgPuFN0.js")), Pe = $(() => import("./Editor-DO4VRvek.js").then((e) => e.n)), Fe = k(() => import("./useGlobalChatPanel-Doeilj18.js").then((e) => e.i)), Ie = $(() => import("./WelcomePage-CN6ptsoF.js")), Le = $(() => import("./DashboardMobile-BU1nDLQv.js")), Re = k(() => import("./ResultComponent-DW9Q9tp9.js").then((e) => e.n)), ze = $(() => import("./LLMView-CZNNYXC1.js")), Be = k(() => import("./ConnectionErrorPopup-7vpqgF0s.js")), Ve = k(() => import("./ChatCreatorModal-94gZ9D-y.js")), He = A({
|
|
373
372
|
name: "MobileIDEComponent",
|
|
374
373
|
data() {
|
|
375
374
|
return {
|
|
@@ -404,10 +403,10 @@ var Me = /*#__PURE__*/ e(Te, [["render", je], ["__scopeId", "data-v-046a9e75"]])
|
|
|
404
403
|
ConnectionErrorPopup: Be
|
|
405
404
|
},
|
|
406
405
|
setup() {
|
|
407
|
-
let e = j("connectionStore"),
|
|
408
|
-
if (!
|
|
406
|
+
let e = j("connectionStore"), t = j("editorStore"), i = j("modelStore"), a = j("dashboardStore"), o = j("trilogyResolver"), s = j("queryExecutionService"), c = j("storesLoaded", R(!0)), l = j("saveEditors"), u = j("saveConnections"), d = j("saveModels"), f = j("saveDashboards");
|
|
407
|
+
if (!t || !e || !a || !o || !i || !u || !d || !f) throw Error("Requires injection of connection store, editor store, model store, editors, connections, and models saving.");
|
|
409
408
|
l ||= () => {};
|
|
410
|
-
let p =
|
|
409
|
+
let p = n(), ee = R(null), m = r(), { activeScreen: h, activeEditor: g, activeTab: _, activeDashboard: v, activeSidebarScreen: y, setActiveScreen: b, setActiveSidebarScreen: x, setActiveEditor: S, setActiveDashboard: C, activeConnectionKey: w, activeModelKey: T, activeDocumentationKey: E, setActiveConnectionKey: D, setActiveModelKey: O, setActiveDocumentationKey: k, activeLLMConnectionKey: A, setActiveLLMConnectionKey: M, activeCommunityModelKey: te, activeJobsKey: N, setActiveJobsKey: P, mobileMenuOpen: I, toggleMobileMenu: z, tabs: B, closeTab: V, closeOtherTabsExcept: H, openTab: U, addBackListeners: re, removeBacklisteners: W, onInitialLoad: G, updateTabName: K } = p, q = (e) => {
|
|
411
410
|
U(e.screen, null, e.address);
|
|
412
411
|
}, J = (e) => {
|
|
413
412
|
V(e, null);
|
|
@@ -427,7 +426,7 @@ var Me = /*#__PURE__*/ e(Te, [["render", je], ["__scopeId", "data-v-046a9e75"]])
|
|
|
427
426
|
window.visualViewport?.removeEventListener("resize", Q);
|
|
428
427
|
}), {
|
|
429
428
|
connectionStore: e,
|
|
430
|
-
editorStore:
|
|
429
|
+
editorStore: t,
|
|
431
430
|
storesLoaded: c,
|
|
432
431
|
dashboardStore: a,
|
|
433
432
|
trilogyResolver: o,
|
|
@@ -518,15 +517,15 @@ var Me = /*#__PURE__*/ e(Te, [["render", je], ["__scopeId", "data-v-046a9e75"]])
|
|
|
518
517
|
this.editorRef?.setContent(e);
|
|
519
518
|
},
|
|
520
519
|
updateActiveEditorName(e) {
|
|
521
|
-
let
|
|
522
|
-
if (!
|
|
523
|
-
let
|
|
524
|
-
if (
|
|
525
|
-
if (this.editorStore.updateEditorName(
|
|
526
|
-
let t =
|
|
527
|
-
t?.model && (this.modelStore.models[t.model].updateModelSourceName(
|
|
520
|
+
let n = this.activeEditor;
|
|
521
|
+
if (!n) return;
|
|
522
|
+
let r = this.editorStore.editors[n];
|
|
523
|
+
if (r) {
|
|
524
|
+
if (this.editorStore.updateEditorName(n, e), r.tags.includes(t.SOURCE)) {
|
|
525
|
+
let t = r.connectionId ? this.connectionStore.connections[r.connectionId] : this.connectionStore.connectionByName(r.connection);
|
|
526
|
+
t?.model && (this.modelStore.models[t.model].updateModelSourceName(r.id, e), this.saveModels());
|
|
528
527
|
}
|
|
529
|
-
this.updateTabName("editors", null,
|
|
528
|
+
this.updateTabName("editors", null, n);
|
|
530
529
|
}
|
|
531
530
|
},
|
|
532
531
|
saveEditorsCall() {
|
|
@@ -540,13 +539,13 @@ var Me = /*#__PURE__*/ e(Te, [["render", je], ["__scopeId", "data-v-046a9e75"]])
|
|
|
540
539
|
});
|
|
541
540
|
},
|
|
542
541
|
maybeStartDemoFromHash() {
|
|
543
|
-
return a
|
|
542
|
+
return o(a.DEMO, "") === "true" ? this.launchDemo() : Promise.resolve();
|
|
544
543
|
},
|
|
545
544
|
async launchDemo() {
|
|
546
545
|
if (!this.demoLaunchInFlight) {
|
|
547
546
|
this.demoLaunchInFlight = !0, this.demoLaunchError = "";
|
|
548
547
|
try {
|
|
549
|
-
await this.waitForStoresLoaded(), await this.startDemo(),
|
|
548
|
+
await this.waitForStoresLoaded(), await this.startDemo(), i(a.DEMO);
|
|
550
549
|
} catch (e) {
|
|
551
550
|
console.error("Demo setup failed:", e), this.demoLaunchError = e instanceof Error ? e.message : String(e);
|
|
552
551
|
} finally {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
2
|
-
import {
|
|
3
|
-
import "./stores-
|
|
4
|
-
import { a as r, u as i } from "./useGlobalChatPanel-
|
|
5
|
-
import { t as a } from "./ErrorMessage-
|
|
6
|
-
import { t as o } from "./Editor-
|
|
2
|
+
import { _t as t, ht as n } from "./editorStore-Czhpct1j.js";
|
|
3
|
+
import "./stores-DgdADCiH.js";
|
|
4
|
+
import { a as r, u as i } from "./useGlobalChatPanel-Doeilj18.js";
|
|
5
|
+
import { t as a } from "./ErrorMessage-Cz7q7vJI.js";
|
|
6
|
+
import { t as o } from "./Editor-DO4VRvek.js";
|
|
7
7
|
import { Fragment as s, computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, inject as h, nextTick as g, normalizeClass as _, onBeforeUnmount as v, onMounted as y, openBlock as b, ref as x, renderList as S, resolveComponent as C, toDisplayString as w, vModelSelect as T, vModelText as E, watch as D, withCtx as O, withDirectives as k, withKeys as A, withModifiers as j } from "vue";
|
|
8
8
|
//#region components/model/ModelConcept.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var M = { class: "concept-container" }, ee = { class: "concept-header" }, te = { class: "namespace-badge" }, N = { class: "concept-content" }, P = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { pn as e } from "./llm-Bc1CfjOE.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
3
|
-
import {
|
|
4
|
-
import { u as r } from "./useGlobalChatPanel-
|
|
5
|
-
import { t as i } from "./ErrorMessage-
|
|
6
|
-
import { t as a } from "./Editor-
|
|
7
|
-
import { n as o, t as s } from "./ModelCard-
|
|
3
|
+
import { _t as n } from "./editorStore-Czhpct1j.js";
|
|
4
|
+
import { u as r } from "./useGlobalChatPanel-Doeilj18.js";
|
|
5
|
+
import { t as i } from "./ErrorMessage-Cz7q7vJI.js";
|
|
6
|
+
import { t as a } from "./Editor-DO4VRvek.js";
|
|
7
|
+
import { n as o, t as s } from "./ModelCard-Dn2b5WLs.js";
|
|
8
8
|
import { createCommentVNode as c, createElementBlock as l, createVNode as u, defineComponent as d, inject as f, openBlock as p, ref as m, resolveComponent as h } from "vue";
|
|
9
9
|
//#region views/ModelView.vue?vue&type=script&lang.ts
|
|
10
10
|
var g = d({
|