@blueking/chat-x 0.0.51-beta.2 → 0.0.51-beta.3
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-content/file-content/upload-image-item.vue.d.ts +2 -0
- package/dist/components/chat-content/file-content/upload-spinner.vue.d.ts +3 -0
- package/dist/components/chat-input/chat-input.vue.d.ts +3 -0
- package/dist/index.css +1 -1
- package/dist/index.js +745 -712
- package/dist/index.js.map +1 -1
- package/dist/lang/lang.d.ts +4 -1
- package/dist/mcp/generated/docs/chat-container.md +1 -1
- package/dist/mcp/generated/docs/chat-input.md +3 -2
- package/dist/mcp/generated/docs/file-content.md +27 -10
- package/dist/mcp/generated/index.json +3 -3
- package/dist/mcp/index.js +0 -0
- package/package.json +21 -23
- package/skills/blueking-chat-x/SKILL.md +0 -139
- package/skills/blueking-chat-x/references/_index.md +0 -131
- package/skills/blueking-chat-x/references/components/activity-layout.md +0 -134
- package/skills/blueking-chat-x/references/components/activity-message.md +0 -486
- package/skills/blueking-chat-x/references/components/ai-image.md +0 -230
- package/skills/blueking-chat-x/references/components/ai-loading.md +0 -131
- package/skills/blueking-chat-x/references/components/ai-prompt-list.md +0 -44
- package/skills/blueking-chat-x/references/components/ai-selection.md +0 -439
- package/skills/blueking-chat-x/references/components/ai-skill-list.md +0 -73
- package/skills/blueking-chat-x/references/components/ai-slash-editor.md +0 -43
- package/skills/blueking-chat-x/references/components/ai-slash-input.md +0 -56
- package/skills/blueking-chat-x/references/components/ai-slash-menu.md +0 -42
- package/skills/blueking-chat-x/references/components/animation-text.md +0 -202
- package/skills/blueking-chat-x/references/components/assistant-message.md +0 -498
- package/skills/blueking-chat-x/references/components/chat-container.md +0 -869
- package/skills/blueking-chat-x/references/components/chat-input.md +0 -769
- package/skills/blueking-chat-x/references/components/cite-content.md +0 -142
- package/skills/blueking-chat-x/references/components/code-content.md +0 -211
- package/skills/blueking-chat-x/references/components/common-error-content.md +0 -73
- package/skills/blueking-chat-x/references/components/content-render.md +0 -233
- package/skills/blueking-chat-x/references/components/delete-tool.md +0 -191
- package/skills/blueking-chat-x/references/components/desc-panel.md +0 -162
- package/skills/blueking-chat-x/references/components/detail-section.md +0 -91
- package/skills/blueking-chat-x/references/components/execution-summary.md +0 -128
- package/skills/blueking-chat-x/references/components/file-artifact-panel.md +0 -289
- package/skills/blueking-chat-x/references/components/file-content.md +0 -319
- package/skills/blueking-chat-x/references/components/file-icon.md +0 -109
- package/skills/blueking-chat-x/references/components/file-upload-btn.md +0 -159
- package/skills/blueking-chat-x/references/components/flow-agent-content.md +0 -264
- package/skills/blueking-chat-x/references/components/flow-agent-node-detail.md +0 -236
- package/skills/blueking-chat-x/references/components/highlight-keyword.md +0 -146
- package/skills/blueking-chat-x/references/components/image-content.md +0 -182
- package/skills/blueking-chat-x/references/components/image-preview-group.md +0 -184
- package/skills/blueking-chat-x/references/components/image-preview.md +0 -226
- package/skills/blueking-chat-x/references/components/info-message.md +0 -144
- package/skills/blueking-chat-x/references/components/input-attachment.md +0 -49
- package/skills/blueking-chat-x/references/components/input-info-alert.md +0 -42
- package/skills/blueking-chat-x/references/components/interrupt-message.md +0 -212
- package/skills/blueking-chat-x/references/components/key-value-content.md +0 -128
- package/skills/blueking-chat-x/references/components/knowledge-rag-content.md +0 -122
- package/skills/blueking-chat-x/references/components/latex-content.md +0 -200
- package/skills/blueking-chat-x/references/components/loading-message.md +0 -192
- package/skills/blueking-chat-x/references/components/markdown-content.md +0 -232
- package/skills/blueking-chat-x/references/components/mermaid-content.md +0 -189
- package/skills/blueking-chat-x/references/components/message-container.md +0 -645
- package/skills/blueking-chat-x/references/components/message-loading.md +0 -118
- package/skills/blueking-chat-x/references/components/message-render.md +0 -327
- package/skills/blueking-chat-x/references/components/message-time.md +0 -177
- package/skills/blueking-chat-x/references/components/message-tools.md +0 -416
- package/skills/blueking-chat-x/references/components/model-selector.md +0 -155
- package/skills/blueking-chat-x/references/components/preview-toolbar.md +0 -42
- package/skills/blueking-chat-x/references/components/questions-container.md +0 -85
- package/skills/blueking-chat-x/references/components/reasoning-message.md +0 -232
- package/skills/blueking-chat-x/references/components/reference-content.md +0 -135
- package/skills/blueking-chat-x/references/components/reference-doc-content.md +0 -109
- package/skills/blueking-chat-x/references/components/scroll-btn.md +0 -159
- package/skills/blueking-chat-x/references/components/selection-footer.md +0 -78
- package/skills/blueking-chat-x/references/components/selection-question.md +0 -88
- package/skills/blueking-chat-x/references/components/shortcut-btn.md +0 -204
- package/skills/blueking-chat-x/references/components/shortcut-btns.md +0 -266
- package/skills/blueking-chat-x/references/components/shortcut-render.md +0 -424
- package/skills/blueking-chat-x/references/components/simple-table.md +0 -101
- package/skills/blueking-chat-x/references/components/text-content.md +0 -77
- package/skills/blueking-chat-x/references/components/tool-approval-card.md +0 -183
- package/skills/blueking-chat-x/references/components/tool-btn.md +0 -317
- package/skills/blueking-chat-x/references/components/tool-message.md +0 -235
- package/skills/blueking-chat-x/references/components/toolcall-render.md +0 -348
- package/skills/blueking-chat-x/references/components/user-feedback.md +0 -233
- package/skills/blueking-chat-x/references/components/user-message.md +0 -424
- package/skills/blueking-chat-x/references/components/user-question-answered-card.md +0 -104
- package/skills/blueking-chat-x/references/components/user-question-card.md +0 -231
- package/skills/blueking-chat-x/references/components/user-question-choice.md +0 -105
- package/skills/blueking-chat-x/references/components/user-question-option.md +0 -42
- package/skills/blueking-chat-x/references/components/vnode-renderer.md +0 -122
- package/skills/blueking-chat-x/references/composables/use-animation-text.md +0 -196
- package/skills/blueking-chat-x/references/composables/use-artifact-preview.md +0 -231
- package/skills/blueking-chat-x/references/composables/use-clipboard.md +0 -203
- package/skills/blueking-chat-x/references/composables/use-command-selection.md +0 -150
- package/skills/blueking-chat-x/references/composables/use-container-scroll.md +0 -57
- package/skills/blueking-chat-x/references/composables/use-custom-tab.md +0 -158
- package/skills/blueking-chat-x/references/composables/use-flow-node-actions.md +0 -157
- package/skills/blueking-chat-x/references/composables/use-full-screen.md +0 -112
- package/skills/blueking-chat-x/references/composables/use-global-config.md +0 -148
- package/skills/blueking-chat-x/references/composables/use-menu-keydown.md +0 -163
- package/skills/blueking-chat-x/references/composables/use-message-group.md +0 -247
- package/skills/blueking-chat-x/references/composables/use-observer-visible-list.md +0 -188
- package/skills/blueking-chat-x/references/composables/use-parent-scrolling.md +0 -46
- package/skills/blueking-chat-x/references/theme/theme.md +0 -431
- package/skills/blueking-chat-x/references/types/constants.md +0 -307
- package/skills/blueking-chat-x/references/types/interrupt.md +0 -379
- package/skills/blueking-chat-x/references/types/messages.md +0 -553
- package/skills/blueking-chat-x/references/types/schema.md +0 -91
- package/skills/blueking-chat-x/scripts/generate-references.mjs +0 -314
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, readonly as j, ref as te, renderList as M, renderSlot as N, resolveDynamicComponent as P, shallowReactive as ne, shallowRef as F, toDisplayString as I, toRef as re, toValue as L, unref as R, useAttrs as ie, useModel as
|
|
2
|
-
import { Button 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, readonly as j, ref as te, renderList as M, renderSlot as N, resolveDynamicComponent as P, shallowReactive as ne, shallowRef as F, toDisplayString as I, toRef as re, toValue as L, unref as R, useAttrs as ie, useModel as ae, useSlots as oe, useTemplateRef as z, vShow as B, watch as V, watchEffect as se, watchPostEffect as ce, withCtx as H, withDirectives as U, withKeys as le, withModifiers as ue } from "vue";
|
|
2
|
+
import { Button as W, Checkbox as de, Exception as fe, Form as pe, Input as me, Loading as he, Message as ge, Radio as _e, ResizeLayout as ve, Select as ye, Switcher as be, Tab as xe } from "bkui-vue";
|
|
3
3
|
import { Tippy as Se, directive as Ce } from "vue-tippy";
|
|
4
4
|
import "tippy.js/dist/tippy.css";
|
|
5
5
|
import we from "tippy.js";
|
|
@@ -771,7 +771,10 @@ var xt = (e) => `${e.name}_${e.size}_${e.lastModified}`, St = (e) => e.file ? xt
|
|
|
771
771
|
文件列表: "File List",
|
|
772
772
|
搜索文件关键字: "Search file keyword",
|
|
773
773
|
预览加载失败: "Failed to load preview",
|
|
774
|
-
暂无可预览的文件: "No file to preview"
|
|
774
|
+
暂无可预览的文件: "No file to preview",
|
|
775
|
+
"文件上传中,请稍候": "Uploading files, please wait",
|
|
776
|
+
"存在上传失败的文件,请删除后重试": "Remove failed uploads before sending",
|
|
777
|
+
上传失败: "Upload failed"
|
|
775
778
|
}, K = (e) => Mt ? Nt[e] : e, q = /* @__PURE__ */ function(e) {
|
|
776
779
|
return e.ABANDONED = "abandoned", e.APPROVED = "approved", e.CANCELLED = "cancelled", e.DRAFT = "draft", e.EXPIRED = "expired", e.PENDING = "pending", e.REJECTED = "rejected", e.REVOKED = "revoked", e;
|
|
777
780
|
}({}), Pt = /* @__PURE__ */ function(e) {
|
|
@@ -1790,7 +1793,7 @@ var xi = ["src"], Si = /* @__PURE__ */ m({
|
|
|
1790
1793
|
emits: ["click"],
|
|
1791
1794
|
setup(t, { expose: n, emit: r }) {
|
|
1792
1795
|
let i = t, a = F(!1), l = r;
|
|
1793
|
-
|
|
1796
|
+
V(() => {
|
|
1794
1797
|
var e;
|
|
1795
1798
|
return (e = i.shortcut) == null ? void 0 : e.icon;
|
|
1796
1799
|
}, () => {
|
|
@@ -1798,7 +1801,7 @@ var xi = ["src"], Si = /* @__PURE__ */ m({
|
|
|
1798
1801
|
}, { immediate: !0 });
|
|
1799
1802
|
let u = (e) => {
|
|
1800
1803
|
l("click", e);
|
|
1801
|
-
}, f =
|
|
1804
|
+
}, f = z("el");
|
|
1802
1805
|
return n({ get $el() {
|
|
1803
1806
|
return f.value;
|
|
1804
1807
|
} }), (n, r) => (k(), c("button", {
|
|
@@ -1844,7 +1847,7 @@ var xi = ["src"], Si = /* @__PURE__ */ m({
|
|
|
1844
1847
|
}),
|
|
1845
1848
|
emits: /* @__PURE__ */ y(["selectShortcut", "selectionChange"], ["update:visible"]),
|
|
1846
1849
|
setup(n, { emit: i }) {
|
|
1847
|
-
let a = n, u =
|
|
1850
|
+
let a = n, u = ae(n, "visible"), d = i, p = z("popoverRef"), m = z("moreMenuRef"), h = F({
|
|
1848
1851
|
x: 0,
|
|
1849
1852
|
y: 0
|
|
1850
1853
|
}), g = F(""), _ = F(null), v = F(!1), y = (e) => {
|
|
@@ -1958,7 +1961,7 @@ var xi = ["src"], Si = /* @__PURE__ */ m({
|
|
|
1958
1961
|
}), O(() => {
|
|
1959
1962
|
document.removeEventListener("selectionchange", ee), document.removeEventListener("mouseup", A), document.removeEventListener("mousedown", j), document.removeEventListener("scroll", te, !0), window.removeEventListener("resize", S), window.removeEventListener("blur", S);
|
|
1960
1963
|
}), (i, a) => (k(), o(t, { to: "body" }, [f(r, { name: "ai-fade" }, {
|
|
1961
|
-
default:
|
|
1964
|
+
default: H(() => [u.value ? (k(), c("div", {
|
|
1962
1965
|
key: 0,
|
|
1963
1966
|
ref_key: "popoverRef",
|
|
1964
1967
|
ref: p,
|
|
@@ -1969,7 +1972,7 @@ var xi = ["src"], Si = /* @__PURE__ */ m({
|
|
|
1969
1972
|
zIndex: R(Gt),
|
|
1970
1973
|
"--selection-z-index": R(Gt)
|
|
1971
1974
|
}),
|
|
1972
|
-
onMousedown: a[2] || (a[2] =
|
|
1975
|
+
onMousedown: a[2] || (a[2] = ue(() => {}, ["stop"]))
|
|
1973
1976
|
}, [l("div", Ci, [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(Si, {
|
|
1974
1977
|
key: 0,
|
|
1975
1978
|
shortcut: t,
|
|
@@ -1992,17 +1995,17 @@ var xi = ["src"], Si = /* @__PURE__ */ m({
|
|
|
1992
1995
|
v.value = !0;
|
|
1993
1996
|
})
|
|
1994
1997
|
}, {
|
|
1995
|
-
content:
|
|
1998
|
+
content: H(() => [v.value ? (k(), c("div", wi, [(k(!0), c(e, null, M(n.shortcuts.slice(n.maxShortcutCount), (e) => (k(), o(Si, {
|
|
1996
1999
|
key: e.id,
|
|
1997
2000
|
mode: "menu",
|
|
1998
2001
|
shortcut: e,
|
|
1999
2002
|
onClick: (t) => C(e)
|
|
2000
2003
|
}, null, 8, ["shortcut", "onClick"]))), 128))])) : s("", !0)]),
|
|
2001
|
-
default:
|
|
2004
|
+
default: H(() => [f(Si, {
|
|
2002
2005
|
style: { width: "28px" },
|
|
2003
2006
|
onClick: P
|
|
2004
2007
|
}, {
|
|
2005
|
-
default:
|
|
2008
|
+
default: H(() => [f(R(Ur), { class: "shortcut-btn-more-icon" })]),
|
|
2006
2009
|
_: 1
|
|
2007
2010
|
})]),
|
|
2008
2011
|
_: 1
|
|
@@ -2030,7 +2033,7 @@ var xi = ["src"], Si = /* @__PURE__ */ m({
|
|
|
2030
2033
|
return i.apply(this, arguments);
|
|
2031
2034
|
};
|
|
2032
2035
|
}(), a = null;
|
|
2033
|
-
return
|
|
2036
|
+
return V([t, n.moreItemRef], () => {
|
|
2034
2037
|
x(() => {
|
|
2035
2038
|
i();
|
|
2036
2039
|
});
|
|
@@ -2051,14 +2054,14 @@ var xi = ["src"], Si = /* @__PURE__ */ m({
|
|
|
2051
2054
|
props: { shortcuts: {} },
|
|
2052
2055
|
emits: ["selectShortcut"],
|
|
2053
2056
|
setup(t, { emit: n }) {
|
|
2054
|
-
let r = () => document.body, i = t, u = n, d =
|
|
2057
|
+
let r = () => document.body, i = t, u = n, d = z("containerRef"), p = F([]), m = z("moreMenuRef"), h = z("moreBtnRef"), { visibleItems: g } = Ei(d, p, {
|
|
2055
2058
|
items: a(() => i.shortcuts),
|
|
2056
2059
|
gap: Oi,
|
|
2057
2060
|
moreItemRef: h
|
|
2058
2061
|
}), _ = a(() => i.shortcuts.filter((e) => !g.value.includes(e))), v = F(!1), y = (e, t) => {
|
|
2059
2062
|
e && "$el" in e ? p.value[t] = e.$el : e && e instanceof HTMLElement && (p.value[t] = e);
|
|
2060
2063
|
};
|
|
2061
|
-
|
|
2064
|
+
V(() => i.shortcuts, () => {
|
|
2062
2065
|
p.value = Array(i.shortcuts.length).fill(null);
|
|
2063
2066
|
}, { deep: !0 });
|
|
2064
2067
|
let b = () => {
|
|
@@ -2066,7 +2069,7 @@ var xi = ["src"], Si = /* @__PURE__ */ m({
|
|
|
2066
2069
|
}, x = (e) => {
|
|
2067
2070
|
v.value = !1, u("selectShortcut", e);
|
|
2068
2071
|
};
|
|
2069
|
-
return
|
|
2072
|
+
return V(v, (e) => {
|
|
2070
2073
|
if (e) {
|
|
2071
2074
|
var t;
|
|
2072
2075
|
(t = m.value) == null || t.show();
|
|
@@ -2104,19 +2107,19 @@ var xi = ["src"], Si = /* @__PURE__ */ m({
|
|
|
2104
2107
|
v.value = !1;
|
|
2105
2108
|
})
|
|
2106
2109
|
}, {
|
|
2107
|
-
content:
|
|
2110
|
+
content: H(() => [l("div", Di, [(k(!0), c(e, null, M(_.value, (e) => (k(), o(Si, {
|
|
2108
2111
|
key: e.id,
|
|
2109
2112
|
mode: "menu",
|
|
2110
2113
|
shortcut: e,
|
|
2111
2114
|
onClick: (t) => x(e)
|
|
2112
2115
|
}, null, 8, ["shortcut", "onClick"]))), 128))])]),
|
|
2113
|
-
default:
|
|
2116
|
+
default: H(() => [f(Si, {
|
|
2114
2117
|
ref_key: "moreBtnRef",
|
|
2115
2118
|
ref: h,
|
|
2116
2119
|
class: "ai-shortcut-btns-item ai-shortcut-btns-more",
|
|
2117
2120
|
onClick: b
|
|
2118
2121
|
}, {
|
|
2119
|
-
default:
|
|
2122
|
+
default: H(() => [f(R(Qr), { class: "ai-shortcut-btns-more-icon" }), l("span", null, I(R(K)("更多")), 1)]),
|
|
2120
2123
|
_: 1
|
|
2121
2124
|
}, 512)]),
|
|
2122
2125
|
_: 1
|
|
@@ -2165,8 +2168,8 @@ var Mi = ["options"], Ni = ["options"], Pi = { class: "ai-shortcut-render" }, Fi
|
|
|
2165
2168
|
},
|
|
2166
2169
|
emits: ["close", "submit"],
|
|
2167
2170
|
setup(t, { emit: n }) {
|
|
2168
|
-
let r = t, i = n, a =
|
|
2169
|
-
|
|
2171
|
+
let r = t, i = n, a = z("formRef"), s = ee({}), u = F({});
|
|
2172
|
+
se(() => {
|
|
2170
2173
|
var e;
|
|
2171
2174
|
if (r.formModel) for (let e in r.formModel) s[e] = r.formModel[e];
|
|
2172
2175
|
for (let o of (e = r == null ? void 0 : r.components) == null ? [] : e) if (o.key) {
|
|
@@ -2240,28 +2243,28 @@ var Mi = ["options"], Ni = ["options"], Pi = { class: "ai-shortcut-render" }, Fi
|
|
|
2240
2243
|
model: s,
|
|
2241
2244
|
rules: u.value
|
|
2242
2245
|
}, {
|
|
2243
|
-
default:
|
|
2246
|
+
default: H(() => [(k(!0), c(e, null, M(t.components, (e, t) => (k(), o(R(pe).FormItem, b({
|
|
2244
2247
|
key: e.id,
|
|
2245
2248
|
ref_for: !0
|
|
2246
2249
|
}, m(e), {
|
|
2247
2250
|
class: "shortcut-render-form-item",
|
|
2248
2251
|
style: { gridColumn: p(e, t) }
|
|
2249
2252
|
}), {
|
|
2250
|
-
label:
|
|
2253
|
+
label: H(() => {
|
|
2251
2254
|
var t, n;
|
|
2252
2255
|
return [l("span", Ri, I((t = e.name) == null ? (n = e.formItemProps) == null ? void 0 : n.label : t), 1)];
|
|
2253
2256
|
}),
|
|
2254
|
-
default:
|
|
2257
|
+
default: H(() => [(k(), o(P(h(e))))]),
|
|
2255
2258
|
_: 2
|
|
2256
2259
|
}, 1040, ["style"]))), 128)), f(R(pe).FormItem, { class: "shortcut-footer-item" }, {
|
|
2257
|
-
default:
|
|
2260
|
+
default: H(() => [l("div", zi, [f(R(W), {
|
|
2258
2261
|
theme: "primary",
|
|
2259
2262
|
onClick: _
|
|
2260
2263
|
}, {
|
|
2261
|
-
default:
|
|
2264
|
+
default: H(() => [d(I(R(K)("提交")), 1)]),
|
|
2262
2265
|
_: 1
|
|
2263
|
-
}), f(R(
|
|
2264
|
-
default:
|
|
2266
|
+
}), f(R(W), { onClick: v }, {
|
|
2267
|
+
default: H(() => [d(I(R(K)("取消")), 1)]),
|
|
2265
2268
|
_: 1
|
|
2266
2269
|
})])]),
|
|
2267
2270
|
_: 1
|
|
@@ -2271,7 +2274,7 @@ var Mi = ["options"], Ni = ["options"], Pi = { class: "ai-shortcut-render" }, Fi
|
|
|
2271
2274
|
}
|
|
2272
2275
|
}), Vi = (e, t) => {
|
|
2273
2276
|
let { easing: n = "ease-in-out", fadeDuration: r = 200 } = t || {}, i = te([]), o = te("");
|
|
2274
|
-
return
|
|
2277
|
+
return V(() => e, (e) => {
|
|
2275
2278
|
let t = L(e);
|
|
2276
2279
|
if (t === o.value) return;
|
|
2277
2280
|
if (!(o.value && t.indexOf(o.value) === 0)) {
|
|
@@ -2434,7 +2437,7 @@ var Mi = ["options"], Ni = ["options"], Pi = { class: "ai-shortcut-render" }, Fi
|
|
|
2434
2437
|
e.deltaY < 0 && (o.value = !1);
|
|
2435
2438
|
};
|
|
2436
2439
|
return E(() => {
|
|
2437
|
-
|
|
2440
|
+
se(() => {
|
|
2438
2441
|
let a = L(e), c = L(t);
|
|
2439
2442
|
!a || !c || (r == null || r.disconnect(), a.removeEventListener("scroll", f), a.removeEventListener("wheel", m), f(), r = new IntersectionObserver((e) => {
|
|
2440
2443
|
e.forEach((e) => {
|
|
@@ -2493,7 +2496,7 @@ function aa(e) {
|
|
|
2493
2496
|
}, _ = () => {
|
|
2494
2497
|
r.value = [n], i.value = n, s.value = !1, o.value = !0;
|
|
2495
2498
|
};
|
|
2496
|
-
return
|
|
2499
|
+
return V(u, (e) => {
|
|
2497
2500
|
if (e.length) {
|
|
2498
2501
|
if (!s.value) {
|
|
2499
2502
|
i.value.name !== e[0].name && h(e[0]);
|
|
@@ -2666,7 +2669,7 @@ var oa = () => _(na), sa = (() => {
|
|
|
2666
2669
|
}).length : e;
|
|
2667
2670
|
}, 0), ba = (e) => {
|
|
2668
2671
|
let t = te([]), n = F(!1);
|
|
2669
|
-
|
|
2672
|
+
se(() => {
|
|
2670
2673
|
var n;
|
|
2671
2674
|
let r = [], i = [];
|
|
2672
2675
|
for (let t of e.messages.value) {
|
|
@@ -2777,7 +2780,7 @@ var oa = () => _(na), sa = (() => {
|
|
|
2777
2780
|
var e;
|
|
2778
2781
|
return (e = t.value) == null ? void 0 : e.filter((e) => e.type === J.User).every((e) => e.checked);
|
|
2779
2782
|
});
|
|
2780
|
-
return
|
|
2783
|
+
return V(e.selectedUserMessages, (e) => {
|
|
2781
2784
|
if (t.value.length) for (let [r, i] of t.value.entries()) {
|
|
2782
2785
|
var n;
|
|
2783
2786
|
if (i.type === J.Assistant) continue;
|
|
@@ -2921,7 +2924,7 @@ var oa = () => _(na), sa = (() => {
|
|
|
2921
2924
|
} })), s = (e) => {
|
|
2922
2925
|
n.disabled || r("click", n, e);
|
|
2923
2926
|
};
|
|
2924
|
-
return (t, n) =>
|
|
2927
|
+
return (t, n) => U((k(), c("div", {
|
|
2925
2928
|
class: S(["ai-tool-btn", {
|
|
2926
2929
|
"is-active": e.active,
|
|
2927
2930
|
"is-disabled": e.disabled
|
|
@@ -5752,7 +5755,7 @@ var Gl = (e) => {
|
|
|
5752
5755
|
props: { token: {} },
|
|
5753
5756
|
emits: ["mounted"],
|
|
5754
5757
|
setup(t, { emit: n }) {
|
|
5755
|
-
let r = t, i = n, o =
|
|
5758
|
+
let r = t, i = n, o = z("codeRef"), u = F(""), { copy: p } = Yi(), m = F([]), g = F(""), _ = F(""), v = /* @__PURE__ */ new Map(), y = (e) => {
|
|
5756
5759
|
for (let n of e) if (n.type === "fence" || n.type === "code_block") {
|
|
5757
5760
|
var t;
|
|
5758
5761
|
return {
|
|
@@ -5813,7 +5816,7 @@ var Gl = (e) => {
|
|
|
5813
5816
|
let { language: e } = y(r.token), t = ["hljs"];
|
|
5814
5817
|
return e && t.push(`language-${e}`), t.join(" ");
|
|
5815
5818
|
});
|
|
5816
|
-
|
|
5819
|
+
V(() => r.token, (e) => {
|
|
5817
5820
|
let { content: t, language: n } = y(e);
|
|
5818
5821
|
u.value = n, E(t, n), x(() => {
|
|
5819
5822
|
i("mounted", { get el() {
|
|
@@ -5901,13 +5904,13 @@ var Gl = (e) => {
|
|
|
5901
5904
|
leading: !0,
|
|
5902
5905
|
trailing: !0
|
|
5903
5906
|
});
|
|
5904
|
-
return
|
|
5907
|
+
return V(() => n.src, (e) => {
|
|
5905
5908
|
if (t.has(e)) {
|
|
5906
5909
|
u = e, i.value = !1, o.value = !1, s.value = !0;
|
|
5907
5910
|
return;
|
|
5908
5911
|
}
|
|
5909
5912
|
s.value = !1, m(), h.value ? g(e) : (i.value = !0, o.value = !1);
|
|
5910
|
-
}, { immediate: !0 }),
|
|
5913
|
+
}, { immediate: !0 }), V(h, (e) => {
|
|
5911
5914
|
e && n.src && g(n.src);
|
|
5912
5915
|
}), (t, n) => (k(), c("span", gu, [d.value ? (k(), c("span", _u, [f(R(he), {
|
|
5913
5916
|
mode: "spin",
|
|
@@ -6131,7 +6134,7 @@ var Gl = (e) => {
|
|
|
6131
6134
|
}
|
|
6132
6135
|
return t;
|
|
6133
6136
|
}, 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 ? "ai-block-latex-content" : "ai-inline-latex-content");
|
|
6134
|
-
return
|
|
6137
|
+
return V(() => t.token, Ee(() => {
|
|
6135
6138
|
let e = h(t.token);
|
|
6136
6139
|
e && n.value !== e && (n.value = e);
|
|
6137
6140
|
}, 100, {
|
|
@@ -6150,7 +6153,7 @@ var Gl = (e) => {
|
|
|
6150
6153
|
props: { token: {} },
|
|
6151
6154
|
emits: ["mounted"],
|
|
6152
6155
|
setup(e, { emit: t }) {
|
|
6153
|
-
let n = F(""), r =
|
|
6156
|
+
let n = F(""), r = z("mermaidContentRef"), i = e, a = t, o = null, s = "", l = function() {
|
|
6154
6157
|
var e = Z(function* () {
|
|
6155
6158
|
if (o) return o;
|
|
6156
6159
|
if (!o) try {
|
|
@@ -6170,7 +6173,7 @@ var Gl = (e) => {
|
|
|
6170
6173
|
}
|
|
6171
6174
|
return "";
|
|
6172
6175
|
};
|
|
6173
|
-
return
|
|
6176
|
+
return V(() => i.token, Ee(function() {
|
|
6174
6177
|
var e = Z(function* (e) {
|
|
6175
6178
|
let t = u(e);
|
|
6176
6179
|
if (t === s) return;
|
|
@@ -6446,7 +6449,7 @@ var Gl = (e) => {
|
|
|
6446
6449
|
}
|
|
6447
6450
|
return t;
|
|
6448
6451
|
};
|
|
6449
|
-
|
|
6452
|
+
V(() => r.content, Ee((e) => {
|
|
6450
6453
|
if (!e) {
|
|
6451
6454
|
a.value = [];
|
|
6452
6455
|
return;
|
|
@@ -6489,7 +6492,7 @@ var Gl = (e) => {
|
|
|
6489
6492
|
token: t,
|
|
6490
6493
|
onMounted: R(m)
|
|
6491
6494
|
}, {
|
|
6492
|
-
header:
|
|
6495
|
+
header: H(({ language: e, token: t }) => [N(n.$slots, "codeHeader", b({ ref_for: !0 }, {
|
|
6493
6496
|
language: e,
|
|
6494
6497
|
token: t
|
|
6495
6498
|
}))]),
|
|
@@ -6521,14 +6524,14 @@ var Gl = (e) => {
|
|
|
6521
6524
|
class: "ai-reference-item-title",
|
|
6522
6525
|
onClick: (t) => e.url && r(e.url, t)
|
|
6523
6526
|
}, I(e.title), 9, Yu),
|
|
6524
|
-
e.url && e.originFileUrl ?
|
|
6527
|
+
e.url && e.originFileUrl ? U((k(), o(R(sn), {
|
|
6525
6528
|
key: 0,
|
|
6526
6529
|
onClick: (t) => e.url && r(e.url, t)
|
|
6527
6530
|
}, null, 8, ["onClick"])), [[R(Ce), {
|
|
6528
6531
|
content: R(K)("预览内容"),
|
|
6529
6532
|
theme: "ai-chat-box"
|
|
6530
6533
|
}]]) : s("", !0),
|
|
6531
|
-
e.url && e.originFileUrl ?
|
|
6534
|
+
e.url && e.originFileUrl ? U((k(), o(R(cn), {
|
|
6532
6535
|
key: 1,
|
|
6533
6536
|
onClick: (t) => e.originFileUrl && r(e.originFileUrl, t)
|
|
6534
6537
|
}, null, 8, ["onClick"])), [[R(Ce), {
|
|
@@ -6545,7 +6548,7 @@ var Gl = (e) => {
|
|
|
6545
6548
|
type: {}
|
|
6546
6549
|
},
|
|
6547
6550
|
setup(e) {
|
|
6548
|
-
let t =
|
|
6551
|
+
let t = oe(), n = e, r = a(() => {
|
|
6549
6552
|
if (typeof n.content == "string" || n.type === Ft.Text) return g(Ju, {
|
|
6550
6553
|
content: n.content,
|
|
6551
6554
|
status: n.status
|
|
@@ -6972,11 +6975,11 @@ var Gl = (e) => {
|
|
|
6972
6975
|
}
|
|
6973
6976
|
}, ie = (e) => {
|
|
6974
6977
|
w = !0, F(e.dataTransfer);
|
|
6975
|
-
},
|
|
6978
|
+
}, ae = () => {
|
|
6976
6979
|
w = !1;
|
|
6977
6980
|
};
|
|
6978
|
-
return T.addEventListener("selectionchange", ne), n.addEventListener("keydown", A), n.addEventListener("input", ee), n.addEventListener("beforeinput", j), n.addEventListener("compositionstart", te), n.addEventListener("compositionend", M), n.addEventListener("focus", N), n.addEventListener("blur", P), n.addEventListener("copy", I), n.addEventListener("cut", re), n.addEventListener("paste", L), n.addEventListener("drop", R), n.addEventListener("dragstart", ie), n.addEventListener("dragend",
|
|
6979
|
-
y || (y = !0, d = bf, n.contentEditable = a, n.role = m, n.ariaMultiLine = g, n.ariaReadOnly = _, n.style.whiteSpace = v, D._dispose(), T.removeEventListener("selectionchange", ne), n.removeEventListener("keydown", A), n.removeEventListener("input", ee), n.removeEventListener("beforeinput", j), n.removeEventListener("compositionstart", te), n.removeEventListener("compositionend", M), n.removeEventListener("focus", N), n.removeEventListener("blur", P), n.removeEventListener("copy", I), n.removeEventListener("cut", re), n.removeEventListener("paste", L), n.removeEventListener("drop", R), n.removeEventListener("dragstart", ie), n.removeEventListener("dragend",
|
|
6981
|
+
return T.addEventListener("selectionchange", ne), n.addEventListener("keydown", A), n.addEventListener("input", ee), n.addEventListener("beforeinput", j), n.addEventListener("compositionstart", te), n.addEventListener("compositionend", M), n.addEventListener("focus", N), n.addEventListener("blur", P), n.addEventListener("copy", I), n.addEventListener("cut", re), n.addEventListener("paste", L), n.addEventListener("drop", R), n.addEventListener("dragstart", ie), n.addEventListener("dragend", ae), () => {
|
|
6982
|
+
y || (y = !0, d = bf, n.contentEditable = a, n.role = m, n.ariaMultiLine = g, n.ariaReadOnly = _, n.style.whiteSpace = v, D._dispose(), T.removeEventListener("selectionchange", ne), n.removeEventListener("keydown", A), n.removeEventListener("input", ee), n.removeEventListener("beforeinput", j), n.removeEventListener("compositionstart", te), n.removeEventListener("compositionend", M), n.removeEventListener("focus", N), n.removeEventListener("blur", P), n.removeEventListener("copy", I), n.removeEventListener("cut", re), n.removeEventListener("paste", L), n.removeEventListener("drop", R), n.removeEventListener("dragstart", ie), n.removeEventListener("dragend", ae));
|
|
6980
6983
|
};
|
|
6981
6984
|
},
|
|
6982
6985
|
command: (e, ...t) => {
|
|
@@ -7077,7 +7080,7 @@ var Gl = (e) => {
|
|
|
7077
7080
|
},
|
|
7078
7081
|
emits: ["upload"],
|
|
7079
7082
|
setup(e, { emit: t }) {
|
|
7080
|
-
let n = t, r =
|
|
7083
|
+
let n = t, r = z("fileInputRef"), i = (Xt / (1024 * 1024)).toFixed(1), a = K("上传文件,最多支持 {count} 个,单个最大 {size}MB").replace("{count}", "9").replace("{size}", i), o = () => {
|
|
7081
7084
|
var e;
|
|
7082
7085
|
(e = r.value) == null || e.click();
|
|
7083
7086
|
}, s = (e) => {
|
|
@@ -7100,7 +7103,7 @@ var Gl = (e) => {
|
|
|
7100
7103
|
multiple: "",
|
|
7101
7104
|
type: "file",
|
|
7102
7105
|
onChange: s
|
|
7103
|
-
}, null, 40, Nf),
|
|
7106
|
+
}, null, 40, Nf), U((k(), c("span", {
|
|
7104
7107
|
class: "ai-shortcut-btn file-upload-btn-icon",
|
|
7105
7108
|
onClick: o
|
|
7106
7109
|
}, [N(t.$slots, "default", {}, () => [f(R(Ar))])])), [[R(Ce), G(G({}, e.tippyOptions), {}, {
|
|
@@ -7250,7 +7253,7 @@ function $f(e) {
|
|
|
7250
7253
|
}, s = () => {
|
|
7251
7254
|
typeof document > "u" || (document.removeEventListener("keydown", a), document.body.style.overflow = "");
|
|
7252
7255
|
};
|
|
7253
|
-
|
|
7256
|
+
V(t, (e) => {
|
|
7254
7257
|
e ? o() : s();
|
|
7255
7258
|
}, { immediate: !0 }), T(() => {
|
|
7256
7259
|
s();
|
|
@@ -7288,7 +7291,7 @@ var ep = ["src"], tp = {
|
|
|
7288
7291
|
}),
|
|
7289
7292
|
emits: ["update:visible", "update:current"],
|
|
7290
7293
|
setup(n) {
|
|
7291
|
-
let i = n, d =
|
|
7294
|
+
let i = n, d = ae(n, "visible"), p = ae(n, "current"), { imageStyle: m, resetTransform: h, zoomIn: g, zoomOut: _, rotateCW: v, handleWheel: y, handleDragStart: b } = Qf(), x = F("loading"), S = [], C = () => {
|
|
7292
7295
|
S.forEach((e) => URL.revokeObjectURL(e)), S.length = 0;
|
|
7293
7296
|
}, E = (e) => {
|
|
7294
7297
|
let t = URL.createObjectURL(e);
|
|
@@ -7337,10 +7340,10 @@ var ep = ["src"], tp = {
|
|
|
7337
7340
|
onPrev: () => A.value && P(),
|
|
7338
7341
|
onNext: () => A.value && ne()
|
|
7339
7342
|
}), (i, a) => (k(), o(t, { to: "body" }, [f(r, { name: "ai-image-preview-fade" }, {
|
|
7340
|
-
default:
|
|
7343
|
+
default: H(() => [d.value ? (k(), c("div", {
|
|
7341
7344
|
key: 0,
|
|
7342
7345
|
class: "ai-image-preview",
|
|
7343
|
-
onWheel: a[1] || (a[1] =
|
|
7346
|
+
onWheel: a[1] || (a[1] = ue((...e) => R(y) && R(y)(...e), ["prevent"]))
|
|
7344
7347
|
}, [
|
|
7345
7348
|
l("div", {
|
|
7346
7349
|
class: "ai-image-preview-close",
|
|
@@ -7355,7 +7358,7 @@ var ep = ["src"], tp = {
|
|
|
7355
7358
|
}, [f(R(Cr), { class: "ai-image-preview-arrow-icon" })])], 64)) : s("", !0),
|
|
7356
7359
|
l("div", {
|
|
7357
7360
|
class: "ai-image-preview-body",
|
|
7358
|
-
onClick:
|
|
7361
|
+
onClick: ue(te, ["self"]),
|
|
7359
7362
|
onMousedown: a[0] || (a[0] = (...e) => R(b) && R(b)(...e))
|
|
7360
7363
|
}, [
|
|
7361
7364
|
x.value === "error" ? s("", !0) : (k(), c("img", {
|
|
@@ -7389,7 +7392,7 @@ var ep = ["src"], tp = {
|
|
|
7389
7392
|
onZoomOut: R(_)
|
|
7390
7393
|
}, u({ _: 2 }, [i.$slots.extra ? {
|
|
7391
7394
|
name: "extra",
|
|
7392
|
-
fn:
|
|
7395
|
+
fn: H(() => [N(i.$slots, "extra")]),
|
|
7393
7396
|
key: "0"
|
|
7394
7397
|
} : void 0]), 1032, [
|
|
7395
7398
|
"active-index",
|
|
@@ -7419,10 +7422,18 @@ var ep = ["src"], tp = {
|
|
|
7419
7422
|
innerHTML: n.value
|
|
7420
7423
|
}, null, 8, op));
|
|
7421
7424
|
}
|
|
7422
|
-
})), cp = {
|
|
7425
|
+
})), cp = {
|
|
7426
|
+
class: "ai-upload-spinner",
|
|
7427
|
+
"aria-hidden": "true"
|
|
7428
|
+
}, lp = /* @__PURE__ */ m(G(G({}, { name: "UploadSpinner" }), {}, {
|
|
7429
|
+
__name: "upload-spinner",
|
|
7430
|
+
setup(e) {
|
|
7431
|
+
return (e, t) => (k(), c("span", cp));
|
|
7432
|
+
}
|
|
7433
|
+
})), up = { class: "ai-upload-file-item-icon" }, dp = { class: "ai-upload-file-item-meta" }, fp = { class: "ai-upload-file-item-name" }, pp = {
|
|
7423
7434
|
key: 0,
|
|
7424
|
-
class: "ai-upload-file-item-
|
|
7425
|
-
},
|
|
7435
|
+
class: "ai-upload-file-item-overlay"
|
|
7436
|
+
}, mp = /* @__PURE__ */ m(G(G({}, { name: "UploadFileItem" }), {}, {
|
|
7426
7437
|
__name: "upload-file-item",
|
|
7427
7438
|
props: {
|
|
7428
7439
|
file: {},
|
|
@@ -7430,27 +7441,39 @@ var ep = ["src"], tp = {
|
|
|
7430
7441
|
},
|
|
7431
7442
|
emits: ["delete"],
|
|
7432
7443
|
setup(e, { emit: t }) {
|
|
7433
|
-
let n = e, r = t, i = ja(), o = a(() => wt(n.file)), u = a(() => Et(n.file));
|
|
7434
|
-
return (t, n) => (k(), c("div", { class: S(["ai-upload-file-item", {
|
|
7435
|
-
|
|
7436
|
-
|
|
7444
|
+
let n = e, r = t, i = ja(), o = a(() => wt(n.file)), u = a(() => Et(n.file)), p = a(() => n.file.status === Af.Pending), m = a(() => n.file.status === Af.Error);
|
|
7445
|
+
return (t, n) => (k(), c("div", { class: S(["ai-upload-file-item", {
|
|
7446
|
+
"is-readonly": e.readonly,
|
|
7447
|
+
"is-pending": p.value,
|
|
7448
|
+
"is-error": m.value
|
|
7449
|
+
}]) }, [
|
|
7450
|
+
l("span", up, [f(sp, { "file-name": o.value }, null, 8, ["file-name"])]),
|
|
7451
|
+
l("div", dp, [U((k(), c("span", fp, [d(I(o.value), 1)])), [[R(Pa), G(G({}, R(i)), {}, {
|
|
7437
7452
|
text: o.value,
|
|
7438
7453
|
placement: "top"
|
|
7439
|
-
})]]), u.value ? (k(), c("span",
|
|
7440
|
-
e.readonly ? s("", !0) : (k(), c("span", {
|
|
7454
|
+
})]]), m.value || u.value ? (k(), c("span", {
|
|
7441
7455
|
key: 0,
|
|
7456
|
+
class: S(["ai-upload-file-item-size", { "is-error": m.value }])
|
|
7457
|
+
}, I(m.value ? R(K)("上传失败") : u.value), 3)) : s("", !0)]),
|
|
7458
|
+
p.value ? (k(), c("div", pp, [f(lp)])) : s("", !0),
|
|
7459
|
+
e.readonly ? s("", !0) : (k(), c("span", {
|
|
7460
|
+
key: 1,
|
|
7442
7461
|
class: "ai-upload-file-item-delete",
|
|
7443
|
-
onClick: n[0] || (n[0] =
|
|
7462
|
+
onClick: n[0] || (n[0] = ue((e) => r("delete"), ["stop"]))
|
|
7444
7463
|
}, [f(R(Yr))]))
|
|
7445
7464
|
], 2));
|
|
7446
7465
|
}
|
|
7447
|
-
})),
|
|
7466
|
+
})), hp = ["alt", "src"], gp = {
|
|
7467
|
+
key: 2,
|
|
7468
|
+
class: "ai-upload-image-item-overlay"
|
|
7469
|
+
}, _p = /* @__PURE__ */ m(G(G({}, { name: "UploadImageItem" }), {}, {
|
|
7448
7470
|
__name: "upload-image-item",
|
|
7449
7471
|
props: {
|
|
7450
7472
|
hasError: { type: Boolean },
|
|
7451
7473
|
name: {},
|
|
7452
7474
|
readonly: { type: Boolean },
|
|
7453
7475
|
src: {},
|
|
7476
|
+
status: {},
|
|
7454
7477
|
variant: { default: "input" }
|
|
7455
7478
|
},
|
|
7456
7479
|
emits: [
|
|
@@ -7459,30 +7482,36 @@ var ep = ["src"], tp = {
|
|
|
7459
7482
|
"preview"
|
|
7460
7483
|
],
|
|
7461
7484
|
setup(e, { emit: t }) {
|
|
7462
|
-
let n = t
|
|
7463
|
-
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
7468
|
-
|
|
7469
|
-
class:
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7485
|
+
let n = e, r = t, i = a(() => n.status === Af.Pending), o = a(() => !!n.hasError || n.status === Af.Error), l = () => {
|
|
7486
|
+
i.value || r("preview");
|
|
7487
|
+
};
|
|
7488
|
+
return (t, n) => (k(), c("div", { class: S(["ai-upload-image-item", { "is-pending": i.value }]) }, [
|
|
7489
|
+
o.value ? (k(), c("div", {
|
|
7490
|
+
key: 1,
|
|
7491
|
+
class: S(["ai-upload-image-item-thumb is-error", `is-${e.variant}`])
|
|
7492
|
+
}, [f(R(fn), { class: "ai-upload-image-item-error-icon" })], 2)) : (k(), c("img", {
|
|
7493
|
+
key: 0,
|
|
7494
|
+
alt: e.name,
|
|
7495
|
+
class: S(["ai-upload-image-item-thumb", `is-${e.variant}`]),
|
|
7496
|
+
src: e.src,
|
|
7497
|
+
onClick: l,
|
|
7498
|
+
onError: n[0] || (n[0] = (e) => r("error"))
|
|
7499
|
+
}, null, 42, hp)),
|
|
7500
|
+
i.value ? (k(), c("div", gp, [f(lp)])) : s("", !0),
|
|
7501
|
+
e.readonly ? s("", !0) : (k(), c("span", {
|
|
7502
|
+
key: 3,
|
|
7503
|
+
class: "ai-upload-image-item-delete",
|
|
7504
|
+
onClick: n[1] || (n[1] = ue((e) => r("delete"), ["stop"]))
|
|
7505
|
+
}, [f(R(Yr))]))
|
|
7506
|
+
], 2));
|
|
7478
7507
|
}
|
|
7479
|
-
})),
|
|
7508
|
+
})), vp = {
|
|
7480
7509
|
key: 0,
|
|
7481
7510
|
class: "ai-files-content-row is-images"
|
|
7482
|
-
},
|
|
7511
|
+
}, yp = {
|
|
7483
7512
|
key: 1,
|
|
7484
7513
|
class: "ai-files-content-row is-files"
|
|
7485
|
-
},
|
|
7514
|
+
}, bp = /* @__PURE__ */ m({
|
|
7486
7515
|
__name: "file-content",
|
|
7487
7516
|
props: {
|
|
7488
7517
|
files: {},
|
|
@@ -7513,8 +7542,8 @@ var ep = ["src"], tp = {
|
|
|
7513
7542
|
file: e,
|
|
7514
7543
|
key: St(e)
|
|
7515
7544
|
})));
|
|
7516
|
-
|
|
7517
|
-
let _ = F(!1), v = F(0), y = a(() => h.value.filter((e) => !e.hasError && e.src)), b = a(() => y.value.map((e) => ({
|
|
7545
|
+
V(h, (e) => p(new Set(e.map((e) => e.key))), { flush: "post" }), T(() => p());
|
|
7546
|
+
let _ = F(!1), v = F(0), y = a(() => h.value.filter((e) => !e.hasError && e.src && e.file.status !== Af.Pending && e.file.status !== Af.Error)), b = a(() => y.value.map((e) => ({
|
|
7518
7547
|
name: e.name,
|
|
7519
7548
|
url: e.src
|
|
7520
7549
|
}))), x = (e) => {
|
|
@@ -7526,12 +7555,13 @@ var ep = ["src"], tp = {
|
|
|
7526
7555
|
t < 0 || (v.value = t, _.value = !0);
|
|
7527
7556
|
};
|
|
7528
7557
|
return (n, r) => (k(), c("div", { class: S(["ai-files-content", `is-${t.variant}`]) }, [
|
|
7529
|
-
h.value.length ? (k(), c("div",
|
|
7558
|
+
h.value.length ? (k(), c("div", vp, [(k(!0), c(e, null, M(h.value, (e) => (k(), o(_p, {
|
|
7530
7559
|
key: e.key,
|
|
7531
7560
|
"has-error": e.hasError,
|
|
7532
7561
|
name: e.name,
|
|
7533
7562
|
readonly: t.readonly,
|
|
7534
7563
|
src: e.src,
|
|
7564
|
+
status: e.file.status,
|
|
7535
7565
|
variant: t.variant,
|
|
7536
7566
|
onDelete: (t) => C(e.file),
|
|
7537
7567
|
onError: (t) => x(e.key),
|
|
@@ -7541,12 +7571,13 @@ var ep = ["src"], tp = {
|
|
|
7541
7571
|
"name",
|
|
7542
7572
|
"readonly",
|
|
7543
7573
|
"src",
|
|
7574
|
+
"status",
|
|
7544
7575
|
"variant",
|
|
7545
7576
|
"onDelete",
|
|
7546
7577
|
"onError",
|
|
7547
7578
|
"onPreview"
|
|
7548
7579
|
]))), 128))])) : s("", !0),
|
|
7549
|
-
g.value.length ? (k(), c("div",
|
|
7580
|
+
g.value.length ? (k(), c("div", yp, [(k(!0), c(e, null, M(g.value, (e) => (k(), o(mp, {
|
|
7550
7581
|
key: e.key,
|
|
7551
7582
|
file: e.file,
|
|
7552
7583
|
readonly: t.readonly,
|
|
@@ -7572,20 +7603,20 @@ var ep = ["src"], tp = {
|
|
|
7572
7603
|
});
|
|
7573
7604
|
//#endregion
|
|
7574
7605
|
//#region src/components/chat-input/build-default-placeholder.ts
|
|
7575
|
-
function
|
|
7606
|
+
function xp(e) {
|
|
7576
7607
|
let { isEn: t, hasSkills: n, hasPrompts: r, hasResources: i } = e, a = [];
|
|
7577
7608
|
return n && a.push(t ? "Input \"/\" to trigger skill" : "输入 \"/\" 唤出 Skill"), r && a.push(t ? "Input \"\\\" to trigger prompt" : "输入 \"\\\" 唤出 Prompt"), i && a.push(t ? "Input \"@\" to trigger tool and MCP" : "输入 \"@\" 唤出 工具和 MCP"), a.push(t ? "Use Shift + Enter to enter a new line" : "通过 Shift + Enter 进行换行输入"), a.join("\n");
|
|
7578
7609
|
}
|
|
7579
7610
|
//#endregion
|
|
7580
7611
|
//#region src/components/chat-input/ai-slash-input/ai-prompt-list/ai-prompt-list.vue?vue&type=script&setup=true&lang.ts
|
|
7581
|
-
var
|
|
7612
|
+
var Sp = ["onClick"], Cp = /* @__PURE__ */ m({
|
|
7582
7613
|
__name: "ai-prompt-list",
|
|
7583
7614
|
props: {
|
|
7584
7615
|
onSelect: { type: Function },
|
|
7585
7616
|
prompts: {}
|
|
7586
7617
|
},
|
|
7587
7618
|
setup(t) {
|
|
7588
|
-
let n = t, r =
|
|
7619
|
+
let n = t, r = z("promptListRef"), { activeIndex: i } = fa({
|
|
7589
7620
|
items: a(() => n.prompts),
|
|
7590
7621
|
onSelect: n.onSelect,
|
|
7591
7622
|
menuRef: r
|
|
@@ -7598,24 +7629,24 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
7598
7629
|
key: e,
|
|
7599
7630
|
class: S(["ai-prompt-list-item", { "is-active": R(i) === n }]),
|
|
7600
7631
|
onClick: (n) => t.onSelect(e)
|
|
7601
|
-
}, I(e), 11,
|
|
7632
|
+
}, I(e), 11, Sp))), 128))], 512));
|
|
7602
7633
|
}
|
|
7603
|
-
}),
|
|
7634
|
+
}), wp = ["onClick"], Tp = ["src", "onError"], Ep = {
|
|
7604
7635
|
key: 1,
|
|
7605
7636
|
class: "ai-skill-list-item-icon ai-skill-list-item-icon--fallback"
|
|
7606
|
-
},
|
|
7637
|
+
}, Dp = { class: "ai-skill-list-item-info" }, Op = { class: "ai-skill-list-item-name" }, kp = /* @__PURE__ */ m({
|
|
7607
7638
|
__name: "ai-skill-list",
|
|
7608
7639
|
props: {
|
|
7609
7640
|
onSelect: { type: Function },
|
|
7610
7641
|
skills: {}
|
|
7611
7642
|
},
|
|
7612
7643
|
setup(t) {
|
|
7613
|
-
let n = t, r = ee(/* @__PURE__ */ new Set()), i =
|
|
7644
|
+
let n = t, r = ee(/* @__PURE__ */ new Set()), i = z("skillListRef"), { activeIndex: o } = fa({
|
|
7614
7645
|
items: a(() => n.skills),
|
|
7615
7646
|
onSelect: n.onSelect,
|
|
7616
7647
|
menuRef: i
|
|
7617
7648
|
});
|
|
7618
|
-
return
|
|
7649
|
+
return se(() => {
|
|
7619
7650
|
n.skills, o.value = 0;
|
|
7620
7651
|
}), (n, a) => (k(), c("div", {
|
|
7621
7652
|
ref_key: "skillListRef",
|
|
@@ -7633,17 +7664,17 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
7633
7664
|
alt: "",
|
|
7634
7665
|
class: "ai-skill-list-item-icon",
|
|
7635
7666
|
onError: (t) => r.add(e.skill_code)
|
|
7636
|
-
}, null, 40,
|
|
7667
|
+
}, null, 40, Tp)) : (k(), c("div", Ep, I((i = e.skill_name) == null || (i = i[0]) == null ? void 0 : i.toUpperCase()), 1)), l("div", Dp, [l("div", Op, I(e.skill_name), 1)])], 10, wp);
|
|
7637
7668
|
}), 128))], 512));
|
|
7638
7669
|
}
|
|
7639
|
-
}),
|
|
7670
|
+
}), Ap = { class: "ai-slash-item ai-slash-group-title" }, jp = ["onClick"], Mp = ["onClick"], Np = ["title"], Pp = /* @__PURE__ */ m({
|
|
7640
7671
|
__name: "ai-slash-menu",
|
|
7641
7672
|
props: {
|
|
7642
7673
|
onSelect: { type: Function },
|
|
7643
7674
|
resourceList: {}
|
|
7644
7675
|
},
|
|
7645
7676
|
setup(t) {
|
|
7646
|
-
let n = t, r =
|
|
7677
|
+
let n = t, r = z("menuRef"), i = te([
|
|
7647
7678
|
"tool",
|
|
7648
7679
|
"shortcut",
|
|
7649
7680
|
"doc",
|
|
@@ -7654,7 +7685,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
7654
7685
|
onSelect: n.onSelect,
|
|
7655
7686
|
menuRef: r
|
|
7656
7687
|
});
|
|
7657
|
-
|
|
7688
|
+
se(() => {
|
|
7658
7689
|
let e = [], t = [];
|
|
7659
7690
|
for (let [a, o] of Object.entries(Ef)) {
|
|
7660
7691
|
var r, i;
|
|
@@ -7682,13 +7713,13 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
7682
7713
|
}, [(k(!0), c(e, null, M(o.value, (n, r) => (k(), c(e, null, [n.items.length > 0 ? (k(), c("div", {
|
|
7683
7714
|
key: r,
|
|
7684
7715
|
class: "ai-slash-group"
|
|
7685
|
-
}, [l("div",
|
|
7716
|
+
}, [l("div", Ap, [
|
|
7686
7717
|
(k(), c("svg", {
|
|
7687
7718
|
class: "title-icon",
|
|
7688
7719
|
style: w({ transform: i.value.includes(n.type) ? "rotate(90deg)" : "rotate(0deg)" }),
|
|
7689
7720
|
viewBox: "0 0 1024 1024",
|
|
7690
7721
|
onClick: (e) => f(n)
|
|
7691
|
-
}, [...p[0] || (p[0] = [l("path", { d: "M800 512L288 928V96z" }, null, -1)])], 12,
|
|
7722
|
+
}, [...p[0] || (p[0] = [l("path", { d: "M800 512L288 928V96z" }, null, -1)])], 12, jp)),
|
|
7692
7723
|
l("span", { class: S(`mark-${n.type}`) }, null, 2),
|
|
7693
7724
|
d(" " + I(n.name) + " (" + I(n.items.length) + ") ", 1)
|
|
7694
7725
|
]), i.value.includes(n.type) ? (k(!0), c(e, { key: 0 }, M(n.items, (e) => {
|
|
@@ -7697,30 +7728,30 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
7697
7728
|
key: e.id,
|
|
7698
7729
|
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 }]),
|
|
7699
7730
|
onClick: (n) => t.onSelect(e)
|
|
7700
|
-
}, [
|
|
7731
|
+
}, [U((k(), c("span", {
|
|
7701
7732
|
class: "ellipsis-text",
|
|
7702
7733
|
title: e.name
|
|
7703
|
-
}, [d(I(e.name), 1)], 8,
|
|
7734
|
+
}, [d(I(e.name), 1)], 8, Np)), [[R(Pa), {
|
|
7704
7735
|
text: e.name,
|
|
7705
7736
|
zIndex: 9999999,
|
|
7706
7737
|
placement: "right-start",
|
|
7707
7738
|
theme: "ai-slash-editor-overflow-tips-theme"
|
|
7708
|
-
}]])], 10,
|
|
7739
|
+
}]])], 10, Mp);
|
|
7709
7740
|
}), 128)) : s("", !0)])) : s("", !0)], 64))), 256))], 512)) : s("", !0);
|
|
7710
7741
|
};
|
|
7711
7742
|
}
|
|
7712
|
-
}),
|
|
7743
|
+
}), Fp = (e, t, n, r) => new sd().delete(n, r), Ip = (e, t, n, r) => new sd().insert(n, [[{ data: {
|
|
7713
7744
|
label: r.name,
|
|
7714
7745
|
value: r.name,
|
|
7715
7746
|
type: r.type
|
|
7716
|
-
} }]]),
|
|
7747
|
+
} }]]), Lp = (e, t, n, r) => new sd().insert(n, [[{ text: r }]]), Rp = (e, t, n, r) => new sd().insert(n, [[{ data: {
|
|
7717
7748
|
label: r.skill_name,
|
|
7718
7749
|
value: r.skill_code,
|
|
7719
7750
|
type: "skill"
|
|
7720
|
-
} }]]),
|
|
7751
|
+
} }]]), zp = (e) => {
|
|
7721
7752
|
let t = e.data;
|
|
7722
7753
|
return t.type === "skill" ? `/${t.value}` : `@${t.label}`;
|
|
7723
|
-
},
|
|
7754
|
+
}, Bp = (e) => td(e, zp), Vp = Tf({
|
|
7724
7755
|
multiline: !0,
|
|
7725
7756
|
void: { tag: wf({
|
|
7726
7757
|
is: (e) => e.contentEditable === "false" && e.dataset.tagType !== void 0,
|
|
@@ -7731,7 +7762,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
7731
7762
|
}),
|
|
7732
7763
|
plain: (e) => e.type === "skill" ? `/${e.value}` : e.label
|
|
7733
7764
|
}) }
|
|
7734
|
-
}),
|
|
7765
|
+
}), Hp = { class: "ai-slash-input-wrapper" }, Up = ["aria-placeholder"], Wp = { key: 0 }, Gp = ["data-tag-type", "data-tag-value"], Kp = { key: 1 }, qp = /* @__PURE__ */ m({
|
|
7735
7766
|
__name: "ai-slash-input",
|
|
7736
7767
|
props: {
|
|
7737
7768
|
modelValue: {},
|
|
@@ -7746,7 +7777,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
7746
7777
|
"upload"
|
|
7747
7778
|
],
|
|
7748
7779
|
setup(t, { expose: n, emit: r }) {
|
|
7749
|
-
let i =
|
|
7780
|
+
let i = z("editorRef"), a = z("tippyRef"), u = r, m = t, h = p((e, t) => ({
|
|
7750
7781
|
get() {
|
|
7751
7782
|
return e(), typeof m.modelValue == "string" ? nd(m.modelValue) : m.modelValue;
|
|
7752
7783
|
},
|
|
@@ -7760,7 +7791,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
7760
7791
|
})), g = F("slash"), _ = F(""), v = F([]), y = F([]), b = F([]), x, C, w = null, T = null, D = () => {
|
|
7761
7792
|
w !== null && (clearTimeout(w), w = null), T !== null && (clearTimeout(T), T = null);
|
|
7762
7793
|
}, A = () => document.body, { commandSelection: ee, GetCursorPosition: j, GetDocSnapshot: te, docSnapshot: N } = Xi();
|
|
7763
|
-
|
|
7794
|
+
V(() => m.modelValue, () => {
|
|
7764
7795
|
x.command(te), td(N.value || []) !== td(h.value || []) && x.command(Sd, td(h.value || []));
|
|
7765
7796
|
}, { deep: !1 });
|
|
7766
7797
|
let P = () => {
|
|
@@ -7830,26 +7861,26 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
7830
7861
|
e += ((i = n.text) == null ? void 0 : i.length) || 0;
|
|
7831
7862
|
}
|
|
7832
7863
|
return n.type === "tag" && (e += 1), e;
|
|
7833
|
-
}, 0),
|
|
7864
|
+
}, 0), ae = (e) => {
|
|
7834
7865
|
var t;
|
|
7835
7866
|
x.command(j);
|
|
7836
7867
|
let { column: n, line: r } = ee.value;
|
|
7837
|
-
x.command(
|
|
7838
|
-
},
|
|
7868
|
+
x.command(Fp, [r, n - _.value.length - 1], [r, n]), x.command(Ip, [r, n], e), x.command(Lp, [r, n + _.value.length + 1 + 1], " "), (t = a.value) == null || t.hide(), oe();
|
|
7869
|
+
}, oe = () => {
|
|
7839
7870
|
T !== null && clearTimeout(T), T = setTimeout(() => {
|
|
7840
7871
|
if (T = null, typeof window > "u") return;
|
|
7841
7872
|
let e = window.getSelection(), t = document.createRange();
|
|
7842
7873
|
i.value && e && (t.selectNodeContents(i.value), t.collapse(!1), e.removeAllRanges(), e.addRange(t));
|
|
7843
7874
|
}, 100);
|
|
7844
|
-
},
|
|
7845
|
-
x.command(Sd, e),
|
|
7846
|
-
},
|
|
7875
|
+
}, B = (e) => {
|
|
7876
|
+
x.command(Sd, e), oe();
|
|
7877
|
+
}, ce = (e) => {
|
|
7847
7878
|
var t;
|
|
7848
7879
|
x.command(j);
|
|
7849
7880
|
let { column: n, line: r } = ee.value;
|
|
7850
|
-
x.command(
|
|
7881
|
+
x.command(Fp, [r, n - _.value.length - 1], [r, n]), x.command(Rp, [r, n], e), x.command(Lp, [r, n + _.value.length + 1 + 1], " "), (t = a.value) == null || t.hide(), oe();
|
|
7851
7882
|
};
|
|
7852
|
-
|
|
7883
|
+
se(() => {
|
|
7853
7884
|
var e, t;
|
|
7854
7885
|
let n = (e = m.resources) == null ? void 0 : e.filter((e) => {
|
|
7855
7886
|
var t;
|
|
@@ -7863,12 +7894,12 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
7863
7894
|
(i = a.value) == null || i.hide();
|
|
7864
7895
|
}
|
|
7865
7896
|
});
|
|
7866
|
-
let
|
|
7897
|
+
let U = (e, t, n, r) => {
|
|
7867
7898
|
if (t.type === "tag") {
|
|
7868
7899
|
let t = ie(e, n);
|
|
7869
|
-
x.command(
|
|
7900
|
+
x.command(Fp, [r, t], [r, t + 1]);
|
|
7870
7901
|
}
|
|
7871
|
-
},
|
|
7902
|
+
}, le = (e) => {
|
|
7872
7903
|
var t;
|
|
7873
7904
|
let n = (t = e.clipboardData) == null ? void 0 : t.items;
|
|
7874
7905
|
if (!n) return;
|
|
@@ -7878,10 +7909,10 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
7878
7909
|
t && r.push(t);
|
|
7879
7910
|
}
|
|
7880
7911
|
r.length > 0 && (e.preventDefault(), u("upload", r));
|
|
7881
|
-
},
|
|
7912
|
+
}, ue = () => {
|
|
7882
7913
|
C == null || C(), x = xf({
|
|
7883
7914
|
doc: h.value,
|
|
7884
|
-
schema:
|
|
7915
|
+
schema: Vp,
|
|
7885
7916
|
onChange: function() {
|
|
7886
7917
|
var e = Z(function* (e) {
|
|
7887
7918
|
h.value = e, P();
|
|
@@ -7892,27 +7923,27 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
7892
7923
|
}(),
|
|
7893
7924
|
onKeyDown: (e) => ne(e)
|
|
7894
7925
|
}), C = x.input(i.value);
|
|
7895
|
-
},
|
|
7926
|
+
}, W = () => 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;
|
|
7896
7927
|
return E(() => {
|
|
7897
7928
|
var e;
|
|
7898
|
-
|
|
7929
|
+
ue(), (e = i.value) == null || e.addEventListener("paste", le);
|
|
7899
7930
|
}), O(() => {
|
|
7900
7931
|
var e;
|
|
7901
|
-
D(), x.command(Sd, ""), C == null || C(), (e = i.value) == null || e.removeEventListener("paste",
|
|
7932
|
+
D(), x.command(Sd, ""), C == null || C(), (e = i.value) == null || e.removeEventListener("paste", le);
|
|
7902
7933
|
}), n({
|
|
7903
7934
|
cleanup: () => {
|
|
7904
7935
|
x.command(Sd, "");
|
|
7905
7936
|
},
|
|
7906
|
-
focus:
|
|
7937
|
+
focus: oe
|
|
7907
7938
|
}), (n, r) => {
|
|
7908
7939
|
var u;
|
|
7909
|
-
return k(), c("div",
|
|
7940
|
+
return k(), c("div", Hp, [l("div", {
|
|
7910
7941
|
ref_key: "editorRef",
|
|
7911
7942
|
ref: i,
|
|
7912
7943
|
"aria-placeholder": t.placeholder,
|
|
7913
7944
|
class: "ai-slash-input",
|
|
7914
7945
|
spellcheck: "false"
|
|
7915
|
-
}, [(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",
|
|
7946
|
+
}, [(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", Wp, I(r.text), 1)) : r.type === "tag" ? (k(), c("span", {
|
|
7916
7947
|
key: 1,
|
|
7917
7948
|
class: S(`mention-tag-${r.data.type}`),
|
|
7918
7949
|
contenteditable: "false",
|
|
@@ -7920,8 +7951,8 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
7920
7951
|
"data-tag-value": r.data.value
|
|
7921
7952
|
}, [d(I(r.data.label) + " ", 1), f(R(ln), {
|
|
7922
7953
|
class: "mention-tag-remove-icon",
|
|
7923
|
-
onClick: (e) =>
|
|
7924
|
-
}, null, 8, ["onClick"])], 10,
|
|
7954
|
+
onClick: (e) => U(t, r, i, n)
|
|
7955
|
+
}, null, 8, ["onClick"])], 10, Gp)) : s("", !0)], 64))), 128)) : (k(), c("br", Kp))]))), 128)) : s("", !0)], 8, Up), f(R(Se), {
|
|
7925
7956
|
ref_key: "tippyRef",
|
|
7926
7957
|
ref: a,
|
|
7927
7958
|
"append-to": A,
|
|
@@ -7935,26 +7966,26 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
7935
7966
|
"trigger-target": i.value,
|
|
7936
7967
|
"z-index": R(Ut),
|
|
7937
7968
|
onHidden: re,
|
|
7938
|
-
onShow:
|
|
7969
|
+
onShow: W
|
|
7939
7970
|
}, {
|
|
7940
|
-
content:
|
|
7971
|
+
content: H(() => [g.value === "slash" ? (k(), o(Pp, {
|
|
7941
7972
|
key: 0,
|
|
7942
|
-
"on-select":
|
|
7973
|
+
"on-select": ae,
|
|
7943
7974
|
"resource-list": v.value
|
|
7944
|
-
}, null, 8, ["resource-list"])) : g.value === "skill" ? (k(), o(
|
|
7975
|
+
}, null, 8, ["resource-list"])) : g.value === "skill" ? (k(), o(kp, {
|
|
7945
7976
|
key: 1,
|
|
7946
|
-
"on-select":
|
|
7977
|
+
"on-select": ce,
|
|
7947
7978
|
skills: y.value
|
|
7948
|
-
}, null, 8, ["skills"])) : g.value === "prompt" ? (k(), o(
|
|
7979
|
+
}, null, 8, ["skills"])) : g.value === "prompt" ? (k(), o(Cp, {
|
|
7949
7980
|
key: 2,
|
|
7950
|
-
"on-select":
|
|
7981
|
+
"on-select": B,
|
|
7951
7982
|
prompts: b.value
|
|
7952
7983
|
}, null, 8, ["prompts"])) : s("", !0)]),
|
|
7953
7984
|
_: 1
|
|
7954
7985
|
}, 8, ["trigger-target", "z-index"])]);
|
|
7955
7986
|
};
|
|
7956
7987
|
}
|
|
7957
|
-
}),
|
|
7988
|
+
}), Jp = { class: "ai-input-attachment" }, Yp = { class: "ai-input-attachment-default" }, Xp = { class: "ai-input-attachment-before-send" }, Zp = /* @__PURE__ */ m({
|
|
7958
7989
|
__name: "input-attachment",
|
|
7959
7990
|
props: {
|
|
7960
7991
|
messageState: {},
|
|
@@ -7968,27 +7999,27 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
7968
7999
|
}, a = () => {
|
|
7969
8000
|
n.sendDisabledTip || n.messageState === Y.Disabled || n.messageState === Y.Pending || n.messageState === Y.Streaming || r("sendMessage");
|
|
7970
8001
|
};
|
|
7971
|
-
return (t, r) => (k(), c("div",
|
|
7972
|
-
l("div",
|
|
7973
|
-
l("div",
|
|
8002
|
+
return (t, r) => (k(), c("div", Jp, [
|
|
8003
|
+
l("div", Yp, [N(t.$slots, "default")]),
|
|
8004
|
+
l("div", Xp, [N(t.$slots, "before-send")]),
|
|
7974
8005
|
N(t.$slots, "send-icon", {}, () => [l("div", {
|
|
7975
8006
|
class: S(["send-message-icon", [e.messageState && `send-message-icon__${e.messageState}`, { "send-message-icon__disabled": e.sendDisabledTip }]]),
|
|
7976
8007
|
onClick: a
|
|
7977
|
-
}, [e.messageState === R(Y).Streaming || e.messageState === R(Y).Pending || e.messageState === R(Y).Fetching ?
|
|
8008
|
+
}, [e.messageState === R(Y).Streaming || e.messageState === R(Y).Pending || e.messageState === R(Y).Fetching ? U((k(), o(R(Vr), {
|
|
7978
8009
|
key: 0,
|
|
7979
8010
|
onClick: i
|
|
7980
8011
|
}, null, 512)), [[R(Ce), G(G({}, e.tippyOptions), {}, {
|
|
7981
8012
|
content: R(K)("停止"),
|
|
7982
8013
|
theme: "ai-chat-box",
|
|
7983
8014
|
offset: [0, 16]
|
|
7984
|
-
})]]) :
|
|
8015
|
+
})]]) : U((k(), o(R(Br), { key: 1 }, null, 512)), [[R(Ce), G(G({}, e.tippyOptions), {}, {
|
|
7985
8016
|
content: e.sendDisabledTip || (n.messageState === R(Y).Disabled ? void 0 : R(K)("发送")),
|
|
7986
8017
|
theme: "ai-chat-box",
|
|
7987
8018
|
offset: [0, 16]
|
|
7988
8019
|
})]])], 2)])
|
|
7989
8020
|
]));
|
|
7990
8021
|
}
|
|
7991
|
-
}),
|
|
8022
|
+
}), Qp = [
|
|
7992
8023
|
{
|
|
7993
8024
|
key: "support_thinking",
|
|
7994
8025
|
label: () => K("深度思考"),
|
|
@@ -8004,22 +8035,22 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8004
8035
|
label: () => K("图生文"),
|
|
8005
8036
|
theme: "warning"
|
|
8006
8037
|
}
|
|
8007
|
-
],
|
|
8038
|
+
], $p = (e) => Qp.filter((t) => {
|
|
8008
8039
|
var n;
|
|
8009
8040
|
return (n = e.property) == null ? void 0 : n[t.key];
|
|
8010
8041
|
}).map((e) => ({
|
|
8011
8042
|
text: e.label(),
|
|
8012
8043
|
theme: e.theme
|
|
8013
|
-
})),
|
|
8044
|
+
})), em = { class: "ai-model-selector-panel-search" }, tm = { class: "ai-model-selector-panel-list" }, nm = ["title", "onClick"], rm = {
|
|
8014
8045
|
key: 0,
|
|
8015
8046
|
class: "ai-model-selector-panel-option-icon"
|
|
8016
|
-
},
|
|
8047
|
+
}, im = ["src"], am = ["title"], om = {
|
|
8017
8048
|
key: 1,
|
|
8018
8049
|
class: "ai-model-selector-panel-option-tags"
|
|
8019
|
-
},
|
|
8050
|
+
}, sm = {
|
|
8020
8051
|
key: 0,
|
|
8021
8052
|
class: "ai-model-selector-panel-empty"
|
|
8022
|
-
},
|
|
8053
|
+
}, cm = /* @__PURE__ */ m({
|
|
8023
8054
|
__name: "model-selector-panel",
|
|
8024
8055
|
props: /* @__PURE__ */ y({
|
|
8025
8056
|
models: {},
|
|
@@ -8033,13 +8064,13 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8033
8064
|
setup(t, { expose: n, emit: r }) {
|
|
8034
8065
|
let i = t, o = a(() => {
|
|
8035
8066
|
let e = /* @__PURE__ */ new Map();
|
|
8036
|
-
return i.models.forEach((t) => e.set(t.llm_name,
|
|
8037
|
-
}), u = r, p =
|
|
8067
|
+
return i.models.forEach((t) => e.set(t.llm_name, $p(t))), e;
|
|
8068
|
+
}), u = r, p = ae(t, "keyword"), m = z("panelRef"), h = z("searchInputRef"), g = F(i.models), { activeIndex: _ } = fa({
|
|
8038
8069
|
items: g,
|
|
8039
8070
|
menuRef: m,
|
|
8040
8071
|
onSelect: (e) => v(e)
|
|
8041
8072
|
});
|
|
8042
|
-
|
|
8073
|
+
V(() => i.models, (e) => {
|
|
8043
8074
|
g.value = e, _.value = 0;
|
|
8044
8075
|
});
|
|
8045
8076
|
let v = (e) => {
|
|
@@ -8054,7 +8085,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8054
8085
|
ref_key: "panelRef",
|
|
8055
8086
|
ref: m,
|
|
8056
8087
|
class: "ai-model-selector-panel"
|
|
8057
|
-
}, [l("div",
|
|
8088
|
+
}, [l("div", em, [f(R(me), {
|
|
8058
8089
|
ref_key: "searchInputRef",
|
|
8059
8090
|
ref: h,
|
|
8060
8091
|
modelValue: p.value,
|
|
@@ -8065,9 +8096,9 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8065
8096
|
placeholder: t.searchPlaceholder,
|
|
8066
8097
|
type: "text"
|
|
8067
8098
|
}, {
|
|
8068
|
-
prefix:
|
|
8099
|
+
prefix: H(() => [f(R(jr), { class: "ai-model-selector-panel-search-icon" })]),
|
|
8069
8100
|
_: 1
|
|
8070
|
-
}, 8, ["modelValue", "placeholder"])]), l("div",
|
|
8101
|
+
}, 8, ["modelValue", "placeholder"])]), l("div", tm, [(k(!0), c(e, null, M(t.models, (n, r) => {
|
|
8071
8102
|
var i;
|
|
8072
8103
|
return k(), c("div", {
|
|
8073
8104
|
key: n.id,
|
|
@@ -8079,31 +8110,31 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8079
8110
|
title: n.description,
|
|
8080
8111
|
onClick: (e) => v(n)
|
|
8081
8112
|
}, [
|
|
8082
|
-
n.icon ? (k(), c("span",
|
|
8113
|
+
n.icon ? (k(), c("span", rm, [l("img", {
|
|
8083
8114
|
alt: "",
|
|
8084
8115
|
src: n.icon
|
|
8085
|
-
}, null, 8,
|
|
8116
|
+
}, null, 8, im)])) : s("", !0),
|
|
8086
8117
|
l("span", {
|
|
8087
8118
|
class: "ai-model-selector-panel-option-name",
|
|
8088
8119
|
title: n.llm_name
|
|
8089
|
-
}, I(n.llm_name), 9,
|
|
8090
|
-
(i = o.value.get(n.llm_name)) != null && i.length ? (k(), c("span",
|
|
8120
|
+
}, I(n.llm_name), 9, am),
|
|
8121
|
+
(i = o.value.get(n.llm_name)) != null && i.length ? (k(), c("span", om, [(k(!0), c(e, null, M(o.value.get(n.llm_name), (e, t) => (k(), c("span", {
|
|
8091
8122
|
key: t,
|
|
8092
8123
|
class: S(["ai-model-capability-tag", `is-${e.theme || "default"}`])
|
|
8093
8124
|
}, I(e.text), 3))), 128))])) : s("", !0)
|
|
8094
|
-
], 10,
|
|
8095
|
-
}), 128)), t.models.length ? s("", !0) : (k(), c("div",
|
|
8125
|
+
], 10, nm);
|
|
8126
|
+
}), 128)), t.models.length ? s("", !0) : (k(), c("div", sm, [f(R(fe), {
|
|
8096
8127
|
scene: "part",
|
|
8097
8128
|
type: "empty"
|
|
8098
8129
|
}, {
|
|
8099
|
-
default:
|
|
8130
|
+
default: H(() => [d(I(R(K)("搜索结果为空")), 1)]),
|
|
8100
8131
|
_: 1
|
|
8101
8132
|
})]))])], 512));
|
|
8102
8133
|
}
|
|
8103
|
-
}),
|
|
8134
|
+
}), lm = {
|
|
8104
8135
|
key: 0,
|
|
8105
8136
|
class: "ai-model-selector-trigger-icon"
|
|
8106
|
-
},
|
|
8137
|
+
}, um = ["src"], dm = { class: "ai-model-selector-trigger-name" }, fm = /* @__PURE__ */ m({
|
|
8107
8138
|
__name: "model-selector-trigger",
|
|
8108
8139
|
props: {
|
|
8109
8140
|
disabled: { type: Boolean },
|
|
@@ -8118,16 +8149,16 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8118
8149
|
"is-expanded": e.expanded,
|
|
8119
8150
|
"is-disabled": e.disabled
|
|
8120
8151
|
}]) }, [
|
|
8121
|
-
(r = e.model) != null && r.icon ? (k(), c("span",
|
|
8152
|
+
(r = e.model) != null && r.icon ? (k(), c("span", lm, [l("img", {
|
|
8122
8153
|
alt: "",
|
|
8123
8154
|
src: e.model.icon
|
|
8124
|
-
}, null, 8,
|
|
8125
|
-
l("span",
|
|
8155
|
+
}, null, 8, um)])) : s("", !0),
|
|
8156
|
+
l("span", dm, I(((i = e.model) == null ? void 0 : i.llm_name) || e.placeholder), 1),
|
|
8126
8157
|
f(R(Sr), { class: "ai-model-selector-trigger-arrow" })
|
|
8127
8158
|
], 2);
|
|
8128
8159
|
};
|
|
8129
8160
|
}
|
|
8130
|
-
}),
|
|
8161
|
+
}), pm = (e) => {
|
|
8131
8162
|
let t = F("");
|
|
8132
8163
|
return {
|
|
8133
8164
|
keyword: t,
|
|
@@ -8140,7 +8171,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8140
8171
|
t.value = "";
|
|
8141
8172
|
}
|
|
8142
8173
|
};
|
|
8143
|
-
},
|
|
8174
|
+
}, mm = /* @__PURE__ */ m({
|
|
8144
8175
|
__name: "model-selector",
|
|
8145
8176
|
props: /* @__PURE__ */ y({
|
|
8146
8177
|
disabled: { type: Boolean },
|
|
@@ -8154,7 +8185,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8154
8185
|
}),
|
|
8155
8186
|
emits: /* @__PURE__ */ y(["change"], ["update:modelValue"]),
|
|
8156
8187
|
setup(e, { emit: t }) {
|
|
8157
|
-
let n = e, r = t, i =
|
|
8188
|
+
let n = e, r = t, i = ae(e, "modelValue"), s = z("tippyRef"), c = z("panelRef"), l = F(!1), { keyword: u, filteredModels: d, currentModel: p, resetKeyword: m } = pm({
|
|
8158
8189
|
models: re(n, "models"),
|
|
8159
8190
|
selectedModel: i
|
|
8160
8191
|
}), h = a(() => G({
|
|
@@ -8182,7 +8213,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8182
8213
|
onHidden: _,
|
|
8183
8214
|
onShow: g
|
|
8184
8215
|
}), {
|
|
8185
|
-
content:
|
|
8216
|
+
content: H(() => [f(cm, {
|
|
8186
8217
|
ref_key: "panelRef",
|
|
8187
8218
|
ref: c,
|
|
8188
8219
|
keyword: R(u),
|
|
@@ -8197,7 +8228,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8197
8228
|
"search-placeholder",
|
|
8198
8229
|
"selected-name"
|
|
8199
8230
|
])]),
|
|
8200
|
-
default:
|
|
8231
|
+
default: H(() => [f(fm, {
|
|
8201
8232
|
disabled: e.disabled,
|
|
8202
8233
|
expanded: l.value,
|
|
8203
8234
|
model: R(p),
|
|
@@ -8211,10 +8242,10 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8211
8242
|
_: 1
|
|
8212
8243
|
}, 16));
|
|
8213
8244
|
}
|
|
8214
|
-
}),
|
|
8245
|
+
}), hm = {
|
|
8215
8246
|
key: 1,
|
|
8216
8247
|
class: "ai-divider"
|
|
8217
|
-
},
|
|
8248
|
+
}, gm = /* @__PURE__ */ m({
|
|
8218
8249
|
__name: "chat-input",
|
|
8219
8250
|
props: /* @__PURE__ */ y({
|
|
8220
8251
|
defaultUploadFiles: {},
|
|
@@ -8253,9 +8284,9 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8253
8284
|
"modelChange"
|
|
8254
8285
|
], ["update:cite", "update:selectedModel"]),
|
|
8255
8286
|
setup(e, { expose: t, emit: n }) {
|
|
8256
|
-
let r =
|
|
8287
|
+
let r = z("aiSlashInputRef"), i = z("filesRef"), u = ae(e, "cite"), d = ae(e, "selectedModel"), p = F(280), m = e, g = n, _ = a(() => {
|
|
8257
8288
|
var e, t, n, r, i, a;
|
|
8258
|
-
return m.placeholder === void 0 ?
|
|
8289
|
+
return m.placeholder === void 0 ? xp({
|
|
8259
8290
|
isEn: Mt,
|
|
8260
8291
|
hasSkills: ((e = (t = m.skills) == null ? void 0 : t.length) == null ? 0 : e) > 0,
|
|
8261
8292
|
hasPrompts: ((n = (r = m.prompts) == null ? void 0 : r.length) == null ? 0 : n) > 0,
|
|
@@ -8264,12 +8295,16 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8264
8295
|
}), v = te(m.defaultUploadFiles || []), y = a(() => {
|
|
8265
8296
|
var e;
|
|
8266
8297
|
return (e = m.shortcuts) == null ? void 0 : e.find((e) => e.id === m.shortcutId);
|
|
8267
|
-
}), b = a(() => typeof m.modelValue == "string" ? m.modelValue :
|
|
8298
|
+
}), b = a(() => typeof m.modelValue == "string" ? m.modelValue : Bp(m.modelValue)), x = a(() => m.messageStatus && [
|
|
8268
8299
|
Y.Pending,
|
|
8269
8300
|
Y.Streaming,
|
|
8270
8301
|
Y.Fetching
|
|
8271
|
-
].includes(m.messageStatus) || v.value.length > 0 || b.value.trim() ? m.messageStatus : Y.Disabled)
|
|
8272
|
-
|
|
8302
|
+
].includes(m.messageStatus) || v.value.length > 0 || b.value.trim() ? m.messageStatus : Y.Disabled), T = a(() => v.value.some((e) => e.status === Af.Pending)), E = a(() => v.value.some((e) => e.status === Af.Error)), D = a(() => {
|
|
8303
|
+
if (m.sendDisabledTip) return m.sendDisabledTip;
|
|
8304
|
+
if (T.value) return K("文件上传中,请稍候");
|
|
8305
|
+
if (E.value) return K("存在上传失败的文件,请删除后重试");
|
|
8306
|
+
});
|
|
8307
|
+
ce(() => {
|
|
8273
8308
|
var e;
|
|
8274
8309
|
let t = m.inputMaxHeight || 280;
|
|
8275
8310
|
if (v.value.length < 1 || !i.value) {
|
|
@@ -8278,11 +8313,11 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8278
8313
|
}
|
|
8279
8314
|
p.value = t + (((e = i.value) == null ? void 0 : e.clientHeight) || 0);
|
|
8280
8315
|
});
|
|
8281
|
-
let
|
|
8316
|
+
let O = function() {
|
|
8282
8317
|
var e = Z(function* () {
|
|
8283
8318
|
try {
|
|
8284
8319
|
var e, t, n, i;
|
|
8285
|
-
if (
|
|
8320
|
+
if (D.value) return;
|
|
8286
8321
|
(e = r.value) == null || (t = e.cleanup) == null || t.call(e);
|
|
8287
8322
|
let o;
|
|
8288
8323
|
if (!((n = v.value) != null && n.length)) o = b.value;
|
|
@@ -8292,6 +8327,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8292
8327
|
var t;
|
|
8293
8328
|
return {
|
|
8294
8329
|
type: Ft.Binary,
|
|
8330
|
+
id: e.id,
|
|
8295
8331
|
url: e.url,
|
|
8296
8332
|
mimeType: e.mimeType || ((t = e.file) == null ? void 0 : t.type) || "",
|
|
8297
8333
|
filename: wt(e),
|
|
@@ -8310,12 +8346,12 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8310
8346
|
return function() {
|
|
8311
8347
|
return e.apply(this, arguments);
|
|
8312
8348
|
};
|
|
8313
|
-
}(),
|
|
8349
|
+
}(), A = (e) => {
|
|
8314
8350
|
if (e.key === "Enter" || e.key === "NumpadEnter") {
|
|
8315
|
-
if (e.shiftKey || x.value === Y.Disabled ||
|
|
8316
|
-
|
|
8351
|
+
if (e.shiftKey || x.value === Y.Disabled || D.value || x.value === Y.Fetching || x.value === Y.Streaming || x.value === Y.Pending) return;
|
|
8352
|
+
O();
|
|
8317
8353
|
}
|
|
8318
|
-
},
|
|
8354
|
+
}, j = function() {
|
|
8319
8355
|
var e = Z(function* () {
|
|
8320
8356
|
try {
|
|
8321
8357
|
var e;
|
|
@@ -8327,20 +8363,20 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8327
8363
|
return function() {
|
|
8328
8364
|
return e.apply(this, arguments);
|
|
8329
8365
|
};
|
|
8330
|
-
}(),
|
|
8366
|
+
}(), M = () => {
|
|
8331
8367
|
u.value = "";
|
|
8332
|
-
},
|
|
8368
|
+
}, P = (e) => {
|
|
8333
8369
|
g("selectShortcut", e);
|
|
8334
|
-
},
|
|
8370
|
+
}, ne = () => {
|
|
8335
8371
|
g("deleteShortcut");
|
|
8336
|
-
},
|
|
8372
|
+
}, I = (e) => {
|
|
8337
8373
|
g("modelChange", e);
|
|
8338
|
-
},
|
|
8374
|
+
}, re = (Xt / (1024 * 1024)).toFixed(1), L = function() {
|
|
8339
8375
|
var e = Z(function* (e) {
|
|
8340
8376
|
if (!m.supportUpload) return;
|
|
8341
8377
|
if (v.value.length >= 9) {
|
|
8342
8378
|
e.length > 0 && ge({
|
|
8343
|
-
message: Ue(e.length,
|
|
8379
|
+
message: Ue(e.length, re, Mt),
|
|
8344
8380
|
theme: "error"
|
|
8345
8381
|
});
|
|
8346
8382
|
return;
|
|
@@ -8363,14 +8399,14 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8363
8399
|
continue;
|
|
8364
8400
|
}
|
|
8365
8401
|
t.add(s);
|
|
8366
|
-
let c = {
|
|
8402
|
+
let c = ee({
|
|
8367
8403
|
file: o,
|
|
8368
8404
|
mimeType: o.type,
|
|
8369
8405
|
status: Af.Pending
|
|
8370
|
-
};
|
|
8406
|
+
});
|
|
8371
8407
|
v.value.push(c), r += 1, (i = m.onUpload) == null || i.call(m, o).then((e) => {
|
|
8372
|
-
if (e
|
|
8373
|
-
c.url = e.download_url, c.status = Af.Success;
|
|
8408
|
+
if ((e == null ? void 0 : e.status) !== "failed" && (e != null && e.id || e != null && e.download_url || (e == null ? void 0 : e.status) === "success")) {
|
|
8409
|
+
c.id = e.id, c.url = e.download_url, c.status = Af.Success;
|
|
8374
8410
|
return;
|
|
8375
8411
|
}
|
|
8376
8412
|
c.status = Af.Error;
|
|
@@ -8379,39 +8415,39 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8379
8415
|
});
|
|
8380
8416
|
}
|
|
8381
8417
|
n > 0 && ge({
|
|
8382
|
-
message: Ue(n,
|
|
8418
|
+
message: Ue(n, re, Mt),
|
|
8383
8419
|
theme: "error"
|
|
8384
|
-
}), r > 0 &&
|
|
8420
|
+
}), r > 0 && fe();
|
|
8385
8421
|
});
|
|
8386
8422
|
return function(t) {
|
|
8387
8423
|
return e.apply(this, arguments);
|
|
8388
8424
|
};
|
|
8389
|
-
}(),
|
|
8425
|
+
}(), ie = F(!1), oe = 0, B = (e) => {
|
|
8390
8426
|
var t;
|
|
8391
8427
|
return !!(!((t = e.dataTransfer) == null || (t = t.types) == null) && t.includes("Files"));
|
|
8392
|
-
},
|
|
8393
|
-
|
|
8394
|
-
},
|
|
8395
|
-
|
|
8396
|
-
},
|
|
8397
|
-
|
|
8398
|
-
},
|
|
8428
|
+
}, V = (e) => m.supportUpload && B(e), se = (e) => {
|
|
8429
|
+
V(e) && (oe += 1, ie.value = !0);
|
|
8430
|
+
}, U = (e) => {
|
|
8431
|
+
V(e) && (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "copy"));
|
|
8432
|
+
}, le = (e) => {
|
|
8433
|
+
V(e) && (oe = Math.max(oe - 1, 0), oe === 0 && (ie.value = !1));
|
|
8434
|
+
}, ue = (e) => {
|
|
8399
8435
|
var t, n;
|
|
8400
|
-
if (!
|
|
8401
|
-
e.preventDefault(),
|
|
8436
|
+
if (!V(e)) return;
|
|
8437
|
+
e.preventDefault(), oe = 0, ie.value = !1;
|
|
8402
8438
|
let r = Array.from((t = (n = e.dataTransfer) == null ? void 0 : n.files) == null ? [] : t);
|
|
8403
|
-
r.length &&
|
|
8404
|
-
},
|
|
8439
|
+
r.length && L(r);
|
|
8440
|
+
}, W = (e) => {
|
|
8405
8441
|
v.value = v.value.filter((t) => t.file ? t.file !== e.file : t.url ? t.url !== e.url : t.filename ? t.filename !== e.filename : !0);
|
|
8406
|
-
},
|
|
8442
|
+
}, de = (e, t) => {
|
|
8407
8443
|
g("update:modelValue", e, t);
|
|
8408
|
-
},
|
|
8444
|
+
}, fe = () => {
|
|
8409
8445
|
var e, t;
|
|
8410
8446
|
(e = r.value) == null || (t = e.focus) == null || t.call(e);
|
|
8411
8447
|
};
|
|
8412
8448
|
return t({
|
|
8413
|
-
focus:
|
|
8414
|
-
triggerSendMessage:
|
|
8449
|
+
focus: fe,
|
|
8450
|
+
triggerSendMessage: O
|
|
8415
8451
|
}), (t, n) => (k(), c("div", {
|
|
8416
8452
|
class: "ai-chat-input-container",
|
|
8417
8453
|
style: w({ "--chat-z-index": R(Vt) })
|
|
@@ -8419,29 +8455,29 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8419
8455
|
N(t.$slots, "top"),
|
|
8420
8456
|
N(t.$slots, "interrupt"),
|
|
8421
8457
|
l("div", {
|
|
8422
|
-
class: S(["chat-input", { "is-dragover":
|
|
8458
|
+
class: S(["chat-input", { "is-dragover": ie.value }]),
|
|
8423
8459
|
style: w({ maxHeight: p.value + "px" }),
|
|
8424
|
-
onDragenter:
|
|
8425
|
-
onDragleave:
|
|
8426
|
-
onDragover:
|
|
8427
|
-
onDrop:
|
|
8460
|
+
onDragenter: se,
|
|
8461
|
+
onDragleave: le,
|
|
8462
|
+
onDragover: U,
|
|
8463
|
+
onDrop: ue
|
|
8428
8464
|
}, [
|
|
8429
8465
|
N(t.$slots, "input-header", {}, () => [u.value ? (k(), o(Lf, {
|
|
8430
8466
|
key: 0,
|
|
8431
8467
|
class: "chat-input-cite",
|
|
8432
8468
|
content: u.value,
|
|
8433
|
-
onClose:
|
|
8469
|
+
onClose: M
|
|
8434
8470
|
}, null, 8, ["content"])) : s("", !0)]),
|
|
8435
8471
|
N(t.$slots, "files", C(h({ files: v.value })), () => [v.value.length ? (k(), c("div", {
|
|
8436
8472
|
key: 0,
|
|
8437
8473
|
ref_key: "filesRef",
|
|
8438
8474
|
ref: i,
|
|
8439
8475
|
class: "chat-input-files"
|
|
8440
|
-
}, [f(
|
|
8476
|
+
}, [f(bp, {
|
|
8441
8477
|
files: v.value,
|
|
8442
|
-
onDeleteFile:
|
|
8478
|
+
onDeleteFile: W
|
|
8443
8479
|
}, null, 8, ["files"])], 512)) : s("", !0)]),
|
|
8444
|
-
f(
|
|
8480
|
+
f(qp, {
|
|
8445
8481
|
ref_key: "aiSlashInputRef",
|
|
8446
8482
|
ref: r,
|
|
8447
8483
|
"model-value": e.modelValue,
|
|
@@ -8449,9 +8485,9 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8449
8485
|
prompts: e.prompts,
|
|
8450
8486
|
resources: e.resources,
|
|
8451
8487
|
skills: e.skills,
|
|
8452
|
-
onKeydown:
|
|
8453
|
-
"onUpdate:modelValue":
|
|
8454
|
-
onUpload:
|
|
8488
|
+
onKeydown: A,
|
|
8489
|
+
"onUpdate:modelValue": de,
|
|
8490
|
+
onUpload: L
|
|
8455
8491
|
}, null, 8, [
|
|
8456
8492
|
"model-value",
|
|
8457
8493
|
"placeholder",
|
|
@@ -8459,56 +8495,56 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8459
8495
|
"resources",
|
|
8460
8496
|
"skills"
|
|
8461
8497
|
]),
|
|
8462
|
-
f(
|
|
8498
|
+
f(Zp, {
|
|
8463
8499
|
"message-state": x.value,
|
|
8464
|
-
"send-disabled-tip":
|
|
8500
|
+
"send-disabled-tip": D.value,
|
|
8465
8501
|
"tippy-options": e.tippyOptions,
|
|
8466
|
-
onSendMessage:
|
|
8467
|
-
onStopSending:
|
|
8502
|
+
onSendMessage: O,
|
|
8503
|
+
onStopSending: j
|
|
8468
8504
|
}, {
|
|
8469
|
-
default:
|
|
8505
|
+
default: H(() => {
|
|
8470
8506
|
var n;
|
|
8471
8507
|
return [
|
|
8472
8508
|
e.supportUpload ? (k(), o(Pf, {
|
|
8473
8509
|
key: 0,
|
|
8474
8510
|
"tippy-options": e.tippyOptions,
|
|
8475
|
-
onUpload:
|
|
8511
|
+
onUpload: L
|
|
8476
8512
|
}, null, 8, ["tippy-options"])) : s("", !0),
|
|
8477
|
-
e.supportUpload && ((n = e.shortcuts) != null && n.length || y.value) ? (k(), c("span",
|
|
8513
|
+
e.supportUpload && ((n = e.shortcuts) != null && n.length || y.value) ? (k(), c("span", hm)) : s("", !0),
|
|
8478
8514
|
N(t.$slots, "attachment", {}, () => [e.shortcuts && !y.value ? (k(), o(ki, {
|
|
8479
8515
|
key: 0,
|
|
8480
8516
|
shortcuts: e.shortcuts,
|
|
8481
|
-
onSelectShortcut:
|
|
8517
|
+
onSelectShortcut: P
|
|
8482
8518
|
}, null, 8, ["shortcuts"])) : s("", !0), y.value ? (k(), o(Si, {
|
|
8483
8519
|
key: 1,
|
|
8484
8520
|
class: "selected-shortcut-btn",
|
|
8485
8521
|
shortcut: y.value
|
|
8486
8522
|
}, {
|
|
8487
|
-
append:
|
|
8523
|
+
append: H(() => [f(R(Yr), { onClick: ne })]),
|
|
8488
8524
|
_: 1
|
|
8489
8525
|
}, 8, ["shortcut"])) : s("", !0)])
|
|
8490
8526
|
];
|
|
8491
8527
|
}),
|
|
8492
|
-
"before-send":
|
|
8528
|
+
"before-send": H(() => [N(t.$slots, "model-selector", C(h({
|
|
8493
8529
|
models: e.models,
|
|
8494
8530
|
selectedModel: d.value
|
|
8495
8531
|
})), () => {
|
|
8496
8532
|
var t;
|
|
8497
|
-
return [(t = e.models) != null && t.length ? (k(), o(R(
|
|
8533
|
+
return [(t = e.models) != null && t.length ? (k(), o(R(mm), {
|
|
8498
8534
|
key: 0,
|
|
8499
8535
|
modelValue: d.value,
|
|
8500
8536
|
"onUpdate:modelValue": n[0] || (n[0] = (e) => d.value = e),
|
|
8501
8537
|
class: "chat-input-model-selector",
|
|
8502
8538
|
models: e.models,
|
|
8503
8539
|
"tippy-options": e.tippyOptions,
|
|
8504
|
-
onChange:
|
|
8540
|
+
onChange: I
|
|
8505
8541
|
}, null, 8, [
|
|
8506
8542
|
"modelValue",
|
|
8507
8543
|
"models",
|
|
8508
8544
|
"tippy-options"
|
|
8509
8545
|
])) : s("", !0)];
|
|
8510
8546
|
})]),
|
|
8511
|
-
"send-icon":
|
|
8547
|
+
"send-icon": H(() => [N(t.$slots, "send-icon")]),
|
|
8512
8548
|
_: 3
|
|
8513
8549
|
}, 8, [
|
|
8514
8550
|
"message-state",
|
|
@@ -8518,13 +8554,13 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8518
8554
|
], 38)
|
|
8519
8555
|
], 4));
|
|
8520
8556
|
}
|
|
8521
|
-
}),
|
|
8557
|
+
}), _m = { class: "ai-chat-input-info-alert" }, vm = { class: "ai-chat-input-info-alert__text" }, ym = /* @__PURE__ */ m({
|
|
8522
8558
|
__name: "input-info-alert",
|
|
8523
8559
|
props: { content: {} },
|
|
8524
8560
|
setup(e) {
|
|
8525
|
-
return (t, n) => (k(), c("div",
|
|
8561
|
+
return (t, n) => (k(), c("div", _m, [f(R(Lr), { class: "ai-chat-input-info-alert__icon" }), l("span", vm, I(e.content), 1)]));
|
|
8526
8562
|
}
|
|
8527
|
-
}),
|
|
8563
|
+
}), bm = { class: "ai-artifact-file-card-info" }, xm = { class: "ai-artifact-file-card-name" }, Sm = /* @__PURE__ */ m({
|
|
8528
8564
|
__name: "artifact-file-card",
|
|
8529
8565
|
props: {
|
|
8530
8566
|
active: { type: Boolean },
|
|
@@ -8573,17 +8609,17 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8573
8609
|
"is-list": e.variant === "list"
|
|
8574
8610
|
}]),
|
|
8575
8611
|
onClick: _
|
|
8576
|
-
}, [l("div",
|
|
8612
|
+
}, [l("div", bm, [f(sp, {
|
|
8577
8613
|
class: "ai-artifact-file-card-icon",
|
|
8578
8614
|
"file-name": e.file.name,
|
|
8579
8615
|
"file-type": e.file.type
|
|
8580
|
-
}, null, 8, ["file-name", "file-type"]),
|
|
8616
|
+
}, null, 8, ["file-name", "file-type"]), U((k(), c("span", xm, [d(I(e.file.name), 1)])), [[R(Pa), G(G({}, R(r)), {}, {
|
|
8581
8617
|
text: e.file.name,
|
|
8582
8618
|
placement: "top"
|
|
8583
|
-
})]])]), p.value ?
|
|
8619
|
+
})]])]), p.value ? U((k(), c("div", {
|
|
8584
8620
|
key: 0,
|
|
8585
8621
|
class: S(["ai-artifact-file-card-download", { "is-loading": h.value }]),
|
|
8586
|
-
onClick:
|
|
8622
|
+
onClick: ue(v, ["stop"])
|
|
8587
8623
|
}, [h.value ? (k(), o(R(he), {
|
|
8588
8624
|
key: 0,
|
|
8589
8625
|
mode: "spin",
|
|
@@ -8591,14 +8627,14 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8591
8627
|
theme: "primary"
|
|
8592
8628
|
})) : (k(), o(P(m.value), { key: 1 }))], 2)), [[R(Ce), g.value]]) : s("", !0)], 2));
|
|
8593
8629
|
}
|
|
8594
|
-
}),
|
|
8630
|
+
}), Cm = ["class", "style"], wm = { class: "ai-message-loading-row" }, Tm = { class: "ai-message-loading-icon-wrap" }, Em = {
|
|
8595
8631
|
key: 0,
|
|
8596
8632
|
class: "ai-message-loading-text ai-message-loading-text-custom"
|
|
8597
|
-
},
|
|
8633
|
+
}, Dm = {
|
|
8598
8634
|
key: 1,
|
|
8599
8635
|
"aria-live": "polite",
|
|
8600
8636
|
class: "ai-message-loading-text"
|
|
8601
|
-
},
|
|
8637
|
+
}, Om = /* @__PURE__ */ m(G(G({}, {
|
|
8602
8638
|
name: "MessageLoading",
|
|
8603
8639
|
inheritAttrs: !1
|
|
8604
8640
|
}), {}, {
|
|
@@ -8613,7 +8649,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8613
8649
|
setup(t) {
|
|
8614
8650
|
let n = t, r = ie(), i = a(() => {
|
|
8615
8651
|
let { class: e, style: t } = r;
|
|
8616
|
-
return ji(r,
|
|
8652
|
+
return ji(r, Cm);
|
|
8617
8653
|
}), o = a(() => ({
|
|
8618
8654
|
display: "block",
|
|
8619
8655
|
width: `${n.iconSize}px`,
|
|
@@ -8629,16 +8665,16 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8629
8665
|
return (t, n) => (k(), c("div", b({
|
|
8630
8666
|
class: ["ai-message-loading", R(r).class],
|
|
8631
8667
|
style: u.value
|
|
8632
|
-
}, i.value), [l("div",
|
|
8668
|
+
}, i.value), [l("div", wm, [l("span", Tm, [N(t.$slots, "icon", {}, () => [f(R(rn), {
|
|
8633
8669
|
class: "ai-message-loading-icon-svg",
|
|
8634
8670
|
style: w(o.value)
|
|
8635
|
-
}, null, 8, ["style"])])]), t.$slots.text ? (k(), c("span",
|
|
8671
|
+
}, null, 8, ["style"])])]), t.$slots.text ? (k(), c("span", Em, [N(t.$slots, "text")])) : (k(), c("span", Dm, [(k(!0), c(e, null, M(s.value, (e, t) => (k(), c("span", {
|
|
8636
8672
|
key: `${t}-${e}`,
|
|
8637
8673
|
class: "ai-message-loading-char",
|
|
8638
8674
|
style: w({ "--char-index": t })
|
|
8639
8675
|
}, I(e), 5))), 128))]))])], 16));
|
|
8640
8676
|
}
|
|
8641
|
-
})),
|
|
8677
|
+
})), km = { class: "ai-artifact-code-preview" }, Am = ["innerHTML"], jm = 3e5, Mm = /* @__PURE__ */ m({
|
|
8642
8678
|
__name: "code-preview",
|
|
8643
8679
|
props: {
|
|
8644
8680
|
content: {},
|
|
@@ -8661,7 +8697,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8661
8697
|
let { content: e } = n;
|
|
8662
8698
|
if (!e) return "";
|
|
8663
8699
|
let t = i(n.extension);
|
|
8664
|
-
if (t === "plaintext" || e.length >
|
|
8700
|
+
if (t === "plaintext" || e.length > jm) return r(e);
|
|
8665
8701
|
try {
|
|
8666
8702
|
return Ne.highlight(e, {
|
|
8667
8703
|
language: t,
|
|
@@ -8671,57 +8707,57 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8671
8707
|
return r(e);
|
|
8672
8708
|
}
|
|
8673
8709
|
});
|
|
8674
|
-
return (e, t) => (k(), c("pre",
|
|
8710
|
+
return (e, t) => (k(), c("pre", km, [l("code", {
|
|
8675
8711
|
class: "hljs",
|
|
8676
8712
|
innerHTML: o.value
|
|
8677
|
-
}, null, 8,
|
|
8713
|
+
}, null, 8, Am)]));
|
|
8678
8714
|
}
|
|
8679
|
-
}),
|
|
8715
|
+
}), Nm = ["srcdoc"], Pm = /* @__PURE__ */ m({
|
|
8680
8716
|
__name: "html-preview",
|
|
8681
8717
|
props: { content: {} },
|
|
8682
8718
|
setup(e) {
|
|
8683
8719
|
return (t, n) => (k(), c("iframe", {
|
|
8684
8720
|
class: "ai-artifact-html-preview",
|
|
8685
8721
|
srcdoc: e.content
|
|
8686
|
-
}, null, 8,
|
|
8722
|
+
}, null, 8, Nm));
|
|
8687
8723
|
}
|
|
8688
|
-
}),
|
|
8724
|
+
}), Fm = { class: "ai-artifact-image-preview" }, Im = ["alt", "src"], Lm = /* @__PURE__ */ m({
|
|
8689
8725
|
__name: "image-preview",
|
|
8690
8726
|
props: {
|
|
8691
8727
|
name: {},
|
|
8692
8728
|
url: {}
|
|
8693
8729
|
},
|
|
8694
8730
|
setup(e) {
|
|
8695
|
-
return (t, n) => (k(), c("div",
|
|
8731
|
+
return (t, n) => (k(), c("div", Fm, [l("img", {
|
|
8696
8732
|
alt: e.name,
|
|
8697
8733
|
src: e.url
|
|
8698
|
-
}, null, 8,
|
|
8734
|
+
}, null, 8, Im)]));
|
|
8699
8735
|
}
|
|
8700
|
-
}),
|
|
8736
|
+
}), Rm = { class: "ai-artifact-markdown-preview" }, zm = /* @__PURE__ */ m({
|
|
8701
8737
|
__name: "markdown-preview",
|
|
8702
8738
|
props: { content: {} },
|
|
8703
8739
|
setup(e) {
|
|
8704
|
-
return (t, n) => (k(), c("div",
|
|
8740
|
+
return (t, n) => (k(), c("div", Rm, [f(Ju, {
|
|
8705
8741
|
content: e.content,
|
|
8706
8742
|
status: R(Y).Success
|
|
8707
8743
|
}, null, 8, ["content", "status"])]));
|
|
8708
8744
|
}
|
|
8709
|
-
}),
|
|
8745
|
+
}), Bm = { class: "ai-artifact-txt-preview" }, Vm = /* @__PURE__ */ m({
|
|
8710
8746
|
__name: "txt-preview",
|
|
8711
8747
|
props: { content: {} },
|
|
8712
8748
|
setup(e) {
|
|
8713
|
-
return (t, n) => (k(), c("pre",
|
|
8749
|
+
return (t, n) => (k(), c("pre", Bm, I(e.content), 1));
|
|
8714
8750
|
}
|
|
8715
|
-
}),
|
|
8751
|
+
}), Hm = ["src"], Um = /* @__PURE__ */ m({
|
|
8716
8752
|
__name: "url-iframe-preview",
|
|
8717
8753
|
props: { url: {} },
|
|
8718
8754
|
setup(e) {
|
|
8719
8755
|
return (t, n) => (k(), c("iframe", {
|
|
8720
8756
|
class: "ai-artifact-url-iframe-preview",
|
|
8721
8757
|
src: e.url
|
|
8722
|
-
}, null, 8,
|
|
8758
|
+
}, null, 8, Hm));
|
|
8723
8759
|
}
|
|
8724
|
-
}),
|
|
8760
|
+
}), Wm = {
|
|
8725
8761
|
binary: {
|
|
8726
8762
|
load: "preview_url",
|
|
8727
8763
|
renderer: "urlIframe"
|
|
@@ -8746,7 +8782,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8746
8782
|
load: "text_from_download",
|
|
8747
8783
|
renderer: "txt"
|
|
8748
8784
|
}
|
|
8749
|
-
},
|
|
8785
|
+
}, Gm = (e, t) => Wm[Ke(e, t)], Km = (e) => {
|
|
8750
8786
|
let t = F("idle"), n = F(""), r = F(""), i = F(""), a = F("urlIframe"), o, s = 0, c = () => {
|
|
8751
8787
|
n.value = "", r.value = "", i.value = "";
|
|
8752
8788
|
}, l = function() {
|
|
@@ -8759,7 +8795,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8759
8795
|
return;
|
|
8760
8796
|
}
|
|
8761
8797
|
t.value = "loading", c();
|
|
8762
|
-
let d =
|
|
8798
|
+
let d = Gm(u.type, u.name);
|
|
8763
8799
|
a.value = d.renderer;
|
|
8764
8800
|
try {
|
|
8765
8801
|
let a = yield e.resolveUrls(u);
|
|
@@ -8811,20 +8847,20 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8811
8847
|
renderer: a,
|
|
8812
8848
|
status: t
|
|
8813
8849
|
};
|
|
8814
|
-
},
|
|
8850
|
+
}, qm = { class: "ai-artifact-preview-host" }, Jm = {
|
|
8815
8851
|
key: 0,
|
|
8816
8852
|
class: "ai-artifact-preview-host-loading"
|
|
8817
|
-
},
|
|
8853
|
+
}, Ym = {
|
|
8818
8854
|
key: 1,
|
|
8819
8855
|
class: "ai-artifact-preview-host-error"
|
|
8820
|
-
},
|
|
8856
|
+
}, Xm = {
|
|
8821
8857
|
key: 2,
|
|
8822
8858
|
class: "ai-artifact-preview-host-empty"
|
|
8823
|
-
},
|
|
8859
|
+
}, Zm = /* @__PURE__ */ m({
|
|
8824
8860
|
__name: "artifact-preview-host",
|
|
8825
8861
|
props: { file: {} },
|
|
8826
8862
|
setup(e, { expose: t }) {
|
|
8827
|
-
let n = e, r = Ki(), { content: i, downloadUrl: s, load: u, previewUrl: p, renderer: m, status: h } =
|
|
8863
|
+
let n = e, r = Ki(), { content: i, downloadUrl: s, load: u, previewUrl: p, renderer: m, status: h } = Km({
|
|
8828
8864
|
canResolve: () => !!(r != null && r.canResolveArtifactUrl.value),
|
|
8829
8865
|
getFile: () => n.file,
|
|
8830
8866
|
resolveUrls: (e) => {
|
|
@@ -8835,7 +8871,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8835
8871
|
var e, t;
|
|
8836
8872
|
return Ge((e = n.file) == null ? void 0 : e.type, (t = n.file) == null ? void 0 : t.name);
|
|
8837
8873
|
});
|
|
8838
|
-
return
|
|
8874
|
+
return V(() => n.file ? `${n.file.outputId}:${n.file.type}` : "", () => {
|
|
8839
8875
|
u();
|
|
8840
8876
|
}, { immediate: !0 }), t({
|
|
8841
8877
|
content: i,
|
|
@@ -8843,50 +8879,50 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8843
8879
|
status: h
|
|
8844
8880
|
}), (t, n) => {
|
|
8845
8881
|
var r;
|
|
8846
|
-
return k(), c("div",
|
|
8882
|
+
return k(), c("div", qm, [R(h) === "loading" ? (k(), c("div", Jm, [f(Om)])) : R(h) === "error" ? (k(), c("div", Ym, [l("span", null, I(R(K)("预览加载失败")), 1), f(R(W), {
|
|
8847
8883
|
size: "small",
|
|
8848
8884
|
text: "",
|
|
8849
8885
|
theme: "primary",
|
|
8850
8886
|
onClick: n[0] || (n[0] = () => R(u)())
|
|
8851
8887
|
}, {
|
|
8852
|
-
default:
|
|
8888
|
+
default: H(() => [d(I(R(K)("重试")), 1)]),
|
|
8853
8889
|
_: 1
|
|
8854
|
-
})])) : R(h) === "empty" || !e.file ? (k(), c("div",
|
|
8890
|
+
})])) : R(h) === "empty" || !e.file ? (k(), c("div", Xm, I(R(K)("暂无可预览的文件")), 1)) : R(m) === "html" ? (k(), o(Pm, {
|
|
8855
8891
|
key: 3,
|
|
8856
8892
|
content: R(i)
|
|
8857
|
-
}, null, 8, ["content"])) : R(m) === "code" ? (k(), o(
|
|
8893
|
+
}, null, 8, ["content"])) : R(m) === "code" ? (k(), o(Mm, {
|
|
8858
8894
|
key: 4,
|
|
8859
8895
|
content: R(i),
|
|
8860
8896
|
extension: g.value
|
|
8861
|
-
}, null, 8, ["content", "extension"])) : R(m) === "txt" ? (k(), o(
|
|
8897
|
+
}, null, 8, ["content", "extension"])) : R(m) === "txt" ? (k(), o(Vm, {
|
|
8862
8898
|
key: 5,
|
|
8863
8899
|
content: R(i)
|
|
8864
|
-
}, null, 8, ["content"])) : R(m) === "markdown" ? (k(), o(
|
|
8900
|
+
}, null, 8, ["content"])) : R(m) === "markdown" ? (k(), o(zm, {
|
|
8865
8901
|
key: 6,
|
|
8866
8902
|
content: R(i)
|
|
8867
|
-
}, null, 8, ["content"])) : R(m) === "image" ? (k(), o(
|
|
8903
|
+
}, null, 8, ["content"])) : R(m) === "image" ? (k(), o(Lm, {
|
|
8868
8904
|
key: 7,
|
|
8869
8905
|
name: (r = e.file) == null ? void 0 : r.name,
|
|
8870
8906
|
url: R(s)
|
|
8871
|
-
}, null, 8, ["name", "url"])) : (k(), o(
|
|
8907
|
+
}, null, 8, ["name", "url"])) : (k(), o(Um, {
|
|
8872
8908
|
key: 8,
|
|
8873
8909
|
url: R(p)
|
|
8874
8910
|
}, null, 8, ["url"]))]);
|
|
8875
8911
|
};
|
|
8876
8912
|
}
|
|
8877
|
-
}),
|
|
8913
|
+
}), Qm = {
|
|
8878
8914
|
key: 0,
|
|
8879
8915
|
class: "ai-file-artifact-panel is-empty"
|
|
8880
|
-
},
|
|
8916
|
+
}, $m = { class: "ai-file-artifact-panel-empty-text" }, eh = {
|
|
8881
8917
|
key: 1,
|
|
8882
8918
|
class: "ai-file-artifact-panel"
|
|
8883
|
-
},
|
|
8919
|
+
}, th = { class: "ai-file-artifact-panel-list" }, nh = { class: "ai-file-artifact-panel-list-title" }, rh = { class: "ai-file-artifact-panel-list-scroll" }, ih = {
|
|
8884
8920
|
key: 1,
|
|
8885
8921
|
class: "ai-file-artifact-panel-list-empty"
|
|
8886
|
-
},
|
|
8922
|
+
}, ah = { class: "ai-file-artifact-panel-preview" }, oh = {
|
|
8887
8923
|
key: 0,
|
|
8888
8924
|
class: "ai-file-artifact-panel-preview-header"
|
|
8889
|
-
},
|
|
8925
|
+
}, sh = { class: "ai-file-artifact-panel-preview-header-info" }, ch = { class: "ai-file-artifact-panel-preview-header-name" }, lh = { class: "ai-file-artifact-panel-preview-header-actions" }, uh = { class: "ai-file-artifact-panel-preview-body" }, dh = /* @__PURE__ */ m({
|
|
8890
8926
|
__name: "file-artifact-panel",
|
|
8891
8927
|
props: {
|
|
8892
8928
|
activeId: {},
|
|
@@ -8899,7 +8935,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8899
8935
|
"html",
|
|
8900
8936
|
"markdown",
|
|
8901
8937
|
"text"
|
|
8902
|
-
]), u = t, p = n, m = Ki(), h = a(() => !!(m != null && m.canResolveArtifactUrl.value)), { copy: g } = Yi(), _ = ja(), v =
|
|
8938
|
+
]), u = t, p = n, m = Ki(), h = a(() => !!(m != null && m.canResolveArtifactUrl.value)), { copy: g } = Yi(), _ = ja(), v = z("previewHostRef"), y = () => i(wn), b = () => i($r), x = F(""), C = F(!1), w = a(() => G(G({}, _ == null ? void 0 : _.value), {}, {
|
|
8903
8939
|
content: K("复制"),
|
|
8904
8940
|
placement: "top",
|
|
8905
8941
|
theme: "ai-chat-box"
|
|
@@ -8939,13 +8975,13 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8939
8975
|
return e.apply(this, arguments);
|
|
8940
8976
|
};
|
|
8941
8977
|
}();
|
|
8942
|
-
return
|
|
8978
|
+
return V(() => {
|
|
8943
8979
|
var e;
|
|
8944
8980
|
return (e = D.value) == null ? void 0 : e.outputId;
|
|
8945
8981
|
}, () => {
|
|
8946
8982
|
C.value = !1;
|
|
8947
|
-
}), (n, r) => t.artifacts.length ? (k(), c("div",
|
|
8948
|
-
l("p",
|
|
8983
|
+
}), (n, r) => t.artifacts.length ? (k(), c("div", eh, [l("div", th, [
|
|
8984
|
+
l("p", nh, I(R(K)("文件列表")) + "(" + I(t.artifacts.length) + ")", 1),
|
|
8949
8985
|
f(R(me), {
|
|
8950
8986
|
modelValue: x.value,
|
|
8951
8987
|
"onUpdate:modelValue": r[0] || (r[0] = (e) => x.value = e),
|
|
@@ -8953,7 +8989,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8953
8989
|
clearable: "",
|
|
8954
8990
|
placeholder: R(K)("搜索文件关键字")
|
|
8955
8991
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
8956
|
-
l("div",
|
|
8992
|
+
l("div", rh, [E.value.length ? (k(!0), c(e, { key: 0 }, M(E.value, (e) => (k(), o(Sm, {
|
|
8957
8993
|
key: e.outputId,
|
|
8958
8994
|
active: e.outputId === t.activeId,
|
|
8959
8995
|
file: e,
|
|
@@ -8963,19 +8999,19 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8963
8999
|
"active",
|
|
8964
9000
|
"file",
|
|
8965
9001
|
"on-preview"
|
|
8966
|
-
]))), 128)) : (k(), c("div",
|
|
8967
|
-
]), l("div",
|
|
9002
|
+
]))), 128)) : (k(), c("div", ih, I(R(K)("搜索结果为空")), 1))])
|
|
9003
|
+
]), l("div", ah, [D.value ? (k(), c("div", oh, [l("div", sh, [f(sp, {
|
|
8968
9004
|
class: "ai-file-artifact-panel-preview-header-icon",
|
|
8969
9005
|
"file-name": D.value.name,
|
|
8970
9006
|
"file-type": D.value.type
|
|
8971
|
-
}, null, 8, ["file-name", "file-type"]),
|
|
9007
|
+
}, null, 8, ["file-name", "file-type"]), U((k(), c("span", ch, [d(I(D.value.name), 1)])), [[R(Pa), G(G({}, R(_)), {}, {
|
|
8972
9008
|
text: D.value.name,
|
|
8973
9009
|
placement: "top"
|
|
8974
|
-
})]])]), l("div",
|
|
9010
|
+
})]])]), l("div", lh, [O.value ? U((k(), c("span", {
|
|
8975
9011
|
key: 0,
|
|
8976
9012
|
class: S(["ai-file-artifact-panel-preview-header-action", { "is-disabled": !A.value }]),
|
|
8977
9013
|
onClick: j
|
|
8978
|
-
}, [(k(), o(P(b())))], 2)), [[R(Ce), w.value]]) : s("", !0), h.value ?
|
|
9014
|
+
}, [(k(), o(P(b())))], 2)), [[R(Ce), w.value]]) : s("", !0), h.value ? U((k(), c("span", {
|
|
8979
9015
|
key: 1,
|
|
8980
9016
|
class: S(["ai-file-artifact-panel-preview-header-action", { "is-loading": C.value }]),
|
|
8981
9017
|
onClick: r[1] || (r[1] = (e) => te(D.value))
|
|
@@ -8984,17 +9020,17 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
8984
9020
|
mode: "spin",
|
|
8985
9021
|
size: "mini",
|
|
8986
9022
|
theme: "primary"
|
|
8987
|
-
})) : (k(), o(P(y()), { key: 1 }))], 2)), [[R(Ce), T.value]]) : s("", !0)])])) : s("", !0), l("div",
|
|
9023
|
+
})) : (k(), o(P(y()), { key: 1 }))], 2)), [[R(Ce), T.value]]) : s("", !0)])])) : s("", !0), l("div", uh, [f(Zm, {
|
|
8988
9024
|
ref_key: "previewHostRef",
|
|
8989
9025
|
ref: v,
|
|
8990
9026
|
file: D.value
|
|
8991
|
-
}, null, 8, ["file"])])])])) : (k(), c("div",
|
|
9027
|
+
}, null, 8, ["file"])])])])) : (k(), c("div", Qm, [f(R(fe), {
|
|
8992
9028
|
class: "ai-file-artifact-panel-empty-exception",
|
|
8993
9029
|
scene: "part",
|
|
8994
9030
|
type: "empty"
|
|
8995
|
-
}), l("div",
|
|
9031
|
+
}), l("div", $m, I(R(K)("暂无数据")), 1)]));
|
|
8996
9032
|
}
|
|
8997
|
-
}),
|
|
9033
|
+
}), fh = "others", ph = (e) => e < 26 ? String.fromCharCode(65 + e) : String(e + 1), mh = (e) => {
|
|
8998
9034
|
let t = a(() => {
|
|
8999
9035
|
var t, n;
|
|
9000
9036
|
return (t = (n = e()) == null || (n = n.metadata) == null ? void 0 : n.questions) == null ? [] : t;
|
|
@@ -9036,9 +9072,9 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9036
9072
|
payload: { answers: h() }
|
|
9037
9073
|
};
|
|
9038
9074
|
},
|
|
9039
|
-
buildSkipPayload: () =>
|
|
9075
|
+
buildSkipPayload: () => hh(e())
|
|
9040
9076
|
};
|
|
9041
|
-
},
|
|
9077
|
+
}, hh = (e) => {
|
|
9042
9078
|
var t;
|
|
9043
9079
|
return {
|
|
9044
9080
|
interruptId: (t = e == null ? void 0 : e.id) == null ? "" : t,
|
|
@@ -9046,10 +9082,10 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9046
9082
|
status: "cancelled",
|
|
9047
9083
|
payload: { answers: [] }
|
|
9048
9084
|
};
|
|
9049
|
-
},
|
|
9085
|
+
}, gh = { class: "ai-user-question-answered" }, _h = { class: "ai-user-question-answered__header" }, vh = { class: "ai-user-question-answered__title-wrap" }, yh = { class: "ai-user-question-answered__title" }, bh = { class: "ai-user-question-answered__status" }, xh = { class: "ai-user-question-answered__body" }, Sh = { class: "ai-user-question-answered__question" }, Ch = { class: "ai-user-question-answered__question-text" }, wh = {
|
|
9050
9086
|
key: 0,
|
|
9051
9087
|
class: "ai-user-question-answered__tag"
|
|
9052
|
-
},
|
|
9088
|
+
}, Th = /* @__PURE__ */ m({
|
|
9053
9089
|
__name: "user-question-answered-card",
|
|
9054
9090
|
props: {
|
|
9055
9091
|
answers: {},
|
|
@@ -9057,10 +9093,10 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9057
9093
|
},
|
|
9058
9094
|
setup(t) {
|
|
9059
9095
|
let n = t, r = a(() => n.status === "cancelled" ? K("已取消") : K("已回复"));
|
|
9060
|
-
return (n, i) => (k(), c("section",
|
|
9096
|
+
return (n, i) => (k(), c("section", gh, [l("header", _h, [l("div", vh, [f(R(Ir), { class: "ai-user-question-answered__help-icon" }), l("span", yh, I(R(K)("回答内容")), 1)]), l("span", bh, I(r.value), 1)]), l("div", xh, [(k(!0), c(e, null, M(t.answers, (r, i) => (k(), c("div", {
|
|
9061
9097
|
key: i,
|
|
9062
9098
|
class: "ai-user-question-answered__item"
|
|
9063
|
-
}, [l("div",
|
|
9099
|
+
}, [l("div", Sh, [l("span", Ch, I(i + 1) + ". " + I(r.question), 1), r.multiSelect === void 0 ? s("", !0) : (k(), c("span", wh, I(r.multiSelect ? R(K)("多选") : R(K)("单选")), 1))]), N(n.$slots, "answer", b({ ref_for: !0 }, {
|
|
9064
9100
|
item: r,
|
|
9065
9101
|
index: i,
|
|
9066
9102
|
status: t.status
|
|
@@ -9069,10 +9105,10 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9069
9105
|
class: "ai-user-question-answered__answer"
|
|
9070
9106
|
}, I(e.description || e.label), 1))), 128))])]))), 128))])]));
|
|
9071
9107
|
}
|
|
9072
|
-
}),
|
|
9108
|
+
}), Eh = { class: "ai-user-question-option__badge" }, Dh = ["placeholder", "value"], Oh = {
|
|
9073
9109
|
key: 1,
|
|
9074
9110
|
class: "ai-user-question-option__text"
|
|
9075
|
-
},
|
|
9111
|
+
}, kh = /* @__PURE__ */ m({
|
|
9076
9112
|
__name: "user-question-option",
|
|
9077
9113
|
props: {
|
|
9078
9114
|
option: {},
|
|
@@ -9099,33 +9135,33 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9099
9135
|
"ai-user-question-option--others": e.option.isOthers
|
|
9100
9136
|
}]),
|
|
9101
9137
|
onClick: i
|
|
9102
|
-
}, [l("span",
|
|
9138
|
+
}, [l("span", Eh, I(e.option.letter), 1), e.option.isOthers ? (k(), c("input", {
|
|
9103
9139
|
key: 0,
|
|
9104
9140
|
class: "ai-user-question-option__input",
|
|
9105
9141
|
placeholder: R(K)("请输入..."),
|
|
9106
9142
|
value: e.othersText,
|
|
9107
|
-
onClick: n[0] || (n[0] =
|
|
9143
|
+
onClick: n[0] || (n[0] = ue(() => {}, ["stop"])),
|
|
9108
9144
|
onFocus: a,
|
|
9109
9145
|
onInput: o,
|
|
9110
|
-
onKeydown: n[1] || (n[1] =
|
|
9111
|
-
}, null, 40,
|
|
9146
|
+
onKeydown: n[1] || (n[1] = le(ue((e) => r("confirm"), ["stop"]), ["enter"]))
|
|
9147
|
+
}, null, 40, Dh)) : (k(), c("span", Oh, I(e.option.description), 1))], 2));
|
|
9112
9148
|
}
|
|
9113
|
-
}),
|
|
9149
|
+
}), Ah = { class: "ai-user-question-choice" }, jh = /* @__PURE__ */ m({
|
|
9114
9150
|
__name: "user-question-choice",
|
|
9115
9151
|
props: { question: {} },
|
|
9116
9152
|
emits: ["answer", "confirm"],
|
|
9117
9153
|
setup(t, { emit: n }) {
|
|
9118
9154
|
let r = t, i = n, s = F([]), l = F(""), u = a(() => {
|
|
9119
9155
|
var e;
|
|
9120
|
-
let t = ((e = r.question.options) == null ? [] : e).filter((e) => e.label !==
|
|
9156
|
+
let t = ((e = r.question.options) == null ? [] : e).filter((e) => e.label !== fh).map((e, t) => G(G({}, e), {}, {
|
|
9121
9157
|
isOthers: !1,
|
|
9122
|
-
letter:
|
|
9158
|
+
letter: ph(t)
|
|
9123
9159
|
}));
|
|
9124
9160
|
return t.push({
|
|
9125
|
-
label:
|
|
9161
|
+
label: fh,
|
|
9126
9162
|
description: "",
|
|
9127
9163
|
isOthers: !0,
|
|
9128
|
-
letter:
|
|
9164
|
+
letter: ph(t.length)
|
|
9129
9165
|
}), t;
|
|
9130
9166
|
}), d = a(() => u.value.findIndex((e) => e.isOthers)), f = (e) => s.value.includes(e), p = a(() => s.value.length ? d.value >= 0 && s.value.includes(d.value) ? l.value.trim().length > 0 : !0 : !1), m = () => ({
|
|
9131
9167
|
question: r.question.question,
|
|
@@ -9134,7 +9170,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9134
9170
|
var t, n;
|
|
9135
9171
|
let r = u.value[e];
|
|
9136
9172
|
return r != null && r.isOthers ? {
|
|
9137
|
-
label:
|
|
9173
|
+
label: fh,
|
|
9138
9174
|
description: l.value.trim()
|
|
9139
9175
|
} : {
|
|
9140
9176
|
label: (t = r == null ? void 0 : r.label) == null ? "" : t,
|
|
@@ -9147,9 +9183,9 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9147
9183
|
}, _ = (e) => {
|
|
9148
9184
|
l.value = e, h();
|
|
9149
9185
|
};
|
|
9150
|
-
return
|
|
9186
|
+
return V(() => r.question, () => {
|
|
9151
9187
|
s.value = [], l.value = "", h();
|
|
9152
|
-
}), (t, n) => (k(), c("div",
|
|
9188
|
+
}), (t, n) => (k(), c("div", Ah, [(k(!0), c(e, null, M(u.value, (e, t) => (k(), o(kh, {
|
|
9153
9189
|
key: t,
|
|
9154
9190
|
option: e,
|
|
9155
9191
|
"others-text": l.value,
|
|
@@ -9164,17 +9200,17 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9164
9200
|
"onSelect"
|
|
9165
9201
|
]))), 128))]));
|
|
9166
9202
|
}
|
|
9167
|
-
}),
|
|
9203
|
+
}), Mh = { class: "ai-user-question-card__title-wrap" }, Nh = { class: "ai-user-question-card__title" }, Ph = { class: "ai-user-question-card__header-actions" }, Fh = { class: "ai-user-question-card__pager" }, Ih = ["disabled"], Lh = { class: "ai-user-question-card__pager-text" }, Rh = ["disabled"], zh = { class: "ai-user-question-card__body" }, Bh = { class: "ai-user-question-card__question-title" }, Vh = { class: "ai-user-question-card__question-text" }, Hh = {
|
|
9168
9204
|
key: 0,
|
|
9169
9205
|
class: "ai-user-question-card__tag"
|
|
9170
|
-
},
|
|
9206
|
+
}, Uh = { class: "ai-user-question-card__options" }, Wh = { class: "ai-user-question-card__footer" }, Gh = { class: "ai-user-question-card__progress" }, Kh = { class: "ai-user-question-card__progress-num" }, qh = { class: "ai-user-question-card__actions" }, Jh = /* @__PURE__ */ m({
|
|
9171
9207
|
__name: "user-question-card",
|
|
9172
9208
|
props: {
|
|
9173
9209
|
interrupt: {},
|
|
9174
9210
|
onResume: { type: Function }
|
|
9175
9211
|
},
|
|
9176
9212
|
setup(t) {
|
|
9177
|
-
let n = t, r = ja(), i = F(!1), { questions: u, answeredCount: p, totalCount: m, completed: h, currentIndex: g, canGoPrev: _, canGoNext: v, goPrev: y, goNext: x, getAnswer: C, setAnswer: T, buildResolvePayload: E, buildSkipPayload: D } =
|
|
9213
|
+
let n = t, r = ja(), i = F(!1), { questions: u, answeredCount: p, totalCount: m, completed: h, currentIndex: g, canGoPrev: _, canGoNext: v, goPrev: y, goNext: x, getAnswer: C, setAnswer: T, buildResolvePayload: E, buildSkipPayload: D } = mh(() => n.interrupt), O = a(() => {
|
|
9178
9214
|
var e;
|
|
9179
9215
|
return ((e = n.interrupt.metadata) == null || (e = e.questions) == null || (e = e[0]) == null ? void 0 : e.header) || n.interrupt.message || "";
|
|
9180
9216
|
}), A = () => {
|
|
@@ -9192,51 +9228,51 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9192
9228
|
l("header", {
|
|
9193
9229
|
class: "ai-user-question-card__header",
|
|
9194
9230
|
onClick: ee
|
|
9195
|
-
}, [l("div",
|
|
9196
|
-
l("div",
|
|
9231
|
+
}, [l("div", Mh, [f(R(Ir), { class: "ai-user-question-card__help-icon" }), U((k(), c("span", Nh, [d(I(O.value), 1)])), [[R(Pa), G({}, R(r))]])]), l("div", Ph, [
|
|
9232
|
+
l("div", Fh, [
|
|
9197
9233
|
l("button", {
|
|
9198
9234
|
class: S(["ai-user-question-card__nav-btn", { "is-disabled": !R(_) }]),
|
|
9199
9235
|
disabled: !R(_),
|
|
9200
9236
|
type: "button",
|
|
9201
|
-
onClick: n[0] || (n[0] =
|
|
9202
|
-
}, [f(R(Sr), { class: "ai-user-question-card__nav-icon" })], 10,
|
|
9203
|
-
l("span",
|
|
9237
|
+
onClick: n[0] || (n[0] = ue((...e) => R(y) && R(y)(...e), ["stop"]))
|
|
9238
|
+
}, [f(R(Sr), { class: "ai-user-question-card__nav-icon" })], 10, Ih),
|
|
9239
|
+
l("span", Lh, I(R(g) + 1) + " / " + I(R(m)), 1),
|
|
9204
9240
|
l("button", {
|
|
9205
9241
|
class: S(["ai-user-question-card__nav-btn", { "is-disabled": !R(v) }]),
|
|
9206
9242
|
disabled: !R(v),
|
|
9207
9243
|
type: "button",
|
|
9208
|
-
onClick: n[1] || (n[1] =
|
|
9209
|
-
}, [f(R(Cr), { class: "ai-user-question-card__nav-icon" })], 10,
|
|
9244
|
+
onClick: n[1] || (n[1] = ue((...e) => R(x) && R(x)(...e), ["stop"]))
|
|
9245
|
+
}, [f(R(Cr), { class: "ai-user-question-card__nav-icon" })], 10, Rh)
|
|
9210
9246
|
]),
|
|
9211
9247
|
n[2] || (n[2] = l("span", { class: "ai-user-question-card__divider" }, null, -1)),
|
|
9212
9248
|
l("button", {
|
|
9213
9249
|
class: "ai-user-question-card__collapse-btn",
|
|
9214
9250
|
type: "button",
|
|
9215
|
-
onClick:
|
|
9251
|
+
onClick: ue(A, ["stop"])
|
|
9216
9252
|
}, [f(R(Sr), {
|
|
9217
9253
|
class: "ai-user-question-card__arrow",
|
|
9218
9254
|
style: w({ transform: i.value ? "rotate(180deg)" : "rotate(-90deg)" })
|
|
9219
9255
|
}, null, 8, ["style"])])
|
|
9220
9256
|
])]),
|
|
9221
|
-
|
|
9257
|
+
U(l("div", zh, [(k(!0), c(e, null, M(R(u), (e, n) => U((k(), c("div", {
|
|
9222
9258
|
key: n,
|
|
9223
9259
|
class: "ai-user-question-card__question"
|
|
9224
|
-
}, [l("div",
|
|
9260
|
+
}, [l("div", Bh, [l("span", Vh, I(n + 1) + ". " + I(e.question), 1), e.multiSelect === void 0 ? s("", !0) : (k(), c("span", Hh, I(e.multiSelect ? R(K)("多选") : R(K)("单选")), 1))]), l("div", Uh, [N(t.$slots, "question", b({ ref_for: !0 }, {
|
|
9225
9261
|
question: e,
|
|
9226
9262
|
qIndex: n,
|
|
9227
9263
|
answer: R(C)(n),
|
|
9228
9264
|
setAnswer: (e) => R(T)(n, e),
|
|
9229
9265
|
confirm: te
|
|
9230
|
-
}), () => [f(
|
|
9266
|
+
}), () => [f(jh, {
|
|
9231
9267
|
question: e,
|
|
9232
9268
|
onAnswer: (e) => R(T)(n, e),
|
|
9233
9269
|
onConfirm: te
|
|
9234
|
-
}, null, 8, ["question", "onAnswer"])])])])), [[
|
|
9235
|
-
|
|
9270
|
+
}, null, 8, ["question", "onAnswer"])])])])), [[B, n === R(g)]])), 128))], 512), [[B, !i.value]]),
|
|
9271
|
+
U(l("footer", Wh, [l("span", Gh, [
|
|
9236
9272
|
d(I(R(K)("已完成")) + " ", 1),
|
|
9237
|
-
l("span",
|
|
9273
|
+
l("span", Kh, I(R(p)), 1),
|
|
9238
9274
|
d(" " + I(R(K)("题")), 1)
|
|
9239
|
-
]), l("div",
|
|
9275
|
+
]), l("div", qh, [f(R(W), {
|
|
9240
9276
|
class: "ai-user-question-card__skip",
|
|
9241
9277
|
disabled: j.value === "complete",
|
|
9242
9278
|
loading: j.value === "skip",
|
|
@@ -9244,12 +9280,12 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9244
9280
|
text: "",
|
|
9245
9281
|
onClick: P
|
|
9246
9282
|
}, {
|
|
9247
|
-
default:
|
|
9283
|
+
default: H(() => [j.value === "skip" ? s("", !0) : (k(), o(R(zr), {
|
|
9248
9284
|
key: 0,
|
|
9249
9285
|
class: "ai-user-question-card__skip-icon"
|
|
9250
9286
|
})), d(" " + I(R(K)("跳过")), 1)]),
|
|
9251
9287
|
_: 1
|
|
9252
|
-
}, 8, ["disabled", "loading"]), f(R(
|
|
9288
|
+
}, 8, ["disabled", "loading"]), f(R(W), {
|
|
9253
9289
|
class: "ai-user-question-card__complete",
|
|
9254
9290
|
disabled: !R(h) || j.value === "skip",
|
|
9255
9291
|
loading: j.value === "complete",
|
|
@@ -9257,32 +9293,32 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9257
9293
|
theme: "primary",
|
|
9258
9294
|
onClick: te
|
|
9259
9295
|
}, {
|
|
9260
|
-
default:
|
|
9296
|
+
default: H(() => [j.value === "complete" ? s("", !0) : (k(), o(R(Rr), {
|
|
9261
9297
|
key: 0,
|
|
9262
9298
|
class: "ai-user-question-card__enter-icon"
|
|
9263
9299
|
})), d(" " + I(R(K)("完成")), 1)]),
|
|
9264
9300
|
_: 1
|
|
9265
|
-
}, 8, ["disabled", "loading"])])], 512), [[
|
|
9301
|
+
}, 8, ["disabled", "loading"])])], 512), [[B, !i.value]])
|
|
9266
9302
|
], 2));
|
|
9267
9303
|
}
|
|
9268
|
-
}),
|
|
9304
|
+
}), Yh = 864e5, Xh = {
|
|
9269
9305
|
day: "numeric",
|
|
9270
9306
|
hour: "2-digit",
|
|
9271
9307
|
hourCycle: "h23",
|
|
9272
9308
|
minute: "2-digit",
|
|
9273
9309
|
month: "numeric",
|
|
9274
9310
|
year: "numeric"
|
|
9275
|
-
},
|
|
9276
|
-
let t = e == null ? "" : e, n =
|
|
9311
|
+
}, Zh = /* @__PURE__ */ new Map(), Qh = (e) => {
|
|
9312
|
+
let t = e == null ? "" : e, n = Zh.get(t);
|
|
9277
9313
|
if (n) return n;
|
|
9278
9314
|
let r;
|
|
9279
9315
|
try {
|
|
9280
|
-
r = new Intl.DateTimeFormat("en-US", G(G({},
|
|
9316
|
+
r = new Intl.DateTimeFormat("en-US", G(G({}, Xh), {}, { timeZone: e }));
|
|
9281
9317
|
} catch (e) {
|
|
9282
|
-
r = new Intl.DateTimeFormat("en-US",
|
|
9318
|
+
r = new Intl.DateTimeFormat("en-US", Xh);
|
|
9283
9319
|
}
|
|
9284
|
-
return
|
|
9285
|
-
},
|
|
9320
|
+
return Zh.set(t, r), r;
|
|
9321
|
+
}, $h = (e, t) => {
|
|
9286
9322
|
let n = e.formatToParts(t), r = (e) => {
|
|
9287
9323
|
var t;
|
|
9288
9324
|
return Number((t = n.find((t) => t.type === e)) == null ? void 0 : t.value);
|
|
@@ -9294,19 +9330,19 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9294
9330
|
month: r("month"),
|
|
9295
9331
|
year: r("year")
|
|
9296
9332
|
};
|
|
9297
|
-
},
|
|
9333
|
+
}, eg = (e) => Date.UTC(e.year, e.month - 1, e.day), tg = (e) => String(e).padStart(2, "0"), ng = (e, t) => {
|
|
9298
9334
|
if (e == null || e === "") return "";
|
|
9299
9335
|
let n = new Date(e).getTime();
|
|
9300
9336
|
if (Number.isNaN(n)) return "";
|
|
9301
|
-
let r =
|
|
9337
|
+
let r = Qh(t), i = $h(r, n), a = $h(r, Date.now()), o = `${tg(i.hour)}:${tg(i.minute)}`, s = Math.round((eg(a) - eg(i)) / Yh);
|
|
9302
9338
|
if (s === 0) return o;
|
|
9303
9339
|
if (s === 1) return `${K("昨天")} ${o}`;
|
|
9304
9340
|
let c = `${i.month}-${i.day} ${o}`;
|
|
9305
9341
|
return i.year === a.year ? c : `${i.year}-${c}`;
|
|
9306
|
-
},
|
|
9342
|
+
}, rg = {
|
|
9307
9343
|
key: 0,
|
|
9308
9344
|
class: "ai-message-time"
|
|
9309
|
-
},
|
|
9345
|
+
}, ig = /* @__PURE__ */ m({
|
|
9310
9346
|
__name: "message-time",
|
|
9311
9347
|
props: {
|
|
9312
9348
|
createdAt: {},
|
|
@@ -9316,10 +9352,10 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9316
9352
|
let t = e, n = da(), r = a(() => {
|
|
9317
9353
|
var e, r;
|
|
9318
9354
|
return (e = t.timezone) == null ? n == null || (r = n.timezone) == null ? void 0 : r.value : e;
|
|
9319
|
-
}), i = a(() =>
|
|
9320
|
-
return (e, t) => i.value ? (k(), c("span",
|
|
9355
|
+
}), i = a(() => ng(t.createdAt, r.value));
|
|
9356
|
+
return (e, t) => i.value ? (k(), c("span", rg, I(i.value), 1)) : s("", !0);
|
|
9321
9357
|
}
|
|
9322
|
-
}),
|
|
9358
|
+
}), ag = { class: "ai-delete-confirm" }, og = { class: "ai-delete-confirm__title" }, sg = { class: "ai-delete-confirm__desc" }, cg = { class: "ai-delete-confirm__actions" }, lg = /* @__PURE__ */ m({
|
|
9323
9359
|
__name: "delete-tool",
|
|
9324
9360
|
props: {
|
|
9325
9361
|
description: {},
|
|
@@ -9333,7 +9369,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9333
9369
|
},
|
|
9334
9370
|
emits: ["confirm", "cancel"],
|
|
9335
9371
|
setup(e, { emit: t }) {
|
|
9336
|
-
let n = e, r = t, i =
|
|
9372
|
+
let n = e, r = t, i = z("tippyRef"), s = a(() => ({
|
|
9337
9373
|
id: n.id,
|
|
9338
9374
|
name: n.name,
|
|
9339
9375
|
description: n.description,
|
|
@@ -9362,29 +9398,29 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9362
9398
|
ref_key: "tippyRef",
|
|
9363
9399
|
ref: i
|
|
9364
9400
|
}, c.value, { onShow: u }), {
|
|
9365
|
-
content:
|
|
9366
|
-
l("div",
|
|
9367
|
-
l("div",
|
|
9368
|
-
l("div",
|
|
9401
|
+
content: H(() => [l("div", ag, [
|
|
9402
|
+
l("div", og, I(R(K)("确认删除该回答?")), 1),
|
|
9403
|
+
l("div", sg, I(R(K)("删除操作无法撤回,请谨慎操作!")), 1),
|
|
9404
|
+
l("div", cg, [f(R(W), {
|
|
9369
9405
|
size: "small",
|
|
9370
9406
|
theme: "danger",
|
|
9371
9407
|
onClick: m
|
|
9372
9408
|
}, {
|
|
9373
|
-
default:
|
|
9409
|
+
default: H(() => [d(I(R(K)("删除")), 1)]),
|
|
9374
9410
|
_: 1
|
|
9375
|
-
}), f(R(
|
|
9411
|
+
}), f(R(W), {
|
|
9376
9412
|
size: "small",
|
|
9377
9413
|
onClick: g
|
|
9378
9414
|
}, {
|
|
9379
|
-
default:
|
|
9415
|
+
default: H(() => [d(I(R(K)("取消")), 1)]),
|
|
9380
9416
|
_: 1
|
|
9381
9417
|
})])
|
|
9382
9418
|
])]),
|
|
9383
|
-
default:
|
|
9419
|
+
default: H(() => [f(Ia, C(h(s.value)), null, 16)]),
|
|
9384
9420
|
_: 1
|
|
9385
9421
|
}, 16));
|
|
9386
9422
|
}
|
|
9387
|
-
}),
|
|
9423
|
+
}), ug = { class: "ai-feedback-title" }, dg = { class: "ai-feedback-reason-list" }, fg = ["onClick"], pg = { class: "ai-feedback-other" }, mg = { class: "ai-feedback-footer" }, hg = /* @__PURE__ */ m({
|
|
9388
9424
|
__name: "user-feedback",
|
|
9389
9425
|
props: {
|
|
9390
9426
|
loading: { type: Boolean },
|
|
@@ -9402,64 +9438,64 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9402
9438
|
};
|
|
9403
9439
|
return (n, r) => (k(), c("div", {
|
|
9404
9440
|
class: "ai-user-feedback",
|
|
9405
|
-
onMouseenter: r[1] || (r[1] =
|
|
9441
|
+
onMouseenter: r[1] || (r[1] = ue(() => {}, ["stop", "prevent"]))
|
|
9406
9442
|
}, [
|
|
9407
|
-
l("div",
|
|
9408
|
-
l("div",
|
|
9443
|
+
l("div", ug, I(t.title), 1),
|
|
9444
|
+
l("div", dg, [t.loading ? (k(), c(e, { key: 0 }, M(8, (e) => l("div", {
|
|
9409
9445
|
key: e,
|
|
9410
9446
|
class: "reason-item ai-skeleton-element"
|
|
9411
9447
|
})), 64)) : (k(!0), c(e, { key: 1 }, M(t.reasonList, (e) => (k(), c("div", {
|
|
9412
9448
|
key: e,
|
|
9413
9449
|
class: S(["reason-item", { "is-active": a.value.includes(e) }]),
|
|
9414
9450
|
onClick: (t) => o(e)
|
|
9415
|
-
}, I(e), 11,
|
|
9416
|
-
l("div",
|
|
9451
|
+
}, I(e), 11, fg))), 128))]),
|
|
9452
|
+
l("div", pg, [f(R(me), {
|
|
9417
9453
|
modelValue: i.value,
|
|
9418
9454
|
"onUpdate:modelValue": r[0] || (r[0] = (e) => i.value = e),
|
|
9419
9455
|
placeholder: R(K)("说出您的想法"),
|
|
9420
9456
|
rows: 3,
|
|
9421
9457
|
type: "textarea"
|
|
9422
9458
|
}, null, 8, ["modelValue", "placeholder"])]),
|
|
9423
|
-
l("div",
|
|
9459
|
+
l("div", mg, [f(R(W), {
|
|
9424
9460
|
class: "custom-btn",
|
|
9425
9461
|
disabled: !i.value && a.value.length === 0,
|
|
9426
9462
|
size: "small",
|
|
9427
9463
|
theme: "primary",
|
|
9428
9464
|
onClick: s
|
|
9429
9465
|
}, {
|
|
9430
|
-
default:
|
|
9466
|
+
default: H(() => [d(I(R(K)("提交")), 1)]),
|
|
9431
9467
|
_: 1
|
|
9432
|
-
}, 8, ["disabled"]), f(R(
|
|
9468
|
+
}, 8, ["disabled"]), f(R(W), {
|
|
9433
9469
|
class: "custom-btn",
|
|
9434
9470
|
size: "small",
|
|
9435
9471
|
width: "80px",
|
|
9436
9472
|
onClick: u
|
|
9437
9473
|
}, {
|
|
9438
|
-
default:
|
|
9474
|
+
default: H(() => [d(I(R(K)("取消")), 1)]),
|
|
9439
9475
|
_: 1
|
|
9440
9476
|
})])
|
|
9441
9477
|
], 32));
|
|
9442
9478
|
}
|
|
9443
|
-
}),
|
|
9479
|
+
}), gg = {
|
|
9444
9480
|
ref: "messageToolsRef",
|
|
9445
9481
|
class: "ai-message-tools-container"
|
|
9446
|
-
},
|
|
9482
|
+
}, _g = {
|
|
9447
9483
|
key: 0,
|
|
9448
9484
|
class: "ai-message-tools-prepend"
|
|
9449
|
-
},
|
|
9485
|
+
}, vg = { class: "message-tools" }, yg = {
|
|
9450
9486
|
key: 1,
|
|
9451
9487
|
class: "ai-divider",
|
|
9452
9488
|
style: {
|
|
9453
9489
|
"margin-right": "4px",
|
|
9454
9490
|
"margin-left": "4px"
|
|
9455
9491
|
}
|
|
9456
|
-
},
|
|
9492
|
+
}, bg = {
|
|
9457
9493
|
key: 2,
|
|
9458
9494
|
class: "message-tools"
|
|
9459
|
-
},
|
|
9495
|
+
}, xg = {
|
|
9460
9496
|
key: 3,
|
|
9461
9497
|
class: "ai-message-tools-append"
|
|
9462
|
-
},
|
|
9498
|
+
}, Sg = /* @__PURE__ */ m({
|
|
9463
9499
|
__name: "message-tools",
|
|
9464
9500
|
props: {
|
|
9465
9501
|
messageTools: { default: () => Kt },
|
|
@@ -9470,7 +9506,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9470
9506
|
},
|
|
9471
9507
|
emits: ["feedback"],
|
|
9472
9508
|
setup(t, { emit: n }) {
|
|
9473
|
-
let r = t, i = n, u =
|
|
9509
|
+
let r = t, i = n, u = z("feedbackTippyRef"), d = F(!1), p = F([]), m = F(null), h = a(() => G({
|
|
9474
9510
|
arrow: !1,
|
|
9475
9511
|
interactive: !0,
|
|
9476
9512
|
offset: [0, 6],
|
|
@@ -9520,9 +9556,9 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9520
9556
|
};
|
|
9521
9557
|
return O(() => {
|
|
9522
9558
|
v(), p.value = [];
|
|
9523
|
-
}), (n, r) => (k(), c("div",
|
|
9524
|
-
n.$slots.prepend ? (k(), c("div",
|
|
9525
|
-
l("div",
|
|
9559
|
+
}), (n, r) => (k(), c("div", gg, [
|
|
9560
|
+
n.$slots.prepend ? (k(), c("div", _g, [N(n.$slots, "prepend")])) : s("", !0),
|
|
9561
|
+
l("div", vg, [(k(!0), c(e, null, M(t.messageTools, (n) => (k(), c(e, { key: n.id }, [n.id === "delete" ? (k(), o(lg, b({
|
|
9526
9562
|
key: 0,
|
|
9527
9563
|
ref_for: !0
|
|
9528
9564
|
}, n, {
|
|
@@ -9545,14 +9581,14 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9545
9581
|
"tippy-options",
|
|
9546
9582
|
"onClick"
|
|
9547
9583
|
]))], 64))), 128))]),
|
|
9548
|
-
t.updateTools.length > 0 ? (k(), c("div",
|
|
9549
|
-
t.updateTools.length > 0 ? (k(), c("div",
|
|
9584
|
+
t.updateTools.length > 0 ? (k(), c("div", yg)) : s("", !0),
|
|
9585
|
+
t.updateTools.length > 0 ? (k(), c("div", bg, [(k(!0), c(e, null, M(t.updateTools, (n) => (k(), c(e, { key: n.id }, [n.id === "like" || n.id === "unlike" ? (k(), o(R(Se), b({
|
|
9550
9586
|
key: 0,
|
|
9551
9587
|
ref_for: !0,
|
|
9552
9588
|
ref_key: "feedbackTippyRef",
|
|
9553
9589
|
ref: u
|
|
9554
9590
|
}, { ref_for: !0 }, h.value, { onShow: (e) => C(n.id) }), {
|
|
9555
|
-
content:
|
|
9591
|
+
content: H(() => [f(hg, {
|
|
9556
9592
|
loading: d.value,
|
|
9557
9593
|
"reason-list": p.value,
|
|
9558
9594
|
title: n.id === "like" ? R(K)("什么原因让你满意?") : R(K)("什么原因让你不满意?"),
|
|
@@ -9564,7 +9600,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9564
9600
|
"title",
|
|
9565
9601
|
"onSubmit"
|
|
9566
9602
|
])]),
|
|
9567
|
-
default:
|
|
9603
|
+
default: H(() => [f(Ia, b({ ref_for: !0 }, n, {
|
|
9568
9604
|
id: y(n.id),
|
|
9569
9605
|
active: m.value === n.id,
|
|
9570
9606
|
disabled: t.messageToolsStatus === R(jf).Disabled,
|
|
@@ -9578,7 +9614,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9578
9614
|
"onClick"
|
|
9579
9615
|
])]),
|
|
9580
9616
|
_: 2
|
|
9581
|
-
}, 1040, ["onShow"])) : n.id === "delete" ? (k(), o(
|
|
9617
|
+
}, 1040, ["onShow"])) : n.id === "delete" ? (k(), o(lg, b({
|
|
9582
9618
|
key: 1,
|
|
9583
9619
|
ref_for: !0
|
|
9584
9620
|
}, n, {
|
|
@@ -9601,10 +9637,10 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9601
9637
|
"tippy-options",
|
|
9602
9638
|
"onClick"
|
|
9603
9639
|
]))], 64))), 128))])) : s("", !0),
|
|
9604
|
-
n.$slots.append ? (k(), c("div",
|
|
9640
|
+
n.$slots.append ? (k(), c("div", xg, [N(n.$slots, "append")])) : s("", !0)
|
|
9605
9641
|
], 512));
|
|
9606
9642
|
}
|
|
9607
|
-
}),
|
|
9643
|
+
}), Cg = m({
|
|
9608
9644
|
name: "HighlightKeyword",
|
|
9609
9645
|
props: { text: {
|
|
9610
9646
|
type: String,
|
|
@@ -9621,7 +9657,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9621
9657
|
});
|
|
9622
9658
|
return () => g("span", r.value);
|
|
9623
9659
|
}
|
|
9624
|
-
}),
|
|
9660
|
+
}), wg = { class: "ai-activity-message" }, Tg = { class: "ai-activity-message-content" }, Eg = /* @__PURE__ */ m({
|
|
9625
9661
|
__name: "activity-layout",
|
|
9626
9662
|
props: /* @__PURE__ */ y({ activityType: {} }, {
|
|
9627
9663
|
collapsed: G({ type: Boolean }, { default: !1 }),
|
|
@@ -9629,16 +9665,16 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9629
9665
|
}),
|
|
9630
9666
|
emits: ["update:collapsed"],
|
|
9631
9667
|
setup(e) {
|
|
9632
|
-
let t =
|
|
9633
|
-
return (n, r) => (k(), c("div",
|
|
9668
|
+
let t = ae(e, "collapsed");
|
|
9669
|
+
return (n, r) => (k(), c("div", wg, [l("div", {
|
|
9634
9670
|
class: "ai-activity-message-title",
|
|
9635
9671
|
onClick: r[0] || (r[0] = (e) => t.value = !t.value)
|
|
9636
9672
|
}, [N(n.$slots, "title", C(h({ collapsed: t.value }))), e.activityType === R(Ft).FlowAgent ? s("", !0) : (k(), c("span", {
|
|
9637
9673
|
key: 0,
|
|
9638
9674
|
class: S(["ai-activity-message-title-icon collapsed-icon", { "is-collapsed": t.value }])
|
|
9639
|
-
}, [f(R(Ur))], 2))]),
|
|
9675
|
+
}, [f(R(Ur))], 2))]), U(l("div", Tg, [N(n.$slots, "default")], 512), [[B, !t.value]])]));
|
|
9640
9676
|
}
|
|
9641
|
-
}),
|
|
9677
|
+
}), Dg = [
|
|
9642
9678
|
{
|
|
9643
9679
|
color: "#3A84FF",
|
|
9644
9680
|
icon: null,
|
|
@@ -9694,16 +9730,16 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9694
9730
|
label: K("跳过"),
|
|
9695
9731
|
rawStates: ["SKIPPED"]
|
|
9696
9732
|
}
|
|
9697
|
-
],
|
|
9733
|
+
], Og = Object.fromEntries(Dg.map((e) => [e.key, e])), kg = Object.fromEntries(Dg.flatMap((e) => e.rawStates.map((t) => [t, e.key]))), Ag = (e) => {
|
|
9698
9734
|
var t;
|
|
9699
|
-
return (t =
|
|
9700
|
-
},
|
|
9735
|
+
return (t = kg[e]) == null ? "running" : t;
|
|
9736
|
+
}, jg = (e) => {
|
|
9701
9737
|
var t;
|
|
9702
|
-
return (t =
|
|
9703
|
-
},
|
|
9704
|
-
let t =
|
|
9738
|
+
return (t = Og[e].dotColor) == null ? Og[e].color : t;
|
|
9739
|
+
}, Mg = (e) => {
|
|
9740
|
+
let t = Og[e].icon;
|
|
9705
9741
|
return t ? i(t) : null;
|
|
9706
|
-
},
|
|
9742
|
+
}, Ng = (e) => {
|
|
9707
9743
|
let t = a(() => {
|
|
9708
9744
|
var t;
|
|
9709
9745
|
return Array.isArray(e.value) ? e.value : [(t = e.value) == null ? {} : t];
|
|
@@ -9717,10 +9753,10 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9717
9753
|
viewTasks: a(() => t.value.map((e) => {
|
|
9718
9754
|
var t, n;
|
|
9719
9755
|
let r = Object.values((t = e.nodes) == null ? {} : t).map((e) => {
|
|
9720
|
-
let t =
|
|
9756
|
+
let t = Ag(e.state);
|
|
9721
9757
|
return {
|
|
9722
9758
|
convergedState: t,
|
|
9723
|
-
dotColor:
|
|
9759
|
+
dotColor: jg(t),
|
|
9724
9760
|
elapsedTimeText: jt(e.elapsed_time),
|
|
9725
9761
|
id: e.id,
|
|
9726
9762
|
name: e.name,
|
|
@@ -9728,7 +9764,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9728
9764
|
retryable: !!e.retryable,
|
|
9729
9765
|
skippable: !!e.skippable
|
|
9730
9766
|
};
|
|
9731
|
-
}), i = r.reduce((e, t) => e + t.raw.elapsed_time, 0), a =
|
|
9767
|
+
}), i = r.reduce((e, t) => e + t.raw.elapsed_time, 0), a = Ag((n = e.task_state) == null ? "" : n);
|
|
9732
9768
|
return {
|
|
9733
9769
|
convergedState: a,
|
|
9734
9770
|
hasConfidence: !!e.has_confidence,
|
|
@@ -9736,7 +9772,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9736
9772
|
isActive: !!e.is_active,
|
|
9737
9773
|
nodes: r,
|
|
9738
9774
|
raw: e,
|
|
9739
|
-
stateIcon:
|
|
9775
|
+
stateIcon: Mg(a),
|
|
9740
9776
|
taskId: e.task_id,
|
|
9741
9777
|
taskName: e.task_name,
|
|
9742
9778
|
totalTimeText: jt(i)
|
|
@@ -9744,21 +9780,21 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9744
9780
|
})),
|
|
9745
9781
|
visibleStats: a(() => {
|
|
9746
9782
|
let e = {};
|
|
9747
|
-
for (let t of
|
|
9783
|
+
for (let t of Dg) e[t.key] = 0;
|
|
9748
9784
|
for (let i of t.value) {
|
|
9749
9785
|
var n, r;
|
|
9750
|
-
for (let [t, a] of Object.entries((n = (r = i.statistics) == null ? void 0 : r.state_counts) == null ? {} : n)) e[
|
|
9786
|
+
for (let [t, a] of Object.entries((n = (r = i.statistics) == null ? void 0 : r.state_counts) == null ? {} : n)) e[Ag(t)] += a;
|
|
9751
9787
|
}
|
|
9752
|
-
return
|
|
9788
|
+
return Dg.filter((t) => e[t.key] > 0).map((t) => ({
|
|
9753
9789
|
color: t.color,
|
|
9754
9790
|
display: e[t.key] > 99 ? "99+" : String(e[t.key]),
|
|
9755
|
-
dotColor:
|
|
9791
|
+
dotColor: jg(t.key),
|
|
9756
9792
|
key: t.key,
|
|
9757
9793
|
label: t.label
|
|
9758
9794
|
}));
|
|
9759
9795
|
})
|
|
9760
9796
|
};
|
|
9761
|
-
},
|
|
9797
|
+
}, Pg = [{
|
|
9762
9798
|
blockedTip: () => K("任务正在跳过中,不可重试"),
|
|
9763
9799
|
icon: ti,
|
|
9764
9800
|
id: Lt.FlowNodeRetry,
|
|
@@ -9772,10 +9808,10 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9772
9808
|
label: () => K("跳过"),
|
|
9773
9809
|
pendingLabel: () => K("跳过中"),
|
|
9774
9810
|
visible: (e) => e.convergedState === "failed" && e.skippable
|
|
9775
|
-
}],
|
|
9811
|
+
}], Fg = (e, t) => `${e.task_id}:${t.id}:${t.retry}`, Ig = (e) => {
|
|
9776
9812
|
let { hideResumeActions: t, onInterruptResume: n, openNodeDetail: r } = e, i = F({}), a = (e, t, r) => {
|
|
9777
9813
|
var a;
|
|
9778
|
-
let o =
|
|
9814
|
+
let o = Fg(t, r);
|
|
9779
9815
|
i.value[o] || (i.value = G(G({}, i.value), {}, { [o]: e }), (a = n.value) == null || a.call(n, {
|
|
9780
9816
|
payload: {
|
|
9781
9817
|
node_id: r.id,
|
|
@@ -9786,7 +9822,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9786
9822
|
};
|
|
9787
9823
|
return {
|
|
9788
9824
|
getNodeActions: (e, n) => {
|
|
9789
|
-
let o = i.value[
|
|
9825
|
+
let o = i.value[Fg(e.raw, n.raw)], s = (t != null && t.value ? [] : Pg).filter((e) => e.visible(n)).map((t) => {
|
|
9790
9826
|
let r = o === t.id, i = o !== void 0 && !r;
|
|
9791
9827
|
return {
|
|
9792
9828
|
disabled: o !== void 0,
|
|
@@ -9807,47 +9843,47 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9807
9843
|
run: () => r(e.raw, n.raw)
|
|
9808
9844
|
}), s;
|
|
9809
9845
|
},
|
|
9810
|
-
isNodePending: (e, t) => i.value[
|
|
9846
|
+
isNodePending: (e, t) => i.value[Fg(e.raw, t.raw)] !== void 0
|
|
9811
9847
|
};
|
|
9812
|
-
},
|
|
9848
|
+
}, Lg = { class: "ai-detail-section" }, Rg = { class: "section-heading" }, zg = { class: "section-text" }, Bg = /* @__PURE__ */ m({
|
|
9813
9849
|
__name: "detail-section",
|
|
9814
9850
|
props: { title: {} },
|
|
9815
9851
|
setup(e) {
|
|
9816
|
-
return (t, n) => (k(), c("div",
|
|
9852
|
+
return (t, n) => (k(), c("div", Lg, [l("div", Rg, [n[0] || (n[0] = l("span", { class: "section-bar" }, null, -1)), l("span", zg, I(e.title), 1)]), N(t.$slots, "default")]));
|
|
9817
9853
|
}
|
|
9818
|
-
}),
|
|
9854
|
+
}), Vg = { class: "ai-simple-table" }, Hg = { key: 0 }, Ug = ["colspan"], Wg = /* @__PURE__ */ m({
|
|
9819
9855
|
__name: "simple-table",
|
|
9820
9856
|
props: {
|
|
9821
9857
|
columns: {},
|
|
9822
9858
|
data: {}
|
|
9823
9859
|
},
|
|
9824
9860
|
setup(t) {
|
|
9825
|
-
return (n, r) => (k(), c("table",
|
|
9861
|
+
return (n, r) => (k(), c("table", Vg, [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) => {
|
|
9826
9862
|
var t;
|
|
9827
9863
|
return k(), c("td", {
|
|
9828
9864
|
key: e.key,
|
|
9829
9865
|
class: S({ "is-break-all": e.breakAll })
|
|
9830
9866
|
}, I((t = n[e.key]) == null ? "--" : t), 3);
|
|
9831
|
-
}), 128))]))), 128)), t.data.length ? s("", !0) : (k(), c("tr",
|
|
9867
|
+
}), 128))]))), 128)), t.data.length ? s("", !0) : (k(), c("tr", Hg, [l("td", {
|
|
9832
9868
|
class: "is-empty",
|
|
9833
9869
|
colspan: t.columns.length
|
|
9834
|
-
}, " -- ", 8,
|
|
9870
|
+
}, " -- ", 8, Ug)]))])]));
|
|
9835
9871
|
}
|
|
9836
|
-
}),
|
|
9872
|
+
}), Gg = { class: "ai-flow-agent-node-detail" }, Kg = { class: "detail-title" }, qg = {
|
|
9837
9873
|
key: 1,
|
|
9838
9874
|
class: "detail-title-content"
|
|
9839
|
-
},
|
|
9875
|
+
}, Jg = { class: "detail-tab-bar" }, Yg = ["onClick"], Xg = { class: "detail-body" }, Zg = { class: "skeleton-section" }, Qg = { class: "skeleton-section" }, $g = { class: "info-form" }, e_ = { class: "info-label" }, t_ = { class: "info-value" }, n_ = { class: "info-row" }, r_ = { class: "info-label" }, i_ = { class: "info-value" }, a_ = {
|
|
9840
9876
|
key: 0,
|
|
9841
9877
|
class: "failure-item"
|
|
9842
|
-
},
|
|
9878
|
+
}, o_ = {
|
|
9843
9879
|
key: 1,
|
|
9844
9880
|
class: "failure-item"
|
|
9845
|
-
},
|
|
9881
|
+
}, s_ = { class: "info-row" }, c_ = { class: "info-label" }, l_ = { class: "info-value" }, u_ = {
|
|
9846
9882
|
key: 0,
|
|
9847
9883
|
class: "skeleton-section"
|
|
9848
|
-
},
|
|
9884
|
+
}, d_ = /* @__PURE__ */ function(e) {
|
|
9849
9885
|
return e.Config = "config", e.Output = "output", e;
|
|
9850
|
-
}(
|
|
9886
|
+
}(d_ || {}), f_ = /* @__PURE__ */ m({
|
|
9851
9887
|
__name: "flow-agent-node-detail",
|
|
9852
9888
|
props: {
|
|
9853
9889
|
data: {},
|
|
@@ -9860,10 +9896,10 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9860
9896
|
},
|
|
9861
9897
|
setup(t) {
|
|
9862
9898
|
let n = [{
|
|
9863
|
-
key:
|
|
9899
|
+
key: d_.Config,
|
|
9864
9900
|
label: K("节点配置")
|
|
9865
9901
|
}, {
|
|
9866
|
-
key:
|
|
9902
|
+
key: d_.Output,
|
|
9867
9903
|
label: K("节点输出")
|
|
9868
9904
|
}], r = [{
|
|
9869
9905
|
key: "key",
|
|
@@ -9892,7 +9928,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9892
9928
|
breakAll: !0,
|
|
9893
9929
|
key: "value",
|
|
9894
9930
|
label: K("参数值")
|
|
9895
|
-
}], p = { forced_fail: Mt ? "Force Fail" : "强制失败" }, m = t, h = F(
|
|
9931
|
+
}], p = { forced_fail: Mt ? "Force Fail" : "强制失败" }, m = t, h = F(d_.Config), g = a(() => {
|
|
9896
9932
|
var e;
|
|
9897
9933
|
return (e = m.data) == null ? void 0 : e.basic_info;
|
|
9898
9934
|
}), _ = a(() => {
|
|
@@ -9954,56 +9990,56 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
9954
9990
|
}), T = (e) => e == null ? "--" : typeof e == "object" ? JSON.stringify(e) : String(e);
|
|
9955
9991
|
return (a, p) => {
|
|
9956
9992
|
var m;
|
|
9957
|
-
return k(), c("div",
|
|
9958
|
-
l("h3",
|
|
9959
|
-
l("div",
|
|
9993
|
+
return k(), c("div", Gg, [
|
|
9994
|
+
l("h3", Kg, [t.loading ? (k(), c(e, { key: 0 }, [l("span", null, I(R(K)("节点")) + ":", 1), p[0] || (p[0] = l("span", { class: "skeleton-title ai-skeleton-element" }, null, -1))], 64)) : (k(), c("div", qg, I(R(K)("节点")) + ":" + I((m = g.value) == null ? void 0 : m.node_name), 1)), N(a.$slots, "locateButton")]),
|
|
9995
|
+
l("div", Jg, [(k(), c(e, null, M(n, (e) => l("div", {
|
|
9960
9996
|
key: e.key,
|
|
9961
9997
|
class: S(["detail-tab", { "is-active": h.value === e.key }]),
|
|
9962
9998
|
onClick: (t) => h.value = e.key
|
|
9963
|
-
}, [(k(), o(P(e.key ===
|
|
9964
|
-
l("div",
|
|
9999
|
+
}, [(k(), o(P(e.key === d_.Config ? R(Sn) : R(yn)), { class: "detail-tab-icon" })), d(" " + I(e.label), 1)], 10, Yg)), 64))]),
|
|
10000
|
+
l("div", Xg, [h.value === d_.Config ? (k(), c(e, { key: 0 }, [t.loading ? (k(), c(e, { key: 0 }, [l("div", Zg, [p[1] || (p[1] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, M(6, (e) => l("div", {
|
|
9965
10001
|
key: e,
|
|
9966
10002
|
class: "skeleton-row ai-skeleton-element"
|
|
9967
|
-
})), 64))]), l("div",
|
|
10003
|
+
})), 64))]), l("div", Qg, [p[2] || (p[2] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, M(4, (e) => l("div", {
|
|
9968
10004
|
key: e,
|
|
9969
10005
|
class: "skeleton-row ai-skeleton-element"
|
|
9970
10006
|
})), 64))])], 64)) : (k(), c(e, { key: 1 }, [
|
|
9971
|
-
f(
|
|
9972
|
-
default:
|
|
10007
|
+
f(Bg, { title: R(K)("基础信息") }, {
|
|
10008
|
+
default: H(() => {
|
|
9973
10009
|
var t, n, r;
|
|
9974
|
-
return [l("div",
|
|
10010
|
+
return [l("div", $g, [
|
|
9975
10011
|
(k(!0), c(e, null, M(_.value, (e) => (k(), c("div", {
|
|
9976
10012
|
key: e.label,
|
|
9977
10013
|
class: "info-row"
|
|
9978
|
-
}, [l("div",
|
|
9979
|
-
l("div",
|
|
9980
|
-
l("div",
|
|
10014
|
+
}, [l("div", e_, I(e.label), 1), l("div", t_, I(e.value), 1)]))), 128)),
|
|
10015
|
+
l("div", n_, [l("div", r_, I(R(K)("失败处理")), 1), l("div", i_, [v.value ? (k(), c(e, { key: 0 }, [(t = g.value) != null && t.skippable ? (k(), c("span", a_, [p[3] || (p[3] = l("span", { class: "tag-badge" }, "MS", -1)), d(" " + I(R(K)("手动跳过")) + 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", o_, [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))])]),
|
|
10016
|
+
l("div", s_, [l("div", c_, I(R(K)("超时控制")), 1), l("div", l_, I(b.value), 1)])
|
|
9981
10017
|
])];
|
|
9982
10018
|
}),
|
|
9983
10019
|
_: 1
|
|
9984
10020
|
}, 8, ["title"]),
|
|
9985
|
-
f(
|
|
9986
|
-
default:
|
|
10021
|
+
f(Bg, { title: R(K)("输入参数") }, {
|
|
10022
|
+
default: H(() => [f(Wg, {
|
|
9987
10023
|
columns: r,
|
|
9988
10024
|
data: x.value
|
|
9989
10025
|
}, null, 8, ["data"])]),
|
|
9990
10026
|
_: 1
|
|
9991
10027
|
}, 8, ["title"]),
|
|
9992
|
-
f(
|
|
9993
|
-
default:
|
|
10028
|
+
f(Bg, { title: R(K)("输出参数") }, {
|
|
10029
|
+
default: H(() => [f(Wg, {
|
|
9994
10030
|
columns: i,
|
|
9995
10031
|
data: C.value
|
|
9996
10032
|
}, null, 8, ["data"])]),
|
|
9997
10033
|
_: 1
|
|
9998
10034
|
}, 8, ["title"])
|
|
9999
|
-
], 64))], 64)) : (k(), c(e, { key: 1 }, [t.loading ? (k(), c("div",
|
|
10035
|
+
], 64))], 64)) : (k(), c(e, { key: 1 }, [t.loading ? (k(), c("div", u_, [p[5] || (p[5] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, M(5, (e) => l("div", {
|
|
10000
10036
|
key: e,
|
|
10001
10037
|
class: "skeleton-row ai-skeleton-element"
|
|
10002
|
-
})), 64))])) : (k(), o(
|
|
10038
|
+
})), 64))])) : (k(), o(Bg, {
|
|
10003
10039
|
key: 1,
|
|
10004
10040
|
title: R(K)("结构化输出")
|
|
10005
10041
|
}, {
|
|
10006
|
-
default:
|
|
10042
|
+
default: H(() => [f(Wg, {
|
|
10007
10043
|
columns: u,
|
|
10008
10044
|
data: w.value
|
|
10009
10045
|
}, null, 8, ["data"])]),
|
|
@@ -10012,7 +10048,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10012
10048
|
]);
|
|
10013
10049
|
};
|
|
10014
10050
|
}
|
|
10015
|
-
}),
|
|
10051
|
+
}), p_ = (e) => e.task_id == null ? "" : `${e.task_id}`, m_ = p_, h_ = (e, t) => e.task_id == null ? "" : `${e.task_id}|${t.id}|${t.name}`, g_ = (e) => {
|
|
10016
10052
|
let { messageUid: t, taskList: n } = e, r = oa(), i = ta(), o = a(() => {
|
|
10017
10053
|
var e, t;
|
|
10018
10054
|
return (e = (t = r.selectedTab.value) == null ? void 0 : t.name) == null ? "" : e;
|
|
@@ -10021,20 +10057,20 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10021
10057
|
}, l = a(() => {
|
|
10022
10058
|
if (s.value) return o.value;
|
|
10023
10059
|
let e = n.value.find((e) => e.is_active);
|
|
10024
|
-
return (e == null ? void 0 : e.task_id) == null ? o.value :
|
|
10060
|
+
return (e == null ? void 0 : e.task_id) == null ? o.value : p_(e);
|
|
10025
10061
|
}), u = (e) => {
|
|
10026
10062
|
let t = l.value;
|
|
10027
|
-
return t ===
|
|
10028
|
-
}, d = (e, t) => l.value ===
|
|
10063
|
+
return t === p_(e) || t === m_(e);
|
|
10064
|
+
}, d = (e, t) => l.value === h_(e, t), f = (e, n) => {
|
|
10029
10065
|
var i, a;
|
|
10030
10066
|
let o = e.task_id;
|
|
10031
10067
|
o != null && (c(), (i = r.addCustomTab) == null || i.call(r, {
|
|
10032
10068
|
closable: n.closable,
|
|
10033
10069
|
label: n.name,
|
|
10034
|
-
name:
|
|
10070
|
+
name: h_(e, n),
|
|
10035
10071
|
order: (a = n.tab_order) == null ? 100 : a,
|
|
10036
10072
|
data: {
|
|
10037
|
-
component:
|
|
10073
|
+
component: f_,
|
|
10038
10074
|
messageUid: t.value,
|
|
10039
10075
|
props: {
|
|
10040
10076
|
data: {},
|
|
@@ -10052,10 +10088,10 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10052
10088
|
a && (c(), (n = r.addCustomTab) == null || n.call(r, {
|
|
10053
10089
|
closable: e.closable,
|
|
10054
10090
|
label: K("有效证据"),
|
|
10055
|
-
name:
|
|
10091
|
+
name: m_(e),
|
|
10056
10092
|
order: (i = e.tab_order) == null ? 10 : i,
|
|
10057
10093
|
data: {
|
|
10058
|
-
component:
|
|
10094
|
+
component: f_,
|
|
10059
10095
|
messageUid: t.value,
|
|
10060
10096
|
props: {
|
|
10061
10097
|
data: {},
|
|
@@ -10067,17 +10103,17 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10067
10103
|
}
|
|
10068
10104
|
}));
|
|
10069
10105
|
};
|
|
10070
|
-
return
|
|
10106
|
+
return V(o, (e, t) => {
|
|
10071
10107
|
t !== void 0 && c();
|
|
10072
10108
|
}), E(() => {
|
|
10073
10109
|
i != null && i.value && p(n.value.find((e) => e.is_active && e.has_confidence));
|
|
10074
10110
|
}), O(() => {
|
|
10075
10111
|
if (i != null && i.value) for (let i of n.value) {
|
|
10076
10112
|
var e, t, a;
|
|
10077
|
-
(e = r.removeCustomTab) == null || e.call(r,
|
|
10113
|
+
(e = r.removeCustomTab) == null || e.call(r, p_(i)), (t = r.removeCustomTab) == null || t.call(r, m_(i));
|
|
10078
10114
|
for (let e of Object.values((a = i.nodes) == null ? {} : a)) {
|
|
10079
10115
|
var o;
|
|
10080
|
-
(o = r.removeCustomTab) == null || o.call(r,
|
|
10116
|
+
(o = r.removeCustomTab) == null || o.call(r, h_(i, e));
|
|
10081
10117
|
}
|
|
10082
10118
|
}
|
|
10083
10119
|
}), {
|
|
@@ -10088,7 +10124,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10088
10124
|
openConfidence: p,
|
|
10089
10125
|
openNodeDetail: f
|
|
10090
10126
|
};
|
|
10091
|
-
},
|
|
10127
|
+
}, __ = { class: "ai-activity-message-title-text" }, v_ = { class: "flow-agent-title-label" }, y_ = { class: "flow-agent-stat-tooltip" }, b_ = { class: "flow-agent-stat-tooltip-status" }, x_ = { class: "flow-agent-stat-tooltip-label" }, S_ = ["onClick"], C_ = { class: "flow-agent-task-state-icon" }, w_ = { class: "flow-agent-task-name" }, T_ = { class: "flow-agent-task-trailing" }, E_ = { class: "flow-agent-task-time" }, D_ = ["onClick"], O_ = { class: "flow-agent-task-nodes" }, k_ = { class: "flow-agent-node-status" }, A_ = ["title"], j_ = { class: "flow-agent-node-trailing" }, M_ = { class: "flow-agent-node-time" }, N_ = { class: "flow-agent-node-actions" }, P_ = ["onClick"], F_ = /* @__PURE__ */ m({
|
|
10092
10128
|
__name: "flow-agent-content",
|
|
10093
10129
|
props: /* @__PURE__ */ y({
|
|
10094
10130
|
content: {},
|
|
@@ -10101,23 +10137,23 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10101
10137
|
}),
|
|
10102
10138
|
emits: ["update:collapsed"],
|
|
10103
10139
|
setup(t) {
|
|
10104
|
-
let n = t, r = ja(), i =
|
|
10140
|
+
let n = t, r = ja(), i = ae(t, "collapsed"), u = Oa(), p = a(() => u.value === Qt.Share), m = a(() => n.status === Y.Pending || n.status === Y.Streaming), { isTaskExpanded: h, taskList: g, toggleTaskExpanded: _, viewTasks: v, visibleStats: y } = Ng(re(n, "content")), { isNodeSelected: x, isTaskSelected: C, openConfidence: T, openNodeDetail: E } = g_({
|
|
10105
10141
|
messageUid: re(n, "messageUid"),
|
|
10106
10142
|
taskList: g
|
|
10107
|
-
}), { getNodeActions: D, isNodePending: O } =
|
|
10143
|
+
}), { getNodeActions: D, isNodePending: O } = Ig({
|
|
10108
10144
|
hideResumeActions: p,
|
|
10109
10145
|
onInterruptResume: re(n, "onInterruptResume"),
|
|
10110
10146
|
openNodeDetail: E
|
|
10111
10147
|
}), A = (e) => {
|
|
10112
10148
|
e.disabled || e.run();
|
|
10113
10149
|
};
|
|
10114
|
-
return (t, n) => (k(), o(
|
|
10150
|
+
return (t, n) => (k(), o(Eg, {
|
|
10115
10151
|
collapsed: i.value,
|
|
10116
10152
|
"onUpdate:collapsed": n[0] || (n[0] = (e) => i.value = e),
|
|
10117
10153
|
"activity-type": R(Ft).FlowAgent,
|
|
10118
10154
|
class: "ai-flow-agent-activity"
|
|
10119
10155
|
}, {
|
|
10120
|
-
title:
|
|
10156
|
+
title: H(() => [f(R(Se), b({
|
|
10121
10157
|
class: "flow-agent-title-bar",
|
|
10122
10158
|
theme: "ai-chat-box-light light"
|
|
10123
10159
|
}, G(G({}, R(r)), {}, {
|
|
@@ -10126,11 +10162,11 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10126
10162
|
followCursor: !1,
|
|
10127
10163
|
offset: [0, 10]
|
|
10128
10164
|
})), {
|
|
10129
|
-
content:
|
|
10165
|
+
content: H(() => [l("div", y_, [(k(!0), c(e, null, M(R(y), (e) => (k(), c("div", {
|
|
10130
10166
|
key: e.key,
|
|
10131
10167
|
class: "flow-agent-stat-tooltip-item"
|
|
10132
10168
|
}, [
|
|
10133
|
-
l("span",
|
|
10169
|
+
l("span", b_, [e.key === "running" ? (k(), o(R(he), {
|
|
10134
10170
|
key: 0,
|
|
10135
10171
|
mode: "spin",
|
|
10136
10172
|
size: "mini",
|
|
@@ -10140,16 +10176,16 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10140
10176
|
class: "flow-agent-stat-dot",
|
|
10141
10177
|
style: w({ borderColor: e.dotColor })
|
|
10142
10178
|
}, null, 4))]),
|
|
10143
|
-
l("span",
|
|
10179
|
+
l("span", x_, I(e.label) + ":", 1),
|
|
10144
10180
|
l("span", {
|
|
10145
10181
|
class: "flow-agent-stat-tooltip-count",
|
|
10146
10182
|
style: w({ color: e.color })
|
|
10147
10183
|
}, I(e.display), 5)
|
|
10148
10184
|
]))), 128))])]),
|
|
10149
|
-
default:
|
|
10185
|
+
default: H(() => [l("span", { class: S(["ai-activity-message-title-icon", { "icon-collapsed": i.value }]) }, [m.value ? (k(), o(yi, {
|
|
10150
10186
|
key: 0,
|
|
10151
10187
|
size: 12
|
|
10152
|
-
})) : (k(), o(R(un), { key: 1 }))], 2), l("span",
|
|
10188
|
+
})) : (k(), o(R(un), { key: 1 }))], 2), l("span", __, [l("span", v_, I(R(K)("执行情况")) + ":", 1), (k(!0), c(e, null, M(R(y), (e) => (k(), c("span", {
|
|
10153
10189
|
key: e.key,
|
|
10154
10190
|
class: "flow-agent-stat-item"
|
|
10155
10191
|
}, [e.key === "running" ? (k(), o(R(he), {
|
|
@@ -10168,7 +10204,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10168
10204
|
}, I(e.display), 5)]))), 128))])]),
|
|
10169
10205
|
_: 1
|
|
10170
10206
|
}, 16)]),
|
|
10171
|
-
default:
|
|
10207
|
+
default: H(() => [(k(!0), c(e, null, M(R(v), (t) => {
|
|
10172
10208
|
var n;
|
|
10173
10209
|
return k(), c("div", {
|
|
10174
10210
|
key: t.taskId,
|
|
@@ -10179,28 +10215,28 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10179
10215
|
}]) }, [
|
|
10180
10216
|
l("span", {
|
|
10181
10217
|
class: S(["flow-agent-task-arrow", { "is-expanded": R(h)(t.raw) }]),
|
|
10182
|
-
onClick:
|
|
10183
|
-
}, [f(R(un))], 10,
|
|
10184
|
-
l("span",
|
|
10218
|
+
onClick: ue((e) => R(_)(t.raw), ["stop"])
|
|
10219
|
+
}, [f(R(un))], 10, S_),
|
|
10220
|
+
l("span", C_, [t.convergedState === "running" ? (k(), o(R(he), {
|
|
10185
10221
|
key: 0,
|
|
10186
10222
|
mode: "spin",
|
|
10187
10223
|
size: "mini",
|
|
10188
10224
|
theme: "primary"
|
|
10189
10225
|
})) : (k(), o(P(t.stateIcon), { key: 1 }))]),
|
|
10190
|
-
|
|
10191
|
-
l("span",
|
|
10226
|
+
U((k(), c("span", w_, [f(R(Cg), { text: t.taskName }, null, 8, ["text"])])), [[R(Pa), G({}, R(r))]]),
|
|
10227
|
+
l("span", T_, [l("span", E_, I(t.totalTimeText), 1), t.hasConfidence ? (k(), c("span", {
|
|
10192
10228
|
key: 0,
|
|
10193
10229
|
class: "flow-agent-task-action-btn flow-agent-task-confidence-btn",
|
|
10194
|
-
onClick:
|
|
10195
|
-
}, [f(R(yn)), d(" " + I((n = t.confidenceTitle) == null ? R(K)("有效证据") : n), 1)], 8,
|
|
10196
|
-
], 2),
|
|
10230
|
+
onClick: ue((e) => R(T)(t.raw), ["stop"])
|
|
10231
|
+
}, [f(R(yn)), d(" " + I((n = t.confidenceTitle) == null ? R(K)("有效证据") : n), 1)], 8, D_)) : s("", !0)])
|
|
10232
|
+
], 2), U(l("div", O_, [(k(!0), c(e, null, M(t.nodes, (n) => (k(), c("div", {
|
|
10197
10233
|
key: n.id,
|
|
10198
10234
|
class: S(["flow-agent-node-item", {
|
|
10199
10235
|
"is-selected": R(x)(t.raw, n.raw),
|
|
10200
10236
|
"is-pending": R(O)(t, n)
|
|
10201
10237
|
}])
|
|
10202
10238
|
}, [
|
|
10203
|
-
l("span",
|
|
10239
|
+
l("span", k_, [n.convergedState === "running" ? (k(), o(R(he), {
|
|
10204
10240
|
key: 0,
|
|
10205
10241
|
mode: "spin",
|
|
10206
10242
|
size: "mini",
|
|
@@ -10210,31 +10246,31 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10210
10246
|
class: "flow-agent-status-dot",
|
|
10211
10247
|
style: w({ borderColor: n.dotColor })
|
|
10212
10248
|
}, null, 4))]),
|
|
10213
|
-
|
|
10249
|
+
U((k(), c("span", {
|
|
10214
10250
|
class: "flow-agent-node-name",
|
|
10215
10251
|
title: n.name
|
|
10216
|
-
}, [f(R(
|
|
10217
|
-
l("span",
|
|
10252
|
+
}, [f(R(Cg), { text: n.name }, null, 8, ["text"])], 8, A_)), [[R(Pa), G({}, R(r))]]),
|
|
10253
|
+
l("span", j_, [l("span", M_, I(n.elapsedTimeText), 1), l("span", N_, [(k(!0), c(e, null, M(R(D)(t, n), (e) => U((k(), c("span", {
|
|
10218
10254
|
key: e.id,
|
|
10219
10255
|
class: S(["flow-agent-node-action-btn", { "is-disabled": e.disabled }]),
|
|
10220
|
-
onClick:
|
|
10256
|
+
onClick: ue((t) => A(e), ["stop"])
|
|
10221
10257
|
}, [e.loading ? (k(), o(R(he), {
|
|
10222
10258
|
key: 0,
|
|
10223
10259
|
class: "flow-agent-node-action-loading",
|
|
10224
10260
|
mode: "spin",
|
|
10225
10261
|
size: "mini",
|
|
10226
10262
|
theme: "primary"
|
|
10227
|
-
})) : (k(), o(P(e.icon), { key: 1 })), d(" " + I(e.label), 1)], 10,
|
|
10263
|
+
})) : (k(), o(P(e.icon), { key: 1 })), d(" " + I(e.label), 1)], 10, P_)), [[R(Ce), e.tooltip ? G(G({}, R(r)), {}, {
|
|
10228
10264
|
content: e.tooltip,
|
|
10229
10265
|
theme: "ai-chat-box",
|
|
10230
10266
|
offset: [0, 8]
|
|
10231
10267
|
}) : { content: "" }]])), 128))])])
|
|
10232
|
-
], 2))), 128))], 512), [[
|
|
10268
|
+
], 2))), 128))], 512), [[B, R(h)(t.raw)]])]);
|
|
10233
10269
|
}), 128))]),
|
|
10234
10270
|
_: 1
|
|
10235
10271
|
}, 8, ["collapsed", "activity-type"]));
|
|
10236
10272
|
}
|
|
10237
|
-
}),
|
|
10273
|
+
}), I_ = { class: "ai-activity-message-title-icon" }, L_ = { class: "ai-activity-message-title-text" }, R_ = { class: "ai-knowledge-rag-content" }, z_ = /* @__PURE__ */ m({
|
|
10238
10274
|
__name: "knowledge-rag-content",
|
|
10239
10275
|
props: /* @__PURE__ */ y({
|
|
10240
10276
|
content: {},
|
|
@@ -10246,23 +10282,23 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10246
10282
|
}),
|
|
10247
10283
|
emits: ["update:collapsed"],
|
|
10248
10284
|
setup(e) {
|
|
10249
|
-
let t = e, n =
|
|
10250
|
-
return (t, a) => (k(), o(
|
|
10285
|
+
let t = e, n = ae(e, "collapsed"), r = a(() => t.status === Y.Pending || t.status === Y.Streaming), i = a(() => r.value ? K("检索中") : K("检索完成"));
|
|
10286
|
+
return (t, a) => (k(), o(Eg, {
|
|
10251
10287
|
collapsed: n.value,
|
|
10252
10288
|
"onUpdate:collapsed": a[0] || (a[0] = (e) => n.value = e)
|
|
10253
10289
|
}, {
|
|
10254
|
-
title:
|
|
10290
|
+
title: H(() => [l("span", I_, [r.value ? (k(), o(yi, { key: 0 })) : (k(), o(R(on), {
|
|
10255
10291
|
key: 1,
|
|
10256
10292
|
style: { "font-size": "12px" }
|
|
10257
|
-
}))]), l("span",
|
|
10258
|
-
default:
|
|
10293
|
+
}))]), l("span", L_, I(i.value), 1)]),
|
|
10294
|
+
default: H(() => {
|
|
10259
10295
|
var t, n;
|
|
10260
|
-
return [l("div",
|
|
10296
|
+
return [l("div", R_, [f(Ju, { content: ((t = e.content) == null ? void 0 : t.content) || "" }, null, 8, ["content"])]), f(Xu, { content: ((n = e.content) == null ? void 0 : n.referenceDocument) || [] }, null, 8, ["content"])];
|
|
10261
10297
|
}),
|
|
10262
10298
|
_: 1
|
|
10263
10299
|
}, 8, ["collapsed"]));
|
|
10264
10300
|
}
|
|
10265
|
-
}),
|
|
10301
|
+
}), B_ = { class: "ai-activity-message-title-icon" }, V_ = { class: "ai-activity-message-title-text" }, H_ = /* @__PURE__ */ m({
|
|
10266
10302
|
__name: "reference-doc-content",
|
|
10267
10303
|
props: /* @__PURE__ */ y({
|
|
10268
10304
|
content: {},
|
|
@@ -10273,21 +10309,21 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10273
10309
|
}),
|
|
10274
10310
|
emits: ["update:collapsed"],
|
|
10275
10311
|
setup(e) {
|
|
10276
|
-
let t = e, n =
|
|
10312
|
+
let t = e, n = ae(e, "collapsed"), r = a(() => {
|
|
10277
10313
|
var e, n;
|
|
10278
10314
|
let r = (e = (n = t.content) == null ? void 0 : n.length) == null ? 0 : e;
|
|
10279
10315
|
return Mt ? `Reference ${r} documents as reference` : `引用 ${r} 篇资料作为参考`;
|
|
10280
10316
|
});
|
|
10281
|
-
return (t, i) => (k(), o(
|
|
10317
|
+
return (t, i) => (k(), o(Eg, {
|
|
10282
10318
|
collapsed: n.value,
|
|
10283
10319
|
"onUpdate:collapsed": i[0] || (i[0] = (e) => n.value = e)
|
|
10284
10320
|
}, {
|
|
10285
|
-
title:
|
|
10286
|
-
default:
|
|
10321
|
+
title: H(() => [l("span", B_, [f(R(on), { style: { "font-size": "12px" } })]), l("span", V_, I(r.value), 1)]),
|
|
10322
|
+
default: H(() => [f(Xu, { content: e.content || [] }, null, 8, ["content"])]),
|
|
10287
10323
|
_: 1
|
|
10288
10324
|
}, 8, ["collapsed"]));
|
|
10289
10325
|
}
|
|
10290
|
-
}),
|
|
10326
|
+
}), U_ = /* @__PURE__ */ m({
|
|
10291
10327
|
__name: "activity-message",
|
|
10292
10328
|
props: /* @__PURE__ */ y({
|
|
10293
10329
|
activityType: {},
|
|
@@ -10308,10 +10344,10 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10308
10344
|
emits: ["update:collapsed"],
|
|
10309
10345
|
setup(e) {
|
|
10310
10346
|
let t = {
|
|
10311
|
-
[Ft.FlowAgent]:
|
|
10312
|
-
[Ft.KnowledgeRag]:
|
|
10313
|
-
[Ft.ReferenceDocument]:
|
|
10314
|
-
}, n = e, r =
|
|
10347
|
+
[Ft.FlowAgent]: F_,
|
|
10348
|
+
[Ft.KnowledgeRag]: z_,
|
|
10349
|
+
[Ft.ReferenceDocument]: H_
|
|
10350
|
+
}, n = e, r = ae(e, "collapsed"), i = a(() => {
|
|
10315
10351
|
var e;
|
|
10316
10352
|
return t[(e = n.activityType) == null ? "" : e];
|
|
10317
10353
|
});
|
|
@@ -10331,7 +10367,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10331
10367
|
"status"
|
|
10332
10368
|
])) : s("", !0);
|
|
10333
10369
|
}
|
|
10334
|
-
}),
|
|
10370
|
+
}), W_ = { class: "ai-toolcall-desc" }, G_ = { class: "desc-title" }, K_ = ["title"], q_ = { class: "desc-panel" }, J_ = { class: "desc-label" }, Y_ = { class: "desc-value" }, X_ = /* @__PURE__ */ m({
|
|
10335
10371
|
__name: "desc-panel",
|
|
10336
10372
|
props: {
|
|
10337
10373
|
desc: {},
|
|
@@ -10347,24 +10383,24 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10347
10383
|
}), p = () => {
|
|
10348
10384
|
n.desc && r(n.desc);
|
|
10349
10385
|
};
|
|
10350
|
-
return (n, r) => (k(), c("div",
|
|
10386
|
+
return (n, r) => (k(), c("div", W_, [l("div", G_, [d(I(t.title) + " ", 1), t.desc ? (k(), c("span", {
|
|
10351
10387
|
key: 0,
|
|
10352
10388
|
class: "desc-copy",
|
|
10353
10389
|
title: R(K)("复制"),
|
|
10354
10390
|
onClick: p
|
|
10355
|
-
}, [f(R($r))], 8,
|
|
10391
|
+
}, [f(R($r))], 8, K_)) : s("", !0)]), l("div", q_, [u.value !== null && typeof u.value == "object" ? (k(!0), c(e, { key: 0 }, M(u.value, (e, t) => (k(), c("div", {
|
|
10356
10392
|
key: t,
|
|
10357
10393
|
class: "desc-panel-item"
|
|
10358
|
-
}, [l("span",
|
|
10394
|
+
}, [l("span", J_, [f(R(Cg), { text: String(t) }, null, 8, ["text"]), r[0] || (r[0] = d(":", -1))]), l("span", Y_, [f(R(Cg), {
|
|
10359
10395
|
style: { "word-break": "break-all" },
|
|
10360
10396
|
text: i(e)
|
|
10361
|
-
}, null, 8, ["text"])])]))), 128)) : (k(), o(R(
|
|
10397
|
+
}, null, 8, ["text"])])]))), 128)) : (k(), o(R(Cg), {
|
|
10362
10398
|
key: 1,
|
|
10363
10399
|
style: { wordBreak: "break-all" },
|
|
10364
10400
|
text: i(u.value)
|
|
10365
10401
|
}, null, 8, ["text"]))])]));
|
|
10366
10402
|
}
|
|
10367
|
-
}),
|
|
10403
|
+
}), Z_ = { class: "ai-tool-message" }, Q_ = /* @__PURE__ */ m({
|
|
10368
10404
|
__name: "tool-message",
|
|
10369
10405
|
props: {
|
|
10370
10406
|
duration: {},
|
|
@@ -10381,15 +10417,15 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10381
10417
|
property: {}
|
|
10382
10418
|
},
|
|
10383
10419
|
setup(e) {
|
|
10384
|
-
return (t, n) => (k(), c("div",
|
|
10420
|
+
return (t, n) => (k(), c("div", Z_, [f(X_, {
|
|
10385
10421
|
desc: e.content || (typeof e.error == "string" ? e.error : void 0),
|
|
10386
10422
|
title: R(K)("返回内容")
|
|
10387
10423
|
}, null, 8, ["desc", "title"])]));
|
|
10388
10424
|
}
|
|
10389
|
-
}),
|
|
10425
|
+
}), $_ = { class: "ai-toolcall-render" }, ev = { class: "toolcall-header-text" }, tv = {
|
|
10390
10426
|
key: 0,
|
|
10391
10427
|
class: "toolcall-header-status"
|
|
10392
|
-
},
|
|
10428
|
+
}, nv = { class: "ai-toolcall-render-content" }, rv = /* @__PURE__ */ m({
|
|
10393
10429
|
__name: "toolcall-render",
|
|
10394
10430
|
props: {
|
|
10395
10431
|
duration: {},
|
|
@@ -10440,12 +10476,12 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10440
10476
|
});
|
|
10441
10477
|
return (n, r) => {
|
|
10442
10478
|
var i, a, p;
|
|
10443
|
-
return k(), c("div",
|
|
10479
|
+
return k(), c("div", $_, [l("div", {
|
|
10444
10480
|
class: S(["ai-toolcall-render-header", { "is-expanded": !h.value }]),
|
|
10445
10481
|
onClick: g
|
|
10446
10482
|
}, [
|
|
10447
10483
|
f(R(bn)),
|
|
10448
|
-
|
|
10484
|
+
U((k(), c("span", ev, [l("span", { class: S(["toolcall-header-title", { "is-loading": y.value }]) }, [d(I(y.value ? T.value : w.value) + " ", 1), f(R(Cg), { text: E.value }, null, 8, ["text"])], 2), D.value ? (k(), c("span", tv, [
|
|
10449
10485
|
r[0] || (r[0] = d("\xA0(\xA0", -1)),
|
|
10450
10486
|
l("span", { class: S(["toolcall-header-result", v.value ? "is-error" : "is-success"]) }, I(D.value), 3),
|
|
10451
10487
|
O.value ? (k(), c(e, { key: 0 }, [d("," + I(R(K)("耗时")) + ":" + I(O.value), 1)], 64)) : s("", !0),
|
|
@@ -10458,20 +10494,20 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10458
10494
|
key: 0,
|
|
10459
10495
|
class: S({ "is-expanded": !h.value })
|
|
10460
10496
|
}, null, 8, ["class"]))
|
|
10461
|
-
], 2),
|
|
10462
|
-
f(
|
|
10497
|
+
], 2), U(l("div", nv, [
|
|
10498
|
+
f(X_, {
|
|
10463
10499
|
desc: (i = t.toolCall) == null ? void 0 : i.function.description,
|
|
10464
10500
|
title: R(K)("描述")
|
|
10465
10501
|
}, null, 8, ["desc", "title"]),
|
|
10466
|
-
f(
|
|
10502
|
+
f(X_, {
|
|
10467
10503
|
desc: (a = t.toolCall) == null ? void 0 : a.function.arguments,
|
|
10468
10504
|
title: R(K)("参数")
|
|
10469
10505
|
}, null, 8, ["desc", "title"]),
|
|
10470
|
-
(p = t.toolCall) != null && p.toolMessage ? (k(), o(
|
|
10471
|
-
], 512), [[
|
|
10506
|
+
(p = t.toolCall) != null && p.toolMessage ? (k(), o(Q_, C(b({ key: 0 }, t.toolCall.toolMessage)), null, 16)) : s("", !0)
|
|
10507
|
+
], 512), [[B, !h.value]])]);
|
|
10472
10508
|
};
|
|
10473
10509
|
}
|
|
10474
|
-
}),
|
|
10510
|
+
}), iv = { class: "ai-message-artifacts" }, av = /* @__PURE__ */ m({
|
|
10475
10511
|
__name: "message-artifacts",
|
|
10476
10512
|
props: {
|
|
10477
10513
|
artifacts: {},
|
|
@@ -10479,7 +10515,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10479
10515
|
onPreview: { type: Function }
|
|
10480
10516
|
},
|
|
10481
10517
|
setup(t) {
|
|
10482
|
-
return (n, r) => (k(), c("div",
|
|
10518
|
+
return (n, r) => (k(), c("div", iv, [(k(!0), c(e, null, M(t.artifacts, (e) => (k(), o(Sm, {
|
|
10483
10519
|
key: e.outputId,
|
|
10484
10520
|
file: e,
|
|
10485
10521
|
"on-download": t.onDownload,
|
|
@@ -10490,13 +10526,13 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10490
10526
|
"on-preview"
|
|
10491
10527
|
]))), 128))]));
|
|
10492
10528
|
}
|
|
10493
|
-
}),
|
|
10529
|
+
}), ov = { class: "ai-assistant-message" }, sv = {
|
|
10494
10530
|
key: 0,
|
|
10495
10531
|
class: "ai-assistant-message-content"
|
|
10496
|
-
},
|
|
10532
|
+
}, cv = {
|
|
10497
10533
|
key: 1,
|
|
10498
10534
|
class: "ai-assistant-message-toolcalls"
|
|
10499
|
-
},
|
|
10535
|
+
}, lv = /* @__PURE__ */ m({
|
|
10500
10536
|
__name: "assistant-message",
|
|
10501
10537
|
props: {
|
|
10502
10538
|
content: {},
|
|
@@ -10514,8 +10550,8 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10514
10550
|
var e;
|
|
10515
10551
|
return (e = n.property) == null ? void 0 : e.artifacts;
|
|
10516
10552
|
});
|
|
10517
|
-
return (n, i) => (k(), c("div",
|
|
10518
|
-
t.content ? (k(), c("div",
|
|
10553
|
+
return (n, i) => (k(), c("div", ov, [
|
|
10554
|
+
t.content ? (k(), c("div", sv, [N(n.$slots, "default", C(h({ content: t.content })), () => [f(Zu, {
|
|
10519
10555
|
content: t.content || "",
|
|
10520
10556
|
status: t.status,
|
|
10521
10557
|
type: R(Ft).Text
|
|
@@ -10524,21 +10560,21 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10524
10560
|
"status",
|
|
10525
10561
|
"type"
|
|
10526
10562
|
])])])) : s("", !0),
|
|
10527
|
-
t.toolCalls && t.toolCalls.length > 0 ? (k(), c("div",
|
|
10563
|
+
t.toolCalls && t.toolCalls.length > 0 ? (k(), c("div", cv, [(k(!0), c(e, null, M(t.toolCalls, (e) => {
|
|
10528
10564
|
var n;
|
|
10529
|
-
return k(), o(
|
|
10565
|
+
return k(), o(rv, {
|
|
10530
10566
|
key: e.id,
|
|
10531
10567
|
status: e.toolMessage ? e.toolMessage.error ? R(Y).Error : (n = e.toolMessage.status) == null ? t.status : n : R(Y).Pending,
|
|
10532
10568
|
"tool-call": e
|
|
10533
10569
|
}, null, 8, ["status", "tool-call"]);
|
|
10534
10570
|
}), 128))])) : s("", !0),
|
|
10535
|
-
r.value && r.value.length > 0 ? (k(), o(
|
|
10571
|
+
r.value && r.value.length > 0 ? (k(), o(av, {
|
|
10536
10572
|
key: 2,
|
|
10537
10573
|
artifacts: r.value
|
|
10538
10574
|
}, null, 8, ["artifacts"])) : s("", !0)
|
|
10539
10575
|
]));
|
|
10540
10576
|
}
|
|
10541
|
-
}),
|
|
10577
|
+
}), uv = { class: "ai-info-message" }, dv = { class: "ai-info-message-body" }, fv = /* @__PURE__ */ m({
|
|
10542
10578
|
__name: "info-message",
|
|
10543
10579
|
props: {
|
|
10544
10580
|
content: {},
|
|
@@ -10552,18 +10588,18 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10552
10588
|
property: {}
|
|
10553
10589
|
},
|
|
10554
10590
|
setup(t) {
|
|
10555
|
-
return (n, r) => (k(), c("div",
|
|
10591
|
+
return (n, r) => (k(), c("div", uv, [l("div", dv, [(k(!0), c(e, null, M(Array.isArray(t.content) ? t.content : [t.content], (e, t) => (k(), c("div", {
|
|
10556
10592
|
key: t,
|
|
10557
10593
|
class: "ai-info-message-content"
|
|
10558
10594
|
}, I(e), 1))), 128))])]));
|
|
10559
10595
|
}
|
|
10560
|
-
}),
|
|
10596
|
+
}), pv = { class: "ai-tool-approval-card" }, mv = { class: "ai-tool-approval-card__header" }, hv = { class: "ai-tool-approval-card__title-wrap" }, gv = { class: "ai-tool-approval-card__title" }, _v = { class: "ai-tool-approval-card__fields" }, vv = { class: "ai-tool-approval-card__field" }, yv = { class: "ai-tool-approval-card__field" }, bv = {
|
|
10561
10597
|
key: 0,
|
|
10562
10598
|
class: "ai-tool-approval-card__processor"
|
|
10563
|
-
},
|
|
10599
|
+
}, xv = { class: "ai-tool-approval-card__processor-text" }, Sv = { class: "ai-tool-approval-card__actions" }, Cv = {
|
|
10564
10600
|
key: 1,
|
|
10565
10601
|
class: "ai-tool-approval-card__cancel-wrap"
|
|
10566
|
-
},
|
|
10602
|
+
}, wv = 2e3, Tv = /* @__PURE__ */ m({
|
|
10567
10603
|
__name: "tool-approval-card",
|
|
10568
10604
|
props: {
|
|
10569
10605
|
interrupt: {},
|
|
@@ -10604,7 +10640,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10604
10640
|
}, A = F(!1), ee = F(!1), j, te = () => {
|
|
10605
10641
|
ee.value = !0, clearTimeout(j), j = setTimeout(() => {
|
|
10606
10642
|
ee.value = !1;
|
|
10607
|
-
},
|
|
10643
|
+
}, wv);
|
|
10608
10644
|
}, M = () => {
|
|
10609
10645
|
var e;
|
|
10610
10646
|
A.value || (A.value = !0, te(), (e = t.onInterruptResume) == null || e.call(t, {
|
|
@@ -10618,11 +10654,11 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10618
10654
|
payload: { interrupt_id: t.interrupt.id }
|
|
10619
10655
|
}, t.interrupt));
|
|
10620
10656
|
};
|
|
10621
|
-
return O(() => clearTimeout(j)), (t, r) => (k(), c("section",
|
|
10622
|
-
l("header",
|
|
10657
|
+
return O(() => clearTimeout(j)), (t, r) => (k(), c("section", pv, [
|
|
10658
|
+
l("header", mv, [l("div", hv, [
|
|
10623
10659
|
r[0] || (r[0] = l("span", { class: "ai-tool-approval-card__title-bar" }, null, -1)),
|
|
10624
|
-
l("span",
|
|
10625
|
-
|
|
10660
|
+
l("span", gv, I(h.value.title || R(K)("算法方案评审单")), 1),
|
|
10661
|
+
U(f(R($r), {
|
|
10626
10662
|
class: S(["ai-tool-approval-card__copy-icon", { "is-disabled": !C.value }]),
|
|
10627
10663
|
onClick: D
|
|
10628
10664
|
}, null, 8, ["class"]), [[R(Ce), G(G({}, R(n)), {}, {
|
|
@@ -10630,7 +10666,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10630
10666
|
theme: "ai-chat-box",
|
|
10631
10667
|
offset: [0, 8]
|
|
10632
10668
|
})]]),
|
|
10633
|
-
v.value && !e.readonly ?
|
|
10669
|
+
v.value && !e.readonly ? U((k(), o(R(ti), {
|
|
10634
10670
|
key: 0,
|
|
10635
10671
|
class: S(["ai-tool-approval-card__refresh-icon", { "is-disabled": ee.value || i.value }]),
|
|
10636
10672
|
onClick: N
|
|
@@ -10655,17 +10691,17 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10655
10691
|
size: "mini",
|
|
10656
10692
|
theme: "primary"
|
|
10657
10693
|
})), d(" " + I(b.value), 1)], 2)]),
|
|
10658
|
-
l("dl",
|
|
10659
|
-
v.value ? (k(), c("div",
|
|
10660
|
-
l("div",
|
|
10694
|
+
l("dl", _v, [l("div", vv, [l("dt", null, I(R(K)("单据编号")), 1), l("dd", null, I(h.value.sn || "--"), 1)]), l("div", yv, [l("dt", null, I(R(K)("提交时间")), 1), l("dd", null, I(h.value.submit_time || "--"), 1)])]),
|
|
10695
|
+
v.value ? (k(), c("div", bv, [f(R(Nr), { class: "ai-tool-approval-card__processor-icon" }), U((k(), c("span", xv, [d(I(R(K)("当前处理人")) + ":" + I(x.value), 1)])), [[R(Pa), G({}, R(n))]])])) : s("", !0),
|
|
10696
|
+
l("div", Sv, [f(R(W), {
|
|
10661
10697
|
class: "ai-tool-approval-card__detail",
|
|
10662
10698
|
disabled: !h.value.url,
|
|
10663
10699
|
theme: "primary",
|
|
10664
10700
|
onClick: E
|
|
10665
10701
|
}, {
|
|
10666
|
-
default:
|
|
10702
|
+
default: H(() => [d(I(R(K)("查看单据详情")) + " ", 1), f(R(Sr), { class: "ai-tool-approval-card__detail-icon" })]),
|
|
10667
10703
|
_: 1
|
|
10668
|
-
}, 8, ["disabled"]), v.value && !e.readonly ? (k(), o(R(
|
|
10704
|
+
}, 8, ["disabled"]), v.value && !e.readonly ? (k(), o(R(W), {
|
|
10669
10705
|
key: 0,
|
|
10670
10706
|
class: "ai-tool-approval-card__cancel",
|
|
10671
10707
|
disabled: A.value || i.value,
|
|
@@ -10674,14 +10710,14 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10674
10710
|
theme: "primary",
|
|
10675
10711
|
onClick: M
|
|
10676
10712
|
}, {
|
|
10677
|
-
default:
|
|
10713
|
+
default: H(() => [d(I(R(K)("取消审批")), 1)]),
|
|
10678
10714
|
_: 1
|
|
10679
|
-
}, 8, ["disabled", "loading"])) : e.readonly ? s("", !0) :
|
|
10715
|
+
}, 8, ["disabled", "loading"])) : e.readonly ? s("", !0) : U((k(), c("span", Cv, [f(R(W), {
|
|
10680
10716
|
class: "ai-tool-approval-card__cancel",
|
|
10681
10717
|
disabled: "",
|
|
10682
10718
|
outline: ""
|
|
10683
10719
|
}, {
|
|
10684
|
-
default:
|
|
10720
|
+
default: H(() => [d(I(w.value), 1)]),
|
|
10685
10721
|
_: 1
|
|
10686
10722
|
})])), [[R(Ce), G(G({}, R(n)), {}, {
|
|
10687
10723
|
content: T.value,
|
|
@@ -10690,13 +10726,13 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10690
10726
|
})]])])
|
|
10691
10727
|
]));
|
|
10692
10728
|
}
|
|
10693
|
-
}),
|
|
10729
|
+
}), Ev = { class: "ai-interrupt-message" }, Dv = {
|
|
10694
10730
|
key: 0,
|
|
10695
10731
|
class: "ai-interrupt-message__content"
|
|
10696
|
-
},
|
|
10732
|
+
}, Ov = {
|
|
10697
10733
|
key: 1,
|
|
10698
10734
|
class: "ai-interrupt-message__fallback"
|
|
10699
|
-
},
|
|
10735
|
+
}, kv = /* @__PURE__ */ m({
|
|
10700
10736
|
__name: "interrupt-message",
|
|
10701
10737
|
props: {
|
|
10702
10738
|
content: {},
|
|
@@ -10711,14 +10747,14 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10711
10747
|
onInterruptResume: { type: Function }
|
|
10712
10748
|
},
|
|
10713
10749
|
setup(t) {
|
|
10714
|
-
let n = { [Pt.AIDevToolApproval]:
|
|
10750
|
+
let n = { [Pt.AIDevToolApproval]: Tv }, r = (e) => ({
|
|
10715
10751
|
id: e.interruptId || e.id || "",
|
|
10716
10752
|
reason: Pt.AIDevToolApproval,
|
|
10717
10753
|
toolCallId: "",
|
|
10718
10754
|
metadata: e.payload.metadata
|
|
10719
10755
|
}), i = {
|
|
10720
10756
|
[Pt.AIDevToolApproval]: (e) => ({
|
|
10721
|
-
component:
|
|
10757
|
+
component: Tv,
|
|
10722
10758
|
props: {
|
|
10723
10759
|
interrupt: r(e),
|
|
10724
10760
|
onInterruptResume: d.onInterruptResume,
|
|
@@ -10728,7 +10764,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10728
10764
|
[Pt.UserQuestion]: (e) => {
|
|
10729
10765
|
var t, n;
|
|
10730
10766
|
return {
|
|
10731
|
-
component:
|
|
10767
|
+
component: Th,
|
|
10732
10768
|
props: {
|
|
10733
10769
|
answers: (t = (n = e.payload) == null ? void 0 : n.answers) == null ? [] : t,
|
|
10734
10770
|
status: e.status
|
|
@@ -10747,33 +10783,33 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10747
10783
|
let r = (t = d.content) == null ? void 0 : t.result;
|
|
10748
10784
|
if (r) return (n = i[r.reason]) == null ? void 0 : n.call(i, r);
|
|
10749
10785
|
});
|
|
10750
|
-
return (n, r) => (k(), c("div",
|
|
10751
|
-
p.value ? (k(), c("div",
|
|
10786
|
+
return (n, r) => (k(), c("div", Ev, [
|
|
10787
|
+
p.value ? (k(), c("div", Dv, I(p.value), 1)) : s("", !0),
|
|
10752
10788
|
(k(!0), c(e, null, M(f.value, (n) => (k(), c(e, { key: n.toolCallId }, [m(n) ? (k(), o(P(m(n)), {
|
|
10753
10789
|
key: 0,
|
|
10754
10790
|
interrupt: n,
|
|
10755
10791
|
"on-interrupt-resume": t.onInterruptResume
|
|
10756
|
-
}, null, 40, ["interrupt", "on-interrupt-resume"])) : g(n) ? s("", !0) : (k(), c("div",
|
|
10792
|
+
}, null, 40, ["interrupt", "on-interrupt-resume"])) : g(n) ? s("", !0) : (k(), c("div", Ov, I(n.message || R(K)("暂不支持的中断消息")), 1))], 64))), 128)),
|
|
10757
10793
|
_.value ? (k(), o(P(_.value.component), C(b({ key: 1 }, _.value.props)), u({ _: 2 }, [n.$slots.answeredQuestion ? {
|
|
10758
10794
|
name: "answer",
|
|
10759
|
-
fn:
|
|
10795
|
+
fn: H((e) => [N(n.$slots, "answeredQuestion", C(h(e)))]),
|
|
10760
10796
|
key: "0"
|
|
10761
10797
|
} : void 0]), 1040)) : s("", !0)
|
|
10762
10798
|
]));
|
|
10763
10799
|
}
|
|
10764
|
-
}),
|
|
10800
|
+
}), Av = { class: "ai-loading-message" }, jv = /* @__PURE__ */ m({
|
|
10765
10801
|
__name: "loading-message",
|
|
10766
10802
|
setup(e) {
|
|
10767
10803
|
let t = ta();
|
|
10768
10804
|
return E(() => {
|
|
10769
10805
|
var e, n;
|
|
10770
10806
|
t == null || (e = t.value) == null || (n = e.jumpToBottom) == null || n.call(e);
|
|
10771
|
-
}), (e, t) => (k(), c("div",
|
|
10807
|
+
}), (e, t) => (k(), c("div", Av, [f(yi, { size: 18 }), N(e.$slots, "default", {}, () => [d(I(R(K)("请求中...")), 1)])]));
|
|
10772
10808
|
}
|
|
10773
|
-
}),
|
|
10809
|
+
}), Mv = { class: "ai-reasoning-message" }, Nv = {
|
|
10774
10810
|
key: 0,
|
|
10775
10811
|
class: "ai-reasoning-message-title-icon"
|
|
10776
|
-
},
|
|
10812
|
+
}, Pv = { class: "ai-reasoning-message-title-text" }, Fv = { class: "ai-reasoning-message-content" }, Iv = /* @__PURE__ */ m({
|
|
10777
10813
|
__name: "reasoning-message",
|
|
10778
10814
|
props: /* @__PURE__ */ y({
|
|
10779
10815
|
duration: {},
|
|
@@ -10792,7 +10828,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10792
10828
|
}),
|
|
10793
10829
|
emits: ["update:collapsed"],
|
|
10794
10830
|
setup(t) {
|
|
10795
|
-
let n = t, r =
|
|
10831
|
+
let n = t, r = ae(t, "collapsed"), { stop: i } = V(() => n.duration, function() {
|
|
10796
10832
|
var e = Z(function* (e) {
|
|
10797
10833
|
e && (r.value = !0, yield x(), i == null || i());
|
|
10798
10834
|
});
|
|
@@ -10810,7 +10846,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10810
10846
|
});
|
|
10811
10847
|
return (n, i) => {
|
|
10812
10848
|
var a;
|
|
10813
|
-
return k(), c("div",
|
|
10849
|
+
return k(), c("div", Mv, [l("div", {
|
|
10814
10850
|
class: S(["ai-reasoning-message-title", {
|
|
10815
10851
|
"ai-reasoning-message-title-collapsed": r.value,
|
|
10816
10852
|
"is-thinking": t.status === R(Y).Pending || t.status === R(Y).Streaming,
|
|
@@ -10819,47 +10855,47 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10819
10855
|
}]),
|
|
10820
10856
|
onClick: i[0] || (i[0] = (e) => r.value = !r.value)
|
|
10821
10857
|
}, [
|
|
10822
|
-
t.status === R(Y).Pending || t.status === R(Y).Streaming ? (k(), c("span",
|
|
10823
|
-
l("span",
|
|
10858
|
+
t.status === R(Y).Pending || t.status === R(Y).Streaming ? (k(), c("span", Nv, [f(yi)])) : s("", !0),
|
|
10859
|
+
l("span", Pv, I(u.value), 1),
|
|
10824
10860
|
l("span", { class: S(["ai-reasoning-message-title-icon collapsed-icon", { "is-collapsed": r.value }]) }, [f(R(Ur))], 2)
|
|
10825
|
-
], 2),
|
|
10861
|
+
], 2), U(l("div", Fv, [t.status === R(Y).Error ? (k(), o(ku, {
|
|
10826
10862
|
key: 0,
|
|
10827
10863
|
content: ((a = t.content) == null ? void 0 : a.join("\n")) || ""
|
|
10828
10864
|
}, null, 8, ["content"])) : (k(!0), c(e, { key: 1 }, M(Array.isArray(t.content) ? t.content : [t.content], (e) => (k(), o(Ju, {
|
|
10829
10865
|
key: e,
|
|
10830
10866
|
content: e
|
|
10831
|
-
}, null, 8, ["content"]))), 128))], 512), [[
|
|
10867
|
+
}, null, 8, ["content"]))), 128))], 512), [[B, !r.value]])]);
|
|
10832
10868
|
};
|
|
10833
10869
|
}
|
|
10834
|
-
}),
|
|
10870
|
+
}), Lv = { class: "ai-key-value-content" }, Rv = {
|
|
10835
10871
|
key: 0,
|
|
10836
10872
|
class: "ai-key-value-title"
|
|
10837
|
-
},
|
|
10873
|
+
}, zv = { class: "ai-key-value-content" }, Bv = { class: "item-key" }, Vv = { class: "item-value" }, Hv = /* @__PURE__ */ m({
|
|
10838
10874
|
__name: "key-value-content",
|
|
10839
10875
|
props: {
|
|
10840
10876
|
content: {},
|
|
10841
10877
|
title: {}
|
|
10842
10878
|
},
|
|
10843
10879
|
setup(t) {
|
|
10844
|
-
return (n, r) => (k(), c("div",
|
|
10880
|
+
return (n, r) => (k(), c("div", Lv, [t.title ? (k(), c("div", Rv, [f(R(Hr)), d(" " + I(t.title), 1)])) : s("", !0), l("div", zv, [(k(!0), c(e, null, M(t.content, (e) => (k(), c("div", {
|
|
10845
10881
|
key: e.key,
|
|
10846
10882
|
class: "key-value-item"
|
|
10847
10883
|
}, [
|
|
10848
|
-
l("div",
|
|
10884
|
+
l("div", Bv, I(e.key), 1),
|
|
10849
10885
|
r[0] || (r[0] = d(" : ", -1)),
|
|
10850
|
-
l("div",
|
|
10886
|
+
l("div", Vv, I(e.value), 1)
|
|
10851
10887
|
]))), 128))])]));
|
|
10852
10888
|
}
|
|
10853
|
-
}),
|
|
10889
|
+
}), Uv = { class: "ai-text-content" }, Wv = /* @__PURE__ */ m({
|
|
10854
10890
|
__name: "text-content",
|
|
10855
10891
|
props: { content: {} },
|
|
10856
10892
|
setup(e) {
|
|
10857
|
-
return (t, n) => (k(), c("div",
|
|
10893
|
+
return (t, n) => (k(), c("div", Uv, I(e.content), 1));
|
|
10858
10894
|
}
|
|
10859
|
-
}),
|
|
10895
|
+
}), Gv = { class: "ai-user-message" }, Kv = {
|
|
10860
10896
|
key: 1,
|
|
10861
10897
|
class: "ai-user-message-content"
|
|
10862
|
-
},
|
|
10898
|
+
}, qv = { class: "user-edit-footer" }, Jv = /* @__PURE__ */ m({
|
|
10863
10899
|
__name: "user-message",
|
|
10864
10900
|
props: {
|
|
10865
10901
|
content: {},
|
|
@@ -10879,7 +10915,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10879
10915
|
onShortcutConfirm: { type: Function }
|
|
10880
10916
|
},
|
|
10881
10917
|
setup(t) {
|
|
10882
|
-
let n = t, r = da(), { copy: i } = Yi(), u = a(() => et(qt, n.messageTools)), p = F(!1), m = F(""), h =
|
|
10918
|
+
let n = t, r = da(), { copy: i } = Yi(), u = a(() => et(qt, n.messageTools)), p = F(!1), m = F(""), h = z("chatInputRef"), g = a(() => {
|
|
10883
10919
|
var e;
|
|
10884
10920
|
let t = (e = n.property) == null || (e = e.extra) == null ? void 0 : e.cite;
|
|
10885
10921
|
if (!(!t || typeof t == "string")) return t.title;
|
|
@@ -10964,7 +11000,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10964
11000
|
}();
|
|
10965
11001
|
return (n, i) => {
|
|
10966
11002
|
var a, O;
|
|
10967
|
-
return k(), c("div",
|
|
11003
|
+
return k(), c("div", Gv, [_.value && typeof _.value == "string" ? (k(), o(Lf, {
|
|
10968
11004
|
key: 0,
|
|
10969
11005
|
class: "ai-user-message-cite",
|
|
10970
11006
|
content: _.value
|
|
@@ -10972,7 +11008,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10972
11008
|
class: "user-shortcut-render",
|
|
10973
11009
|
onClose: T,
|
|
10974
11010
|
onSubmit: E
|
|
10975
|
-
}), null, 16)) : (k(), o(
|
|
11011
|
+
}), null, 16)) : (k(), o(gm, {
|
|
10976
11012
|
key: 1,
|
|
10977
11013
|
ref_key: "chatInputRef",
|
|
10978
11014
|
ref: h,
|
|
@@ -10983,18 +11019,18 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
10983
11019
|
"on-send-message": D,
|
|
10984
11020
|
"support-upload": (a = (O = R(r)) == null ? void 0 : O.supportUpload.value) == null ? !1 : a
|
|
10985
11021
|
}, {
|
|
10986
|
-
"send-icon":
|
|
11022
|
+
"send-icon": H(() => [l("div", qv, [f(R(W), {
|
|
10987
11023
|
size: "small",
|
|
10988
11024
|
onClick: w
|
|
10989
11025
|
}, {
|
|
10990
|
-
default:
|
|
11026
|
+
default: H(() => [d(I(R(K)("取消")), 1)]),
|
|
10991
11027
|
_: 1
|
|
10992
|
-
}), f(R(
|
|
11028
|
+
}), f(R(W), {
|
|
10993
11029
|
size: "small",
|
|
10994
11030
|
theme: "primary",
|
|
10995
11031
|
onClick: C
|
|
10996
11032
|
}, {
|
|
10997
|
-
default:
|
|
11033
|
+
default: H(() => [d(I(R(K)("发送")), 1)]),
|
|
10998
11034
|
_: 1
|
|
10999
11035
|
})])]),
|
|
11000
11036
|
_: 1
|
|
@@ -11003,22 +11039,22 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11003
11039
|
"default-upload-files",
|
|
11004
11040
|
"support-upload"
|
|
11005
11041
|
]))], 64)) : (k(), c(e, { key: 1 }, [
|
|
11006
|
-
y.value.length ? (k(), o(
|
|
11042
|
+
y.value.length ? (k(), o(bp, {
|
|
11007
11043
|
key: 0,
|
|
11008
11044
|
class: "ai-user-message-binary-files",
|
|
11009
11045
|
files: y.value,
|
|
11010
11046
|
readonly: !0,
|
|
11011
11047
|
variant: "message"
|
|
11012
11048
|
}, null, 8, ["files"])) : s("", !0),
|
|
11013
|
-
_.value || x.value.length ? (k(), c("div",
|
|
11049
|
+
_.value || x.value.length ? (k(), c("div", Kv, [Array.isArray(_.value) ? (k(), o(Hv, {
|
|
11014
11050
|
key: 0,
|
|
11015
11051
|
content: _.value,
|
|
11016
11052
|
title: g.value
|
|
11017
|
-
}, null, 8, ["content", "title"])) : t.content ? (k(!0), c(e, { key: 1 }, M(x.value, (e, t) => (k(), o(
|
|
11053
|
+
}, null, 8, ["content", "title"])) : t.content ? (k(!0), c(e, { key: 1 }, M(x.value, (e, t) => (k(), o(Wv, {
|
|
11018
11054
|
key: t,
|
|
11019
11055
|
content: e
|
|
11020
11056
|
}, null, 8, ["content"]))), 128)) : s("", !0)])) : s("", !0),
|
|
11021
|
-
t.messageToolsStatus === R(jf).Hidden ? s("", !0) : (k(), o(
|
|
11057
|
+
t.messageToolsStatus === R(jf).Hidden ? s("", !0) : (k(), o(Sg, {
|
|
11022
11058
|
key: 2,
|
|
11023
11059
|
class: "ai-user-message-tools",
|
|
11024
11060
|
"message-tools": u.value,
|
|
@@ -11027,7 +11063,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11027
11063
|
"tippy-options": t.tippyOptions,
|
|
11028
11064
|
"update-tools": []
|
|
11029
11065
|
}, {
|
|
11030
|
-
prepend:
|
|
11066
|
+
prepend: H(() => [f(ig, { "created-at": t.createdAt }, null, 8, ["created-at"])]),
|
|
11031
11067
|
_: 1
|
|
11032
11068
|
}, 8, [
|
|
11033
11069
|
"message-tools",
|
|
@@ -11037,7 +11073,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11037
11073
|
], 64))]);
|
|
11038
11074
|
};
|
|
11039
11075
|
}
|
|
11040
|
-
}),
|
|
11076
|
+
}), Yv = /* @__PURE__ */ m({
|
|
11041
11077
|
__name: "message-render",
|
|
11042
11078
|
props: {
|
|
11043
11079
|
messageToolsStatus: {},
|
|
@@ -11050,9 +11086,9 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11050
11086
|
onInterruptResume: { type: Function }
|
|
11051
11087
|
},
|
|
11052
11088
|
setup(e) {
|
|
11053
|
-
let t = e, n =
|
|
11089
|
+
let t = e, n = oe(), r = a(() => {
|
|
11054
11090
|
switch (t.message.role) {
|
|
11055
|
-
case J.User: return g(
|
|
11091
|
+
case J.User: return g(Jv, G(G({}, t.message), {}, {
|
|
11056
11092
|
onAction: t.onAction,
|
|
11057
11093
|
onInputConfirm: t.onInputConfirm,
|
|
11058
11094
|
onShortcutConfirm: t.onShortcutConfirm,
|
|
@@ -11060,33 +11096,33 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11060
11096
|
messageToolsStatus: t.messageToolsStatus,
|
|
11061
11097
|
tippyOptions: t.tippyOptions
|
|
11062
11098
|
}));
|
|
11063
|
-
case J.Assistant: return g(
|
|
11099
|
+
case J.Assistant: return g(lv, t.message, { default: (e) => N(n, "default", e, () => [g(Zu, {
|
|
11064
11100
|
content: t.message.content || "",
|
|
11065
11101
|
status: t.message.status
|
|
11066
11102
|
}, n.codeHeader ? { codeHeader: (e) => {
|
|
11067
11103
|
var t;
|
|
11068
11104
|
return (t = n.codeHeader) == null ? void 0 : t.call(n, e);
|
|
11069
11105
|
} } : void 0)]) });
|
|
11070
|
-
case J.Info: return g(
|
|
11071
|
-
case J.Reasoning: return g(
|
|
11072
|
-
case J.Tool: return g(
|
|
11073
|
-
case J.Activity: return g(
|
|
11074
|
-
case J.Interrupt: return g(
|
|
11106
|
+
case J.Info: return g(fv, t.message);
|
|
11107
|
+
case J.Reasoning: return g(Iv, t.message);
|
|
11108
|
+
case J.Tool: return g(Q_, t.message);
|
|
11109
|
+
case J.Activity: return g(U_, G(G({}, t.message), {}, { onInterruptResume: t.onInterruptResume }));
|
|
11110
|
+
case J.Interrupt: return g(kv, G(G({}, t.message), {}, { onInterruptResume: t.onInterruptResume }), n.answeredQuestion ? { answeredQuestion: (e) => {
|
|
11075
11111
|
var t;
|
|
11076
11112
|
return (t = n.answeredQuestion) == null ? void 0 : t.call(n, e);
|
|
11077
11113
|
} } : void 0);
|
|
11078
|
-
case J.Loading: return g(
|
|
11114
|
+
case J.Loading: return g(jv, t.message);
|
|
11079
11115
|
default: return null;
|
|
11080
11116
|
}
|
|
11081
11117
|
});
|
|
11082
11118
|
return (e, t) => (k(), o(P(r.value)));
|
|
11083
11119
|
}
|
|
11084
|
-
}),
|
|
11120
|
+
}), Xv = [
|
|
11085
11121
|
"id",
|
|
11086
11122
|
"data-message-group-id",
|
|
11087
11123
|
"onMouseenter",
|
|
11088
11124
|
"onMouseleave"
|
|
11089
|
-
],
|
|
11125
|
+
], Zv = ["data-message-id"], Qv = { class: "ai-message-fixed-bottom" }, $v = /* @__PURE__ */ m({
|
|
11090
11126
|
__name: "message-container",
|
|
11091
11127
|
props: /* @__PURE__ */ y({
|
|
11092
11128
|
enableSelection: {
|
|
@@ -11114,7 +11150,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11114
11150
|
}),
|
|
11115
11151
|
emits: /* @__PURE__ */ y(["stopStreaming"], ["update:selectedUserMessages"]),
|
|
11116
11152
|
setup(t) {
|
|
11117
|
-
let n = t, r =
|
|
11153
|
+
let n = t, r = ae(t, "selectedUserMessages"), i = (e) => {
|
|
11118
11154
|
let t = e.id || e.uid;
|
|
11119
11155
|
return t === void 0 ? void 0 : String(t);
|
|
11120
11156
|
}, d = (e) => {
|
|
@@ -11123,7 +11159,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11123
11159
|
let r = (t = e[n]) == null ? void 0 : t.createdAt;
|
|
11124
11160
|
if (r) return r;
|
|
11125
11161
|
}
|
|
11126
|
-
}, p =
|
|
11162
|
+
}, p = z("messageContainerRef"), m = z("messageContainerBottomRef"), { jumpToBottom: h, toScrollBottom: g, debouncedShowScrollBottomBtn: _ } = ea(p, m);
|
|
11127
11163
|
E(() => {
|
|
11128
11164
|
var e;
|
|
11129
11165
|
(e = n.messageGroups) != null && e.length && (h(), requestAnimationFrame(() => h()));
|
|
@@ -11212,7 +11248,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11212
11248
|
message: e,
|
|
11213
11249
|
messageToolsStatus: t.messageToolsStatus,
|
|
11214
11250
|
onInterruptResume: n.onInterruptResume
|
|
11215
|
-
}), () => [(k(), o(
|
|
11251
|
+
}), () => [(k(), o(Yv, {
|
|
11216
11252
|
key: a,
|
|
11217
11253
|
message: e,
|
|
11218
11254
|
"message-tools": t.userMessageTools,
|
|
@@ -11224,7 +11260,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11224
11260
|
"tippy-options": t.messageToolsTippyOptions
|
|
11225
11261
|
}, u({ _: 2 }, [r.$slots.answeredQuestion ? {
|
|
11226
11262
|
name: "answeredQuestion",
|
|
11227
|
-
fn:
|
|
11263
|
+
fn: H((e) => [N(r.$slots, "answeredQuestion", b({ ref_for: !0 }, e))]),
|
|
11228
11264
|
key: "0"
|
|
11229
11265
|
} : void 0]), 1032, [
|
|
11230
11266
|
"message",
|
|
@@ -11235,7 +11271,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11235
11271
|
"on-interrupt-resume",
|
|
11236
11272
|
"on-shortcut-confirm",
|
|
11237
11273
|
"tippy-options"
|
|
11238
|
-
]))])], 8,
|
|
11274
|
+
]))])], 8, Zv))), 128)), t.renderMode !== R(Qt).Share && !(t.enableSelection && a.type !== R(J).Loading) && !a.pause && a.type === R(J).Assistant && t.messageToolsStatus !== R(jf).Hidden ? (k(), o(Sg, {
|
|
11239
11275
|
key: 0,
|
|
11240
11276
|
"message-tools": y.value,
|
|
11241
11277
|
"message-tools-status": t.messageToolsStatus,
|
|
@@ -11248,7 +11284,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11248
11284
|
return (i = n.onAgentFeedback) == null ? void 0 : i.call(n, e, a.messages, t, r);
|
|
11249
11285
|
}
|
|
11250
11286
|
}, {
|
|
11251
|
-
append:
|
|
11287
|
+
append: H(() => [f(ig, { "created-at": d(a.messages) }, null, 8, ["created-at"])]),
|
|
11252
11288
|
_: 2
|
|
11253
11289
|
}, 1032, [
|
|
11254
11290
|
"message-tools",
|
|
@@ -11258,39 +11294,39 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11258
11294
|
"tippy-options",
|
|
11259
11295
|
"update-tools",
|
|
11260
11296
|
"onFeedback"
|
|
11261
|
-
])) : s("", !0)], 6)])], 44,
|
|
11297
|
+
])) : s("", !0)], 6)])], 44, Xv))), 128)),
|
|
11262
11298
|
l("div", {
|
|
11263
11299
|
ref_key: "messageContainerBottomRef",
|
|
11264
11300
|
ref: m,
|
|
11265
11301
|
class: "message-container-bottom",
|
|
11266
11302
|
tabindex: "0"
|
|
11267
11303
|
}, null, 512),
|
|
11268
|
-
l("div",
|
|
11304
|
+
l("div", Qv, [U(f(fi, {
|
|
11269
11305
|
loading: t.messageStatus === R(Y).StopLoading,
|
|
11270
11306
|
title: t.messageStatus === R(Y).StopLoading ? R(K)("正在停止") : R(K)("停止生成"),
|
|
11271
11307
|
onClick: a[0] || (a[0] = (e) => r.$emit("stopStreaming"))
|
|
11272
11308
|
}, {
|
|
11273
|
-
icon:
|
|
11309
|
+
icon: H(() => [f(R(Dr))]),
|
|
11274
11310
|
_: 1
|
|
11275
|
-
}, 8, ["loading", "title"]), [[
|
|
11311
|
+
}, 8, ["loading", "title"]), [[B, t.renderMode !== R(Qt).Share && (t.messageStatus === R(Y).Streaming || t.messageStatus === R(Y).StopLoading || t.messageStatus === R(Y).Fetching || t.messageStatus === R(Y).Pending)]]), U(f(fi, {
|
|
11276
11312
|
title: R(K)("返回底部"),
|
|
11277
11313
|
onClick: a[1] || (a[1] = () => R(g)("smooth"))
|
|
11278
11314
|
}, {
|
|
11279
|
-
icon:
|
|
11315
|
+
icon: H(() => [f(R(Kr))]),
|
|
11280
11316
|
_: 1
|
|
11281
|
-
}, 8, ["title"]), [[
|
|
11317
|
+
}, 8, ["title"]), [[B, R(_)]])])
|
|
11282
11318
|
], 512));
|
|
11283
11319
|
}
|
|
11284
|
-
}),
|
|
11320
|
+
}), ey = { class: "ai-execution-summary" }, ty = {
|
|
11285
11321
|
key: 0,
|
|
11286
11322
|
class: "ai-execution-summary-header"
|
|
11287
|
-
},
|
|
11323
|
+
}, ny = { class: "ai-execution-summary-content" }, ry = ["onMouseenter"], iy = { class: "content-item-header" }, ay = { class: "content-item-title" }, oy = { class: "content-item-messages" }, sy = {
|
|
11288
11324
|
key: 0,
|
|
11289
11325
|
class: "timeline-line"
|
|
11290
|
-
},
|
|
11326
|
+
}, cy = {
|
|
11291
11327
|
key: 1,
|
|
11292
11328
|
class: "ai-execution-summary-content-empty"
|
|
11293
|
-
},
|
|
11329
|
+
}, ly = { class: "ai-execution-summary-content-empty-text" }, uy = /* @__PURE__ */ m({
|
|
11294
11330
|
__name: "execution-summary",
|
|
11295
11331
|
props: { messageGroups: {} },
|
|
11296
11332
|
emits: ["locateMessageGroup", "updateKeyword"],
|
|
@@ -11304,51 +11340,51 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11304
11340
|
}, h = () => {
|
|
11305
11341
|
a.value = "", r("updateKeyword", "");
|
|
11306
11342
|
};
|
|
11307
|
-
return (n, g) => (k(), c("div",
|
|
11343
|
+
return (n, g) => (k(), c("div", ey, [t.messageGroups.length ? (k(), c("div", ty, [f(R(me), {
|
|
11308
11344
|
modelValue: R(a),
|
|
11309
11345
|
"onUpdate:modelValue": [g[0] || (g[0] = (e) => v(a) ? a.value = e : null), g[1] || (g[1] = (e) => r("updateKeyword", e))],
|
|
11310
11346
|
class: "ai-execution-summary-header-input",
|
|
11311
11347
|
clearable: "",
|
|
11312
11348
|
placeholder: R(K)("搜索 关键字")
|
|
11313
|
-
}, null, 8, ["modelValue", "placeholder"])])) : s("", !0), l("div",
|
|
11349
|
+
}, null, 8, ["modelValue", "placeholder"])])) : s("", !0), l("div", ny, [t.messageGroups.length ? (k(!0), c(e, { key: 0 }, M(t.messageGroups, (n, r) => (k(), c("div", {
|
|
11314
11350
|
key: n.uid,
|
|
11315
11351
|
class: "ai-execution-summary-content-item",
|
|
11316
11352
|
onMouseenter: (e) => u.value = n.uid,
|
|
11317
11353
|
onMouseleave: g[2] || (g[2] = (e) => u.value = void 0)
|
|
11318
11354
|
}, [
|
|
11319
|
-
l("div",
|
|
11355
|
+
l("div", iy, [
|
|
11320
11356
|
g[3] || (g[3] = l("span", { class: "timeline-dot" }, null, -1)),
|
|
11321
|
-
|
|
11322
|
-
|
|
11357
|
+
U((k(), c("span", ay, [d(I(typeof n.userMessageTitle == "number" ? p(n.userMessageTitle) : n.userMessageTitle), 1)])), [[R(Pa), G({}, R(i))]]),
|
|
11358
|
+
U(f(R(W), {
|
|
11323
11359
|
class: "content-item-locate",
|
|
11324
11360
|
text: "",
|
|
11325
11361
|
theme: "primary",
|
|
11326
11362
|
onClick: (e) => m(n)
|
|
11327
11363
|
}, {
|
|
11328
|
-
default:
|
|
11364
|
+
default: H(() => [d(I(R(K)("在对话中定位")), 1)]),
|
|
11329
11365
|
_: 1
|
|
11330
|
-
}, 8, ["onClick"]), [[
|
|
11366
|
+
}, 8, ["onClick"]), [[B, u.value === n.uid]])
|
|
11331
11367
|
]),
|
|
11332
|
-
l("div",
|
|
11368
|
+
l("div", oy, [(k(!0), c(e, null, M(n.messages, (e, t) => (k(), o(Yv, {
|
|
11333
11369
|
key: t,
|
|
11334
11370
|
message: e
|
|
11335
11371
|
}, null, 8, ["message"]))), 128))]),
|
|
11336
|
-
r < t.messageGroups.length - 1 ? (k(), c("div",
|
|
11337
|
-
], 40,
|
|
11372
|
+
r < t.messageGroups.length - 1 ? (k(), c("div", sy)) : s("", !0)
|
|
11373
|
+
], 40, ry))), 128)) : (k(), c("div", cy, [f(R(fe), {
|
|
11338
11374
|
class: "empty-exception",
|
|
11339
11375
|
scene: "part",
|
|
11340
11376
|
type: "empty"
|
|
11341
|
-
}), l("div",
|
|
11377
|
+
}), l("div", ly, [d(I(R(a) ? R(K)("搜索结果为空") : R(K)("暂无数据")) + " ", 1), R(a) ? (k(), o(R(W), {
|
|
11342
11378
|
key: 0,
|
|
11343
11379
|
text: "",
|
|
11344
11380
|
theme: "primary",
|
|
11345
11381
|
onClick: h
|
|
11346
11382
|
}, {
|
|
11347
|
-
default:
|
|
11383
|
+
default: H(() => [d(I(R(K)("清空搜索")), 1)]),
|
|
11348
11384
|
_: 1
|
|
11349
11385
|
})) : s("", !0)])]))])]));
|
|
11350
11386
|
}
|
|
11351
|
-
}),
|
|
11387
|
+
}), dy = { class: "ai-selection-footer" }, fy = { class: "ai-selection-footer-left" }, py = { class: "select-all-text" }, my = { class: "ai-selection-footer-right" }, hy = /* @__PURE__ */ m({
|
|
11352
11388
|
__name: "selection-footer",
|
|
11353
11389
|
props: {
|
|
11354
11390
|
isAllSelected: { type: Boolean },
|
|
@@ -11362,35 +11398,35 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11362
11398
|
],
|
|
11363
11399
|
setup(e, { emit: t }) {
|
|
11364
11400
|
let n = t;
|
|
11365
|
-
return (t, r) => (k(), c("div",
|
|
11401
|
+
return (t, r) => (k(), c("div", dy, [l("div", fy, [f(R(de), {
|
|
11366
11402
|
"model-value": e.isAllSelected,
|
|
11367
11403
|
"onUpdate:modelValue": r[0] || (r[0] = (e) => n("toggle-all", e))
|
|
11368
|
-
}, null, 8, ["model-value"]), l("span",
|
|
11404
|
+
}, null, 8, ["model-value"]), l("span", py, I(R(K)("全选")), 1)]), l("div", my, [f(R(W), {
|
|
11369
11405
|
disabled: e.loading,
|
|
11370
11406
|
onClick: r[1] || (r[1] = (e) => n("cancel"))
|
|
11371
11407
|
}, {
|
|
11372
|
-
default:
|
|
11408
|
+
default: H(() => [d(I(R(K)("取消")), 1)]),
|
|
11373
11409
|
_: 1
|
|
11374
|
-
}, 8, ["disabled"]), f(R(
|
|
11410
|
+
}, 8, ["disabled"]), f(R(W), {
|
|
11375
11411
|
disabled: e.selectedCount === 0,
|
|
11376
11412
|
loading: e.loading,
|
|
11377
11413
|
theme: "primary",
|
|
11378
11414
|
onClick: r[2] || (r[2] = (e) => n("confirm"))
|
|
11379
11415
|
}, {
|
|
11380
|
-
default:
|
|
11416
|
+
default: H(() => [d(I(R(K)("确定")), 1)]),
|
|
11381
11417
|
_: 1
|
|
11382
11418
|
}, 8, ["disabled", "loading"])])]));
|
|
11383
11419
|
}
|
|
11384
|
-
}),
|
|
11420
|
+
}), gy = ["data-ai-size"], _y = {
|
|
11385
11421
|
key: 0,
|
|
11386
11422
|
class: "ai-chat-container-loading"
|
|
11387
|
-
},
|
|
11423
|
+
}, vy = { class: "screen-wrapper" }, yy = {
|
|
11388
11424
|
key: 1,
|
|
11389
11425
|
class: "ai-welcome-content"
|
|
11390
|
-
},
|
|
11426
|
+
}, by = { class: "ai-welcome-title" }, xy = {
|
|
11391
11427
|
key: 0,
|
|
11392
11428
|
class: "ai-welcome-remark"
|
|
11393
|
-
},
|
|
11429
|
+
}, Sy = /* @__PURE__ */ m({
|
|
11394
11430
|
__name: "chat-container",
|
|
11395
11431
|
props: /* @__PURE__ */ y({
|
|
11396
11432
|
asideCollapsed: {
|
|
@@ -11475,7 +11511,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11475
11511
|
"update:selectedModel"
|
|
11476
11512
|
]),
|
|
11477
11513
|
setup(t, { expose: n, emit: i }) {
|
|
11478
|
-
let u = xe.TabPanel, p = t, m =
|
|
11514
|
+
let u = xe.TabPanel, p = t, m = ae(t, "renderMode"), _ = z("fullScreenRef"), { isFullScreen: v, enter: y, exit: S } = ca(_);
|
|
11479
11515
|
Da({ renderMode: m });
|
|
11480
11516
|
let T = a(() => G(G({
|
|
11481
11517
|
collapsible: !1,
|
|
@@ -11483,7 +11519,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11483
11519
|
min: 400
|
|
11484
11520
|
}, p.resizeProps), {}, { placement: "right" })), E = a(() => {
|
|
11485
11521
|
var e, t, n, r, i;
|
|
11486
|
-
return (e = (t = p.getSideRenderComponent) == null ? void 0 : t.call(p, g, (n = (r =
|
|
11522
|
+
return (e = (t = p.getSideRenderComponent) == null ? void 0 : t.call(p, g, (n = (r = B.value.data) == null ? void 0 : r.props) == null ? {} : n)) == null ? (i = B.value.data) == null ? void 0 : i.component : e;
|
|
11487
11523
|
});
|
|
11488
11524
|
ua({
|
|
11489
11525
|
size: a(() => {
|
|
@@ -11495,13 +11531,13 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11495
11531
|
return (e = p.supportUpload) == null ? !1 : e;
|
|
11496
11532
|
}),
|
|
11497
11533
|
timezone: a(() => p.timezone)
|
|
11498
|
-
}),
|
|
11534
|
+
}), V(() => {
|
|
11499
11535
|
var e;
|
|
11500
11536
|
return (e = p.size) == null ? "small" : e;
|
|
11501
11537
|
}, (e) => {
|
|
11502
11538
|
typeof document < "u" && (document.body.dataset.aiSize = e);
|
|
11503
11539
|
}, { immediate: !0 });
|
|
11504
|
-
let D =
|
|
11540
|
+
let D = ae(t, "selectedShortcut"), A = ae(t, "cite"), ee = ae(t, "selectedModel"), j = i, ne = F(!0), re = a({
|
|
11505
11541
|
get: () => {
|
|
11506
11542
|
var e;
|
|
11507
11543
|
return (e = p.asideCollapsed) == null ? ne.value : e;
|
|
@@ -11509,25 +11545,22 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11509
11545
|
set: (e) => {
|
|
11510
11546
|
p.asideCollapsed === void 0 && (ne.value = e), j("update:asideCollapsed", e);
|
|
11511
11547
|
}
|
|
11512
|
-
}), L = a(() => {
|
|
11513
|
-
var e;
|
|
11514
|
-
return G(G({}, p.commonTippyOptions), {}, { appendTo: v.value && _.value ? _.value : (e = p.commonTippyOptions) == null ? void 0 : e.appendTo });
|
|
11515
|
-
});
|
|
11548
|
+
}), L = a(() => v.value && _.value ? G(G({}, p.commonTippyOptions), {}, { appendTo: _.value }) : G({}, p.commonTippyOptions));
|
|
11516
11549
|
ka({ tippyOptions: L });
|
|
11517
|
-
let { displayTabs: ie, tabs:
|
|
11550
|
+
let { displayTabs: ie, tabs: oe, selectedTab: B, isCollapse: se, addCustomTab: ce, ensureCustomTab: le, removeCustomTab: ue, selectCustomTab: de, resetCustomTab: fe } = aa({
|
|
11518
11551
|
collapsed: re,
|
|
11519
11552
|
executionTabVisible: () => p.executionTabVisible,
|
|
11520
11553
|
onTabChange: function() {
|
|
11521
11554
|
var e = Z(function* (e) {
|
|
11522
11555
|
var t, n;
|
|
11523
11556
|
if (e.name === "file-artifact") return;
|
|
11524
|
-
let r = ((t =
|
|
11557
|
+
let r = ((t = B.value.data) == null ? void 0 : t.props) || {
|
|
11525
11558
|
loading: !0,
|
|
11526
11559
|
data: {}
|
|
11527
11560
|
};
|
|
11528
|
-
|
|
11561
|
+
B.value.data = G(G({}, B.value.data), {}, { props: r });
|
|
11529
11562
|
let i = yield (n = p.onCustomTabChange) == null ? void 0 : n.call(p, e);
|
|
11530
|
-
|
|
11563
|
+
B.value.data = G(G({}, B.value.data), {}, { props: G(G({}, r), {}, {
|
|
11531
11564
|
loading: !1,
|
|
11532
11565
|
data: i
|
|
11533
11566
|
}) });
|
|
@@ -11542,7 +11575,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11542
11575
|
name: Ui,
|
|
11543
11576
|
order: -1
|
|
11544
11577
|
};
|
|
11545
|
-
|
|
11578
|
+
le(pe);
|
|
11546
11579
|
let me = F(""), he = te([]), ge = F(), _e = () => {
|
|
11547
11580
|
var e;
|
|
11548
11581
|
let t = (e = p.resizeProps) == null ? void 0 : e.initialDivide;
|
|
@@ -11555,16 +11588,16 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11555
11588
|
}), { activeArtifactId: Fe, setActiveArtifactId: Ie } = Gi({
|
|
11556
11589
|
getOnArtifactClick: () => p.onArtifactClick,
|
|
11557
11590
|
onOpen: () => {
|
|
11558
|
-
|
|
11591
|
+
ce(pe);
|
|
11559
11592
|
}
|
|
11560
11593
|
});
|
|
11561
|
-
|
|
11594
|
+
V(De, (e) => {
|
|
11562
11595
|
if (!e.length) {
|
|
11563
11596
|
Ie("");
|
|
11564
11597
|
return;
|
|
11565
11598
|
}
|
|
11566
11599
|
e.some((e) => e.outputId === Fe.value) || Ie(e[0].outputId);
|
|
11567
|
-
}, { immediate: !0 }),
|
|
11600
|
+
}, { immediate: !0 }), V(se, (e) => {
|
|
11568
11601
|
e ? (me.value = "", ye.value = 0) : ye.value = be.value, j("collapseChange", e, ye.value);
|
|
11569
11602
|
});
|
|
11570
11603
|
let Le = a(() => {
|
|
@@ -11585,7 +11618,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11585
11618
|
var n;
|
|
11586
11619
|
let r = Pe.value;
|
|
11587
11620
|
return (n = p.onSendMessage) == null ? void 0 : n.call(p, e, t, r ? {
|
|
11588
|
-
payload:
|
|
11621
|
+
payload: hh(r),
|
|
11589
11622
|
interrupt: r
|
|
11590
11623
|
} : void 0);
|
|
11591
11624
|
});
|
|
@@ -11605,7 +11638,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11605
11638
|
}
|
|
11606
11639
|
t.scrollIntoView({ behavior: "smooth" });
|
|
11607
11640
|
}, Ge = (e) => e === "execution" ? vn : e === "file-artifact" ? Cn : Sn, Ke = (e) => {
|
|
11608
|
-
de(
|
|
11641
|
+
de(oe.value.find((t) => t.name === e));
|
|
11609
11642
|
}, qe = (e) => {
|
|
11610
11643
|
me.value = e;
|
|
11611
11644
|
}, Je = function() {
|
|
@@ -11634,9 +11667,9 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11634
11667
|
return O(() => {
|
|
11635
11668
|
fe(), typeof document < "u" && delete document.body.dataset.aiSize;
|
|
11636
11669
|
}), n({
|
|
11637
|
-
selectedTab:
|
|
11638
|
-
addCustomTab:
|
|
11639
|
-
removeCustomTab:
|
|
11670
|
+
selectedTab: B,
|
|
11671
|
+
addCustomTab: ce,
|
|
11672
|
+
removeCustomTab: ue,
|
|
11640
11673
|
selectCustomTab: de,
|
|
11641
11674
|
enterShareMode: () => {
|
|
11642
11675
|
Oe.value = !0;
|
|
@@ -11653,10 +11686,10 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11653
11686
|
"--resize-main-width": Ce.value,
|
|
11654
11687
|
"--resize-aside-width": we.value
|
|
11655
11688
|
})
|
|
11656
|
-
}, [t.chatLoading ? (k(), c("div",
|
|
11689
|
+
}, [t.chatLoading ? (k(), c("div", _y, [f(Om)])) : (k(), o(R(ve), b({
|
|
11657
11690
|
key: 1,
|
|
11658
11691
|
class: ["ai-chat-container-resize-layout", {
|
|
11659
|
-
"ai-is-collapse": R(
|
|
11692
|
+
"ai-is-collapse": R(se) || R(ie).length === 0,
|
|
11660
11693
|
"ai-is-welcome": !((a = t.messages) != null && a.length),
|
|
11661
11694
|
"is-resizing": Se.value
|
|
11662
11695
|
}]
|
|
@@ -11664,27 +11697,27 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11664
11697
|
onAfterResize: Qe,
|
|
11665
11698
|
onResizing: Ze
|
|
11666
11699
|
}), {
|
|
11667
|
-
aside:
|
|
11668
|
-
default:
|
|
11700
|
+
aside: H(() => [f(r, { name: "ai-aside-content" }, {
|
|
11701
|
+
default: H(() => {
|
|
11669
11702
|
var n, r, a;
|
|
11670
|
-
return [!R(
|
|
11703
|
+
return [!R(se) && R(ie).length > 0 ? (k(), c("div", {
|
|
11671
11704
|
key: 0,
|
|
11672
11705
|
ref_key: "fullScreenRef",
|
|
11673
11706
|
ref: _,
|
|
11674
11707
|
class: "ai-full-screen-wrapper"
|
|
11675
11708
|
}, [
|
|
11676
11709
|
f(R(xe), {
|
|
11677
|
-
active: R(
|
|
11710
|
+
active: R(B).name,
|
|
11678
11711
|
class: "ai-chat-container-tab",
|
|
11679
11712
|
"label-height": 40,
|
|
11680
11713
|
type: "unborder-card",
|
|
11681
11714
|
onChange: Ke
|
|
11682
11715
|
}, {
|
|
11683
|
-
setting:
|
|
11716
|
+
setting: H(() => [l("div", vy, [f(Ia, {
|
|
11684
11717
|
class: "screen-btn",
|
|
11685
11718
|
"tippy-options": G(G({}, L.value), {}, { content: R(v) ? R(K)("退出全屏") : R(K)("全屏") })
|
|
11686
11719
|
}, {
|
|
11687
|
-
default:
|
|
11720
|
+
default: H(() => [R(v) ? (k(), o(R(Jr), {
|
|
11688
11721
|
key: 1,
|
|
11689
11722
|
onClick: R(S)
|
|
11690
11723
|
}, null, 8, ["onClick"])) : (k(), o(R(qr), {
|
|
@@ -11693,7 +11726,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11693
11726
|
}, null, 8, ["onClick"]))]),
|
|
11694
11727
|
_: 1
|
|
11695
11728
|
}, 8, ["tippy-options"])])]),
|
|
11696
|
-
default:
|
|
11729
|
+
default: H(() => [(k(!0), c(e, null, M(R(ie), (e) => (k(), o(R(u), {
|
|
11697
11730
|
key: e.name,
|
|
11698
11731
|
class: "ai-chat-container-tab-panel",
|
|
11699
11732
|
label: () => {
|
|
@@ -11701,18 +11734,18 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11701
11734
|
return g("div", {
|
|
11702
11735
|
class: "ai-execution-summary-label",
|
|
11703
11736
|
onVnodeMounted: (t) => {
|
|
11704
|
-
if (R(
|
|
11737
|
+
if (R(B).name === e.name) {
|
|
11705
11738
|
var n;
|
|
11706
11739
|
(n = t.el) == null || n.scrollIntoView({ behavior: "smooth" });
|
|
11707
11740
|
}
|
|
11708
11741
|
}
|
|
11709
|
-
}, (n = (r = t.getSideTabRenderComponent) == null ? void 0 : r.call(t, g, e, { removeCustomTab: R(
|
|
11742
|
+
}, (n = (r = t.getSideTabRenderComponent) == null ? void 0 : r.call(t, g, e, { removeCustomTab: R(ue) })) == null ? [
|
|
11710
11743
|
g(Ge(e.name), { class: "ai-execution-summary-icon" }),
|
|
11711
|
-
|
|
11744
|
+
U(g("span", { class: "ai-execution-summary-label-text" }, (i = e.label) == null ? "" : i), [[R(Pa), G(G({}, L.value), {}, { text: (a = e.label) == null ? "" : a })]]),
|
|
11712
11745
|
e.closable !== !1 && e.name !== R("execution") ? g(R(Yr), {
|
|
11713
11746
|
class: "ai-execution-close-icon",
|
|
11714
11747
|
onClick: () => {
|
|
11715
|
-
R(
|
|
11748
|
+
R(ue)(e.name);
|
|
11716
11749
|
}
|
|
11717
11750
|
}) : null
|
|
11718
11751
|
] : n);
|
|
@@ -11721,13 +11754,13 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11721
11754
|
}, null, 8, ["label", "name"]))), 128))]),
|
|
11722
11755
|
_: 1
|
|
11723
11756
|
}, 8, ["active"]),
|
|
11724
|
-
((n = R(
|
|
11757
|
+
((n = R(B)) == null ? void 0 : n.name) === R("execution") && t.executionTabVisible !== !1 ? (k(), c(e, { key: 0 }, [R(se) ? s("", !0) : (k(), o(uy, {
|
|
11725
11758
|
key: 0,
|
|
11726
11759
|
"message-groups": R(Ee),
|
|
11727
11760
|
style: { height: "calc(100% - 40px)" },
|
|
11728
11761
|
onLocateMessageGroup: We,
|
|
11729
11762
|
onUpdateKeyword: qe
|
|
11730
|
-
}, null, 8, ["message-groups"]))], 64)) : ((r = R(
|
|
11763
|
+
}, null, 8, ["message-groups"]))], 64)) : ((r = R(B)) == null ? void 0 : r.name) === R("file-artifact") ? (k(), o(dh, {
|
|
11731
11764
|
key: 1,
|
|
11732
11765
|
"active-id": R(Fe),
|
|
11733
11766
|
artifacts: R(De),
|
|
@@ -11738,21 +11771,21 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11738
11771
|
"artifacts",
|
|
11739
11772
|
"onSelect"
|
|
11740
11773
|
])) : s("", !0),
|
|
11741
|
-
R(
|
|
11742
|
-
key: R(
|
|
11774
|
+
R(B) && R(B).name !== R("file-artifact") ? (k(), c("div", {
|
|
11775
|
+
key: R(B).name,
|
|
11743
11776
|
class: "ai-chat-container-message-slot"
|
|
11744
|
-
}, [(k(), o(P(E.value), b({ key: R(
|
|
11745
|
-
locateButton:
|
|
11777
|
+
}, [(k(), o(P(E.value), b({ key: R(B).name }, (a = R(B)) == null || (a = a.data) == null ? void 0 : a.props), {
|
|
11778
|
+
locateButton: H(() => [f(R(W), {
|
|
11746
11779
|
class: "ai-locate-button",
|
|
11747
11780
|
size: "small",
|
|
11748
11781
|
text: "",
|
|
11749
11782
|
theme: "primary",
|
|
11750
11783
|
onClick: i[0] || (i[0] = (e) => {
|
|
11751
11784
|
var t;
|
|
11752
|
-
return We((t = R(
|
|
11785
|
+
return We((t = R(B)) == null || (t = t.data) == null ? void 0 : t.messageUid);
|
|
11753
11786
|
})
|
|
11754
11787
|
}, {
|
|
11755
|
-
default:
|
|
11788
|
+
default: H(() => [d(I(R(K)("在对话中定位")), 1)]),
|
|
11756
11789
|
_: 1
|
|
11757
11790
|
})]),
|
|
11758
11791
|
_: 1
|
|
@@ -11761,7 +11794,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11761
11794
|
}),
|
|
11762
11795
|
_: 1
|
|
11763
11796
|
})]),
|
|
11764
|
-
main:
|
|
11797
|
+
main: H(() => {
|
|
11765
11798
|
var r, a, u, d;
|
|
11766
11799
|
return [(r = t.messages) != null && r.length ? N(n.$slots, "default", C(b({ key: 0 }, {
|
|
11767
11800
|
messages: t.messages,
|
|
@@ -11779,7 +11812,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11779
11812
|
onUserShortcutConfirm: t.onUserShortcutConfirm
|
|
11780
11813
|
})), () => {
|
|
11781
11814
|
var e;
|
|
11782
|
-
return [(e = t.messages) != null && e.length ? (k(), o(
|
|
11815
|
+
return [(e = t.messages) != null && e.length ? (k(), o($v, {
|
|
11783
11816
|
key: 0,
|
|
11784
11817
|
"selected-user-messages": he.value,
|
|
11785
11818
|
"onUpdate:selectedUserMessages": i[1] || (i[1] = (e) => he.value = e),
|
|
@@ -11801,8 +11834,8 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11801
11834
|
"user-message-tools": t.userMessageTools,
|
|
11802
11835
|
onStopStreaming: i[2] || (i[2] = (e) => j("stopStreaming"))
|
|
11803
11836
|
}, {
|
|
11804
|
-
group:
|
|
11805
|
-
default:
|
|
11837
|
+
group: H(({ group: e }) => [N(n.$slots, "group", C(h({ group: e })))]),
|
|
11838
|
+
default: H(({ message: e, messageToolsStatus: t, onInterruptResume: r }) => [N(n.$slots, "message", C(h({
|
|
11806
11839
|
message: e,
|
|
11807
11840
|
messageToolsStatus: t,
|
|
11808
11841
|
onInterruptResume: r
|
|
@@ -11826,17 +11859,17 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11826
11859
|
"update-tools",
|
|
11827
11860
|
"user-message-tools"
|
|
11828
11861
|
])) : s("", !0)];
|
|
11829
|
-
}) : (k(), c("div",
|
|
11862
|
+
}) : (k(), c("div", yy, [N(n.$slots, "welcome", C(h({
|
|
11830
11863
|
openingRemark: t.openingRemark,
|
|
11831
11864
|
welcomeTitle: t.welcomeTitle
|
|
11832
11865
|
})), () => {
|
|
11833
11866
|
var e;
|
|
11834
11867
|
return [
|
|
11835
11868
|
f(R(an)),
|
|
11836
|
-
l("h2",
|
|
11837
|
-
t.openingRemark ? (k(), c("div",
|
|
11869
|
+
l("h2", by, I((e = t.welcomeTitle) == null ? R(K)("你好,我是小鲸") : e), 1),
|
|
11870
|
+
t.openingRemark ? (k(), c("div", xy, [f(Zu, { content: t.openingRemark }, null, 8, ["content"])])) : s("", !0)
|
|
11838
11871
|
];
|
|
11839
|
-
})])), m.value === R(Qt).Share ? s("", !0) : (k(), c(e, { key: 2 }, [R(Oe) ? (k(), o(
|
|
11872
|
+
})])), m.value === R(Qt).Share ? s("", !0) : (k(), c(e, { key: 2 }, [R(Oe) ? (k(), o(hy, {
|
|
11840
11873
|
key: 0,
|
|
11841
11874
|
"is-all-selected": R(ke),
|
|
11842
11875
|
loading: !1,
|
|
@@ -11852,7 +11885,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11852
11885
|
class: { "is-welcome-overlay": !((u = t.messages) != null && u.length) },
|
|
11853
11886
|
onClose: Re,
|
|
11854
11887
|
onSubmit: ze
|
|
11855
|
-
}), null, 16, ["class"])) : (k(), o(
|
|
11888
|
+
}), null, 16, ["class"])) : (k(), o(gm, {
|
|
11856
11889
|
key: 2,
|
|
11857
11890
|
cite: A.value,
|
|
11858
11891
|
"onUpdate:cite": i[3] || (i[3] = (e) => A.value = e),
|
|
@@ -11878,12 +11911,12 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11878
11911
|
onSelectShortcut: Ve,
|
|
11879
11912
|
"onUpdate:modelValue": He
|
|
11880
11913
|
}, {
|
|
11881
|
-
interrupt:
|
|
11914
|
+
interrupt: H(() => [R(Pe) ? (k(), o(R(Jh), {
|
|
11882
11915
|
key: 0,
|
|
11883
11916
|
interrupt: R(Pe),
|
|
11884
11917
|
"on-resume": t.onInterruptResume
|
|
11885
11918
|
}, {
|
|
11886
|
-
question:
|
|
11919
|
+
question: H(({ question: e, qIndex: t, answer: r, setAnswer: i, confirm: a }) => [N(n.$slots, "interruptQuestion", C(h({
|
|
11887
11920
|
question: e,
|
|
11888
11921
|
qIndex: t,
|
|
11889
11922
|
answer: r,
|
|
@@ -11891,7 +11924,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11891
11924
|
confirm: a
|
|
11892
11925
|
})))]),
|
|
11893
11926
|
_: 3
|
|
11894
|
-
}, 8, ["interrupt", "on-resume"])) : s("", !0), R(Ne) ? (k(), o(
|
|
11927
|
+
}, 8, ["interrupt", "on-resume"])) : s("", !0), R(Ne) ? (k(), o(ym, {
|
|
11895
11928
|
key: 1,
|
|
11896
11929
|
content: R(Ne)
|
|
11897
11930
|
}, null, 8, ["content"])) : s("", !0)]),
|
|
@@ -11916,10 +11949,10 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11916
11949
|
]))], 64))];
|
|
11917
11950
|
}),
|
|
11918
11951
|
_: 3
|
|
11919
|
-
}, 16, ["class"]))], 12,
|
|
11952
|
+
}, 16, ["class"]))], 12, gy);
|
|
11920
11953
|
};
|
|
11921
11954
|
}
|
|
11922
|
-
}),
|
|
11955
|
+
}), Cy = { class: "ai-image-preview-group" }, wy = /* @__PURE__ */ m(G(G({}, { name: "ImagePreviewGroup" }), {}, {
|
|
11923
11956
|
__name: "image-preview-group",
|
|
11924
11957
|
props: {
|
|
11925
11958
|
maskClosable: {
|
|
@@ -11948,7 +11981,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11948
11981
|
let a = [...t.keys()], o = a.map((e) => t.get(e)()), s = a.indexOf(e);
|
|
11949
11982
|
r.value = o, i.value = s >= 0 ? s : 0, n.value = !0;
|
|
11950
11983
|
}
|
|
11951
|
-
}), (t, a) => (k(), c("div",
|
|
11984
|
+
}), (t, a) => (k(), c("div", Cy, [N(t.$slots, "default"), n.value ? (k(), o(ap, {
|
|
11952
11985
|
key: 0,
|
|
11953
11986
|
current: i.value,
|
|
11954
11987
|
"onUpdate:current": a[0] || (a[0] = (e) => i.value = e),
|
|
@@ -11960,7 +11993,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11960
11993
|
"show-info": e.showInfo
|
|
11961
11994
|
}, u({ _: 2 }, [t.$slots.extra ? {
|
|
11962
11995
|
name: "extra",
|
|
11963
|
-
fn:
|
|
11996
|
+
fn: H(() => [N(t.$slots, "extra")]),
|
|
11964
11997
|
key: "0"
|
|
11965
11998
|
} : void 0]), 1032, [
|
|
11966
11999
|
"current",
|
|
@@ -11971,10 +12004,10 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
11971
12004
|
"show-info"
|
|
11972
12005
|
])) : s("", !0)]));
|
|
11973
12006
|
}
|
|
11974
|
-
})),
|
|
12007
|
+
})), Ty = ["alt", "src"], Ey = {
|
|
11975
12008
|
key: 1,
|
|
11976
12009
|
class: "ai-image-error"
|
|
11977
|
-
},
|
|
12010
|
+
}, Dy = /* @__PURE__ */ m(G(G({}, { name: "AiImage" }), {}, {
|
|
11978
12011
|
__name: "image",
|
|
11979
12012
|
props: {
|
|
11980
12013
|
alt: { default: "" },
|
|
@@ -12066,8 +12099,8 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
12066
12099
|
style: ee,
|
|
12067
12100
|
onError: M,
|
|
12068
12101
|
onLoad: j
|
|
12069
|
-
}, null, 40,
|
|
12070
|
-
h.value === "error" ? (k(), c("div",
|
|
12102
|
+
}, null, 40, Ty)) : s("", !0),
|
|
12103
|
+
h.value === "error" ? (k(), c("div", Ey, [f(R(fn), { class: "ai-image-error-icon" })])) : s("", !0),
|
|
12071
12104
|
h.value === "error" ? (k(), c("div", {
|
|
12072
12105
|
key: 2,
|
|
12073
12106
|
class: "ai-image-error-overlay",
|
|
@@ -12083,7 +12116,7 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
12083
12116
|
"show-info": e.showInfo
|
|
12084
12117
|
}, u({ _: 2 }, [t.$slots.extra ? {
|
|
12085
12118
|
name: "extra",
|
|
12086
|
-
fn:
|
|
12119
|
+
fn: H(() => [N(t.$slots, "extra")]),
|
|
12087
12120
|
key: "0"
|
|
12088
12121
|
} : void 0]), 1032, [
|
|
12089
12122
|
"visible",
|
|
@@ -12095,4 +12128,4 @@ var bp = ["onClick"], xp = /* @__PURE__ */ m({
|
|
|
12095
12128
|
}
|
|
12096
12129
|
}));
|
|
12097
12130
|
//#endregion
|
|
12098
|
-
export { an as AIBluekingBannerIcon, rn as AIBluekingIcon, q as APPROVAL_STATUS, It as APPROVAL_STATUS_MAP, Hi as ARTIFACT_PREVIEW_TOKEN, si as ActiveLikeIcon, ci as ActiveUnLikeIcon, Zr as AgentIcon,
|
|
12131
|
+
export { an as AIBluekingBannerIcon, rn as AIBluekingIcon, q as APPROVAL_STATUS, It as APPROVAL_STATUS_MAP, Hi as ARTIFACT_PREVIEW_TOKEN, si as ActiveLikeIcon, ci as ActiveUnLikeIcon, Zr as AgentIcon, Dy as AiImage, yi as AiLoading, Ti as AiSelection, Kr as ArrowDownIcon, Sr as ArrowLeftIcon, un as ArrowRightIcon, Cr as ArrowRightPreviewIcon, Cn as ArtifactTabIcon, mn as BkFlowFailedIcon, gn as BkFlowPendingIcon, _n as BkFlowSkippedIcon, pn as BkFlowSuccessIcon, hn as BkFlowSuspendedIcon, Vt as CHAT_Z_INDEX, Kt as CONST_MESSAGE_TOOLS, Jt as CONST_UPDATE_TOOLS, qt as CONST_USER_MESSAGE_TOOLS, Zi as CONTAINER_SCROLL_TOKEN, na as CUSTOM_TAB_TOKEN, Sy as ChatContainer, gm as ChatInput, Mr as CheckCircleFillIcon, xn as ChevronRightIcon, ei as CiteIcon, Pr as CloseCircleFillIcon, Dr as CloseCircleIcon, Yr as CloseIcon, hu as CodeContent, li as CollapsedAsideIcon, Ur as CollapsedIcon, Gr as ContentLoadingIcon, Zu as ContentRender, $r as CopyIcon, di as DEFAULT_SHORTCUTS, ia as DEFAULT_TAB_ORDER, bd as Delete, kr as DeleteCircleIcon, ai as DeleteIcon, Or as DocLinkIcon, on as DocumentIcon, wn as DownloadFileIcon, br as DownloadIcon, Ut as EDITOR_MENU_Z_INDEX, Ht as EDITOR_Z_INDEX, ra as EXECUTION_TAB_NAME, oi as EditIcon, Rr as EnterIcon, Wr as ErrorIcon, vn as ExecutionIcon, uy as ExecutionSummary, Ui as FILE_ARTIFACT_TAB_NAME, sp as FileIcon, Ar as FileUploadIcon, yr as FitScreenIcon, qr as FullScreenIcon, la as GLOBAL_CONFIG_TOKEN, Zt as HIGHLIGHT_KEYWORD_CLASS_NAME, Ir as HelpDocIcon, Cg as HighlightKeyword, Of as IMAGE_PREVIEW_GROUP_KEY, $i as INSTANT_SCROLL_DISTANCE, Tr as ImageBrokenIcon, Su as ImageContent, fn as ImageErrorIcon, ap as ImagePreview, wy as ImagePreviewGroup, Er as ImageSizeIcon, Lr as InfoIcon, xd as InsertText, kv as InterruptMessageRender, Pt as InterruptReason, Lt as InterruptResumeOperation, $t as LOADING_MESSAGE_ID, wu as LatexContent, ri as LikeIcon, dn as LinkIcon, Vr as LoadingMessageIcon, Yt as MAX_UPLOAD_FILES, Xt as MAX_UPLOAD_FILE_SIZE, Ju as MarkdownContent, en as MarkdownLanguageMap, Eu as MermaidContent, $v as MessageContainer, Ft as MessageContentType, Om as MessageLoading, Yv as MessageRender, J as MessageRole, kf as MessageState, Y as MessageStatus, ig as MessageTime, Sg as MessageTools, jf as MessageToolsStatus, hg as MessageUserFeedback, mm as ModelSelector, Qr as MoreAgentIcon, Xr as MoreIcon, yn as NodeOutputIcon, Sn as NodeTabIcon, fh as OTHERS_OPTION_LABEL, Pa as OverflowTips, xr as PreviewCloseIcon, sn as PreviewIcon, ti as RebuildIcon, wr as ReloadIcon, ln as RemoveIcon, Qt as RenderMode, Sd as ReplaceAll, Fr as RevokedIcon, vr as RotateIcon, Gt as SELECTION_Z_INDEX, Wt as SHORTCUT_MENU_Z_INDEX, Qi as SHOW_SCROLL_BOTTOM_BTN_DISTANCE, fi as ScrollBtn, jr as SearchIcon, hy as SelectionFooter, Br as SendMessageIcon, ni as ShareIcon, Si as ShortcutBtn, ki as ShortcutBtns, Bi as ShortcutRender, zr as SkipIcon, cn as TargetIcon, Hr as ThinkingIcon, Nr as TimeIcon, bn as ToolCallIcon, rv as ToolCallRender, ui as ToolIconsMap, pr as UNKNOWN_FILE_ICON_SVG, Jr as UnFullScreenIcon, ii as UnLikeIcon, Af as UploadStatus, zt as UserMultiChoiceQuestionSchema, Th as UserQuestionAnsweredCard, Jh as UserQuestionCard, jh as UserQuestionChoice, kh as UserQuestionOption, Bt as UserQuestionSchema, Rt as UserSingleChoiceQuestionSchema, Gu as VNodeRenderer, gr as ZoomInIcon, _r as ZoomOutIcon, hh as buildSkipResumePayload, ku as commonErrorContent, X as commonSVGProps, ct as completeMarkdownSyntax, xf as createEditor, td as docToString, Ve as formatBytes, kt as formatDuration, jt as formatElapsedTime, He as formatFileSize, Et as formatUploadFileSize, Ue as formatUploadNotAddedMessage, At as generateUUID, Ot as getCookieByName, Be as getFileExtension, hr as getFileIconSvg, xt as getFileIdentity, ze as getFilePreviewUrl, xa as getScrollParent, St as getUploadFileKey, wt as getUploadFileName, Tt as getUploadFileSize, da as injectGlobalConfig, Mt as isEn, Re as isImageFile, Ct as isUploadImageFile, Nt as lang, Gl as markdownAnimationAttrs, Ql as markdownItBkInlineStyle, ru as markdownItLatex, au as markdownItMermaid, et as mergeToolsById, wd as microtask, Cd as min, qe as needsMarkdownCompletion, Df as noop, Ge as normalizeFileExtension, Sf as plainSchema, Je as removeCompletionSuffix, Ke as resolveFileKind, Ef as resourceTypeMap, Tf as schema, Dt as splitUploadFiles, nd as stringToDoc, K as t, ph as toLetter, Wi as triggerArtifactDownload, Vi as useAnimationText, Ki as useArtifactPreviewConsumer, Gi as useArtifactPreviewProvider, Yi as useClipboard, Xi as useCommandSelection, ta as useContainerScrollConsumer, ea as useContainerScrollProvider, oa as useCustomTabConsumer, aa as useCustomTabProvider, ca as useFullScreen, ua as useGlobalConfig, fa as useMenuKeydown, ba as useMessageGroup, Ei as useObserverVisibleList, Sa as useParentScrolling, mh as useUserQuestion, wf as voidNode };
|