@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,4 +1,4 @@
|
|
|
1
|
-
import { c as e, d as t, l as n, p as r, r as i, s as a, t as o, u as s } from "./workers-
|
|
1
|
+
import { c as e, d as t, l as n, p as r, r as i, s as a, t as o, u as s } from "./workers-CHvkad0r.js";
|
|
2
2
|
//#region node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/language/typescript/workerManager.js
|
|
3
3
|
var c = class {
|
|
4
4
|
constructor(e, t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as e } from "./workers-
|
|
1
|
+
import { p as e } from "./workers-CHvkad0r.js";
|
|
2
2
|
//#region node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.js
|
|
3
3
|
var t = {
|
|
4
4
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { W as e, lt as t, tt as n } from "./llm-Bc1CfjOE.js";
|
|
2
2
|
import { computed as r, ref as i, toValue as a, watch as o } from "vue";
|
|
3
3
|
//#region composables/useChatWithTools.ts
|
|
4
4
|
function s(s) {
|
|
@@ -20,7 +20,7 @@ function s(s) {
|
|
|
20
20
|
alias: ""
|
|
21
21
|
})) : [];
|
|
22
22
|
}), V = r(() => N.value), H = async () => {
|
|
23
|
-
let
|
|
23
|
+
let t = N.value, n = M.value;
|
|
24
24
|
if (!n) return A.value = [], j.value = [], [];
|
|
25
25
|
console.log(`[useChatWithTools] Refreshing symbols for connection: "${n}"`);
|
|
26
26
|
let r = l?.connectionByName(n), i = f && r ? Object.values(f.editors).filter((e) => !e.deleted && e.connectionId === r.id).map((e) => ({
|
|
@@ -29,7 +29,7 @@ function s(s) {
|
|
|
29
29
|
})) : [];
|
|
30
30
|
console.log(`[useChatWithTools] Found ${i.length} editors:`, i.map((e) => e.alias));
|
|
31
31
|
let a = l?.getConnectionSources(n) || [], o = /* @__PURE__ */ new Map();
|
|
32
|
-
a.forEach((e) => o.set(e.alias, e.contents)), i.forEach((e) => o.set(e.alias, e.contents)), (
|
|
32
|
+
a.forEach((e) => o.set(e.alias, e.contents)), i.forEach((e) => o.set(e.alias, e.contents)), (t || []).map((e) => ({
|
|
33
33
|
alias: e.alias || e.name,
|
|
34
34
|
contents: f?.editors[e.id]?.contents || ""
|
|
35
35
|
})).forEach((e) => o.set(e.alias, e.contents));
|
|
@@ -42,13 +42,13 @@ function s(s) {
|
|
|
42
42
|
let r = {
|
|
43
43
|
text: "SELECT 1",
|
|
44
44
|
editorType: "trilogy",
|
|
45
|
-
imports: (
|
|
45
|
+
imports: (t || []).map((e) => ({
|
|
46
46
|
name: e.name,
|
|
47
47
|
alias: e.alias || ""
|
|
48
48
|
})),
|
|
49
49
|
extraContent: s
|
|
50
50
|
}, i = await u?.validateQuery(n, r, !1);
|
|
51
|
-
if (i?.data?.completion_items) return console.log("Chat symbols refresh - completion_items count:", i.data.completion_items.length), console.log("Chat symbols refresh - trilogyTypes:", [...new Set(i.data.completion_items.map((e) => e.trilogyType))]), A.value =
|
|
51
|
+
if (i?.data?.completion_items) return console.log("Chat symbols refresh - completion_items count:", i.data.completion_items.length), console.log("Chat symbols refresh - trilogyTypes:", [...new Set(i.data.completion_items.map((e) => e.trilogyType))]), A.value = e(i.data.completion_items), j.value = i.data.completion_items.filter((e) => e.trilogyType === "concept"), console.log("Chat symbols refresh - filtered concepts count:", j.value.length), j.value;
|
|
52
52
|
} catch (e) {
|
|
53
53
|
console.error("Failed to fetch concepts from imports:", e), A.value = [], j.value = [];
|
|
54
54
|
}
|
|
@@ -63,10 +63,10 @@ function s(s) {
|
|
|
63
63
|
await H();
|
|
64
64
|
}, { immediate: !0 });
|
|
65
65
|
let U = r(() => {
|
|
66
|
-
let e = M.value,
|
|
67
|
-
return
|
|
66
|
+
let e = M.value, n = l ? Object.values(l.connections).map((e) => e.name) : [], r = e && l ? l.connectionByName(e)?.connected ?? !1 : !1;
|
|
67
|
+
return t({
|
|
68
68
|
dataConnectionName: e,
|
|
69
|
-
availableConnections:
|
|
69
|
+
availableConnections: n,
|
|
70
70
|
availableConcepts: A.value,
|
|
71
71
|
activeImports: V.value,
|
|
72
72
|
availableImportsForConnection: B.value,
|
|
@@ -85,8 +85,8 @@ function s(s) {
|
|
|
85
85
|
}, { deep: !0 }), o(() => d?.activeChat?.activeArtifactIndex, (e) => {
|
|
86
86
|
e !== void 0 && (k.value = e);
|
|
87
87
|
}));
|
|
88
|
-
let G = async (
|
|
89
|
-
if (d?.activeChatId && l && u && f) return d.executeMessage(d.activeChatId,
|
|
88
|
+
let G = async (e, t) => {
|
|
89
|
+
if (d?.activeChatId && l && u && f) return d.executeMessage(d.activeChatId, e, {
|
|
90
90
|
llmConnectionStore: c,
|
|
91
91
|
connectionStore: l,
|
|
92
92
|
queryExecutionService: u,
|
|
@@ -102,8 +102,8 @@ function s(s) {
|
|
|
102
102
|
if (_ && _.length > 0) {
|
|
103
103
|
D.value = [...D.value, {
|
|
104
104
|
role: "user",
|
|
105
|
-
content:
|
|
106
|
-
}], await e
|
|
105
|
+
content: e
|
|
106
|
+
}], await n(e, c.activeConnection, { generateCompletion: (e, t, n) => c.generateCompletion(e, t, n) }, {
|
|
107
107
|
addMessage: (e) => {
|
|
108
108
|
D.value = [...D.value, e];
|
|
109
109
|
},
|
|
@@ -140,9 +140,9 @@ function s(s) {
|
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
142
|
return { response: (await c.generateCompletion(c.activeConnection, {
|
|
143
|
-
prompt:
|
|
143
|
+
prompt: e,
|
|
144
144
|
systemPrompt: U.value
|
|
145
|
-
},
|
|
145
|
+
}, t)).text };
|
|
146
146
|
} catch (e) {
|
|
147
147
|
if (e instanceof DOMException && e.name === "AbortError") return;
|
|
148
148
|
let t = e instanceof Error ? e.message : "An unknown error occurred";
|