@trilogy-data/trilogy-studio-components 0.1.26 → 0.1.27
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 +403 -0
- package/dist/{ChatCreatorModal-CL-jBnc3.js → ChatCreatorModal-CuXha6Dg.js} +3 -3
- package/dist/{ChatModelSelect-Do-VRUFc.js → ChatModelSelect-Cz7axWjP.js} +1 -1
- package/dist/{CodeBlock-PT4no49I.js → CodeBlock-BBsaC6hX.js} +4 -4
- package/dist/{CommunityModels-Cmro0hV3.js → CommunityModels-CIQQhO-y.js} +7 -7
- package/dist/{ConnectionErrorPopup-FSs7U-Yl.js → ConnectionErrorPopup-7vpqgF0s.js} +1 -1
- package/dist/{ConnectionView-COnTTuA4.js → ConnectionView-7Jj_Ggdi.js} +49 -49
- package/dist/{CreateEditorFromDatasourcePopup-snOh1d5h.js → CreateEditorFromDatasourcePopup-CrVHUWFl.js} +4 -4
- package/dist/{Dashboard-BH9ZwMVJ.js → Dashboard-DxSi9W6Q.js} +276 -280
- package/dist/{DashboardImportSelector-DQSvu9T-.js → DashboardImportSelector-kuDRDYi8.js} +2 -2
- package/dist/{DashboardMobile-BUPtdN2V.js → DashboardMobile-CZEgTb0R.js} +39 -39
- package/dist/{DrilldownPane-CBs5ZojS.js → DrilldownPane-BheRHJMs.js} +5 -7
- package/dist/{Editor-DQsYpkwl.js → Editor-D6tdutTm.js} +105 -103
- package/dist/{ErrorMessage-XMn_08gJ.js → ErrorMessage-D5JeF3Iz.js} +4 -4
- package/dist/{GlobalChatPanel-DhnOaige.js → GlobalChatPanel-BXZh0sdD.js} +20 -21
- package/dist/{IDE-HLa8vybk.js → IDE-T8PmyAQ_.js} +200 -203
- package/dist/{JobsView-B97HBoIE.js → JobsView-Ca97MiSd.js} +13 -14
- package/dist/{LLMChat-CxJcPLEG.js → LLMChat-Cch33Yd_.js} +3 -3
- package/dist/{LLMView-C1MUf0c2.js → LLMView-BDb6wD74.js} +23 -23
- package/dist/{LoadingView-s1uznGwG.js → LoadingView-B-xFwd2N.js} +2 -2
- package/dist/{MarkdownRenderer-BNDuEyG-.js → MarkdownRenderer-BWvdx0k3.js} +531 -430
- package/dist/{MobileIDE-BpqXoaMR.js → MobileIDE-DpdEQEqc.js} +179 -182
- package/dist/{ModelCard-BhN25jaV.js → ModelCard-DkAMP4X9.js} +12 -13
- package/dist/{ModelView-DUDA_PtZ.js → ModelView-DomyhN8g.js} +7 -7
- package/dist/PageLoading-BAvKGo9h.js +5937 -0
- package/dist/{ResultComponent-CAn_r3BL.js → ResultComponent-zoOSoRLe.js} +8 -8
- package/dist/{Results-BJtlwebY.js → Results-dq-SlJbU.js} +17 -19
- package/dist/{StatusIcon-BylPx2EO.js → StatusIcon-AbxNvJ6p.js} +2 -2
- package/dist/{StoreTokenModal-zCSYhfrw.js → StoreTokenModal-CM8WXdu1.js} +2 -2
- package/dist/{SymbolsPane-KYSwN9Sv.js → SymbolsPane-DfaxeaPS.js} +6 -3
- package/dist/{TrilogyEmbedProvider-WA_dlv9e.js → TrilogyEmbedProvider-D3h0gYnX.js} +9 -9
- package/dist/{TutorialPage-NRcee6Dx.js → TutorialPage-BtEJG7cT.js} +27 -28
- package/dist/{VegaLiteChart-D1slfOUY.js → VegaLiteChart-BVyAab-o.js} +12131 -10947
- package/dist/{WelcomePage-D5mU2x1L.js → WelcomePage-BoqzYBLr.js} +5 -5
- package/dist/{embedTheme-Bub46ILG.js → _plugin-vue_export-helper-f9Rw-Il4.js} +14 -6
- package/dist/assets/{css.worker-9aDGcEUy.js → css.worker-niORQtzO.js} +14 -14
- package/dist/assets/{html.worker-D2LKDpnG.js → html.worker-CO5LvJpF.js} +17 -17
- package/dist/assets/json.worker-BezHzWUV.js +58 -0
- package/dist/assets/{ts.worker-Bz0-EaKK.js → ts.worker-CYhxGg0r.js} +107 -107
- package/dist/{results-DTgAKr5j.js → base-DuKnVD-A.js} +216 -45
- package/dist/components/FeedbackBanner.vue.d.ts +4 -0
- package/dist/components/FeedbackBanner.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts +54 -0
- package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardProvenance.vue.d.ts +30 -0
- package/dist/components/dashboard/DashboardProvenance.vue.d.ts.map +1 -0
- package/dist/components/dashboard/ReportLayout.vue.d.ts +19 -0
- package/dist/components/dashboard/ReportLayout.vue.d.ts.map +1 -0
- package/dist/components/editor/Editor.vue.d.ts +3 -3
- package/dist/components/editor/EditorCreatorIcon.vue.d.ts +62 -0
- package/dist/components/editor/EditorCreatorIcon.vue.d.ts.map +1 -0
- package/dist/components/editor/ValidationComponent.vue.d.ts +50 -0
- package/dist/components/editor/ValidationComponent.vue.d.ts.map +1 -0
- package/dist/components/model/ModelCard.vue.d.ts +3 -3
- package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts +3 -3
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -1
- package/dist/{remoteWorker-Dkv3TJ0j.js → connections-CWH3zwH2.js} +4544 -4126
- package/dist/connections.js +3 -4
- package/dist/{cssMode-D4Rzr1Cu.js → cssMode-zpO2ap2B.js} +5 -6
- package/dist/dashboard.js +28 -31
- package/dist/{dist-CXoL8kXK.js → dist-1z5KURzS.js} +55 -50
- package/dist/{dist-DKkuvbPb.js → dist-Bv3D2p5A.js} +20 -18
- package/dist/{editor.main-Cl8i7rHY.js → editor.main-BQh6DxDB.js} +33 -33
- package/dist/{editorRefinementRuntime-DoP9P5J2.js → editorStore-CAlMJftt.js} +1692 -575
- package/dist/embed.js +2 -2
- package/dist/{freemarker2-fW5NBILf.js → freemarker2-DQBqlEXc.js} +1 -1
- package/dist/{globalChatRuntime-DWZxeS57.js → globalChatRuntime-CyS7vH51.js} +16 -16
- package/dist/{handlebars-dG4w8UUY.js → handlebars-tgYxaM70.js} +1 -1
- package/dist/{helpers-BLQAgX3C.js → helpers-BbVlA3Pf.js} +34 -35
- package/dist/{html-1Dq70BdU.js → html-jJahD3Mi.js} +1 -1
- package/dist/{htmlMode--IQmLBeh.js → htmlMode-BA1-8l2e.js} +5 -6
- package/dist/{javascript-CTzBM4sF.js → javascript-Cypfo7va.js} +1 -1
- package/dist/{jsonMode-DzeJjIEH.js → jsonMode-xJye8PWS.js} +25 -25
- package/dist/{liquid-DlHThiki.js → liquid-BGDrv5da.js} +1 -1
- package/dist/llm-ClU-2rgk.js +18493 -0
- package/dist/llm.js +2 -3
- package/dist/{localStorage-D9uyOFEO.js → localStorage-CGQ1iJXt.js} +40 -43
- package/dist/{lspLanguageFeatures-Cdfs3EKq.js → lspLanguageFeatures-V3e_p9oN.js} +32 -32
- package/dist/{mdx-fn3g4PH5.js → mdx-BUR1aImW.js} +1 -1
- package/dist/monaco.js +3 -3
- package/dist/{python-CCVj0pFt.js → python-YLkl0pc6.js} +1 -1
- package/dist/{razor-Cj3flYnk.js → razor-BP8TRMDY.js} +1 -1
- package/dist/{reconcile-Dyf4UZmj.js → reconcile-DXIvGwBk.js} +1 -1
- package/dist/{remoteStoreSync-Z-yjlYtI.js → remoteStoreSync-CuQBWpWf.js} +3 -3
- package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
- package/dist/static/test_import.vue.d.ts +4 -0
- package/dist/static/test_import.vue.d.ts.map +1 -0
- package/dist/stores-LlyiwSbK.js +2604 -0
- package/dist/stores.js +4 -7
- package/dist/trilogy-studio-components.css +1 -1
- package/dist/{tsMode-GI4xMYAl.js → tsMode-BH9HS_sH.js} +64 -66
- package/dist/{typescript-CPibXi3J.js → typescript-BM-ynfk9.js} +1 -1
- package/dist/{useChatWithTools-B0HZ_DVh.js → useChatWithTools-m3Jn_SV-.js} +11 -11
- package/dist/{useDashboard-CdSnPe_6.js → useDashboard-BOAuvVEw.js} +1014 -1022
- package/dist/{tabulator_esm-CxLvGDp8.js → useGlobalChatPanel-DuP1q7_f.js} +1729 -711
- package/dist/{useResizableDialog-B0ePSts4.js → useResizableDialog-Cs90WJdF.js} +2 -2
- package/dist/views/ModelView.vue.d.ts +6 -6
- package/dist/views/ModelView.vue.d.ts.map +1 -1
- package/dist/views/TutorialPage.vue.d.ts +9 -9
- package/dist/views/TutorialPage.vue.d.ts.map +1 -1
- package/dist/views.js +192 -194
- package/dist/{editor.api2-ClD5pp8H.js → workers-B9Eybl-M.js} +16252 -15926
- package/dist/{xml-BNyphceI.js → xml-M5WFPSpA.js} +1 -1
- package/dist/{yaml-DE5Vz0PH.js → yaml-CEeFwjz9.js} +1 -1
- package/package.json +29 -20
- package/dist/AssetAutoImporter-CBzvBaOt.js +0 -405
- package/dist/DashboardCreatorInline-CDU7kLy3.js +0 -129
- package/dist/DataTable-DoRDynP1.js +0 -365
- package/dist/EditorCreatorInline-D6_y1H_h.js +0 -125
- package/dist/LoadingButton-OH3frQuO.js +0 -138
- package/dist/ModalDialog-D1EOG4rl.js +0 -42
- package/dist/ModelCreator-CCdC7EXt.js +0 -253
- package/dist/PageLoading-BzniJM0C.js +0 -2669
- package/dist/Tooltip-Dihir4zs.js +0 -103
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/assets/json.worker-CJ5MmO5Q.js +0 -58
- package/dist/base-C8IuZWqY.js +0 -164
- package/dist/connectionHistoryStorage-DKJHiKJY.js +0 -111
- package/dist/connectionHistoryStore-DQeBvStZ.js +0 -61
- package/dist/connections-CJSb1TZl.js +0 -229
- package/dist/constants-DgFEYN2b.js +0 -7
- package/dist/dashboardStore-ppM6nGks.js +0 -641
- package/dist/demoSetup-mwa-RDC6.js +0 -2942
- package/dist/editorRefinementToolExecutor-CVY3FA7k.js +0 -4624
- package/dist/editorStore-BhhmXbi-.js +0 -1019
- package/dist/formatting-BbJ5ICgh.js +0 -6
- package/dist/llm-BBOVWb-F.js +0 -11967
- package/dist/llmStore-DJM2JhzY.js +0 -153
- package/dist/monaco.contribution-ikesdolO.js +0 -128
- package/dist/stores-BT9hTLny.js +0 -1708
- package/dist/trilogy-BroD2Qmp.js +0 -4
- package/dist/urlStore-52HG6lsX.js +0 -55
- package/dist/useGlobalChatPanel-D_0luajQ.js +0 -85
- package/dist/useIsMobile-CNpUQAvk.js +0 -8
- package/dist/usePrismHighlight-DVyDiDAL.js +0 -183
- package/dist/workers-Br7ThUKL.js +0 -47
package/dist/llm.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as C, c as w, i as T, n as E, o as D, r as O, t as k } from "./llm-BBOVWb-F.js";
|
|
1
|
+
import { $ as e, At as t, Ct as n, Dt as r, Et as i, G as a, H as o, J as s, K as c, Mt as l, Nt as u, Ot as d, Pt as f, Tt as p, V as m, Y as h, _t as g, ct as _, gt as v, it as y, jt as b, lt as x, nt as S, ot as C, q as w, rt as T, st as E, t as D, vt as O, wt as k } from "./llm-ClU-2rgk.js";
|
|
3
2
|
import { n as A, t as j } from "./chatHelpers-F_woEbYF.js";
|
|
4
|
-
export {
|
|
3
|
+
export { p as AnthropicProvider, C as CHAT_TOOLS, b as DEFAULT_COMPACTION_THRESHOLD_TOKENS, a as DEFAULT_KEEP_RECENT_TOKENS, n as DeepSeekProvider, r as DemoProvider, m as EDITOR_REFINEMENT_TOOLS, D as EditorRefinementToolExecutor, k as GoogleProvider, l as KEY_PLACEHOLDERS, t as LLMProvider, i as OpenAIProvider, d as OpenRouterProvider, u as PROVIDERS, f as PROVIDER_LABELS, E as RETURN_TO_USER_TOOL, _ as buildChatAgentSystemPrompt, x as buildCustomTrilogyPrompt, o as buildEditorRefinementPrompt, c as compactChat, w as compactHistory, j as createChatNamePrompt, v as createDashboardPrompt, g as createFilterPrompt, O as createPrompt, S as estimateHistoryTokens, T as estimateMessageTokens, y as estimateTextTokens, A as extractChatName, s as maybeCompactChat, e as runToolLoop, h as shouldCompact };
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as s, o as c, s as l, t as u } from "./remoteWorker-Dkv3TJ0j.js";
|
|
6
|
-
import { M as d } from "./editorStore-BhhmXbi-.js";
|
|
7
|
-
import { a as f, i as p, n as m, o as h, r as g, t as _ } from "./llm-BBOVWb-F.js";
|
|
1
|
+
import { Ct as e, Dt as t, Et as n, It as r, Ot as i, R as a, Tt as o, hn as s, wt as c } from "./llm-ClU-2rgk.js";
|
|
2
|
+
import { _ as l } from "./stores-LlyiwSbK.js";
|
|
3
|
+
import { Z as u, et as d } from "./editorStore-CAlMJftt.js";
|
|
4
|
+
import { c as f, f as p, l as m, n as h, o as g, u as _ } from "./connections-CWH3zwH2.js";
|
|
8
5
|
import { reactive as v } from "vue";
|
|
9
6
|
//#region data/idbKv.ts
|
|
10
7
|
var y = "trilogy-studio", b = "kv", x = 1, S = null, C = /* @__PURE__ */ new Map();
|
|
@@ -86,7 +83,7 @@ var M = [
|
|
|
86
83
|
"dashboards",
|
|
87
84
|
"chats",
|
|
88
85
|
"projects"
|
|
89
|
-
], N = class extends
|
|
86
|
+
], N = class extends u {
|
|
90
87
|
editorStorageKey;
|
|
91
88
|
connectionStorageKey;
|
|
92
89
|
llmConnectionStorageKey;
|
|
@@ -101,10 +98,12 @@ var M = [
|
|
|
101
98
|
super(), this.editorStorageKey = e + "editors", this.connectionStorageKey = e + "connections", this.llmConnectionStorageKey = e + "llmConnections", this.modelStorageKey = e + "modelConfig", this.userSettingsStorageKey = e + "userSettings", this.dashboardStorageKey = e + "dashboards", this.chatStorageKey = e + "chats", this.projectStorageKey = e + "projects", this.type = "local";
|
|
102
99
|
}
|
|
103
100
|
async readIdb(e) {
|
|
104
|
-
if (!this.migrated.has(e))
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
if (!this.migrated.has(e)) {
|
|
102
|
+
if (this.migrated.add(e), await D(e) === null) {
|
|
103
|
+
let t = localStorage.getItem(e);
|
|
104
|
+
if (t !== null) return await O(e, t), localStorage.removeItem(e), t;
|
|
105
|
+
} else localStorage.getItem(e) !== null && localStorage.removeItem(e);
|
|
106
|
+
}
|
|
108
107
|
return D(e);
|
|
109
108
|
}
|
|
110
109
|
async writeIdb(e, t) {
|
|
@@ -122,7 +121,7 @@ var M = [
|
|
|
122
121
|
}
|
|
123
122
|
async loadEditors() {
|
|
124
123
|
let e = await this.readIdb(this.editorStorageKey);
|
|
125
|
-
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(d.fromJSON(t)), e[t.id].storage = "local", e), {});
|
|
126
125
|
}
|
|
127
126
|
async deleteEditor(e) {
|
|
128
127
|
let t = await this.loadEditors();
|
|
@@ -145,25 +144,23 @@ var M = [
|
|
|
145
144
|
let e = localStorage.getItem(this.connectionStorageKey), t = e ? JSON.parse(e) : [], n = {};
|
|
146
145
|
for (let e of t) {
|
|
147
146
|
if (typeof e.type == "string" && e.type.startsWith("remote-worker:")) {
|
|
148
|
-
n[e.name] = v(
|
|
147
|
+
n[e.name] = v(h.fromJSON(e));
|
|
149
148
|
continue;
|
|
150
149
|
}
|
|
151
150
|
switch (e.type) {
|
|
152
151
|
case "bigquery-oauth":
|
|
153
|
-
n[e.name] = v(
|
|
152
|
+
n[e.name] = v(m.fromJSON(e));
|
|
154
153
|
break;
|
|
155
154
|
case "duckdb":
|
|
156
|
-
n[e.name] = v(
|
|
155
|
+
n[e.name] = v(_.fromJSON(e));
|
|
157
156
|
break;
|
|
158
157
|
case "sqlite":
|
|
159
|
-
n[e.name] = v(
|
|
158
|
+
n[e.name] = v(g.fromJSON(e));
|
|
160
159
|
break;
|
|
161
160
|
case "motherduck":
|
|
162
|
-
n[e.name] = v(await
|
|
163
|
-
break;
|
|
164
|
-
case "snowflake":
|
|
165
|
-
n[e.name] = v(s.fromJSON(e));
|
|
161
|
+
n[e.name] = v(await p.fromJSON(e));
|
|
166
162
|
break;
|
|
163
|
+
case "snowflake": n[e.name] = v(f.fromJSON(e));
|
|
167
164
|
}
|
|
168
165
|
}
|
|
169
166
|
return n;
|
|
@@ -173,10 +170,10 @@ var M = [
|
|
|
173
170
|
t[e] && (t[e].deleted = !0, this.saveConnections(Object.values(t)));
|
|
174
171
|
}
|
|
175
172
|
async loadModelConfig() {
|
|
176
|
-
let e = await this.readIdb(this.modelStorageKey),
|
|
177
|
-
return
|
|
178
|
-
|
|
179
|
-
}),
|
|
173
|
+
let e = await this.readIdb(this.modelStorageKey), t = e ? JSON.parse(e) : [], n = {};
|
|
174
|
+
return t.forEach((e) => {
|
|
175
|
+
n[e.name] = v(s.fromJSON(e));
|
|
176
|
+
}), n;
|
|
180
177
|
}
|
|
181
178
|
async saveModelConfig(e) {
|
|
182
179
|
let t = await this.loadModelConfig();
|
|
@@ -188,8 +185,8 @@ var M = [
|
|
|
188
185
|
k(this.modelStorageKey), this.migrated.add(this.modelStorageKey);
|
|
189
186
|
}
|
|
190
187
|
loadUserSettings() {
|
|
191
|
-
let e = localStorage.getItem(this.userSettingsStorageKey);
|
|
192
|
-
return v(
|
|
188
|
+
let e = localStorage.getItem(this.userSettingsStorageKey), t = e ? JSON.parse(e) : {};
|
|
189
|
+
return v(t);
|
|
193
190
|
}
|
|
194
191
|
saveUserSettings(e) {
|
|
195
192
|
localStorage.setItem(this.userSettingsStorageKey, JSON.stringify(e));
|
|
@@ -201,29 +198,29 @@ var M = [
|
|
|
201
198
|
}), localStorage.setItem(this.llmConnectionStorageKey, JSON.stringify(Object.values(t).map((e) => e.toJSON())));
|
|
202
199
|
}
|
|
203
200
|
async loadLLMConnections() {
|
|
204
|
-
let
|
|
205
|
-
for (let
|
|
201
|
+
let r = localStorage.getItem(this.llmConnectionStorageKey), a = r ? JSON.parse(r) : [], s = {};
|
|
202
|
+
for (let r of a) switch (r.type) {
|
|
206
203
|
case "openai":
|
|
207
|
-
|
|
204
|
+
s[r.name] = v(await n.fromJSON(r));
|
|
208
205
|
break;
|
|
209
206
|
case "anthropic":
|
|
210
|
-
|
|
207
|
+
s[r.name] = v(await o.fromJSON(r));
|
|
211
208
|
break;
|
|
212
209
|
case "google":
|
|
213
|
-
|
|
210
|
+
s[r.name] = v(await c.fromJSON(r));
|
|
214
211
|
break;
|
|
215
212
|
case "openrouter":
|
|
216
|
-
|
|
213
|
+
s[r.name] = v(await i.fromJSON(r));
|
|
217
214
|
break;
|
|
218
215
|
case "deepseek":
|
|
219
|
-
|
|
216
|
+
s[r.name] = v(await e.fromJSON(r));
|
|
220
217
|
break;
|
|
221
218
|
case "demo":
|
|
222
|
-
|
|
219
|
+
s[r.name] = v(await t.fromJSON(r));
|
|
223
220
|
break;
|
|
224
|
-
default: console.warn(`Unknown LLM connection type: ${
|
|
221
|
+
default: console.warn(`Unknown LLM connection type: ${r.type}`);
|
|
225
222
|
}
|
|
226
|
-
return
|
|
223
|
+
return s;
|
|
227
224
|
}
|
|
228
225
|
async deleteLLMConnection(e) {
|
|
229
226
|
let t = await this.loadLLMConnections();
|
|
@@ -244,7 +241,7 @@ var M = [
|
|
|
244
241
|
}
|
|
245
242
|
async loadDashboards() {
|
|
246
243
|
let e = await this.readIdb(this.dashboardStorageKey);
|
|
247
|
-
return (e ? JSON.parse(e) : []).reduce((e, t) => (
|
|
244
|
+
return (e ? JSON.parse(e) : []).reduce((e, t) => (r && typeof r.fromSerialized == "function" ? e[t.id] = v(r.fromSerialized(t)) : e[t.id] = v(t), e[t.id].storage = "local", e), {});
|
|
248
245
|
}
|
|
249
246
|
async deleteDashboard(e) {
|
|
250
247
|
let t = await this.loadDashboards();
|
|
@@ -263,10 +260,10 @@ var M = [
|
|
|
263
260
|
}), await this.writeIdb(this.chatStorageKey, JSON.stringify(Object.values(t).map((e) => e.serialize())));
|
|
264
261
|
}
|
|
265
262
|
async loadChats() {
|
|
266
|
-
let
|
|
267
|
-
return (
|
|
268
|
-
let
|
|
269
|
-
return
|
|
263
|
+
let e = await this.readIdb(this.chatStorageKey);
|
|
264
|
+
return (e ? JSON.parse(e) : []).reduce((e, t) => {
|
|
265
|
+
let n = a.fromSerialized(t);
|
|
266
|
+
return e[n.id] = v(n), e[n.id].storage = "local", e;
|
|
270
267
|
}, {});
|
|
271
268
|
}
|
|
272
269
|
async deleteChat(e) {
|
|
@@ -288,7 +285,7 @@ var M = [
|
|
|
288
285
|
async loadProjects() {
|
|
289
286
|
let e = await this.readIdb(this.projectStorageKey);
|
|
290
287
|
return (e ? JSON.parse(e) : []).reduce((e, t) => {
|
|
291
|
-
let n =
|
|
288
|
+
let n = l.fromSerialized(t);
|
|
292
289
|
return e[n.id] = v(n), e[n.id].storage = "local", e;
|
|
293
290
|
}, {});
|
|
294
291
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as e, l as t, p as n, s as r, u as i } from "./workers-B9Eybl-M.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) {
|
|
@@ -555,7 +555,7 @@ var F;
|
|
|
555
555
|
(function(e) {
|
|
556
556
|
function t(e, t, ...n) {
|
|
557
557
|
let r = { label: e };
|
|
558
|
-
return U.defined(t) && (r.documentation = t), U.defined(n) ?
|
|
558
|
+
return U.defined(t) && (r.documentation = t), r.parameters = U.defined(n) ? n : [], r;
|
|
559
559
|
}
|
|
560
560
|
e.create = t;
|
|
561
561
|
})(F ||= {});
|
|
@@ -1080,11 +1080,11 @@ var He = class {
|
|
|
1080
1080
|
};
|
|
1081
1081
|
function Ue(e) {
|
|
1082
1082
|
switch (e) {
|
|
1083
|
-
case g.Error: return
|
|
1084
|
-
case g.Warning: return
|
|
1085
|
-
case g.Information: return
|
|
1086
|
-
case g.Hint: return
|
|
1087
|
-
default: return
|
|
1083
|
+
case g.Error: return r.Error;
|
|
1084
|
+
case g.Warning: return r.Warning;
|
|
1085
|
+
case g.Information: return r.Info;
|
|
1086
|
+
case g.Hint: return r.Hint;
|
|
1087
|
+
default: return r.Info;
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
function We(e, t) {
|
|
@@ -1107,11 +1107,11 @@ var Ge = class {
|
|
|
1107
1107
|
get triggerCharacters() {
|
|
1108
1108
|
return this._triggerCharacters;
|
|
1109
1109
|
}
|
|
1110
|
-
provideCompletionItems(e,
|
|
1110
|
+
provideCompletionItems(e, r, i, a) {
|
|
1111
1111
|
let o = e.uri;
|
|
1112
|
-
return this._worker(o).then((e) => e.doComplete(o.toString(), W(
|
|
1113
|
-
if (!
|
|
1114
|
-
let a = e.getWordUntilPosition(
|
|
1112
|
+
return this._worker(o).then((e) => e.doComplete(o.toString(), W(r))).then((i) => {
|
|
1113
|
+
if (!i) return;
|
|
1114
|
+
let a = e.getWordUntilPosition(r), o = new t(r.lineNumber, a.startColumn, r.lineNumber, a.endColumn), s = i.items.map((e) => {
|
|
1115
1115
|
let t = {
|
|
1116
1116
|
label: e.label,
|
|
1117
1117
|
insertText: e.insertText || e.label,
|
|
@@ -1123,13 +1123,13 @@ var Ge = class {
|
|
|
1123
1123
|
range: o,
|
|
1124
1124
|
kind: qe(e.kind)
|
|
1125
1125
|
};
|
|
1126
|
-
return e.textEdit && (Ke(e.textEdit) ?
|
|
1126
|
+
return e.textEdit && (t.range = Ke(e.textEdit) ? {
|
|
1127
1127
|
insert: K(e.textEdit.insert),
|
|
1128
1128
|
replace: K(e.textEdit.replace)
|
|
1129
|
-
} :
|
|
1129
|
+
} : K(e.textEdit.range), t.insertText = e.textEdit.newText), e.additionalTextEdits && (t.additionalTextEdits = e.additionalTextEdits.map(q)), e.insertTextFormat === N.Snippet && (t.insertTextRules = n.CompletionItemInsertTextRule.InsertAsSnippet), t;
|
|
1130
1130
|
});
|
|
1131
1131
|
return {
|
|
1132
|
-
isIncomplete:
|
|
1132
|
+
isIncomplete: i.isIncomplete,
|
|
1133
1133
|
suggestions: s
|
|
1134
1134
|
};
|
|
1135
1135
|
});
|
|
@@ -1154,13 +1154,13 @@ function G(e) {
|
|
|
1154
1154
|
};
|
|
1155
1155
|
}
|
|
1156
1156
|
function K(e) {
|
|
1157
|
-
if (e) return new
|
|
1157
|
+
if (e) return new t(e.start.line + 1, e.start.character + 1, e.end.line + 1, e.end.character + 1);
|
|
1158
1158
|
}
|
|
1159
1159
|
function Ke(e) {
|
|
1160
1160
|
return e.insert !== void 0 && e.replace !== void 0;
|
|
1161
1161
|
}
|
|
1162
1162
|
function qe(e) {
|
|
1163
|
-
let t =
|
|
1163
|
+
let t = n.CompletionItemKind;
|
|
1164
1164
|
switch (e) {
|
|
1165
1165
|
case M.Text: return t.Text;
|
|
1166
1166
|
case M.Method: return t.Method;
|
|
@@ -1235,11 +1235,11 @@ var Qe = class {
|
|
|
1235
1235
|
};
|
|
1236
1236
|
function $e(e) {
|
|
1237
1237
|
switch (e) {
|
|
1238
|
-
case I.Read: return
|
|
1239
|
-
case I.Write: return
|
|
1240
|
-
case I.Text: return
|
|
1238
|
+
case I.Read: return n.DocumentHighlightKind.Read;
|
|
1239
|
+
case I.Write: return n.DocumentHighlightKind.Write;
|
|
1240
|
+
case I.Text: return n.DocumentHighlightKind.Text;
|
|
1241
1241
|
}
|
|
1242
|
-
return
|
|
1242
|
+
return n.DocumentHighlightKind.Text;
|
|
1243
1243
|
}
|
|
1244
1244
|
var et = class {
|
|
1245
1245
|
constructor(e) {
|
|
@@ -1254,7 +1254,7 @@ var et = class {
|
|
|
1254
1254
|
};
|
|
1255
1255
|
function Y(e) {
|
|
1256
1256
|
return {
|
|
1257
|
-
uri:
|
|
1257
|
+
uri: i.parse(e.uri),
|
|
1258
1258
|
range: K(e.range)
|
|
1259
1259
|
};
|
|
1260
1260
|
}
|
|
@@ -1281,13 +1281,13 @@ function rt(e) {
|
|
|
1281
1281
|
if (!e || !e.changes) return;
|
|
1282
1282
|
let t = [];
|
|
1283
1283
|
for (let n in e.changes) {
|
|
1284
|
-
let
|
|
1285
|
-
for (let
|
|
1286
|
-
resource:
|
|
1284
|
+
let r = i.parse(n);
|
|
1285
|
+
for (let i of e.changes[n]) t.push({
|
|
1286
|
+
resource: r,
|
|
1287
1287
|
versionId: void 0,
|
|
1288
1288
|
textEdit: {
|
|
1289
|
-
range: K(
|
|
1290
|
-
text:
|
|
1289
|
+
range: K(i.range),
|
|
1290
|
+
text: i.newText
|
|
1291
1291
|
}
|
|
1292
1292
|
});
|
|
1293
1293
|
}
|
|
@@ -1327,7 +1327,7 @@ function Z(e) {
|
|
|
1327
1327
|
};
|
|
1328
1328
|
}
|
|
1329
1329
|
function Q(e) {
|
|
1330
|
-
let t =
|
|
1330
|
+
let t = n.SymbolKind;
|
|
1331
1331
|
switch (e) {
|
|
1332
1332
|
case R.File: return t.File;
|
|
1333
1333
|
case R.Module: return t.Module;
|
|
@@ -1370,7 +1370,7 @@ var at = class {
|
|
|
1370
1370
|
provideDocumentFormattingEdits(e, t, n) {
|
|
1371
1371
|
let r = e.uri;
|
|
1372
1372
|
return this._worker(r).then((e) => e.format(r.toString(), null, $(t)).then((e) => {
|
|
1373
|
-
if (
|
|
1373
|
+
if (e && e.length !== 0) return e.map(q);
|
|
1374
1374
|
}));
|
|
1375
1375
|
}
|
|
1376
1376
|
}, st = class {
|
|
@@ -1380,7 +1380,7 @@ var at = class {
|
|
|
1380
1380
|
provideDocumentRangeFormattingEdits(e, t, n, r) {
|
|
1381
1381
|
let i = e.uri;
|
|
1382
1382
|
return this._worker(i).then((e) => e.format(i.toString(), G(t), $(n)).then((e) => {
|
|
1383
|
-
if (
|
|
1383
|
+
if (e && e.length !== 0) return e.map(q);
|
|
1384
1384
|
}));
|
|
1385
1385
|
}
|
|
1386
1386
|
};
|
|
@@ -1431,9 +1431,9 @@ var ct = class {
|
|
|
1431
1431
|
};
|
|
1432
1432
|
function ut(e) {
|
|
1433
1433
|
switch (e) {
|
|
1434
|
-
case m.Comment: return
|
|
1435
|
-
case m.Imports: return
|
|
1436
|
-
case m.Region: return
|
|
1434
|
+
case m.Comment: return n.FoldingRangeKind.Comment;
|
|
1435
|
+
case m.Imports: return n.FoldingRangeKind.Imports;
|
|
1436
|
+
case m.Region: return n.FoldingRangeKind.Region;
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
1439
|
var dt = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { p as e } from "./workers-B9Eybl-M.js";
|
|
2
2
|
//#region node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/basic-languages/mdx/mdx.js
|
|
3
3
|
var t = {
|
|
4
4
|
comments: { blockComment: ["{/*", "*/}"] },
|
package/dist/monaco.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "./editorStore-
|
|
1
|
+
import { t as e } from "./editorStore-CAlMJftt.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-CKLGILtR.js";
|
|
3
|
-
import {
|
|
4
|
-
import "./editor.main-
|
|
3
|
+
import { l as c, p as l } from "./workers-B9Eybl-M.js";
|
|
4
|
+
import "./editor.main-BQh6DxDB.js";
|
|
5
5
|
//#region language/constants.ts
|
|
6
6
|
var u = {
|
|
7
7
|
string: "Text value",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { et as e } from "./editorStore-CAlMJftt.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
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { n } from "./reconcile-
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
2
|
+
import { p as t } from "./useGlobalChatPanel-DuP1q7_f.js";
|
|
3
|
+
import { n } from "./reconcile-DXIvGwBk.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({
|
|
@@ -12,9 +12,9 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
12
12
|
enumerable: !(s = n(i, d)) || s.enumerable
|
|
13
13
|
});
|
|
14
14
|
return e;
|
|
15
|
-
}, l = (n, r,
|
|
15
|
+
}, l = (n, r, o) => (o = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
|
|
16
16
|
value: n,
|
|
17
17
|
enumerable: !0
|
|
18
|
-
}) :
|
|
18
|
+
}) : o, n));
|
|
19
19
|
//#endregion
|
|
20
20
|
export { s as n, l as r, o as t };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
//# sourceMappingURL=test_import.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test_import.vue.d.ts","sourceRoot":"","sources":["../../static/test_import.vue"],"names":[],"mappings":"AAWA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|