@blueking/chat-x 0.0.40 → 0.0.41
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 +552 -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,46 @@ 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 = {
|
|
7066
|
+
key: 0,
|
|
7067
|
+
class: "ai-skill-list-item-desc"
|
|
7068
|
+
}, Md = /* @__PURE__ */ m({
|
|
7069
|
+
__name: "ai-skill-list",
|
|
7070
|
+
props: {
|
|
7071
|
+
onSelect: { type: Function },
|
|
7072
|
+
skills: {}
|
|
7073
|
+
},
|
|
7074
|
+
setup(t) {
|
|
7075
|
+
let n = t, r = ee(/* @__PURE__ */ new Set()), i = B("skillListRef"), { activeIndex: o } = Er({
|
|
7076
|
+
items: a(() => n.skills),
|
|
7077
|
+
onSelect: n.onSelect,
|
|
7078
|
+
menuRef: i
|
|
7079
|
+
});
|
|
7080
|
+
return ie(() => {
|
|
7081
|
+
n.skills, o.value = 0;
|
|
7082
|
+
}), (n, a) => (k(), c("div", {
|
|
7083
|
+
ref_key: "skillListRef",
|
|
7084
|
+
ref: i,
|
|
7085
|
+
class: "ai-skill-list"
|
|
7086
|
+
}, [(k(!0), c(e, null, M(t.skills, (e, n) => {
|
|
7087
|
+
var i;
|
|
7088
|
+
return k(), c("div", {
|
|
7089
|
+
key: e.skill_code,
|
|
7090
|
+
class: S(["ai-skill-list-item", { "is-active": R(o) === n }]),
|
|
7091
|
+
onClick: (n) => t.onSelect(e)
|
|
7092
|
+
}, [e.icon && !r.has(e.skill_code) ? (k(), c("img", {
|
|
7093
|
+
key: 0,
|
|
7094
|
+
src: e.icon,
|
|
7095
|
+
alt: "",
|
|
7096
|
+
class: "ai-skill-list-item-icon",
|
|
7097
|
+
onError: (t) => r.add(e.skill_code)
|
|
7098
|
+
}, 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), e.description ? (k(), c("div", jd, I(e.description), 1)) : s("", !0)])], 10, Ed);
|
|
7099
|
+
}), 128))], 512));
|
|
7100
|
+
}
|
|
7101
|
+
}), Nd = { class: "ai-slash-item ai-slash-group-title" }, Pd = ["onClick"], Fd = ["onClick"], Id = ["title"], Ld = /* @__PURE__ */ m({
|
|
7063
7102
|
__name: "ai-slash-menu",
|
|
7064
7103
|
props: {
|
|
7065
7104
|
onSelect: { type: Function },
|
|
@@ -7077,7 +7116,7 @@ var ld = ["src"], ud = {
|
|
|
7077
7116
|
onSelect: n.onSelect,
|
|
7078
7117
|
menuRef: r
|
|
7079
7118
|
});
|
|
7080
|
-
|
|
7119
|
+
ie(() => {
|
|
7081
7120
|
let e = [], t = [];
|
|
7082
7121
|
for (let [a, o] of Object.entries(Wr)) {
|
|
7083
7122
|
var r, i;
|
|
@@ -7105,13 +7144,13 @@ var ld = ["src"], ud = {
|
|
|
7105
7144
|
}, [(k(!0), c(e, null, M(o.value, (n, r) => (k(), c(e, null, [n.items.length > 0 ? (k(), c("div", {
|
|
7106
7145
|
key: r,
|
|
7107
7146
|
class: "ai-slash-group"
|
|
7108
|
-
}, [l("div",
|
|
7147
|
+
}, [l("div", Nd, [
|
|
7109
7148
|
(k(), c("svg", {
|
|
7110
7149
|
class: "title-icon",
|
|
7111
7150
|
style: w({ transform: i.value.includes(n.type) ? "rotate(90deg)" : "rotate(0deg)" }),
|
|
7112
7151
|
viewBox: "0 0 1024 1024",
|
|
7113
7152
|
onClick: (e) => f(n)
|
|
7114
|
-
}, [...p[0] || (p[0] = [l("path", { d: "M800 512L288 928V96z" }, null, -1)])], 12,
|
|
7153
|
+
}, [...p[0] || (p[0] = [l("path", { d: "M800 512L288 928V96z" }, null, -1)])], 12, Pd)),
|
|
7115
7154
|
l("span", { class: S(`mark-${n.type}`) }, null, 2),
|
|
7116
7155
|
d(" " + I(n.name) + " (" + I(n.items.length) + ") ", 1)
|
|
7117
7156
|
]), i.value.includes(n.type) ? (k(!0), c(e, { key: 0 }, M(n.items, (e) => {
|
|
@@ -7120,23 +7159,23 @@ var ld = ["src"], ud = {
|
|
|
7120
7159
|
key: e.id,
|
|
7121
7160
|
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
7161
|
onClick: (n) => t.onSelect(e)
|
|
7123
|
-
}, [
|
|
7162
|
+
}, [U((k(), c("span", {
|
|
7124
7163
|
class: "ellipsis-text",
|
|
7125
7164
|
title: e.name
|
|
7126
|
-
}, [d(I(e.name), 1)], 8,
|
|
7165
|
+
}, [d(I(e.name), 1)], 8, Id)), [[R(Zr), {
|
|
7127
7166
|
text: e.name,
|
|
7128
7167
|
zIndex: 9999999,
|
|
7129
7168
|
placement: "right-start",
|
|
7130
7169
|
theme: "ai-slash-editor-overflow-tips-theme"
|
|
7131
|
-
}]])], 10,
|
|
7170
|
+
}]])], 10, Fd);
|
|
7132
7171
|
}), 128)) : s("", !0)])) : s("", !0)], 64))), 256))], 512)) : s("", !0);
|
|
7133
7172
|
};
|
|
7134
7173
|
}
|
|
7135
|
-
}),
|
|
7174
|
+
}), Rd = (e, t, n, r) => new Cl().delete(n, r), zd = (e, t, n, r) => new Cl().insert(n, [[{ data: {
|
|
7136
7175
|
label: r.name,
|
|
7137
7176
|
value: r.name,
|
|
7138
7177
|
type: r.type
|
|
7139
|
-
} }]]),
|
|
7178
|
+
} }]]), Bd = (e, t, n, r) => new Cl().insert(n, [[{ text: r }]]), Vd = Bu({
|
|
7140
7179
|
multiline: !0,
|
|
7141
7180
|
void: { tag: zu({
|
|
7142
7181
|
is: (e) => e.contentEditable === "false" && e.dataset.tagType !== void 0,
|
|
@@ -7147,13 +7186,14 @@ var ld = ["src"], ud = {
|
|
|
7147
7186
|
}),
|
|
7148
7187
|
plain: (e) => e.label
|
|
7149
7188
|
}) }
|
|
7150
|
-
}),
|
|
7189
|
+
}), Hd = { class: "ai-slash-input-wrapper" }, Ud = ["aria-placeholder"], Wd = { key: 0 }, Gd = ["data-tag-type"], Kd = { key: 1 }, qd = /* @__PURE__ */ m({
|
|
7151
7190
|
__name: "ai-slash-input",
|
|
7152
7191
|
props: {
|
|
7153
7192
|
modelValue: {},
|
|
7154
7193
|
placeholder: { default: dt ? "Please enter content" : "请输入内容" },
|
|
7155
7194
|
prompts: { default: () => [] },
|
|
7156
|
-
resources: { default: () => [] }
|
|
7195
|
+
resources: { default: () => [] },
|
|
7196
|
+
skills: { default: () => [] }
|
|
7157
7197
|
},
|
|
7158
7198
|
emits: [
|
|
7159
7199
|
"update:modelValue",
|
|
@@ -7172,13 +7212,13 @@ var ld = ["src"], ud = {
|
|
|
7172
7212
|
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
7213
|
})) == null ? void 0 : n.filter((e) => !!e)) || []), t();
|
|
7174
7214
|
}
|
|
7175
|
-
})), g = F("slash"), _ = F(""), v = F([]), y = F([]), b, x, C = () => document.body, { commandSelection:
|
|
7176
|
-
|
|
7177
|
-
|
|
7215
|
+
})), g = F("slash"), _ = F(""), v = F([]), y = F([]), b = F([]), x, C, w = () => document.body, { commandSelection: T, GetCursorPosition: D, GetDocSnapshot: A, docSnapshot: ee } = mr();
|
|
7216
|
+
V(() => m.modelValue, () => {
|
|
7217
|
+
x.command(A), _l(ee.value || []) !== _l(h.value || []) && x.command(Rl, _l(h.value || []));
|
|
7178
7218
|
}, { deep: !1 });
|
|
7179
|
-
let
|
|
7219
|
+
let j = () => {
|
|
7180
7220
|
setTimeout(() => {
|
|
7181
|
-
let e =
|
|
7221
|
+
let e = L();
|
|
7182
7222
|
if (_.value = e.query || "", e.isActive) {
|
|
7183
7223
|
var t, n;
|
|
7184
7224
|
(t = a.value) == null || t.setProps({ getReferenceClientRect: () => {
|
|
@@ -7195,15 +7235,15 @@ var ld = ["src"], ud = {
|
|
|
7195
7235
|
(r = a.value) == null || r.hide();
|
|
7196
7236
|
}
|
|
7197
7237
|
}, 16);
|
|
7198
|
-
},
|
|
7238
|
+
}, N = (e) => {
|
|
7199
7239
|
if (u("keydown", e), e.key === "Enter" || e.key === "NumpadEnter") {
|
|
7200
7240
|
var t;
|
|
7201
7241
|
return e.shiftKey ? void 0 : ((t = e.preventDefault) == null || t.call(e), !1);
|
|
7202
7242
|
}
|
|
7203
|
-
e.key === "@" && (g.value = "slash",
|
|
7204
|
-
}, N = () => {
|
|
7205
|
-
_.value = "";
|
|
7243
|
+
e.key === "@" && (g.value = "slash", j()), e.key === "/" && (g.value = "skill", j()), e.key === "\\" && (g.value = "prompt", j());
|
|
7206
7244
|
}, P = () => {
|
|
7245
|
+
_.value = "";
|
|
7246
|
+
}, L = () => {
|
|
7207
7247
|
let e = {
|
|
7208
7248
|
isActive: !1,
|
|
7209
7249
|
query: "",
|
|
@@ -7213,16 +7253,16 @@ var ld = ["src"], ud = {
|
|
|
7213
7253
|
if (!t || t.rangeCount === 0) return e;
|
|
7214
7254
|
let n = t.getRangeAt(0), r = n.startContainer, i = n.startOffset;
|
|
7215
7255
|
if (r.nodeType !== Node.TEXT_NODE) return e;
|
|
7216
|
-
let a = (r.textContent || "").slice(0, i), o =
|
|
7217
|
-
if (!
|
|
7218
|
-
let
|
|
7256
|
+
let a = (r.textContent || "").slice(0, i), o = g.value === "slash" ? "@" : g.value === "skill" ? "/" : "\\", s = RegExp(`(${o === "\\" ? "\\\\" : o}[^\\s]*)$`), c = a.match(s);
|
|
7257
|
+
if (!c) return e;
|
|
7258
|
+
let l = c[1], u = l == null ? void 0 : l.slice(1), d = c.index + c[0].indexOf(o);
|
|
7219
7259
|
try {
|
|
7220
7260
|
let e = document.createRange();
|
|
7221
|
-
e.setStart(r,
|
|
7261
|
+
e.setStart(r, d), e.setEnd(r, d + 1);
|
|
7222
7262
|
let t = e.getBoundingClientRect();
|
|
7223
7263
|
return {
|
|
7224
7264
|
isActive: !0,
|
|
7225
|
-
query:
|
|
7265
|
+
query: u,
|
|
7226
7266
|
rect: t,
|
|
7227
7267
|
coordinates: {
|
|
7228
7268
|
top: t.bottom,
|
|
@@ -7233,43 +7273,46 @@ var ld = ["src"], ud = {
|
|
|
7233
7273
|
} catch (t) {
|
|
7234
7274
|
return e;
|
|
7235
7275
|
}
|
|
7236
|
-
},
|
|
7276
|
+
}, te = (e, t) => e.reduce((e, n, r) => {
|
|
7237
7277
|
if (r >= t) return e;
|
|
7238
7278
|
if (n.type === "text") {
|
|
7239
7279
|
var i;
|
|
7240
7280
|
e += ((i = n.text) == null ? void 0 : i.length) || 0;
|
|
7241
7281
|
}
|
|
7242
7282
|
return n.type === "tag" && (e += 1), e;
|
|
7243
|
-
}, 0),
|
|
7283
|
+
}, 0), z = (e) => {
|
|
7244
7284
|
var t;
|
|
7245
|
-
|
|
7246
|
-
let { column: n, line: r } =
|
|
7247
|
-
|
|
7248
|
-
},
|
|
7285
|
+
x.command(D);
|
|
7286
|
+
let { column: n, line: r } = T.value;
|
|
7287
|
+
x.command(Rd, [r, n - _.value.length - 1], [r, n]), x.command(zd, [r, n], e), x.command(Bd, [r, n + _.value.length + 1 + 1], " "), (t = a.value) == null || t.hide(), ne();
|
|
7288
|
+
}, ne = () => {
|
|
7249
7289
|
setTimeout(() => {
|
|
7250
7290
|
let e = window.getSelection(), t = document.createRange();
|
|
7251
7291
|
i.value && e && (t.selectNodeContents(i.value), t.collapse(!1), e.removeAllRanges(), e.addRange(t));
|
|
7252
7292
|
}, 100);
|
|
7253
|
-
},
|
|
7254
|
-
|
|
7293
|
+
}, re = (e) => {
|
|
7294
|
+
x.command(Rl, e), ne();
|
|
7295
|
+
}, ae = (e) => {
|
|
7296
|
+
var t;
|
|
7297
|
+
x.command(Rl, `/${e.skill_code} `), (t = a.value) == null || t.hide(), ne();
|
|
7255
7298
|
};
|
|
7256
|
-
|
|
7299
|
+
ie(() => {
|
|
7257
7300
|
var e;
|
|
7258
7301
|
let t = (e = m.resources) == null ? void 0 : e.filter((e) => {
|
|
7259
7302
|
var t;
|
|
7260
7303
|
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
7304
|
});
|
|
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) {
|
|
7305
|
+
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
7306
|
var n;
|
|
7264
7307
|
(n = a.value) == null || n.hide();
|
|
7265
7308
|
}
|
|
7266
7309
|
});
|
|
7267
|
-
let
|
|
7310
|
+
let U = (e, t, n, r) => {
|
|
7268
7311
|
if (t.type === "tag") {
|
|
7269
|
-
let t =
|
|
7270
|
-
|
|
7312
|
+
let t = te(e, n);
|
|
7313
|
+
x.command(Rd, [r, t], [r, t + 1]);
|
|
7271
7314
|
}
|
|
7272
|
-
},
|
|
7315
|
+
}, oe = (e) => {
|
|
7273
7316
|
var t;
|
|
7274
7317
|
let n = (t = e.clipboardData) == null ? void 0 : t.items;
|
|
7275
7318
|
if (!n) return;
|
|
@@ -7279,52 +7322,52 @@ var ld = ["src"], ud = {
|
|
|
7279
7322
|
t && r.push(t);
|
|
7280
7323
|
}
|
|
7281
7324
|
r.length > 0 && (e.preventDefault(), u("upload", r));
|
|
7282
|
-
},
|
|
7283
|
-
|
|
7325
|
+
}, se = () => {
|
|
7326
|
+
C == null || C(), x = Iu({
|
|
7284
7327
|
doc: h.value,
|
|
7285
|
-
schema:
|
|
7328
|
+
schema: Vd,
|
|
7286
7329
|
onChange: function() {
|
|
7287
7330
|
var e = X(function* (e) {
|
|
7288
|
-
h.value = e,
|
|
7331
|
+
h.value = e, j();
|
|
7289
7332
|
});
|
|
7290
7333
|
return function(t) {
|
|
7291
7334
|
return e.apply(this, arguments);
|
|
7292
7335
|
};
|
|
7293
7336
|
}(),
|
|
7294
|
-
onKeyDown: (e) =>
|
|
7295
|
-
}),
|
|
7296
|
-
},
|
|
7337
|
+
onKeyDown: (e) => N(e)
|
|
7338
|
+
}), C = x.input(i.value);
|
|
7339
|
+
}, 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
7340
|
return E(() => {
|
|
7298
7341
|
var e;
|
|
7299
|
-
|
|
7342
|
+
se(), (e = i.value) == null || e.addEventListener("paste", oe);
|
|
7300
7343
|
}), O(() => {
|
|
7301
7344
|
var e;
|
|
7302
|
-
|
|
7345
|
+
x.command(Rl, ""), C == null || C(), (e = i.value) == null || e.removeEventListener("paste", oe);
|
|
7303
7346
|
}), n({
|
|
7304
7347
|
cleanup: () => {
|
|
7305
|
-
|
|
7348
|
+
x.command(Rl, "");
|
|
7306
7349
|
},
|
|
7307
|
-
focus:
|
|
7350
|
+
focus: ne
|
|
7308
7351
|
}), (n, r) => {
|
|
7309
7352
|
var u;
|
|
7310
|
-
return k(), c("div",
|
|
7353
|
+
return k(), c("div", Hd, [l("div", {
|
|
7311
7354
|
ref_key: "editorRef",
|
|
7312
7355
|
ref: i,
|
|
7313
7356
|
"aria-placeholder": t.placeholder,
|
|
7314
7357
|
class: "ai-slash-input",
|
|
7315
7358
|
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",
|
|
7359
|
+
}, [(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", Wd, I(r.text), 1)) : r.type === "tag" ? (k(), c("span", {
|
|
7317
7360
|
key: 1,
|
|
7318
7361
|
class: S(`mention-tag-${r.data.type}`),
|
|
7319
7362
|
contenteditable: "false",
|
|
7320
7363
|
"data-tag-type": r.data.type
|
|
7321
7364
|
}, [d(I(r.data.label) + " ", 1), f(R(zt), {
|
|
7322
7365
|
class: "mention-tag-remove-icon",
|
|
7323
|
-
onClick: (e) =>
|
|
7324
|
-
}, null, 8, ["onClick"])], 10,
|
|
7366
|
+
onClick: (e) => U(t, r, i, n)
|
|
7367
|
+
}, null, 8, ["onClick"])], 10, Gd)) : s("", !0)], 64))), 128)) : (k(), c("br", Kd))]))), 128)) : s("", !0)], 8, Ud), f(R(ye), {
|
|
7325
7368
|
ref_key: "tippyRef",
|
|
7326
7369
|
ref: a,
|
|
7327
|
-
"append-to":
|
|
7370
|
+
"append-to": w,
|
|
7328
7371
|
arrow: !1,
|
|
7329
7372
|
"hide-on-click": !0,
|
|
7330
7373
|
interactive: !0,
|
|
@@ -7334,23 +7377,27 @@ var ld = ["src"], ud = {
|
|
|
7334
7377
|
trigger: "manual",
|
|
7335
7378
|
"trigger-target": i.value,
|
|
7336
7379
|
"z-index": R(ht),
|
|
7337
|
-
onHidden:
|
|
7338
|
-
onShow:
|
|
7380
|
+
onHidden: P,
|
|
7381
|
+
onShow: ce
|
|
7339
7382
|
}, {
|
|
7340
|
-
content:
|
|
7383
|
+
content: H(() => [g.value === "slash" ? (k(), o(Ld, {
|
|
7341
7384
|
key: 0,
|
|
7342
|
-
"on-select":
|
|
7385
|
+
"on-select": z,
|
|
7343
7386
|
"resource-list": v.value
|
|
7344
|
-
}, null, 8, ["resource-list"])) : g.value === "
|
|
7387
|
+
}, null, 8, ["resource-list"])) : g.value === "skill" ? (k(), o(Md, {
|
|
7345
7388
|
key: 1,
|
|
7346
|
-
"on-select":
|
|
7347
|
-
|
|
7389
|
+
"on-select": ae,
|
|
7390
|
+
skills: y.value
|
|
7391
|
+
}, null, 8, ["skills"])) : g.value === "prompt" ? (k(), o(Td, {
|
|
7392
|
+
key: 2,
|
|
7393
|
+
"on-select": re,
|
|
7394
|
+
prompts: b.value
|
|
7348
7395
|
}, null, 8, ["prompts"])) : s("", !0)]),
|
|
7349
7396
|
_: 1
|
|
7350
7397
|
}, 8, ["trigger-target", "z-index"])]);
|
|
7351
7398
|
};
|
|
7352
7399
|
}
|
|
7353
|
-
}),
|
|
7400
|
+
}), Jd = { class: "ai-input-attachment" }, Yd = /* @__PURE__ */ m({
|
|
7354
7401
|
__name: "input-attachment",
|
|
7355
7402
|
props: {
|
|
7356
7403
|
messageState: {},
|
|
@@ -7363,26 +7410,26 @@ var ld = ["src"], ud = {
|
|
|
7363
7410
|
}, a = () => {
|
|
7364
7411
|
n.messageState === K.Disabled || n.messageState === K.Pending || n.messageState === K.Streaming || r("sendMessage");
|
|
7365
7412
|
};
|
|
7366
|
-
return (t, r) => (k(), c("div",
|
|
7413
|
+
return (t, r) => (k(), c("div", Jd, [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
7414
|
key: 0,
|
|
7368
7415
|
onClick: i
|
|
7369
|
-
}, null, 512)), [[R(
|
|
7416
|
+
}, null, 512)), [[R(be), Y(Y({}, e.tippyOptions), {}, {
|
|
7370
7417
|
content: R(q)("停止"),
|
|
7371
7418
|
theme: "ai-chat-box",
|
|
7372
7419
|
offset: [0, 16]
|
|
7373
|
-
})]]) :
|
|
7420
|
+
})]]) : U((k(), o(R(fn), {
|
|
7374
7421
|
key: 1,
|
|
7375
7422
|
onClick: a
|
|
7376
|
-
}, null, 512)), [[R(
|
|
7423
|
+
}, null, 512)), [[R(be), Y(Y({}, e.tippyOptions), {}, {
|
|
7377
7424
|
content: n.messageState === R(K).Disabled ? void 0 : R(q)("发送"),
|
|
7378
7425
|
theme: "ai-chat-box",
|
|
7379
7426
|
offset: [0, 16]
|
|
7380
7427
|
})]])], 2)])]));
|
|
7381
7428
|
}
|
|
7382
|
-
}),
|
|
7429
|
+
}), Xd = {
|
|
7383
7430
|
key: 1,
|
|
7384
7431
|
class: "ai-divider"
|
|
7385
|
-
},
|
|
7432
|
+
}, Zd = /* @__PURE__ */ m({
|
|
7386
7433
|
__name: "chat-input",
|
|
7387
7434
|
props: /* @__PURE__ */ y({
|
|
7388
7435
|
defaultUploadFiles: {},
|
|
@@ -7392,11 +7439,12 @@ var ld = ["src"], ud = {
|
|
|
7392
7439
|
onSendMessage: {},
|
|
7393
7440
|
onStopSending: {},
|
|
7394
7441
|
onUpload: {},
|
|
7395
|
-
placeholder: { default: dt ? "Input \"/\" to trigger prompt\nInput \"@\" to trigger tool and MCP\nUse Shift + Enter to enter a new line" : "输入
|
|
7442
|
+
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
7443
|
prompts: { default: () => [] },
|
|
7397
7444
|
resources: { default: () => [] },
|
|
7398
7445
|
shortcutId: {},
|
|
7399
7446
|
shortcuts: {},
|
|
7447
|
+
skills: { default: () => [] },
|
|
7400
7448
|
supportUpload: {
|
|
7401
7449
|
type: Boolean,
|
|
7402
7450
|
default: !0
|
|
@@ -7426,7 +7474,7 @@ var ld = ["src"], ud = {
|
|
|
7426
7474
|
K.Fetching
|
|
7427
7475
|
].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
7476
|
});
|
|
7429
|
-
|
|
7477
|
+
ae(() => {
|
|
7430
7478
|
var e;
|
|
7431
7479
|
let t = p.inputMaxHeight || 200;
|
|
7432
7480
|
if (g.value.length < 1 || !i.value) {
|
|
@@ -7447,13 +7495,13 @@ var ld = ["src"], ud = {
|
|
|
7447
7495
|
o = (a = g.value) == null ? void 0 : a.slice().map((e) => {
|
|
7448
7496
|
var t, n;
|
|
7449
7497
|
return {
|
|
7450
|
-
type:
|
|
7498
|
+
type: W.Binary,
|
|
7451
7499
|
url: e.url,
|
|
7452
7500
|
mimeType: ((t = e.file) == null ? void 0 : t.type) || "",
|
|
7453
7501
|
filename: ((n = e.file) == null ? void 0 : n.name) || ""
|
|
7454
7502
|
};
|
|
7455
7503
|
}), p.modelValue && o.push({
|
|
7456
|
-
type:
|
|
7504
|
+
type: W.Text,
|
|
7457
7505
|
text: _l(p.modelValue)
|
|
7458
7506
|
});
|
|
7459
7507
|
}
|
|
@@ -7492,7 +7540,7 @@ var ld = ["src"], ud = {
|
|
|
7492
7540
|
var e = X(function* (e) {
|
|
7493
7541
|
if (!p.supportUpload) return;
|
|
7494
7542
|
if (g.value.length >= 3) {
|
|
7495
|
-
e.length > 0 &&
|
|
7543
|
+
e.length > 0 && pe({
|
|
7496
7544
|
message: ze(e.length, O, dt),
|
|
7497
7545
|
theme: "error"
|
|
7498
7546
|
});
|
|
@@ -7530,7 +7578,7 @@ var ld = ["src"], ud = {
|
|
|
7530
7578
|
s.status = Jr.Error;
|
|
7531
7579
|
});
|
|
7532
7580
|
}
|
|
7533
|
-
n > 0 &&
|
|
7581
|
+
n > 0 && pe({
|
|
7534
7582
|
message: ze(n, O, dt),
|
|
7535
7583
|
theme: "error"
|
|
7536
7584
|
});
|
|
@@ -7571,13 +7619,14 @@ var ld = ["src"], ud = {
|
|
|
7571
7619
|
files: g.value,
|
|
7572
7620
|
onDeleteFile: ee
|
|
7573
7621
|
}, null, 8, ["files"])], 512)) : s("", !0)]),
|
|
7574
|
-
f(
|
|
7622
|
+
f(qd, {
|
|
7575
7623
|
ref_key: "aiSlashInputRef",
|
|
7576
7624
|
ref: r,
|
|
7577
7625
|
"model-value": e.modelValue,
|
|
7578
7626
|
placeholder: e.placeholder,
|
|
7579
7627
|
prompts: e.prompts,
|
|
7580
7628
|
resources: e.resources,
|
|
7629
|
+
skills: e.skills,
|
|
7581
7630
|
onKeydown: b,
|
|
7582
7631
|
"onUpdate:modelValue": M,
|
|
7583
7632
|
onUpload: A
|
|
@@ -7585,15 +7634,16 @@ var ld = ["src"], ud = {
|
|
|
7585
7634
|
"model-value",
|
|
7586
7635
|
"placeholder",
|
|
7587
7636
|
"prompts",
|
|
7588
|
-
"resources"
|
|
7637
|
+
"resources",
|
|
7638
|
+
"skills"
|
|
7589
7639
|
]),
|
|
7590
|
-
f(
|
|
7640
|
+
f(Yd, {
|
|
7591
7641
|
"message-state": v.value,
|
|
7592
7642
|
"tippy-options": e.tippyOptions,
|
|
7593
7643
|
onSendMessage: y,
|
|
7594
7644
|
onStopSending: x
|
|
7595
7645
|
}, {
|
|
7596
|
-
default:
|
|
7646
|
+
default: H(() => {
|
|
7597
7647
|
var n;
|
|
7598
7648
|
return [
|
|
7599
7649
|
e.supportUpload ? (k(), o(Uu, {
|
|
@@ -7601,7 +7651,7 @@ var ld = ["src"], ud = {
|
|
|
7601
7651
|
"tippy-options": e.tippyOptions,
|
|
7602
7652
|
onUpload: A
|
|
7603
7653
|
}, null, 8, ["tippy-options"])) : s("", !0),
|
|
7604
|
-
e.supportUpload && ((n = e.shortcuts) != null && n.length || _.value) ? (k(), c("span",
|
|
7654
|
+
e.supportUpload && ((n = e.shortcuts) != null && n.length || _.value) ? (k(), c("span", Xd)) : s("", !0),
|
|
7605
7655
|
N(t.$slots, "attachment", {}, () => [e.shortcuts && !_.value ? (k(), o(Qn, {
|
|
7606
7656
|
key: 0,
|
|
7607
7657
|
shortcuts: e.shortcuts,
|
|
@@ -7611,17 +7661,17 @@ var ld = ["src"], ud = {
|
|
|
7611
7661
|
class: "selected-shortcut-btn",
|
|
7612
7662
|
shortcut: _.value
|
|
7613
7663
|
}, {
|
|
7614
|
-
append:
|
|
7664
|
+
append: H(() => [f(R(yn), { onClick: E })]),
|
|
7615
7665
|
_: 1
|
|
7616
7666
|
}, 8, ["shortcut"])) : s("", !0)])
|
|
7617
7667
|
];
|
|
7618
7668
|
}),
|
|
7619
|
-
"send-icon":
|
|
7669
|
+
"send-icon": H(() => [N(t.$slots, "send-icon")]),
|
|
7620
7670
|
_: 3
|
|
7621
7671
|
}, 8, ["message-state", "tippy-options"])
|
|
7622
7672
|
], 4)], 4));
|
|
7623
7673
|
}
|
|
7624
|
-
}),
|
|
7674
|
+
}), Qd = { class: "ai-delete-confirm" }, $d = { class: "ai-delete-confirm__title" }, ef = { class: "ai-delete-confirm__desc" }, tf = { class: "ai-delete-confirm__actions" }, nf = /* @__PURE__ */ m({
|
|
7625
7675
|
__name: "delete-tool",
|
|
7626
7676
|
props: {
|
|
7627
7677
|
description: {},
|
|
@@ -7657,33 +7707,33 @@ var ld = ["src"], ud = {
|
|
|
7657
7707
|
};
|
|
7658
7708
|
return O(() => {
|
|
7659
7709
|
p();
|
|
7660
|
-
}), (e, t) => (k(), o(R(
|
|
7710
|
+
}), (e, t) => (k(), o(R(ye), b({
|
|
7661
7711
|
ref_key: "tippyRef",
|
|
7662
7712
|
ref: i
|
|
7663
7713
|
}, c.value, { onShow: u }), {
|
|
7664
|
-
content:
|
|
7665
|
-
l("div",
|
|
7666
|
-
l("div",
|
|
7667
|
-
l("div",
|
|
7714
|
+
content: H(() => [l("div", Qd, [
|
|
7715
|
+
l("div", $d, I(R(q)("确认删除该回答?")), 1),
|
|
7716
|
+
l("div", ef, I(R(q)("删除操作无法撤回,请谨慎操作!")), 1),
|
|
7717
|
+
l("div", tf, [f(R(se), {
|
|
7668
7718
|
size: "small",
|
|
7669
7719
|
theme: "danger",
|
|
7670
7720
|
onClick: m
|
|
7671
7721
|
}, {
|
|
7672
|
-
default:
|
|
7722
|
+
default: H(() => [d(I(R(q)("删除")), 1)]),
|
|
7673
7723
|
_: 1
|
|
7674
|
-
}), f(R(
|
|
7724
|
+
}), f(R(se), {
|
|
7675
7725
|
size: "small",
|
|
7676
7726
|
onClick: g
|
|
7677
7727
|
}, {
|
|
7678
|
-
default:
|
|
7728
|
+
default: H(() => [d(I(R(q)("取消")), 1)]),
|
|
7679
7729
|
_: 1
|
|
7680
7730
|
})])
|
|
7681
7731
|
])]),
|
|
7682
|
-
default:
|
|
7732
|
+
default: H(() => [f(Cc, C(h(s.value)), null, 16)]),
|
|
7683
7733
|
_: 1
|
|
7684
7734
|
}, 16));
|
|
7685
7735
|
}
|
|
7686
|
-
}),
|
|
7736
|
+
}), rf = { class: "ai-feedback-title" }, af = { class: "ai-feedback-reason-list" }, of = ["onClick"], sf = { class: "ai-feedback-other" }, cf = { class: "ai-feedback-footer" }, lf = /* @__PURE__ */ m({
|
|
7687
7737
|
__name: "user-feedback",
|
|
7688
7738
|
props: {
|
|
7689
7739
|
loading: { type: Boolean },
|
|
@@ -7701,55 +7751,55 @@ var ld = ["src"], ud = {
|
|
|
7701
7751
|
};
|
|
7702
7752
|
return (n, r) => (k(), c("div", {
|
|
7703
7753
|
class: "ai-user-feedback",
|
|
7704
|
-
onMouseenter: r[1] || (r[1] =
|
|
7754
|
+
onMouseenter: r[1] || (r[1] = oe(() => {}, ["stop", "prevent"]))
|
|
7705
7755
|
}, [
|
|
7706
|
-
l("div",
|
|
7707
|
-
l("div",
|
|
7756
|
+
l("div", rf, I(t.title), 1),
|
|
7757
|
+
l("div", af, [t.loading ? (k(), c(e, { key: 0 }, M(8, (e) => l("div", {
|
|
7708
7758
|
key: e,
|
|
7709
7759
|
class: "reason-item ai-skeleton-element"
|
|
7710
7760
|
})), 64)) : (k(!0), c(e, { key: 1 }, M(t.reasonList, (e) => (k(), c("div", {
|
|
7711
7761
|
key: e,
|
|
7712
7762
|
class: S(["reason-item", { "is-active": a.value.includes(e) }]),
|
|
7713
7763
|
onClick: (t) => o(e)
|
|
7714
|
-
}, I(e), 11,
|
|
7715
|
-
l("div",
|
|
7764
|
+
}, I(e), 11, of))), 128))]),
|
|
7765
|
+
l("div", sf, [f(R(de), {
|
|
7716
7766
|
modelValue: i.value,
|
|
7717
7767
|
"onUpdate:modelValue": r[0] || (r[0] = (e) => i.value = e),
|
|
7718
7768
|
placeholder: R(q)("说出您的想法"),
|
|
7719
7769
|
rows: 3,
|
|
7720
7770
|
type: "textarea"
|
|
7721
7771
|
}, null, 8, ["modelValue", "placeholder"])]),
|
|
7722
|
-
l("div",
|
|
7772
|
+
l("div", cf, [f(R(se), {
|
|
7723
7773
|
class: "custom-btn",
|
|
7724
7774
|
disabled: !i.value && a.value.length === 0,
|
|
7725
7775
|
size: "small",
|
|
7726
7776
|
theme: "primary",
|
|
7727
7777
|
onClick: s
|
|
7728
7778
|
}, {
|
|
7729
|
-
default:
|
|
7779
|
+
default: H(() => [d(I(R(q)("提交")), 1)]),
|
|
7730
7780
|
_: 1
|
|
7731
|
-
}, 8, ["disabled"]), f(R(
|
|
7781
|
+
}, 8, ["disabled"]), f(R(se), {
|
|
7732
7782
|
class: "custom-btn",
|
|
7733
7783
|
size: "small",
|
|
7734
7784
|
width: "80px",
|
|
7735
7785
|
onClick: u
|
|
7736
7786
|
}, {
|
|
7737
|
-
default:
|
|
7787
|
+
default: H(() => [d(I(R(q)("取消")), 1)]),
|
|
7738
7788
|
_: 1
|
|
7739
7789
|
})])
|
|
7740
7790
|
], 32));
|
|
7741
7791
|
}
|
|
7742
|
-
}),
|
|
7792
|
+
}), uf = {
|
|
7743
7793
|
ref: "messageToolsRef",
|
|
7744
7794
|
class: "message-tools-container"
|
|
7745
|
-
},
|
|
7795
|
+
}, df = {
|
|
7746
7796
|
class: "message-tools",
|
|
7747
7797
|
style: { "margin-right": "8px" }
|
|
7748
|
-
},
|
|
7798
|
+
}, ff = {
|
|
7749
7799
|
key: 0,
|
|
7750
7800
|
class: "ai-divider",
|
|
7751
7801
|
style: { "margin-right": "8px" }
|
|
7752
|
-
},
|
|
7802
|
+
}, pf = { class: "message-tools" }, mf = /* @__PURE__ */ m({
|
|
7753
7803
|
__name: "message-tools",
|
|
7754
7804
|
props: {
|
|
7755
7805
|
messageTools: { default: () => vt },
|
|
@@ -7810,8 +7860,8 @@ var ld = ["src"], ud = {
|
|
|
7810
7860
|
};
|
|
7811
7861
|
return O(() => {
|
|
7812
7862
|
v(), p.value = [];
|
|
7813
|
-
}), (n, r) => (k(), c("div",
|
|
7814
|
-
l("div",
|
|
7863
|
+
}), (n, r) => (k(), c("div", uf, [
|
|
7864
|
+
l("div", df, [(k(!0), c(e, null, M(t.messageTools, (n) => (k(), c(e, { key: n.id }, [n.id === "delete" ? (k(), o(nf, b({
|
|
7815
7865
|
key: 0,
|
|
7816
7866
|
ref_for: !0
|
|
7817
7867
|
}, n, {
|
|
@@ -7834,14 +7884,14 @@ var ld = ["src"], ud = {
|
|
|
7834
7884
|
"tippy-options",
|
|
7835
7885
|
"onClick"
|
|
7836
7886
|
]))], 64))), 128))]),
|
|
7837
|
-
t.updateTools.length > 0 ? (k(), c("div",
|
|
7838
|
-
l("div",
|
|
7887
|
+
t.updateTools.length > 0 ? (k(), c("div", ff)) : s("", !0),
|
|
7888
|
+
l("div", pf, [(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
7889
|
key: 0,
|
|
7840
7890
|
ref_for: !0,
|
|
7841
7891
|
ref_key: "feedbackTippyRef",
|
|
7842
7892
|
ref: u
|
|
7843
7893
|
}, { ref_for: !0 }, h.value, { onShow: (e) => C(n.id) }), {
|
|
7844
|
-
content:
|
|
7894
|
+
content: H(() => [f(lf, {
|
|
7845
7895
|
loading: d.value,
|
|
7846
7896
|
"reason-list": p.value,
|
|
7847
7897
|
title: n.id === "like" ? R(q)("什么原因让你满意?") : R(q)("什么原因让你不满意?"),
|
|
@@ -7853,7 +7903,7 @@ var ld = ["src"], ud = {
|
|
|
7853
7903
|
"title",
|
|
7854
7904
|
"onSubmit"
|
|
7855
7905
|
])]),
|
|
7856
|
-
default:
|
|
7906
|
+
default: H(() => [f(Cc, b({ ref_for: !0 }, n, {
|
|
7857
7907
|
id: y(n.id),
|
|
7858
7908
|
active: m.value === n.id,
|
|
7859
7909
|
disabled: t.messageToolsStatus === R(Yr).Disabled,
|
|
@@ -7867,7 +7917,7 @@ var ld = ["src"], ud = {
|
|
|
7867
7917
|
"onClick"
|
|
7868
7918
|
])]),
|
|
7869
7919
|
_: 2
|
|
7870
|
-
}, 1040, ["onShow"])) : n.id === "delete" ? (k(), o(
|
|
7920
|
+
}, 1040, ["onShow"])) : n.id === "delete" ? (k(), o(nf, b({
|
|
7871
7921
|
key: 1,
|
|
7872
7922
|
ref_for: !0
|
|
7873
7923
|
}, n, {
|
|
@@ -7892,7 +7942,7 @@ var ld = ["src"], ud = {
|
|
|
7892
7942
|
]))], 64))), 128))])
|
|
7893
7943
|
], 512));
|
|
7894
7944
|
}
|
|
7895
|
-
}),
|
|
7945
|
+
}), hf = m({
|
|
7896
7946
|
name: "HighlightKeyword",
|
|
7897
7947
|
props: { text: {
|
|
7898
7948
|
type: String,
|
|
@@ -7909,7 +7959,7 @@ var ld = ["src"], ud = {
|
|
|
7909
7959
|
});
|
|
7910
7960
|
return () => g("span", r.value);
|
|
7911
7961
|
}
|
|
7912
|
-
}),
|
|
7962
|
+
}), gf = { class: "ai-activity-message" }, _f = { class: "ai-activity-message-content" }, vf = /* @__PURE__ */ m({
|
|
7913
7963
|
__name: "activity-layout",
|
|
7914
7964
|
props: /* @__PURE__ */ y({ activityType: {} }, {
|
|
7915
7965
|
collapsed: Y({ type: Boolean }, { default: !1 }),
|
|
@@ -7918,53 +7968,53 @@ var ld = ["src"], ud = {
|
|
|
7918
7968
|
emits: ["update:collapsed"],
|
|
7919
7969
|
setup(e) {
|
|
7920
7970
|
let t = z(e, "collapsed");
|
|
7921
|
-
return (n, r) => (k(), c("div",
|
|
7971
|
+
return (n, r) => (k(), c("div", gf, [l("div", {
|
|
7922
7972
|
class: "ai-activity-message-title",
|
|
7923
7973
|
onClick: r[0] || (r[0] = (e) => t.value = !t.value)
|
|
7924
|
-
}, [N(n.$slots, "title", C(h({ collapsed: t.value }))), e.activityType === R(
|
|
7974
|
+
}, [N(n.$slots, "title", C(h({ collapsed: t.value }))), e.activityType === R(W).FlowAgent ? s("", !0) : (k(), c("span", {
|
|
7925
7975
|
key: 0,
|
|
7926
7976
|
class: S(["ai-activity-message-title-icon collapsed-icon", { "is-collapsed": t.value }])
|
|
7927
|
-
}, [f(R(hn))], 2))]),
|
|
7977
|
+
}, [f(R(hn))], 2))]), U(l("div", _f, [N(n.$slots, "default")], 512), [[re, !t.value]])]));
|
|
7928
7978
|
}
|
|
7929
|
-
}),
|
|
7979
|
+
}), yf = { class: "ai-detail-section" }, bf = { class: "section-heading" }, xf = { class: "section-text" }, Sf = /* @__PURE__ */ m({
|
|
7930
7980
|
__name: "detail-section",
|
|
7931
7981
|
props: { title: {} },
|
|
7932
7982
|
setup(e) {
|
|
7933
|
-
return (t, n) => (k(), c("div",
|
|
7983
|
+
return (t, n) => (k(), c("div", yf, [l("div", bf, [n[0] || (n[0] = l("span", { class: "section-bar" }, null, -1)), l("span", xf, I(e.title), 1)]), N(t.$slots, "default")]));
|
|
7934
7984
|
}
|
|
7935
|
-
}),
|
|
7985
|
+
}), Cf = { class: "ai-simple-table" }, wf = { key: 0 }, Tf = ["colspan"], Ef = /* @__PURE__ */ m({
|
|
7936
7986
|
__name: "simple-table",
|
|
7937
7987
|
props: {
|
|
7938
7988
|
columns: {},
|
|
7939
7989
|
data: {}
|
|
7940
7990
|
},
|
|
7941
7991
|
setup(t) {
|
|
7942
|
-
return (n, r) => (k(), c("table",
|
|
7992
|
+
return (n, r) => (k(), c("table", Cf, [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
7993
|
var t;
|
|
7944
7994
|
return k(), c("td", {
|
|
7945
7995
|
key: e.key,
|
|
7946
7996
|
class: S({ "is-break-all": e.breakAll })
|
|
7947
7997
|
}, I((t = n[e.key]) == null ? "--" : t), 3);
|
|
7948
|
-
}), 128))]))), 128)), t.data.length ? s("", !0) : (k(), c("tr",
|
|
7998
|
+
}), 128))]))), 128)), t.data.length ? s("", !0) : (k(), c("tr", wf, [l("td", {
|
|
7949
7999
|
class: "is-empty",
|
|
7950
8000
|
colspan: t.columns.length
|
|
7951
|
-
}, " -- ", 8,
|
|
8001
|
+
}, " -- ", 8, Tf)]))])]));
|
|
7952
8002
|
}
|
|
7953
|
-
}),
|
|
8003
|
+
}), Df = { class: "flow-agent-node-detail" }, Of = { class: "detail-title" }, kf = {
|
|
7954
8004
|
key: 1,
|
|
7955
8005
|
class: "detail-title-content"
|
|
7956
|
-
},
|
|
8006
|
+
}, Af = { class: "detail-tab-bar" }, jf = ["onClick"], Mf = { class: "detail-body" }, Nf = { class: "skeleton-section" }, Pf = { class: "skeleton-section" }, Ff = { class: "info-form" }, If = { class: "info-label" }, Lf = { class: "info-value" }, Rf = { class: "info-row" }, zf = { class: "info-label" }, Bf = { class: "info-value" }, Vf = {
|
|
7957
8007
|
key: 0,
|
|
7958
8008
|
class: "failure-item"
|
|
7959
|
-
},
|
|
8009
|
+
}, Hf = {
|
|
7960
8010
|
key: 1,
|
|
7961
8011
|
class: "failure-item"
|
|
7962
|
-
},
|
|
8012
|
+
}, Uf = { class: "info-row" }, Wf = { class: "info-label" }, Gf = { class: "info-value" }, Kf = {
|
|
7963
8013
|
key: 0,
|
|
7964
8014
|
class: "skeleton-section"
|
|
7965
|
-
},
|
|
8015
|
+
}, qf = /* @__PURE__ */ function(e) {
|
|
7966
8016
|
return e.Config = "config", e.Output = "output", e;
|
|
7967
|
-
}(
|
|
8017
|
+
}(qf || {}), Jf = /* @__PURE__ */ m({
|
|
7968
8018
|
__name: "flow-agent-node-detail",
|
|
7969
8019
|
props: {
|
|
7970
8020
|
data: {},
|
|
@@ -7977,10 +8027,10 @@ var ld = ["src"], ud = {
|
|
|
7977
8027
|
},
|
|
7978
8028
|
setup(t) {
|
|
7979
8029
|
let n = [{
|
|
7980
|
-
key:
|
|
8030
|
+
key: qf.Config,
|
|
7981
8031
|
label: q("节点配置")
|
|
7982
8032
|
}, {
|
|
7983
|
-
key:
|
|
8033
|
+
key: qf.Output,
|
|
7984
8034
|
label: q("节点输出")
|
|
7985
8035
|
}], r = [{
|
|
7986
8036
|
key: "key",
|
|
@@ -8009,7 +8059,7 @@ var ld = ["src"], ud = {
|
|
|
8009
8059
|
breakAll: !0,
|
|
8010
8060
|
key: "value",
|
|
8011
8061
|
label: q("参数值")
|
|
8012
|
-
}], p = { forced_fail: dt ? "Force Fail" : "强制失败" }, m = t, h = F(
|
|
8062
|
+
}], p = { forced_fail: dt ? "Force Fail" : "强制失败" }, m = t, h = F(qf.Config), g = a(() => {
|
|
8013
8063
|
var e;
|
|
8014
8064
|
return (e = m.data) == null ? void 0 : e.basic_info;
|
|
8015
8065
|
}), _ = a(() => {
|
|
@@ -8074,56 +8124,56 @@ var ld = ["src"], ud = {
|
|
|
8074
8124
|
}
|
|
8075
8125
|
return (a, p) => {
|
|
8076
8126
|
var m;
|
|
8077
|
-
return k(), c("div",
|
|
8078
|
-
l("h3",
|
|
8079
|
-
l("div",
|
|
8127
|
+
return k(), c("div", Df, [
|
|
8128
|
+
l("h3", Of, [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", kf, I(R(q)("节点")) + ":" + I((m = g.value) == null ? void 0 : m.node_name), 1)), N(a.$slots, "locateButton")]),
|
|
8129
|
+
l("div", Af, [(k(), c(e, null, M(n, (e) => l("div", {
|
|
8080
8130
|
key: e.key,
|
|
8081
8131
|
class: S(["detail-tab", { "is-active": h.value === e.key }]),
|
|
8082
8132
|
onClick: (t) => h.value = e.key
|
|
8083
|
-
}, [(k(), o(P(e.key ===
|
|
8084
|
-
l("div",
|
|
8133
|
+
}, [(k(), o(P(e.key === qf.Config ? R(Yt) : R(Jt)), { class: "detail-tab-icon" })), d(" " + I(e.label), 1)], 10, jf)), 64))]),
|
|
8134
|
+
l("div", Mf, [h.value === qf.Config ? (k(), c(e, { key: 0 }, [t.loading ? (k(), c(e, { key: 0 }, [l("div", Nf, [p[1] || (p[1] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, M(6, (e) => l("div", {
|
|
8085
8135
|
key: e,
|
|
8086
8136
|
class: "skeleton-row ai-skeleton-element"
|
|
8087
|
-
})), 64))]), l("div",
|
|
8137
|
+
})), 64))]), l("div", Pf, [p[2] || (p[2] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, M(4, (e) => l("div", {
|
|
8088
8138
|
key: e,
|
|
8089
8139
|
class: "skeleton-row ai-skeleton-element"
|
|
8090
8140
|
})), 64))])], 64)) : (k(), c(e, { key: 1 }, [
|
|
8091
|
-
f(
|
|
8092
|
-
default:
|
|
8141
|
+
f(Sf, { title: R(q)("基础信息") }, {
|
|
8142
|
+
default: H(() => {
|
|
8093
8143
|
var t, n, r;
|
|
8094
|
-
return [l("div",
|
|
8144
|
+
return [l("div", Ff, [
|
|
8095
8145
|
(k(!0), c(e, null, M(_.value, (e) => (k(), c("div", {
|
|
8096
8146
|
key: e.label,
|
|
8097
8147
|
class: "info-row"
|
|
8098
|
-
}, [l("div",
|
|
8099
|
-
l("div",
|
|
8100
|
-
l("div",
|
|
8148
|
+
}, [l("div", If, I(e.label), 1), l("div", Lf, I(e.value), 1)]))), 128)),
|
|
8149
|
+
l("div", Rf, [l("div", zf, I(R(q)("失败处理")), 1), l("div", Bf, [v.value ? (k(), c(e, { key: 0 }, [(t = g.value) != null && t.skippable ? (k(), c("span", Vf, [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", Hf, [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))])]),
|
|
8150
|
+
l("div", Uf, [l("div", Wf, I(R(q)("超时控制")), 1), l("div", Gf, I(b.value), 1)])
|
|
8101
8151
|
])];
|
|
8102
8152
|
}),
|
|
8103
8153
|
_: 1
|
|
8104
8154
|
}, 8, ["title"]),
|
|
8105
|
-
f(
|
|
8106
|
-
default:
|
|
8155
|
+
f(Sf, { title: R(q)("输入参数") }, {
|
|
8156
|
+
default: H(() => [f(Ef, {
|
|
8107
8157
|
columns: r,
|
|
8108
8158
|
data: x.value
|
|
8109
8159
|
}, null, 8, ["data"])]),
|
|
8110
8160
|
_: 1
|
|
8111
8161
|
}, 8, ["title"]),
|
|
8112
|
-
f(
|
|
8113
|
-
default:
|
|
8162
|
+
f(Sf, { title: R(q)("输出参数") }, {
|
|
8163
|
+
default: H(() => [f(Ef, {
|
|
8114
8164
|
columns: i,
|
|
8115
8165
|
data: C.value
|
|
8116
8166
|
}, null, 8, ["data"])]),
|
|
8117
8167
|
_: 1
|
|
8118
8168
|
}, 8, ["title"])
|
|
8119
|
-
], 64))], 64)) : (k(), c(e, { key: 1 }, [t.loading ? (k(), c("div",
|
|
8169
|
+
], 64))], 64)) : (k(), c(e, { key: 1 }, [t.loading ? (k(), c("div", Kf, [p[5] || (p[5] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, M(5, (e) => l("div", {
|
|
8120
8170
|
key: e,
|
|
8121
8171
|
class: "skeleton-row ai-skeleton-element"
|
|
8122
|
-
})), 64))])) : (k(), o(
|
|
8172
|
+
})), 64))])) : (k(), o(Sf, {
|
|
8123
8173
|
key: 1,
|
|
8124
8174
|
title: R(q)("结构化输出")
|
|
8125
8175
|
}, {
|
|
8126
|
-
default:
|
|
8176
|
+
default: H(() => [f(Ef, {
|
|
8127
8177
|
columns: u,
|
|
8128
8178
|
data: w.value
|
|
8129
8179
|
}, null, 8, ["data"])]),
|
|
@@ -8132,16 +8182,16 @@ var ld = ["src"], ud = {
|
|
|
8132
8182
|
]);
|
|
8133
8183
|
};
|
|
8134
8184
|
}
|
|
8135
|
-
}),
|
|
8185
|
+
}), Yf = { class: "ai-activity-message-title-text" }, Xf = { class: "flow-agent-title-label" }, Zf = { class: "flow-agent-task-state-icon" }, Qf = { class: "flow-agent-task-name" }, $f = {
|
|
8136
8186
|
key: 0,
|
|
8137
8187
|
class: "flow-agent-task-trailing"
|
|
8138
|
-
},
|
|
8188
|
+
}, ep = { class: "flow-agent-task-time" }, tp = ["onClick"], np = { class: "flow-agent-task-nodes" }, rp = {
|
|
8139
8189
|
key: 1,
|
|
8140
8190
|
class: "flow-agent-status-dot"
|
|
8141
|
-
},
|
|
8191
|
+
}, ip = ["title"], ap = {
|
|
8142
8192
|
key: 0,
|
|
8143
8193
|
class: "flow-agent-node-trailing"
|
|
8144
|
-
},
|
|
8194
|
+
}, op = { class: "flow-agent-node-time" }, sp = ["onClick"], cp = /* @__PURE__ */ m({
|
|
8145
8195
|
__name: "flow-agent-content",
|
|
8146
8196
|
props: /* @__PURE__ */ y({
|
|
8147
8197
|
content: {},
|
|
@@ -8211,18 +8261,18 @@ var ld = ["src"], ud = {
|
|
|
8211
8261
|
}, B = (e) => {
|
|
8212
8262
|
let t = te.value;
|
|
8213
8263
|
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);
|
|
8264
|
+
}, ie = (e, t) => te.value === L(e, t), ae = (e) => ee.value[e.task_id] !== !1, se = (e) => {
|
|
8265
|
+
ee.value = Y(Y({}, ee.value), {}, { [e.task_id]: !ae(e) });
|
|
8219
8266
|
}, ce = (e) => {
|
|
8220
|
-
|
|
8267
|
+
var t;
|
|
8268
|
+
return pe((t = e.task_state) == null ? "" : t);
|
|
8269
|
+
}, le = (e) => {
|
|
8270
|
+
let t = m[ce(e)];
|
|
8221
8271
|
return i(t || Gt);
|
|
8222
|
-
},
|
|
8272
|
+
}, ue = (e) => ut(de(e).reduce((e, t) => e + t.elapsed_time, 0)), de = (e) => {
|
|
8223
8273
|
var t;
|
|
8224
8274
|
return Object.values((t = e.nodes) == null ? {} : t);
|
|
8225
|
-
},
|
|
8275
|
+
}, pe = (e) => e === "FINISHED" ? "success" : u.has(e) ? "failed" : e === "SUSPENDED" ? "suspended" : e === "PENDING" ? "pending" : (r.has(e), "running"), me = a(() => {
|
|
8226
8276
|
let e = {
|
|
8227
8277
|
failed: 0,
|
|
8228
8278
|
pending: 0,
|
|
@@ -8232,16 +8282,16 @@ var ld = ["src"], ud = {
|
|
|
8232
8282
|
};
|
|
8233
8283
|
for (let r of A.value) {
|
|
8234
8284
|
var t, n;
|
|
8235
|
-
for (let [i, a] of Object.entries((t = (n = r.statistics) == null ? void 0 : n.state_counts) == null ? {} : t)) e[
|
|
8285
|
+
for (let [i, a] of Object.entries((t = (n = r.statistics) == null ? void 0 : n.state_counts) == null ? {} : t)) e[pe(i)] += a;
|
|
8236
8286
|
}
|
|
8237
8287
|
return p.filter((t) => e[t.key] > 0).map((t) => Y(Y({}, t), {}, { display: e[t.key] > 99 ? "99+" : String(e[t.key]) }));
|
|
8238
|
-
}),
|
|
8288
|
+
}), he = (e, t) => {
|
|
8239
8289
|
let n = e.task_id;
|
|
8240
8290
|
n != null && (ne(), g == null || g({
|
|
8241
8291
|
label: t.name,
|
|
8242
8292
|
name: L(e, t),
|
|
8243
8293
|
data: {
|
|
8244
|
-
component:
|
|
8294
|
+
component: Jf,
|
|
8245
8295
|
messageUid: h.messageUid,
|
|
8246
8296
|
props: {
|
|
8247
8297
|
loading: !0,
|
|
@@ -8253,13 +8303,13 @@ var ld = ["src"], ud = {
|
|
|
8253
8303
|
}
|
|
8254
8304
|
}
|
|
8255
8305
|
}));
|
|
8256
|
-
},
|
|
8306
|
+
}, ge = (e) => {
|
|
8257
8307
|
let t = e == null ? void 0 : e.task_id;
|
|
8258
8308
|
t && (ne(), g == null || g({
|
|
8259
8309
|
label: q("有效证据"),
|
|
8260
8310
|
name: N(e),
|
|
8261
8311
|
data: {
|
|
8262
|
-
component:
|
|
8312
|
+
component: Jf,
|
|
8263
8313
|
messageUid: h.messageUid,
|
|
8264
8314
|
props: {
|
|
8265
8315
|
loading: !0,
|
|
@@ -8271,74 +8321,74 @@ var ld = ["src"], ud = {
|
|
|
8271
8321
|
}
|
|
8272
8322
|
}));
|
|
8273
8323
|
};
|
|
8274
|
-
return
|
|
8324
|
+
return V(y, (e, t) => {
|
|
8275
8325
|
t !== void 0 && ne();
|
|
8276
8326
|
}), E(() => {
|
|
8277
|
-
x != null && x.value &&
|
|
8327
|
+
x != null && x.value && ge(A.value.find((e) => e.is_active && e.has_confidence));
|
|
8278
8328
|
}), O(() => {
|
|
8279
8329
|
if (x != null && x.value) for (let e of A.value) {
|
|
8280
8330
|
_ == null || _(j(e)), _ == null || _(N(e));
|
|
8281
|
-
for (let t of
|
|
8331
|
+
for (let t of de(e)) _ == null || _(L(e, t));
|
|
8282
8332
|
}
|
|
8283
|
-
}), (t, r) => (k(), o(
|
|
8333
|
+
}), (t, r) => (k(), o(vf, {
|
|
8284
8334
|
collapsed: C.value,
|
|
8285
8335
|
"onUpdate:collapsed": r[0] || (r[0] = (e) => C.value = e),
|
|
8286
|
-
"activity-type": R(
|
|
8336
|
+
"activity-type": R(W).FlowAgent,
|
|
8287
8337
|
class: "flow-agent-activity"
|
|
8288
8338
|
}, {
|
|
8289
|
-
title:
|
|
8339
|
+
title: H(() => [l("span", { class: S(["ai-activity-message-title-icon", { "icon-collapsed": C.value }]) }, [D.value ? (k(), o(Hn, {
|
|
8290
8340
|
key: 0,
|
|
8291
8341
|
size: 12
|
|
8292
|
-
})) : (k(), o(R(Bt), { key: 1 }))], 2), l("span",
|
|
8342
|
+
})) : (k(), o(R(Bt), { key: 1 }))], 2), l("span", Yf, [l("span", Xf, I(R(q)("执行情况")) + ": ", 1), (k(!0), c(e, null, M(me.value, (e) => (k(), c("span", {
|
|
8293
8343
|
key: e.key,
|
|
8294
8344
|
class: "flow-agent-stat-item"
|
|
8295
8345
|
}, [d(I(e.label) + ":", 1), l("span", {
|
|
8296
8346
|
class: "flow-agent-stat-count",
|
|
8297
8347
|
style: w({ color: e.color })
|
|
8298
8348
|
}, I(e.display), 5)]))), 128))])]),
|
|
8299
|
-
default:
|
|
8349
|
+
default: H(() => [(k(!0), c(e, null, M(A.value, (t) => (k(), c("div", {
|
|
8300
8350
|
key: t.task_id,
|
|
8301
8351
|
class: "flow-agent-task-group"
|
|
8302
8352
|
}, [l("div", { class: S(["flow-agent-task-header", {
|
|
8303
8353
|
"has-confidence": t.has_confidence,
|
|
8304
8354
|
"is-selected": B(t)
|
|
8305
8355
|
}]) }, [
|
|
8306
|
-
l("span", { class: S(["flow-agent-task-arrow", { "is-expanded":
|
|
8307
|
-
l("span",
|
|
8356
|
+
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),
|
|
8357
|
+
l("span", Zf, [ce(t) === "running" ? (k(), o(R(fe), {
|
|
8308
8358
|
key: 0,
|
|
8309
8359
|
mode: "spin",
|
|
8310
8360
|
size: "mini",
|
|
8311
8361
|
theme: "primary"
|
|
8312
|
-
})) : (k(), o(P(
|
|
8313
|
-
|
|
8314
|
-
R(T) === R(wt).Share ? s("", !0) : (k(), c("span",
|
|
8362
|
+
})) : (k(), o(P(le(t)), { key: 1 }))]),
|
|
8363
|
+
U((k(), c("span", Qf, [f(R(hf), { text: t.task_name }, null, 8, ["text"])])), [[R(Zr), Y({}, R(n))]]),
|
|
8364
|
+
R(T) === R(wt).Share ? s("", !0) : (k(), c("span", $f, [l("span", ep, I(ue(t)), 1), t.has_confidence ? (k(), c("span", {
|
|
8315
8365
|
key: 0,
|
|
8316
8366
|
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),
|
|
8367
|
+
onClick: oe((e) => ge(t), ["stop"])
|
|
8368
|
+
}, [f(R(Jt)), d(" " + I(R(q)("有效证据")), 1)], 8, tp)) : s("", !0)]))
|
|
8369
|
+
], 2), U(l("div", np, [(k(!0), c(e, null, M(de(t), (e) => (k(), c("div", {
|
|
8320
8370
|
key: e.id,
|
|
8321
|
-
class: S(["flow-agent-node-item", { "is-selected":
|
|
8371
|
+
class: S(["flow-agent-node-item", { "is-selected": ie(t, e) }])
|
|
8322
8372
|
}, [
|
|
8323
|
-
l("span", { class: S(["flow-agent-node-status", `is-${
|
|
8373
|
+
l("span", { class: S(["flow-agent-node-status", `is-${pe(e.state)}`]) }, [pe(e.state) === "running" ? (k(), o(R(fe), {
|
|
8324
8374
|
key: 0,
|
|
8325
8375
|
mode: "spin",
|
|
8326
8376
|
size: "mini",
|
|
8327
8377
|
theme: "primary"
|
|
8328
|
-
})) : (k(), c("span",
|
|
8329
|
-
|
|
8378
|
+
})) : (k(), c("span", rp))], 2),
|
|
8379
|
+
U((k(), c("span", {
|
|
8330
8380
|
class: "flow-agent-node-name",
|
|
8331
8381
|
title: e.name
|
|
8332
|
-
}, [f(R(
|
|
8333
|
-
R(T) === R(wt).Share ? s("", !0) : (k(), c("span",
|
|
8382
|
+
}, [f(R(hf), { text: e.name }, null, 8, ["text"])], 8, ip)), [[R(Zr), Y({}, R(n))]]),
|
|
8383
|
+
R(T) === R(wt).Share ? s("", !0) : (k(), c("span", ap, [l("span", op, I(R(ut)(e.elapsed_time)), 1), l("span", {
|
|
8334
8384
|
class: "flow-agent-node-detail-btn",
|
|
8335
|
-
onClick:
|
|
8336
|
-
}, [f(R(Jt)), d(" " + I(R(q)("详情")), 1)], 8,
|
|
8337
|
-
], 2))), 128))], 512), [[
|
|
8385
|
+
onClick: oe((n) => he(t, e), ["stop"])
|
|
8386
|
+
}, [f(R(Jt)), d(" " + I(R(q)("详情")), 1)], 8, sp)]))
|
|
8387
|
+
], 2))), 128))], 512), [[re, ae(t)]])]))), 128))]),
|
|
8338
8388
|
_: 1
|
|
8339
8389
|
}, 8, ["collapsed", "activity-type"]));
|
|
8340
8390
|
}
|
|
8341
|
-
}),
|
|
8391
|
+
}), lp = { class: "ai-activity-message-title-icon" }, up = { class: "ai-activity-message-title-text" }, dp = { class: "knowledge-rag-content" }, fp = /* @__PURE__ */ m({
|
|
8342
8392
|
__name: "knowledge-rag-content",
|
|
8343
8393
|
props: /* @__PURE__ */ y({
|
|
8344
8394
|
content: {},
|
|
@@ -8351,22 +8401,22 @@ var ld = ["src"], ud = {
|
|
|
8351
8401
|
emits: ["update:collapsed"],
|
|
8352
8402
|
setup(e) {
|
|
8353
8403
|
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(
|
|
8404
|
+
return (t, a) => (k(), o(vf, {
|
|
8355
8405
|
collapsed: n.value,
|
|
8356
8406
|
"onUpdate:collapsed": a[0] || (a[0] = (e) => n.value = e)
|
|
8357
8407
|
}, {
|
|
8358
|
-
title:
|
|
8408
|
+
title: H(() => [l("span", lp, [r.value ? (k(), o(Hn, { key: 0 })) : (k(), o(R(It), {
|
|
8359
8409
|
key: 1,
|
|
8360
8410
|
style: { "font-size": "12px" }
|
|
8361
|
-
}))]), l("span",
|
|
8362
|
-
default:
|
|
8411
|
+
}))]), l("span", up, I(i.value), 1)]),
|
|
8412
|
+
default: H(() => {
|
|
8363
8413
|
var t, n;
|
|
8364
|
-
return [l("div",
|
|
8414
|
+
return [l("div", dp, [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
8415
|
}),
|
|
8366
8416
|
_: 1
|
|
8367
8417
|
}, 8, ["collapsed"]));
|
|
8368
8418
|
}
|
|
8369
|
-
}),
|
|
8419
|
+
}), pp = { class: "ai-activity-message-title-icon" }, mp = { class: "ai-activity-message-title-text" }, hp = /* @__PURE__ */ m({
|
|
8370
8420
|
__name: "reference-doc-content",
|
|
8371
8421
|
props: /* @__PURE__ */ y({
|
|
8372
8422
|
content: {},
|
|
@@ -8382,16 +8432,16 @@ var ld = ["src"], ud = {
|
|
|
8382
8432
|
let r = (e = (n = t.content) == null ? void 0 : n.length) == null ? 0 : e;
|
|
8383
8433
|
return dt ? `Reference ${r} documents as reference` : `引用 ${r} 篇资料作为参考`;
|
|
8384
8434
|
});
|
|
8385
|
-
return (t, i) => (k(), o(
|
|
8435
|
+
return (t, i) => (k(), o(vf, {
|
|
8386
8436
|
collapsed: n.value,
|
|
8387
8437
|
"onUpdate:collapsed": i[0] || (i[0] = (e) => n.value = e)
|
|
8388
8438
|
}, {
|
|
8389
|
-
title:
|
|
8390
|
-
default:
|
|
8439
|
+
title: H(() => [l("span", pp, [f(R(It), { style: { "font-size": "12px" } })]), l("span", mp, I(r.value), 1)]),
|
|
8440
|
+
default: H(() => [f(fl, { content: e.content || [] }, null, 8, ["content"])]),
|
|
8391
8441
|
_: 1
|
|
8392
8442
|
}, 8, ["collapsed"]));
|
|
8393
8443
|
}
|
|
8394
|
-
}),
|
|
8444
|
+
}), gp = /* @__PURE__ */ m({
|
|
8395
8445
|
__name: "activity-message",
|
|
8396
8446
|
props: /* @__PURE__ */ y({
|
|
8397
8447
|
activityType: {},
|
|
@@ -8410,9 +8460,9 @@ var ld = ["src"], ud = {
|
|
|
8410
8460
|
emits: ["update:collapsed"],
|
|
8411
8461
|
setup(e) {
|
|
8412
8462
|
let t = {
|
|
8413
|
-
[
|
|
8414
|
-
[
|
|
8415
|
-
[
|
|
8463
|
+
[W.FlowAgent]: cp,
|
|
8464
|
+
[W.KnowledgeRag]: fp,
|
|
8465
|
+
[W.ReferenceDocument]: hp
|
|
8416
8466
|
}, n = e, r = z(e, "collapsed"), i = a(() => {
|
|
8417
8467
|
var e;
|
|
8418
8468
|
return t[(e = n.activityType) == null ? "" : e];
|
|
@@ -8431,7 +8481,7 @@ var ld = ["src"], ud = {
|
|
|
8431
8481
|
"status"
|
|
8432
8482
|
])) : s("", !0);
|
|
8433
8483
|
}
|
|
8434
|
-
}),
|
|
8484
|
+
}), _p = { class: "toolcall-desc" }, vp = { class: "desc-title" }, yp = { class: "desc-panel" }, bp = { class: "desc-label" }, xp = { class: "desc-value" }, Sp = /* @__PURE__ */ m({
|
|
8435
8485
|
__name: "desc-panel",
|
|
8436
8486
|
props: {
|
|
8437
8487
|
desc: {},
|
|
@@ -8445,19 +8495,19 @@ var ld = ["src"], ud = {
|
|
|
8445
8495
|
return n.desc;
|
|
8446
8496
|
}
|
|
8447
8497
|
});
|
|
8448
|
-
return (n, i) => (k(), c("div",
|
|
8498
|
+
return (n, i) => (k(), c("div", _p, [l("div", vp, I(t.title), 1), l("div", yp, [typeof r.value == "object" ? (k(!0), c(e, { key: 0 }, M(r.value, (e, t) => (k(), c("div", {
|
|
8449
8499
|
key: t,
|
|
8450
8500
|
class: "desc-panel-item"
|
|
8451
|
-
}, [l("span",
|
|
8501
|
+
}, [l("span", bp, [f(R(hf), { text: t }, null, 8, ["text"]), i[0] || (i[0] = d(":", -1))]), l("span", xp, [f(R(hf), {
|
|
8452
8502
|
style: { "word-break": "break-all" },
|
|
8453
8503
|
text: typeof e == "object" && e ? JSON.stringify(e) : e
|
|
8454
|
-
}, null, 8, ["text"])])]))), 128)) : (k(), o(R(
|
|
8504
|
+
}, null, 8, ["text"])])]))), 128)) : (k(), o(R(hf), {
|
|
8455
8505
|
key: 1,
|
|
8456
8506
|
style: { wordBreak: "break-all" },
|
|
8457
8507
|
text: r.value
|
|
8458
8508
|
}, null, 8, ["text"]))])]));
|
|
8459
8509
|
}
|
|
8460
|
-
}),
|
|
8510
|
+
}), Cp = { class: "tool-message" }, wp = /* @__PURE__ */ m({
|
|
8461
8511
|
__name: "tool-message",
|
|
8462
8512
|
props: {
|
|
8463
8513
|
duration: {},
|
|
@@ -8473,15 +8523,15 @@ var ld = ["src"], ud = {
|
|
|
8473
8523
|
property: {}
|
|
8474
8524
|
},
|
|
8475
8525
|
setup(e) {
|
|
8476
|
-
return (t, n) => (k(), c("div",
|
|
8526
|
+
return (t, n) => (k(), c("div", Cp, [f(Sp, {
|
|
8477
8527
|
desc: e.content || (typeof e.error == "string" ? e.error : void 0),
|
|
8478
8528
|
title: R(q)("返回内容")
|
|
8479
8529
|
}, null, 8, ["desc", "title"])]));
|
|
8480
8530
|
}
|
|
8481
|
-
}),
|
|
8531
|
+
}), Tp = { class: "ai-toolcall-render" }, Ep = { class: "toolcall-header-title" }, Dp = { class: "toolcall-status-title" }, Op = {
|
|
8482
8532
|
key: 1,
|
|
8483
8533
|
class: "toolcall-duration"
|
|
8484
|
-
},
|
|
8534
|
+
}, kp = { class: "ai-toolcall-render-content" }, Ap = /* @__PURE__ */ m({
|
|
8485
8535
|
__name: "toolcall-render",
|
|
8486
8536
|
props: {
|
|
8487
8537
|
duration: {},
|
|
@@ -8525,40 +8575,40 @@ var ld = ["src"], ud = {
|
|
|
8525
8575
|
});
|
|
8526
8576
|
return (t, n) => {
|
|
8527
8577
|
var r, a, u, p;
|
|
8528
|
-
return k(), c("div",
|
|
8578
|
+
return k(), c("div", Tp, [l("div", {
|
|
8529
8579
|
class: S(["ai-toolcall-render-header", `toolcall-status-${e.status}`]),
|
|
8530
8580
|
onClick: h
|
|
8531
8581
|
}, [
|
|
8532
8582
|
f(R(Bt), { class: S({ "is-collapsed": m.value }) }, null, 8, ["class"]),
|
|
8533
8583
|
d(" " + I((r = e.toolCall) != null && r.function.mcpName ? R(q)("调用 MCP:") : R(q)("调用工具:")) + " ", 1),
|
|
8534
|
-
|
|
8584
|
+
U((k(), c("span", Ep, [f(R(hf), { text: g.value }, null, 8, ["text"])])), [[R(Zr), Y(Y({}, R(i)), {}, {
|
|
8535
8585
|
text: g.value,
|
|
8536
8586
|
appendTo: "parent"
|
|
8537
8587
|
})]]),
|
|
8538
|
-
l("span",
|
|
8539
|
-
e.status === R(K).Pending || e.status === R(K).Streaming ? (k(), o(R(
|
|
8588
|
+
l("span", Dp, [
|
|
8589
|
+
e.status === R(K).Pending || e.status === R(K).Streaming ? (k(), o(R(fe), {
|
|
8540
8590
|
key: 0,
|
|
8541
8591
|
mode: "spin",
|
|
8542
8592
|
size: "mini",
|
|
8543
8593
|
theme: "primary"
|
|
8544
8594
|
})) : s("", !0),
|
|
8545
|
-
f(R(
|
|
8546
|
-
v.value ? (k(), c("span",
|
|
8595
|
+
f(R(hf), { text: _.value }, null, 8, ["text"]),
|
|
8596
|
+
v.value ? (k(), c("span", Op, " (" + I(v.value) + ") ", 1)) : s("", !0)
|
|
8547
8597
|
])
|
|
8548
|
-
], 2),
|
|
8549
|
-
f(
|
|
8598
|
+
], 2), U(l("div", kp, [
|
|
8599
|
+
f(Sp, {
|
|
8550
8600
|
desc: (a = e.toolCall) == null ? void 0 : a.function.description,
|
|
8551
8601
|
title: R(q)("描述")
|
|
8552
8602
|
}, null, 8, ["desc", "title"]),
|
|
8553
|
-
f(
|
|
8603
|
+
f(Sp, {
|
|
8554
8604
|
desc: (u = e.toolCall) == null ? void 0 : u.function.arguments,
|
|
8555
8605
|
title: R(q)("参数")
|
|
8556
8606
|
}, null, 8, ["desc", "title"]),
|
|
8557
|
-
(p = e.toolCall) != null && p.toolMessage ? (k(), o(
|
|
8558
|
-
], 512), [[
|
|
8607
|
+
(p = e.toolCall) != null && p.toolMessage ? (k(), o(wp, C(b({ key: 0 }, e.toolCall.toolMessage)), null, 16)) : s("", !0)
|
|
8608
|
+
], 512), [[re, !m.value]])]);
|
|
8559
8609
|
};
|
|
8560
8610
|
}
|
|
8561
|
-
}),
|
|
8611
|
+
}), jp = { class: "ai-assistant-message" }, Mp = { class: "ai-assistant-message-content" }, Np = /* @__PURE__ */ m({
|
|
8562
8612
|
__name: "assistant-message",
|
|
8563
8613
|
props: {
|
|
8564
8614
|
toolCalls: {},
|
|
@@ -8572,21 +8622,21 @@ var ld = ["src"], ud = {
|
|
|
8572
8622
|
property: {}
|
|
8573
8623
|
},
|
|
8574
8624
|
setup(t) {
|
|
8575
|
-
return (n, r) => (k(), c("div",
|
|
8625
|
+
return (n, r) => (k(), c("div", jp, [l("div", Mp, [N(n.$slots, "default", C(h({ content: t.content })), () => [f(pl, {
|
|
8576
8626
|
content: t.content || "",
|
|
8577
8627
|
status: t.status,
|
|
8578
|
-
type: R(
|
|
8628
|
+
type: R(W).Text
|
|
8579
8629
|
}, null, 8, [
|
|
8580
8630
|
"content",
|
|
8581
8631
|
"status",
|
|
8582
8632
|
"type"
|
|
8583
|
-
])])]), t.toolCalls && t.toolCalls.length > 0 ? (k(!0), c(e, { key: 0 }, M(t.toolCalls, (e) => (k(), o(
|
|
8633
|
+
])])]), t.toolCalls && t.toolCalls.length > 0 ? (k(!0), c(e, { key: 0 }, M(t.toolCalls, (e) => (k(), o(Ap, {
|
|
8584
8634
|
key: e.id,
|
|
8585
8635
|
status: t.status,
|
|
8586
8636
|
"tool-call": e
|
|
8587
8637
|
}, null, 8, ["status", "tool-call"]))), 128)) : s("", !0)]));
|
|
8588
8638
|
}
|
|
8589
|
-
}),
|
|
8639
|
+
}), Pp = { class: "info-message" }, Fp = /* @__PURE__ */ m({
|
|
8590
8640
|
__name: "info-message",
|
|
8591
8641
|
props: {
|
|
8592
8642
|
content: {},
|
|
@@ -8599,20 +8649,20 @@ var ld = ["src"], ud = {
|
|
|
8599
8649
|
property: {}
|
|
8600
8650
|
},
|
|
8601
8651
|
setup(t) {
|
|
8602
|
-
return (n, r) => (k(), c("div",
|
|
8652
|
+
return (n, r) => (k(), c("div", Pp, [(k(!0), c(e, null, M(Array.isArray(t.content) ? t.content : [t.content], (e, t) => (k(), c("div", {
|
|
8603
8653
|
key: t,
|
|
8604
8654
|
class: "info-message-content"
|
|
8605
8655
|
}, I(e), 1))), 128))]));
|
|
8606
8656
|
}
|
|
8607
|
-
}),
|
|
8657
|
+
}), Ip = { class: "ai-loading-message" }, Lp = /* @__PURE__ */ m({
|
|
8608
8658
|
__name: "loading-message",
|
|
8609
8659
|
setup(e) {
|
|
8610
|
-
return (e, t) => (k(), c("div",
|
|
8660
|
+
return (e, t) => (k(), c("div", Ip, [f(Hn, { size: 18 }), N(e.$slots, "default", {}, () => [d(I(R(q)("请求中...")), 1)])]));
|
|
8611
8661
|
}
|
|
8612
|
-
}),
|
|
8662
|
+
}), Rp = { class: "ai-reasoning-message" }, zp = {
|
|
8613
8663
|
key: 0,
|
|
8614
8664
|
class: "ai-reasoning-message-title-icon"
|
|
8615
|
-
},
|
|
8665
|
+
}, Bp = { class: "ai-reasoning-message-title-text" }, Vp = { class: "ai-reasoning-message-content" }, Hp = /* @__PURE__ */ m({
|
|
8616
8666
|
__name: "reasoning-message",
|
|
8617
8667
|
props: /* @__PURE__ */ y({
|
|
8618
8668
|
duration: {},
|
|
@@ -8630,7 +8680,7 @@ var ld = ["src"], ud = {
|
|
|
8630
8680
|
}),
|
|
8631
8681
|
emits: ["update:collapsed"],
|
|
8632
8682
|
setup(t) {
|
|
8633
|
-
let n = t, r = z(t, "collapsed"), { stop: i } =
|
|
8683
|
+
let n = t, r = z(t, "collapsed"), { stop: i } = V(() => n.duration, function() {
|
|
8634
8684
|
var e = X(function* (e) {
|
|
8635
8685
|
e && (r.value = !0, yield x(), i == null || i());
|
|
8636
8686
|
});
|
|
@@ -8648,7 +8698,7 @@ var ld = ["src"], ud = {
|
|
|
8648
8698
|
});
|
|
8649
8699
|
return (n, i) => {
|
|
8650
8700
|
var a;
|
|
8651
|
-
return k(), c("div",
|
|
8701
|
+
return k(), c("div", Rp, [l("div", {
|
|
8652
8702
|
class: S(["ai-reasoning-message-title", {
|
|
8653
8703
|
"ai-reasoning-message-title-collapsed": r.value,
|
|
8654
8704
|
"is-thinking": t.status === R(K).Pending || t.status === R(K).Streaming,
|
|
@@ -8657,44 +8707,44 @@ var ld = ["src"], ud = {
|
|
|
8657
8707
|
}]),
|
|
8658
8708
|
onClick: i[0] || (i[0] = (e) => r.value = !r.value)
|
|
8659
8709
|
}, [
|
|
8660
|
-
t.status === R(K).Pending || t.status === R(K).Streaming ? (k(), c("span",
|
|
8661
|
-
l("span",
|
|
8710
|
+
t.status === R(K).Pending || t.status === R(K).Streaming ? (k(), c("span", zp, [f(Hn)])) : s("", !0),
|
|
8711
|
+
l("span", Bp, I(u.value), 1),
|
|
8662
8712
|
l("span", { class: S(["ai-reasoning-message-title-icon collapsed-icon", { "is-collapsed": r.value }]) }, [f(R(hn))], 2)
|
|
8663
|
-
], 2),
|
|
8713
|
+
], 2), U(l("div", Vp, [t.status === R(K).Error ? (k(), o(Gc, {
|
|
8664
8714
|
key: 0,
|
|
8665
8715
|
content: ((a = t.content) == null ? void 0 : a.join("\n")) || ""
|
|
8666
8716
|
}, null, 8, ["content"])) : (k(!0), c(e, { key: 1 }, M(Array.isArray(t.content) ? t.content : [t.content], (e) => (k(), o(ul, {
|
|
8667
8717
|
key: e,
|
|
8668
8718
|
content: e
|
|
8669
|
-
}, null, 8, ["content"]))), 128))], 512), [[
|
|
8719
|
+
}, null, 8, ["content"]))), 128))], 512), [[re, !r.value]])]);
|
|
8670
8720
|
};
|
|
8671
8721
|
}
|
|
8672
|
-
}),
|
|
8722
|
+
}), Up = { class: "ai-key-value-content" }, Wp = {
|
|
8673
8723
|
key: 0,
|
|
8674
8724
|
class: "ai-key-value-title"
|
|
8675
|
-
},
|
|
8725
|
+
}, Gp = { class: "ai-key-value-content" }, Kp = { class: "item-key" }, qp = { class: "item-value" }, Jp = /* @__PURE__ */ m({
|
|
8676
8726
|
__name: "key-value-content",
|
|
8677
8727
|
props: {
|
|
8678
8728
|
content: {},
|
|
8679
8729
|
title: {}
|
|
8680
8730
|
},
|
|
8681
8731
|
setup(t) {
|
|
8682
|
-
return (n, r) => (k(), c("div",
|
|
8732
|
+
return (n, r) => (k(), c("div", Up, [t.title ? (k(), c("div", Wp, [f(R(mn)), d(" " + I(t.title), 1)])) : s("", !0), l("div", Gp, [(k(!0), c(e, null, M(t.content, (e) => (k(), c("div", {
|
|
8683
8733
|
key: e.key,
|
|
8684
8734
|
class: "key-value-item"
|
|
8685
8735
|
}, [
|
|
8686
|
-
l("div",
|
|
8736
|
+
l("div", Kp, I(e.key), 1),
|
|
8687
8737
|
r[0] || (r[0] = d(" : ", -1)),
|
|
8688
|
-
l("div",
|
|
8738
|
+
l("div", qp, I(e.value), 1)
|
|
8689
8739
|
]))), 128))])]));
|
|
8690
8740
|
}
|
|
8691
|
-
}),
|
|
8741
|
+
}), Yp = { class: "ai-user-message" }, Xp = {
|
|
8692
8742
|
key: 0,
|
|
8693
8743
|
class: "ai-user-message-binary-files"
|
|
8694
|
-
},
|
|
8744
|
+
}, Zp = {
|
|
8695
8745
|
key: 1,
|
|
8696
8746
|
class: "ai-user-message-content"
|
|
8697
|
-
},
|
|
8747
|
+
}, Qp = { class: "user-edit-footer" }, $p = /* @__PURE__ */ m({
|
|
8698
8748
|
__name: "user-message",
|
|
8699
8749
|
props: {
|
|
8700
8750
|
content: {},
|
|
@@ -8750,12 +8800,12 @@ var ld = ["src"], ud = {
|
|
|
8750
8800
|
return !!e.url || Fe(e.mimeType || ((t = e.file) == null ? void 0 : t.type));
|
|
8751
8801
|
}, y = a(() => {
|
|
8752
8802
|
var e;
|
|
8753
|
-
return Array.isArray(n.content) ? (e = n.content) == null ? void 0 : e.filter((e) => e.type ===
|
|
8803
|
+
return Array.isArray(n.content) ? (e = n.content) == null ? void 0 : e.filter((e) => e.type === W.Binary) : [];
|
|
8754
8804
|
}), x = a(() => y.value.filter((e) => v(e))), S = a(() => y.value.filter((e) => !v(e))), C = a(() => {
|
|
8755
8805
|
var e;
|
|
8756
8806
|
return n.content ? typeof n.content == "string" ? n.content : (e = n.content) == null ? void 0 : e.filter((e) => {
|
|
8757
8807
|
var t;
|
|
8758
|
-
return e.type ===
|
|
8808
|
+
return e.type === W.Text && !!((t = e.text) != null && t.trim());
|
|
8759
8809
|
}) : "";
|
|
8760
8810
|
}), w = function() {
|
|
8761
8811
|
var e = X(function* (e) {
|
|
@@ -8803,7 +8853,7 @@ var ld = ["src"], ud = {
|
|
|
8803
8853
|
}();
|
|
8804
8854
|
return (n, i) => {
|
|
8805
8855
|
var a, v;
|
|
8806
|
-
return k(), c("div",
|
|
8856
|
+
return k(), c("div", Yp, [g.value && typeof g.value == "string" ? (k(), o(Ku, {
|
|
8807
8857
|
key: 0,
|
|
8808
8858
|
class: "ai-user-message-cite",
|
|
8809
8859
|
content: g.value
|
|
@@ -8811,7 +8861,7 @@ var ld = ["src"], ud = {
|
|
|
8811
8861
|
class: "user-shortcut-render",
|
|
8812
8862
|
onClose: D,
|
|
8813
8863
|
onSubmit: O
|
|
8814
|
-
}), null, 16)) : (k(), o(
|
|
8864
|
+
}), null, 16)) : (k(), o(Zd, {
|
|
8815
8865
|
key: 1,
|
|
8816
8866
|
ref_key: "chatInputRef",
|
|
8817
8867
|
ref: m,
|
|
@@ -8822,18 +8872,18 @@ var ld = ["src"], ud = {
|
|
|
8822
8872
|
"on-send-message": A,
|
|
8823
8873
|
"support-upload": (a = (v = R(r)) == null ? void 0 : v.supportUpload.value) == null ? !1 : a
|
|
8824
8874
|
}, {
|
|
8825
|
-
"send-icon":
|
|
8875
|
+
"send-icon": H(() => [l("div", Qp, [f(R(se), {
|
|
8826
8876
|
size: "small",
|
|
8827
8877
|
onClick: E
|
|
8828
8878
|
}, {
|
|
8829
|
-
default:
|
|
8879
|
+
default: H(() => [d(I(R(q)("取消")), 1)]),
|
|
8830
8880
|
_: 1
|
|
8831
|
-
}), f(R(
|
|
8881
|
+
}), f(R(se), {
|
|
8832
8882
|
size: "small",
|
|
8833
8883
|
theme: "primary",
|
|
8834
8884
|
onClick: T
|
|
8835
8885
|
}, {
|
|
8836
|
-
default:
|
|
8886
|
+
default: H(() => [d(I(R(q)("发送")), 1)]),
|
|
8837
8887
|
_: 1
|
|
8838
8888
|
})])]),
|
|
8839
8889
|
_: 1
|
|
@@ -8842,7 +8892,7 @@ var ld = ["src"], ud = {
|
|
|
8842
8892
|
"default-upload-files",
|
|
8843
8893
|
"support-upload"
|
|
8844
8894
|
]))], 64)) : (k(), c(e, { key: 1 }, [
|
|
8845
|
-
y.value.length ? (k(), c(e, { key: 0 }, [x.value.length ? (k(), c("div",
|
|
8895
|
+
y.value.length ? (k(), c(e, { key: 0 }, [x.value.length ? (k(), c("div", Xp, [f(Cd, {
|
|
8846
8896
|
files: x.value,
|
|
8847
8897
|
readonly: !0
|
|
8848
8898
|
}, null, 8, ["files"])])) : s("", !0), (k(!0), c(e, null, M(S.value, (e, t) => {
|
|
@@ -8855,18 +8905,18 @@ var ld = ["src"], ud = {
|
|
|
8855
8905
|
readonly: !0
|
|
8856
8906
|
}, null, 8, ["files"])]);
|
|
8857
8907
|
}), 128))], 64)) : s("", !0),
|
|
8858
|
-
(g.value || C.value).length ? (k(), c("div",
|
|
8908
|
+
(g.value || C.value).length ? (k(), c("div", Zp, [Array.isArray(g.value) ? (k(), o(Jp, {
|
|
8859
8909
|
key: 0,
|
|
8860
8910
|
content: g.value,
|
|
8861
8911
|
title: h.value
|
|
8862
8912
|
}, 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
8913
|
key: 0,
|
|
8864
8914
|
content: t
|
|
8865
|
-
}, null, 8, ["content"])) : t.type === R(
|
|
8915
|
+
}, null, 8, ["content"])) : t.type === R(W).Text ? (k(), o(ul, {
|
|
8866
8916
|
key: 1,
|
|
8867
8917
|
content: t.text
|
|
8868
8918
|
}, null, 8, ["content"])) : s("", !0)], 64))), 128)) : s("", !0)])) : s("", !0),
|
|
8869
|
-
t.messageToolsStatus === R(Yr).Hidden ? s("", !0) : (k(), o(
|
|
8919
|
+
t.messageToolsStatus === R(Yr).Hidden ? s("", !0) : (k(), o(mf, {
|
|
8870
8920
|
key: 2,
|
|
8871
8921
|
class: "ai-user-message-tools",
|
|
8872
8922
|
"message-tools": R(yt),
|
|
@@ -8882,7 +8932,7 @@ var ld = ["src"], ud = {
|
|
|
8882
8932
|
], 64))]);
|
|
8883
8933
|
};
|
|
8884
8934
|
}
|
|
8885
|
-
}),
|
|
8935
|
+
}), em = /* @__PURE__ */ m({
|
|
8886
8936
|
__name: "message-render",
|
|
8887
8937
|
props: {
|
|
8888
8938
|
messageToolsStatus: {},
|
|
@@ -8895,35 +8945,35 @@ var ld = ["src"], ud = {
|
|
|
8895
8945
|
setup(e) {
|
|
8896
8946
|
let t = e, n = ne(), r = a(() => {
|
|
8897
8947
|
switch (t.message.role) {
|
|
8898
|
-
case G.User: return g(
|
|
8948
|
+
case G.User: return g($p, Y(Y({}, t.message), {}, {
|
|
8899
8949
|
onAction: t.onAction,
|
|
8900
8950
|
onInputConfirm: t.onInputConfirm,
|
|
8901
8951
|
onShortcutConfirm: t.onShortcutConfirm,
|
|
8902
8952
|
messageToolsStatus: t.messageToolsStatus,
|
|
8903
8953
|
tippyOptions: t.tippyOptions
|
|
8904
8954
|
}));
|
|
8905
|
-
case G.Assistant: return g(
|
|
8955
|
+
case G.Assistant: return g(Np, t.message, { default: (e) => N(n, "default", e, () => [g(pl, {
|
|
8906
8956
|
content: t.message.content || "",
|
|
8907
8957
|
status: t.message.status
|
|
8908
8958
|
}, n.codeHeader ? { codeHeader: (e) => {
|
|
8909
8959
|
var t;
|
|
8910
8960
|
return (t = n.codeHeader) == null ? void 0 : t.call(n, e);
|
|
8911
8961
|
} } : 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(
|
|
8962
|
+
case G.Info: return g(Fp, t.message);
|
|
8963
|
+
case G.Reasoning: return g(Hp, t.message);
|
|
8964
|
+
case G.Tool: return g(wp, t.message);
|
|
8965
|
+
case G.Activity: return console.log("props.message", t.message.content), g(gp, t.message);
|
|
8966
|
+
case G.Loading: return g(Lp, t.message);
|
|
8917
8967
|
default: return null;
|
|
8918
8968
|
}
|
|
8919
8969
|
});
|
|
8920
8970
|
return (e, t) => (k(), o(P(r.value)));
|
|
8921
8971
|
}
|
|
8922
|
-
}),
|
|
8972
|
+
}), tm = [
|
|
8923
8973
|
"id",
|
|
8924
8974
|
"onMouseenter",
|
|
8925
8975
|
"onMouseleave"
|
|
8926
|
-
],
|
|
8976
|
+
], nm = { class: "ai-message-fixed-bottom" }, rm = /* @__PURE__ */ m({
|
|
8927
8977
|
__name: "message-container",
|
|
8928
8978
|
props: /* @__PURE__ */ y({
|
|
8929
8979
|
enableSelection: {
|
|
@@ -9008,7 +9058,7 @@ var ld = ["src"], ud = {
|
|
|
9008
9058
|
style: w({ backgroundColor: i.checked ? "#f5f7fa" : "transparent" }),
|
|
9009
9059
|
onMouseenter: (e) => g(i),
|
|
9010
9060
|
onMouseleave: (e) => _(i, e)
|
|
9011
|
-
}, [t.enableSelection && i.type !== R(G).Loading ? (k(), o(R(
|
|
9061
|
+
}, [t.enableSelection && i.type !== R(G).Loading ? (k(), o(R(ce), {
|
|
9012
9062
|
key: 0,
|
|
9013
9063
|
class: "message-group-checkbox",
|
|
9014
9064
|
"model-value": i.checked,
|
|
@@ -9022,7 +9072,7 @@ var ld = ["src"], ud = {
|
|
|
9022
9072
|
}, {
|
|
9023
9073
|
message: e,
|
|
9024
9074
|
messageToolsStatus: t.messageToolsStatus
|
|
9025
|
-
}), () => [(k(), o(
|
|
9075
|
+
}), () => [(k(), o(em, {
|
|
9026
9076
|
key: n,
|
|
9027
9077
|
message: e,
|
|
9028
9078
|
"message-tools-status": t.messageToolsStatus,
|
|
@@ -9037,7 +9087,7 @@ var ld = ["src"], ud = {
|
|
|
9037
9087
|
"on-input-confirm",
|
|
9038
9088
|
"on-shortcut-confirm",
|
|
9039
9089
|
"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(
|
|
9090
|
+
]))])), 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(mf, {
|
|
9041
9091
|
key: 0,
|
|
9042
9092
|
"message-tools": h.value,
|
|
9043
9093
|
"message-tools-status": t.messageToolsStatus,
|
|
@@ -9055,36 +9105,36 @@ var ld = ["src"], ud = {
|
|
|
9055
9105
|
"style",
|
|
9056
9106
|
"tippy-options",
|
|
9057
9107
|
"onFeedback"
|
|
9058
|
-
])) : s("", !0)], 6)], 44,
|
|
9108
|
+
])) : s("", !0)], 6)], 44, tm))), 128)),
|
|
9059
9109
|
l("div", {
|
|
9060
9110
|
ref_key: "messageContainerBottomRef",
|
|
9061
9111
|
ref: u,
|
|
9062
9112
|
class: "message-container-bottom",
|
|
9063
9113
|
tabindex: "0"
|
|
9064
9114
|
}, null, 512),
|
|
9065
|
-
l("div",
|
|
9115
|
+
l("div", nm, [U(f(Fn, {
|
|
9066
9116
|
loading: t.messageStatus === R(K).StopLoading,
|
|
9067
9117
|
title: t.messageStatus === R(K).StopLoading ? R(q)("正在停止") : R(q)("停止生成"),
|
|
9068
9118
|
onClick: a[0] || (a[0] = (e) => r.$emit("stopStreaming"))
|
|
9069
9119
|
}, {
|
|
9070
|
-
icon:
|
|
9120
|
+
icon: H(() => [f(R(cn))]),
|
|
9071
9121
|
_: 1
|
|
9072
|
-
}, 8, ["loading", "title"]), [[
|
|
9122
|
+
}, 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
9123
|
title: R(q)("返回底部"),
|
|
9074
9124
|
onClick: R(d)
|
|
9075
9125
|
}, {
|
|
9076
|
-
icon:
|
|
9126
|
+
icon: H(() => [f(R(vn))]),
|
|
9077
9127
|
_: 1
|
|
9078
|
-
}, 8, ["title", "onClick"]), [[
|
|
9128
|
+
}, 8, ["title", "onClick"]), [[re, R(p)]])])
|
|
9079
9129
|
], 512));
|
|
9080
9130
|
}
|
|
9081
|
-
}),
|
|
9131
|
+
}), im = { class: "execution-summary" }, am = { class: "execution-summary-header" }, om = { class: "execution-summary-content" }, sm = ["onMouseenter"], cm = { class: "content-item-header" }, lm = { class: "content-item-title" }, um = { class: "content-item-messages" }, dm = {
|
|
9082
9132
|
key: 0,
|
|
9083
9133
|
class: "timeline-line"
|
|
9084
|
-
},
|
|
9134
|
+
}, fm = {
|
|
9085
9135
|
key: 1,
|
|
9086
9136
|
class: "execution-summary-content-empty"
|
|
9087
|
-
},
|
|
9137
|
+
}, pm = { class: "execution-summary-content-empty-text" }, mm = /* @__PURE__ */ m({
|
|
9088
9138
|
__name: "execution-summary",
|
|
9089
9139
|
props: { messageGroups: {} },
|
|
9090
9140
|
emits: ["locateMessageGroup", "updateKeyword"],
|
|
@@ -9098,57 +9148,57 @@ var ld = ["src"], ud = {
|
|
|
9098
9148
|
}, h = () => {
|
|
9099
9149
|
a.value = "", r("updateKeyword", "");
|
|
9100
9150
|
};
|
|
9101
|
-
return (n, g) => (k(), c("div",
|
|
9151
|
+
return (n, g) => (k(), c("div", im, [l("div", am, [f(R(de), {
|
|
9102
9152
|
modelValue: R(a),
|
|
9103
9153
|
"onUpdate:modelValue": [g[0] || (g[0] = (e) => v(a) ? a.value = e : null), g[1] || (g[1] = (e) => r("updateKeyword", e))],
|
|
9104
9154
|
class: "execution-summary-header-input",
|
|
9105
9155
|
clearable: "",
|
|
9106
9156
|
placeholder: R(q)("搜索 关键字")
|
|
9107
|
-
}, null, 8, ["modelValue", "placeholder"])]), l("div",
|
|
9157
|
+
}, null, 8, ["modelValue", "placeholder"])]), l("div", om, [t.messageGroups.length ? (k(!0), c(e, { key: 0 }, M(t.messageGroups, (n, r) => (k(), c("div", {
|
|
9108
9158
|
key: n.uid,
|
|
9109
9159
|
class: "execution-summary-content-item",
|
|
9110
9160
|
onMouseenter: (e) => u.value = n.uid,
|
|
9111
9161
|
onMouseleave: g[2] || (g[2] = (e) => u.value = void 0)
|
|
9112
9162
|
}, [
|
|
9113
|
-
l("div",
|
|
9163
|
+
l("div", cm, [
|
|
9114
9164
|
g[3] || (g[3] = l("span", { class: "timeline-dot" }, null, -1)),
|
|
9115
|
-
|
|
9116
|
-
|
|
9165
|
+
U((k(), c("span", lm, [d(I(typeof n.userMessageTitle == "number" ? p(n.userMessageTitle) : n.userMessageTitle), 1)])), [[R(Zr), Y({}, R(i))]]),
|
|
9166
|
+
U(f(R(se), {
|
|
9117
9167
|
class: "content-item-locate",
|
|
9118
9168
|
text: "",
|
|
9119
9169
|
theme: "primary",
|
|
9120
9170
|
onClick: (e) => m(n)
|
|
9121
9171
|
}, {
|
|
9122
|
-
default:
|
|
9172
|
+
default: H(() => [d(I(R(q)("在对话中定位")), 1)]),
|
|
9123
9173
|
_: 1
|
|
9124
|
-
}, 8, ["onClick"]), [[
|
|
9174
|
+
}, 8, ["onClick"]), [[re, u.value === n.uid]])
|
|
9125
9175
|
]),
|
|
9126
|
-
l("div",
|
|
9176
|
+
l("div", um, [(k(!0), c(e, null, M(n.messages, (e, t) => (k(), o(em, {
|
|
9127
9177
|
key: t,
|
|
9128
9178
|
message: e
|
|
9129
9179
|
}, null, 8, ["message"]))), 128))]),
|
|
9130
|
-
r < t.messageGroups.length - 1 ? (k(), c("div",
|
|
9131
|
-
], 40,
|
|
9180
|
+
r < t.messageGroups.length - 1 ? (k(), c("div", dm)) : s("", !0)
|
|
9181
|
+
], 40, sm))), 128)) : (k(), c("div", fm, [f(R(le), {
|
|
9132
9182
|
class: "empty-exception",
|
|
9133
9183
|
type: "empty"
|
|
9134
|
-
}), l("div",
|
|
9184
|
+
}), l("div", pm, [d(I(R(a) ? R(q)("搜索结果为空") : R(q)("暂无数据")) + " ", 1), R(a) ? (k(), o(R(se), {
|
|
9135
9185
|
key: 0,
|
|
9136
9186
|
text: "",
|
|
9137
9187
|
theme: "primary",
|
|
9138
9188
|
onClick: h
|
|
9139
9189
|
}, {
|
|
9140
|
-
default:
|
|
9190
|
+
default: H(() => [d(I(R(q)("清空搜索")), 1)]),
|
|
9141
9191
|
_: 1
|
|
9142
9192
|
})) : s("", !0)])]))])]));
|
|
9143
9193
|
}
|
|
9144
|
-
}),
|
|
9194
|
+
}), hm = ["class", "style"], gm = { class: "ai-message-loading-row" }, _m = { class: "ai-message-loading-icon-wrap" }, vm = {
|
|
9145
9195
|
key: 0,
|
|
9146
9196
|
class: "ai-message-loading-text ai-message-loading-text-custom"
|
|
9147
|
-
},
|
|
9197
|
+
}, ym = {
|
|
9148
9198
|
key: 1,
|
|
9149
9199
|
"aria-live": "polite",
|
|
9150
9200
|
class: "ai-message-loading-text"
|
|
9151
|
-
},
|
|
9201
|
+
}, bm = /* @__PURE__ */ m(Y(Y({}, {
|
|
9152
9202
|
name: "MessageLoading",
|
|
9153
9203
|
inheritAttrs: !1
|
|
9154
9204
|
}), {}, {
|
|
@@ -9163,7 +9213,7 @@ var ld = ["src"], ud = {
|
|
|
9163
9213
|
setup(t) {
|
|
9164
9214
|
let n = t, r = te(), i = a(() => {
|
|
9165
9215
|
let { class: e, style: t } = r;
|
|
9166
|
-
return er(r,
|
|
9216
|
+
return er(r, hm);
|
|
9167
9217
|
}), o = a(() => ({
|
|
9168
9218
|
display: "block",
|
|
9169
9219
|
width: `${n.iconSize}px`,
|
|
@@ -9179,16 +9229,16 @@ var ld = ["src"], ud = {
|
|
|
9179
9229
|
return (t, n) => (k(), c("div", b({
|
|
9180
9230
|
class: ["ai-message-loading", R(r).class],
|
|
9181
9231
|
style: u.value
|
|
9182
|
-
}, i.value), [l("div",
|
|
9232
|
+
}, i.value), [l("div", gm, [l("span", _m, [N(t.$slots, "icon", {}, () => [f(R(Pt), {
|
|
9183
9233
|
class: "ai-message-loading-icon-svg",
|
|
9184
9234
|
style: w(o.value)
|
|
9185
|
-
}, null, 8, ["style"])])]), t.$slots.text ? (k(), c("span",
|
|
9235
|
+
}, null, 8, ["style"])])]), t.$slots.text ? (k(), c("span", vm, [N(t.$slots, "text")])) : (k(), c("span", ym, [(k(!0), c(e, null, M(s.value, (e, t) => (k(), c("span", {
|
|
9186
9236
|
key: `${t}-${e}`,
|
|
9187
9237
|
class: "ai-message-loading-char",
|
|
9188
9238
|
style: w({ "--char-index": t })
|
|
9189
9239
|
}, I(e), 5))), 128))]))])], 16));
|
|
9190
9240
|
}
|
|
9191
|
-
})),
|
|
9241
|
+
})), xm = { class: "ai-selection-footer" }, Sm = { class: "ai-selection-footer-left" }, Cm = { class: "select-all-text" }, wm = { class: "ai-selection-footer-right" }, Tm = /* @__PURE__ */ m({
|
|
9192
9242
|
__name: "selection-footer",
|
|
9193
9243
|
props: {
|
|
9194
9244
|
isAllSelected: { type: Boolean },
|
|
@@ -9202,35 +9252,35 @@ var ld = ["src"], ud = {
|
|
|
9202
9252
|
],
|
|
9203
9253
|
setup(e, { emit: t }) {
|
|
9204
9254
|
let n = t;
|
|
9205
|
-
return (t, r) => (k(), c("div",
|
|
9255
|
+
return (t, r) => (k(), c("div", xm, [l("div", Sm, [f(R(ce), {
|
|
9206
9256
|
"model-value": e.isAllSelected,
|
|
9207
9257
|
"onUpdate:modelValue": r[0] || (r[0] = (e) => n("toggle-all", e))
|
|
9208
|
-
}, null, 8, ["model-value"]), l("span",
|
|
9258
|
+
}, null, 8, ["model-value"]), l("span", Cm, I(R(q)("全选")), 1)]), l("div", wm, [f(R(se), {
|
|
9209
9259
|
disabled: e.loading,
|
|
9210
9260
|
onClick: r[1] || (r[1] = (e) => n("cancel"))
|
|
9211
9261
|
}, {
|
|
9212
|
-
default:
|
|
9262
|
+
default: H(() => [d(I(R(q)("取消")), 1)]),
|
|
9213
9263
|
_: 1
|
|
9214
|
-
}, 8, ["disabled"]), f(R(
|
|
9264
|
+
}, 8, ["disabled"]), f(R(se), {
|
|
9215
9265
|
disabled: e.selectedCount === 0,
|
|
9216
9266
|
loading: e.loading,
|
|
9217
9267
|
theme: "primary",
|
|
9218
9268
|
onClick: r[2] || (r[2] = (e) => n("confirm"))
|
|
9219
9269
|
}, {
|
|
9220
|
-
default:
|
|
9270
|
+
default: H(() => [d(I(R(q)("确定")), 1)]),
|
|
9221
9271
|
_: 1
|
|
9222
9272
|
}, 8, ["disabled", "loading"])])]));
|
|
9223
9273
|
}
|
|
9224
|
-
}),
|
|
9274
|
+
}), Em = {
|
|
9225
9275
|
key: 0,
|
|
9226
9276
|
class: "ai-chat-container-loading"
|
|
9227
|
-
},
|
|
9277
|
+
}, Dm = {
|
|
9228
9278
|
key: 1,
|
|
9229
9279
|
class: "ai-welcome-content"
|
|
9230
|
-
},
|
|
9280
|
+
}, Om = { class: "ai-welcome-title" }, km = {
|
|
9231
9281
|
key: 0,
|
|
9232
9282
|
class: "ai-welcome-remark"
|
|
9233
|
-
},
|
|
9283
|
+
}, Am = /* @__PURE__ */ m({
|
|
9234
9284
|
__name: "chat-container",
|
|
9235
9285
|
props: /* @__PURE__ */ y({
|
|
9236
9286
|
chatLoading: { type: Boolean },
|
|
@@ -9254,6 +9304,7 @@ var ld = ["src"], ud = {
|
|
|
9254
9304
|
resources: {},
|
|
9255
9305
|
shortcutId: {},
|
|
9256
9306
|
shortcuts: {},
|
|
9307
|
+
skills: {},
|
|
9257
9308
|
supportUpload: { type: Boolean },
|
|
9258
9309
|
tippyOptions: {},
|
|
9259
9310
|
messages: {},
|
|
@@ -9293,7 +9344,7 @@ var ld = ["src"], ud = {
|
|
|
9293
9344
|
"update:cite"
|
|
9294
9345
|
]),
|
|
9295
9346
|
setup(t, { expose: n, emit: r }) {
|
|
9296
|
-
let i =
|
|
9347
|
+
let i = ve.TabPanel, u = t, p = z(t, "renderMode");
|
|
9297
9348
|
Rr({ renderMode: p });
|
|
9298
9349
|
let m = a(() => Y(Y({
|
|
9299
9350
|
collapsible: !1,
|
|
@@ -9329,39 +9380,39 @@ var ld = ["src"], ud = {
|
|
|
9329
9380
|
return function(t) {
|
|
9330
9381
|
return e.apply(this, arguments);
|
|
9331
9382
|
};
|
|
9332
|
-
}() }), B = F(""),
|
|
9383
|
+
}() }), 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
9384
|
keyword: B,
|
|
9334
9385
|
messages: a(() => u.messages),
|
|
9335
|
-
selectedUserMessages:
|
|
9386
|
+
selectedUserMessages: re
|
|
9336
9387
|
});
|
|
9337
|
-
|
|
9338
|
-
e && (B.value = "",
|
|
9339
|
-
}),
|
|
9388
|
+
V(A, (e) => {
|
|
9389
|
+
e && (B.value = "", ie.value = 0), T("collapseChange", e, ie.value);
|
|
9390
|
+
}), V(() => ce.value, (e) => {
|
|
9340
9391
|
!e.length && !B.value && ne();
|
|
9341
9392
|
}, {
|
|
9342
9393
|
immediate: !0,
|
|
9343
9394
|
deep: !1
|
|
9344
9395
|
});
|
|
9345
|
-
let
|
|
9396
|
+
let me = a(() => {
|
|
9346
9397
|
var e;
|
|
9347
|
-
return u.messageStatus === K.StopLoading ? K.StopLoading : (e =
|
|
9348
|
-
}),
|
|
9398
|
+
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;
|
|
9399
|
+
}), ge = () => {
|
|
9349
9400
|
v.value = null, T("shortcutClose");
|
|
9350
|
-
},
|
|
9401
|
+
}, _e = (e) => {
|
|
9351
9402
|
T("shortcutSubmit", e);
|
|
9352
|
-
},
|
|
9403
|
+
}, ye = () => {
|
|
9353
9404
|
T("deleteShortcut");
|
|
9354
|
-
},
|
|
9405
|
+
}, be = (e) => {
|
|
9355
9406
|
T("selectShortcut", e);
|
|
9356
|
-
},
|
|
9407
|
+
}, xe = (e, t) => {
|
|
9357
9408
|
T("update:modelValue", e, t);
|
|
9358
|
-
},
|
|
9409
|
+
}, Se = () => {
|
|
9359
9410
|
A.value = !A.value;
|
|
9360
|
-
},
|
|
9411
|
+
}, Ce = (e) => {
|
|
9361
9412
|
if (!e) return;
|
|
9362
9413
|
let t = document.getElementById(e);
|
|
9363
9414
|
if (!t) {
|
|
9364
|
-
let t =
|
|
9415
|
+
let t = oe.value.find((t) => t.messages.some((t) => t.uid === e));
|
|
9365
9416
|
if (t) {
|
|
9366
9417
|
var n;
|
|
9367
9418
|
(n = document.getElementById(t.uid)) == null || n.scrollIntoView({ behavior: "smooth" });
|
|
@@ -9369,15 +9420,15 @@ var ld = ["src"], ud = {
|
|
|
9369
9420
|
return;
|
|
9370
9421
|
}
|
|
9371
9422
|
t.scrollIntoView({ behavior: "smooth" });
|
|
9372
|
-
}, Ce = (e) => {
|
|
9373
|
-
te(E.value.find((t) => t.name === e));
|
|
9374
9423
|
}, we = (e) => {
|
|
9424
|
+
te(E.value.find((t) => t.name === e));
|
|
9425
|
+
}, Te = (e) => {
|
|
9375
9426
|
B.value = e;
|
|
9376
|
-
},
|
|
9427
|
+
}, Ee = function() {
|
|
9377
9428
|
var e = X(function* (e, t) {
|
|
9378
9429
|
var n;
|
|
9379
9430
|
if (e.id === "share") {
|
|
9380
|
-
|
|
9431
|
+
le.value = !0;
|
|
9381
9432
|
return;
|
|
9382
9433
|
}
|
|
9383
9434
|
return (n = u.onAgentAction) == null ? void 0 : n.call(u, e, t);
|
|
@@ -9385,12 +9436,12 @@ var ld = ["src"], ud = {
|
|
|
9385
9436
|
return function(t, n) {
|
|
9386
9437
|
return e.apply(this, arguments);
|
|
9387
9438
|
};
|
|
9388
|
-
}(),
|
|
9389
|
-
T("confirmShare",
|
|
9390
|
-
|
|
9439
|
+
}(), De = () => {
|
|
9440
|
+
T("confirmShare", pe()), x(() => {
|
|
9441
|
+
le.value = !1, re.value = [];
|
|
9391
9442
|
});
|
|
9392
|
-
},
|
|
9393
|
-
|
|
9443
|
+
}, Oe = (e) => {
|
|
9444
|
+
ie.value = e;
|
|
9394
9445
|
};
|
|
9395
9446
|
return O(() => {
|
|
9396
9447
|
ne();
|
|
@@ -9400,31 +9451,31 @@ var ld = ["src"], ud = {
|
|
|
9400
9451
|
removeCustomTab: L,
|
|
9401
9452
|
selectCustomTab: te,
|
|
9402
9453
|
enterShareMode: () => {
|
|
9403
|
-
|
|
9454
|
+
le.value = !0;
|
|
9404
9455
|
},
|
|
9405
9456
|
exitShareMode: () => {
|
|
9406
|
-
|
|
9457
|
+
fe();
|
|
9407
9458
|
}
|
|
9408
9459
|
}), (n, r) => {
|
|
9409
9460
|
var a, u;
|
|
9410
9461
|
return k(), c("div", {
|
|
9411
9462
|
class: "ai-chat-container",
|
|
9412
|
-
style: w({ "--resize-main-width":
|
|
9413
|
-
}, [t.chatLoading ? (k(), c("div",
|
|
9463
|
+
style: w({ "--resize-main-width": ae.value })
|
|
9464
|
+
}, [t.chatLoading ? (k(), c("div", Em, [f(bm)])) : (k(), o(R(he), b({
|
|
9414
9465
|
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:
|
|
9466
|
+
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 }]
|
|
9467
|
+
}, m.value, { onResizing: Oe }), {
|
|
9468
|
+
aside: H(() => {
|
|
9418
9469
|
var n, a, l, u, m;
|
|
9419
|
-
return [!R(A) && ((n = R(
|
|
9420
|
-
f(R(
|
|
9470
|
+
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 }, [
|
|
9471
|
+
f(R(ve), {
|
|
9421
9472
|
active: R(D).name,
|
|
9422
9473
|
class: "ai-chat-container-tab",
|
|
9423
9474
|
"label-height": 40,
|
|
9424
9475
|
type: "unborder-card",
|
|
9425
|
-
onChange:
|
|
9476
|
+
onChange: we
|
|
9426
9477
|
}, {
|
|
9427
|
-
default:
|
|
9478
|
+
default: H(() => [(k(!0), c(e, null, M(R(E), (e) => (k(), o(R(i), {
|
|
9428
9479
|
key: e.name,
|
|
9429
9480
|
class: "ai-chat-container-tab-panel",
|
|
9430
9481
|
label: () => {
|
|
@@ -9439,7 +9490,7 @@ var ld = ["src"], ud = {
|
|
|
9439
9490
|
}
|
|
9440
9491
|
}, (n = (r = t.getSideTabRenderComponent) == null ? void 0 : r.call(t, g, e, { removeCustomTab: R(L) })) == null ? [
|
|
9441
9492
|
g(e.name === R("execution") ? R(qt) : R(Yt), { class: "ai-execution-summary-icon" }),
|
|
9442
|
-
|
|
9493
|
+
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
9494
|
e.name === R("execution") ? null : g(R(yn), {
|
|
9444
9495
|
class: "ai-execution-close-icon",
|
|
9445
9496
|
onClick: () => {
|
|
@@ -9452,66 +9503,66 @@ var ld = ["src"], ud = {
|
|
|
9452
9503
|
}, null, 8, ["label", "name"]))), 128))]),
|
|
9453
9504
|
_: 1
|
|
9454
9505
|
}, 8, ["active"]),
|
|
9455
|
-
((l = R(D)) == null ? void 0 : l.name) === R("execution") ? (k(), c(e, { key: 0 }, [R(A) ? s("", !0) : (k(), o(
|
|
9506
|
+
((l = R(D)) == null ? void 0 : l.name) === R("execution") ? (k(), c(e, { key: 0 }, [R(A) ? s("", !0) : (k(), o(mm, {
|
|
9456
9507
|
key: 0,
|
|
9457
|
-
"message-groups": R(
|
|
9508
|
+
"message-groups": R(ce),
|
|
9458
9509
|
style: { height: "calc(100% - 40px)" },
|
|
9459
|
-
onLocateMessageGroup:
|
|
9460
|
-
onUpdateKeyword:
|
|
9510
|
+
onLocateMessageGroup: Ce,
|
|
9511
|
+
onUpdateKeyword: Te
|
|
9461
9512
|
}, null, 8, ["message-groups"]))], 64)) : s("", !0),
|
|
9462
9513
|
R(D) ? (k(), c("div", {
|
|
9463
9514
|
key: R(D).name,
|
|
9464
9515
|
class: "ai-chat-container-message-slot"
|
|
9465
9516
|
}, [(k(), o(P(_.value), b({ key: R(D).name }, (u = R(D)) == null || (u = u.data) == null ? void 0 : u.props), {
|
|
9466
|
-
locateButton:
|
|
9517
|
+
locateButton: H(() => [f(R(se), {
|
|
9467
9518
|
class: "ai-locate-button",
|
|
9468
9519
|
size: "small",
|
|
9469
9520
|
text: "",
|
|
9470
9521
|
theme: "primary",
|
|
9471
9522
|
onClick: r[0] || (r[0] = (e) => {
|
|
9472
9523
|
var t;
|
|
9473
|
-
return
|
|
9524
|
+
return Ce((t = R(D)) == null || (t = t.data) == null ? void 0 : t.messageUid);
|
|
9474
9525
|
})
|
|
9475
9526
|
}, {
|
|
9476
|
-
default:
|
|
9527
|
+
default: H(() => [d(I(R(q)("在对话中定位")), 1)]),
|
|
9477
9528
|
_: 1
|
|
9478
9529
|
})]),
|
|
9479
9530
|
_: 1
|
|
9480
9531
|
}, 16))])) : s("", !0)
|
|
9481
|
-
], 64)) : s("", !0), (m = R(
|
|
9532
|
+
], 64)) : s("", !0), (m = R(ce)) != null && m.length && p.value !== R(wt).Share ? (k(), c("div", {
|
|
9482
9533
|
key: 1,
|
|
9483
9534
|
class: S(["collapse-button", { "is-right": t.placement === "right" }]),
|
|
9484
|
-
onClick:
|
|
9535
|
+
onClick: Se
|
|
9485
9536
|
}, [f(R(qt)), d(" " + I(R(q)("执行情况")), 1)], 2)) : s("", !0)];
|
|
9486
9537
|
}),
|
|
9487
|
-
main:
|
|
9538
|
+
main: H(() => {
|
|
9488
9539
|
var i, a, u;
|
|
9489
9540
|
return [(i = t.messages) != null && i.length ? N(n.$slots, "default", C(b({ key: 0 }, {
|
|
9490
9541
|
messages: t.messages,
|
|
9491
9542
|
messageStatus: t.messageStatus,
|
|
9492
|
-
messageGroups: R(
|
|
9493
|
-
selectedUserMessages:
|
|
9543
|
+
messageGroups: R(oe),
|
|
9544
|
+
selectedUserMessages: re.value,
|
|
9494
9545
|
messageToolsStatus: t.messageToolsStatus,
|
|
9495
|
-
isShareMode: R(
|
|
9546
|
+
isShareMode: R(le),
|
|
9496
9547
|
commonTippyOptions: t.commonTippyOptions,
|
|
9497
|
-
handleAgentAction:
|
|
9548
|
+
handleAgentAction: Ee,
|
|
9498
9549
|
onAgentFeedback: t.onAgentFeedback,
|
|
9499
9550
|
onUserAction: t.onUserAction,
|
|
9500
9551
|
onUserInputConfirm: t.onUserInputConfirm,
|
|
9501
9552
|
onUserShortcutConfirm: t.onUserShortcutConfirm
|
|
9502
9553
|
})), () => {
|
|
9503
9554
|
var e;
|
|
9504
|
-
return [(e = t.messages) != null && e.length ? (k(), o(
|
|
9555
|
+
return [(e = t.messages) != null && e.length ? (k(), o(rm, {
|
|
9505
9556
|
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":
|
|
9557
|
+
"selected-user-messages": re.value,
|
|
9558
|
+
"onUpdate:selectedUserMessages": r[1] || (r[1] = (e) => re.value = e),
|
|
9559
|
+
"enable-selection": R(le),
|
|
9560
|
+
"message-groups": R(oe),
|
|
9561
|
+
"message-status": me.value,
|
|
9511
9562
|
"message-tools-status": t.messageToolsStatus,
|
|
9512
9563
|
"message-tools-tippy-options": t.commonTippyOptions,
|
|
9513
9564
|
messages: t.messages,
|
|
9514
|
-
"on-agent-action":
|
|
9565
|
+
"on-agent-action": Ee,
|
|
9515
9566
|
"on-agent-feedback": t.onAgentFeedback,
|
|
9516
9567
|
"on-user-action": t.onUserAction,
|
|
9517
9568
|
"on-user-input-confirm": t.onUserInputConfirm,
|
|
@@ -9519,7 +9570,7 @@ var ld = ["src"], ud = {
|
|
|
9519
9570
|
"render-mode": p.value,
|
|
9520
9571
|
onStopStreaming: r[2] || (r[2] = (e) => T("stopStreaming"))
|
|
9521
9572
|
}, {
|
|
9522
|
-
default:
|
|
9573
|
+
default: H(({ message: e, messageToolsStatus: t }) => [N(n.$slots, "message", C(h({
|
|
9523
9574
|
message: e,
|
|
9524
9575
|
messageToolsStatus: t
|
|
9525
9576
|
})))]),
|
|
@@ -9538,37 +9589,37 @@ var ld = ["src"], ud = {
|
|
|
9538
9589
|
"on-user-shortcut-confirm",
|
|
9539
9590
|
"render-mode"
|
|
9540
9591
|
])) : s("", !0)];
|
|
9541
|
-
}) : (k(), c("div",
|
|
9592
|
+
}) : (k(), c("div", Dm, [N(n.$slots, "welcome", C(h({
|
|
9542
9593
|
openingRemark: t.openingRemark,
|
|
9543
9594
|
welcomeTitle: t.welcomeTitle
|
|
9544
9595
|
})), () => {
|
|
9545
9596
|
var e;
|
|
9546
9597
|
return [
|
|
9547
9598
|
f(R(Ft)),
|
|
9548
|
-
l("h2",
|
|
9549
|
-
t.openingRemark ? (k(), c("div",
|
|
9599
|
+
l("h2", Om, I((e = t.welcomeTitle) == null ? R(q)("你好,我是小鲸") : e), 1),
|
|
9600
|
+
t.openingRemark ? (k(), c("div", km, [f(pl, { content: t.openingRemark }, null, 8, ["content"])])) : s("", !0)
|
|
9550
9601
|
];
|
|
9551
|
-
})])), p.value === R(wt).Share ? s("", !0) : (k(), c(e, { key: 2 }, [R(
|
|
9602
|
+
})])), p.value === R(wt).Share ? s("", !0) : (k(), c(e, { key: 2 }, [R(le) ? (k(), o(Tm, {
|
|
9552
9603
|
key: 0,
|
|
9553
|
-
"is-all-selected": R(
|
|
9604
|
+
"is-all-selected": R(ue),
|
|
9554
9605
|
loading: !1,
|
|
9555
|
-
"selected-count":
|
|
9556
|
-
onCancel: R(
|
|
9557
|
-
onConfirm:
|
|
9558
|
-
onToggleAll: R(
|
|
9606
|
+
"selected-count": re.value.length,
|
|
9607
|
+
onCancel: R(fe),
|
|
9608
|
+
onConfirm: De,
|
|
9609
|
+
onToggleAll: R(de)
|
|
9559
9610
|
}, null, 8, [
|
|
9560
9611
|
"is-all-selected",
|
|
9561
9612
|
"selected-count",
|
|
9562
9613
|
"onCancel",
|
|
9563
9614
|
"onToggleAll"
|
|
9564
9615
|
])) : !((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(
|
|
9616
|
+
onClose: ge,
|
|
9617
|
+
onSubmit: _e
|
|
9618
|
+
}), null, 16)) : (k(), o(Zd, {
|
|
9568
9619
|
key: 2,
|
|
9569
9620
|
cite: y.value,
|
|
9570
9621
|
"onUpdate:cite": r[3] || (r[3] = (e) => y.value = e),
|
|
9571
|
-
"message-status":
|
|
9622
|
+
"message-status": me.value,
|
|
9572
9623
|
"model-value": t.modelValue,
|
|
9573
9624
|
"on-send-message": t.onSendMessage,
|
|
9574
9625
|
"on-stop-sending": t.onStopSending,
|
|
@@ -9578,11 +9629,12 @@ var ld = ["src"], ud = {
|
|
|
9578
9629
|
resources: t.resources,
|
|
9579
9630
|
"shortcut-id": (u = v.value) == null ? void 0 : u.id,
|
|
9580
9631
|
shortcuts: t.shortcuts,
|
|
9632
|
+
skills: t.skills,
|
|
9581
9633
|
"support-upload": t.supportUpload,
|
|
9582
9634
|
"tippy-options": t.commonTippyOptions,
|
|
9583
|
-
onDeleteShortcut:
|
|
9584
|
-
onSelectShortcut:
|
|
9585
|
-
"onUpdate:modelValue":
|
|
9635
|
+
onDeleteShortcut: ye,
|
|
9636
|
+
onSelectShortcut: be,
|
|
9637
|
+
"onUpdate:modelValue": xe
|
|
9586
9638
|
}, null, 8, [
|
|
9587
9639
|
"cite",
|
|
9588
9640
|
"message-status",
|
|
@@ -9595,6 +9647,7 @@ var ld = ["src"], ud = {
|
|
|
9595
9647
|
"resources",
|
|
9596
9648
|
"shortcut-id",
|
|
9597
9649
|
"shortcuts",
|
|
9650
|
+
"skills",
|
|
9598
9651
|
"support-upload",
|
|
9599
9652
|
"tippy-options"
|
|
9600
9653
|
]))], 64))];
|
|
@@ -9603,7 +9656,7 @@ var ld = ["src"], ud = {
|
|
|
9603
9656
|
}, 16, ["class"]))], 4);
|
|
9604
9657
|
};
|
|
9605
9658
|
}
|
|
9606
|
-
}),
|
|
9659
|
+
}), jm = { class: "ai-image-preview-group" }, Mm = /* @__PURE__ */ m(Y(Y({}, { name: "ImagePreviewGroup" }), {}, {
|
|
9607
9660
|
__name: "image-preview-group",
|
|
9608
9661
|
props: {
|
|
9609
9662
|
maskClosable: {
|
|
@@ -9632,7 +9685,7 @@ var ld = ["src"], ud = {
|
|
|
9632
9685
|
let a = [...t.keys()], o = a.map((e) => t.get(e)()), s = a.indexOf(e);
|
|
9633
9686
|
r.value = o, i.value = s >= 0 ? s : 0, n.value = !0;
|
|
9634
9687
|
}
|
|
9635
|
-
}), (t, a) => (k(), c("div",
|
|
9688
|
+
}), (t, a) => (k(), c("div", jm, [N(t.$slots, "default"), n.value ? (k(), o(md, {
|
|
9636
9689
|
key: 0,
|
|
9637
9690
|
current: i.value,
|
|
9638
9691
|
"onUpdate:current": a[0] || (a[0] = (e) => i.value = e),
|
|
@@ -9644,7 +9697,7 @@ var ld = ["src"], ud = {
|
|
|
9644
9697
|
"show-info": e.showInfo
|
|
9645
9698
|
}, u({ _: 2 }, [t.$slots.extra ? {
|
|
9646
9699
|
name: "extra",
|
|
9647
|
-
fn:
|
|
9700
|
+
fn: H(() => [N(t.$slots, "extra")]),
|
|
9648
9701
|
key: "0"
|
|
9649
9702
|
} : void 0]), 1032, [
|
|
9650
9703
|
"current",
|
|
@@ -9655,10 +9708,10 @@ var ld = ["src"], ud = {
|
|
|
9655
9708
|
"show-info"
|
|
9656
9709
|
])) : s("", !0)]));
|
|
9657
9710
|
}
|
|
9658
|
-
})),
|
|
9711
|
+
})), Nm = ["alt", "src"], Pm = {
|
|
9659
9712
|
key: 1,
|
|
9660
9713
|
class: "ai-image-error"
|
|
9661
|
-
},
|
|
9714
|
+
}, Fm = /* @__PURE__ */ m(Y(Y({}, { name: "AiImage" }), {}, {
|
|
9662
9715
|
__name: "image",
|
|
9663
9716
|
props: {
|
|
9664
9717
|
alt: { default: "" },
|
|
@@ -9750,8 +9803,8 @@ var ld = ["src"], ud = {
|
|
|
9750
9803
|
style: ee,
|
|
9751
9804
|
onError: P,
|
|
9752
9805
|
onLoad: M
|
|
9753
|
-
}, null, 40,
|
|
9754
|
-
h.value === "error" ? (k(), c("div",
|
|
9806
|
+
}, null, 40, Nm)) : s("", !0),
|
|
9807
|
+
h.value === "error" ? (k(), c("div", Pm, [f(R(Ht), { class: "ai-image-error-icon" })])) : s("", !0),
|
|
9755
9808
|
h.value === "error" ? (k(), c("div", {
|
|
9756
9809
|
key: 2,
|
|
9757
9810
|
class: "ai-image-error-overlay",
|
|
@@ -9767,7 +9820,7 @@ var ld = ["src"], ud = {
|
|
|
9767
9820
|
"show-info": e.showInfo
|
|
9768
9821
|
}, u({ _: 2 }, [t.$slots.extra ? {
|
|
9769
9822
|
name: "extra",
|
|
9770
|
-
fn:
|
|
9823
|
+
fn: H(() => [N(t.$slots, "extra")]),
|
|
9771
9824
|
key: "0"
|
|
9772
9825
|
} : void 0]), 1032, [
|
|
9773
9826
|
"visible",
|
|
@@ -9779,4 +9832,4 @@ var ld = ["src"], ud = {
|
|
|
9779
9832
|
}
|
|
9780
9833
|
}));
|
|
9781
9834
|
//#endregion
|
|
9782
|
-
export { Ft as AIBluekingBannerIcon, Pt as AIBluekingIcon, jn as ActiveLikeIcon, Mn as ActiveUnLikeIcon, xn as AgentIcon,
|
|
9835
|
+
export { Ft as AIBluekingBannerIcon, Pt as AIBluekingIcon, jn as ActiveLikeIcon, Mn as ActiveUnLikeIcon, xn as AgentIcon, Fm 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, Am as ChatContainer, Zd 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, mm as ExecutionSummary, dn as FileUploadIcon, $t as FitScreenIcon, Cr as GLOBAL_CONFIG_TOKEN, Ct as HIGHLIGHT_KEYWORD_CLASS_NAME, hf as HighlightKeyword, Kr as IMAGE_PREVIEW_GROUP_KEY, on as ImageBrokenIcon, Rc as ImageContent, Ht as ImageErrorIcon, md as ImagePreview, Mm 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, rm as MessageContainer, W as MessageContentType, bm as MessageLoading, em as MessageRender, G as MessageRole, qr as MessageState, K as MessageStatus, mf as MessageTools, Yr as MessageToolsStatus, lf 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, Tm as SelectionFooter, fn as SendMessageIcon, En as ShareIcon, Gn as ShortcutBtn, Qn as ShortcutBtns, lr as ShortcutRender, Rt as TargetIcon, mn as ThinkingIcon, Ap 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 };
|