@trilogy-data/trilogy-studio-components 0.1.28 → 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-C_7Ms9xe.js → AssetAutoImporter-CCbTLQ9v.js} +5 -5
- package/dist/{ChatCreatorModal-Cd40SvdM.js → ChatCreatorModal-C0OHgrEB.js} +1 -1
- package/dist/{CodeBlock-Dj-GfTbW.js → CodeBlock-CS86Ipg1.js} +1 -1
- package/dist/{CommunityModels-lX2RhHCG.js → CommunityModels-BxJKe8_v.js} +4 -4
- package/dist/{ConnectionView-CZ06qjjE.js → ConnectionView-D-1gQNQ7.js} +4 -4
- package/dist/{CreateEditorFromDatasourcePopup-DwA938kf.js → CreateEditorFromDatasourcePopup-RkNgUdzU.js} +2 -2
- package/dist/{Dashboard-CQsIqWZC.js → Dashboard-DWJPKIeQ.js} +5 -5
- package/dist/{DashboardImportSelector-CkqH52FX.js → DashboardImportSelector-t6tKq5N4.js} +1 -1
- package/dist/{DashboardMobile-DWFlel5p.js → DashboardMobile-CxObMuv6.js} +4 -4
- package/dist/{Editor-DQ66Vp6v.js → Editor-DD1inQuU.js} +6 -6
- package/dist/{GlobalChatPanel-B_s3COHE.js → GlobalChatPanel-BArWsM8Y.js} +20 -20
- package/dist/{IDE-4-Jg6gsM.js → IDE-D5GKLVYn.js} +6 -6
- package/dist/{JobsView-B5NWDUgP.js → JobsView-By7OZgj_.js} +5 -5
- package/dist/{LLMChat-eKgEc-I3.js → LLMChat-B-q_7sa4.js} +2 -2
- package/dist/{LLMView-CdTwMLVV.js → LLMView-8BKf70Ay.js} +9 -9
- package/dist/{LoadingView-Bu3wLJ7J.js → LoadingView-Da0HfQ56.js} +1 -1
- package/dist/{MarkdownRenderer-B6lqdkgc.js → MarkdownRenderer-CQppLv_n.js} +1 -1
- package/dist/{MobileIDE-CZlg20oa.js → MobileIDE-C81gvbco.js} +12 -12
- package/dist/{ModelCard-Bs_d7Jis.js → ModelCard-BMDgFDyQ.js} +4 -4
- package/dist/{ModelView-BP5yyecx.js → ModelView-C4B8qJwX.js} +4 -4
- package/dist/{PageLoading-DKFeqkmK.js → PageLoading-CRl9HNIg.js} +75 -75
- package/dist/{ResultComponent-BaDheojB.js → ResultComponent-C-A8sbr1.js} +4 -4
- package/dist/{Results-CrpHB101.js → Results-C1nNHU7C.js} +11 -11
- package/dist/{StatusIcon-Clfyy-Yn.js → StatusIcon-v2EhaU49.js} +1 -1
- package/dist/{StoreTokenModal-CO5hXMs3.js → StoreTokenModal-BV_gLE94.js} +1 -1
- package/dist/{SymbolsPane-XFVErDFb.js → SymbolsPane-CuVCamJf.js} +1 -1
- package/dist/{TutorialPage-CMcTYDOV.js → TutorialPage-DGQGx3vF.js} +11 -11
- package/dist/{VegaLiteChart-DX_LbF3g.js → VegaLiteChart-BIeSuNU8.js} +11413 -11363
- package/dist/{WelcomePage-B6E35FUa.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/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-CiWH_nGN.js → editorStore-k4IbmW9-.js} +1094 -1094
- package/dist/{globalChatRuntime-DAERmOdu.js → globalChatRuntime-BWahbZxZ.js} +14 -14
- package/dist/{helpers-C2pARJoZ.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-Wf4Etiu9.js → llm--BDQ6qkZ.js} +108 -74
- package/dist/llm.js +2 -2
- package/dist/{localStorage-C3xms-ab.js → localStorage-BYwXjN4M.js} +16 -16
- package/dist/monaco.js +1 -1
- package/dist/{reconcile-BH_ReGDR.js → reconcile-D-vMtlgJ.js} +1 -1
- package/dist/{remoteStoreSync-B0K8QScO.js → remoteStoreSync-PLFQCOmY.js} +2 -2
- package/dist/{stores-DTGQZ4_B.js → stores-S6dQ5cjI.js} +29 -29
- package/dist/stores.js +3 -3
- package/dist/trilogy-studio-components.css +1 -1
- package/dist/{useChatWithTools-BSrzJtYI.js → useChatWithTools-Bkd9MeMh.js} +10 -10
- package/dist/{useDashboard-CGeIdDuX.js → useDashboard-50rwbG0x.js} +889 -889
- package/dist/{useGlobalChatPanel-D9kMZLeF.js → useGlobalChatPanel-JJZaHao8.js} +3 -3
- package/dist/views.js +11 -11
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { W as e, et as t, lt as n } from "./llm--BDQ6qkZ.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
|
}
|
|
@@ -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, n) => {
|
|
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 t(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,7 +140,7 @@ 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
|
}, n)).text };
|
|
146
146
|
} catch (e) {
|