@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
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as o } from "./monaco.contribution-ikesdolO.js";
|
|
3
|
-
import { t as s } from "./workers-Br7ThUKL.js";
|
|
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-B9Eybl-M.js";
|
|
4
2
|
//#region node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/language/typescript/workerManager.js
|
|
5
3
|
var c = class {
|
|
6
4
|
constructor(e, t) {
|
|
@@ -18,11 +16,11 @@ var c = class {
|
|
|
18
16
|
this._updateExtraLibsToken === e && t.updateExtraLibs(this._defaults.getExtraLibs());
|
|
19
17
|
}
|
|
20
18
|
_getClient() {
|
|
21
|
-
return this._client ||= (async () => (this._worker =
|
|
19
|
+
return this._client ||= (async () => (this._worker = o({
|
|
22
20
|
moduleId: "vs/language/typescript/tsWorker",
|
|
23
21
|
createWorker: () => new Worker(new URL(
|
|
24
22
|
/* @vite-ignore */
|
|
25
|
-
"/assets/ts.worker-
|
|
23
|
+
"/assets/ts.worker-CYhxGg0r.js",
|
|
26
24
|
"" + import.meta.url
|
|
27
25
|
), { type: "module" }),
|
|
28
26
|
label: this._modeId,
|
|
@@ -78,10 +76,10 @@ var f = class {
|
|
|
78
76
|
return e ? e.path.indexOf("/lib.") === 0 && !!l[e.path.slice(1)] : !1;
|
|
79
77
|
}
|
|
80
78
|
getOrCreateModel(e) {
|
|
81
|
-
let n =
|
|
79
|
+
let n = s.parse(e), r = t.getModel(n);
|
|
82
80
|
if (r) return r;
|
|
83
81
|
if (this.isLibFile(n) && this._hasFetchedLibFiles) return t.createModel(this._libFiles[n.path.slice(1)], "typescript", n);
|
|
84
|
-
let a =
|
|
82
|
+
let a = i.getExtraLibs()[e];
|
|
85
83
|
return a ? t.createModel(a.content, "typescript", n) : null;
|
|
86
84
|
}
|
|
87
85
|
_containsLibFile(e) {
|
|
@@ -134,11 +132,11 @@ var f = class {
|
|
|
134
132
|
async _doValidate(e) {
|
|
135
133
|
let n = await this._worker(e.uri);
|
|
136
134
|
if (e.isDisposed()) return;
|
|
137
|
-
let r = [], { noSyntaxValidation:
|
|
138
|
-
|
|
135
|
+
let r = [], { noSyntaxValidation: i, noSemanticValidation: a, noSuggestionDiagnostics: o } = this._defaults.getDiagnosticsOptions();
|
|
136
|
+
i || r.push(n.getSyntacticDiagnostics(e.uri.toString())), a || r.push(n.getSemanticDiagnostics(e.uri.toString())), o || r.push(n.getSuggestionDiagnostics(e.uri.toString()));
|
|
139
137
|
let c = await Promise.all(r);
|
|
140
138
|
if (!c || e.isDisposed()) return;
|
|
141
|
-
let l = c.reduce((e, t) => t.concat(e), []).filter((e) => (this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore || []).indexOf(e.code) === -1), u = l.map((e) => e.relatedInformation || []).reduce((e, t) => t.concat(e), []).map((e) => e.file ?
|
|
139
|
+
let l = c.reduce((e, t) => t.concat(e), []).filter((e) => (this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore || []).indexOf(e.code) === -1), u = l.map((e) => e.relatedInformation || []).reduce((e, t) => t.concat(e), []).map((e) => e.file ? s.parse(e.file.fileName) : null);
|
|
142
140
|
await this._libFiles.fetchLibFilesIfNecessary(u), !e.isDisposed() && t.setModelMarkers(e, this._selector, l.map((t) => this._convertDiagnostics(e, t)));
|
|
143
141
|
}
|
|
144
142
|
_convertDiagnostics(t, n) {
|
|
@@ -174,37 +172,37 @@ var f = class {
|
|
|
174
172
|
}
|
|
175
173
|
_tsDiagnosticCategoryToMarkerSeverity(e) {
|
|
176
174
|
switch (e) {
|
|
177
|
-
case 1: return
|
|
178
|
-
case 3: return
|
|
179
|
-
case 0: return
|
|
180
|
-
case 2: return
|
|
175
|
+
case 1: return a.Error;
|
|
176
|
+
case 3: return a.Info;
|
|
177
|
+
case 0: return a.Warning;
|
|
178
|
+
case 2: return a.Hint;
|
|
181
179
|
}
|
|
182
|
-
return
|
|
180
|
+
return a.Info;
|
|
183
181
|
}
|
|
184
182
|
}, h = class e extends f {
|
|
185
183
|
get triggerCharacters() {
|
|
186
184
|
return ["."];
|
|
187
185
|
}
|
|
188
|
-
async provideCompletionItems(t,
|
|
189
|
-
let s = t.getWordUntilPosition(
|
|
186
|
+
async provideCompletionItems(t, i, a, o) {
|
|
187
|
+
let s = t.getWordUntilPosition(i), c = new n(i.lineNumber, s.startColumn, i.lineNumber, s.endColumn), l = t.uri, u = t.getOffsetAt(i), d = await this._worker(l);
|
|
190
188
|
if (t.isDisposed()) return;
|
|
191
189
|
let f = await d.getCompletionsAtPosition(l.toString(), u);
|
|
192
|
-
if (
|
|
190
|
+
if (f && !t.isDisposed()) return { suggestions: f.entries.map((a) => {
|
|
193
191
|
let o = c;
|
|
194
|
-
if (
|
|
195
|
-
let e = t.getPositionAt(
|
|
196
|
-
o = new
|
|
192
|
+
if (a.replacementSpan) {
|
|
193
|
+
let e = t.getPositionAt(a.replacementSpan.start), r = t.getPositionAt(a.replacementSpan.start + a.replacementSpan.length);
|
|
194
|
+
o = new n(e.lineNumber, e.column, r.lineNumber, r.column);
|
|
197
195
|
}
|
|
198
196
|
let s = [];
|
|
199
|
-
return
|
|
197
|
+
return a.kindModifiers !== void 0 && a.kindModifiers.indexOf("deprecated") !== -1 && s.push(r.CompletionItemTag.Deprecated), {
|
|
200
198
|
uri: l,
|
|
201
|
-
position:
|
|
199
|
+
position: i,
|
|
202
200
|
offset: u,
|
|
203
201
|
range: o,
|
|
204
|
-
label:
|
|
205
|
-
insertText:
|
|
206
|
-
sortText:
|
|
207
|
-
kind: e.convertKind(
|
|
202
|
+
label: a.name,
|
|
203
|
+
insertText: a.name,
|
|
204
|
+
sortText: a.sortText,
|
|
205
|
+
kind: e.convertKind(a.kind),
|
|
208
206
|
tags: s
|
|
209
207
|
};
|
|
210
208
|
}) };
|
|
@@ -223,24 +221,24 @@ var f = class {
|
|
|
223
221
|
static convertKind(e) {
|
|
224
222
|
switch (e) {
|
|
225
223
|
case C.primitiveType:
|
|
226
|
-
case C.keyword: return
|
|
224
|
+
case C.keyword: return r.CompletionItemKind.Keyword;
|
|
227
225
|
case C.variable:
|
|
228
|
-
case C.localVariable: return
|
|
226
|
+
case C.localVariable: return r.CompletionItemKind.Variable;
|
|
229
227
|
case C.memberVariable:
|
|
230
228
|
case C.memberGetAccessor:
|
|
231
|
-
case C.memberSetAccessor: return
|
|
229
|
+
case C.memberSetAccessor: return r.CompletionItemKind.Field;
|
|
232
230
|
case C.function:
|
|
233
231
|
case C.memberFunction:
|
|
234
232
|
case C.constructSignature:
|
|
235
233
|
case C.callSignature:
|
|
236
|
-
case C.indexSignature: return
|
|
237
|
-
case C.enum: return
|
|
238
|
-
case C.module: return
|
|
239
|
-
case C.class: return
|
|
240
|
-
case C.interface: return
|
|
241
|
-
case C.warning: return
|
|
234
|
+
case C.indexSignature: return r.CompletionItemKind.Function;
|
|
235
|
+
case C.enum: return r.CompletionItemKind.Enum;
|
|
236
|
+
case C.module: return r.CompletionItemKind.Module;
|
|
237
|
+
case C.class: return r.CompletionItemKind.Class;
|
|
238
|
+
case C.interface: return r.CompletionItemKind.Interface;
|
|
239
|
+
case C.warning: return r.CompletionItemKind.File;
|
|
242
240
|
}
|
|
243
|
-
return
|
|
241
|
+
return r.CompletionItemKind.Property;
|
|
244
242
|
}
|
|
245
243
|
static createDocumentationString(e) {
|
|
246
244
|
let t = d(e.documentation);
|
|
@@ -264,15 +262,15 @@ var _ = class e extends f {
|
|
|
264
262
|
}
|
|
265
263
|
static _toSignatureHelpTriggerReason(e) {
|
|
266
264
|
switch (e.triggerKind) {
|
|
267
|
-
case
|
|
265
|
+
case r.SignatureHelpTriggerKind.TriggerCharacter: return e.triggerCharacter ? e.isRetrigger ? {
|
|
268
266
|
kind: "retrigger",
|
|
269
267
|
triggerCharacter: e.triggerCharacter
|
|
270
268
|
} : {
|
|
271
269
|
kind: "characterTyped",
|
|
272
270
|
triggerCharacter: e.triggerCharacter
|
|
273
271
|
} : { kind: "invoked" };
|
|
274
|
-
case
|
|
275
|
-
case
|
|
272
|
+
case r.SignatureHelpTriggerKind.ContentChange: return e.isRetrigger ? { kind: "retrigger" } : { kind: "invoked" };
|
|
273
|
+
case r.SignatureHelpTriggerKind.Invoke:
|
|
276
274
|
default: return { kind: "invoked" };
|
|
277
275
|
}
|
|
278
276
|
}
|
|
@@ -317,12 +315,12 @@ var _ = class e extends f {
|
|
|
317
315
|
}
|
|
318
316
|
}, y = class extends f {
|
|
319
317
|
async provideDocumentHighlights(e, t, n) {
|
|
320
|
-
let
|
|
318
|
+
let i = e.uri, a = e.getOffsetAt(t), o = await this._worker(i);
|
|
321
319
|
if (e.isDisposed()) return;
|
|
322
|
-
let s = await o.getDocumentHighlights(
|
|
323
|
-
if (
|
|
320
|
+
let s = await o.getDocumentHighlights(i.toString(), a, [i.toString()]);
|
|
321
|
+
if (s && !e.isDisposed()) return s.flatMap((t) => t.highlightSpans.map((t) => ({
|
|
324
322
|
range: this._textSpanToRange(e, t.textSpan),
|
|
325
|
-
kind: t.kind === "writtenReference" ?
|
|
323
|
+
kind: t.kind === "writtenReference" ? r.DocumentHighlightKind.Write : r.DocumentHighlightKind.Text
|
|
326
324
|
})));
|
|
327
325
|
}
|
|
328
326
|
}, b = class extends f {
|
|
@@ -330,12 +328,12 @@ var _ = class e extends f {
|
|
|
330
328
|
super(t), this._libFiles = e;
|
|
331
329
|
}
|
|
332
330
|
async provideDefinition(e, t, n) {
|
|
333
|
-
let r = e.uri,
|
|
331
|
+
let r = e.uri, i = e.getOffsetAt(t), a = await this._worker(r);
|
|
334
332
|
if (e.isDisposed()) return;
|
|
335
|
-
let
|
|
336
|
-
if (!
|
|
333
|
+
let o = await a.getDefinitionAtPosition(r.toString(), i);
|
|
334
|
+
if (!o || e.isDisposed() || (await this._libFiles.fetchLibFilesIfNecessary(o.map((e) => s.parse(e.fileName))), e.isDisposed())) return;
|
|
337
335
|
let c = [];
|
|
338
|
-
for (let e of
|
|
336
|
+
for (let e of o) {
|
|
339
337
|
let t = this._libFiles.getOrCreateModel(e.fileName);
|
|
340
338
|
t && c.push({
|
|
341
339
|
uri: t.uri,
|
|
@@ -349,10 +347,10 @@ var _ = class e extends f {
|
|
|
349
347
|
super(t), this._libFiles = e;
|
|
350
348
|
}
|
|
351
349
|
async provideReferences(e, t, n, r) {
|
|
352
|
-
let
|
|
350
|
+
let i = e.uri, a = e.getOffsetAt(t), o = await this._worker(i);
|
|
353
351
|
if (e.isDisposed()) return;
|
|
354
|
-
let c = await
|
|
355
|
-
if (!c || e.isDisposed() || (await this._libFiles.fetchLibFilesIfNecessary(c.map((e) =>
|
|
352
|
+
let c = await o.getReferencesAtPosition(i.toString(), a);
|
|
353
|
+
if (!c || e.isDisposed() || (await this._libFiles.fetchLibFilesIfNecessary(c.map((e) => s.parse(e.fileName))), e.isDisposed())) return;
|
|
356
354
|
let l = [];
|
|
357
355
|
for (let e of c) {
|
|
358
356
|
let t = this._libFiles.getOrCreateModel(e.fileName);
|
|
@@ -365,26 +363,26 @@ var _ = class e extends f {
|
|
|
365
363
|
}
|
|
366
364
|
}, S = class extends f {
|
|
367
365
|
async provideDocumentSymbols(e, t) {
|
|
368
|
-
let n = e.uri,
|
|
366
|
+
let n = e.uri, i = await this._worker(n);
|
|
369
367
|
if (e.isDisposed()) return;
|
|
370
|
-
let
|
|
371
|
-
if (!
|
|
368
|
+
let a = await i.getNavigationTree(n.toString());
|
|
369
|
+
if (!a || e.isDisposed()) return;
|
|
372
370
|
let o = (t, n) => ({
|
|
373
371
|
name: t.text,
|
|
374
372
|
detail: "",
|
|
375
|
-
kind: w[t.kind] ||
|
|
373
|
+
kind: w[t.kind] || r.SymbolKind.Variable,
|
|
376
374
|
range: this._textSpanToRange(e, t.spans[0]),
|
|
377
375
|
selectionRange: this._textSpanToRange(e, t.spans[0]),
|
|
378
376
|
tags: [],
|
|
379
377
|
children: t.childItems?.map((e) => o(e, t.text)),
|
|
380
378
|
containerName: n
|
|
381
379
|
});
|
|
382
|
-
return
|
|
380
|
+
return a.childItems ? a.childItems.map((e) => o(e)) : [];
|
|
383
381
|
}
|
|
384
382
|
}, C = class {};
|
|
385
383
|
C.unknown = "", C.keyword = "keyword", C.script = "script", C.module = "module", C.class = "class", C.interface = "interface", C.type = "type", C.enum = "enum", C.variable = "var", C.localVariable = "local var", C.function = "function", C.localFunction = "local function", C.memberFunction = "method", C.memberGetAccessor = "getter", C.memberSetAccessor = "setter", C.memberVariable = "property", C.constructorImplementation = "constructor", C.callSignature = "call", C.indexSignature = "index", C.constructSignature = "construct", C.parameter = "parameter", C.typeParameter = "type parameter", C.primitiveType = "primitive type", C.label = "label", C.alias = "alias", C.const = "const", C.let = "let", C.warning = "warning";
|
|
386
384
|
var w = /* @__PURE__ */ Object.create(null);
|
|
387
|
-
w[C.module] =
|
|
385
|
+
w[C.module] = r.SymbolKind.Module, w[C.class] = r.SymbolKind.Class, w[C.enum] = r.SymbolKind.Enum, w[C.interface] = r.SymbolKind.Interface, w[C.memberFunction] = r.SymbolKind.Method, w[C.memberVariable] = r.SymbolKind.Property, w[C.memberGetAccessor] = r.SymbolKind.Property, w[C.memberSetAccessor] = r.SymbolKind.Property, w[C.variable] = r.SymbolKind.Variable, w[C.const] = r.SymbolKind.Variable, w[C.localVariable] = r.SymbolKind.Variable, w[C.variable] = r.SymbolKind.Variable, w[C.function] = r.SymbolKind.Function, w[C.localFunction] = r.SymbolKind.Function;
|
|
388
386
|
var T = class extends f {
|
|
389
387
|
static _convertOptions(e) {
|
|
390
388
|
return {
|
|
@@ -425,7 +423,7 @@ var T = class extends f {
|
|
|
425
423
|
}), s = await this._worker(i);
|
|
426
424
|
if (e.isDisposed()) return;
|
|
427
425
|
let c = await s.getFormattingEditsForRange(i.toString(), a, o, T._convertOptions(n));
|
|
428
|
-
if (
|
|
426
|
+
if (c && !e.isDisposed()) return c.map((t) => this._convertTextChanges(e, t));
|
|
429
427
|
}
|
|
430
428
|
}, D = class extends T {
|
|
431
429
|
get autoFormatTriggerCharacters() {
|
|
@@ -439,7 +437,7 @@ var T = class extends f {
|
|
|
439
437
|
let a = e.uri, o = e.getOffsetAt(t), s = await this._worker(a);
|
|
440
438
|
if (e.isDisposed()) return;
|
|
441
439
|
let c = await s.getFormattingEditsAfterKeystroke(a.toString(), o, n, T._convertOptions(r));
|
|
442
|
-
if (
|
|
440
|
+
if (c && !e.isDisposed()) return c.map((t) => this._convertTextChanges(e, t));
|
|
443
441
|
}
|
|
444
442
|
}, O = class extends T {
|
|
445
443
|
async provideCodeActions(e, t, n, r) {
|
|
@@ -528,9 +526,9 @@ var T = class extends f {
|
|
|
528
526
|
}
|
|
529
527
|
_convertHintKind(e) {
|
|
530
528
|
switch (e) {
|
|
531
|
-
case "Parameter": return
|
|
532
|
-
case "Type": return
|
|
533
|
-
default: return
|
|
529
|
+
case "Parameter": return r.InlayHintKind.Parameter;
|
|
530
|
+
case "Type": return r.InlayHintKind.Type;
|
|
531
|
+
default: return r.InlayHintKind.Type;
|
|
534
532
|
}
|
|
535
533
|
}
|
|
536
534
|
}, j, M;
|
|
@@ -553,12 +551,12 @@ function I() {
|
|
|
553
551
|
});
|
|
554
552
|
}
|
|
555
553
|
function L(e, t) {
|
|
556
|
-
let n = [],
|
|
554
|
+
let n = [], i = new c(t, e), a = (...e) => i.getLanguageServiceWorker(...e), o = new p(a);
|
|
557
555
|
function s() {
|
|
558
|
-
let { modeConfiguration:
|
|
559
|
-
R(n),
|
|
556
|
+
let { modeConfiguration: i } = e;
|
|
557
|
+
R(n), i.completionItems && n.push(r.registerCompletionItemProvider(t, new h(a))), i.signatureHelp && n.push(r.registerSignatureHelpProvider(t, new _(a))), i.hovers && n.push(r.registerHoverProvider(t, new v(a))), i.documentHighlights && n.push(r.registerDocumentHighlightProvider(t, new y(a))), i.definitions && n.push(r.registerDefinitionProvider(t, new b(o, a))), i.references && n.push(r.registerReferenceProvider(t, new x(o, a))), i.documentSymbols && n.push(r.registerDocumentSymbolProvider(t, new S(a))), i.rename && n.push(r.registerRenameProvider(t, new k(o, a))), i.documentRangeFormattingEdits && n.push(r.registerDocumentRangeFormattingEditProvider(t, new E(a))), i.onTypeFormattingEdits && n.push(r.registerOnTypeFormattingEditProvider(t, new D(a))), i.codeActions && n.push(r.registerCodeActionProvider(t, new O(a))), i.inlayHints && n.push(r.registerInlayHintsProvider(t, new A(a))), i.diagnostics && n.push(new m(o, e, t, a));
|
|
560
558
|
}
|
|
561
|
-
return s(),
|
|
559
|
+
return s(), a;
|
|
562
560
|
}
|
|
563
561
|
function R(e) {
|
|
564
562
|
for (; e.length;) e.pop().dispose();
|
|
@@ -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/typescript/typescript.js
|
|
3
3
|
var t = {
|
|
4
4
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as e, U as t, ct as n } from "./llm-ClU-2rgk.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 e = 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)), (e || []).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: (e || []).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 = t(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 (t, n) => {
|
|
89
|
+
if (d?.activeChatId && l && u && f) return d.executeMessage(d.activeChatId, t, {
|
|
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 t
|
|
105
|
+
content: t
|
|
106
|
+
}], await e(t, 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: t,
|
|
144
144
|
systemPrompt: U.value
|
|
145
145
|
}, n)).text };
|
|
146
146
|
} catch (e) {
|
|
@@ -201,7 +201,7 @@ function s(s) {
|
|
|
201
201
|
handleTitleUpdate: Y,
|
|
202
202
|
handleImportChange: W,
|
|
203
203
|
generateChatName: async () => {
|
|
204
|
-
if (
|
|
204
|
+
if (c.activeConnection && D.value.length !== 0) {
|
|
205
205
|
E.value = !0;
|
|
206
206
|
try {
|
|
207
207
|
let e = await c.generateChatName(c.activeConnection, D.value);
|