@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
package/dist/llm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
3
|
-
export {
|
|
1
|
+
import { At as e, Dt as t, Et as n, Ft as r, H as i, It as a, J as o, K as s, Mt as c, Nt as l, Ot as u, Pt as d, Tt as f, U as p, X as m, Y as h, at as g, bt as _, ct as v, et as y, gt as b, it as x, kt as S, lt as C, ot as w, q as T, t as E, tt as D, ut as O, vt as k, yt as A } from "./llm-Bc1CfjOE.js";
|
|
2
|
+
import { n as j, t as M } from "./chatHelpers-F_woEbYF.js";
|
|
3
|
+
export { t as AnthropicProvider, v as CHAT_TOOLS, l as DEFAULT_COMPACTION_THRESHOLD_TOKENS, s as DEFAULT_KEEP_RECENT_TOKENS, f as DeepSeekProvider, S as DemoProvider, i as EDITOR_REFINEMENT_TOOLS, E as EditorRefinementToolExecutor, n as GoogleProvider, d as KEY_PLACEHOLDERS, c as LLMProvider, u as OpenAIProvider, e as OpenRouterProvider, r as PROVIDERS, a as PROVIDER_LABELS, b as RETURN_TO_USER_TOOL, C as buildChatAgentSystemPrompt, O as buildCustomTrilogyPrompt, p as buildEditorRefinementPrompt, T as compactChat, o as compactHistory, M as createChatNamePrompt, k as createDashboardPrompt, A as createFilterPrompt, _ as createPrompt, x as estimateHistoryTokens, g as estimateMessageTokens, w as estimateTextTokens, j as extractChatName, h as maybeCompactChat, y as providerAdapter, D as runToolLoop, m as shouldCompact };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { At as e, Dt as t, Et as n, Ot as r, Rt as i, Tt as a, kt as o, z as s } from "./llm-Bc1CfjOE.js";
|
|
2
|
+
import { Z as c, et as l, gt as u } from "./editorStore-Czhpct1j.js";
|
|
3
|
+
import { _ as d } from "./stores-DgdADCiH.js";
|
|
4
4
|
import { c as f, f as p, l as m, n as h, o as g, u as _ } from "./connections-CWH3zwH2.js";
|
|
5
5
|
import { reactive as v } from "vue";
|
|
6
6
|
//#region data/idbKv.ts
|
|
@@ -83,7 +83,7 @@ var M = [
|
|
|
83
83
|
"dashboards",
|
|
84
84
|
"chats",
|
|
85
85
|
"projects"
|
|
86
|
-
], N = class extends
|
|
86
|
+
], N = class extends c {
|
|
87
87
|
editorStorageKey;
|
|
88
88
|
connectionStorageKey;
|
|
89
89
|
llmConnectionStorageKey;
|
|
@@ -121,7 +121,7 @@ var M = [
|
|
|
121
121
|
}
|
|
122
122
|
async loadEditors() {
|
|
123
123
|
let e = await this.readIdb(this.editorStorageKey);
|
|
124
|
-
return (e ? JSON.parse(e) : []).reduce((e, t) => (e[t.id] = v(
|
|
124
|
+
return (e ? JSON.parse(e) : []).reduce((e, t) => (e[t.id] = v(l.fromJSON(t)), e[t.id].storage = "local", e), {});
|
|
125
125
|
}
|
|
126
126
|
async deleteEditor(e) {
|
|
127
127
|
let t = await this.loadEditors();
|
|
@@ -172,7 +172,7 @@ var M = [
|
|
|
172
172
|
async loadModelConfig() {
|
|
173
173
|
let e = await this.readIdb(this.modelStorageKey), t = e ? JSON.parse(e) : [], n = {};
|
|
174
174
|
return t.forEach((e) => {
|
|
175
|
-
n[e.name] = v(
|
|
175
|
+
n[e.name] = v(u.fromJSON(e));
|
|
176
176
|
}), n;
|
|
177
177
|
}
|
|
178
178
|
async saveModelConfig(e) {
|
|
@@ -198,29 +198,29 @@ var M = [
|
|
|
198
198
|
}), localStorage.setItem(this.llmConnectionStorageKey, JSON.stringify(Object.values(t).map((e) => e.toJSON())));
|
|
199
199
|
}
|
|
200
200
|
async loadLLMConnections() {
|
|
201
|
-
let
|
|
202
|
-
for (let
|
|
201
|
+
let i = localStorage.getItem(this.llmConnectionStorageKey), s = i ? JSON.parse(i) : [], c = {};
|
|
202
|
+
for (let i of s) switch (i.type) {
|
|
203
203
|
case "openai":
|
|
204
|
-
|
|
204
|
+
c[i.name] = v(await r.fromJSON(i));
|
|
205
205
|
break;
|
|
206
206
|
case "anthropic":
|
|
207
|
-
|
|
207
|
+
c[i.name] = v(await t.fromJSON(i));
|
|
208
208
|
break;
|
|
209
209
|
case "google":
|
|
210
|
-
|
|
210
|
+
c[i.name] = v(await n.fromJSON(i));
|
|
211
211
|
break;
|
|
212
212
|
case "openrouter":
|
|
213
|
-
|
|
213
|
+
c[i.name] = v(await e.fromJSON(i));
|
|
214
214
|
break;
|
|
215
215
|
case "deepseek":
|
|
216
|
-
|
|
216
|
+
c[i.name] = v(await a.fromJSON(i));
|
|
217
217
|
break;
|
|
218
218
|
case "demo":
|
|
219
|
-
|
|
219
|
+
c[i.name] = v(await o.fromJSON(i));
|
|
220
220
|
break;
|
|
221
|
-
default: console.warn(`Unknown LLM connection type: ${
|
|
221
|
+
default: console.warn(`Unknown LLM connection type: ${i.type}`);
|
|
222
222
|
}
|
|
223
|
-
return
|
|
223
|
+
return c;
|
|
224
224
|
}
|
|
225
225
|
async deleteLLMConnection(e) {
|
|
226
226
|
let t = await this.loadLLMConnections();
|
|
@@ -241,7 +241,7 @@ var M = [
|
|
|
241
241
|
}
|
|
242
242
|
async loadDashboards() {
|
|
243
243
|
let e = await this.readIdb(this.dashboardStorageKey);
|
|
244
|
-
return (e ? JSON.parse(e) : []).reduce((e, t) => (
|
|
244
|
+
return (e ? JSON.parse(e) : []).reduce((e, t) => (i && typeof i.fromSerialized == "function" ? e[t.id] = v(i.fromSerialized(t)) : e[t.id] = v(t), e[t.id].storage = "local", e), {});
|
|
245
245
|
}
|
|
246
246
|
async deleteDashboard(e) {
|
|
247
247
|
let t = await this.loadDashboards();
|
|
@@ -262,7 +262,7 @@ var M = [
|
|
|
262
262
|
async loadChats() {
|
|
263
263
|
let e = await this.readIdb(this.chatStorageKey);
|
|
264
264
|
return (e ? JSON.parse(e) : []).reduce((e, t) => {
|
|
265
|
-
let n =
|
|
265
|
+
let n = s.fromSerialized(t);
|
|
266
266
|
return e[n.id] = v(n), e[n.id].storage = "local", e;
|
|
267
267
|
}, {});
|
|
268
268
|
}
|
|
@@ -285,7 +285,7 @@ var M = [
|
|
|
285
285
|
async loadProjects() {
|
|
286
286
|
let e = await this.readIdb(this.projectStorageKey);
|
|
287
287
|
return (e ? JSON.parse(e) : []).reduce((e, t) => {
|
|
288
|
-
let n =
|
|
288
|
+
let n = d.fromSerialized(t);
|
|
289
289
|
return e[n.id] = v(n), e[n.id].storage = "local", e;
|
|
290
290
|
}, {});
|
|
291
291
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as e, l as t, p as n, s as r, u as i } from "./workers-
|
|
1
|
+
import { d as e, l as t, p as n, s as r, u as i } from "./workers-CHvkad0r.js";
|
|
2
2
|
//#region node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-languageserver-types/lib/esm/main.js
|
|
3
3
|
var a;
|
|
4
4
|
(function(e) {
|
package/dist/monaco.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "./editorStore-
|
|
1
|
+
import { t as e } from "./editorStore-Czhpct1j.js";
|
|
2
2
|
import { a as t, c as n, i as r, l as i, o as a, r as o, s } from "./vocabulary-DQK5jB7m.js";
|
|
3
|
-
import { l as c, p as l } from "./workers-
|
|
4
|
-
import "./editor.main-
|
|
3
|
+
import { l as c, p as l } from "./workers-CHvkad0r.js";
|
|
4
|
+
import "./editor.main-TuTbSVcN.js";
|
|
5
5
|
//#region language/constants.ts
|
|
6
6
|
var u = {
|
|
7
7
|
string: "Text value",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { et as e } from "./editorStore-
|
|
1
|
+
import { et as e } from "./editorStore-Czhpct1j.js";
|
|
2
2
|
import { reactive as t } from "vue";
|
|
3
3
|
//#region editors/reconcile.ts
|
|
4
4
|
var n = (e, t, n) => Object.values(e).filter((e) => e.storage === "remote" && e.remoteStoreId === t && e.remotePath === n), r = (r, i) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
2
|
-
import { p as t } from "./useGlobalChatPanel-
|
|
3
|
-
import { n } from "./reconcile-
|
|
2
|
+
import { p as t } from "./useGlobalChatPanel-Doeilj18.js";
|
|
3
|
+
import { n } from "./reconcile-DtPcgEjQ.js";
|
|
4
4
|
import { createBlock as r, createElementVNode as i, defineComponent as a, openBlock as o, toDisplayString as s, withCtx as c } from "vue";
|
|
5
5
|
//#region components/ConfirmDialog.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var l = { class: "confirm-message" }, u = ["data-testid"], d = ["data-testid", "disabled"], f = /*#__PURE__*/ e(/* @__PURE__ */ a({
|