@trilogy-data/trilogy-studio-components 0.1.27 → 0.1.29
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/dist/{AssetAutoImporter-OHphsfW9.js → AssetAutoImporter-CCbTLQ9v.js} +5 -5
- package/dist/{ChatCreatorModal-CuXha6Dg.js → ChatCreatorModal-C0OHgrEB.js} +1 -1
- package/dist/{CodeBlock-BBsaC6hX.js → CodeBlock-CS86Ipg1.js} +1 -1
- package/dist/{CommunityModels-CIQQhO-y.js → CommunityModels-BxJKe8_v.js} +4 -4
- package/dist/{ConnectionView-7Jj_Ggdi.js → ConnectionView-D-1gQNQ7.js} +4 -4
- package/dist/{CreateEditorFromDatasourcePopup-CrVHUWFl.js → CreateEditorFromDatasourcePopup-RkNgUdzU.js} +2 -2
- package/dist/{Dashboard-DxSi9W6Q.js → Dashboard-DWJPKIeQ.js} +5 -5
- package/dist/{DashboardImportSelector-kuDRDYi8.js → DashboardImportSelector-t6tKq5N4.js} +1 -1
- package/dist/{DashboardMobile-CZEgTb0R.js → DashboardMobile-CxObMuv6.js} +4 -4
- package/dist/{Editor-D6tdutTm.js → Editor-DD1inQuU.js} +6 -6
- package/dist/{GlobalChatPanel-BXZh0sdD.js → GlobalChatPanel-BArWsM8Y.js} +20 -20
- package/dist/{IDE-T8PmyAQ_.js → IDE-D5GKLVYn.js} +6 -6
- package/dist/{JobsView-Ca97MiSd.js → JobsView-By7OZgj_.js} +5 -5
- package/dist/{LLMChat-Cch33Yd_.js → LLMChat-B-q_7sa4.js} +2 -2
- package/dist/{LLMView-BDb6wD74.js → LLMView-8BKf70Ay.js} +9 -9
- package/dist/{LoadingView-B-xFwd2N.js → LoadingView-Da0HfQ56.js} +1 -1
- package/dist/{MarkdownRenderer-BWvdx0k3.js → MarkdownRenderer-CQppLv_n.js} +1 -1
- package/dist/{MobileIDE-DpdEQEqc.js → MobileIDE-C81gvbco.js} +12 -12
- package/dist/{ModelCard-DkAMP4X9.js → ModelCard-BMDgFDyQ.js} +4 -4
- package/dist/{ModelView-DomyhN8g.js → ModelView-C4B8qJwX.js} +4 -4
- package/dist/{PageLoading-BAvKGo9h.js → PageLoading-CRl9HNIg.js} +75 -75
- package/dist/{ResultComponent-zoOSoRLe.js → ResultComponent-C-A8sbr1.js} +4 -4
- package/dist/{Results-dq-SlJbU.js → Results-C1nNHU7C.js} +11 -11
- package/dist/{StatusIcon-AbxNvJ6p.js → StatusIcon-v2EhaU49.js} +1 -1
- package/dist/{StoreTokenModal-CM8WXdu1.js → StoreTokenModal-BV_gLE94.js} +1 -1
- package/dist/{SymbolsPane-DfaxeaPS.js → SymbolsPane-CuVCamJf.js} +1 -1
- package/dist/{TutorialPage-BtEJG7cT.js → TutorialPage-DGQGx3vF.js} +11 -11
- package/dist/{VegaLiteChart-BVyAab-o.js → VegaLiteChart-BIeSuNU8.js} +11413 -11363
- package/dist/{WelcomePage-BoqzYBLr.js → WelcomePage-T757Ynnn.js} +3 -3
- 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/dashboard.js +19 -19
- package/dist/dashboards/chartTheme.d.ts +68 -0
- package/dist/dashboards/chartTheme.d.ts.map +1 -0
- package/dist/dashboards/dashboardQueryExecutor.d.ts +9 -0
- package/dist/dashboards/dashboardQueryExecutor.d.ts.map +1 -1
- 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/{editorStore-CAlMJftt.js → editorStore-k4IbmW9-.js} +1094 -1094
- package/dist/{globalChatRuntime-CyS7vH51.js → globalChatRuntime-BWahbZxZ.js} +14 -14
- package/dist/{helpers-BbVlA3Pf.js → helpers-DDKx6kkf.js} +4 -4
- 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-ClU-2rgk.js → llm--BDQ6qkZ.js} +111 -77
- package/dist/llm.js +2 -2
- package/dist/{localStorage-CGQ1iJXt.js → localStorage-BYwXjN4M.js} +16 -16
- package/dist/monaco.js +2 -2
- package/dist/{reconcile-DXIvGwBk.js → reconcile-D-vMtlgJ.js} +1 -1
- package/dist/{remoteStoreSync-CuQBWpWf.js → remoteStoreSync-PLFQCOmY.js} +2 -2
- package/dist/{stores-LlyiwSbK.js → stores-S6dQ5cjI.js} +40 -32
- package/dist/stores.js +3 -3
- package/dist/trilogy-studio-components.css +1 -1
- package/dist/{useChatWithTools-m3Jn_SV-.js → useChatWithTools-Bkd9MeMh.js} +10 -10
- package/dist/{useDashboard-BOAuvVEw.js → useDashboard-50rwbG0x.js} +889 -889
- package/dist/{useGlobalChatPanel-DuP1q7_f.js → useGlobalChatPanel-JJZaHao8.js} +4 -4
- package/dist/views.js +11 -11
- package/dist/{vocabulary-CKLGILtR.js → vocabulary-DQK5jB7m.js} +3 -1
- package/package.json +1 -1
package/dist/llm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dt as e, Et as t, Ft as n, H as r, J as i, K as a, Mt as o, Nt as s, Ot as c, Pt as l, Tt as u, U as d, X as f, Y as p, _t as m, at as h, ct as g, et as _, it as v, jt as y, kt as b, lt as x, q as S, rt as C, st as w, t as T, ut as E, vt as D, wt as O, yt as k } from "./llm--BDQ6qkZ.js";
|
|
2
2
|
import { n as A, t as j } from "./chatHelpers-F_woEbYF.js";
|
|
3
|
-
export {
|
|
3
|
+
export { t as AnthropicProvider, w as CHAT_TOOLS, o as DEFAULT_COMPACTION_THRESHOLD_TOKENS, a as DEFAULT_KEEP_RECENT_TOKENS, O as DeepSeekProvider, c as DemoProvider, r as EDITOR_REFINEMENT_TOOLS, T as EditorRefinementToolExecutor, u as GoogleProvider, s as KEY_PLACEHOLDERS, y as LLMProvider, e as OpenAIProvider, b as OpenRouterProvider, l as PROVIDERS, n as PROVIDER_LABELS, g as RETURN_TO_USER_TOOL, x as buildChatAgentSystemPrompt, E as buildCustomTrilogyPrompt, d as buildEditorRefinementPrompt, S as compactChat, i as compactHistory, j as createChatNamePrompt, m as createDashboardPrompt, D as createFilterPrompt, k as createPrompt, C as estimateHistoryTokens, v as estimateMessageTokens, h as estimateTextTokens, A as extractChatName, p as maybeCompactChat, _ as runToolLoop, f as shouldCompact };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as l } from "./stores-
|
|
3
|
-
import { Z as u, et as d } from "./editorStore-
|
|
1
|
+
import { Dt as e, Et as t, Lt as n, Ot as r, Tt as i, gn as a, kt as o, wt as s, z as c } from "./llm--BDQ6qkZ.js";
|
|
2
|
+
import { _ as l } from "./stores-S6dQ5cjI.js";
|
|
3
|
+
import { Z as u, et as d } from "./editorStore-k4IbmW9-.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
|
|
@@ -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(a.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 n = localStorage.getItem(this.llmConnectionStorageKey), a = n ? JSON.parse(n) : [], c = {};
|
|
202
|
+
for (let n of a) switch (n.type) {
|
|
203
203
|
case "openai":
|
|
204
|
-
|
|
204
|
+
c[n.name] = v(await e.fromJSON(n));
|
|
205
205
|
break;
|
|
206
206
|
case "anthropic":
|
|
207
|
-
|
|
207
|
+
c[n.name] = v(await t.fromJSON(n));
|
|
208
208
|
break;
|
|
209
209
|
case "google":
|
|
210
|
-
|
|
210
|
+
c[n.name] = v(await i.fromJSON(n));
|
|
211
211
|
break;
|
|
212
212
|
case "openrouter":
|
|
213
|
-
|
|
213
|
+
c[n.name] = v(await o.fromJSON(n));
|
|
214
214
|
break;
|
|
215
215
|
case "deepseek":
|
|
216
|
-
|
|
216
|
+
c[n.name] = v(await s.fromJSON(n));
|
|
217
217
|
break;
|
|
218
218
|
case "demo":
|
|
219
|
-
|
|
219
|
+
c[n.name] = v(await r.fromJSON(n));
|
|
220
220
|
break;
|
|
221
|
-
default: console.warn(`Unknown LLM connection type: ${
|
|
221
|
+
default: console.warn(`Unknown LLM connection type: ${n.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) => (n && typeof n.fromSerialized == "function" ? e[t.id] = v(n.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 = c.fromSerialized(t);
|
|
266
266
|
return e[n.id] = v(n), e[n.id].storage = "local", e;
|
|
267
267
|
}, {});
|
|
268
268
|
}
|
package/dist/monaco.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./editorStore-
|
|
2
|
-
import { a as t, c as n, i as r, l as i, o as a, r as o, s } from "./vocabulary-
|
|
1
|
+
import { t as e } from "./editorStore-k4IbmW9-.js";
|
|
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
3
|
import { l as c, p as l } from "./workers-B9Eybl-M.js";
|
|
4
4
|
import "./editor.main-BQh6DxDB.js";
|
|
5
5
|
//#region language/constants.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { et as e } from "./editorStore-
|
|
1
|
+
import { et as e } from "./editorStore-k4IbmW9-.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-JJZaHao8.js";
|
|
3
|
+
import { n } from "./reconcile-D-vMtlgJ.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({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e, u as t } from "./base-DuKnVD-A.js";
|
|
2
|
-
import {
|
|
3
|
-
import { C as _, F as v, H as y, I as b, L as x, N as S, P as C, R as ee, S as te, i as ne, it as w, q as re, s as ie, t as ae, z as T } from "./editorStore-
|
|
2
|
+
import { At as n, Dt as r, Et as i, It as a, Kt as o, Lt as s, Ot as c, Tt as l, _t as u, kt as d, pn as f, vt as p, wt as m, xt as h, yt as g } from "./llm--BDQ6qkZ.js";
|
|
3
|
+
import { C as _, F as v, H as y, I as b, L as x, N as S, P as C, R as ee, S as te, i as ne, it as w, q as re, s as ie, t as ae, z as T } from "./editorStore-k4IbmW9-.js";
|
|
4
4
|
import { t as oe } from "./connections-CWH3zwH2.js";
|
|
5
5
|
import { n as se, t as E } from "./chatHelpers-F_woEbYF.js";
|
|
6
6
|
import { computed as D, ref as O } from "vue";
|
|
@@ -267,30 +267,30 @@ var A = class e {
|
|
|
267
267
|
let t = e;
|
|
268
268
|
return t.error ? "failed" : t.running ? "running" : t.connected ? "connected" : "disabled";
|
|
269
269
|
},
|
|
270
|
-
async newConnection(e, t,
|
|
270
|
+
async newConnection(e, t, n) {
|
|
271
271
|
if (this.connections[e]) throw Error(`LLM connection with name "${e}" already exists.`);
|
|
272
|
-
let
|
|
273
|
-
if (t === "demo")
|
|
274
|
-
else if (t === "anthropic")
|
|
275
|
-
else if (t === "openai")
|
|
276
|
-
else if (t === "google")
|
|
277
|
-
else if (t === "openrouter")
|
|
278
|
-
httpReferer:
|
|
279
|
-
appTitle:
|
|
272
|
+
let a;
|
|
273
|
+
if (t === "demo") a = new c(e, n.model);
|
|
274
|
+
else if (t === "anthropic") a = new i(e, n.apiKey, n.model, n.saveCredential);
|
|
275
|
+
else if (t === "openai") a = new r(e, n.apiKey, n.model, n.saveCredential);
|
|
276
|
+
else if (t === "google") a = new l(e, n.apiKey, n.model, n.saveCredential);
|
|
277
|
+
else if (t === "openrouter") a = new d(e, n.apiKey, n.model, n.saveCredential, void 0, {
|
|
278
|
+
httpReferer: n.httpReferer,
|
|
279
|
+
appTitle: n.appTitle
|
|
280
280
|
});
|
|
281
|
-
else if (t === "deepseek")
|
|
281
|
+
else if (t === "deepseek") a = new m(e, n.apiKey, n.model, n.saveCredential);
|
|
282
282
|
else throw Error(`LLM provider type "${t}" not found.`);
|
|
283
|
-
return this.addConnection(
|
|
283
|
+
return this.addConnection(a), this.resetConnectionInBackground(e), a;
|
|
284
284
|
},
|
|
285
285
|
async fetchModelsForProvider(e, t) {
|
|
286
|
-
let
|
|
287
|
-
if (e === "anthropic")
|
|
288
|
-
else if (e === "openai")
|
|
289
|
-
else if (e === "google")
|
|
290
|
-
else if (e === "openrouter")
|
|
291
|
-
else if (e === "deepseek")
|
|
286
|
+
let n, a = `__temp_${e}_${Date.now()}`;
|
|
287
|
+
if (e === "anthropic") n = new i(a, t, "", !1);
|
|
288
|
+
else if (e === "openai") n = new r(a, t, "", !1);
|
|
289
|
+
else if (e === "google") n = new l(a, t, "", !1);
|
|
290
|
+
else if (e === "openrouter") n = new d(a, t, "", !1);
|
|
291
|
+
else if (e === "deepseek") n = new m(a, t, "", !1);
|
|
292
292
|
else throw Error(`LLM provider type "${e}" not found.`);
|
|
293
|
-
return await
|
|
293
|
+
return await n.reset(), n.models;
|
|
294
294
|
},
|
|
295
295
|
async generateValidatedCompletion(e, t = null, n = 3, r = null, i = null, a = !0) {
|
|
296
296
|
let o = r || this.activeConnection || "", s = i || [];
|
|
@@ -331,11 +331,11 @@ var A = class e {
|
|
|
331
331
|
};
|
|
332
332
|
},
|
|
333
333
|
async generateDashboardCompletion(e, t = null, n = [], r = 3) {
|
|
334
|
-
let i =
|
|
334
|
+
let i = u(e, n);
|
|
335
335
|
return this.generateValidatedCompletion(i, t, r).then((e) => e.content);
|
|
336
336
|
},
|
|
337
337
|
async generateQueryCompletion(e, t, n = null, r = 3, i = null) {
|
|
338
|
-
let a =
|
|
338
|
+
let a = g(e, t);
|
|
339
339
|
return this.generateValidatedCompletion(a, n, r, i);
|
|
340
340
|
},
|
|
341
341
|
async generateSQLQueryCompletion(e) {
|
|
@@ -348,7 +348,7 @@ var A = class e {
|
|
|
348
348
|
}));
|
|
349
349
|
},
|
|
350
350
|
async generateFilterQuery(e, t, n = null, r = 3) {
|
|
351
|
-
let i =
|
|
351
|
+
let i = p(e, t);
|
|
352
352
|
return this.generateValidatedCompletion(i, n, r).then((e) => e.content);
|
|
353
353
|
},
|
|
354
354
|
async generateChatName(e, t) {
|
|
@@ -569,9 +569,17 @@ var M = class {
|
|
|
569
569
|
}
|
|
570
570
|
processBatch() {
|
|
571
571
|
if (this.queryQueue.size === 0) return;
|
|
572
|
-
let e = Array.from(this.queryQueue.values()).sort((e, t) => e.priority === t.priority ? e.timestamp - t.timestamp : e.priority - t.priority), t = this.maxConcurrentQueries - this.activeQueries.size
|
|
572
|
+
let e = Array.from(this.queryQueue.values()).sort((e, t) => e.priority === t.priority ? e.timestamp - t.timestamp : e.priority - t.priority), t = this.maxConcurrentQueries - this.activeQueries.size;
|
|
573
|
+
if (t <= 0) return;
|
|
574
|
+
let n = e.slice(0, t);
|
|
573
575
|
this.executeBatchQueries(n);
|
|
574
576
|
}
|
|
577
|
+
refillTimeout = null;
|
|
578
|
+
refillFreedSlot() {
|
|
579
|
+
this.queryQueue.size === 0 || this.refillTimeout || (this.refillTimeout = setTimeout(() => {
|
|
580
|
+
this.refillTimeout = null, this.processBatch();
|
|
581
|
+
}, this.batchDelay));
|
|
582
|
+
}
|
|
575
583
|
async executeBatchQueries(e) {
|
|
576
584
|
if (e.length !== 0) try {
|
|
577
585
|
let t = this.getDashboardImports(), n = [], r = [];
|
|
@@ -588,10 +596,10 @@ var M = class {
|
|
|
588
596
|
let i = Object.fromEntries(n.map((e) => [e.label, (t) => {
|
|
589
597
|
r.find((t) => t.id === e.label)?.onSuccess(t);
|
|
590
598
|
let n = this.queryWaiters.get(e.label);
|
|
591
|
-
n && (n.resolve(t), this.queryWaiters.delete(e.label)), this.activeQueries.delete(e.label), this.settleQueryLoading(e.label), this.cleanupQueryTracking(e.label);
|
|
599
|
+
n && (n.resolve(t), this.queryWaiters.delete(e.label)), this.activeQueries.delete(e.label), this.settleQueryLoading(e.label), this.cleanupQueryTracking(e.label), this.refillFreedSlot();
|
|
592
600
|
}])), a = Object.fromEntries(n.map((e) => [e.label, (t) => {
|
|
593
601
|
let n = me(t), i = r.find((t) => t.id === e.label);
|
|
594
|
-
i && this.handleQueryError(i, n), this.activeQueries.delete(e.label), this.settleQueryLoading(e.label), this.cleanupQueryTracking(e.label);
|
|
602
|
+
i && this.handleQueryError(i, n), this.activeQueries.delete(e.label), this.settleQueryLoading(e.label), this.cleanupQueryTracking(e.label), this.refillFreedSlot();
|
|
595
603
|
}])), { resultPromise: o } = await this.queryExecutionService.executeQueriesBatch(this.connectionName, n, "trilogy", t, [], {}, () => {}, () => {}, a, i, !1, r[0]?.queryInput.extraContent || []), s = await o;
|
|
596
604
|
console.log(`Batch query executed successfully with ${s.results.length} results`);
|
|
597
605
|
} catch (t) {
|
|
@@ -978,15 +986,15 @@ var F = k("dashboards", {
|
|
|
978
986
|
}
|
|
979
987
|
throw Error(`Dashboard with ID "${e}" not found.`);
|
|
980
988
|
},
|
|
981
|
-
async populateAIConcepts(e, t,
|
|
982
|
-
let
|
|
983
|
-
if (!
|
|
984
|
-
return
|
|
989
|
+
async populateAIConcepts(e, t, r) {
|
|
990
|
+
let i = await this.populateCompletion(e, t, r);
|
|
991
|
+
if (!i) throw Error(`No completion items found for dashboard ID "${e}".`);
|
|
992
|
+
return n(i);
|
|
985
993
|
},
|
|
986
994
|
async generatePromptSpec(e, t, n, r) {
|
|
987
|
-
let i = await this.populateAIConcepts(this.activeDashboardId, n, r), a = await t.generateDashboardCompletion(e,
|
|
995
|
+
let i = await this.populateAIConcepts(this.activeDashboardId, n, r), a = await t.generateDashboardCompletion(e, h, i, 3);
|
|
988
996
|
if (!a) throw Error("No response from LLM");
|
|
989
|
-
return
|
|
997
|
+
return h(a);
|
|
990
998
|
},
|
|
991
999
|
async populateFromPromptSpec(e, t, n, r, i) {
|
|
992
1000
|
let o = this.dashboards[e];
|
package/dist/stores.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as n, d as r, g as i, i as a, n as o, p as s, t as c, u as l } from "./stores-
|
|
3
|
-
import { C as u, Q as d, S as f, i as p, t as m } from "./editorStore-
|
|
1
|
+
import { fn as e, pn as t } from "./llm--BDQ6qkZ.js";
|
|
2
|
+
import { a as n, d as r, g as i, i as a, n as o, p as s, t as c, u as l } from "./stores-S6dQ5cjI.js";
|
|
3
|
+
import { C as u, Q as d, S as f, i as p, t as m } from "./editorStore-k4IbmW9-.js";
|
|
4
4
|
export { c as ConnectionStoreExecutionConnectionProvider, o as QueryExecutionService, e as TrilogyResolver, p as useChatStore, u as useCommunityApiStore, f as useConnectionStore, s as useDashboardStore, m as useEditorStore, r as useJobsApiStore, i as useLLMConnectionStore, a as useMobileSidebarNavigation, d as useModelConfigStore, l as useProjectStore, n as useScreenNavigation, t as useUserSettingsStore };
|