@trilogy-data/trilogy-studio-components 0.1.11 → 0.1.13
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/{ChatCreatorModal-ByXgDUoO.js → ChatCreatorModal-CGYVd4b5.js} +1 -1
- package/dist/{Dashboard-D6A2aYgv.js → Dashboard-BzU5l0J1.js} +3 -3
- package/dist/{DashboardCreatorInline-Cgfinl3I.js → DashboardCreatorInline-szUAhl3C.js} +1 -1
- package/dist/{DashboardMobile-BbZH1Qir.js → DashboardMobile-cUHQPGAT.js} +3 -3
- package/dist/{LLMConnectionList-Cl3h5pBm.js → LLMConnectionList-egIna8uh.js} +1 -1
- package/dist/{LLMView-BRDqi_8s.js → LLMView-BXlHVvci.js} +1 -1
- package/dist/Manager-CWERTb_Q.js +4 -0
- package/dist/{ResultComponent-RFos0Fha.js → ResultComponent-Dqzd51fk.js} +1 -1
- package/dist/{Sidebar-Bvu5hS2B.js → Sidebar-DNAHF4lz.js} +3 -3
- package/dist/{TutorialPage-ChaeJTUC.js → TutorialPage-CqGb6CEf.js} +4 -4
- package/dist/{WelcomePage-B06IC6Uy.js → WelcomePage-CKUubkCt.js} +1 -1
- package/dist/{cssMode-C091JrjG.js → cssMode-CTNpWCFn.js} +1 -1
- package/dist/{freemarker2-X1eIBwal.js → freemarker2-Cc0GWdmq.js} +1 -1
- package/dist/{handlebars-BlVeu042.js → handlebars-BpAJzwKQ.js} +1 -1
- package/dist/{html-WyM-Pvly.js → html-C4cOr6Q2.js} +1 -1
- package/dist/{htmlMode-DQST6Ar_.js → htmlMode-4GTCH2de.js} +1 -1
- package/dist/{javascript-CYyejasU.js → javascript-eCxY6C4t.js} +1 -1
- package/dist/{jsonMode-CESsFbpD.js → jsonMode-P2zF1eXm.js} +1 -1
- package/dist/{liquid-DdP-I3Ox.js → liquid-CHf82yU1.js} +1 -1
- package/dist/llm/chatAgentPrompt.d.ts +27 -32
- package/dist/llm/chatAgentPrompt.d.ts.map +1 -1
- package/dist/llm/consts.d.ts +19 -0
- package/dist/llm/consts.d.ts.map +1 -1
- package/dist/llm/demo.d.ts +8 -0
- package/dist/llm/demo.d.ts.map +1 -1
- package/dist/llm/index.d.ts +3 -1
- package/dist/llm/index.d.ts.map +1 -1
- package/dist/llm/toolLoopCore.d.ts.map +1 -1
- package/dist/{main-DP4aLnEK.js → main-B49yDSSL.js} +21513 -21484
- package/dist/main.d.ts +5 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +28 -23
- package/dist/main.umd.cjs +440 -440
- package/dist/{mdx-VGDZf6-F.js → mdx-DhkaMLCX.js} +1 -1
- package/dist/{python-BiiBBLHE.js → python-BPlpgFwf.js} +1 -1
- package/dist/{razor-ogBkymZ8.js → razor-Bw_qWSSk.js} +1 -1
- package/dist/{tsMode-DP-1CE0D.js → tsMode-B4G-3v3r.js} +1 -1
- package/dist/{typescript-ByG-a0Ne.js → typescript-CxjsldWX.js} +1 -1
- package/dist/{useDashboard-Dx-2dWkF.js → useDashboard-BrcAKpuC.js} +1 -1
- package/dist/{xml-DmCesN6f.js → xml-DWqiAUCc.js} +1 -1
- package/dist/{yaml-DpZLn6t1.js → yaml-BfqSAZW1.js} +1 -1
- package/package.json +1 -1
- package/dist/Manager-Baa6Lvxg.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as B, inject as L, ref as S, watch as b, computed as c, resolveComponent as U, createElementBlock as d, createCommentVNode as m, openBlock as l, createElementVNode as a, withModifiers as j, createTextVNode as O, withDirectives as h, createBlock as D, Fragment as M, renderList as N, toDisplayString as C, vModelSelect as k, normalizeClass as R, vModelText as E } from "vue";
|
|
2
|
-
import { h as I, K, a as T } from "./main-
|
|
2
|
+
import { h as I, K, a as T } from "./main-B49yDSSL.js";
|
|
3
3
|
const z = B({
|
|
4
4
|
name: "ChatCreatorModal",
|
|
5
5
|
components: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as sn, ref as k, provide as Bo, onBeforeUnmount as Vn, onBeforeMount as Lo, onMounted as Kn, nextTick as yt, watch as G, createElementBlock as Pt, openBlock as vt, normalizeStyle as Te, renderSlot as Qn, withDirectives as Ho, createVNode as Bt, vShow as Wo, inject as jo, computed as Lt, useSlots as $o, normalizeClass as yn, createCommentVNode as Ye, getCurrentInstance as Uo, createBlock as xe, unref as _, createElementVNode as He, withCtx as bn, Fragment as xn, renderList as Xo, Teleport as wn, toDisplayString as qo } from "vue";
|
|
2
|
-
import { u as Yo, D as Go, _ as Vo, a as Ko, b as Qo, C as Jo, M as Zo } from "./useDashboard-
|
|
3
|
-
import { D as ti } from "./DashboardCreatorInline-
|
|
4
|
-
import { v as ei, a as ni } from "./main-
|
|
2
|
+
import { u as Yo, D as Go, _ as Vo, a as Ko, b as Qo, C as Jo, M as Zo } from "./useDashboard-BrcAKpuC.js";
|
|
3
|
+
import { D as ti } from "./DashboardCreatorInline-szUAhl3C.js";
|
|
4
|
+
import { v as ei, a as ni } from "./main-B49yDSSL.js";
|
|
5
5
|
var oi = Object.defineProperty, ii = (e, t, n) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, f = (e, t, n) => (ii(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
6
6
|
function ri(e) {
|
|
7
7
|
let t = 0, n;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject as m, ref as p, computed as D, createElementBlock as l, createCommentVNode as C, openBlock as i, createElementVNode as r, withDirectives as y, withKeys as E, vModelText as _, Fragment as k, renderList as I, toDisplayString as N, vModelSelect as P } from "vue";
|
|
2
|
-
import { a as V } from "./main-
|
|
2
|
+
import { a as V } from "./main-B49yDSSL.js";
|
|
3
3
|
const F = {
|
|
4
4
|
name: "DashboardCreatorInline",
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as he, computed as pe, createElementBlock as u, openBlock as d, createVNode as h, createCommentVNode as I, createBlock as R, unref as e, Fragment as k, renderList as be, normalizeStyle as fe, createElementVNode as r, Teleport as x, toDisplayString as ge, createTextVNode as A, nextTick as ve } from "vue";
|
|
2
|
-
import { u as Ce, D as ye, _ as Ie, a as ke, b as we, C as Te, M as Me } from "./useDashboard-
|
|
3
|
-
import { D as De } from "./DashboardCreatorInline-
|
|
4
|
-
import { v as Ee, B as g, a as Se } from "./main-
|
|
2
|
+
import { u as Ce, D as ye, _ as Ie, a as ke, b as we, C as Te, M as Me } from "./useDashboard-BrcAKpuC.js";
|
|
3
|
+
import { D as De } from "./DashboardCreatorInline-szUAhl3C.js";
|
|
4
|
+
import { v as Ee, B as g, a as Se } from "./main-B49yDSSL.js";
|
|
5
5
|
const Fe = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "dashboard-mobile-container"
|
|
@@ -2,7 +2,7 @@ var Oe = Object.defineProperty;
|
|
|
2
2
|
var Be = (t, e, o) => e in t ? Oe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
3
|
var ee = (t, e, o) => Be(t, typeof e != "symbol" ? e + "" : e, o);
|
|
4
4
|
import { defineComponent as ae, ref as S, inject as Y, createElementBlock as l, createCommentVNode as A, openBlock as r, createElementVNode as s, withModifiers as k, withDirectives as N, vModelText as G, vModelSelect as Ee, vModelCheckbox as Pe, Fragment as le, computed as J, createBlock as W, withCtx as q, unref as xe, normalizeClass as me, toDisplayString as j, createTextVNode as ie, renderList as fe, resolveComponent as U, createVNode as O, Transition as be, onMounted as Ie, onUnmounted as Ye, normalizeStyle as Fe, watch as Ae, vModelDynamic as Ge, createStaticVNode as je } from "vue";
|
|
5
|
-
import { K as _, a as z, T as Se, L as Ce, l as Ke, m as Qe, n as Ve, o as Re, S as Me, h as Le, e as De, A as _e, O as Ne, G as qe, p as He, q as We, u as ze, g as Xe } from "./main-
|
|
5
|
+
import { K as _, a as z, T as Se, L as Ce, l as Ke, m as Qe, n as Ve, o as Re, S as Me, h as Le, e as De, A as _e, O as Ne, G as qe, p as He, q as We, u as ze, g as Xe } from "./main-B49yDSSL.js";
|
|
6
6
|
function Je(t, e, o, i) {
|
|
7
7
|
const c = [];
|
|
8
8
|
return Object.values(t).sort((a, d) => a.connected && !d.connected ? -1 : !a.connected && d.connected ? 1 : a.name.localeCompare(d.name)).forEach((a) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as z, inject as k, ref as L, computed as Q, watch as U, nextTick as Z, onMounted as x, createElementBlock as p, openBlock as d, createElementVNode as r, createCommentVNode as T, createTextVNode as O, withDirectives as Y, Fragment as B, renderList as j, toDisplayString as w, vModelSelect as ee, normalizeClass as P, withKeys as te, withModifiers as ne, vModelText as se, resolveComponent as G, createBlock as H, createVNode as ae, withCtx as K } from "vue";
|
|
2
|
-
import { y as D, z as oe, a as J, D as ie, B as F, F as re, I as le, J as ce } from "./main-
|
|
2
|
+
import { y as D, z as oe, a as J, D as ie, B as F, F as re, I as le, J as ce } from "./main-B49yDSSL.js";
|
|
3
3
|
const _ = [
|
|
4
4
|
{ name: "id", type: "int" },
|
|
5
5
|
{ name: "quantity", type: "float" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as g, createElementBlock as l, openBlock as o, createVNode as C, withCtx as D, toDisplayString as v, createElementVNode as i, createCommentVNode as k, createTextVNode as R, defineComponent as S, inject as $, ref as f, normalizeStyle as w, createBlock as h, Fragment as E } from "vue";
|
|
2
|
-
import { a as b, w as L, H as q, R as T, x as H } from "./main-
|
|
2
|
+
import { a as b, w as L, H as q, R as T, x as H } from "./main-B49yDSSL.js";
|
|
3
3
|
const A = {
|
|
4
4
|
class: "editor-refinement-container",
|
|
5
5
|
"data-testid": "editor-refinement-container"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { inject as A, ref as S, onMounted as x, computed as G, resolveComponent as D, createBlock as L, openBlock as r, withCtx as k, createElementBlock as h, Fragment as V, renderList as J, createElementVNode as o, createCommentVNode as g, createVNode as N, normalizeClass as U, toDisplayString as K, createTextVNode as H, defineComponent as X, withDirectives as T, vModelText as P, unref as ie, vModelSelect as te, withModifiers as _, watch as le, normalizeStyle as de, vShow as W } from "vue";
|
|
2
|
-
import { S as Y, e as Z, g as B, K as E, a as F, T as Q, L as oe, f as re, u as ne, t as ce, D as ue, h as se, i as ae, j as me, d as ve, k as pe } from "./main-
|
|
3
|
-
import { d as ee, a as be, L as he, C as ye } from "./LLMConnectionList-
|
|
4
|
-
import { D as fe } from "./DashboardCreatorInline-
|
|
2
|
+
import { S as Y, e as Z, g as B, K as E, a as F, T as Q, L as oe, f as re, u as ne, t as ce, D as ue, h as se, i as ae, j as me, d as ve, k as pe } from "./main-B49yDSSL.js";
|
|
3
|
+
import { d as ee, a as be, L as he, C as ye } from "./LLMConnectionList-egIna8uh.js";
|
|
4
|
+
import { D as fe } from "./DashboardCreatorInline-szUAhl3C.js";
|
|
5
5
|
const ge = {
|
|
6
6
|
name: "DocumentationSidebar",
|
|
7
7
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as Q, ref as E, computed as R, createElementBlock as r, openBlock as i, createElementVNode as n, createCommentVNode as S, toDisplayString as a, Fragment as D, renderList as H, normalizeClass as g, renderSlot as W, inject as f, watch as K, resolveComponent as l, createTextVNode as x, createVNode as C, createBlock as h, withCtx as N } from "vue";
|
|
2
|
-
import { a as T, C as q, E as F, M as z, b as J, c as X, d as Y, L as Z, s as $, K as V } from "./main-
|
|
3
|
-
import { L as tt, C as et, d as A } from "./LLMConnectionList-
|
|
4
|
-
import B from "./ResultComponent-
|
|
5
|
-
import ot from "./Dashboard-
|
|
2
|
+
import { a as T, C as q, E as F, M as z, b as J, c as X, d as Y, L as Z, s as $, K as V } from "./main-B49yDSSL.js";
|
|
3
|
+
import { L as tt, C as et, d as A } from "./LLMConnectionList-egIna8uh.js";
|
|
4
|
+
import B from "./ResultComponent-Dqzd51fk.js";
|
|
5
|
+
import ot from "./Dashboard-BzU5l0J1.js";
|
|
6
6
|
const nt = Q({
|
|
7
7
|
name: "FunctionDoc",
|
|
8
8
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as k, inject as g, ref as m, computed as f, createElementBlock as o, openBlock as n, createElementVNode as t, unref as _, Fragment as v, createCommentVNode as c, createTextVNode as l, createVNode as C } from "vue";
|
|
2
|
-
import { k as x, r as T, a as W } from "./main-
|
|
2
|
+
import { k as x, r as T, a as W } from "./main-B49yDSSL.js";
|
|
3
3
|
const E = { class: "container" }, N = { class: "content" }, S = { class: "logo" }, V = ["src"], $ = { key: 1 }, D = { class: "buttons" }, I = { key: 0 }, L = { key: 1 }, j = { key: 1 }, w = /* @__PURE__ */ k({
|
|
4
4
|
__name: "WelcomePage",
|
|
5
5
|
emits: [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as et } from "./main-
|
|
1
|
+
import { a9 as et } from "./main-B49yDSSL.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as f } from "./main-
|
|
1
|
+
import { a9 as f } from "./main-B49yDSSL.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as l } from "./main-
|
|
1
|
+
import { a9 as l } from "./main-B49yDSSL.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as s } from "./main-
|
|
1
|
+
import { a9 as s } from "./main-B49yDSSL.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as lt } from "./main-
|
|
1
|
+
import { a9 as lt } from "./main-B49yDSSL.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { conf as t, language as e } from "./typescript-
|
|
1
|
+
import { conf as t, language as e } from "./typescript-CxjsldWX.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as Et } from "./main-
|
|
1
|
+
import { a9 as Et } from "./main-B49yDSSL.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as l } from "./main-
|
|
1
|
+
import { a9 as l } from "./main-B49yDSSL.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -35,6 +35,20 @@ export interface TrilogyPromptContext {
|
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
37
|
export declare function buildCustomTrilogyPrompt(templateFn: (ctx: TrilogyPromptContext) => string): string;
|
|
38
|
+
export declare const RETURN_TO_USER_TOOL: {
|
|
39
|
+
readonly name: "return_to_user";
|
|
40
|
+
readonly description: "Signal that you are done and return control to the user. You MUST call this tool when you have completed all requested tasks and are ready for the user's next input. Provide a brief summary of what was accomplished. Never end a turn with plain text — always call this tool when finished.";
|
|
41
|
+
readonly input_schema: {
|
|
42
|
+
readonly type: "object";
|
|
43
|
+
readonly properties: {
|
|
44
|
+
readonly message: {
|
|
45
|
+
readonly type: "string";
|
|
46
|
+
readonly description: "A brief summary of what was accomplished or a response to the user.";
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
readonly required: readonly ["message"];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
38
52
|
export declare const CHAT_TOOLS: ({
|
|
39
53
|
readonly name: "connect_data_connection";
|
|
40
54
|
readonly description: "Connect or reconnect a data connection that is not currently active. Use this when a query fails because the connection is not active, or when you need to establish a connection before running queries.";
|
|
@@ -48,6 +62,19 @@ export declare const CHAT_TOOLS: ({
|
|
|
48
62
|
};
|
|
49
63
|
readonly required: readonly ["connection"];
|
|
50
64
|
};
|
|
65
|
+
} | {
|
|
66
|
+
readonly name: "return_to_user";
|
|
67
|
+
readonly description: "Signal that you are done and return control to the user. You MUST call this tool when you have completed all requested tasks and are ready for the user's next input. Provide a brief summary of what was accomplished. Never end a turn with plain text — always call this tool when finished.";
|
|
68
|
+
readonly input_schema: {
|
|
69
|
+
readonly type: "object";
|
|
70
|
+
readonly properties: {
|
|
71
|
+
readonly message: {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
readonly description: "A brief summary of what was accomplished or a response to the user.";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
readonly required: readonly ["message"];
|
|
77
|
+
};
|
|
51
78
|
} | {
|
|
52
79
|
name: string;
|
|
53
80
|
description: string;
|
|
@@ -70,7 +97,6 @@ export declare const CHAT_TOOLS: ({
|
|
|
70
97
|
start_row?: undefined;
|
|
71
98
|
end_row?: undefined;
|
|
72
99
|
artifact_ids?: undefined;
|
|
73
|
-
message?: undefined;
|
|
74
100
|
};
|
|
75
101
|
required: string[];
|
|
76
102
|
};
|
|
@@ -168,7 +194,6 @@ export declare const CHAT_TOOLS: ({
|
|
|
168
194
|
start_row?: undefined;
|
|
169
195
|
end_row?: undefined;
|
|
170
196
|
artifact_ids?: undefined;
|
|
171
|
-
message?: undefined;
|
|
172
197
|
};
|
|
173
198
|
required: string[];
|
|
174
199
|
};
|
|
@@ -191,7 +216,6 @@ export declare const CHAT_TOOLS: ({
|
|
|
191
216
|
start_row?: undefined;
|
|
192
217
|
end_row?: undefined;
|
|
193
218
|
artifact_ids?: undefined;
|
|
194
|
-
message?: undefined;
|
|
195
219
|
};
|
|
196
220
|
required: string[];
|
|
197
221
|
};
|
|
@@ -211,7 +235,6 @@ export declare const CHAT_TOOLS: ({
|
|
|
211
235
|
start_row?: undefined;
|
|
212
236
|
end_row?: undefined;
|
|
213
237
|
artifact_ids?: undefined;
|
|
214
|
-
message?: undefined;
|
|
215
238
|
};
|
|
216
239
|
required: never[];
|
|
217
240
|
};
|
|
@@ -243,7 +266,6 @@ export declare const CHAT_TOOLS: ({
|
|
|
243
266
|
start_row?: undefined;
|
|
244
267
|
end_row?: undefined;
|
|
245
268
|
artifact_ids?: undefined;
|
|
246
|
-
message?: undefined;
|
|
247
269
|
};
|
|
248
270
|
required: string[];
|
|
249
271
|
};
|
|
@@ -266,7 +288,6 @@ export declare const CHAT_TOOLS: ({
|
|
|
266
288
|
start_row?: undefined;
|
|
267
289
|
end_row?: undefined;
|
|
268
290
|
artifact_ids?: undefined;
|
|
269
|
-
message?: undefined;
|
|
270
291
|
};
|
|
271
292
|
required: string[];
|
|
272
293
|
};
|
|
@@ -295,7 +316,6 @@ export declare const CHAT_TOOLS: ({
|
|
|
295
316
|
markdown?: undefined;
|
|
296
317
|
title?: undefined;
|
|
297
318
|
artifact_ids?: undefined;
|
|
298
|
-
message?: undefined;
|
|
299
319
|
};
|
|
300
320
|
required: string[];
|
|
301
321
|
};
|
|
@@ -396,7 +416,6 @@ export declare const CHAT_TOOLS: ({
|
|
|
396
416
|
start_row?: undefined;
|
|
397
417
|
end_row?: undefined;
|
|
398
418
|
artifact_ids?: undefined;
|
|
399
|
-
message?: undefined;
|
|
400
419
|
};
|
|
401
420
|
required: string[];
|
|
402
421
|
};
|
|
@@ -422,30 +441,6 @@ export declare const CHAT_TOOLS: ({
|
|
|
422
441
|
artifact_id?: undefined;
|
|
423
442
|
start_row?: undefined;
|
|
424
443
|
end_row?: undefined;
|
|
425
|
-
message?: undefined;
|
|
426
|
-
};
|
|
427
|
-
required: string[];
|
|
428
|
-
};
|
|
429
|
-
} | {
|
|
430
|
-
name: string;
|
|
431
|
-
description: string;
|
|
432
|
-
input_schema: {
|
|
433
|
-
type: string;
|
|
434
|
-
properties: {
|
|
435
|
-
message: {
|
|
436
|
-
type: string;
|
|
437
|
-
description: string;
|
|
438
|
-
};
|
|
439
|
-
query?: undefined;
|
|
440
|
-
connection?: undefined;
|
|
441
|
-
chartConfig?: undefined;
|
|
442
|
-
import_name?: undefined;
|
|
443
|
-
markdown?: undefined;
|
|
444
|
-
title?: undefined;
|
|
445
|
-
artifact_id?: undefined;
|
|
446
|
-
start_row?: undefined;
|
|
447
|
-
end_row?: undefined;
|
|
448
|
-
artifact_ids?: undefined;
|
|
449
444
|
};
|
|
450
445
|
required: string[];
|
|
451
446
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatAgentPrompt.d.ts","sourceRoot":"","sources":["../../llm/chatAgentPrompt.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAQ/C,MAAM,WAAW,oBAAoB;IACnC,gDAAgD;IAChD,UAAU,EAAE,MAAM,CAAA;IAClB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyOtB,CAAA;AAED,MAAM,WAAW,sBAAsB;IACrC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,oBAAoB,EAAE,MAAM,EAAE,CAAA;IAC9B,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,CAAA;IACvC,aAAa,CAAC,EAAE,UAAU,EAAE,CAAA;IAC5B,6BAA6B,CAAC,EAAE,UAAU,EAAE,CAAA;IAC5C,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACjC;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,sBAAsB,GAAG,MAAM,CAsFlF"}
|
package/dist/llm/consts.d.ts
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
1
|
export declare const DEFAULT_TEMPERATURE = 0.5;
|
|
2
2
|
export declare const DEFAULT_MAX_TOKENS = 10000;
|
|
3
|
+
export declare const PROVIDERS: readonly [{
|
|
4
|
+
readonly value: "demo";
|
|
5
|
+
readonly label: "Demo (limited messages)";
|
|
6
|
+
}, {
|
|
7
|
+
readonly value: "anthropic";
|
|
8
|
+
readonly label: "Anthropic";
|
|
9
|
+
}, {
|
|
10
|
+
readonly value: "google";
|
|
11
|
+
readonly label: "Google";
|
|
12
|
+
}, {
|
|
13
|
+
readonly value: "openai";
|
|
14
|
+
readonly label: "OpenAI";
|
|
15
|
+
}, {
|
|
16
|
+
readonly value: "openrouter";
|
|
17
|
+
readonly label: "OpenRouter";
|
|
18
|
+
}];
|
|
19
|
+
export type ProviderValue = (typeof PROVIDERS)[number]['value'];
|
|
20
|
+
export declare const PROVIDER_LABELS: Record<string, string>;
|
|
21
|
+
export declare const KEY_PLACEHOLDERS: Record<string, string>;
|
|
3
22
|
//# sourceMappingURL=consts.d.ts.map
|
package/dist/llm/consts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../llm/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,MAAM,CAAA;AACtC,eAAO,MAAM,kBAAkB,QAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../llm/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,MAAM,CAAA;AACtC,eAAO,MAAM,kBAAkB,QAAS,CAAA;AAGxC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;EAMZ,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAE/D,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAElD,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAKnD,CAAA"}
|
package/dist/llm/demo.d.ts
CHANGED
|
@@ -22,6 +22,14 @@ export declare class DemoProvider extends OpenRouterProvider {
|
|
|
22
22
|
* automatically fetch a fresh token and retry the request once.
|
|
23
23
|
*/
|
|
24
24
|
generateCompletion(options: LLMRequestOptions, history?: LLMMessage[] | null): Promise<LLMResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Ordered list of preferred model IDs used by getDefaultModel().
|
|
27
|
+
* Override this before creating any DemoProvider instances to change the default model.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* DemoProvider.preferredModels = ['my-org/my-model', ...DemoProvider.preferredModels]
|
|
31
|
+
*/
|
|
32
|
+
static preferredModels: string[];
|
|
25
33
|
static getDefaultModel(models: string[]): string;
|
|
26
34
|
toJSON(): object;
|
|
27
35
|
static fromJSON(json: Record<string, any>): Promise<DemoProvider>;
|
package/dist/llm/demo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"demo.d.ts","sourceRoot":"","sources":["../../llm/demo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAGxE,eAAO,MAAM,sBAAsB,8CAA8C,CAAA;AAiBjF;;;;;GAKG;AAEH,qBAAa,YAAa,SAAQ,kBAAkB;IAC3C,IAAI,EAAE,MAAM,CAAS;gBAEhB,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAKvC;;;;;OAKG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAO5B;;;OAGG;IACG,kBAAkB,CACtB,OAAO,EAAE,iBAAiB,EAC1B,OAAO,GAAE,UAAU,EAAE,GAAG,IAAW,GAClC,OAAO,CAAC,WAAW,CAAC;IAYvB,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM;
|
|
1
|
+
{"version":3,"file":"demo.d.ts","sourceRoot":"","sources":["../../llm/demo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAGxE,eAAO,MAAM,sBAAsB,8CAA8C,CAAA;AAiBjF;;;;;GAKG;AAEH,qBAAa,YAAa,SAAQ,kBAAkB;IAC3C,IAAI,EAAE,MAAM,CAAS;gBAEhB,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAKvC;;;;;OAKG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAO5B;;;OAGG;IACG,kBAAkB,CACtB,OAAO,EAAE,iBAAiB,EAC1B,OAAO,GAAE,UAAU,EAAE,GAAG,IAAW,GAClC,OAAO,CAAC,WAAW,CAAC;IAYvB;;;;;;OAMG;IACH,MAAM,CAAC,eAAe,EAAE,MAAM,EAAE,CAK/B;IAED,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM;IAYhD,MAAM,IAAI,MAAM;WAYH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;CAMxE"}
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -9,8 +9,10 @@ export type { OpenRouterModel, OpenRouterOAuthConfig } from './openrouter';
|
|
|
9
9
|
export { createPrompt, createFilterPrompt, createDashboardPrompt } from './data/prompts';
|
|
10
10
|
export { createChatNamePrompt, extractChatName } from './chatHelpers';
|
|
11
11
|
export type { ModelConceptInput } from './data/models';
|
|
12
|
-
export { buildChatAgentSystemPrompt, buildCustomTrilogyPrompt, CHAT_TOOLS } from './chatAgentPrompt';
|
|
12
|
+
export { buildChatAgentSystemPrompt, buildCustomTrilogyPrompt, CHAT_TOOLS, RETURN_TO_USER_TOOL, } from './chatAgentPrompt';
|
|
13
13
|
export type { ChatAgentPromptOptions, TrilogyPromptContext } from './chatAgentPrompt';
|
|
14
|
+
export { PROVIDERS, PROVIDER_LABELS, KEY_PLACEHOLDERS } from './consts';
|
|
15
|
+
export type { ProviderValue } from './consts';
|
|
14
16
|
export { EDITOR_REFINEMENT_TOOLS, buildEditorRefinementPrompt } from './editorRefinementTools';
|
|
15
17
|
export type { EditorRefinementContext } from './editorRefinementTools';
|
|
16
18
|
export { EditorRefinementToolExecutor } from './editorRefinementToolExecutor';
|
package/dist/llm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../llm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,YAAY,EAA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Y,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAGtD,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,UAAU,EACV,mBAAmB,GACpB,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAGrF,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AACvE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAG7C,OAAO,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAA;AAC9F,YAAY,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAC7E,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolLoopCore.d.ts","sourceRoot":"","sources":["../../llm/toolLoopCore.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAA8B,MAAM,QAAQ,CAAA;AACpG,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"toolLoopCore.d.ts","sourceRoot":"","sources":["../../llm/toolLoopCore.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAA8B,MAAM,QAAQ,CAAA;AACpG,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,C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