@blueking/chat-x 0.0.40 → 0.0.42
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/components/chat-input/ai-slash-input/ai-skill-list/ai-skill-list.vue.d.ts +8 -0
- package/dist/components/chat-input/ai-slash-input/ai-slash-input.vue.d.ts +3 -1
- package/dist/components/chat-input/chat-input.vue.d.ts +3 -1
- package/dist/index.css +1 -1
- package/dist/index.js +549 -499
- package/dist/index.js.map +1 -1
- package/dist/mcp/generated/index.json +1 -1
- package/dist/types/editor.d.ts +6 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { Fragment as e, Teleport as t, Text as n, Transition as r, cloneVNode as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, customRef as p, defineComponent as m, guardReactiveProps as h, h as g, inject as _, isRef as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as T, onMounted as E, onScopeDispose as D, onUnmounted as O, openBlock as k, provide as A, reactive as ee, ref as j, renderList as M, renderSlot as N, resolveDynamicComponent as P, shallowRef as F, toDisplayString as I, toValue as L, unref as R, useAttrs as te, useModel as z, useSlots as ne, useTemplateRef as B, vShow as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { Tippy as
|
|
1
|
+
import { Fragment as e, Teleport as t, Text as n, Transition as r, cloneVNode as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, customRef as p, defineComponent as m, guardReactiveProps as h, h as g, inject as _, isRef as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as T, onMounted as E, onScopeDispose as D, onUnmounted as O, openBlock as k, provide as A, reactive as ee, ref as j, renderList as M, renderSlot as N, resolveDynamicComponent as P, shallowRef as F, toDisplayString as I, toValue as L, unref as R, useAttrs as te, useModel as z, useSlots as ne, useTemplateRef as B, vShow as re, watch as V, watchEffect as ie, watchPostEffect as ae, withCtx as H, withDirectives as U, withModifiers as oe } from "vue";
|
|
2
|
+
import { Button as se, Checkbox as ce, Exception as le, Form as ue, Input as de, Loading as fe, Message as pe, Radio as me, ResizeLayout as he, Select as ge, Switcher as _e, Tab as ve } from "bkui-vue";
|
|
3
|
+
import { Tippy as ye, directive as be } from "vue-tippy";
|
|
4
4
|
import "tippy.js/dist/tippy.css";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
5
|
+
import xe from "tippy.js";
|
|
6
|
+
import Se from "dompurify";
|
|
7
|
+
import Ce from "lodash/throttle";
|
|
8
|
+
import we from "markdown-it-footnote";
|
|
9
|
+
import Te from "markdown-it-ins";
|
|
10
|
+
import Ee from "markdown-it-mark";
|
|
11
|
+
import De from "markdown-it-sub";
|
|
12
|
+
import Oe from "markdown-it-sup";
|
|
13
|
+
import ke from "markdown-it-task-checkbox";
|
|
14
|
+
import Ae from "highlight.js";
|
|
15
|
+
import je from "lodash/debounce";
|
|
16
|
+
import Me from "katex";
|
|
17
17
|
import "katex/dist/katex.min.css";
|
|
18
18
|
//#region \0rolldown/runtime.js
|
|
19
|
-
var
|
|
19
|
+
var Ne = Object.defineProperty, Pe = (e, t) => {
|
|
20
20
|
let n = {};
|
|
21
|
-
for (var r in e)
|
|
21
|
+
for (var r in e) Ne(n, r, {
|
|
22
22
|
get: e[r],
|
|
23
23
|
enumerable: !0
|
|
24
24
|
});
|
|
25
|
-
return t ||
|
|
26
|
-
},
|
|
25
|
+
return t || Ne(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
26
|
+
}, W = /* @__PURE__ */ function(e) {
|
|
27
27
|
return e.Binary = "binary", e.FlowAgent = "flow_agent", e.Function = "function", e.KeyValue = "key_value", e.KnowledgeRag = "knowledge_rag", e.Other = "other", e.ReferenceDocument = "reference_document", e.Text = "text", e;
|
|
28
28
|
}({}), G = /* @__PURE__ */ function(e) {
|
|
29
29
|
return e.Activity = "activity", e.Assistant = "assistant", e.Developer = "developer", e.Guide = "guide", e.Hidden = "hidden", e.HiddenAssistant = "hidden-assistant", e.HiddenGuide = "hidden-guide", e.HiddenSystem = "hidden-system", e.HiddenUser = "hidden-user", e.Info = "info", e.Loading = "loading", e.Pause = "pause", e.Placeholder = "placeholder", e.Reasoning = "reasoning", e.System = "system", e.TemplateAssistant = "template-assistant", e.TemplateGuide = "template-guide", e.TemplateHidden = "template-hidden", e.TemplateSystem = "template-system", e.TemplateUser = "template-user", e.Tool = "tool", e.User = "user", e;
|
|
@@ -1428,7 +1428,7 @@ var Pt = m({
|
|
|
1428
1428
|
"is-disabled": e.disabled
|
|
1429
1429
|
}]),
|
|
1430
1430
|
onClick: i
|
|
1431
|
-
}, [e.loading ? (k(), o(R(
|
|
1431
|
+
}, [e.loading ? (k(), o(R(fe), {
|
|
1432
1432
|
key: 0,
|
|
1433
1433
|
mode: "spin",
|
|
1434
1434
|
size: "mini",
|
|
@@ -1538,7 +1538,7 @@ var Wn = ["src"], Gn = /* @__PURE__ */ m({
|
|
|
1538
1538
|
emits: ["click"],
|
|
1539
1539
|
setup(t, { expose: n, emit: r }) {
|
|
1540
1540
|
let i = t, a = F(!1), l = r;
|
|
1541
|
-
|
|
1541
|
+
V(() => {
|
|
1542
1542
|
var e;
|
|
1543
1543
|
return (e = i.shortcut) == null ? void 0 : e.icon;
|
|
1544
1544
|
}, () => {
|
|
@@ -1706,7 +1706,7 @@ var Wn = ["src"], Gn = /* @__PURE__ */ m({
|
|
|
1706
1706
|
}), O(() => {
|
|
1707
1707
|
document.removeEventListener("selectionchange", ee), document.removeEventListener("mouseup", A), document.removeEventListener("mousedown", j), document.removeEventListener("scroll", P, !0), window.removeEventListener("resize", S), window.removeEventListener("blur", S);
|
|
1708
1708
|
}), (i, a) => (k(), o(t, { to: "body" }, [f(r, { name: "ai-fade" }, {
|
|
1709
|
-
default:
|
|
1709
|
+
default: H(() => [u.value ? (k(), c("div", {
|
|
1710
1710
|
key: 0,
|
|
1711
1711
|
ref_key: "popoverRef",
|
|
1712
1712
|
ref: p,
|
|
@@ -1717,7 +1717,7 @@ var Wn = ["src"], Gn = /* @__PURE__ */ m({
|
|
|
1717
1717
|
zIndex: R(_t),
|
|
1718
1718
|
"--selection-z-index": R(_t)
|
|
1719
1719
|
}),
|
|
1720
|
-
onMousedown: a[2] || (a[2] =
|
|
1720
|
+
onMousedown: a[2] || (a[2] = oe(() => {}, ["stop"]))
|
|
1721
1721
|
}, [l("div", Kn, [N(i.$slots, "default", { shortcuts: n.shortcuts }, () => [(k(!0), c(e, null, M(n.shortcuts.slice(0, n.maxShortcutCount), (t, r) => (k(), c(e, { key: t.id }, [r < n.maxShortcutCount ? (k(), o(Gn, {
|
|
1722
1722
|
key: 0,
|
|
1723
1723
|
shortcut: t,
|
|
@@ -1725,7 +1725,7 @@ var Wn = ["src"], Gn = /* @__PURE__ */ m({
|
|
|
1725
1725
|
}, null, 8, ["shortcut", "onClick"])) : s("", !0)], 64))), 128)), n.shortcuts.length > n.maxShortcutCount ? (k(), c(e, { key: 0 }, [a[3] || (a[3] = l("div", {
|
|
1726
1726
|
class: "ai-divider",
|
|
1727
1727
|
style: { margin: "0 4px" }
|
|
1728
|
-
}, null, -1)), f(R(
|
|
1728
|
+
}, null, -1)), f(R(ye), {
|
|
1729
1729
|
ref_key: "moreMenuRef",
|
|
1730
1730
|
ref: m,
|
|
1731
1731
|
arrow: !1,
|
|
@@ -1740,17 +1740,17 @@ var Wn = ["src"], Gn = /* @__PURE__ */ m({
|
|
|
1740
1740
|
v.value = !0;
|
|
1741
1741
|
})
|
|
1742
1742
|
}, {
|
|
1743
|
-
content:
|
|
1743
|
+
content: H(() => [v.value ? (k(), c("div", qn, [(k(!0), c(e, null, M(n.shortcuts.slice(n.maxShortcutCount), (e) => (k(), o(Gn, {
|
|
1744
1744
|
key: e.id,
|
|
1745
1745
|
mode: "menu",
|
|
1746
1746
|
shortcut: e,
|
|
1747
1747
|
onClick: (t) => C(e)
|
|
1748
1748
|
}, null, 8, ["shortcut", "onClick"]))), 128))])) : s("", !0)]),
|
|
1749
|
-
default:
|
|
1749
|
+
default: H(() => [f(Gn, {
|
|
1750
1750
|
style: { width: "28px" },
|
|
1751
1751
|
onClick: I
|
|
1752
1752
|
}, {
|
|
1753
|
-
default:
|
|
1753
|
+
default: H(() => [f(R(hn), { class: "shortcut-btn-more-icon" })]),
|
|
1754
1754
|
_: 1
|
|
1755
1755
|
})]),
|
|
1756
1756
|
_: 1
|
|
@@ -1778,7 +1778,7 @@ var Wn = ["src"], Gn = /* @__PURE__ */ m({
|
|
|
1778
1778
|
return i.apply(this, arguments);
|
|
1779
1779
|
};
|
|
1780
1780
|
}(), a = null;
|
|
1781
|
-
return
|
|
1781
|
+
return V([t, n.moreItemRef], () => {
|
|
1782
1782
|
x(() => {
|
|
1783
1783
|
i();
|
|
1784
1784
|
});
|
|
@@ -1806,7 +1806,7 @@ var Wn = ["src"], Gn = /* @__PURE__ */ m({
|
|
|
1806
1806
|
}), _ = a(() => i.shortcuts.filter((e) => !g.value.includes(e))), v = F(!1), y = (e, t) => {
|
|
1807
1807
|
e && "$el" in e ? p.value[t] = e.$el : e && e instanceof HTMLElement && (p.value[t] = e);
|
|
1808
1808
|
};
|
|
1809
|
-
|
|
1809
|
+
V(() => i.shortcuts, () => {
|
|
1810
1810
|
p.value = Array(i.shortcuts.length).fill(null);
|
|
1811
1811
|
}, { deep: !0 });
|
|
1812
1812
|
let b = () => {
|
|
@@ -1814,7 +1814,7 @@ var Wn = ["src"], Gn = /* @__PURE__ */ m({
|
|
|
1814
1814
|
}, x = (e) => {
|
|
1815
1815
|
v.value = !1, u("selectShortcut", e);
|
|
1816
1816
|
};
|
|
1817
|
-
return
|
|
1817
|
+
return V(v, (e) => {
|
|
1818
1818
|
if (e) {
|
|
1819
1819
|
var t;
|
|
1820
1820
|
(t = m.value) == null || t.show();
|
|
@@ -1837,7 +1837,7 @@ var Wn = ["src"], Gn = /* @__PURE__ */ m({
|
|
|
1837
1837
|
"class",
|
|
1838
1838
|
"shortcut",
|
|
1839
1839
|
"onClick"
|
|
1840
|
-
]))), 128)), _.value.length > 0 ? (k(), o(R(
|
|
1840
|
+
]))), 128)), _.value.length > 0 ? (k(), o(R(ye), {
|
|
1841
1841
|
key: 0,
|
|
1842
1842
|
ref_key: "moreMenuRef",
|
|
1843
1843
|
ref: m,
|
|
@@ -1852,19 +1852,19 @@ var Wn = ["src"], Gn = /* @__PURE__ */ m({
|
|
|
1852
1852
|
v.value = !1;
|
|
1853
1853
|
})
|
|
1854
1854
|
}, {
|
|
1855
|
-
content:
|
|
1855
|
+
content: H(() => [l("div", Xn, [(k(!0), c(e, null, M(_.value, (e) => (k(), o(Gn, {
|
|
1856
1856
|
key: e.id,
|
|
1857
1857
|
mode: "menu",
|
|
1858
1858
|
shortcut: e,
|
|
1859
1859
|
onClick: (t) => x(e)
|
|
1860
1860
|
}, null, 8, ["shortcut", "onClick"]))), 128))])]),
|
|
1861
|
-
default:
|
|
1861
|
+
default: H(() => [f(Gn, {
|
|
1862
1862
|
ref_key: "moreBtnRef",
|
|
1863
1863
|
ref: h,
|
|
1864
1864
|
class: "shortcut-btns-item shortcut-btns-more",
|
|
1865
1865
|
onClick: b
|
|
1866
1866
|
}, {
|
|
1867
|
-
default:
|
|
1867
|
+
default: H(() => [f(R(Sn), { class: "shortcut-btns-more-icon" }), l("span", null, I(R(q)("更多")), 1)]),
|
|
1868
1868
|
_: 1
|
|
1869
1869
|
}, 512)]),
|
|
1870
1870
|
_: 1
|
|
@@ -1914,7 +1914,7 @@ var tr = ["options"], nr = ["options"], rr = { class: "shortcut-render" }, ir =
|
|
|
1914
1914
|
emits: ["close", "submit"],
|
|
1915
1915
|
setup(t, { emit: n }) {
|
|
1916
1916
|
let r = t, i = n, a = B("formRef"), s = ee({}), u = F({});
|
|
1917
|
-
|
|
1917
|
+
ie(() => {
|
|
1918
1918
|
var e;
|
|
1919
1919
|
if (r.formModel) for (let e in r.formModel) s[e] = r.formModel[e];
|
|
1920
1920
|
for (let o of (e = r == null ? void 0 : r.components) == null ? [] : e) if (o.key) {
|
|
@@ -1951,13 +1951,13 @@ var tr = ["options"], nr = ["options"], rr = { class: "shortcut-render" }, ir =
|
|
|
1951
1951
|
});
|
|
1952
1952
|
switch (e.type) {
|
|
1953
1953
|
case "text":
|
|
1954
|
-
case "input": return g(
|
|
1955
|
-
case "textarea": return g(
|
|
1956
|
-
case "number": return g(
|
|
1957
|
-
case "select": return g(
|
|
1958
|
-
case "checkboxGroup": return g(
|
|
1959
|
-
case "radioGroup": return g(
|
|
1960
|
-
case "switcher": return g(
|
|
1954
|
+
case "input": return g(de, u);
|
|
1955
|
+
case "textarea": return g(de, Y(Y({}, u), {}, { type: "textarea" }));
|
|
1956
|
+
case "number": return g(de, Y(Y({}, u), {}, { type: "number" }));
|
|
1957
|
+
case "select": return g(ge, u, l == null ? void 0 : l.map((e) => g(ge.Option, Y({}, e))));
|
|
1958
|
+
case "checkboxGroup": return g(ce.Group, u, l == null ? void 0 : l.map((e) => g(ce, Y({ class: "shortcut-render-form-item_checkbox" }, e))));
|
|
1959
|
+
case "radioGroup": return g(me.Group, u, l == null ? void 0 : l.map((e) => g(me, Y({ class: "shortcut-render-form-item_radio" }, e))));
|
|
1960
|
+
case "switcher": return g(_e, u);
|
|
1961
1961
|
default: return null;
|
|
1962
1962
|
}
|
|
1963
1963
|
}, _ = function() {
|
|
@@ -1980,7 +1980,7 @@ var tr = ["options"], nr = ["options"], rr = { class: "shortcut-render" }, ir =
|
|
|
1980
1980
|
class: "header-close",
|
|
1981
1981
|
onClick: y
|
|
1982
1982
|
})
|
|
1983
|
-
]), l("div", or, [f(R(
|
|
1983
|
+
]), l("div", or, [f(R(ue), {
|
|
1984
1984
|
ref_key: "formRef",
|
|
1985
1985
|
ref: a,
|
|
1986
1986
|
class: "shortcut-render-form",
|
|
@@ -1988,28 +1988,28 @@ var tr = ["options"], nr = ["options"], rr = { class: "shortcut-render" }, ir =
|
|
|
1988
1988
|
model: s,
|
|
1989
1989
|
rules: u.value
|
|
1990
1990
|
}, {
|
|
1991
|
-
default:
|
|
1991
|
+
default: H(() => [(k(!0), c(e, null, M(t.components, (e, t) => (k(), o(R(ue).FormItem, b({
|
|
1992
1992
|
key: e.id,
|
|
1993
1993
|
ref_for: !0
|
|
1994
1994
|
}, m(e), {
|
|
1995
1995
|
class: "shortcut-render-form-item",
|
|
1996
1996
|
style: { gridColumn: p(e, t) }
|
|
1997
1997
|
}), {
|
|
1998
|
-
label:
|
|
1998
|
+
label: H(() => {
|
|
1999
1999
|
var t, n;
|
|
2000
2000
|
return [l("span", sr, I((t = e.name) == null ? (n = e.formItemProps) == null ? void 0 : n.label : t), 1)];
|
|
2001
2001
|
}),
|
|
2002
|
-
default:
|
|
2002
|
+
default: H(() => [(k(), o(P(h(e))))]),
|
|
2003
2003
|
_: 2
|
|
2004
|
-
}, 1040, ["style"]))), 128)), f(R(
|
|
2005
|
-
default:
|
|
2004
|
+
}, 1040, ["style"]))), 128)), f(R(ue).FormItem, { class: "shortcut-footer-item" }, {
|
|
2005
|
+
default: H(() => [l("div", cr, [f(R(se), {
|
|
2006
2006
|
theme: "primary",
|
|
2007
2007
|
onClick: _
|
|
2008
2008
|
}, {
|
|
2009
|
-
default:
|
|
2009
|
+
default: H(() => [d(I(R(q)("提交")), 1)]),
|
|
2010
2010
|
_: 1
|
|
2011
|
-
}), f(R(
|
|
2012
|
-
default:
|
|
2011
|
+
}), f(R(se), { onClick: v }, {
|
|
2012
|
+
default: H(() => [d(I(R(q)("取消")), 1)]),
|
|
2013
2013
|
_: 1
|
|
2014
2014
|
})])]),
|
|
2015
2015
|
_: 1
|
|
@@ -2019,7 +2019,7 @@ var tr = ["options"], nr = ["options"], rr = { class: "shortcut-render" }, ir =
|
|
|
2019
2019
|
}
|
|
2020
2020
|
}), ur = (e, t) => {
|
|
2021
2021
|
let { easing: n = "ease-in-out", fadeDuration: r = 200 } = t || {}, i = j([]), o = j("");
|
|
2022
|
-
return
|
|
2022
|
+
return V(() => e, (e) => {
|
|
2023
2023
|
let t = L(e);
|
|
2024
2024
|
if (t === o.value) return;
|
|
2025
2025
|
if (!(o.value && t.indexOf(o.value) === 0)) {
|
|
@@ -2054,7 +2054,7 @@ var tr = ["options"], nr = ["options"], rr = { class: "shortcut-render" }, ir =
|
|
|
2054
2054
|
t = fr(e);
|
|
2055
2055
|
}
|
|
2056
2056
|
else t = fr(e);
|
|
2057
|
-
|
|
2057
|
+
pe({
|
|
2058
2058
|
message: q(t ? "复制成功" : "复制失败"),
|
|
2059
2059
|
theme: t ? "success" : "error"
|
|
2060
2060
|
});
|
|
@@ -2128,7 +2128,7 @@ var tr = ["options"], nr = ["options"], rr = { class: "shortcut-render" }, ir =
|
|
|
2128
2128
|
e.deltaY < 0 && (o.value = !1);
|
|
2129
2129
|
};
|
|
2130
2130
|
return E(() => {
|
|
2131
|
-
|
|
2131
|
+
ie(() => {
|
|
2132
2132
|
let a = L(e), c = L(t);
|
|
2133
2133
|
!a || !c || (r == null || r.disconnect(), a.removeEventListener("scroll", u), a.removeEventListener("wheel", d), u(), r = new IntersectionObserver((e) => {
|
|
2134
2134
|
e.forEach((e) => {
|
|
@@ -2227,7 +2227,7 @@ var Sr = () => _(yr), Cr = Symbol("GLOBAL_CONFIG_TOKEN"), wr = (e) => (A(Cr, e),
|
|
|
2227
2227
|
e.id
|
|
2228
2228
|
].filter(Boolean)) : [];
|
|
2229
2229
|
},
|
|
2230
|
-
[
|
|
2230
|
+
[W.FlowAgent](e) {
|
|
2231
2231
|
let t = e.content;
|
|
2232
2232
|
return t ? t.flatMap((e) => {
|
|
2233
2233
|
var t;
|
|
@@ -2240,7 +2240,7 @@ var Sr = () => _(yr), Cr = Symbol("GLOBAL_CONFIG_TOKEN"), wr = (e) => (A(Cr, e),
|
|
|
2240
2240
|
if (e.role === G.Activity) return e.activityType;
|
|
2241
2241
|
}, kr = (e) => {
|
|
2242
2242
|
var t;
|
|
2243
|
-
return e.role === G.Assistant && !!((t = e.toolCalls) != null && t.length) || e.role === G.Activity && e.activityType ===
|
|
2243
|
+
return e.role === G.Assistant && !!((t = e.toolCalls) != null && t.length) || e.role === G.Activity && e.activityType === W.FlowAgent;
|
|
2244
2244
|
}, Ar = (e, t) => {
|
|
2245
2245
|
let n = Or(e);
|
|
2246
2246
|
if (!n) return !0;
|
|
@@ -2248,7 +2248,7 @@ var Sr = () => _(yr), Cr = Symbol("GLOBAL_CONFIG_TOKEN"), wr = (e) => (A(Cr, e),
|
|
|
2248
2248
|
return r ? r(e).some((e) => e.toLowerCase().includes(t)) : !0;
|
|
2249
2249
|
}, jr = (e) => {
|
|
2250
2250
|
let t = j([]), n = F(!1);
|
|
2251
|
-
|
|
2251
|
+
ie(() => {
|
|
2252
2252
|
var n;
|
|
2253
2253
|
let r = [], i = [];
|
|
2254
2254
|
for (let t of e.messages.value) {
|
|
@@ -2332,9 +2332,9 @@ var Sr = () => _(yr), Cr = Symbol("GLOBAL_CONFIG_TOKEN"), wr = (e) => (A(Cr, e),
|
|
|
2332
2332
|
if (typeof t == "string") {
|
|
2333
2333
|
e.userMessageTitle = t;
|
|
2334
2334
|
break;
|
|
2335
|
-
} else if (Array.isArray(t) && t.some((e) => e.type ===
|
|
2335
|
+
} else if (Array.isArray(t) && t.some((e) => e.type === W.Text)) {
|
|
2336
2336
|
var r;
|
|
2337
|
-
e.userMessageTitle = (r = t.filter((e) => e.type ===
|
|
2337
|
+
e.userMessageTitle = (r = t.filter((e) => e.type === W.Text)) == null ? void 0 : r.join("\n");
|
|
2338
2338
|
break;
|
|
2339
2339
|
}
|
|
2340
2340
|
}
|
|
@@ -2350,7 +2350,7 @@ var Sr = () => _(yr), Cr = Symbol("GLOBAL_CONFIG_TOKEN"), wr = (e) => (A(Cr, e),
|
|
|
2350
2350
|
var e;
|
|
2351
2351
|
return (e = t.value) == null ? void 0 : e.filter((e) => e.type === G.User).every((e) => e.checked);
|
|
2352
2352
|
});
|
|
2353
|
-
return
|
|
2353
|
+
return V(e.selectedUserMessages, (e) => {
|
|
2354
2354
|
if (t.value.length) for (let [r, i] of t.value.entries()) {
|
|
2355
2355
|
var n;
|
|
2356
2356
|
if (i.type === G.Assistant) continue;
|
|
@@ -2445,7 +2445,7 @@ var Sr = () => _(yr), Cr = Symbol("GLOBAL_CONFIG_TOKEN"), wr = (e) => (A(Cr, e),
|
|
|
2445
2445
|
var o;
|
|
2446
2446
|
if (a == null || a.stopPropagation(), !((o = t.value) != null && o.disabled) && i(e) && (r = !0, !n)) {
|
|
2447
2447
|
var s, c, l, u;
|
|
2448
|
-
n =
|
|
2448
|
+
n = xe(e, Object.assign({}, {
|
|
2449
2449
|
trigger: "mouseenter",
|
|
2450
2450
|
delay: [Xr, 0],
|
|
2451
2451
|
content: ((s = t.value) == null ? void 0 : s.text) || ((c = t.value) == null ? void 0 : c.content) || e.innerText,
|
|
@@ -2480,7 +2480,7 @@ var Sr = () => _(yr), Cr = Symbol("GLOBAL_CONFIG_TOKEN"), wr = (e) => (A(Cr, e),
|
|
|
2480
2480
|
var t;
|
|
2481
2481
|
e.removeEventListener("mouseenter", e.mouseEnterFunc), e.removeEventListener("mouseleave", e.mouseLeaveFunc), (t = e.unObserverFunc) == null || t.call(e), e.mouseEnterFunc = void 0, e.mouseLeaveFunc = void 0, e.unObserverFunc = void 0;
|
|
2482
2482
|
}
|
|
2483
|
-
}, Qr = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, $r = /[\0-\x1F\x7F-\x9F]/, ei = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, ti = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, ni = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, ri = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, ii = /* @__PURE__ */
|
|
2483
|
+
}, Qr = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, $r = /[\0-\x1F\x7F-\x9F]/, ei = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, ti = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, ni = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, ri = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, ii = /* @__PURE__ */ Pe({
|
|
2484
2484
|
Any: () => Qr,
|
|
2485
2485
|
Cc: () => $r,
|
|
2486
2486
|
Cf: () => ei,
|
|
@@ -2856,7 +2856,7 @@ Mi.prototype.parse = function(e, t) {
|
|
|
2856
2856
|
};
|
|
2857
2857
|
//#endregion
|
|
2858
2858
|
//#region ../../node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs
|
|
2859
|
-
var Wi = /* @__PURE__ */
|
|
2859
|
+
var Wi = /* @__PURE__ */ Pe({
|
|
2860
2860
|
decode: () => Di,
|
|
2861
2861
|
encode: () => Ai,
|
|
2862
2862
|
format: () => ji,
|
|
@@ -3173,7 +3173,7 @@ function Na(e, t = Oa.Legacy) {
|
|
|
3173
3173
|
}
|
|
3174
3174
|
//#endregion
|
|
3175
3175
|
//#region src/markdown-it/common/utils.mjs
|
|
3176
|
-
var Pa = /* @__PURE__ */
|
|
3176
|
+
var Pa = /* @__PURE__ */ Pe({
|
|
3177
3177
|
arrayReplaceAt: () => Ra,
|
|
3178
3178
|
assign: () => za,
|
|
3179
3179
|
escapeHtml: () => Qa,
|
|
@@ -3408,7 +3408,7 @@ function lo(e, t, n, r) {
|
|
|
3408
3408
|
}
|
|
3409
3409
|
//#endregion
|
|
3410
3410
|
//#region src/markdown-it/helpers/index.mjs
|
|
3411
|
-
var uo = /* @__PURE__ */
|
|
3411
|
+
var uo = /* @__PURE__ */ Pe({
|
|
3412
3412
|
parseLinkDestination: () => so,
|
|
3413
3413
|
parseLinkLabel: () => co,
|
|
3414
3414
|
parseLinkTitle: () => lo
|
|
@@ -5317,14 +5317,14 @@ var ac = (e) => {
|
|
|
5317
5317
|
} })), s = (e) => {
|
|
5318
5318
|
n.disabled || r("click", n, e);
|
|
5319
5319
|
};
|
|
5320
|
-
return (t, n) =>
|
|
5320
|
+
return (t, n) => U((k(), c("div", {
|
|
5321
5321
|
class: S(["ai-tool-btn", {
|
|
5322
5322
|
"is-active": e.active,
|
|
5323
5323
|
"is-disabled": e.disabled
|
|
5324
5324
|
}]),
|
|
5325
5325
|
style: w({ "--ai-tool-btn-active-color": e.id === "like" || e.id === "activeLike" ? "#3a84ff" : "#E71818" }),
|
|
5326
5326
|
onClick: s
|
|
5327
|
-
}, [e.id in R(Nn) ? (k(), o(P(R(Nn)[e.id]), { key: 0 })) : (k(), c("div", Sc, I(e.name), 1))], 6)), [[R(
|
|
5327
|
+
}, [e.id in R(Nn) ? (k(), o(P(R(Nn)[e.id]), { key: 0 })) : (k(), c("div", Sc, I(e.name), 1))], 6)), [[R(be), i.value]]);
|
|
5328
5328
|
}
|
|
5329
5329
|
}), wc = { class: "code-content-wrapper" }, Tc = { class: "code-content-header" }, Ec = { class: "code-header-language" }, Dc = { class: "hljs-pre" }, Oc = ["innerHTML"], kc = ["innerHTML"], Ac = 500, jc = /* @__PURE__ */ m({
|
|
5330
5330
|
__name: "code-content",
|
|
@@ -5346,11 +5346,11 @@ var ac = (e) => {
|
|
|
5346
5346
|
}, b = (e) => {
|
|
5347
5347
|
var t;
|
|
5348
5348
|
let n = Et[e] || e;
|
|
5349
|
-
if (
|
|
5349
|
+
if (Ae.getLanguage(n)) return n;
|
|
5350
5350
|
let r = (t = e.match(/\.\w+$/)) == null ? void 0 : t[0];
|
|
5351
5351
|
if (r) {
|
|
5352
5352
|
let e = r.slice(1);
|
|
5353
|
-
if (
|
|
5353
|
+
if (Ae.getLanguage(e)) return e;
|
|
5354
5354
|
}
|
|
5355
5355
|
return null;
|
|
5356
5356
|
}, w = (e, t) => {
|
|
@@ -5359,7 +5359,7 @@ var ac = (e) => {
|
|
|
5359
5359
|
if (r !== void 0) return r;
|
|
5360
5360
|
let i;
|
|
5361
5361
|
if (t) try {
|
|
5362
|
-
i =
|
|
5362
|
+
i = Ae.highlight(e, {
|
|
5363
5363
|
language: t,
|
|
5364
5364
|
ignoreIllegals: !0
|
|
5365
5365
|
}).value;
|
|
@@ -5392,7 +5392,7 @@ var ac = (e) => {
|
|
|
5392
5392
|
let { language: e } = y(r.token), t = ["hljs"];
|
|
5393
5393
|
return e && t.push(`language-${e}`), t.join(" ");
|
|
5394
5394
|
});
|
|
5395
|
-
|
|
5395
|
+
V(() => r.token, (e) => {
|
|
5396
5396
|
let { content: t, language: n } = y(e);
|
|
5397
5397
|
u.value = n, E(t, n), x(() => {
|
|
5398
5398
|
i("mounted", { get el() {
|
|
@@ -5446,7 +5446,7 @@ var ac = (e) => {
|
|
|
5446
5446
|
src: {}
|
|
5447
5447
|
},
|
|
5448
5448
|
setup(e) {
|
|
5449
|
-
let t = /* @__PURE__ */ new Set(), n = e, r = a(() => t.has(n.src)), i = F(!r.value), o = F(!1), s = F(r.value), u = r.value ? n.src : "", d = a(() => r.value ? !1 : !!(!h.value || i.value || !s.value && o.value)), p = a(() => s.value && o.value && !i.value), m =
|
|
5449
|
+
let t = /* @__PURE__ */ new Set(), n = e, r = a(() => t.has(n.src)), i = F(!r.value), o = F(!1), s = F(r.value), u = r.value ? n.src : "", d = a(() => r.value ? !1 : !!(!h.value || i.value || !s.value && o.value)), p = a(() => s.value && o.value && !i.value), m = je(() => {
|
|
5450
5450
|
s.value = !0;
|
|
5451
5451
|
}, 500), h = a(() => {
|
|
5452
5452
|
var e;
|
|
@@ -5459,7 +5459,7 @@ var ac = (e) => {
|
|
|
5459
5459
|
if (!e.includes(".") && !e.startsWith("localhost")) return !1;
|
|
5460
5460
|
}
|
|
5461
5461
|
return !0;
|
|
5462
|
-
}), g =
|
|
5462
|
+
}), g = Ce((e) => {
|
|
5463
5463
|
if (!h.value) {
|
|
5464
5464
|
i.value = !0, o.value = !1;
|
|
5465
5465
|
return;
|
|
@@ -5480,15 +5480,15 @@ var ac = (e) => {
|
|
|
5480
5480
|
leading: !0,
|
|
5481
5481
|
trailing: !0
|
|
5482
5482
|
});
|
|
5483
|
-
return
|
|
5483
|
+
return V(() => n.src, (e) => {
|
|
5484
5484
|
if (t.has(e)) {
|
|
5485
5485
|
u = e, i.value = !1, o.value = !1, s.value = !0;
|
|
5486
5486
|
return;
|
|
5487
5487
|
}
|
|
5488
5488
|
s.value = !1, m(), h.value ? g(e) : (i.value = !0, o.value = !1);
|
|
5489
|
-
}, { immediate: !0 }),
|
|
5489
|
+
}, { immediate: !0 }), V(h, (e) => {
|
|
5490
5490
|
e && n.src && g(n.src);
|
|
5491
|
-
}), (t, n) => (k(), c("span", Mc, [d.value ? (k(), c("span", Nc, [f(R(
|
|
5491
|
+
}), (t, n) => (k(), c("span", Mc, [d.value ? (k(), c("span", Nc, [f(R(fe), {
|
|
5492
5492
|
mode: "spin",
|
|
5493
5493
|
size: "mini",
|
|
5494
5494
|
theme: "primary"
|
|
@@ -5655,7 +5655,7 @@ var ac = (e) => {
|
|
|
5655
5655
|
if (n > 5 || !e.trim()) return null;
|
|
5656
5656
|
try {
|
|
5657
5657
|
let n = l(e);
|
|
5658
|
-
return
|
|
5658
|
+
return Me.renderToString(n, {
|
|
5659
5659
|
output: "html",
|
|
5660
5660
|
throwOnError: !1,
|
|
5661
5661
|
displayMode: t,
|
|
@@ -5710,7 +5710,7 @@ var ac = (e) => {
|
|
|
5710
5710
|
}
|
|
5711
5711
|
return t;
|
|
5712
5712
|
}, g = a(() => t.token.filter((e) => e.type === "math_block").length === 1 && t.token.length <= 1), _ = a(() => g.value ? "div" : "span"), v = a(() => g.value ? "block-latex-content" : "inline-latex-content");
|
|
5713
|
-
return
|
|
5713
|
+
return V(() => t.token, Ce(() => {
|
|
5714
5714
|
let e = h(t.token);
|
|
5715
5715
|
e && n.value !== e && (n.value = e);
|
|
5716
5716
|
}, 100, {
|
|
@@ -5749,7 +5749,7 @@ var ac = (e) => {
|
|
|
5749
5749
|
}
|
|
5750
5750
|
return "";
|
|
5751
5751
|
};
|
|
5752
|
-
return
|
|
5752
|
+
return V(() => i.token, Ce(function() {
|
|
5753
5753
|
var e = X(function* (e) {
|
|
5754
5754
|
let t = u(e);
|
|
5755
5755
|
if (t === s) return;
|
|
@@ -5983,11 +5983,11 @@ var ac = (e) => {
|
|
|
5983
5983
|
"encoding",
|
|
5984
5984
|
"style"
|
|
5985
5985
|
]
|
|
5986
|
-
}, r = t, i = vr(), a = F([]), s = new nc().use(fc).use(
|
|
5986
|
+
}, r = t, i = vr(), a = F([]), s = new nc().use(fc).use(we).use(Te).use(Ee).use(De).use(Oe).use(ke).use(yc).use(_c, { katexOptions: { strict: !1 } }).use(xc, /^hljs-(left|center|right)$/), l = {
|
|
5987
5987
|
html: !0,
|
|
5988
5988
|
mditOptions: s.options,
|
|
5989
5989
|
renderer: s.renderer,
|
|
5990
|
-
sanitize: (e) =>
|
|
5990
|
+
sanitize: (e) => Se.sanitize(e, n)
|
|
5991
5991
|
}, u = (e) => e.some((e) => e.type === "fence" ? (e.info ? e.info.trim() : "") === "mermaid" : !1), d = (e) => e.some((e) => e.type === "fence" ? (e.info ? e.info.trim() : "") !== "mermaid" : e.type === "code_block"), f = (e) => {
|
|
5992
5992
|
let t = (e) => e.type === "math_inline" || e.type === "math_block" ? !0 : e.children && e.children.length > 0 ? e.children.some(t) : !1;
|
|
5993
5993
|
return e.some(t);
|
|
@@ -6025,7 +6025,7 @@ var ac = (e) => {
|
|
|
6025
6025
|
}
|
|
6026
6026
|
return t;
|
|
6027
6027
|
};
|
|
6028
|
-
|
|
6028
|
+
V(() => r.content, Ce((e) => {
|
|
6029
6029
|
if (!e) {
|
|
6030
6030
|
a.value = [];
|
|
6031
6031
|
return;
|
|
@@ -6042,7 +6042,7 @@ var ac = (e) => {
|
|
|
6042
6042
|
leading: !0,
|
|
6043
6043
|
trailing: !0
|
|
6044
6044
|
}), { immediate: !0 });
|
|
6045
|
-
let m =
|
|
6045
|
+
let m = Ce(() => {
|
|
6046
6046
|
var e;
|
|
6047
6047
|
if ((i == null || (e = i.value) == null ? void 0 : e.autoScrollEnabled) !== !1) {
|
|
6048
6048
|
var t, n;
|
|
@@ -6068,7 +6068,7 @@ var ac = (e) => {
|
|
|
6068
6068
|
token: t,
|
|
6069
6069
|
onMounted: R(m)
|
|
6070
6070
|
}, {
|
|
6071
|
-
header:
|
|
6071
|
+
header: H(({ language: e, token: t }) => [N(n.$slots, "codeHeader", b({ ref_for: !0 }, {
|
|
6072
6072
|
language: e,
|
|
6073
6073
|
token: t
|
|
6074
6074
|
}))]),
|
|
@@ -6100,17 +6100,17 @@ var ac = (e) => {
|
|
|
6100
6100
|
class: "ai-reference-item-title",
|
|
6101
6101
|
onClick: (t) => e.url && r(e.url, t)
|
|
6102
6102
|
}, I(e.title), 9, dl),
|
|
6103
|
-
e.url && e.originFileUrl ?
|
|
6103
|
+
e.url && e.originFileUrl ? U((k(), o(R(Lt), {
|
|
6104
6104
|
key: 0,
|
|
6105
6105
|
onClick: (t) => e.url && r(e.url, t)
|
|
6106
|
-
}, null, 8, ["onClick"])), [[R(
|
|
6106
|
+
}, null, 8, ["onClick"])), [[R(be), {
|
|
6107
6107
|
content: R(q)("预览内容"),
|
|
6108
6108
|
theme: "ai-chat-box"
|
|
6109
6109
|
}]]) : s("", !0),
|
|
6110
|
-
e.url && e.originFileUrl ?
|
|
6110
|
+
e.url && e.originFileUrl ? U((k(), o(R(Rt), {
|
|
6111
6111
|
key: 1,
|
|
6112
6112
|
onClick: (t) => e.originFileUrl && r(e.originFileUrl, t)
|
|
6113
|
-
}, null, 8, ["onClick"])), [[R(
|
|
6113
|
+
}, null, 8, ["onClick"])), [[R(be), {
|
|
6114
6114
|
content: R(q)("跳转详情"),
|
|
6115
6115
|
theme: "ai-chat-box"
|
|
6116
6116
|
}]]) : s("", !0)
|
|
@@ -6125,7 +6125,7 @@ var ac = (e) => {
|
|
|
6125
6125
|
},
|
|
6126
6126
|
setup(e) {
|
|
6127
6127
|
let t = ne(), n = e, r = a(() => {
|
|
6128
|
-
if (typeof n.content == "string" || n.type ===
|
|
6128
|
+
if (typeof n.content == "string" || n.type === W.Text) return g(ul, {
|
|
6129
6129
|
content: n.content,
|
|
6130
6130
|
status: n.status
|
|
6131
6131
|
}, { codeHeader: (e) => {
|
|
@@ -6551,11 +6551,11 @@ var ac = (e) => {
|
|
|
6551
6551
|
}
|
|
6552
6552
|
}, B = (e) => {
|
|
6553
6553
|
w = !0, L(e.dataTransfer);
|
|
6554
|
-
},
|
|
6554
|
+
}, re = () => {
|
|
6555
6555
|
w = !1;
|
|
6556
6556
|
};
|
|
6557
|
-
return T.addEventListener("selectionchange", I), n.addEventListener("keydown", A), n.addEventListener("input", ee), n.addEventListener("beforeinput", j), n.addEventListener("compositionstart", M), n.addEventListener("compositionend", N), n.addEventListener("focus", P), n.addEventListener("blur", F), n.addEventListener("copy", R), n.addEventListener("cut", te), n.addEventListener("paste", z), n.addEventListener("drop", ne), n.addEventListener("dragstart", B), n.addEventListener("dragend",
|
|
6558
|
-
y || (y = !0, d = Fu, n.contentEditable = a, n.role = m, n.ariaMultiLine = g, n.ariaReadOnly = _, n.style.whiteSpace = v, D._dispose(), T.removeEventListener("selectionchange", I), n.removeEventListener("keydown", A), n.removeEventListener("input", ee), n.removeEventListener("beforeinput", j), n.removeEventListener("compositionstart", M), n.removeEventListener("compositionend", N), n.removeEventListener("focus", P), n.removeEventListener("blur", F), n.removeEventListener("copy", R), n.removeEventListener("cut", te), n.removeEventListener("paste", z), n.removeEventListener("drop", ne), n.removeEventListener("dragstart", B), n.removeEventListener("dragend",
|
|
6557
|
+
return T.addEventListener("selectionchange", I), n.addEventListener("keydown", A), n.addEventListener("input", ee), n.addEventListener("beforeinput", j), n.addEventListener("compositionstart", M), n.addEventListener("compositionend", N), n.addEventListener("focus", P), n.addEventListener("blur", F), n.addEventListener("copy", R), n.addEventListener("cut", te), n.addEventListener("paste", z), n.addEventListener("drop", ne), n.addEventListener("dragstart", B), n.addEventListener("dragend", re), () => {
|
|
6558
|
+
y || (y = !0, d = Fu, n.contentEditable = a, n.role = m, n.ariaMultiLine = g, n.ariaReadOnly = _, n.style.whiteSpace = v, D._dispose(), T.removeEventListener("selectionchange", I), n.removeEventListener("keydown", A), n.removeEventListener("input", ee), n.removeEventListener("beforeinput", j), n.removeEventListener("compositionstart", M), n.removeEventListener("compositionend", N), n.removeEventListener("focus", P), n.removeEventListener("blur", F), n.removeEventListener("copy", R), n.removeEventListener("cut", te), n.removeEventListener("paste", z), n.removeEventListener("drop", ne), n.removeEventListener("dragstart", B), n.removeEventListener("dragend", re));
|
|
6559
6559
|
};
|
|
6560
6560
|
},
|
|
6561
6561
|
command: (e, ...t) => {
|
|
@@ -6650,7 +6650,7 @@ var ac = (e) => {
|
|
|
6650
6650
|
if (r != null && r.length) {
|
|
6651
6651
|
let e = (St / (1024 * 1024)).toFixed(1), t = Array.from(r), i = [], a = 0;
|
|
6652
6652
|
for (let e of t) e.size > 0 && e.size < 2516582.4 ? i.push(e) : a += 1;
|
|
6653
|
-
a > 0 &&
|
|
6653
|
+
a > 0 && pe({
|
|
6654
6654
|
message: ze(a, e, dt),
|
|
6655
6655
|
theme: "error"
|
|
6656
6656
|
}), i.length && n("upload", i);
|
|
@@ -6665,10 +6665,10 @@ var ac = (e) => {
|
|
|
6665
6665
|
multiple: "",
|
|
6666
6666
|
type: "file",
|
|
6667
6667
|
onChange: a
|
|
6668
|
-
}, null, 40, Hu),
|
|
6668
|
+
}, null, 40, Hu), U((k(), c("span", {
|
|
6669
6669
|
class: "ai-shortcut-btn file-upload-btn-icon",
|
|
6670
6670
|
onClick: i
|
|
6671
|
-
}, [N(t.$slots, "default", {}, () => [f(R(dn))])])), [[R(
|
|
6671
|
+
}, [N(t.$slots, "default", {}, () => [f(R(dn))])])), [[R(be), Y(Y({}, e.tippyOptions), {}, {
|
|
6672
6672
|
content: R(q)("上传图片, 最多支持上传 3 个, 最大支持 2.4MB"),
|
|
6673
6673
|
theme: "ai-chat-box",
|
|
6674
6674
|
offset: [0, 16]
|
|
@@ -6815,7 +6815,7 @@ function cd(e) {
|
|
|
6815
6815
|
}, s = () => {
|
|
6816
6816
|
typeof document > "u" || (document.removeEventListener("keydown", a), document.body.style.overflow = "");
|
|
6817
6817
|
};
|
|
6818
|
-
|
|
6818
|
+
V(t, (e) => {
|
|
6819
6819
|
e ? o() : s();
|
|
6820
6820
|
}, { immediate: !0 }), T(() => {
|
|
6821
6821
|
s();
|
|
@@ -6893,7 +6893,7 @@ var ld = ["src"], ud = {
|
|
|
6893
6893
|
n.href = t, n.download = e.name || t.split("/").pop() || "image", n.target = "_blank", document.body.appendChild(n), n.click(), document.body.removeChild(n);
|
|
6894
6894
|
}, B = () => {
|
|
6895
6895
|
x.value = "loaded";
|
|
6896
|
-
},
|
|
6896
|
+
}, re = () => {
|
|
6897
6897
|
x.value = "error";
|
|
6898
6898
|
};
|
|
6899
6899
|
return cd({
|
|
@@ -6902,10 +6902,10 @@ var ld = ["src"], ud = {
|
|
|
6902
6902
|
onPrev: () => A.value && L(),
|
|
6903
6903
|
onNext: () => A.value && te()
|
|
6904
6904
|
}), (i, a) => (k(), o(t, { to: "body" }, [f(r, { name: "ai-image-preview-fade" }, {
|
|
6905
|
-
default:
|
|
6905
|
+
default: H(() => [d.value ? (k(), c("div", {
|
|
6906
6906
|
key: 0,
|
|
6907
6907
|
class: "ai-image-preview",
|
|
6908
|
-
onWheel: a[1] || (a[1] =
|
|
6908
|
+
onWheel: a[1] || (a[1] = oe((...e) => R(y) && R(y)(...e), ["prevent"]))
|
|
6909
6909
|
}, [
|
|
6910
6910
|
l("div", {
|
|
6911
6911
|
class: "ai-image-preview-close",
|
|
@@ -6920,7 +6920,7 @@ var ld = ["src"], ud = {
|
|
|
6920
6920
|
}, [f(R(rn), { class: "ai-image-preview-arrow-icon" })])], 64)) : s("", !0),
|
|
6921
6921
|
l("div", {
|
|
6922
6922
|
class: "ai-image-preview-body",
|
|
6923
|
-
onClick:
|
|
6923
|
+
onClick: oe(M, ["self"]),
|
|
6924
6924
|
onMousedown: a[0] || (a[0] = (...e) => R(b) && R(b)(...e))
|
|
6925
6925
|
}, [
|
|
6926
6926
|
x.value === "error" ? s("", !0) : (k(), c("img", {
|
|
@@ -6929,7 +6929,7 @@ var ld = ["src"], ud = {
|
|
|
6929
6929
|
draggable: "false",
|
|
6930
6930
|
src: O.value.url,
|
|
6931
6931
|
style: w(R(m)),
|
|
6932
|
-
onError:
|
|
6932
|
+
onError: re,
|
|
6933
6933
|
onLoad: B
|
|
6934
6934
|
}, null, 44, ld)),
|
|
6935
6935
|
x.value === "error" ? (k(), c("div", ud, [f(R(on), { class: "ai-image-preview-error-icon" }), l("p", dd, I(R(q)("抱歉,图片加载失败,可尝试重新加载")), 1)])) : s("", !0),
|
|
@@ -6954,7 +6954,7 @@ var ld = ["src"], ud = {
|
|
|
6954
6954
|
onZoomOut: R(_)
|
|
6955
6955
|
}, u({ _: 2 }, [i.$slots.extra ? {
|
|
6956
6956
|
name: "extra",
|
|
6957
|
-
fn:
|
|
6957
|
+
fn: H(() => [N(i.$slots, "extra")]),
|
|
6958
6958
|
key: "0"
|
|
6959
6959
|
} : void 0]), 1032, [
|
|
6960
6960
|
"active-index",
|
|
@@ -7059,7 +7059,43 @@ var ld = ["src"], ud = {
|
|
|
7059
7059
|
onClick: (n) => t.onSelect(e)
|
|
7060
7060
|
}, I(e), 11, wd))), 128))], 512));
|
|
7061
7061
|
}
|
|
7062
|
-
}), Ed =
|
|
7062
|
+
}), Ed = ["onClick"], Dd = ["src", "onError"], Od = {
|
|
7063
|
+
key: 1,
|
|
7064
|
+
class: "ai-skill-list-item-icon ai-skill-list-item-icon--fallback"
|
|
7065
|
+
}, kd = { class: "ai-skill-list-item-info" }, Ad = { class: "ai-skill-list-item-name" }, jd = /* @__PURE__ */ m({
|
|
7066
|
+
__name: "ai-skill-list",
|
|
7067
|
+
props: {
|
|
7068
|
+
onSelect: { type: Function },
|
|
7069
|
+
skills: {}
|
|
7070
|
+
},
|
|
7071
|
+
setup(t) {
|
|
7072
|
+
let n = t, r = ee(/* @__PURE__ */ new Set()), i = B("skillListRef"), { activeIndex: o } = Er({
|
|
7073
|
+
items: a(() => n.skills),
|
|
7074
|
+
onSelect: n.onSelect,
|
|
7075
|
+
menuRef: i
|
|
7076
|
+
});
|
|
7077
|
+
return ie(() => {
|
|
7078
|
+
n.skills, o.value = 0;
|
|
7079
|
+
}), (n, a) => (k(), c("div", {
|
|
7080
|
+
ref_key: "skillListRef",
|
|
7081
|
+
ref: i,
|
|
7082
|
+
class: "ai-skill-list"
|
|
7083
|
+
}, [(k(!0), c(e, null, M(t.skills, (e, n) => {
|
|
7084
|
+
var i;
|
|
7085
|
+
return k(), c("div", {
|
|
7086
|
+
key: e.skill_code,
|
|
7087
|
+
class: S(["ai-skill-list-item", { "is-active": R(o) === n }]),
|
|
7088
|
+
onClick: (n) => t.onSelect(e)
|
|
7089
|
+
}, [e.icon && !r.has(e.skill_code) ? (k(), c("img", {
|
|
7090
|
+
key: 0,
|
|
7091
|
+
src: e.icon,
|
|
7092
|
+
alt: "",
|
|
7093
|
+
class: "ai-skill-list-item-icon",
|
|
7094
|
+
onError: (t) => r.add(e.skill_code)
|
|
7095
|
+
}, null, 40, Dd)) : (k(), c("div", Od, I((i = e.skill_name) == null || (i = i[0]) == null ? void 0 : i.toUpperCase()), 1)), l("div", kd, [l("div", Ad, I(e.skill_name), 1)])], 10, Ed);
|
|
7096
|
+
}), 128))], 512));
|
|
7097
|
+
}
|
|
7098
|
+
}), Md = { class: "ai-slash-item ai-slash-group-title" }, Nd = ["onClick"], Pd = ["onClick"], Fd = ["title"], Id = /* @__PURE__ */ m({
|
|
7063
7099
|
__name: "ai-slash-menu",
|
|
7064
7100
|
props: {
|
|
7065
7101
|
onSelect: { type: Function },
|
|
@@ -7077,7 +7113,7 @@ var ld = ["src"], ud = {
|
|
|
7077
7113
|
onSelect: n.onSelect,
|
|
7078
7114
|
menuRef: r
|
|
7079
7115
|
});
|
|
7080
|
-
|
|
7116
|
+
ie(() => {
|
|
7081
7117
|
let e = [], t = [];
|
|
7082
7118
|
for (let [a, o] of Object.entries(Wr)) {
|
|
7083
7119
|
var r, i;
|
|
@@ -7105,13 +7141,13 @@ var ld = ["src"], ud = {
|
|
|
7105
7141
|
}, [(k(!0), c(e, null, M(o.value, (n, r) => (k(), c(e, null, [n.items.length > 0 ? (k(), c("div", {
|
|
7106
7142
|
key: r,
|
|
7107
7143
|
class: "ai-slash-group"
|
|
7108
|
-
}, [l("div",
|
|
7144
|
+
}, [l("div", Md, [
|
|
7109
7145
|
(k(), c("svg", {
|
|
7110
7146
|
class: "title-icon",
|
|
7111
7147
|
style: w({ transform: i.value.includes(n.type) ? "rotate(90deg)" : "rotate(0deg)" }),
|
|
7112
7148
|
viewBox: "0 0 1024 1024",
|
|
7113
7149
|
onClick: (e) => f(n)
|
|
7114
|
-
}, [...p[0] || (p[0] = [l("path", { d: "M800 512L288 928V96z" }, null, -1)])], 12,
|
|
7150
|
+
}, [...p[0] || (p[0] = [l("path", { d: "M800 512L288 928V96z" }, null, -1)])], 12, Nd)),
|
|
7115
7151
|
l("span", { class: S(`mark-${n.type}`) }, null, 2),
|
|
7116
7152
|
d(" " + I(n.name) + " (" + I(n.items.length) + ") ", 1)
|
|
7117
7153
|
]), i.value.includes(n.type) ? (k(!0), c(e, { key: 0 }, M(n.items, (e) => {
|
|
@@ -7120,23 +7156,23 @@ var ld = ["src"], ud = {
|
|
|
7120
7156
|
key: e.id,
|
|
7121
7157
|
class: S(["ai-slash-item ai-slash-group-item", { "is-active": ((n = a.value) == null || (n = n[R(u)]) == null ? void 0 : n.id) === e.id }]),
|
|
7122
7158
|
onClick: (n) => t.onSelect(e)
|
|
7123
|
-
}, [
|
|
7159
|
+
}, [U((k(), c("span", {
|
|
7124
7160
|
class: "ellipsis-text",
|
|
7125
7161
|
title: e.name
|
|
7126
|
-
}, [d(I(e.name), 1)], 8,
|
|
7162
|
+
}, [d(I(e.name), 1)], 8, Fd)), [[R(Zr), {
|
|
7127
7163
|
text: e.name,
|
|
7128
7164
|
zIndex: 9999999,
|
|
7129
7165
|
placement: "right-start",
|
|
7130
7166
|
theme: "ai-slash-editor-overflow-tips-theme"
|
|
7131
|
-
}]])], 10,
|
|
7167
|
+
}]])], 10, Pd);
|
|
7132
7168
|
}), 128)) : s("", !0)])) : s("", !0)], 64))), 256))], 512)) : s("", !0);
|
|
7133
7169
|
};
|
|
7134
7170
|
}
|
|
7135
|
-
}),
|
|
7171
|
+
}), Ld = (e, t, n, r) => new Cl().delete(n, r), Rd = (e, t, n, r) => new Cl().insert(n, [[{ data: {
|
|
7136
7172
|
label: r.name,
|
|
7137
7173
|
value: r.name,
|
|
7138
7174
|
type: r.type
|
|
7139
|
-
} }]]),
|
|
7175
|
+
} }]]), zd = (e, t, n, r) => new Cl().insert(n, [[{ text: r }]]), Bd = Bu({
|
|
7140
7176
|
multiline: !0,
|
|
7141
7177
|
void: { tag: zu({
|
|
7142
7178
|
is: (e) => e.contentEditable === "false" && e.dataset.tagType !== void 0,
|
|
@@ -7147,13 +7183,14 @@ var ld = ["src"], ud = {
|
|
|
7147
7183
|
}),
|
|
7148
7184
|
plain: (e) => e.label
|
|
7149
7185
|
}) }
|
|
7150
|
-
}),
|
|
7186
|
+
}), Vd = { class: "ai-slash-input-wrapper" }, Hd = ["aria-placeholder"], Ud = { key: 0 }, Wd = ["data-tag-type"], Gd = { key: 1 }, Kd = /* @__PURE__ */ m({
|
|
7151
7187
|
__name: "ai-slash-input",
|
|
7152
7188
|
props: {
|
|
7153
7189
|
modelValue: {},
|
|
7154
7190
|
placeholder: { default: dt ? "Please enter content" : "请输入内容" },
|
|
7155
7191
|
prompts: { default: () => [] },
|
|
7156
|
-
resources: { default: () => [] }
|
|
7192
|
+
resources: { default: () => [] },
|
|
7193
|
+
skills: { default: () => [] }
|
|
7157
7194
|
},
|
|
7158
7195
|
emits: [
|
|
7159
7196
|
"update:modelValue",
|
|
@@ -7172,13 +7209,13 @@ var ld = ["src"], ud = {
|
|
|
7172
7209
|
return ((t = m.resources) == null ? void 0 : t.find((t) => (t.id === e.data.value || t.name === e.data.value) && t.type === e.data.type)) || null;
|
|
7173
7210
|
})) == null ? void 0 : n.filter((e) => !!e)) || []), t();
|
|
7174
7211
|
}
|
|
7175
|
-
})), g = F("slash"), _ = F(""), v = F([]), y = F([]), b, x, C = () => document.body, { commandSelection:
|
|
7176
|
-
|
|
7177
|
-
|
|
7212
|
+
})), g = F("slash"), _ = F(""), v = F([]), y = F([]), b = F([]), x, C, w = () => document.body, { commandSelection: T, GetCursorPosition: D, GetDocSnapshot: A, docSnapshot: ee } = mr();
|
|
7213
|
+
V(() => m.modelValue, () => {
|
|
7214
|
+
x.command(A), _l(ee.value || []) !== _l(h.value || []) && x.command(Rl, _l(h.value || []));
|
|
7178
7215
|
}, { deep: !1 });
|
|
7179
|
-
let
|
|
7216
|
+
let j = () => {
|
|
7180
7217
|
setTimeout(() => {
|
|
7181
|
-
let e =
|
|
7218
|
+
let e = L();
|
|
7182
7219
|
if (_.value = e.query || "", e.isActive) {
|
|
7183
7220
|
var t, n;
|
|
7184
7221
|
(t = a.value) == null || t.setProps({ getReferenceClientRect: () => {
|
|
@@ -7195,15 +7232,15 @@ var ld = ["src"], ud = {
|
|
|
7195
7232
|
(r = a.value) == null || r.hide();
|
|
7196
7233
|
}
|
|
7197
7234
|
}, 16);
|
|
7198
|
-
},
|
|
7235
|
+
}, N = (e) => {
|
|
7199
7236
|
if (u("keydown", e), e.key === "Enter" || e.key === "NumpadEnter") {
|
|
7200
7237
|
var t;
|
|
7201
7238
|
return e.shiftKey ? void 0 : ((t = e.preventDefault) == null || t.call(e), !1);
|
|
7202
7239
|
}
|
|
7203
|
-
e.key === "@" && (g.value = "slash",
|
|
7204
|
-
}, N = () => {
|
|
7205
|
-
_.value = "";
|
|
7240
|
+
e.key === "@" && (g.value = "slash", j()), e.key === "/" && (g.value = "skill", j()), e.key === "\\" && (g.value = "prompt", j());
|
|
7206
7241
|
}, P = () => {
|
|
7242
|
+
_.value = "";
|
|
7243
|
+
}, L = () => {
|
|
7207
7244
|
let e = {
|
|
7208
7245
|
isActive: !1,
|
|
7209
7246
|
query: "",
|
|
@@ -7213,16 +7250,16 @@ var ld = ["src"], ud = {
|
|
|
7213
7250
|
if (!t || t.rangeCount === 0) return e;
|
|
7214
7251
|
let n = t.getRangeAt(0), r = n.startContainer, i = n.startOffset;
|
|
7215
7252
|
if (r.nodeType !== Node.TEXT_NODE) return e;
|
|
7216
|
-
let a = (r.textContent || "").slice(0, i), o =
|
|
7217
|
-
if (!
|
|
7218
|
-
let
|
|
7253
|
+
let a = (r.textContent || "").slice(0, i), o = g.value === "slash" ? "@" : g.value === "skill" ? "/" : "\\", s = RegExp(`(${o === "\\" ? "\\\\" : o}[^\\s]*)$`), c = a.match(s);
|
|
7254
|
+
if (!c) return e;
|
|
7255
|
+
let l = c[1], u = l == null ? void 0 : l.slice(1), d = c.index + c[0].indexOf(o);
|
|
7219
7256
|
try {
|
|
7220
7257
|
let e = document.createRange();
|
|
7221
|
-
e.setStart(r,
|
|
7258
|
+
e.setStart(r, d), e.setEnd(r, d + 1);
|
|
7222
7259
|
let t = e.getBoundingClientRect();
|
|
7223
7260
|
return {
|
|
7224
7261
|
isActive: !0,
|
|
7225
|
-
query:
|
|
7262
|
+
query: u,
|
|
7226
7263
|
rect: t,
|
|
7227
7264
|
coordinates: {
|
|
7228
7265
|
top: t.bottom,
|
|
@@ -7233,43 +7270,46 @@ var ld = ["src"], ud = {
|
|
|
7233
7270
|
} catch (t) {
|
|
7234
7271
|
return e;
|
|
7235
7272
|
}
|
|
7236
|
-
},
|
|
7273
|
+
}, te = (e, t) => e.reduce((e, n, r) => {
|
|
7237
7274
|
if (r >= t) return e;
|
|
7238
7275
|
if (n.type === "text") {
|
|
7239
7276
|
var i;
|
|
7240
7277
|
e += ((i = n.text) == null ? void 0 : i.length) || 0;
|
|
7241
7278
|
}
|
|
7242
7279
|
return n.type === "tag" && (e += 1), e;
|
|
7243
|
-
}, 0),
|
|
7280
|
+
}, 0), z = (e) => {
|
|
7244
7281
|
var t;
|
|
7245
|
-
|
|
7246
|
-
let { column: n, line: r } =
|
|
7247
|
-
|
|
7248
|
-
},
|
|
7282
|
+
x.command(D);
|
|
7283
|
+
let { column: n, line: r } = T.value;
|
|
7284
|
+
x.command(Ld, [r, n - _.value.length - 1], [r, n]), x.command(Rd, [r, n], e), x.command(zd, [r, n + _.value.length + 1 + 1], " "), (t = a.value) == null || t.hide(), ne();
|
|
7285
|
+
}, ne = () => {
|
|
7249
7286
|
setTimeout(() => {
|
|
7250
7287
|
let e = window.getSelection(), t = document.createRange();
|
|
7251
7288
|
i.value && e && (t.selectNodeContents(i.value), t.collapse(!1), e.removeAllRanges(), e.addRange(t));
|
|
7252
7289
|
}, 100);
|
|
7253
|
-
},
|
|
7254
|
-
|
|
7290
|
+
}, re = (e) => {
|
|
7291
|
+
x.command(Rl, e), ne();
|
|
7292
|
+
}, ae = (e) => {
|
|
7293
|
+
var t;
|
|
7294
|
+
x.command(Rl, `/${e.skill_code} `), (t = a.value) == null || t.hide(), ne();
|
|
7255
7295
|
};
|
|
7256
|
-
|
|
7296
|
+
ie(() => {
|
|
7257
7297
|
var e;
|
|
7258
7298
|
let t = (e = m.resources) == null ? void 0 : e.filter((e) => {
|
|
7259
7299
|
var t;
|
|
7260
7300
|
return !((t = h.value) != null && t.some((t) => t.some((t) => t.type === "tag" && t.data.value === e.id && t.data.type === e.type)));
|
|
7261
7301
|
});
|
|
7262
|
-
if (_.value ? (v.value = t.filter((e) => e.name.toLowerCase().includes(_.value.toLowerCase())), y.value = m.prompts.filter((e) => e.toLowerCase().includes(_.value.toLowerCase()))) : (v.value = t, y.value = m.prompts), !v.value.length && !y.value.length) {
|
|
7302
|
+
if (_.value ? (v.value = t.filter((e) => e.name.toLowerCase().includes(_.value.toLowerCase())), y.value = m.skills.filter((e) => e.skill_name.toLowerCase().includes(_.value.toLowerCase()) || e.skill_code.toLowerCase().includes(_.value.toLowerCase())), b.value = m.prompts.filter((e) => e.toLowerCase().includes(_.value.toLowerCase()))) : (v.value = t, y.value = m.skills, b.value = m.prompts), !v.value.length && !y.value.length && !b.value.length) {
|
|
7263
7303
|
var n;
|
|
7264
7304
|
(n = a.value) == null || n.hide();
|
|
7265
7305
|
}
|
|
7266
7306
|
});
|
|
7267
|
-
let
|
|
7307
|
+
let U = (e, t, n, r) => {
|
|
7268
7308
|
if (t.type === "tag") {
|
|
7269
|
-
let t =
|
|
7270
|
-
|
|
7309
|
+
let t = te(e, n);
|
|
7310
|
+
x.command(Ld, [r, t], [r, t + 1]);
|
|
7271
7311
|
}
|
|
7272
|
-
},
|
|
7312
|
+
}, oe = (e) => {
|
|
7273
7313
|
var t;
|
|
7274
7314
|
let n = (t = e.clipboardData) == null ? void 0 : t.items;
|
|
7275
7315
|
if (!n) return;
|
|
@@ -7279,52 +7319,52 @@ var ld = ["src"], ud = {
|
|
|
7279
7319
|
t && r.push(t);
|
|
7280
7320
|
}
|
|
7281
7321
|
r.length > 0 && (e.preventDefault(), u("upload", r));
|
|
7282
|
-
},
|
|
7283
|
-
|
|
7322
|
+
}, se = () => {
|
|
7323
|
+
C == null || C(), x = Iu({
|
|
7284
7324
|
doc: h.value,
|
|
7285
|
-
schema:
|
|
7325
|
+
schema: Bd,
|
|
7286
7326
|
onChange: function() {
|
|
7287
7327
|
var e = X(function* (e) {
|
|
7288
|
-
h.value = e,
|
|
7328
|
+
h.value = e, j();
|
|
7289
7329
|
});
|
|
7290
7330
|
return function(t) {
|
|
7291
7331
|
return e.apply(this, arguments);
|
|
7292
7332
|
};
|
|
7293
7333
|
}(),
|
|
7294
|
-
onKeyDown: (e) =>
|
|
7295
|
-
}),
|
|
7296
|
-
},
|
|
7334
|
+
onKeyDown: (e) => N(e)
|
|
7335
|
+
}), C = x.input(i.value);
|
|
7336
|
+
}, ce = () => g.value === "slash" ? v.value.length < 1 ? !1 : void 0 : g.value === "skill" ? y.value.length < 1 ? !1 : void 0 : b.value.length < 1 ? !1 : void 0;
|
|
7297
7337
|
return E(() => {
|
|
7298
7338
|
var e;
|
|
7299
|
-
|
|
7339
|
+
se(), (e = i.value) == null || e.addEventListener("paste", oe);
|
|
7300
7340
|
}), O(() => {
|
|
7301
7341
|
var e;
|
|
7302
|
-
|
|
7342
|
+
x.command(Rl, ""), C == null || C(), (e = i.value) == null || e.removeEventListener("paste", oe);
|
|
7303
7343
|
}), n({
|
|
7304
7344
|
cleanup: () => {
|
|
7305
|
-
|
|
7345
|
+
x.command(Rl, "");
|
|
7306
7346
|
},
|
|
7307
|
-
focus:
|
|
7347
|
+
focus: ne
|
|
7308
7348
|
}), (n, r) => {
|
|
7309
7349
|
var u;
|
|
7310
|
-
return k(), c("div",
|
|
7350
|
+
return k(), c("div", Vd, [l("div", {
|
|
7311
7351
|
ref_key: "editorRef",
|
|
7312
7352
|
ref: i,
|
|
7313
7353
|
"aria-placeholder": t.placeholder,
|
|
7314
7354
|
class: "ai-slash-input",
|
|
7315
7355
|
spellcheck: "false"
|
|
7316
|
-
}, [(u = h.value) != null && u.length && h.value.some((e) => e.length) ? (k(!0), c(e, { key: 0 }, M(h.value, (t, n) => (k(), c("div", { key: n }, [t.length ? (k(!0), c(e, { key: 0 }, M(t, (r, i) => (k(), c(e, { key: i }, [r.type === "text" ? (k(), c("span",
|
|
7356
|
+
}, [(u = h.value) != null && u.length && h.value.some((e) => e.length) ? (k(!0), c(e, { key: 0 }, M(h.value, (t, n) => (k(), c("div", { key: n }, [t.length ? (k(!0), c(e, { key: 0 }, M(t, (r, i) => (k(), c(e, { key: i }, [r.type === "text" ? (k(), c("span", Ud, I(r.text), 1)) : r.type === "tag" ? (k(), c("span", {
|
|
7317
7357
|
key: 1,
|
|
7318
7358
|
class: S(`mention-tag-${r.data.type}`),
|
|
7319
7359
|
contenteditable: "false",
|
|
7320
7360
|
"data-tag-type": r.data.type
|
|
7321
7361
|
}, [d(I(r.data.label) + " ", 1), f(R(zt), {
|
|
7322
7362
|
class: "mention-tag-remove-icon",
|
|
7323
|
-
onClick: (e) =>
|
|
7324
|
-
}, null, 8, ["onClick"])], 10,
|
|
7363
|
+
onClick: (e) => U(t, r, i, n)
|
|
7364
|
+
}, null, 8, ["onClick"])], 10, Wd)) : s("", !0)], 64))), 128)) : (k(), c("br", Gd))]))), 128)) : s("", !0)], 8, Hd), f(R(ye), {
|
|
7325
7365
|
ref_key: "tippyRef",
|
|
7326
7366
|
ref: a,
|
|
7327
|
-
"append-to":
|
|
7367
|
+
"append-to": w,
|
|
7328
7368
|
arrow: !1,
|
|
7329
7369
|
"hide-on-click": !0,
|
|
7330
7370
|
interactive: !0,
|
|
@@ -7334,23 +7374,27 @@ var ld = ["src"], ud = {
|
|
|
7334
7374
|
trigger: "manual",
|
|
7335
7375
|
"trigger-target": i.value,
|
|
7336
7376
|
"z-index": R(ht),
|
|
7337
|
-
onHidden:
|
|
7338
|
-
onShow:
|
|
7377
|
+
onHidden: P,
|
|
7378
|
+
onShow: ce
|
|
7339
7379
|
}, {
|
|
7340
|
-
content:
|
|
7380
|
+
content: H(() => [g.value === "slash" ? (k(), o(Id, {
|
|
7341
7381
|
key: 0,
|
|
7342
|
-
"on-select":
|
|
7382
|
+
"on-select": z,
|
|
7343
7383
|
"resource-list": v.value
|
|
7344
|
-
}, null, 8, ["resource-list"])) : g.value === "
|
|
7384
|
+
}, null, 8, ["resource-list"])) : g.value === "skill" ? (k(), o(jd, {
|
|
7345
7385
|
key: 1,
|
|
7346
|
-
"on-select":
|
|
7347
|
-
|
|
7386
|
+
"on-select": ae,
|
|
7387
|
+
skills: y.value
|
|
7388
|
+
}, null, 8, ["skills"])) : g.value === "prompt" ? (k(), o(Td, {
|
|
7389
|
+
key: 2,
|
|
7390
|
+
"on-select": re,
|
|
7391
|
+
prompts: b.value
|
|
7348
7392
|
}, null, 8, ["prompts"])) : s("", !0)]),
|
|
7349
7393
|
_: 1
|
|
7350
7394
|
}, 8, ["trigger-target", "z-index"])]);
|
|
7351
7395
|
};
|
|
7352
7396
|
}
|
|
7353
|
-
}),
|
|
7397
|
+
}), qd = { class: "ai-input-attachment" }, Jd = /* @__PURE__ */ m({
|
|
7354
7398
|
__name: "input-attachment",
|
|
7355
7399
|
props: {
|
|
7356
7400
|
messageState: {},
|
|
@@ -7363,26 +7407,26 @@ var ld = ["src"], ud = {
|
|
|
7363
7407
|
}, a = () => {
|
|
7364
7408
|
n.messageState === K.Disabled || n.messageState === K.Pending || n.messageState === K.Streaming || r("sendMessage");
|
|
7365
7409
|
};
|
|
7366
|
-
return (t, r) => (k(), c("div",
|
|
7410
|
+
return (t, r) => (k(), c("div", qd, [N(t.$slots, "default"), N(t.$slots, "send-icon", {}, () => [l("div", { class: S(["send-message-icon", { ["send-message-icon__" + e.messageState]: !0 }]) }, [e.messageState === R(K).Streaming || e.messageState === R(K).Pending || e.messageState === R(K).Fetching ? U((k(), o(R(pn), {
|
|
7367
7411
|
key: 0,
|
|
7368
7412
|
onClick: i
|
|
7369
|
-
}, null, 512)), [[R(
|
|
7413
|
+
}, null, 512)), [[R(be), Y(Y({}, e.tippyOptions), {}, {
|
|
7370
7414
|
content: R(q)("停止"),
|
|
7371
7415
|
theme: "ai-chat-box",
|
|
7372
7416
|
offset: [0, 16]
|
|
7373
|
-
})]]) :
|
|
7417
|
+
})]]) : U((k(), o(R(fn), {
|
|
7374
7418
|
key: 1,
|
|
7375
7419
|
onClick: a
|
|
7376
|
-
}, null, 512)), [[R(
|
|
7420
|
+
}, null, 512)), [[R(be), Y(Y({}, e.tippyOptions), {}, {
|
|
7377
7421
|
content: n.messageState === R(K).Disabled ? void 0 : R(q)("发送"),
|
|
7378
7422
|
theme: "ai-chat-box",
|
|
7379
7423
|
offset: [0, 16]
|
|
7380
7424
|
})]])], 2)])]));
|
|
7381
7425
|
}
|
|
7382
|
-
}),
|
|
7426
|
+
}), Yd = {
|
|
7383
7427
|
key: 1,
|
|
7384
7428
|
class: "ai-divider"
|
|
7385
|
-
},
|
|
7429
|
+
}, Xd = /* @__PURE__ */ m({
|
|
7386
7430
|
__name: "chat-input",
|
|
7387
7431
|
props: /* @__PURE__ */ y({
|
|
7388
7432
|
defaultUploadFiles: {},
|
|
@@ -7392,11 +7436,12 @@ var ld = ["src"], ud = {
|
|
|
7392
7436
|
onSendMessage: {},
|
|
7393
7437
|
onStopSending: {},
|
|
7394
7438
|
onUpload: {},
|
|
7395
|
-
placeholder: { default: dt ? "Input \"/\" to trigger prompt\nInput \"@\" to trigger tool and MCP\nUse Shift + Enter to enter a new line" : "输入
|
|
7439
|
+
placeholder: { default: dt ? "Input \"/\" to trigger skill\nInput \"\\\" to trigger prompt\nInput \"@\" to trigger tool and MCP\nUse Shift + Enter to enter a new line" : "输入 \"/\" 唤出 Skill\n输入 \"\\\" 唤出 Prompt\n输入 \"@\" 唤出 工具和 MCP\n通过 Shift + Enter 进行换行输入" },
|
|
7396
7440
|
prompts: { default: () => [] },
|
|
7397
7441
|
resources: { default: () => [] },
|
|
7398
7442
|
shortcutId: {},
|
|
7399
7443
|
shortcuts: {},
|
|
7444
|
+
skills: { default: () => [] },
|
|
7400
7445
|
supportUpload: {
|
|
7401
7446
|
type: Boolean,
|
|
7402
7447
|
default: !0
|
|
@@ -7426,7 +7471,7 @@ var ld = ["src"], ud = {
|
|
|
7426
7471
|
K.Fetching
|
|
7427
7472
|
].includes(p.messageStatus) ? p.messageStatus : ((e = p.modelValue) == null ? void 0 : e.length) < 1 || Array.isArray(p.modelValue) && !_l(p.modelValue).trim() ? K.Disabled : p.messageStatus;
|
|
7428
7473
|
});
|
|
7429
|
-
|
|
7474
|
+
ae(() => {
|
|
7430
7475
|
var e;
|
|
7431
7476
|
let t = p.inputMaxHeight || 200;
|
|
7432
7477
|
if (g.value.length < 1 || !i.value) {
|
|
@@ -7447,13 +7492,13 @@ var ld = ["src"], ud = {
|
|
|
7447
7492
|
o = (a = g.value) == null ? void 0 : a.slice().map((e) => {
|
|
7448
7493
|
var t, n;
|
|
7449
7494
|
return {
|
|
7450
|
-
type:
|
|
7495
|
+
type: W.Binary,
|
|
7451
7496
|
url: e.url,
|
|
7452
7497
|
mimeType: ((t = e.file) == null ? void 0 : t.type) || "",
|
|
7453
7498
|
filename: ((n = e.file) == null ? void 0 : n.name) || ""
|
|
7454
7499
|
};
|
|
7455
7500
|
}), p.modelValue && o.push({
|
|
7456
|
-
type:
|
|
7501
|
+
type: W.Text,
|
|
7457
7502
|
text: _l(p.modelValue)
|
|
7458
7503
|
});
|
|
7459
7504
|
}
|
|
@@ -7492,7 +7537,7 @@ var ld = ["src"], ud = {
|
|
|
7492
7537
|
var e = X(function* (e) {
|
|
7493
7538
|
if (!p.supportUpload) return;
|
|
7494
7539
|
if (g.value.length >= 3) {
|
|
7495
|
-
e.length > 0 &&
|
|
7540
|
+
e.length > 0 && pe({
|
|
7496
7541
|
message: ze(e.length, O, dt),
|
|
7497
7542
|
theme: "error"
|
|
7498
7543
|
});
|
|
@@ -7530,7 +7575,7 @@ var ld = ["src"], ud = {
|
|
|
7530
7575
|
s.status = Jr.Error;
|
|
7531
7576
|
});
|
|
7532
7577
|
}
|
|
7533
|
-
n > 0 &&
|
|
7578
|
+
n > 0 && pe({
|
|
7534
7579
|
message: ze(n, O, dt),
|
|
7535
7580
|
theme: "error"
|
|
7536
7581
|
});
|
|
@@ -7571,13 +7616,14 @@ var ld = ["src"], ud = {
|
|
|
7571
7616
|
files: g.value,
|
|
7572
7617
|
onDeleteFile: ee
|
|
7573
7618
|
}, null, 8, ["files"])], 512)) : s("", !0)]),
|
|
7574
|
-
f(
|
|
7619
|
+
f(Kd, {
|
|
7575
7620
|
ref_key: "aiSlashInputRef",
|
|
7576
7621
|
ref: r,
|
|
7577
7622
|
"model-value": e.modelValue,
|
|
7578
7623
|
placeholder: e.placeholder,
|
|
7579
7624
|
prompts: e.prompts,
|
|
7580
7625
|
resources: e.resources,
|
|
7626
|
+
skills: e.skills,
|
|
7581
7627
|
onKeydown: b,
|
|
7582
7628
|
"onUpdate:modelValue": M,
|
|
7583
7629
|
onUpload: A
|
|
@@ -7585,15 +7631,16 @@ var ld = ["src"], ud = {
|
|
|
7585
7631
|
"model-value",
|
|
7586
7632
|
"placeholder",
|
|
7587
7633
|
"prompts",
|
|
7588
|
-
"resources"
|
|
7634
|
+
"resources",
|
|
7635
|
+
"skills"
|
|
7589
7636
|
]),
|
|
7590
|
-
f(
|
|
7637
|
+
f(Jd, {
|
|
7591
7638
|
"message-state": v.value,
|
|
7592
7639
|
"tippy-options": e.tippyOptions,
|
|
7593
7640
|
onSendMessage: y,
|
|
7594
7641
|
onStopSending: x
|
|
7595
7642
|
}, {
|
|
7596
|
-
default:
|
|
7643
|
+
default: H(() => {
|
|
7597
7644
|
var n;
|
|
7598
7645
|
return [
|
|
7599
7646
|
e.supportUpload ? (k(), o(Uu, {
|
|
@@ -7601,7 +7648,7 @@ var ld = ["src"], ud = {
|
|
|
7601
7648
|
"tippy-options": e.tippyOptions,
|
|
7602
7649
|
onUpload: A
|
|
7603
7650
|
}, null, 8, ["tippy-options"])) : s("", !0),
|
|
7604
|
-
e.supportUpload && ((n = e.shortcuts) != null && n.length || _.value) ? (k(), c("span",
|
|
7651
|
+
e.supportUpload && ((n = e.shortcuts) != null && n.length || _.value) ? (k(), c("span", Yd)) : s("", !0),
|
|
7605
7652
|
N(t.$slots, "attachment", {}, () => [e.shortcuts && !_.value ? (k(), o(Qn, {
|
|
7606
7653
|
key: 0,
|
|
7607
7654
|
shortcuts: e.shortcuts,
|
|
@@ -7611,17 +7658,17 @@ var ld = ["src"], ud = {
|
|
|
7611
7658
|
class: "selected-shortcut-btn",
|
|
7612
7659
|
shortcut: _.value
|
|
7613
7660
|
}, {
|
|
7614
|
-
append:
|
|
7661
|
+
append: H(() => [f(R(yn), { onClick: E })]),
|
|
7615
7662
|
_: 1
|
|
7616
7663
|
}, 8, ["shortcut"])) : s("", !0)])
|
|
7617
7664
|
];
|
|
7618
7665
|
}),
|
|
7619
|
-
"send-icon":
|
|
7666
|
+
"send-icon": H(() => [N(t.$slots, "send-icon")]),
|
|
7620
7667
|
_: 3
|
|
7621
7668
|
}, 8, ["message-state", "tippy-options"])
|
|
7622
7669
|
], 4)], 4));
|
|
7623
7670
|
}
|
|
7624
|
-
}),
|
|
7671
|
+
}), Zd = { class: "ai-delete-confirm" }, Qd = { class: "ai-delete-confirm__title" }, $d = { class: "ai-delete-confirm__desc" }, ef = { class: "ai-delete-confirm__actions" }, tf = /* @__PURE__ */ m({
|
|
7625
7672
|
__name: "delete-tool",
|
|
7626
7673
|
props: {
|
|
7627
7674
|
description: {},
|
|
@@ -7657,33 +7704,33 @@ var ld = ["src"], ud = {
|
|
|
7657
7704
|
};
|
|
7658
7705
|
return O(() => {
|
|
7659
7706
|
p();
|
|
7660
|
-
}), (e, t) => (k(), o(R(
|
|
7707
|
+
}), (e, t) => (k(), o(R(ye), b({
|
|
7661
7708
|
ref_key: "tippyRef",
|
|
7662
7709
|
ref: i
|
|
7663
7710
|
}, c.value, { onShow: u }), {
|
|
7664
|
-
content:
|
|
7665
|
-
l("div",
|
|
7666
|
-
l("div",
|
|
7667
|
-
l("div",
|
|
7711
|
+
content: H(() => [l("div", Zd, [
|
|
7712
|
+
l("div", Qd, I(R(q)("确认删除该回答?")), 1),
|
|
7713
|
+
l("div", $d, I(R(q)("删除操作无法撤回,请谨慎操作!")), 1),
|
|
7714
|
+
l("div", ef, [f(R(se), {
|
|
7668
7715
|
size: "small",
|
|
7669
7716
|
theme: "danger",
|
|
7670
7717
|
onClick: m
|
|
7671
7718
|
}, {
|
|
7672
|
-
default:
|
|
7719
|
+
default: H(() => [d(I(R(q)("删除")), 1)]),
|
|
7673
7720
|
_: 1
|
|
7674
|
-
}), f(R(
|
|
7721
|
+
}), f(R(se), {
|
|
7675
7722
|
size: "small",
|
|
7676
7723
|
onClick: g
|
|
7677
7724
|
}, {
|
|
7678
|
-
default:
|
|
7725
|
+
default: H(() => [d(I(R(q)("取消")), 1)]),
|
|
7679
7726
|
_: 1
|
|
7680
7727
|
})])
|
|
7681
7728
|
])]),
|
|
7682
|
-
default:
|
|
7729
|
+
default: H(() => [f(Cc, C(h(s.value)), null, 16)]),
|
|
7683
7730
|
_: 1
|
|
7684
7731
|
}, 16));
|
|
7685
7732
|
}
|
|
7686
|
-
}),
|
|
7733
|
+
}), nf = { class: "ai-feedback-title" }, rf = { class: "ai-feedback-reason-list" }, af = ["onClick"], of = { class: "ai-feedback-other" }, sf = { class: "ai-feedback-footer" }, cf = /* @__PURE__ */ m({
|
|
7687
7734
|
__name: "user-feedback",
|
|
7688
7735
|
props: {
|
|
7689
7736
|
loading: { type: Boolean },
|
|
@@ -7701,55 +7748,55 @@ var ld = ["src"], ud = {
|
|
|
7701
7748
|
};
|
|
7702
7749
|
return (n, r) => (k(), c("div", {
|
|
7703
7750
|
class: "ai-user-feedback",
|
|
7704
|
-
onMouseenter: r[1] || (r[1] =
|
|
7751
|
+
onMouseenter: r[1] || (r[1] = oe(() => {}, ["stop", "prevent"]))
|
|
7705
7752
|
}, [
|
|
7706
|
-
l("div",
|
|
7707
|
-
l("div",
|
|
7753
|
+
l("div", nf, I(t.title), 1),
|
|
7754
|
+
l("div", rf, [t.loading ? (k(), c(e, { key: 0 }, M(8, (e) => l("div", {
|
|
7708
7755
|
key: e,
|
|
7709
7756
|
class: "reason-item ai-skeleton-element"
|
|
7710
7757
|
})), 64)) : (k(!0), c(e, { key: 1 }, M(t.reasonList, (e) => (k(), c("div", {
|
|
7711
7758
|
key: e,
|
|
7712
7759
|
class: S(["reason-item", { "is-active": a.value.includes(e) }]),
|
|
7713
7760
|
onClick: (t) => o(e)
|
|
7714
|
-
}, I(e), 11,
|
|
7715
|
-
l("div",
|
|
7761
|
+
}, I(e), 11, af))), 128))]),
|
|
7762
|
+
l("div", of, [f(R(de), {
|
|
7716
7763
|
modelValue: i.value,
|
|
7717
7764
|
"onUpdate:modelValue": r[0] || (r[0] = (e) => i.value = e),
|
|
7718
7765
|
placeholder: R(q)("说出您的想法"),
|
|
7719
7766
|
rows: 3,
|
|
7720
7767
|
type: "textarea"
|
|
7721
7768
|
}, null, 8, ["modelValue", "placeholder"])]),
|
|
7722
|
-
l("div",
|
|
7769
|
+
l("div", sf, [f(R(se), {
|
|
7723
7770
|
class: "custom-btn",
|
|
7724
7771
|
disabled: !i.value && a.value.length === 0,
|
|
7725
7772
|
size: "small",
|
|
7726
7773
|
theme: "primary",
|
|
7727
7774
|
onClick: s
|
|
7728
7775
|
}, {
|
|
7729
|
-
default:
|
|
7776
|
+
default: H(() => [d(I(R(q)("提交")), 1)]),
|
|
7730
7777
|
_: 1
|
|
7731
|
-
}, 8, ["disabled"]), f(R(
|
|
7778
|
+
}, 8, ["disabled"]), f(R(se), {
|
|
7732
7779
|
class: "custom-btn",
|
|
7733
7780
|
size: "small",
|
|
7734
7781
|
width: "80px",
|
|
7735
7782
|
onClick: u
|
|
7736
7783
|
}, {
|
|
7737
|
-
default:
|
|
7784
|
+
default: H(() => [d(I(R(q)("取消")), 1)]),
|
|
7738
7785
|
_: 1
|
|
7739
7786
|
})])
|
|
7740
7787
|
], 32));
|
|
7741
7788
|
}
|
|
7742
|
-
}),
|
|
7789
|
+
}), lf = {
|
|
7743
7790
|
ref: "messageToolsRef",
|
|
7744
7791
|
class: "message-tools-container"
|
|
7745
|
-
},
|
|
7792
|
+
}, uf = {
|
|
7746
7793
|
class: "message-tools",
|
|
7747
7794
|
style: { "margin-right": "8px" }
|
|
7748
|
-
},
|
|
7795
|
+
}, df = {
|
|
7749
7796
|
key: 0,
|
|
7750
7797
|
class: "ai-divider",
|
|
7751
7798
|
style: { "margin-right": "8px" }
|
|
7752
|
-
},
|
|
7799
|
+
}, ff = { class: "message-tools" }, pf = /* @__PURE__ */ m({
|
|
7753
7800
|
__name: "message-tools",
|
|
7754
7801
|
props: {
|
|
7755
7802
|
messageTools: { default: () => vt },
|
|
@@ -7810,8 +7857,8 @@ var ld = ["src"], ud = {
|
|
|
7810
7857
|
};
|
|
7811
7858
|
return O(() => {
|
|
7812
7859
|
v(), p.value = [];
|
|
7813
|
-
}), (n, r) => (k(), c("div",
|
|
7814
|
-
l("div",
|
|
7860
|
+
}), (n, r) => (k(), c("div", lf, [
|
|
7861
|
+
l("div", uf, [(k(!0), c(e, null, M(t.messageTools, (n) => (k(), c(e, { key: n.id }, [n.id === "delete" ? (k(), o(tf, b({
|
|
7815
7862
|
key: 0,
|
|
7816
7863
|
ref_for: !0
|
|
7817
7864
|
}, n, {
|
|
@@ -7834,14 +7881,14 @@ var ld = ["src"], ud = {
|
|
|
7834
7881
|
"tippy-options",
|
|
7835
7882
|
"onClick"
|
|
7836
7883
|
]))], 64))), 128))]),
|
|
7837
|
-
t.updateTools.length > 0 ? (k(), c("div",
|
|
7838
|
-
l("div",
|
|
7884
|
+
t.updateTools.length > 0 ? (k(), c("div", df)) : s("", !0),
|
|
7885
|
+
l("div", ff, [(k(!0), c(e, null, M(t.updateTools, (n) => (k(), c(e, { key: n.id }, [["like", "unlike"].includes(n.id) ? (k(), o(R(ye), b({
|
|
7839
7886
|
key: 0,
|
|
7840
7887
|
ref_for: !0,
|
|
7841
7888
|
ref_key: "feedbackTippyRef",
|
|
7842
7889
|
ref: u
|
|
7843
7890
|
}, { ref_for: !0 }, h.value, { onShow: (e) => C(n.id) }), {
|
|
7844
|
-
content:
|
|
7891
|
+
content: H(() => [f(cf, {
|
|
7845
7892
|
loading: d.value,
|
|
7846
7893
|
"reason-list": p.value,
|
|
7847
7894
|
title: n.id === "like" ? R(q)("什么原因让你满意?") : R(q)("什么原因让你不满意?"),
|
|
@@ -7853,7 +7900,7 @@ var ld = ["src"], ud = {
|
|
|
7853
7900
|
"title",
|
|
7854
7901
|
"onSubmit"
|
|
7855
7902
|
])]),
|
|
7856
|
-
default:
|
|
7903
|
+
default: H(() => [f(Cc, b({ ref_for: !0 }, n, {
|
|
7857
7904
|
id: y(n.id),
|
|
7858
7905
|
active: m.value === n.id,
|
|
7859
7906
|
disabled: t.messageToolsStatus === R(Yr).Disabled,
|
|
@@ -7867,7 +7914,7 @@ var ld = ["src"], ud = {
|
|
|
7867
7914
|
"onClick"
|
|
7868
7915
|
])]),
|
|
7869
7916
|
_: 2
|
|
7870
|
-
}, 1040, ["onShow"])) : n.id === "delete" ? (k(), o(
|
|
7917
|
+
}, 1040, ["onShow"])) : n.id === "delete" ? (k(), o(tf, b({
|
|
7871
7918
|
key: 1,
|
|
7872
7919
|
ref_for: !0
|
|
7873
7920
|
}, n, {
|
|
@@ -7892,7 +7939,7 @@ var ld = ["src"], ud = {
|
|
|
7892
7939
|
]))], 64))), 128))])
|
|
7893
7940
|
], 512));
|
|
7894
7941
|
}
|
|
7895
|
-
}),
|
|
7942
|
+
}), mf = m({
|
|
7896
7943
|
name: "HighlightKeyword",
|
|
7897
7944
|
props: { text: {
|
|
7898
7945
|
type: String,
|
|
@@ -7909,7 +7956,7 @@ var ld = ["src"], ud = {
|
|
|
7909
7956
|
});
|
|
7910
7957
|
return () => g("span", r.value);
|
|
7911
7958
|
}
|
|
7912
|
-
}),
|
|
7959
|
+
}), hf = { class: "ai-activity-message" }, gf = { class: "ai-activity-message-content" }, _f = /* @__PURE__ */ m({
|
|
7913
7960
|
__name: "activity-layout",
|
|
7914
7961
|
props: /* @__PURE__ */ y({ activityType: {} }, {
|
|
7915
7962
|
collapsed: Y({ type: Boolean }, { default: !1 }),
|
|
@@ -7918,53 +7965,53 @@ var ld = ["src"], ud = {
|
|
|
7918
7965
|
emits: ["update:collapsed"],
|
|
7919
7966
|
setup(e) {
|
|
7920
7967
|
let t = z(e, "collapsed");
|
|
7921
|
-
return (n, r) => (k(), c("div",
|
|
7968
|
+
return (n, r) => (k(), c("div", hf, [l("div", {
|
|
7922
7969
|
class: "ai-activity-message-title",
|
|
7923
7970
|
onClick: r[0] || (r[0] = (e) => t.value = !t.value)
|
|
7924
|
-
}, [N(n.$slots, "title", C(h({ collapsed: t.value }))), e.activityType === R(
|
|
7971
|
+
}, [N(n.$slots, "title", C(h({ collapsed: t.value }))), e.activityType === R(W).FlowAgent ? s("", !0) : (k(), c("span", {
|
|
7925
7972
|
key: 0,
|
|
7926
7973
|
class: S(["ai-activity-message-title-icon collapsed-icon", { "is-collapsed": t.value }])
|
|
7927
|
-
}, [f(R(hn))], 2))]),
|
|
7974
|
+
}, [f(R(hn))], 2))]), U(l("div", gf, [N(n.$slots, "default")], 512), [[re, !t.value]])]));
|
|
7928
7975
|
}
|
|
7929
|
-
}),
|
|
7976
|
+
}), vf = { class: "ai-detail-section" }, yf = { class: "section-heading" }, bf = { class: "section-text" }, xf = /* @__PURE__ */ m({
|
|
7930
7977
|
__name: "detail-section",
|
|
7931
7978
|
props: { title: {} },
|
|
7932
7979
|
setup(e) {
|
|
7933
|
-
return (t, n) => (k(), c("div",
|
|
7980
|
+
return (t, n) => (k(), c("div", vf, [l("div", yf, [n[0] || (n[0] = l("span", { class: "section-bar" }, null, -1)), l("span", bf, I(e.title), 1)]), N(t.$slots, "default")]));
|
|
7934
7981
|
}
|
|
7935
|
-
}),
|
|
7982
|
+
}), Sf = { class: "ai-simple-table" }, Cf = { key: 0 }, wf = ["colspan"], Tf = /* @__PURE__ */ m({
|
|
7936
7983
|
__name: "simple-table",
|
|
7937
7984
|
props: {
|
|
7938
7985
|
columns: {},
|
|
7939
7986
|
data: {}
|
|
7940
7987
|
},
|
|
7941
7988
|
setup(t) {
|
|
7942
|
-
return (n, r) => (k(), c("table",
|
|
7989
|
+
return (n, r) => (k(), c("table", Sf, [l("thead", null, [l("tr", null, [(k(!0), c(e, null, M(t.columns, (e) => (k(), c("th", { key: e.key }, I(e.label), 1))), 128))])]), l("tbody", null, [(k(!0), c(e, null, M(t.data, (n, r) => (k(), c("tr", { key: r }, [(k(!0), c(e, null, M(t.columns, (e) => {
|
|
7943
7990
|
var t;
|
|
7944
7991
|
return k(), c("td", {
|
|
7945
7992
|
key: e.key,
|
|
7946
7993
|
class: S({ "is-break-all": e.breakAll })
|
|
7947
7994
|
}, I((t = n[e.key]) == null ? "--" : t), 3);
|
|
7948
|
-
}), 128))]))), 128)), t.data.length ? s("", !0) : (k(), c("tr",
|
|
7995
|
+
}), 128))]))), 128)), t.data.length ? s("", !0) : (k(), c("tr", Cf, [l("td", {
|
|
7949
7996
|
class: "is-empty",
|
|
7950
7997
|
colspan: t.columns.length
|
|
7951
|
-
}, " -- ", 8,
|
|
7998
|
+
}, " -- ", 8, wf)]))])]));
|
|
7952
7999
|
}
|
|
7953
|
-
}),
|
|
8000
|
+
}), Ef = { class: "flow-agent-node-detail" }, Df = { class: "detail-title" }, Of = {
|
|
7954
8001
|
key: 1,
|
|
7955
8002
|
class: "detail-title-content"
|
|
7956
|
-
},
|
|
8003
|
+
}, kf = { class: "detail-tab-bar" }, Af = ["onClick"], jf = { class: "detail-body" }, Mf = { class: "skeleton-section" }, Nf = { class: "skeleton-section" }, Pf = { class: "info-form" }, Ff = { class: "info-label" }, If = { class: "info-value" }, Lf = { class: "info-row" }, Rf = { class: "info-label" }, zf = { class: "info-value" }, Bf = {
|
|
7957
8004
|
key: 0,
|
|
7958
8005
|
class: "failure-item"
|
|
7959
|
-
},
|
|
8006
|
+
}, Vf = {
|
|
7960
8007
|
key: 1,
|
|
7961
8008
|
class: "failure-item"
|
|
7962
|
-
},
|
|
8009
|
+
}, Hf = { class: "info-row" }, Uf = { class: "info-label" }, Wf = { class: "info-value" }, Gf = {
|
|
7963
8010
|
key: 0,
|
|
7964
8011
|
class: "skeleton-section"
|
|
7965
|
-
},
|
|
8012
|
+
}, Kf = /* @__PURE__ */ function(e) {
|
|
7966
8013
|
return e.Config = "config", e.Output = "output", e;
|
|
7967
|
-
}(
|
|
8014
|
+
}(Kf || {}), qf = /* @__PURE__ */ m({
|
|
7968
8015
|
__name: "flow-agent-node-detail",
|
|
7969
8016
|
props: {
|
|
7970
8017
|
data: {},
|
|
@@ -7977,10 +8024,10 @@ var ld = ["src"], ud = {
|
|
|
7977
8024
|
},
|
|
7978
8025
|
setup(t) {
|
|
7979
8026
|
let n = [{
|
|
7980
|
-
key:
|
|
8027
|
+
key: Kf.Config,
|
|
7981
8028
|
label: q("节点配置")
|
|
7982
8029
|
}, {
|
|
7983
|
-
key:
|
|
8030
|
+
key: Kf.Output,
|
|
7984
8031
|
label: q("节点输出")
|
|
7985
8032
|
}], r = [{
|
|
7986
8033
|
key: "key",
|
|
@@ -8009,7 +8056,7 @@ var ld = ["src"], ud = {
|
|
|
8009
8056
|
breakAll: !0,
|
|
8010
8057
|
key: "value",
|
|
8011
8058
|
label: q("参数值")
|
|
8012
|
-
}], p = { forced_fail: dt ? "Force Fail" : "强制失败" }, m = t, h = F(
|
|
8059
|
+
}], p = { forced_fail: dt ? "Force Fail" : "强制失败" }, m = t, h = F(Kf.Config), g = a(() => {
|
|
8013
8060
|
var e;
|
|
8014
8061
|
return (e = m.data) == null ? void 0 : e.basic_info;
|
|
8015
8062
|
}), _ = a(() => {
|
|
@@ -8074,56 +8121,56 @@ var ld = ["src"], ud = {
|
|
|
8074
8121
|
}
|
|
8075
8122
|
return (a, p) => {
|
|
8076
8123
|
var m;
|
|
8077
|
-
return k(), c("div",
|
|
8078
|
-
l("h3",
|
|
8079
|
-
l("div",
|
|
8124
|
+
return k(), c("div", Ef, [
|
|
8125
|
+
l("h3", Df, [t.loading ? (k(), c(e, { key: 0 }, [l("span", null, I(R(q)("节点")) + ":", 1), p[0] || (p[0] = l("span", { class: "skeleton-title ai-skeleton-element" }, null, -1))], 64)) : (k(), c("div", Of, I(R(q)("节点")) + ":" + I((m = g.value) == null ? void 0 : m.node_name), 1)), N(a.$slots, "locateButton")]),
|
|
8126
|
+
l("div", kf, [(k(), c(e, null, M(n, (e) => l("div", {
|
|
8080
8127
|
key: e.key,
|
|
8081
8128
|
class: S(["detail-tab", { "is-active": h.value === e.key }]),
|
|
8082
8129
|
onClick: (t) => h.value = e.key
|
|
8083
|
-
}, [(k(), o(P(e.key ===
|
|
8084
|
-
l("div",
|
|
8130
|
+
}, [(k(), o(P(e.key === Kf.Config ? R(Yt) : R(Jt)), { class: "detail-tab-icon" })), d(" " + I(e.label), 1)], 10, Af)), 64))]),
|
|
8131
|
+
l("div", jf, [h.value === Kf.Config ? (k(), c(e, { key: 0 }, [t.loading ? (k(), c(e, { key: 0 }, [l("div", Mf, [p[1] || (p[1] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, M(6, (e) => l("div", {
|
|
8085
8132
|
key: e,
|
|
8086
8133
|
class: "skeleton-row ai-skeleton-element"
|
|
8087
|
-
})), 64))]), l("div",
|
|
8134
|
+
})), 64))]), l("div", Nf, [p[2] || (p[2] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, M(4, (e) => l("div", {
|
|
8088
8135
|
key: e,
|
|
8089
8136
|
class: "skeleton-row ai-skeleton-element"
|
|
8090
8137
|
})), 64))])], 64)) : (k(), c(e, { key: 1 }, [
|
|
8091
|
-
f(
|
|
8092
|
-
default:
|
|
8138
|
+
f(xf, { title: R(q)("基础信息") }, {
|
|
8139
|
+
default: H(() => {
|
|
8093
8140
|
var t, n, r;
|
|
8094
|
-
return [l("div",
|
|
8141
|
+
return [l("div", Pf, [
|
|
8095
8142
|
(k(!0), c(e, null, M(_.value, (e) => (k(), c("div", {
|
|
8096
8143
|
key: e.label,
|
|
8097
8144
|
class: "info-row"
|
|
8098
|
-
}, [l("div",
|
|
8099
|
-
l("div",
|
|
8100
|
-
l("div",
|
|
8145
|
+
}, [l("div", Ff, I(e.label), 1), l("div", If, I(e.value), 1)]))), 128)),
|
|
8146
|
+
l("div", Lf, [l("div", Rf, I(R(q)("失败处理")), 1), l("div", zf, [v.value ? (k(), c(e, { key: 0 }, [(t = g.value) != null && t.skippable ? (k(), c("span", Bf, [p[3] || (p[3] = l("span", { class: "tag-badge" }, "MS", -1)), d(" " + I(R(q)("手动跳过")) + I(!((n = g.value) == null || (n = n.auto_retry) == null) && n.enable ? ";" : ""), 1)])) : s("", !0), !((r = g.value) == null || (r = r.auto_retry) == null) && r.enable ? (k(), c("span", Vf, [p[4] || (p[4] = l("span", { class: "tag-badge" }, "AR", -1)), d(" " + I(y.value), 1)])) : s("", !0)], 64)) : (k(), c(e, { key: 1 }, [d("--")], 64))])]),
|
|
8147
|
+
l("div", Hf, [l("div", Uf, I(R(q)("超时控制")), 1), l("div", Wf, I(b.value), 1)])
|
|
8101
8148
|
])];
|
|
8102
8149
|
}),
|
|
8103
8150
|
_: 1
|
|
8104
8151
|
}, 8, ["title"]),
|
|
8105
|
-
f(
|
|
8106
|
-
default:
|
|
8152
|
+
f(xf, { title: R(q)("输入参数") }, {
|
|
8153
|
+
default: H(() => [f(Tf, {
|
|
8107
8154
|
columns: r,
|
|
8108
8155
|
data: x.value
|
|
8109
8156
|
}, null, 8, ["data"])]),
|
|
8110
8157
|
_: 1
|
|
8111
8158
|
}, 8, ["title"]),
|
|
8112
|
-
f(
|
|
8113
|
-
default:
|
|
8159
|
+
f(xf, { title: R(q)("输出参数") }, {
|
|
8160
|
+
default: H(() => [f(Tf, {
|
|
8114
8161
|
columns: i,
|
|
8115
8162
|
data: C.value
|
|
8116
8163
|
}, null, 8, ["data"])]),
|
|
8117
8164
|
_: 1
|
|
8118
8165
|
}, 8, ["title"])
|
|
8119
|
-
], 64))], 64)) : (k(), c(e, { key: 1 }, [t.loading ? (k(), c("div",
|
|
8166
|
+
], 64))], 64)) : (k(), c(e, { key: 1 }, [t.loading ? (k(), c("div", Gf, [p[5] || (p[5] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, M(5, (e) => l("div", {
|
|
8120
8167
|
key: e,
|
|
8121
8168
|
class: "skeleton-row ai-skeleton-element"
|
|
8122
|
-
})), 64))])) : (k(), o(
|
|
8169
|
+
})), 64))])) : (k(), o(xf, {
|
|
8123
8170
|
key: 1,
|
|
8124
8171
|
title: R(q)("结构化输出")
|
|
8125
8172
|
}, {
|
|
8126
|
-
default:
|
|
8173
|
+
default: H(() => [f(Tf, {
|
|
8127
8174
|
columns: u,
|
|
8128
8175
|
data: w.value
|
|
8129
8176
|
}, null, 8, ["data"])]),
|
|
@@ -8132,16 +8179,16 @@ var ld = ["src"], ud = {
|
|
|
8132
8179
|
]);
|
|
8133
8180
|
};
|
|
8134
8181
|
}
|
|
8135
|
-
}),
|
|
8182
|
+
}), Jf = { class: "ai-activity-message-title-text" }, Yf = { class: "flow-agent-title-label" }, Xf = { class: "flow-agent-task-state-icon" }, Zf = { class: "flow-agent-task-name" }, Qf = {
|
|
8136
8183
|
key: 0,
|
|
8137
8184
|
class: "flow-agent-task-trailing"
|
|
8138
|
-
},
|
|
8185
|
+
}, $f = { class: "flow-agent-task-time" }, ep = ["onClick"], tp = { class: "flow-agent-task-nodes" }, np = {
|
|
8139
8186
|
key: 1,
|
|
8140
8187
|
class: "flow-agent-status-dot"
|
|
8141
|
-
},
|
|
8188
|
+
}, rp = ["title"], ip = {
|
|
8142
8189
|
key: 0,
|
|
8143
8190
|
class: "flow-agent-node-trailing"
|
|
8144
|
-
},
|
|
8191
|
+
}, ap = { class: "flow-agent-node-time" }, op = ["onClick"], sp = /* @__PURE__ */ m({
|
|
8145
8192
|
__name: "flow-agent-content",
|
|
8146
8193
|
props: /* @__PURE__ */ y({
|
|
8147
8194
|
content: {},
|
|
@@ -8211,18 +8258,18 @@ var ld = ["src"], ud = {
|
|
|
8211
8258
|
}, B = (e) => {
|
|
8212
8259
|
let t = te.value;
|
|
8213
8260
|
return t === j(e) || t === N(e);
|
|
8214
|
-
},
|
|
8215
|
-
ee.value = Y(Y({}, ee.value), {}, { [e.task_id]: !
|
|
8216
|
-
}, se = (e) => {
|
|
8217
|
-
var t;
|
|
8218
|
-
return fe((t = e.task_state) == null ? "" : t);
|
|
8261
|
+
}, ie = (e, t) => te.value === L(e, t), ae = (e) => ee.value[e.task_id] !== !1, se = (e) => {
|
|
8262
|
+
ee.value = Y(Y({}, ee.value), {}, { [e.task_id]: !ae(e) });
|
|
8219
8263
|
}, ce = (e) => {
|
|
8220
|
-
|
|
8264
|
+
var t;
|
|
8265
|
+
return pe((t = e.task_state) == null ? "" : t);
|
|
8266
|
+
}, le = (e) => {
|
|
8267
|
+
let t = m[ce(e)];
|
|
8221
8268
|
return i(t || Gt);
|
|
8222
|
-
},
|
|
8269
|
+
}, ue = (e) => ut(de(e).reduce((e, t) => e + t.elapsed_time, 0)), de = (e) => {
|
|
8223
8270
|
var t;
|
|
8224
8271
|
return Object.values((t = e.nodes) == null ? {} : t);
|
|
8225
|
-
},
|
|
8272
|
+
}, pe = (e) => e === "FINISHED" ? "success" : u.has(e) ? "failed" : e === "SUSPENDED" ? "suspended" : e === "PENDING" ? "pending" : (r.has(e), "running"), me = a(() => {
|
|
8226
8273
|
let e = {
|
|
8227
8274
|
failed: 0,
|
|
8228
8275
|
pending: 0,
|
|
@@ -8232,16 +8279,16 @@ var ld = ["src"], ud = {
|
|
|
8232
8279
|
};
|
|
8233
8280
|
for (let r of A.value) {
|
|
8234
8281
|
var t, n;
|
|
8235
|
-
for (let [i, a] of Object.entries((t = (n = r.statistics) == null ? void 0 : n.state_counts) == null ? {} : t)) e[
|
|
8282
|
+
for (let [i, a] of Object.entries((t = (n = r.statistics) == null ? void 0 : n.state_counts) == null ? {} : t)) e[pe(i)] += a;
|
|
8236
8283
|
}
|
|
8237
8284
|
return p.filter((t) => e[t.key] > 0).map((t) => Y(Y({}, t), {}, { display: e[t.key] > 99 ? "99+" : String(e[t.key]) }));
|
|
8238
|
-
}),
|
|
8285
|
+
}), he = (e, t) => {
|
|
8239
8286
|
let n = e.task_id;
|
|
8240
8287
|
n != null && (ne(), g == null || g({
|
|
8241
8288
|
label: t.name,
|
|
8242
8289
|
name: L(e, t),
|
|
8243
8290
|
data: {
|
|
8244
|
-
component:
|
|
8291
|
+
component: qf,
|
|
8245
8292
|
messageUid: h.messageUid,
|
|
8246
8293
|
props: {
|
|
8247
8294
|
loading: !0,
|
|
@@ -8253,13 +8300,13 @@ var ld = ["src"], ud = {
|
|
|
8253
8300
|
}
|
|
8254
8301
|
}
|
|
8255
8302
|
}));
|
|
8256
|
-
},
|
|
8303
|
+
}, ge = (e) => {
|
|
8257
8304
|
let t = e == null ? void 0 : e.task_id;
|
|
8258
8305
|
t && (ne(), g == null || g({
|
|
8259
8306
|
label: q("有效证据"),
|
|
8260
8307
|
name: N(e),
|
|
8261
8308
|
data: {
|
|
8262
|
-
component:
|
|
8309
|
+
component: qf,
|
|
8263
8310
|
messageUid: h.messageUid,
|
|
8264
8311
|
props: {
|
|
8265
8312
|
loading: !0,
|
|
@@ -8271,74 +8318,74 @@ var ld = ["src"], ud = {
|
|
|
8271
8318
|
}
|
|
8272
8319
|
}));
|
|
8273
8320
|
};
|
|
8274
|
-
return
|
|
8321
|
+
return V(y, (e, t) => {
|
|
8275
8322
|
t !== void 0 && ne();
|
|
8276
8323
|
}), E(() => {
|
|
8277
|
-
x != null && x.value &&
|
|
8324
|
+
x != null && x.value && ge(A.value.find((e) => e.is_active && e.has_confidence));
|
|
8278
8325
|
}), O(() => {
|
|
8279
8326
|
if (x != null && x.value) for (let e of A.value) {
|
|
8280
8327
|
_ == null || _(j(e)), _ == null || _(N(e));
|
|
8281
|
-
for (let t of
|
|
8328
|
+
for (let t of de(e)) _ == null || _(L(e, t));
|
|
8282
8329
|
}
|
|
8283
|
-
}), (t, r) => (k(), o(
|
|
8330
|
+
}), (t, r) => (k(), o(_f, {
|
|
8284
8331
|
collapsed: C.value,
|
|
8285
8332
|
"onUpdate:collapsed": r[0] || (r[0] = (e) => C.value = e),
|
|
8286
|
-
"activity-type": R(
|
|
8333
|
+
"activity-type": R(W).FlowAgent,
|
|
8287
8334
|
class: "flow-agent-activity"
|
|
8288
8335
|
}, {
|
|
8289
|
-
title:
|
|
8336
|
+
title: H(() => [l("span", { class: S(["ai-activity-message-title-icon", { "icon-collapsed": C.value }]) }, [D.value ? (k(), o(Hn, {
|
|
8290
8337
|
key: 0,
|
|
8291
8338
|
size: 12
|
|
8292
|
-
})) : (k(), o(R(Bt), { key: 1 }))], 2), l("span",
|
|
8339
|
+
})) : (k(), o(R(Bt), { key: 1 }))], 2), l("span", Jf, [l("span", Yf, I(R(q)("执行情况")) + ": ", 1), (k(!0), c(e, null, M(me.value, (e) => (k(), c("span", {
|
|
8293
8340
|
key: e.key,
|
|
8294
8341
|
class: "flow-agent-stat-item"
|
|
8295
8342
|
}, [d(I(e.label) + ":", 1), l("span", {
|
|
8296
8343
|
class: "flow-agent-stat-count",
|
|
8297
8344
|
style: w({ color: e.color })
|
|
8298
8345
|
}, I(e.display), 5)]))), 128))])]),
|
|
8299
|
-
default:
|
|
8346
|
+
default: H(() => [(k(!0), c(e, null, M(A.value, (t) => (k(), c("div", {
|
|
8300
8347
|
key: t.task_id,
|
|
8301
8348
|
class: "flow-agent-task-group"
|
|
8302
8349
|
}, [l("div", { class: S(["flow-agent-task-header", {
|
|
8303
8350
|
"has-confidence": t.has_confidence,
|
|
8304
8351
|
"is-selected": B(t)
|
|
8305
8352
|
}]) }, [
|
|
8306
|
-
l("span", { class: S(["flow-agent-task-arrow", { "is-expanded":
|
|
8307
|
-
l("span",
|
|
8353
|
+
l("span", { class: S(["flow-agent-task-arrow", { "is-expanded": ae(t) }]) }, [f(R(Bt), { onClick: oe((e) => se(t), ["stop"]) }, null, 8, ["onClick"])], 2),
|
|
8354
|
+
l("span", Xf, [ce(t) === "running" ? (k(), o(R(fe), {
|
|
8308
8355
|
key: 0,
|
|
8309
8356
|
mode: "spin",
|
|
8310
8357
|
size: "mini",
|
|
8311
8358
|
theme: "primary"
|
|
8312
|
-
})) : (k(), o(P(
|
|
8313
|
-
|
|
8314
|
-
R(T) === R(wt).Share ? s("", !0) : (k(), c("span",
|
|
8359
|
+
})) : (k(), o(P(le(t)), { key: 1 }))]),
|
|
8360
|
+
U((k(), c("span", Zf, [f(R(mf), { text: t.task_name }, null, 8, ["text"])])), [[R(Zr), Y({}, R(n))]]),
|
|
8361
|
+
R(T) === R(wt).Share ? s("", !0) : (k(), c("span", Qf, [l("span", $f, I(ue(t)), 1), t.has_confidence ? (k(), c("span", {
|
|
8315
8362
|
key: 0,
|
|
8316
8363
|
class: "flow-agent-task-action-btn flow-agent-task-confidence-btn",
|
|
8317
|
-
onClick:
|
|
8318
|
-
}, [f(R(Jt)), d(" " + I(R(q)("有效证据")), 1)], 8,
|
|
8319
|
-
], 2),
|
|
8364
|
+
onClick: oe((e) => ge(t), ["stop"])
|
|
8365
|
+
}, [f(R(Jt)), d(" " + I(R(q)("有效证据")), 1)], 8, ep)) : s("", !0)]))
|
|
8366
|
+
], 2), U(l("div", tp, [(k(!0), c(e, null, M(de(t), (e) => (k(), c("div", {
|
|
8320
8367
|
key: e.id,
|
|
8321
|
-
class: S(["flow-agent-node-item", { "is-selected":
|
|
8368
|
+
class: S(["flow-agent-node-item", { "is-selected": ie(t, e) }])
|
|
8322
8369
|
}, [
|
|
8323
|
-
l("span", { class: S(["flow-agent-node-status", `is-${
|
|
8370
|
+
l("span", { class: S(["flow-agent-node-status", `is-${pe(e.state)}`]) }, [pe(e.state) === "running" ? (k(), o(R(fe), {
|
|
8324
8371
|
key: 0,
|
|
8325
8372
|
mode: "spin",
|
|
8326
8373
|
size: "mini",
|
|
8327
8374
|
theme: "primary"
|
|
8328
|
-
})) : (k(), c("span",
|
|
8329
|
-
|
|
8375
|
+
})) : (k(), c("span", np))], 2),
|
|
8376
|
+
U((k(), c("span", {
|
|
8330
8377
|
class: "flow-agent-node-name",
|
|
8331
8378
|
title: e.name
|
|
8332
|
-
}, [f(R(
|
|
8333
|
-
R(T) === R(wt).Share ? s("", !0) : (k(), c("span",
|
|
8379
|
+
}, [f(R(mf), { text: e.name }, null, 8, ["text"])], 8, rp)), [[R(Zr), Y({}, R(n))]]),
|
|
8380
|
+
R(T) === R(wt).Share ? s("", !0) : (k(), c("span", ip, [l("span", ap, I(R(ut)(e.elapsed_time)), 1), l("span", {
|
|
8334
8381
|
class: "flow-agent-node-detail-btn",
|
|
8335
|
-
onClick:
|
|
8336
|
-
}, [f(R(Jt)), d(" " + I(R(q)("详情")), 1)], 8,
|
|
8337
|
-
], 2))), 128))], 512), [[
|
|
8382
|
+
onClick: oe((n) => he(t, e), ["stop"])
|
|
8383
|
+
}, [f(R(Jt)), d(" " + I(R(q)("详情")), 1)], 8, op)]))
|
|
8384
|
+
], 2))), 128))], 512), [[re, ae(t)]])]))), 128))]),
|
|
8338
8385
|
_: 1
|
|
8339
8386
|
}, 8, ["collapsed", "activity-type"]));
|
|
8340
8387
|
}
|
|
8341
|
-
}),
|
|
8388
|
+
}), cp = { class: "ai-activity-message-title-icon" }, lp = { class: "ai-activity-message-title-text" }, up = { class: "knowledge-rag-content" }, dp = /* @__PURE__ */ m({
|
|
8342
8389
|
__name: "knowledge-rag-content",
|
|
8343
8390
|
props: /* @__PURE__ */ y({
|
|
8344
8391
|
content: {},
|
|
@@ -8351,22 +8398,22 @@ var ld = ["src"], ud = {
|
|
|
8351
8398
|
emits: ["update:collapsed"],
|
|
8352
8399
|
setup(e) {
|
|
8353
8400
|
let t = e, n = z(e, "collapsed"), r = a(() => t.status === K.Pending || t.status === K.Streaming), i = a(() => r.value ? q("检索中") : q("检索完成"));
|
|
8354
|
-
return (t, a) => (k(), o(
|
|
8401
|
+
return (t, a) => (k(), o(_f, {
|
|
8355
8402
|
collapsed: n.value,
|
|
8356
8403
|
"onUpdate:collapsed": a[0] || (a[0] = (e) => n.value = e)
|
|
8357
8404
|
}, {
|
|
8358
|
-
title:
|
|
8405
|
+
title: H(() => [l("span", cp, [r.value ? (k(), o(Hn, { key: 0 })) : (k(), o(R(It), {
|
|
8359
8406
|
key: 1,
|
|
8360
8407
|
style: { "font-size": "12px" }
|
|
8361
|
-
}))]), l("span",
|
|
8362
|
-
default:
|
|
8408
|
+
}))]), l("span", lp, I(i.value), 1)]),
|
|
8409
|
+
default: H(() => {
|
|
8363
8410
|
var t, n;
|
|
8364
|
-
return [l("div",
|
|
8411
|
+
return [l("div", up, [f(ul, { content: ((t = e.content) == null ? void 0 : t.content) || "" }, null, 8, ["content"])]), f(fl, { content: ((n = e.content) == null ? void 0 : n.referenceDocument) || [] }, null, 8, ["content"])];
|
|
8365
8412
|
}),
|
|
8366
8413
|
_: 1
|
|
8367
8414
|
}, 8, ["collapsed"]));
|
|
8368
8415
|
}
|
|
8369
|
-
}),
|
|
8416
|
+
}), fp = { class: "ai-activity-message-title-icon" }, pp = { class: "ai-activity-message-title-text" }, mp = /* @__PURE__ */ m({
|
|
8370
8417
|
__name: "reference-doc-content",
|
|
8371
8418
|
props: /* @__PURE__ */ y({
|
|
8372
8419
|
content: {},
|
|
@@ -8382,16 +8429,16 @@ var ld = ["src"], ud = {
|
|
|
8382
8429
|
let r = (e = (n = t.content) == null ? void 0 : n.length) == null ? 0 : e;
|
|
8383
8430
|
return dt ? `Reference ${r} documents as reference` : `引用 ${r} 篇资料作为参考`;
|
|
8384
8431
|
});
|
|
8385
|
-
return (t, i) => (k(), o(
|
|
8432
|
+
return (t, i) => (k(), o(_f, {
|
|
8386
8433
|
collapsed: n.value,
|
|
8387
8434
|
"onUpdate:collapsed": i[0] || (i[0] = (e) => n.value = e)
|
|
8388
8435
|
}, {
|
|
8389
|
-
title:
|
|
8390
|
-
default:
|
|
8436
|
+
title: H(() => [l("span", fp, [f(R(It), { style: { "font-size": "12px" } })]), l("span", pp, I(r.value), 1)]),
|
|
8437
|
+
default: H(() => [f(fl, { content: e.content || [] }, null, 8, ["content"])]),
|
|
8391
8438
|
_: 1
|
|
8392
8439
|
}, 8, ["collapsed"]));
|
|
8393
8440
|
}
|
|
8394
|
-
}),
|
|
8441
|
+
}), hp = /* @__PURE__ */ m({
|
|
8395
8442
|
__name: "activity-message",
|
|
8396
8443
|
props: /* @__PURE__ */ y({
|
|
8397
8444
|
activityType: {},
|
|
@@ -8410,9 +8457,9 @@ var ld = ["src"], ud = {
|
|
|
8410
8457
|
emits: ["update:collapsed"],
|
|
8411
8458
|
setup(e) {
|
|
8412
8459
|
let t = {
|
|
8413
|
-
[
|
|
8414
|
-
[
|
|
8415
|
-
[
|
|
8460
|
+
[W.FlowAgent]: sp,
|
|
8461
|
+
[W.KnowledgeRag]: dp,
|
|
8462
|
+
[W.ReferenceDocument]: mp
|
|
8416
8463
|
}, n = e, r = z(e, "collapsed"), i = a(() => {
|
|
8417
8464
|
var e;
|
|
8418
8465
|
return t[(e = n.activityType) == null ? "" : e];
|
|
@@ -8431,7 +8478,7 @@ var ld = ["src"], ud = {
|
|
|
8431
8478
|
"status"
|
|
8432
8479
|
])) : s("", !0);
|
|
8433
8480
|
}
|
|
8434
|
-
}),
|
|
8481
|
+
}), gp = { class: "toolcall-desc" }, _p = { class: "desc-title" }, vp = { class: "desc-panel" }, yp = { class: "desc-label" }, bp = { class: "desc-value" }, xp = /* @__PURE__ */ m({
|
|
8435
8482
|
__name: "desc-panel",
|
|
8436
8483
|
props: {
|
|
8437
8484
|
desc: {},
|
|
@@ -8445,19 +8492,19 @@ var ld = ["src"], ud = {
|
|
|
8445
8492
|
return n.desc;
|
|
8446
8493
|
}
|
|
8447
8494
|
});
|
|
8448
|
-
return (n, i) => (k(), c("div",
|
|
8495
|
+
return (n, i) => (k(), c("div", gp, [l("div", _p, I(t.title), 1), l("div", vp, [typeof r.value == "object" ? (k(!0), c(e, { key: 0 }, M(r.value, (e, t) => (k(), c("div", {
|
|
8449
8496
|
key: t,
|
|
8450
8497
|
class: "desc-panel-item"
|
|
8451
|
-
}, [l("span",
|
|
8498
|
+
}, [l("span", yp, [f(R(mf), { text: t }, null, 8, ["text"]), i[0] || (i[0] = d(":", -1))]), l("span", bp, [f(R(mf), {
|
|
8452
8499
|
style: { "word-break": "break-all" },
|
|
8453
8500
|
text: typeof e == "object" && e ? JSON.stringify(e) : e
|
|
8454
|
-
}, null, 8, ["text"])])]))), 128)) : (k(), o(R(
|
|
8501
|
+
}, null, 8, ["text"])])]))), 128)) : (k(), o(R(mf), {
|
|
8455
8502
|
key: 1,
|
|
8456
8503
|
style: { wordBreak: "break-all" },
|
|
8457
8504
|
text: r.value
|
|
8458
8505
|
}, null, 8, ["text"]))])]));
|
|
8459
8506
|
}
|
|
8460
|
-
}),
|
|
8507
|
+
}), Sp = { class: "tool-message" }, Cp = /* @__PURE__ */ m({
|
|
8461
8508
|
__name: "tool-message",
|
|
8462
8509
|
props: {
|
|
8463
8510
|
duration: {},
|
|
@@ -8473,15 +8520,15 @@ var ld = ["src"], ud = {
|
|
|
8473
8520
|
property: {}
|
|
8474
8521
|
},
|
|
8475
8522
|
setup(e) {
|
|
8476
|
-
return (t, n) => (k(), c("div",
|
|
8523
|
+
return (t, n) => (k(), c("div", Sp, [f(xp, {
|
|
8477
8524
|
desc: e.content || (typeof e.error == "string" ? e.error : void 0),
|
|
8478
8525
|
title: R(q)("返回内容")
|
|
8479
8526
|
}, null, 8, ["desc", "title"])]));
|
|
8480
8527
|
}
|
|
8481
|
-
}),
|
|
8528
|
+
}), wp = { class: "ai-toolcall-render" }, Tp = { class: "toolcall-header-title" }, Ep = { class: "toolcall-status-title" }, Dp = {
|
|
8482
8529
|
key: 1,
|
|
8483
8530
|
class: "toolcall-duration"
|
|
8484
|
-
},
|
|
8531
|
+
}, Op = { class: "ai-toolcall-render-content" }, kp = /* @__PURE__ */ m({
|
|
8485
8532
|
__name: "toolcall-render",
|
|
8486
8533
|
props: {
|
|
8487
8534
|
duration: {},
|
|
@@ -8525,40 +8572,40 @@ var ld = ["src"], ud = {
|
|
|
8525
8572
|
});
|
|
8526
8573
|
return (t, n) => {
|
|
8527
8574
|
var r, a, u, p;
|
|
8528
|
-
return k(), c("div",
|
|
8575
|
+
return k(), c("div", wp, [l("div", {
|
|
8529
8576
|
class: S(["ai-toolcall-render-header", `toolcall-status-${e.status}`]),
|
|
8530
8577
|
onClick: h
|
|
8531
8578
|
}, [
|
|
8532
8579
|
f(R(Bt), { class: S({ "is-collapsed": m.value }) }, null, 8, ["class"]),
|
|
8533
8580
|
d(" " + I((r = e.toolCall) != null && r.function.mcpName ? R(q)("调用 MCP:") : R(q)("调用工具:")) + " ", 1),
|
|
8534
|
-
|
|
8581
|
+
U((k(), c("span", Tp, [f(R(mf), { text: g.value }, null, 8, ["text"])])), [[R(Zr), Y(Y({}, R(i)), {}, {
|
|
8535
8582
|
text: g.value,
|
|
8536
8583
|
appendTo: "parent"
|
|
8537
8584
|
})]]),
|
|
8538
|
-
l("span",
|
|
8539
|
-
e.status === R(K).Pending || e.status === R(K).Streaming ? (k(), o(R(
|
|
8585
|
+
l("span", Ep, [
|
|
8586
|
+
e.status === R(K).Pending || e.status === R(K).Streaming ? (k(), o(R(fe), {
|
|
8540
8587
|
key: 0,
|
|
8541
8588
|
mode: "spin",
|
|
8542
8589
|
size: "mini",
|
|
8543
8590
|
theme: "primary"
|
|
8544
8591
|
})) : s("", !0),
|
|
8545
|
-
f(R(
|
|
8546
|
-
v.value ? (k(), c("span",
|
|
8592
|
+
f(R(mf), { text: _.value }, null, 8, ["text"]),
|
|
8593
|
+
v.value ? (k(), c("span", Dp, " (" + I(v.value) + ") ", 1)) : s("", !0)
|
|
8547
8594
|
])
|
|
8548
|
-
], 2),
|
|
8549
|
-
f(
|
|
8595
|
+
], 2), U(l("div", Op, [
|
|
8596
|
+
f(xp, {
|
|
8550
8597
|
desc: (a = e.toolCall) == null ? void 0 : a.function.description,
|
|
8551
8598
|
title: R(q)("描述")
|
|
8552
8599
|
}, null, 8, ["desc", "title"]),
|
|
8553
|
-
f(
|
|
8600
|
+
f(xp, {
|
|
8554
8601
|
desc: (u = e.toolCall) == null ? void 0 : u.function.arguments,
|
|
8555
8602
|
title: R(q)("参数")
|
|
8556
8603
|
}, null, 8, ["desc", "title"]),
|
|
8557
|
-
(p = e.toolCall) != null && p.toolMessage ? (k(), o(
|
|
8558
|
-
], 512), [[
|
|
8604
|
+
(p = e.toolCall) != null && p.toolMessage ? (k(), o(Cp, C(b({ key: 0 }, e.toolCall.toolMessage)), null, 16)) : s("", !0)
|
|
8605
|
+
], 512), [[re, !m.value]])]);
|
|
8559
8606
|
};
|
|
8560
8607
|
}
|
|
8561
|
-
}),
|
|
8608
|
+
}), Ap = { class: "ai-assistant-message" }, jp = { class: "ai-assistant-message-content" }, Mp = /* @__PURE__ */ m({
|
|
8562
8609
|
__name: "assistant-message",
|
|
8563
8610
|
props: {
|
|
8564
8611
|
toolCalls: {},
|
|
@@ -8572,21 +8619,21 @@ var ld = ["src"], ud = {
|
|
|
8572
8619
|
property: {}
|
|
8573
8620
|
},
|
|
8574
8621
|
setup(t) {
|
|
8575
|
-
return (n, r) => (k(), c("div",
|
|
8622
|
+
return (n, r) => (k(), c("div", Ap, [l("div", jp, [N(n.$slots, "default", C(h({ content: t.content })), () => [f(pl, {
|
|
8576
8623
|
content: t.content || "",
|
|
8577
8624
|
status: t.status,
|
|
8578
|
-
type: R(
|
|
8625
|
+
type: R(W).Text
|
|
8579
8626
|
}, null, 8, [
|
|
8580
8627
|
"content",
|
|
8581
8628
|
"status",
|
|
8582
8629
|
"type"
|
|
8583
|
-
])])]), t.toolCalls && t.toolCalls.length > 0 ? (k(!0), c(e, { key: 0 }, M(t.toolCalls, (e) => (k(), o(
|
|
8630
|
+
])])]), t.toolCalls && t.toolCalls.length > 0 ? (k(!0), c(e, { key: 0 }, M(t.toolCalls, (e) => (k(), o(kp, {
|
|
8584
8631
|
key: e.id,
|
|
8585
8632
|
status: t.status,
|
|
8586
8633
|
"tool-call": e
|
|
8587
8634
|
}, null, 8, ["status", "tool-call"]))), 128)) : s("", !0)]));
|
|
8588
8635
|
}
|
|
8589
|
-
}),
|
|
8636
|
+
}), Np = { class: "info-message" }, Pp = /* @__PURE__ */ m({
|
|
8590
8637
|
__name: "info-message",
|
|
8591
8638
|
props: {
|
|
8592
8639
|
content: {},
|
|
@@ -8599,20 +8646,20 @@ var ld = ["src"], ud = {
|
|
|
8599
8646
|
property: {}
|
|
8600
8647
|
},
|
|
8601
8648
|
setup(t) {
|
|
8602
|
-
return (n, r) => (k(), c("div",
|
|
8649
|
+
return (n, r) => (k(), c("div", Np, [(k(!0), c(e, null, M(Array.isArray(t.content) ? t.content : [t.content], (e, t) => (k(), c("div", {
|
|
8603
8650
|
key: t,
|
|
8604
8651
|
class: "info-message-content"
|
|
8605
8652
|
}, I(e), 1))), 128))]));
|
|
8606
8653
|
}
|
|
8607
|
-
}),
|
|
8654
|
+
}), Fp = { class: "ai-loading-message" }, Ip = /* @__PURE__ */ m({
|
|
8608
8655
|
__name: "loading-message",
|
|
8609
8656
|
setup(e) {
|
|
8610
|
-
return (e, t) => (k(), c("div",
|
|
8657
|
+
return (e, t) => (k(), c("div", Fp, [f(Hn, { size: 18 }), N(e.$slots, "default", {}, () => [d(I(R(q)("请求中...")), 1)])]));
|
|
8611
8658
|
}
|
|
8612
|
-
}),
|
|
8659
|
+
}), Lp = { class: "ai-reasoning-message" }, Rp = {
|
|
8613
8660
|
key: 0,
|
|
8614
8661
|
class: "ai-reasoning-message-title-icon"
|
|
8615
|
-
},
|
|
8662
|
+
}, zp = { class: "ai-reasoning-message-title-text" }, Bp = { class: "ai-reasoning-message-content" }, Vp = /* @__PURE__ */ m({
|
|
8616
8663
|
__name: "reasoning-message",
|
|
8617
8664
|
props: /* @__PURE__ */ y({
|
|
8618
8665
|
duration: {},
|
|
@@ -8630,7 +8677,7 @@ var ld = ["src"], ud = {
|
|
|
8630
8677
|
}),
|
|
8631
8678
|
emits: ["update:collapsed"],
|
|
8632
8679
|
setup(t) {
|
|
8633
|
-
let n = t, r = z(t, "collapsed"), { stop: i } =
|
|
8680
|
+
let n = t, r = z(t, "collapsed"), { stop: i } = V(() => n.duration, function() {
|
|
8634
8681
|
var e = X(function* (e) {
|
|
8635
8682
|
e && (r.value = !0, yield x(), i == null || i());
|
|
8636
8683
|
});
|
|
@@ -8648,7 +8695,7 @@ var ld = ["src"], ud = {
|
|
|
8648
8695
|
});
|
|
8649
8696
|
return (n, i) => {
|
|
8650
8697
|
var a;
|
|
8651
|
-
return k(), c("div",
|
|
8698
|
+
return k(), c("div", Lp, [l("div", {
|
|
8652
8699
|
class: S(["ai-reasoning-message-title", {
|
|
8653
8700
|
"ai-reasoning-message-title-collapsed": r.value,
|
|
8654
8701
|
"is-thinking": t.status === R(K).Pending || t.status === R(K).Streaming,
|
|
@@ -8657,44 +8704,44 @@ var ld = ["src"], ud = {
|
|
|
8657
8704
|
}]),
|
|
8658
8705
|
onClick: i[0] || (i[0] = (e) => r.value = !r.value)
|
|
8659
8706
|
}, [
|
|
8660
|
-
t.status === R(K).Pending || t.status === R(K).Streaming ? (k(), c("span",
|
|
8661
|
-
l("span",
|
|
8707
|
+
t.status === R(K).Pending || t.status === R(K).Streaming ? (k(), c("span", Rp, [f(Hn)])) : s("", !0),
|
|
8708
|
+
l("span", zp, I(u.value), 1),
|
|
8662
8709
|
l("span", { class: S(["ai-reasoning-message-title-icon collapsed-icon", { "is-collapsed": r.value }]) }, [f(R(hn))], 2)
|
|
8663
|
-
], 2),
|
|
8710
|
+
], 2), U(l("div", Bp, [t.status === R(K).Error ? (k(), o(Gc, {
|
|
8664
8711
|
key: 0,
|
|
8665
8712
|
content: ((a = t.content) == null ? void 0 : a.join("\n")) || ""
|
|
8666
8713
|
}, null, 8, ["content"])) : (k(!0), c(e, { key: 1 }, M(Array.isArray(t.content) ? t.content : [t.content], (e) => (k(), o(ul, {
|
|
8667
8714
|
key: e,
|
|
8668
8715
|
content: e
|
|
8669
|
-
}, null, 8, ["content"]))), 128))], 512), [[
|
|
8716
|
+
}, null, 8, ["content"]))), 128))], 512), [[re, !r.value]])]);
|
|
8670
8717
|
};
|
|
8671
8718
|
}
|
|
8672
|
-
}),
|
|
8719
|
+
}), Hp = { class: "ai-key-value-content" }, Up = {
|
|
8673
8720
|
key: 0,
|
|
8674
8721
|
class: "ai-key-value-title"
|
|
8675
|
-
},
|
|
8722
|
+
}, Wp = { class: "ai-key-value-content" }, Gp = { class: "item-key" }, Kp = { class: "item-value" }, qp = /* @__PURE__ */ m({
|
|
8676
8723
|
__name: "key-value-content",
|
|
8677
8724
|
props: {
|
|
8678
8725
|
content: {},
|
|
8679
8726
|
title: {}
|
|
8680
8727
|
},
|
|
8681
8728
|
setup(t) {
|
|
8682
|
-
return (n, r) => (k(), c("div",
|
|
8729
|
+
return (n, r) => (k(), c("div", Hp, [t.title ? (k(), c("div", Up, [f(R(mn)), d(" " + I(t.title), 1)])) : s("", !0), l("div", Wp, [(k(!0), c(e, null, M(t.content, (e) => (k(), c("div", {
|
|
8683
8730
|
key: e.key,
|
|
8684
8731
|
class: "key-value-item"
|
|
8685
8732
|
}, [
|
|
8686
|
-
l("div",
|
|
8733
|
+
l("div", Gp, I(e.key), 1),
|
|
8687
8734
|
r[0] || (r[0] = d(" : ", -1)),
|
|
8688
|
-
l("div",
|
|
8735
|
+
l("div", Kp, I(e.value), 1)
|
|
8689
8736
|
]))), 128))])]));
|
|
8690
8737
|
}
|
|
8691
|
-
}),
|
|
8738
|
+
}), Jp = { class: "ai-user-message" }, Yp = {
|
|
8692
8739
|
key: 0,
|
|
8693
8740
|
class: "ai-user-message-binary-files"
|
|
8694
|
-
},
|
|
8741
|
+
}, Xp = {
|
|
8695
8742
|
key: 1,
|
|
8696
8743
|
class: "ai-user-message-content"
|
|
8697
|
-
},
|
|
8744
|
+
}, Zp = { class: "user-edit-footer" }, Qp = /* @__PURE__ */ m({
|
|
8698
8745
|
__name: "user-message",
|
|
8699
8746
|
props: {
|
|
8700
8747
|
content: {},
|
|
@@ -8750,12 +8797,12 @@ var ld = ["src"], ud = {
|
|
|
8750
8797
|
return !!e.url || Fe(e.mimeType || ((t = e.file) == null ? void 0 : t.type));
|
|
8751
8798
|
}, y = a(() => {
|
|
8752
8799
|
var e;
|
|
8753
|
-
return Array.isArray(n.content) ? (e = n.content) == null ? void 0 : e.filter((e) => e.type ===
|
|
8800
|
+
return Array.isArray(n.content) ? (e = n.content) == null ? void 0 : e.filter((e) => e.type === W.Binary) : [];
|
|
8754
8801
|
}), x = a(() => y.value.filter((e) => v(e))), S = a(() => y.value.filter((e) => !v(e))), C = a(() => {
|
|
8755
8802
|
var e;
|
|
8756
8803
|
return n.content ? typeof n.content == "string" ? n.content : (e = n.content) == null ? void 0 : e.filter((e) => {
|
|
8757
8804
|
var t;
|
|
8758
|
-
return e.type ===
|
|
8805
|
+
return e.type === W.Text && !!((t = e.text) != null && t.trim());
|
|
8759
8806
|
}) : "";
|
|
8760
8807
|
}), w = function() {
|
|
8761
8808
|
var e = X(function* (e) {
|
|
@@ -8803,7 +8850,7 @@ var ld = ["src"], ud = {
|
|
|
8803
8850
|
}();
|
|
8804
8851
|
return (n, i) => {
|
|
8805
8852
|
var a, v;
|
|
8806
|
-
return k(), c("div",
|
|
8853
|
+
return k(), c("div", Jp, [g.value && typeof g.value == "string" ? (k(), o(Ku, {
|
|
8807
8854
|
key: 0,
|
|
8808
8855
|
class: "ai-user-message-cite",
|
|
8809
8856
|
content: g.value
|
|
@@ -8811,7 +8858,7 @@ var ld = ["src"], ud = {
|
|
|
8811
8858
|
class: "user-shortcut-render",
|
|
8812
8859
|
onClose: D,
|
|
8813
8860
|
onSubmit: O
|
|
8814
|
-
}), null, 16)) : (k(), o(
|
|
8861
|
+
}), null, 16)) : (k(), o(Xd, {
|
|
8815
8862
|
key: 1,
|
|
8816
8863
|
ref_key: "chatInputRef",
|
|
8817
8864
|
ref: m,
|
|
@@ -8822,18 +8869,18 @@ var ld = ["src"], ud = {
|
|
|
8822
8869
|
"on-send-message": A,
|
|
8823
8870
|
"support-upload": (a = (v = R(r)) == null ? void 0 : v.supportUpload.value) == null ? !1 : a
|
|
8824
8871
|
}, {
|
|
8825
|
-
"send-icon":
|
|
8872
|
+
"send-icon": H(() => [l("div", Zp, [f(R(se), {
|
|
8826
8873
|
size: "small",
|
|
8827
8874
|
onClick: E
|
|
8828
8875
|
}, {
|
|
8829
|
-
default:
|
|
8876
|
+
default: H(() => [d(I(R(q)("取消")), 1)]),
|
|
8830
8877
|
_: 1
|
|
8831
|
-
}), f(R(
|
|
8878
|
+
}), f(R(se), {
|
|
8832
8879
|
size: "small",
|
|
8833
8880
|
theme: "primary",
|
|
8834
8881
|
onClick: T
|
|
8835
8882
|
}, {
|
|
8836
|
-
default:
|
|
8883
|
+
default: H(() => [d(I(R(q)("发送")), 1)]),
|
|
8837
8884
|
_: 1
|
|
8838
8885
|
})])]),
|
|
8839
8886
|
_: 1
|
|
@@ -8842,7 +8889,7 @@ var ld = ["src"], ud = {
|
|
|
8842
8889
|
"default-upload-files",
|
|
8843
8890
|
"support-upload"
|
|
8844
8891
|
]))], 64)) : (k(), c(e, { key: 1 }, [
|
|
8845
|
-
y.value.length ? (k(), c(e, { key: 0 }, [x.value.length ? (k(), c("div",
|
|
8892
|
+
y.value.length ? (k(), c(e, { key: 0 }, [x.value.length ? (k(), c("div", Yp, [f(Cd, {
|
|
8846
8893
|
files: x.value,
|
|
8847
8894
|
readonly: !0
|
|
8848
8895
|
}, null, 8, ["files"])])) : s("", !0), (k(!0), c(e, null, M(S.value, (e, t) => {
|
|
@@ -8855,18 +8902,18 @@ var ld = ["src"], ud = {
|
|
|
8855
8902
|
readonly: !0
|
|
8856
8903
|
}, null, 8, ["files"])]);
|
|
8857
8904
|
}), 128))], 64)) : s("", !0),
|
|
8858
|
-
(g.value || C.value).length ? (k(), c("div",
|
|
8905
|
+
(g.value || C.value).length ? (k(), c("div", Xp, [Array.isArray(g.value) ? (k(), o(qp, {
|
|
8859
8906
|
key: 0,
|
|
8860
8907
|
content: g.value,
|
|
8861
8908
|
title: h.value
|
|
8862
8909
|
}, null, 8, ["content", "title"])) : t.content ? (k(!0), c(e, { key: 1 }, M(Array.isArray(C.value) ? C.value : [C.value], (t, n) => (k(), c(e, { key: n }, [typeof t == "string" ? (k(), o(ul, {
|
|
8863
8910
|
key: 0,
|
|
8864
8911
|
content: t
|
|
8865
|
-
}, null, 8, ["content"])) : t.type === R(
|
|
8912
|
+
}, null, 8, ["content"])) : t.type === R(W).Text ? (k(), o(ul, {
|
|
8866
8913
|
key: 1,
|
|
8867
8914
|
content: t.text
|
|
8868
8915
|
}, null, 8, ["content"])) : s("", !0)], 64))), 128)) : s("", !0)])) : s("", !0),
|
|
8869
|
-
t.messageToolsStatus === R(Yr).Hidden ? s("", !0) : (k(), o(
|
|
8916
|
+
t.messageToolsStatus === R(Yr).Hidden ? s("", !0) : (k(), o(pf, {
|
|
8870
8917
|
key: 2,
|
|
8871
8918
|
class: "ai-user-message-tools",
|
|
8872
8919
|
"message-tools": R(yt),
|
|
@@ -8882,7 +8929,7 @@ var ld = ["src"], ud = {
|
|
|
8882
8929
|
], 64))]);
|
|
8883
8930
|
};
|
|
8884
8931
|
}
|
|
8885
|
-
}),
|
|
8932
|
+
}), $p = /* @__PURE__ */ m({
|
|
8886
8933
|
__name: "message-render",
|
|
8887
8934
|
props: {
|
|
8888
8935
|
messageToolsStatus: {},
|
|
@@ -8895,35 +8942,35 @@ var ld = ["src"], ud = {
|
|
|
8895
8942
|
setup(e) {
|
|
8896
8943
|
let t = e, n = ne(), r = a(() => {
|
|
8897
8944
|
switch (t.message.role) {
|
|
8898
|
-
case G.User: return g(
|
|
8945
|
+
case G.User: return g(Qp, Y(Y({}, t.message), {}, {
|
|
8899
8946
|
onAction: t.onAction,
|
|
8900
8947
|
onInputConfirm: t.onInputConfirm,
|
|
8901
8948
|
onShortcutConfirm: t.onShortcutConfirm,
|
|
8902
8949
|
messageToolsStatus: t.messageToolsStatus,
|
|
8903
8950
|
tippyOptions: t.tippyOptions
|
|
8904
8951
|
}));
|
|
8905
|
-
case G.Assistant: return g(
|
|
8952
|
+
case G.Assistant: return g(Mp, t.message, { default: (e) => N(n, "default", e, () => [g(pl, {
|
|
8906
8953
|
content: t.message.content || "",
|
|
8907
8954
|
status: t.message.status
|
|
8908
8955
|
}, n.codeHeader ? { codeHeader: (e) => {
|
|
8909
8956
|
var t;
|
|
8910
8957
|
return (t = n.codeHeader) == null ? void 0 : t.call(n, e);
|
|
8911
8958
|
} } : void 0)]) });
|
|
8912
|
-
case G.Info: return g(
|
|
8913
|
-
case G.Reasoning: return g(
|
|
8914
|
-
case G.Tool: return g(
|
|
8915
|
-
case G.Activity: return console.log("props.message", t.message.content), g(
|
|
8916
|
-
case G.Loading: return g(
|
|
8959
|
+
case G.Info: return g(Pp, t.message);
|
|
8960
|
+
case G.Reasoning: return g(Vp, t.message);
|
|
8961
|
+
case G.Tool: return g(Cp, t.message);
|
|
8962
|
+
case G.Activity: return console.log("props.message", t.message.content), g(hp, t.message);
|
|
8963
|
+
case G.Loading: return g(Ip, t.message);
|
|
8917
8964
|
default: return null;
|
|
8918
8965
|
}
|
|
8919
8966
|
});
|
|
8920
8967
|
return (e, t) => (k(), o(P(r.value)));
|
|
8921
8968
|
}
|
|
8922
|
-
}),
|
|
8969
|
+
}), em = [
|
|
8923
8970
|
"id",
|
|
8924
8971
|
"onMouseenter",
|
|
8925
8972
|
"onMouseleave"
|
|
8926
|
-
],
|
|
8973
|
+
], tm = { class: "ai-message-fixed-bottom" }, nm = /* @__PURE__ */ m({
|
|
8927
8974
|
__name: "message-container",
|
|
8928
8975
|
props: /* @__PURE__ */ y({
|
|
8929
8976
|
enableSelection: {
|
|
@@ -9008,7 +9055,7 @@ var ld = ["src"], ud = {
|
|
|
9008
9055
|
style: w({ backgroundColor: i.checked ? "#f5f7fa" : "transparent" }),
|
|
9009
9056
|
onMouseenter: (e) => g(i),
|
|
9010
9057
|
onMouseleave: (e) => _(i, e)
|
|
9011
|
-
}, [t.enableSelection && i.type !== R(G).Loading ? (k(), o(R(
|
|
9058
|
+
}, [t.enableSelection && i.type !== R(G).Loading ? (k(), o(R(ce), {
|
|
9012
9059
|
key: 0,
|
|
9013
9060
|
class: "message-group-checkbox",
|
|
9014
9061
|
"model-value": i.checked,
|
|
@@ -9022,7 +9069,7 @@ var ld = ["src"], ud = {
|
|
|
9022
9069
|
}, {
|
|
9023
9070
|
message: e,
|
|
9024
9071
|
messageToolsStatus: t.messageToolsStatus
|
|
9025
|
-
}), () => [(k(), o(
|
|
9072
|
+
}), () => [(k(), o($p, {
|
|
9026
9073
|
key: n,
|
|
9027
9074
|
message: e,
|
|
9028
9075
|
"message-tools-status": t.messageToolsStatus,
|
|
@@ -9037,7 +9084,7 @@ var ld = ["src"], ud = {
|
|
|
9037
9084
|
"on-input-confirm",
|
|
9038
9085
|
"on-shortcut-confirm",
|
|
9039
9086
|
"tippy-options"
|
|
9040
|
-
]))])), 128)), t.renderMode !== R(wt).Share && !(t.enableSelection && i.type !== R(G).Loading) && !i.pause && i.type === R(G).Assistant && t.messageToolsStatus !== R(Yr).Hidden ? (k(), o(
|
|
9087
|
+
]))])), 128)), t.renderMode !== R(wt).Share && !(t.enableSelection && i.type !== R(G).Loading) && !i.pause && i.type === R(G).Assistant && t.messageToolsStatus !== R(Yr).Hidden ? (k(), o(pf, {
|
|
9041
9088
|
key: 0,
|
|
9042
9089
|
"message-tools": h.value,
|
|
9043
9090
|
"message-tools-status": t.messageToolsStatus,
|
|
@@ -9055,36 +9102,36 @@ var ld = ["src"], ud = {
|
|
|
9055
9102
|
"style",
|
|
9056
9103
|
"tippy-options",
|
|
9057
9104
|
"onFeedback"
|
|
9058
|
-
])) : s("", !0)], 6)], 44,
|
|
9105
|
+
])) : s("", !0)], 6)], 44, em))), 128)),
|
|
9059
9106
|
l("div", {
|
|
9060
9107
|
ref_key: "messageContainerBottomRef",
|
|
9061
9108
|
ref: u,
|
|
9062
9109
|
class: "message-container-bottom",
|
|
9063
9110
|
tabindex: "0"
|
|
9064
9111
|
}, null, 512),
|
|
9065
|
-
l("div",
|
|
9112
|
+
l("div", tm, [U(f(Fn, {
|
|
9066
9113
|
loading: t.messageStatus === R(K).StopLoading,
|
|
9067
9114
|
title: t.messageStatus === R(K).StopLoading ? R(q)("正在停止") : R(q)("停止生成"),
|
|
9068
9115
|
onClick: a[0] || (a[0] = (e) => r.$emit("stopStreaming"))
|
|
9069
9116
|
}, {
|
|
9070
|
-
icon:
|
|
9117
|
+
icon: H(() => [f(R(cn))]),
|
|
9071
9118
|
_: 1
|
|
9072
|
-
}, 8, ["loading", "title"]), [[
|
|
9119
|
+
}, 8, ["loading", "title"]), [[re, t.messageStatus === R(K).Streaming || t.messageStatus === R(K).StopLoading || t.messageStatus === R(K).Fetching || t.messageStatus === R(K).Pending]]), U(f(Fn, {
|
|
9073
9120
|
title: R(q)("返回底部"),
|
|
9074
9121
|
onClick: R(d)
|
|
9075
9122
|
}, {
|
|
9076
|
-
icon:
|
|
9123
|
+
icon: H(() => [f(R(vn))]),
|
|
9077
9124
|
_: 1
|
|
9078
|
-
}, 8, ["title", "onClick"]), [[
|
|
9125
|
+
}, 8, ["title", "onClick"]), [[re, R(p)]])])
|
|
9079
9126
|
], 512));
|
|
9080
9127
|
}
|
|
9081
|
-
}),
|
|
9128
|
+
}), rm = { class: "execution-summary" }, im = { class: "execution-summary-header" }, am = { class: "execution-summary-content" }, om = ["onMouseenter"], sm = { class: "content-item-header" }, cm = { class: "content-item-title" }, lm = { class: "content-item-messages" }, um = {
|
|
9082
9129
|
key: 0,
|
|
9083
9130
|
class: "timeline-line"
|
|
9084
|
-
},
|
|
9131
|
+
}, dm = {
|
|
9085
9132
|
key: 1,
|
|
9086
9133
|
class: "execution-summary-content-empty"
|
|
9087
|
-
},
|
|
9134
|
+
}, fm = { class: "execution-summary-content-empty-text" }, pm = /* @__PURE__ */ m({
|
|
9088
9135
|
__name: "execution-summary",
|
|
9089
9136
|
props: { messageGroups: {} },
|
|
9090
9137
|
emits: ["locateMessageGroup", "updateKeyword"],
|
|
@@ -9098,57 +9145,57 @@ var ld = ["src"], ud = {
|
|
|
9098
9145
|
}, h = () => {
|
|
9099
9146
|
a.value = "", r("updateKeyword", "");
|
|
9100
9147
|
};
|
|
9101
|
-
return (n, g) => (k(), c("div",
|
|
9148
|
+
return (n, g) => (k(), c("div", rm, [l("div", im, [f(R(de), {
|
|
9102
9149
|
modelValue: R(a),
|
|
9103
9150
|
"onUpdate:modelValue": [g[0] || (g[0] = (e) => v(a) ? a.value = e : null), g[1] || (g[1] = (e) => r("updateKeyword", e))],
|
|
9104
9151
|
class: "execution-summary-header-input",
|
|
9105
9152
|
clearable: "",
|
|
9106
9153
|
placeholder: R(q)("搜索 关键字")
|
|
9107
|
-
}, null, 8, ["modelValue", "placeholder"])]), l("div",
|
|
9154
|
+
}, null, 8, ["modelValue", "placeholder"])]), l("div", am, [t.messageGroups.length ? (k(!0), c(e, { key: 0 }, M(t.messageGroups, (n, r) => (k(), c("div", {
|
|
9108
9155
|
key: n.uid,
|
|
9109
9156
|
class: "execution-summary-content-item",
|
|
9110
9157
|
onMouseenter: (e) => u.value = n.uid,
|
|
9111
9158
|
onMouseleave: g[2] || (g[2] = (e) => u.value = void 0)
|
|
9112
9159
|
}, [
|
|
9113
|
-
l("div",
|
|
9160
|
+
l("div", sm, [
|
|
9114
9161
|
g[3] || (g[3] = l("span", { class: "timeline-dot" }, null, -1)),
|
|
9115
|
-
|
|
9116
|
-
|
|
9162
|
+
U((k(), c("span", cm, [d(I(typeof n.userMessageTitle == "number" ? p(n.userMessageTitle) : n.userMessageTitle), 1)])), [[R(Zr), Y({}, R(i))]]),
|
|
9163
|
+
U(f(R(se), {
|
|
9117
9164
|
class: "content-item-locate",
|
|
9118
9165
|
text: "",
|
|
9119
9166
|
theme: "primary",
|
|
9120
9167
|
onClick: (e) => m(n)
|
|
9121
9168
|
}, {
|
|
9122
|
-
default:
|
|
9169
|
+
default: H(() => [d(I(R(q)("在对话中定位")), 1)]),
|
|
9123
9170
|
_: 1
|
|
9124
|
-
}, 8, ["onClick"]), [[
|
|
9171
|
+
}, 8, ["onClick"]), [[re, u.value === n.uid]])
|
|
9125
9172
|
]),
|
|
9126
|
-
l("div",
|
|
9173
|
+
l("div", lm, [(k(!0), c(e, null, M(n.messages, (e, t) => (k(), o($p, {
|
|
9127
9174
|
key: t,
|
|
9128
9175
|
message: e
|
|
9129
9176
|
}, null, 8, ["message"]))), 128))]),
|
|
9130
|
-
r < t.messageGroups.length - 1 ? (k(), c("div",
|
|
9131
|
-
], 40,
|
|
9177
|
+
r < t.messageGroups.length - 1 ? (k(), c("div", um)) : s("", !0)
|
|
9178
|
+
], 40, om))), 128)) : (k(), c("div", dm, [f(R(le), {
|
|
9132
9179
|
class: "empty-exception",
|
|
9133
9180
|
type: "empty"
|
|
9134
|
-
}), l("div",
|
|
9181
|
+
}), l("div", fm, [d(I(R(a) ? R(q)("搜索结果为空") : R(q)("暂无数据")) + " ", 1), R(a) ? (k(), o(R(se), {
|
|
9135
9182
|
key: 0,
|
|
9136
9183
|
text: "",
|
|
9137
9184
|
theme: "primary",
|
|
9138
9185
|
onClick: h
|
|
9139
9186
|
}, {
|
|
9140
|
-
default:
|
|
9187
|
+
default: H(() => [d(I(R(q)("清空搜索")), 1)]),
|
|
9141
9188
|
_: 1
|
|
9142
9189
|
})) : s("", !0)])]))])]));
|
|
9143
9190
|
}
|
|
9144
|
-
}),
|
|
9191
|
+
}), mm = ["class", "style"], hm = { class: "ai-message-loading-row" }, gm = { class: "ai-message-loading-icon-wrap" }, _m = {
|
|
9145
9192
|
key: 0,
|
|
9146
9193
|
class: "ai-message-loading-text ai-message-loading-text-custom"
|
|
9147
|
-
},
|
|
9194
|
+
}, vm = {
|
|
9148
9195
|
key: 1,
|
|
9149
9196
|
"aria-live": "polite",
|
|
9150
9197
|
class: "ai-message-loading-text"
|
|
9151
|
-
},
|
|
9198
|
+
}, ym = /* @__PURE__ */ m(Y(Y({}, {
|
|
9152
9199
|
name: "MessageLoading",
|
|
9153
9200
|
inheritAttrs: !1
|
|
9154
9201
|
}), {}, {
|
|
@@ -9163,7 +9210,7 @@ var ld = ["src"], ud = {
|
|
|
9163
9210
|
setup(t) {
|
|
9164
9211
|
let n = t, r = te(), i = a(() => {
|
|
9165
9212
|
let { class: e, style: t } = r;
|
|
9166
|
-
return er(r,
|
|
9213
|
+
return er(r, mm);
|
|
9167
9214
|
}), o = a(() => ({
|
|
9168
9215
|
display: "block",
|
|
9169
9216
|
width: `${n.iconSize}px`,
|
|
@@ -9179,16 +9226,16 @@ var ld = ["src"], ud = {
|
|
|
9179
9226
|
return (t, n) => (k(), c("div", b({
|
|
9180
9227
|
class: ["ai-message-loading", R(r).class],
|
|
9181
9228
|
style: u.value
|
|
9182
|
-
}, i.value), [l("div",
|
|
9229
|
+
}, i.value), [l("div", hm, [l("span", gm, [N(t.$slots, "icon", {}, () => [f(R(Pt), {
|
|
9183
9230
|
class: "ai-message-loading-icon-svg",
|
|
9184
9231
|
style: w(o.value)
|
|
9185
|
-
}, null, 8, ["style"])])]), t.$slots.text ? (k(), c("span",
|
|
9232
|
+
}, null, 8, ["style"])])]), t.$slots.text ? (k(), c("span", _m, [N(t.$slots, "text")])) : (k(), c("span", vm, [(k(!0), c(e, null, M(s.value, (e, t) => (k(), c("span", {
|
|
9186
9233
|
key: `${t}-${e}`,
|
|
9187
9234
|
class: "ai-message-loading-char",
|
|
9188
9235
|
style: w({ "--char-index": t })
|
|
9189
9236
|
}, I(e), 5))), 128))]))])], 16));
|
|
9190
9237
|
}
|
|
9191
|
-
})),
|
|
9238
|
+
})), bm = { class: "ai-selection-footer" }, xm = { class: "ai-selection-footer-left" }, Sm = { class: "select-all-text" }, Cm = { class: "ai-selection-footer-right" }, wm = /* @__PURE__ */ m({
|
|
9192
9239
|
__name: "selection-footer",
|
|
9193
9240
|
props: {
|
|
9194
9241
|
isAllSelected: { type: Boolean },
|
|
@@ -9202,35 +9249,35 @@ var ld = ["src"], ud = {
|
|
|
9202
9249
|
],
|
|
9203
9250
|
setup(e, { emit: t }) {
|
|
9204
9251
|
let n = t;
|
|
9205
|
-
return (t, r) => (k(), c("div",
|
|
9252
|
+
return (t, r) => (k(), c("div", bm, [l("div", xm, [f(R(ce), {
|
|
9206
9253
|
"model-value": e.isAllSelected,
|
|
9207
9254
|
"onUpdate:modelValue": r[0] || (r[0] = (e) => n("toggle-all", e))
|
|
9208
|
-
}, null, 8, ["model-value"]), l("span",
|
|
9255
|
+
}, null, 8, ["model-value"]), l("span", Sm, I(R(q)("全选")), 1)]), l("div", Cm, [f(R(se), {
|
|
9209
9256
|
disabled: e.loading,
|
|
9210
9257
|
onClick: r[1] || (r[1] = (e) => n("cancel"))
|
|
9211
9258
|
}, {
|
|
9212
|
-
default:
|
|
9259
|
+
default: H(() => [d(I(R(q)("取消")), 1)]),
|
|
9213
9260
|
_: 1
|
|
9214
|
-
}, 8, ["disabled"]), f(R(
|
|
9261
|
+
}, 8, ["disabled"]), f(R(se), {
|
|
9215
9262
|
disabled: e.selectedCount === 0,
|
|
9216
9263
|
loading: e.loading,
|
|
9217
9264
|
theme: "primary",
|
|
9218
9265
|
onClick: r[2] || (r[2] = (e) => n("confirm"))
|
|
9219
9266
|
}, {
|
|
9220
|
-
default:
|
|
9267
|
+
default: H(() => [d(I(R(q)("确定")), 1)]),
|
|
9221
9268
|
_: 1
|
|
9222
9269
|
}, 8, ["disabled", "loading"])])]));
|
|
9223
9270
|
}
|
|
9224
|
-
}),
|
|
9271
|
+
}), Tm = {
|
|
9225
9272
|
key: 0,
|
|
9226
9273
|
class: "ai-chat-container-loading"
|
|
9227
|
-
},
|
|
9274
|
+
}, Em = {
|
|
9228
9275
|
key: 1,
|
|
9229
9276
|
class: "ai-welcome-content"
|
|
9230
|
-
},
|
|
9277
|
+
}, Dm = { class: "ai-welcome-title" }, Om = {
|
|
9231
9278
|
key: 0,
|
|
9232
9279
|
class: "ai-welcome-remark"
|
|
9233
|
-
},
|
|
9280
|
+
}, km = /* @__PURE__ */ m({
|
|
9234
9281
|
__name: "chat-container",
|
|
9235
9282
|
props: /* @__PURE__ */ y({
|
|
9236
9283
|
chatLoading: { type: Boolean },
|
|
@@ -9254,6 +9301,7 @@ var ld = ["src"], ud = {
|
|
|
9254
9301
|
resources: {},
|
|
9255
9302
|
shortcutId: {},
|
|
9256
9303
|
shortcuts: {},
|
|
9304
|
+
skills: {},
|
|
9257
9305
|
supportUpload: { type: Boolean },
|
|
9258
9306
|
tippyOptions: {},
|
|
9259
9307
|
messages: {},
|
|
@@ -9293,7 +9341,7 @@ var ld = ["src"], ud = {
|
|
|
9293
9341
|
"update:cite"
|
|
9294
9342
|
]),
|
|
9295
9343
|
setup(t, { expose: n, emit: r }) {
|
|
9296
|
-
let i =
|
|
9344
|
+
let i = ve.TabPanel, u = t, p = z(t, "renderMode");
|
|
9297
9345
|
Rr({ renderMode: p });
|
|
9298
9346
|
let m = a(() => Y(Y({
|
|
9299
9347
|
collapsible: !1,
|
|
@@ -9329,39 +9377,39 @@ var ld = ["src"], ud = {
|
|
|
9329
9377
|
return function(t) {
|
|
9330
9378
|
return e.apply(this, arguments);
|
|
9331
9379
|
};
|
|
9332
|
-
}() }), B = F(""),
|
|
9380
|
+
}() }), B = F(""), re = j([]), ie = F(400), ae = a(() => `calc(100% - ${ie.value}px)`), { messageGroups: oe, executionGroups: ce, isShareMode: le, isAllSelected: ue, onToggleShareAll: de, onCancelShare: fe, onConfirmShare: pe } = jr({
|
|
9333
9381
|
keyword: B,
|
|
9334
9382
|
messages: a(() => u.messages),
|
|
9335
|
-
selectedUserMessages:
|
|
9383
|
+
selectedUserMessages: re
|
|
9336
9384
|
});
|
|
9337
|
-
|
|
9338
|
-
e && (B.value = "",
|
|
9339
|
-
}),
|
|
9385
|
+
V(A, (e) => {
|
|
9386
|
+
e && (B.value = "", ie.value = 0), T("collapseChange", e, ie.value);
|
|
9387
|
+
}), V(() => ce.value, (e) => {
|
|
9340
9388
|
!e.length && !B.value && ne();
|
|
9341
9389
|
}, {
|
|
9342
9390
|
immediate: !0,
|
|
9343
9391
|
deep: !1
|
|
9344
9392
|
});
|
|
9345
|
-
let
|
|
9393
|
+
let me = a(() => {
|
|
9346
9394
|
var e;
|
|
9347
|
-
return u.messageStatus === K.StopLoading ? K.StopLoading : (e =
|
|
9348
|
-
}),
|
|
9395
|
+
return u.messageStatus === K.StopLoading ? K.StopLoading : (e = oe.value) != null && e.some((e) => e.messages.some((e) => e.id === "__loading__")) ? K.Fetching : u.messageStatus;
|
|
9396
|
+
}), ge = () => {
|
|
9349
9397
|
v.value = null, T("shortcutClose");
|
|
9350
|
-
},
|
|
9398
|
+
}, _e = (e) => {
|
|
9351
9399
|
T("shortcutSubmit", e);
|
|
9352
|
-
},
|
|
9400
|
+
}, ye = () => {
|
|
9353
9401
|
T("deleteShortcut");
|
|
9354
|
-
},
|
|
9402
|
+
}, be = (e) => {
|
|
9355
9403
|
T("selectShortcut", e);
|
|
9356
|
-
},
|
|
9404
|
+
}, xe = (e, t) => {
|
|
9357
9405
|
T("update:modelValue", e, t);
|
|
9358
|
-
},
|
|
9406
|
+
}, Se = () => {
|
|
9359
9407
|
A.value = !A.value;
|
|
9360
|
-
},
|
|
9408
|
+
}, Ce = (e) => {
|
|
9361
9409
|
if (!e) return;
|
|
9362
9410
|
let t = document.getElementById(e);
|
|
9363
9411
|
if (!t) {
|
|
9364
|
-
let t =
|
|
9412
|
+
let t = oe.value.find((t) => t.messages.some((t) => t.uid === e));
|
|
9365
9413
|
if (t) {
|
|
9366
9414
|
var n;
|
|
9367
9415
|
(n = document.getElementById(t.uid)) == null || n.scrollIntoView({ behavior: "smooth" });
|
|
@@ -9369,15 +9417,15 @@ var ld = ["src"], ud = {
|
|
|
9369
9417
|
return;
|
|
9370
9418
|
}
|
|
9371
9419
|
t.scrollIntoView({ behavior: "smooth" });
|
|
9372
|
-
}, Ce = (e) => {
|
|
9373
|
-
te(E.value.find((t) => t.name === e));
|
|
9374
9420
|
}, we = (e) => {
|
|
9421
|
+
te(E.value.find((t) => t.name === e));
|
|
9422
|
+
}, Te = (e) => {
|
|
9375
9423
|
B.value = e;
|
|
9376
|
-
},
|
|
9424
|
+
}, Ee = function() {
|
|
9377
9425
|
var e = X(function* (e, t) {
|
|
9378
9426
|
var n;
|
|
9379
9427
|
if (e.id === "share") {
|
|
9380
|
-
|
|
9428
|
+
le.value = !0;
|
|
9381
9429
|
return;
|
|
9382
9430
|
}
|
|
9383
9431
|
return (n = u.onAgentAction) == null ? void 0 : n.call(u, e, t);
|
|
@@ -9385,12 +9433,12 @@ var ld = ["src"], ud = {
|
|
|
9385
9433
|
return function(t, n) {
|
|
9386
9434
|
return e.apply(this, arguments);
|
|
9387
9435
|
};
|
|
9388
|
-
}(),
|
|
9389
|
-
T("confirmShare",
|
|
9390
|
-
|
|
9436
|
+
}(), De = () => {
|
|
9437
|
+
T("confirmShare", pe()), x(() => {
|
|
9438
|
+
le.value = !1, re.value = [];
|
|
9391
9439
|
});
|
|
9392
|
-
},
|
|
9393
|
-
|
|
9440
|
+
}, Oe = (e) => {
|
|
9441
|
+
ie.value = e;
|
|
9394
9442
|
};
|
|
9395
9443
|
return O(() => {
|
|
9396
9444
|
ne();
|
|
@@ -9400,31 +9448,31 @@ var ld = ["src"], ud = {
|
|
|
9400
9448
|
removeCustomTab: L,
|
|
9401
9449
|
selectCustomTab: te,
|
|
9402
9450
|
enterShareMode: () => {
|
|
9403
|
-
|
|
9451
|
+
le.value = !0;
|
|
9404
9452
|
},
|
|
9405
9453
|
exitShareMode: () => {
|
|
9406
|
-
|
|
9454
|
+
fe();
|
|
9407
9455
|
}
|
|
9408
9456
|
}), (n, r) => {
|
|
9409
9457
|
var a, u;
|
|
9410
9458
|
return k(), c("div", {
|
|
9411
9459
|
class: "ai-chat-container",
|
|
9412
|
-
style: w({ "--resize-main-width":
|
|
9413
|
-
}, [t.chatLoading ? (k(), c("div",
|
|
9460
|
+
style: w({ "--resize-main-width": ae.value })
|
|
9461
|
+
}, [t.chatLoading ? (k(), c("div", Tm, [f(ym)])) : (k(), o(R(he), b({
|
|
9414
9462
|
key: 1,
|
|
9415
|
-
class: ["ai-chat-container-resize-layout", { "ai-is-collapse": R(A) || !((a = B.value) != null && a.length) && ((u = R(
|
|
9416
|
-
}, m.value, { onResizing:
|
|
9417
|
-
aside:
|
|
9463
|
+
class: ["ai-chat-container-resize-layout", { "ai-is-collapse": R(A) || !((a = B.value) != null && a.length) && ((u = R(ce)) == null ? void 0 : u.length) < 1 || p.value === R(wt).Share }]
|
|
9464
|
+
}, m.value, { onResizing: Oe }), {
|
|
9465
|
+
aside: H(() => {
|
|
9418
9466
|
var n, a, l, u, m;
|
|
9419
|
-
return [!R(A) && ((n = R(
|
|
9420
|
-
f(R(
|
|
9467
|
+
return [!R(A) && ((n = R(ce)) != null && n.length || (a = B.value) != null && a.length) && p.value !== R(wt).Share ? (k(), c(e, { key: 0 }, [
|
|
9468
|
+
f(R(ve), {
|
|
9421
9469
|
active: R(D).name,
|
|
9422
9470
|
class: "ai-chat-container-tab",
|
|
9423
9471
|
"label-height": 40,
|
|
9424
9472
|
type: "unborder-card",
|
|
9425
|
-
onChange:
|
|
9473
|
+
onChange: we
|
|
9426
9474
|
}, {
|
|
9427
|
-
default:
|
|
9475
|
+
default: H(() => [(k(!0), c(e, null, M(R(E), (e) => (k(), o(R(i), {
|
|
9428
9476
|
key: e.name,
|
|
9429
9477
|
class: "ai-chat-container-tab-panel",
|
|
9430
9478
|
label: () => {
|
|
@@ -9439,7 +9487,7 @@ var ld = ["src"], ud = {
|
|
|
9439
9487
|
}
|
|
9440
9488
|
}, (n = (r = t.getSideTabRenderComponent) == null ? void 0 : r.call(t, g, e, { removeCustomTab: R(L) })) == null ? [
|
|
9441
9489
|
g(e.name === R("execution") ? R(qt) : R(Yt), { class: "ai-execution-summary-icon" }),
|
|
9442
|
-
|
|
9490
|
+
U(g("span", { class: "ai-execution-summary-label-text" }, (i = e.label) == null ? "" : i), [[R(Zr), Y(Y({}, t.commonTippyOptions), {}, { text: (a = e.label) == null ? "" : a })]]),
|
|
9443
9491
|
e.name === R("execution") ? null : g(R(yn), {
|
|
9444
9492
|
class: "ai-execution-close-icon",
|
|
9445
9493
|
onClick: () => {
|
|
@@ -9452,66 +9500,66 @@ var ld = ["src"], ud = {
|
|
|
9452
9500
|
}, null, 8, ["label", "name"]))), 128))]),
|
|
9453
9501
|
_: 1
|
|
9454
9502
|
}, 8, ["active"]),
|
|
9455
|
-
((l = R(D)) == null ? void 0 : l.name) === R("execution") ? (k(), c(e, { key: 0 }, [R(A) ? s("", !0) : (k(), o(
|
|
9503
|
+
((l = R(D)) == null ? void 0 : l.name) === R("execution") ? (k(), c(e, { key: 0 }, [R(A) ? s("", !0) : (k(), o(pm, {
|
|
9456
9504
|
key: 0,
|
|
9457
|
-
"message-groups": R(
|
|
9505
|
+
"message-groups": R(ce),
|
|
9458
9506
|
style: { height: "calc(100% - 40px)" },
|
|
9459
|
-
onLocateMessageGroup:
|
|
9460
|
-
onUpdateKeyword:
|
|
9507
|
+
onLocateMessageGroup: Ce,
|
|
9508
|
+
onUpdateKeyword: Te
|
|
9461
9509
|
}, null, 8, ["message-groups"]))], 64)) : s("", !0),
|
|
9462
9510
|
R(D) ? (k(), c("div", {
|
|
9463
9511
|
key: R(D).name,
|
|
9464
9512
|
class: "ai-chat-container-message-slot"
|
|
9465
9513
|
}, [(k(), o(P(_.value), b({ key: R(D).name }, (u = R(D)) == null || (u = u.data) == null ? void 0 : u.props), {
|
|
9466
|
-
locateButton:
|
|
9514
|
+
locateButton: H(() => [f(R(se), {
|
|
9467
9515
|
class: "ai-locate-button",
|
|
9468
9516
|
size: "small",
|
|
9469
9517
|
text: "",
|
|
9470
9518
|
theme: "primary",
|
|
9471
9519
|
onClick: r[0] || (r[0] = (e) => {
|
|
9472
9520
|
var t;
|
|
9473
|
-
return
|
|
9521
|
+
return Ce((t = R(D)) == null || (t = t.data) == null ? void 0 : t.messageUid);
|
|
9474
9522
|
})
|
|
9475
9523
|
}, {
|
|
9476
|
-
default:
|
|
9524
|
+
default: H(() => [d(I(R(q)("在对话中定位")), 1)]),
|
|
9477
9525
|
_: 1
|
|
9478
9526
|
})]),
|
|
9479
9527
|
_: 1
|
|
9480
9528
|
}, 16))])) : s("", !0)
|
|
9481
|
-
], 64)) : s("", !0), (m = R(
|
|
9529
|
+
], 64)) : s("", !0), (m = R(ce)) != null && m.length && p.value !== R(wt).Share ? (k(), c("div", {
|
|
9482
9530
|
key: 1,
|
|
9483
9531
|
class: S(["collapse-button", { "is-right": t.placement === "right" }]),
|
|
9484
|
-
onClick:
|
|
9532
|
+
onClick: Se
|
|
9485
9533
|
}, [f(R(qt)), d(" " + I(R(q)("执行情况")), 1)], 2)) : s("", !0)];
|
|
9486
9534
|
}),
|
|
9487
|
-
main:
|
|
9535
|
+
main: H(() => {
|
|
9488
9536
|
var i, a, u;
|
|
9489
9537
|
return [(i = t.messages) != null && i.length ? N(n.$slots, "default", C(b({ key: 0 }, {
|
|
9490
9538
|
messages: t.messages,
|
|
9491
9539
|
messageStatus: t.messageStatus,
|
|
9492
|
-
messageGroups: R(
|
|
9493
|
-
selectedUserMessages:
|
|
9540
|
+
messageGroups: R(oe),
|
|
9541
|
+
selectedUserMessages: re.value,
|
|
9494
9542
|
messageToolsStatus: t.messageToolsStatus,
|
|
9495
|
-
isShareMode: R(
|
|
9543
|
+
isShareMode: R(le),
|
|
9496
9544
|
commonTippyOptions: t.commonTippyOptions,
|
|
9497
|
-
handleAgentAction:
|
|
9545
|
+
handleAgentAction: Ee,
|
|
9498
9546
|
onAgentFeedback: t.onAgentFeedback,
|
|
9499
9547
|
onUserAction: t.onUserAction,
|
|
9500
9548
|
onUserInputConfirm: t.onUserInputConfirm,
|
|
9501
9549
|
onUserShortcutConfirm: t.onUserShortcutConfirm
|
|
9502
9550
|
})), () => {
|
|
9503
9551
|
var e;
|
|
9504
|
-
return [(e = t.messages) != null && e.length ? (k(), o(
|
|
9552
|
+
return [(e = t.messages) != null && e.length ? (k(), o(nm, {
|
|
9505
9553
|
key: 0,
|
|
9506
|
-
"selected-user-messages":
|
|
9507
|
-
"onUpdate:selectedUserMessages": r[1] || (r[1] = (e) =>
|
|
9508
|
-
"enable-selection": R(
|
|
9509
|
-
"message-groups": R(
|
|
9510
|
-
"message-status":
|
|
9554
|
+
"selected-user-messages": re.value,
|
|
9555
|
+
"onUpdate:selectedUserMessages": r[1] || (r[1] = (e) => re.value = e),
|
|
9556
|
+
"enable-selection": R(le),
|
|
9557
|
+
"message-groups": R(oe),
|
|
9558
|
+
"message-status": me.value,
|
|
9511
9559
|
"message-tools-status": t.messageToolsStatus,
|
|
9512
9560
|
"message-tools-tippy-options": t.commonTippyOptions,
|
|
9513
9561
|
messages: t.messages,
|
|
9514
|
-
"on-agent-action":
|
|
9562
|
+
"on-agent-action": Ee,
|
|
9515
9563
|
"on-agent-feedback": t.onAgentFeedback,
|
|
9516
9564
|
"on-user-action": t.onUserAction,
|
|
9517
9565
|
"on-user-input-confirm": t.onUserInputConfirm,
|
|
@@ -9519,7 +9567,7 @@ var ld = ["src"], ud = {
|
|
|
9519
9567
|
"render-mode": p.value,
|
|
9520
9568
|
onStopStreaming: r[2] || (r[2] = (e) => T("stopStreaming"))
|
|
9521
9569
|
}, {
|
|
9522
|
-
default:
|
|
9570
|
+
default: H(({ message: e, messageToolsStatus: t }) => [N(n.$slots, "message", C(h({
|
|
9523
9571
|
message: e,
|
|
9524
9572
|
messageToolsStatus: t
|
|
9525
9573
|
})))]),
|
|
@@ -9538,37 +9586,37 @@ var ld = ["src"], ud = {
|
|
|
9538
9586
|
"on-user-shortcut-confirm",
|
|
9539
9587
|
"render-mode"
|
|
9540
9588
|
])) : s("", !0)];
|
|
9541
|
-
}) : (k(), c("div",
|
|
9589
|
+
}) : (k(), c("div", Em, [N(n.$slots, "welcome", C(h({
|
|
9542
9590
|
openingRemark: t.openingRemark,
|
|
9543
9591
|
welcomeTitle: t.welcomeTitle
|
|
9544
9592
|
})), () => {
|
|
9545
9593
|
var e;
|
|
9546
9594
|
return [
|
|
9547
9595
|
f(R(Ft)),
|
|
9548
|
-
l("h2",
|
|
9549
|
-
t.openingRemark ? (k(), c("div",
|
|
9596
|
+
l("h2", Dm, I((e = t.welcomeTitle) == null ? R(q)("你好,我是小鲸") : e), 1),
|
|
9597
|
+
t.openingRemark ? (k(), c("div", Om, [f(pl, { content: t.openingRemark }, null, 8, ["content"])])) : s("", !0)
|
|
9550
9598
|
];
|
|
9551
|
-
})])), p.value === R(wt).Share ? s("", !0) : (k(), c(e, { key: 2 }, [R(
|
|
9599
|
+
})])), p.value === R(wt).Share ? s("", !0) : (k(), c(e, { key: 2 }, [R(le) ? (k(), o(wm, {
|
|
9552
9600
|
key: 0,
|
|
9553
|
-
"is-all-selected": R(
|
|
9601
|
+
"is-all-selected": R(ue),
|
|
9554
9602
|
loading: !1,
|
|
9555
|
-
"selected-count":
|
|
9556
|
-
onCancel: R(
|
|
9557
|
-
onConfirm:
|
|
9558
|
-
onToggleAll: R(
|
|
9603
|
+
"selected-count": re.value.length,
|
|
9604
|
+
onCancel: R(fe),
|
|
9605
|
+
onConfirm: De,
|
|
9606
|
+
onToggleAll: R(de)
|
|
9559
9607
|
}, null, 8, [
|
|
9560
9608
|
"is-all-selected",
|
|
9561
9609
|
"selected-count",
|
|
9562
9610
|
"onCancel",
|
|
9563
9611
|
"onToggleAll"
|
|
9564
9612
|
])) : !((a = v.value) == null || (a = a.components) == null) && a.length ? (k(), o(lr, b({ key: 1 }, v.value, {
|
|
9565
|
-
onClose:
|
|
9566
|
-
onSubmit:
|
|
9567
|
-
}), null, 16)) : (k(), o(
|
|
9613
|
+
onClose: ge,
|
|
9614
|
+
onSubmit: _e
|
|
9615
|
+
}), null, 16)) : (k(), o(Xd, {
|
|
9568
9616
|
key: 2,
|
|
9569
9617
|
cite: y.value,
|
|
9570
9618
|
"onUpdate:cite": r[3] || (r[3] = (e) => y.value = e),
|
|
9571
|
-
"message-status":
|
|
9619
|
+
"message-status": me.value,
|
|
9572
9620
|
"model-value": t.modelValue,
|
|
9573
9621
|
"on-send-message": t.onSendMessage,
|
|
9574
9622
|
"on-stop-sending": t.onStopSending,
|
|
@@ -9578,11 +9626,12 @@ var ld = ["src"], ud = {
|
|
|
9578
9626
|
resources: t.resources,
|
|
9579
9627
|
"shortcut-id": (u = v.value) == null ? void 0 : u.id,
|
|
9580
9628
|
shortcuts: t.shortcuts,
|
|
9629
|
+
skills: t.skills,
|
|
9581
9630
|
"support-upload": t.supportUpload,
|
|
9582
9631
|
"tippy-options": t.commonTippyOptions,
|
|
9583
|
-
onDeleteShortcut:
|
|
9584
|
-
onSelectShortcut:
|
|
9585
|
-
"onUpdate:modelValue":
|
|
9632
|
+
onDeleteShortcut: ye,
|
|
9633
|
+
onSelectShortcut: be,
|
|
9634
|
+
"onUpdate:modelValue": xe
|
|
9586
9635
|
}, null, 8, [
|
|
9587
9636
|
"cite",
|
|
9588
9637
|
"message-status",
|
|
@@ -9595,6 +9644,7 @@ var ld = ["src"], ud = {
|
|
|
9595
9644
|
"resources",
|
|
9596
9645
|
"shortcut-id",
|
|
9597
9646
|
"shortcuts",
|
|
9647
|
+
"skills",
|
|
9598
9648
|
"support-upload",
|
|
9599
9649
|
"tippy-options"
|
|
9600
9650
|
]))], 64))];
|
|
@@ -9603,7 +9653,7 @@ var ld = ["src"], ud = {
|
|
|
9603
9653
|
}, 16, ["class"]))], 4);
|
|
9604
9654
|
};
|
|
9605
9655
|
}
|
|
9606
|
-
}),
|
|
9656
|
+
}), Am = { class: "ai-image-preview-group" }, jm = /* @__PURE__ */ m(Y(Y({}, { name: "ImagePreviewGroup" }), {}, {
|
|
9607
9657
|
__name: "image-preview-group",
|
|
9608
9658
|
props: {
|
|
9609
9659
|
maskClosable: {
|
|
@@ -9632,7 +9682,7 @@ var ld = ["src"], ud = {
|
|
|
9632
9682
|
let a = [...t.keys()], o = a.map((e) => t.get(e)()), s = a.indexOf(e);
|
|
9633
9683
|
r.value = o, i.value = s >= 0 ? s : 0, n.value = !0;
|
|
9634
9684
|
}
|
|
9635
|
-
}), (t, a) => (k(), c("div",
|
|
9685
|
+
}), (t, a) => (k(), c("div", Am, [N(t.$slots, "default"), n.value ? (k(), o(md, {
|
|
9636
9686
|
key: 0,
|
|
9637
9687
|
current: i.value,
|
|
9638
9688
|
"onUpdate:current": a[0] || (a[0] = (e) => i.value = e),
|
|
@@ -9644,7 +9694,7 @@ var ld = ["src"], ud = {
|
|
|
9644
9694
|
"show-info": e.showInfo
|
|
9645
9695
|
}, u({ _: 2 }, [t.$slots.extra ? {
|
|
9646
9696
|
name: "extra",
|
|
9647
|
-
fn:
|
|
9697
|
+
fn: H(() => [N(t.$slots, "extra")]),
|
|
9648
9698
|
key: "0"
|
|
9649
9699
|
} : void 0]), 1032, [
|
|
9650
9700
|
"current",
|
|
@@ -9655,10 +9705,10 @@ var ld = ["src"], ud = {
|
|
|
9655
9705
|
"show-info"
|
|
9656
9706
|
])) : s("", !0)]));
|
|
9657
9707
|
}
|
|
9658
|
-
})),
|
|
9708
|
+
})), Mm = ["alt", "src"], Nm = {
|
|
9659
9709
|
key: 1,
|
|
9660
9710
|
class: "ai-image-error"
|
|
9661
|
-
},
|
|
9711
|
+
}, Pm = /* @__PURE__ */ m(Y(Y({}, { name: "AiImage" }), {}, {
|
|
9662
9712
|
__name: "image",
|
|
9663
9713
|
props: {
|
|
9664
9714
|
alt: { default: "" },
|
|
@@ -9750,8 +9800,8 @@ var ld = ["src"], ud = {
|
|
|
9750
9800
|
style: ee,
|
|
9751
9801
|
onError: P,
|
|
9752
9802
|
onLoad: M
|
|
9753
|
-
}, null, 40,
|
|
9754
|
-
h.value === "error" ? (k(), c("div",
|
|
9803
|
+
}, null, 40, Mm)) : s("", !0),
|
|
9804
|
+
h.value === "error" ? (k(), c("div", Nm, [f(R(Ht), { class: "ai-image-error-icon" })])) : s("", !0),
|
|
9755
9805
|
h.value === "error" ? (k(), c("div", {
|
|
9756
9806
|
key: 2,
|
|
9757
9807
|
class: "ai-image-error-overlay",
|
|
@@ -9767,7 +9817,7 @@ var ld = ["src"], ud = {
|
|
|
9767
9817
|
"show-info": e.showInfo
|
|
9768
9818
|
}, u({ _: 2 }, [t.$slots.extra ? {
|
|
9769
9819
|
name: "extra",
|
|
9770
|
-
fn:
|
|
9820
|
+
fn: H(() => [N(t.$slots, "extra")]),
|
|
9771
9821
|
key: "0"
|
|
9772
9822
|
} : void 0]), 1032, [
|
|
9773
9823
|
"visible",
|
|
@@ -9779,4 +9829,4 @@ var ld = ["src"], ud = {
|
|
|
9779
9829
|
}
|
|
9780
9830
|
}));
|
|
9781
9831
|
//#endregion
|
|
9782
|
-
export { Ft as AIBluekingBannerIcon, Pt as AIBluekingIcon, jn as ActiveLikeIcon, Mn as ActiveUnLikeIcon, xn as AgentIcon,
|
|
9832
|
+
export { Ft as AIBluekingBannerIcon, Pt as AIBluekingIcon, jn as ActiveLikeIcon, Mn as ActiveUnLikeIcon, xn as AgentIcon, Pm as AiImage, Hn as AiLoading, Jn as AiSelection, vn as ArrowDownIcon, nn as ArrowLeftIcon, Bt as ArrowRightIcon, rn as ArrowRightPreviewIcon, Wt as BkFlowFailedIcon, Kt as BkFlowPendingIcon, Ut as BkFlowSuccessIcon, Gt as BkFlowSuspendedIcon, pt as CHAT_Z_INDEX, vt as CONST_MESSAGE_TOOLS, bt as CONST_UPDATE_TOOLS, yt as CONST_USER_MESSAGE_TOOLS, hr as CONTAINER_SCROLL_TOKEN, yr as CUSTOM_TAB_TOKEN, km as ChatContainer, Xd as ChatInput, wn as CiteIcon, cn as CloseCircleIcon, yn as CloseIcon, jc as CodeContent, hn as CollapsedIcon, _n as ContentLoadingIcon, pl as ContentRender, Cn as CopyIcon, Pn as DEFAULT_SHORTCUTS, Il as Delete, un as DeleteCircleIcon, kn as DeleteIcon, ln as DocLinkIcon, It as DocumentIcon, en as DownloadIcon, ht as EDITOR_MENU_Z_INDEX, mt as EDITOR_Z_INDEX, br as EXECUTION_TAB_NAME, An as EditIcon, gn as ErrorIcon, qt as ExecutionIcon, pm as ExecutionSummary, dn as FileUploadIcon, $t as FitScreenIcon, Cr as GLOBAL_CONFIG_TOKEN, Ct as HIGHLIGHT_KEYWORD_CLASS_NAME, mf as HighlightKeyword, Kr as IMAGE_PREVIEW_GROUP_KEY, on as ImageBrokenIcon, Rc as ImageContent, Ht as ImageErrorIcon, md as ImagePreview, jm as ImagePreviewGroup, sn as ImageSizeIcon, Ll as InsertText, Tt as LOADING_MESSAGE_ID, Bc as LatexContent, Dn as LikeIcon, Vt as LinkIcon, pn as LoadingMessageIcon, xt as MAX_UPLOAD_FILES, St as MAX_UPLOAD_FILE_SIZE, Et as MarkdownLanguageMap, Hc as MermaidContent, nm as MessageContainer, W as MessageContentType, ym as MessageLoading, $p as MessageRender, G as MessageRole, qr as MessageState, K as MessageStatus, pf as MessageTools, Yr as MessageToolsStatus, cf as MessageUserFeedback, Sn as MoreAgentIcon, bn as MoreIcon, Jt as NodeOutputIcon, Yt as NodeTabIcon, Zr as OverflowTips, tn as PreviewCloseIcon, Lt as PreviewIcon, Tn as RebuildIcon, an as ReloadIcon, zt as RemoveIcon, wt as RenderMode, Rl as ReplaceAll, Qt as RotateIcon, _t as SELECTION_Z_INDEX, gt as SHORTCUT_MENU_Z_INDEX, gr as SHOW_SCROLL_BOTTOM_BTN_DISTANCE, Fn as ScrollBtn, wm as SelectionFooter, fn as SendMessageIcon, En as ShareIcon, Gn as ShortcutBtn, Qn as ShortcutBtns, lr as ShortcutRender, Rt as TargetIcon, mn as ThinkingIcon, kp as ToolCallRender, Nn as ToolIconsMap, On as UnLikeIcon, Jr as UploadStatus, sl as VNodeRenderer, Xt as ZoomInIcon, Zt as ZoomOutIcon, Gc as commonErrorContent, J as commonSVGProps, Ye as completeMarkdownSyntax, Iu as createEditor, _l as docToString, ct as formatDuration, ut as formatElapsedTime, Re as formatFileSize, ze as formatUploadNotAddedMessage, lt as generateUUID, st as getCookieByName, Le as getFileExtension, Ie as getFilePreviewUrl, Mr as getScrollParent, Tr as injectGlobalConfig, dt as isEn, Fe as isImageFile, ft as lang, ac as markdownAnimationAttrs, fc as markdownItBkInlineStyle, _c as markdownItLatex, yc as markdownItMermaid, Bl as microtask, zl as min, Be as needsMarkdownCompletion, Gr as noop, Lu as plainSchema, Ve as removeCompletionSuffix, Wr as resourceTypeMap, Bu as schema, vl as stringToDoc, q as t, ur as useAnimationText, pr as useClipboard, mr as useCommandSelection, vr as useContainerScrollConsumer, _r as useContainerScrollProvider, Sr as useCustomTabConsumer, xr as useCustomTabProvider, wr as useGlobalConfig, Er as useMenuKeydown, jr as useMessageGroup, Yn as useObserverVisibleList, Nr as useParentScrolling, zu as voidNode };
|