@blueking/ai-blueking 2.2.3 → 2.2.4-beta.2
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/README.md +1 -1
- package/dist/components/ai-header/index.vue.d.ts.map +1 -1
- package/dist/components/composables/use-message-sender.d.ts.map +1 -1
- package/dist/composables/use-session-handlers.d.ts.map +1 -1
- package/dist/standalone/index.es.min.js +1076 -1051
- package/dist/standalone/index.iife.min.js +10 -15
- package/dist/standalone/index.umd.min.js +10 -15
- package/dist/standalone/style.css +1 -1
- package/dist/vue2/index.es.min.js +677 -652
- package/dist/vue2/index.iife.min.js +8 -13
- package/dist/vue2/index.umd.min.js +8 -13
- package/dist/vue2/style.css +1 -1
- package/dist/vue3/index.es.min.js +11 -4
- package/dist/vue3/index.iife.min.js +9 -14
- package/dist/vue3/index.umd.min.js +3 -3
- package/dist/vue3/style.css +1 -1
- package/package.json +3 -3
|
@@ -23577,11 +23577,16 @@ var dO = T("svg", {
|
|
|
23577
23577
|
}
|
|
23578
23578
|
}, [T("path", { d: "M374.656 640c57.184 0 105.184 41.088 118.72 96.384 1.312-0.16 2.624-0.384 3.968-0.384h368c16.928 0 30.656 14.336 30.656 32s-13.76 32-30.656 32h-368c-1.376 0-2.656-0.256-3.936-0.384-13.568 55.296-61.568 96.384-118.72 96.384-57.184 0-105.216-41.088-118.72-96.384-1.344 0.16-2.624 0.384-3.968 0.384H190.656C173.76 800 160 785.664 160 768s13.76-32 30.656-32h61.344c1.344 0 2.624 0.256 3.936 0.384C269.472 681.088 317.504 640 374.656 640z m0 64c-33.824 0-61.312 28.704-61.312 64s27.52 64 61.312 64c33.824 0 61.344-28.704 61.344-64s-27.52-64-61.344-64z m306.688-320c57.152 0 105.184 41.088 118.72 96.384 1.28-0.16 2.56-0.384 3.936-0.384h61.344c16.928 0 30.656 14.336 30.656 32s-13.76 32-30.656 32h-61.344c-1.344 0-2.624-0.256-3.936-0.384-13.536 55.296-61.568 96.384-118.72 96.384-57.184 0-105.184-41.088-118.72-96.384-1.312 0.16-2.624 0.384-3.968 0.384h-368C173.76 544 160 529.664 160 512s13.76-32 30.656-32h368c1.376 0 2.656 0.256 3.936 0.384 13.568-55.296 61.568-96.384 118.72-96.384z m0 64c-33.824 0-61.344 28.704-61.344 64s27.52 64 61.344 64 61.312-28.704 61.312-64-27.52-64-61.312-64z m-306.688-288c57.184 0 105.184 41.088 118.72 96.384 1.312-0.16 2.624-0.384 3.968-0.384h368c16.928 0 30.656 14.336 30.656 32s-13.76 32-30.656 32h-368c-1.376 0-2.656-0.256-3.936-0.384-13.568 55.296-61.568 96.384-118.72 96.384-57.184 0-105.216-41.088-118.72-96.384-1.344 0.16-2.624 0.384-3.968 0.384H190.656C173.76 320 160 305.664 160 288s13.76-32 30.656-32h61.344c1.344 0 2.624 0.256 3.936 0.384C269.472 201.088 317.504 160 374.656 160z m0 64c-33.824 0-61.312 28.704-61.312 64s27.52 64 61.312 64c33.824 0 61.344-28.704 61.344-64s-27.52-64-61.344-64z" })]), bO = T("svg", {
|
|
23579
23579
|
...$,
|
|
23580
|
+
viewBox: "0 0 16 16",
|
|
23580
23581
|
class: {
|
|
23581
23582
|
[$.class]: !0,
|
|
23582
23583
|
"ai-file-artifact-tab-icon": !0
|
|
23583
23584
|
}
|
|
23584
|
-
}, [T("path", {
|
|
23585
|
+
}, [T("path", {
|
|
23586
|
+
"fill-rule": "evenodd",
|
|
23587
|
+
"clip-rule": "evenodd",
|
|
23588
|
+
d: "M3.5 14C3.22386 14 3 13.8082 3 13.5715L3 5.04938L6.71864 2L12.5 2C12.7761 2 13 2.192 13 2.42854L13 13.5715C13 13.8082 12.7761 14 12.5 14L3.5 14ZM3.90909 13.0769L12.0909 13.0769L12.0909 2.92308L7.77273 2.92308L7.77273 5.03069C7.77273 5.52292 7.32409 5.92308 6.77273 5.92308L3.90909 5.92308L3.90909 13.0769ZM4.50727 5L6.77273 5C6.81523 5 6.84568 4.98985 6.86364 4.98085L6.86363 3.06777L4.50727 5ZM5 8.5L5 7.5L11 7.5L11 8.5L5 8.5ZM7 10L7 9L11 9L11 10L7 10ZM5.5 12L5.5 11L11 11L11 12L5.5 12Z"
|
|
23589
|
+
})]), xO = T("svg", {
|
|
23585
23590
|
...$,
|
|
23586
23591
|
class: {
|
|
23587
23592
|
[$.class]: !0,
|
|
@@ -50927,7 +50932,16 @@ var cK = ["src"], lK = {
|
|
|
50927
50932
|
"images"
|
|
50928
50933
|
])]));
|
|
50929
50934
|
}
|
|
50930
|
-
})
|
|
50935
|
+
});
|
|
50936
|
+
//#endregion
|
|
50937
|
+
//#region ../chat-x/src/components/chat-input/build-default-placeholder.ts
|
|
50938
|
+
function CK(e) {
|
|
50939
|
+
let { isEn: t, hasSkills: n, hasPrompts: r, hasResources: i } = e, a = [];
|
|
50940
|
+
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");
|
|
50941
|
+
}
|
|
50942
|
+
//#endregion
|
|
50943
|
+
//#region ../chat-x/src/components/chat-input/ai-slash-input/ai-prompt-list/ai-prompt-list.vue?vue&type=script&setup=true&lang.ts
|
|
50944
|
+
var wK = ["onClick"], TK = /* @__PURE__ */ x({
|
|
50931
50945
|
__name: "ai-prompt-list",
|
|
50932
50946
|
props: {
|
|
50933
50947
|
onSelect: { type: Function },
|
|
@@ -50947,12 +50961,12 @@ var cK = ["src"], lK = {
|
|
|
50947
50961
|
key: t,
|
|
50948
50962
|
class: P(["ai-prompt-list-item", { "is-active": q(r) === n }]),
|
|
50949
50963
|
onClick: (n) => e.onSelect(t)
|
|
50950
|
-
}, G(t), 11,
|
|
50964
|
+
}, G(t), 11, wK))), 128))], 512));
|
|
50951
50965
|
}
|
|
50952
|
-
}),
|
|
50966
|
+
}), EK = ["onClick"], DK = ["src", "onError"], OK = {
|
|
50953
50967
|
key: 1,
|
|
50954
50968
|
class: "ai-skill-list-item-icon ai-skill-list-item-icon--fallback"
|
|
50955
|
-
},
|
|
50969
|
+
}, kK = { class: "ai-skill-list-item-info" }, AK = { class: "ai-skill-list-item-name" }, jK = /* @__PURE__ */ x({
|
|
50956
50970
|
__name: "ai-skill-list",
|
|
50957
50971
|
props: {
|
|
50958
50972
|
onSelect: { type: Function },
|
|
@@ -50980,9 +50994,9 @@ var cK = ["src"], lK = {
|
|
|
50980
50994
|
alt: "",
|
|
50981
50995
|
class: "ai-skill-list-item-icon",
|
|
50982
50996
|
onError: (e) => n.add(t.skill_code)
|
|
50983
|
-
}, null, 40,
|
|
50997
|
+
}, null, 40, DK)) : (B(), h("div", OK, G(t.skill_name?.[0]?.toUpperCase()), 1)), g("div", kK, [g("div", AK, G(t.skill_name), 1)])], 10, EK))), 128))], 512));
|
|
50984
50998
|
}
|
|
50985
|
-
}),
|
|
50999
|
+
}), MK = { class: "ai-slash-item ai-slash-group-title" }, NK = ["onClick"], PK = ["onClick"], FK = ["title"], IK = /* @__PURE__ */ x({
|
|
50986
51000
|
__name: "ai-slash-menu",
|
|
50987
51001
|
props: {
|
|
50988
51002
|
onSelect: { type: Function },
|
|
@@ -51025,13 +51039,13 @@ var cK = ["src"], lK = {
|
|
|
51025
51039
|
}, [(B(!0), h(o, null, H(a.value, (t, n) => (B(), h(o, null, [t.items.length > 0 ? (B(), h("div", {
|
|
51026
51040
|
key: n,
|
|
51027
51041
|
class: "ai-slash-group"
|
|
51028
|
-
}, [g("div",
|
|
51042
|
+
}, [g("div", MK, [
|
|
51029
51043
|
(B(), h("svg", {
|
|
51030
51044
|
class: "title-icon",
|
|
51031
51045
|
style: I({ transform: r.value.includes(t.type) ? "rotate(90deg)" : "rotate(0deg)" }),
|
|
51032
51046
|
viewBox: "0 0 1024 1024",
|
|
51033
51047
|
onClick: (e) => c(t)
|
|
51034
|
-
}, [...l[0] ||= [g("path", { d: "M800 512L288 928V96z" }, null, -1)]], 12,
|
|
51048
|
+
}, [...l[0] ||= [g("path", { d: "M800 512L288 928V96z" }, null, -1)]], 12, NK)),
|
|
51035
51049
|
g("span", { class: P(`mark-${t.type}`) }, null, 2),
|
|
51036
51050
|
v(" " + G(t.name) + " (" + G(t.items.length) + ") ", 1)
|
|
51037
51051
|
]), r.value.includes(t.type) ? (B(!0), h(o, { key: 0 }, H(t.items, (t) => (B(), h("div", {
|
|
@@ -51041,25 +51055,25 @@ var cK = ["src"], lK = {
|
|
|
51041
51055
|
}, [ge((B(), h("span", {
|
|
51042
51056
|
class: "ellipsis-text",
|
|
51043
51057
|
title: t.name
|
|
51044
|
-
}, [v(G(t.name), 1)], 8,
|
|
51058
|
+
}, [v(G(t.name), 1)], 8, FK)), [[q(LP), {
|
|
51045
51059
|
text: t.name,
|
|
51046
51060
|
zIndex: 9999999,
|
|
51047
51061
|
placement: "right-start",
|
|
51048
51062
|
theme: "ai-slash-editor-overflow-tips-theme"
|
|
51049
|
-
}]])], 10,
|
|
51063
|
+
}]])], 10, PK))), 128)) : m("v-if", !0)])) : m("v-if", !0)], 64))), 256))], 512)) : m("v-if", !0);
|
|
51050
51064
|
}
|
|
51051
|
-
}),
|
|
51065
|
+
}), LK = (e, t, n, r) => new SW().delete(n, r), RK = (e, t, n, r) => new SW().insert(n, [[{ data: {
|
|
51052
51066
|
label: r.name,
|
|
51053
51067
|
value: r.name,
|
|
51054
51068
|
type: r.type
|
|
51055
|
-
} }]]),
|
|
51069
|
+
} }]]), zK = (e, t, n, r) => new SW().insert(n, [[{ text: r }]]), BK = (e, t, n, r) => new SW().insert(n, [[{ data: {
|
|
51056
51070
|
label: r.skill_name,
|
|
51057
51071
|
value: r.skill_code,
|
|
51058
51072
|
type: "skill"
|
|
51059
|
-
} }]]),
|
|
51073
|
+
} }]]), VK = (e) => {
|
|
51060
51074
|
let t = e.data;
|
|
51061
51075
|
return t.type === "skill" ? `/${t.value}` : `@${t.label}`;
|
|
51062
|
-
},
|
|
51076
|
+
}, HK = (e) => gW(e, VK), UK = IG({
|
|
51063
51077
|
multiline: !0,
|
|
51064
51078
|
void: { tag: FG({
|
|
51065
51079
|
is: (e) => e.contentEditable === "false" && e.dataset.tagType !== void 0,
|
|
@@ -51070,7 +51084,7 @@ var cK = ["src"], lK = {
|
|
|
51070
51084
|
}),
|
|
51071
51085
|
plain: (e) => e.type === "skill" ? `/${e.value}` : e.label
|
|
51072
51086
|
}) }
|
|
51073
|
-
}),
|
|
51087
|
+
}), WK = { class: "ai-slash-input-wrapper" }, GK = ["aria-placeholder"], KK = { key: 0 }, qK = ["data-tag-type", "data-tag-value"], JK = { key: 1 }, YK = /* @__PURE__ */ x({
|
|
51074
51088
|
__name: "ai-slash-input",
|
|
51075
51089
|
props: {
|
|
51076
51090
|
modelValue: {},
|
|
@@ -51149,7 +51163,7 @@ var cK = ["src"], lK = {
|
|
|
51149
51163
|
}, I = (e, t) => e.reduce((e, n, r) => r >= t ? e : (n.type === "text" && (e += n.text?.length || 0), n.type === "tag" && (e += 1), e), 0), L = (e) => {
|
|
51150
51164
|
x.command(O);
|
|
51151
51165
|
let { column: t, line: n } = D.value;
|
|
51152
|
-
x.command(
|
|
51166
|
+
x.command(LK, [n, t - u.value.length - 1], [n, t]), x.command(RK, [n, t], e), x.command(zK, [n, t + u.value.length + 1 + 1], " "), i.value?.hide(), ee();
|
|
51153
51167
|
}, ee = () => {
|
|
51154
51168
|
w !== null && clearTimeout(w), w = setTimeout(() => {
|
|
51155
51169
|
if (w = null, typeof window > "u") return;
|
|
@@ -51161,7 +51175,7 @@ var cK = ["src"], lK = {
|
|
|
51161
51175
|
}, ne = (e) => {
|
|
51162
51176
|
x.command(O);
|
|
51163
51177
|
let { column: t, line: n } = D.value;
|
|
51164
|
-
x.command(
|
|
51178
|
+
x.command(LK, [n, t - u.value.length - 1], [n, t]), x.command(BK, [n, t], e), x.command(zK, [n, t + u.value.length + 1 + 1], " "), i.value?.hide(), ee();
|
|
51165
51179
|
};
|
|
51166
51180
|
me(() => {
|
|
51167
51181
|
let e = s.resources?.filter((e) => !c.value?.some((t) => t.some((t) => t.type === "tag" && t.data.value === e.id && t.data.type === e.type))), t = s.skills?.filter((e) => !c.value?.some((t) => t.some((t) => t.type === "tag" && t.data.value === e.skill_code && t.data.type === "skill")));
|
|
@@ -51170,7 +51184,7 @@ var cK = ["src"], lK = {
|
|
|
51170
51184
|
let re = (e, t, n, r) => {
|
|
51171
51185
|
if (t.type === "tag") {
|
|
51172
51186
|
let t = I(e, n);
|
|
51173
|
-
x.command(
|
|
51187
|
+
x.command(LK, [r, t], [r, t + 1]);
|
|
51174
51188
|
}
|
|
51175
51189
|
}, V = (e) => {
|
|
51176
51190
|
let t = e.clipboardData?.items;
|
|
@@ -51184,7 +51198,7 @@ var cK = ["src"], lK = {
|
|
|
51184
51198
|
}, ie = () => {
|
|
51185
51199
|
S?.(), x = NG({
|
|
51186
51200
|
doc: c.value,
|
|
51187
|
-
schema:
|
|
51201
|
+
schema: UK,
|
|
51188
51202
|
onChange: async (e) => {
|
|
51189
51203
|
c.value = e, j();
|
|
51190
51204
|
},
|
|
@@ -51200,13 +51214,13 @@ var cK = ["src"], lK = {
|
|
|
51200
51214
|
x.command(FW, "");
|
|
51201
51215
|
},
|
|
51202
51216
|
focus: ee
|
|
51203
|
-
}), (t, n) => (B(), h("div",
|
|
51217
|
+
}), (t, n) => (B(), h("div", WK, [g("div", {
|
|
51204
51218
|
ref_key: "editorRef",
|
|
51205
51219
|
ref: r,
|
|
51206
51220
|
"aria-placeholder": e.placeholder,
|
|
51207
51221
|
class: "ai-slash-input",
|
|
51208
51222
|
spellcheck: "false"
|
|
51209
|
-
}, [c.value?.length && c.value.some((e) => e.length) ? (B(!0), h(o, { key: 0 }, H(c.value, (e, t) => (B(), h("div", { key: t }, [e.length ? (B(!0), h(o, { key: 0 }, H(e, (n, r) => (B(), h(o, { key: r }, [n.type === "text" ? (B(), h("span",
|
|
51223
|
+
}, [c.value?.length && c.value.some((e) => e.length) ? (B(!0), h(o, { key: 0 }, H(c.value, (e, t) => (B(), h("div", { key: t }, [e.length ? (B(!0), h(o, { key: 0 }, H(e, (n, r) => (B(), h(o, { key: r }, [n.type === "text" ? (B(), h("span", KK, G(n.text), 1)) : n.type === "tag" ? (B(), h("span", {
|
|
51210
51224
|
key: 1,
|
|
51211
51225
|
class: P(`mention-tag-${n.data.type}`),
|
|
51212
51226
|
contenteditable: "false",
|
|
@@ -51215,7 +51229,7 @@ var cK = ["src"], lK = {
|
|
|
51215
51229
|
}, [v(G(n.data.label) + " ", 1), y(q(lO), {
|
|
51216
51230
|
class: "mention-tag-remove-icon",
|
|
51217
51231
|
onClick: (i) => re(e, n, r, t)
|
|
51218
|
-
}, null, 8, ["onClick"])], 10,
|
|
51232
|
+
}, null, 8, ["onClick"])], 10, qK)) : m("v-if", !0)], 64))), 128)) : (B(), h("br", JK))]))), 128)) : m("v-if", !0)], 8, GK), y(q(kN), {
|
|
51219
51233
|
ref_key: "tippyRef",
|
|
51220
51234
|
ref: i,
|
|
51221
51235
|
"append-to": E,
|
|
@@ -51231,15 +51245,15 @@ var cK = ["src"], lK = {
|
|
|
51231
51245
|
onHidden: N,
|
|
51232
51246
|
onShow: U
|
|
51233
51247
|
}, {
|
|
51234
|
-
content: J(() => [l.value === "slash" ? (B(), p(
|
|
51248
|
+
content: J(() => [l.value === "slash" ? (B(), p(IK, {
|
|
51235
51249
|
key: 0,
|
|
51236
51250
|
"on-select": L,
|
|
51237
51251
|
"resource-list": d.value
|
|
51238
|
-
}, null, 8, ["resource-list"])) : l.value === "skill" ? (B(), p(
|
|
51252
|
+
}, null, 8, ["resource-list"])) : l.value === "skill" ? (B(), p(jK, {
|
|
51239
51253
|
key: 1,
|
|
51240
51254
|
"on-select": ne,
|
|
51241
51255
|
skills: f.value
|
|
51242
|
-
}, null, 8, ["skills"])) : l.value === "prompt" ? (B(), p(
|
|
51256
|
+
}, null, 8, ["skills"])) : l.value === "prompt" ? (B(), p(TK, {
|
|
51243
51257
|
key: 2,
|
|
51244
51258
|
"on-select": te,
|
|
51245
51259
|
prompts: _.value
|
|
@@ -51247,7 +51261,7 @@ var cK = ["src"], lK = {
|
|
|
51247
51261
|
_: 1
|
|
51248
51262
|
}, 8, ["trigger-target", "z-index"])]));
|
|
51249
51263
|
}
|
|
51250
|
-
}),
|
|
51264
|
+
}), XK = { class: "ai-input-attachment" }, ZK = { class: "ai-input-attachment-default" }, QK = { class: "ai-input-attachment-before-send" }, $K = /* @__PURE__ */ x({
|
|
51251
51265
|
__name: "input-attachment",
|
|
51252
51266
|
props: {
|
|
51253
51267
|
messageState: {},
|
|
@@ -51261,9 +51275,9 @@ var cK = ["src"], lK = {
|
|
|
51261
51275
|
}, a = () => {
|
|
51262
51276
|
n.sendDisabledTip || n.messageState === Q.Disabled || n.messageState === Q.Pending || n.messageState === Q.Streaming || r("sendMessage");
|
|
51263
51277
|
};
|
|
51264
|
-
return (t, r) => (B(), h("div",
|
|
51265
|
-
g("div",
|
|
51266
|
-
g("div",
|
|
51278
|
+
return (t, r) => (B(), h("div", XK, [
|
|
51279
|
+
g("div", ZK, [U(t.$slots, "default")]),
|
|
51280
|
+
g("div", QK, [U(t.$slots, "before-send")]),
|
|
51267
51281
|
U(t.$slots, "send-icon", {}, () => [g("div", {
|
|
51268
51282
|
class: P(["send-message-icon", [e.messageState && `send-message-icon__${e.messageState}`, { "send-message-icon__disabled": e.sendDisabledTip }]]),
|
|
51269
51283
|
onClick: a
|
|
@@ -51283,7 +51297,7 @@ var cK = ["src"], lK = {
|
|
|
51283
51297
|
}]])], 2)])
|
|
51284
51298
|
]));
|
|
51285
51299
|
}
|
|
51286
|
-
}),
|
|
51300
|
+
}), eq = [
|
|
51287
51301
|
{
|
|
51288
51302
|
key: "support_thinking",
|
|
51289
51303
|
label: () => Z("深度思考"),
|
|
@@ -51299,19 +51313,19 @@ var cK = ["src"], lK = {
|
|
|
51299
51313
|
label: () => Z("图生文"),
|
|
51300
51314
|
theme: "warning"
|
|
51301
51315
|
}
|
|
51302
|
-
],
|
|
51316
|
+
], tq = (e) => eq.filter((t) => e.property?.[t.key]).map((e) => ({
|
|
51303
51317
|
text: e.label(),
|
|
51304
51318
|
theme: e.theme
|
|
51305
|
-
})),
|
|
51319
|
+
})), nq = { class: "ai-model-selector-panel-search" }, rq = { class: "ai-model-selector-panel-list" }, iq = ["title", "onClick"], aq = {
|
|
51306
51320
|
key: 0,
|
|
51307
51321
|
class: "ai-model-selector-panel-option-icon"
|
|
51308
|
-
},
|
|
51322
|
+
}, oq = ["src"], sq = ["title"], cq = {
|
|
51309
51323
|
key: 1,
|
|
51310
51324
|
class: "ai-model-selector-panel-option-tags"
|
|
51311
|
-
},
|
|
51325
|
+
}, lq = {
|
|
51312
51326
|
key: 0,
|
|
51313
51327
|
class: "ai-model-selector-panel-empty"
|
|
51314
|
-
},
|
|
51328
|
+
}, uq = /* @__PURE__ */ x({
|
|
51315
51329
|
__name: "model-selector-panel",
|
|
51316
51330
|
props: /* @__PURE__ */ j({
|
|
51317
51331
|
models: {},
|
|
@@ -51325,7 +51339,7 @@ var cK = ["src"], lK = {
|
|
|
51325
51339
|
setup(e, { expose: t, emit: n }) {
|
|
51326
51340
|
let r = e, i = d(() => {
|
|
51327
51341
|
let e = /* @__PURE__ */ new Map();
|
|
51328
|
-
return r.models.forEach((t) => e.set(t.llm_name,
|
|
51342
|
+
return r.models.forEach((t) => e.set(t.llm_name, tq(t))), e;
|
|
51329
51343
|
}), a = n, s = le(e, "keyword"), c = de("panelRef"), l = de("searchInputRef"), u = W(r.models), { activeIndex: f } = _P({
|
|
51330
51344
|
items: u,
|
|
51331
51345
|
menuRef: c,
|
|
@@ -51345,7 +51359,7 @@ var cK = ["src"], lK = {
|
|
|
51345
51359
|
ref_key: "panelRef",
|
|
51346
51360
|
ref: c,
|
|
51347
51361
|
class: "ai-model-selector-panel"
|
|
51348
|
-
}, [g("div",
|
|
51362
|
+
}, [g("div", nq, [y(q(Hy), {
|
|
51349
51363
|
ref_key: "searchInputRef",
|
|
51350
51364
|
ref: l,
|
|
51351
51365
|
modelValue: s.value,
|
|
@@ -51358,7 +51372,7 @@ var cK = ["src"], lK = {
|
|
|
51358
51372
|
}, {
|
|
51359
51373
|
prefix: J(() => [y(q(Dk), { class: "ai-model-selector-panel-search-icon" })]),
|
|
51360
51374
|
_: 1
|
|
51361
|
-
}, 8, ["modelValue", "placeholder"])]), g("div",
|
|
51375
|
+
}, 8, ["modelValue", "placeholder"])]), g("div", rq, [(B(!0), h(o, null, H(e.models, (t, n) => (B(), h("div", {
|
|
51362
51376
|
key: t.id,
|
|
51363
51377
|
class: P(["ai-model-selector-panel-option", {
|
|
51364
51378
|
"is-selected": t.llm_name === e.selectedName,
|
|
@@ -51368,19 +51382,19 @@ var cK = ["src"], lK = {
|
|
|
51368
51382
|
title: t.description,
|
|
51369
51383
|
onClick: (e) => p(t)
|
|
51370
51384
|
}, [
|
|
51371
|
-
t.icon ? (B(), h("span",
|
|
51385
|
+
t.icon ? (B(), h("span", aq, [g("img", {
|
|
51372
51386
|
alt: "",
|
|
51373
51387
|
src: t.icon
|
|
51374
|
-
}, null, 8,
|
|
51388
|
+
}, null, 8, oq)])) : m("v-if", !0),
|
|
51375
51389
|
g("span", {
|
|
51376
51390
|
class: "ai-model-selector-panel-option-name",
|
|
51377
51391
|
title: t.llm_name
|
|
51378
|
-
}, G(t.llm_name), 9,
|
|
51379
|
-
i.value.get(t.llm_name)?.length ? (B(), h("span",
|
|
51392
|
+
}, G(t.llm_name), 9, sq),
|
|
51393
|
+
i.value.get(t.llm_name)?.length ? (B(), h("span", cq, [(B(!0), h(o, null, H(i.value.get(t.llm_name), (e, t) => (B(), h("span", {
|
|
51380
51394
|
key: t,
|
|
51381
51395
|
class: P(["ai-model-capability-tag", `is-${e.theme || "default"}`])
|
|
51382
51396
|
}, G(e.text), 3))), 128))])) : m("v-if", !0)
|
|
51383
|
-
], 10,
|
|
51397
|
+
], 10, iq))), 128)), e.models.length ? m("v-if", !0) : (B(), h("div", lq, [y(q(pC), {
|
|
51384
51398
|
scene: "part",
|
|
51385
51399
|
type: "empty"
|
|
51386
51400
|
}, {
|
|
@@ -51388,10 +51402,10 @@ var cK = ["src"], lK = {
|
|
|
51388
51402
|
_: 1
|
|
51389
51403
|
})]))])], 512));
|
|
51390
51404
|
}
|
|
51391
|
-
}),
|
|
51405
|
+
}), dq = {
|
|
51392
51406
|
key: 0,
|
|
51393
51407
|
class: "ai-model-selector-trigger-icon"
|
|
51394
|
-
},
|
|
51408
|
+
}, fq = ["src"], pq = { class: "ai-model-selector-trigger-name" }, mq = /* @__PURE__ */ x({
|
|
51395
51409
|
__name: "model-selector-trigger",
|
|
51396
51410
|
props: {
|
|
51397
51411
|
disabled: { type: Boolean },
|
|
@@ -51404,15 +51418,15 @@ var cK = ["src"], lK = {
|
|
|
51404
51418
|
"is-expanded": e.expanded,
|
|
51405
51419
|
"is-disabled": e.disabled
|
|
51406
51420
|
}]) }, [
|
|
51407
|
-
e.model?.icon ? (B(), h("span",
|
|
51421
|
+
e.model?.icon ? (B(), h("span", dq, [g("img", {
|
|
51408
51422
|
alt: "",
|
|
51409
51423
|
src: e.model.icon
|
|
51410
|
-
}, null, 8,
|
|
51411
|
-
g("span",
|
|
51424
|
+
}, null, 8, fq)])) : m("v-if", !0),
|
|
51425
|
+
g("span", pq, G(e.model?.llm_name || e.placeholder), 1),
|
|
51412
51426
|
y(q(yk), { class: "ai-model-selector-trigger-arrow" })
|
|
51413
51427
|
], 2));
|
|
51414
51428
|
}
|
|
51415
|
-
}),
|
|
51429
|
+
}), hq = (e) => {
|
|
51416
51430
|
let t = W("");
|
|
51417
51431
|
return {
|
|
51418
51432
|
keyword: t,
|
|
@@ -51425,7 +51439,7 @@ var cK = ["src"], lK = {
|
|
|
51425
51439
|
t.value = "";
|
|
51426
51440
|
}
|
|
51427
51441
|
};
|
|
51428
|
-
},
|
|
51442
|
+
}, gq = /* @__PURE__ */ x({
|
|
51429
51443
|
__name: "model-selector",
|
|
51430
51444
|
props: /* @__PURE__ */ j({
|
|
51431
51445
|
disabled: { type: Boolean },
|
|
@@ -51439,7 +51453,7 @@ var cK = ["src"], lK = {
|
|
|
51439
51453
|
}),
|
|
51440
51454
|
emits: /* @__PURE__ */ j(["change"], ["update:modelValue"]),
|
|
51441
51455
|
setup(e, { emit: t }) {
|
|
51442
|
-
let n = e, r = t, i = le(e, "modelValue"), a = de("tippyRef"), o = de("panelRef"), s = W(!1), { keyword: c, filteredModels: l, currentModel: u, resetKeyword: f } =
|
|
51456
|
+
let n = e, r = t, i = le(e, "modelValue"), a = de("tippyRef"), o = de("panelRef"), s = W(!1), { keyword: c, filteredModels: l, currentModel: u, resetKeyword: f } = hq({
|
|
51443
51457
|
models: oe(n, "models"),
|
|
51444
51458
|
selectedModel: i
|
|
51445
51459
|
}), m = d(() => ({
|
|
@@ -51466,7 +51480,7 @@ var cK = ["src"], lK = {
|
|
|
51466
51480
|
onHidden: g,
|
|
51467
51481
|
onShow: h
|
|
51468
51482
|
}), {
|
|
51469
|
-
content: J(() => [y(
|
|
51483
|
+
content: J(() => [y(uq, {
|
|
51470
51484
|
ref_key: "panelRef",
|
|
51471
51485
|
ref: o,
|
|
51472
51486
|
keyword: q(c),
|
|
@@ -51481,7 +51495,7 @@ var cK = ["src"], lK = {
|
|
|
51481
51495
|
"search-placeholder",
|
|
51482
51496
|
"selected-name"
|
|
51483
51497
|
])]),
|
|
51484
|
-
default: J(() => [y(
|
|
51498
|
+
default: J(() => [y(mq, {
|
|
51485
51499
|
disabled: e.disabled,
|
|
51486
51500
|
expanded: s.value,
|
|
51487
51501
|
model: q(u),
|
|
@@ -51495,21 +51509,21 @@ var cK = ["src"], lK = {
|
|
|
51495
51509
|
_: 1
|
|
51496
51510
|
}, 16));
|
|
51497
51511
|
}
|
|
51498
|
-
}),
|
|
51512
|
+
}), _q = {
|
|
51499
51513
|
key: 1,
|
|
51500
51514
|
class: "ai-divider"
|
|
51501
|
-
},
|
|
51515
|
+
}, vq = /* @__PURE__ */ x({
|
|
51502
51516
|
__name: "chat-input",
|
|
51503
51517
|
props: /* @__PURE__ */ j({
|
|
51504
51518
|
defaultUploadFiles: {},
|
|
51505
|
-
inputMaxHeight: { default:
|
|
51519
|
+
inputMaxHeight: { default: 280 },
|
|
51506
51520
|
messageStatus: {},
|
|
51507
51521
|
models: {},
|
|
51508
51522
|
modelValue: {},
|
|
51509
51523
|
onSendMessage: {},
|
|
51510
51524
|
onStopSending: {},
|
|
51511
51525
|
onUpload: {},
|
|
51512
|
-
placeholder: {
|
|
51526
|
+
placeholder: {},
|
|
51513
51527
|
prompts: { default: () => [] },
|
|
51514
51528
|
resources: { default: () => [] },
|
|
51515
51529
|
sendDisabledTip: {},
|
|
@@ -51537,72 +51551,77 @@ var cK = ["src"], lK = {
|
|
|
51537
51551
|
"modelChange"
|
|
51538
51552
|
], ["update:cite", "update:selectedModel"]),
|
|
51539
51553
|
setup(e, { expose: t, emit: n }) {
|
|
51540
|
-
let r = de("aiSlashInputRef"), i = de("filesRef"), a = le(e, "cite"), o = le(e, "selectedModel"), s = W(
|
|
51554
|
+
let r = de("aiSlashInputRef"), i = de("filesRef"), a = le(e, "cite"), o = le(e, "selectedModel"), s = W(280), c = e, l = n, u = d(() => c.placeholder === void 0 ? CK({
|
|
51555
|
+
isEn: ID,
|
|
51556
|
+
hasSkills: (c.skills?.length ?? 0) > 0,
|
|
51557
|
+
hasPrompts: (c.prompts?.length ?? 0) > 0,
|
|
51558
|
+
hasResources: (c.resources?.length ?? 0) > 0
|
|
51559
|
+
}) : c.placeholder), f = V(c.defaultUploadFiles || []), _ = d(() => c.shortcuts?.find((e) => e.id === c.shortcutId)), v = d(() => c.messageStatus && [
|
|
51541
51560
|
Q.Pending,
|
|
51542
51561
|
Q.Streaming,
|
|
51543
51562
|
Q.Fetching
|
|
51544
|
-
].includes(c.messageStatus) ? c.messageStatus : c.modelValue?.length < 1 || Array.isArray(c.modelValue) && !
|
|
51563
|
+
].includes(c.messageStatus) ? c.messageStatus : c.modelValue?.length < 1 || Array.isArray(c.modelValue) && !HK(c.modelValue).trim() ? Q.Disabled : c.messageStatus);
|
|
51545
51564
|
he(() => {
|
|
51546
|
-
let e = c.inputMaxHeight ||
|
|
51547
|
-
if (
|
|
51565
|
+
let e = c.inputMaxHeight || 280;
|
|
51566
|
+
if (f.value.length < 1 || !i.value) {
|
|
51548
51567
|
s.value = e;
|
|
51549
51568
|
return;
|
|
51550
51569
|
}
|
|
51551
51570
|
s.value = e + (i.value?.clientHeight || 0);
|
|
51552
51571
|
});
|
|
51553
|
-
let
|
|
51572
|
+
let b = async () => {
|
|
51554
51573
|
try {
|
|
51555
51574
|
if (c.sendDisabledTip) return;
|
|
51556
51575
|
r.value?.cleanup?.();
|
|
51557
51576
|
let e;
|
|
51558
|
-
|
|
51577
|
+
f.value?.length ? (e = f.value?.slice().map((e) => ({
|
|
51559
51578
|
type: BD.Binary,
|
|
51560
51579
|
url: e.url,
|
|
51561
51580
|
mimeType: e.file?.type || "",
|
|
51562
51581
|
filename: e.file?.name || ""
|
|
51563
51582
|
})), c.modelValue && e.push({
|
|
51564
51583
|
type: BD.Text,
|
|
51565
|
-
text:
|
|
51566
|
-
})) : e = typeof c.modelValue == "string" ? c.modelValue :
|
|
51584
|
+
text: HK(c.modelValue)
|
|
51585
|
+
})) : e = typeof c.modelValue == "string" ? c.modelValue : HK(c.modelValue), c.onSendMessage?.(e, c.modelValue), f.value = [];
|
|
51567
51586
|
} catch (e) {
|
|
51568
51587
|
console.error(e);
|
|
51569
51588
|
}
|
|
51570
|
-
},
|
|
51589
|
+
}, x = (e) => {
|
|
51571
51590
|
if (e.key === "Enter" || e.key === "NumpadEnter") {
|
|
51572
|
-
if (e.shiftKey ||
|
|
51573
|
-
|
|
51591
|
+
if (e.shiftKey || v.value === Q.Disabled || c.sendDisabledTip || v.value === Q.Fetching || v.value === Q.Streaming || v.value === Q.Pending) return;
|
|
51592
|
+
b();
|
|
51574
51593
|
}
|
|
51575
|
-
},
|
|
51594
|
+
}, S = async () => {
|
|
51576
51595
|
try {
|
|
51577
51596
|
c.onStopSending?.();
|
|
51578
51597
|
} catch (e) {
|
|
51579
51598
|
console.error(e);
|
|
51580
51599
|
}
|
|
51581
|
-
},
|
|
51600
|
+
}, w = () => {
|
|
51582
51601
|
a.value = "";
|
|
51583
|
-
},
|
|
51602
|
+
}, T = (e) => {
|
|
51584
51603
|
l("selectShortcut", e);
|
|
51585
|
-
},
|
|
51604
|
+
}, E = () => {
|
|
51586
51605
|
l("deleteShortcut");
|
|
51587
|
-
},
|
|
51606
|
+
}, D = (e) => {
|
|
51588
51607
|
l("modelChange", e);
|
|
51589
|
-
},
|
|
51608
|
+
}, O = (e) => `${e.name}_${e.size}_${e.lastModified}`, k = (ZD / (1024 * 1024)).toFixed(1), A = async (e) => {
|
|
51590
51609
|
if (!c.supportUpload) return;
|
|
51591
|
-
if (
|
|
51610
|
+
if (f.value.length >= 3) {
|
|
51592
51611
|
e.length > 0 && FC({
|
|
51593
|
-
message: cD(e.length,
|
|
51612
|
+
message: cD(e.length, k, ID),
|
|
51594
51613
|
theme: "error"
|
|
51595
51614
|
});
|
|
51596
51615
|
return;
|
|
51597
51616
|
}
|
|
51598
|
-
let t = new Set(
|
|
51617
|
+
let t = new Set(f.value.map((e) => e.file ? O(e.file) : "")), n = 0;
|
|
51599
51618
|
for (let r = 0; r < e.length; r++) {
|
|
51600
51619
|
let i = e[r];
|
|
51601
|
-
if (
|
|
51620
|
+
if (f.value.length >= 3) {
|
|
51602
51621
|
n += e.length - r;
|
|
51603
51622
|
break;
|
|
51604
51623
|
}
|
|
51605
|
-
let a =
|
|
51624
|
+
let a = O(i);
|
|
51606
51625
|
if (t.has(a)) {
|
|
51607
51626
|
n += 1;
|
|
51608
51627
|
continue;
|
|
@@ -51616,7 +51635,7 @@ var cK = ["src"], lK = {
|
|
|
51616
51635
|
file: i,
|
|
51617
51636
|
status: RG.Pending
|
|
51618
51637
|
};
|
|
51619
|
-
|
|
51638
|
+
f.value.push(o), c.onUpload?.(i).then((e) => {
|
|
51620
51639
|
if (e && typeof e == "object" && "download_url" in e) {
|
|
51621
51640
|
o.url = e.download_url, o.status = RG.Success;
|
|
51622
51641
|
return;
|
|
@@ -51627,19 +51646,19 @@ var cK = ["src"], lK = {
|
|
|
51627
51646
|
});
|
|
51628
51647
|
}
|
|
51629
51648
|
n > 0 && FC({
|
|
51630
|
-
message: cD(n,
|
|
51649
|
+
message: cD(n, k, ID),
|
|
51631
51650
|
theme: "error"
|
|
51632
51651
|
});
|
|
51633
|
-
},
|
|
51634
|
-
|
|
51635
|
-
},
|
|
51652
|
+
}, j = (e) => {
|
|
51653
|
+
f.value = f.value.filter((t) => t.file ? t.file !== e.file : t.url ? t.url !== e.url : t.filename ? t.filename !== e.filename : !0);
|
|
51654
|
+
}, M = (e, t) => {
|
|
51636
51655
|
l("update:modelValue", e, t);
|
|
51637
51656
|
};
|
|
51638
51657
|
return t({
|
|
51639
51658
|
focus: () => {
|
|
51640
51659
|
r.value?.focus?.();
|
|
51641
51660
|
},
|
|
51642
|
-
triggerSendMessage:
|
|
51661
|
+
triggerSendMessage: b
|
|
51643
51662
|
}), (t, n) => (B(), h("div", {
|
|
51644
51663
|
class: "ai-chat-input-container",
|
|
51645
51664
|
style: I({ "--chat-z-index": q(WD) })
|
|
@@ -51654,28 +51673,28 @@ var cK = ["src"], lK = {
|
|
|
51654
51673
|
key: 0,
|
|
51655
51674
|
class: "chat-input-cite",
|
|
51656
51675
|
content: a.value,
|
|
51657
|
-
onClose:
|
|
51676
|
+
onClose: w
|
|
51658
51677
|
}, null, 8, ["content"])) : m("v-if", !0)]),
|
|
51659
|
-
U(t.$slots, "files", F(C({ files:
|
|
51678
|
+
U(t.$slots, "files", F(C({ files: f.value })), () => [f.value.length ? (B(), h("div", {
|
|
51660
51679
|
key: 0,
|
|
51661
51680
|
ref_key: "filesRef",
|
|
51662
51681
|
ref: i,
|
|
51663
51682
|
class: "chat-input-files"
|
|
51664
51683
|
}, [y(SK, {
|
|
51665
|
-
files:
|
|
51666
|
-
onDeleteFile:
|
|
51684
|
+
files: f.value,
|
|
51685
|
+
onDeleteFile: j
|
|
51667
51686
|
}, null, 8, ["files"])], 512)) : m("v-if", !0)]),
|
|
51668
|
-
y(
|
|
51687
|
+
y(YK, {
|
|
51669
51688
|
ref_key: "aiSlashInputRef",
|
|
51670
51689
|
ref: r,
|
|
51671
51690
|
"model-value": e.modelValue,
|
|
51672
|
-
placeholder:
|
|
51691
|
+
placeholder: u.value,
|
|
51673
51692
|
prompts: e.prompts,
|
|
51674
51693
|
resources: e.resources,
|
|
51675
51694
|
skills: e.skills,
|
|
51676
|
-
onKeydown:
|
|
51677
|
-
"onUpdate:modelValue":
|
|
51678
|
-
onUpload:
|
|
51695
|
+
onKeydown: x,
|
|
51696
|
+
"onUpdate:modelValue": M,
|
|
51697
|
+
onUpload: A
|
|
51679
51698
|
}, null, 8, [
|
|
51680
51699
|
"model-value",
|
|
51681
51700
|
"placeholder",
|
|
@@ -51683,44 +51702,44 @@ var cK = ["src"], lK = {
|
|
|
51683
51702
|
"resources",
|
|
51684
51703
|
"skills"
|
|
51685
51704
|
]),
|
|
51686
|
-
y(
|
|
51687
|
-
"message-state":
|
|
51705
|
+
y($K, {
|
|
51706
|
+
"message-state": v.value,
|
|
51688
51707
|
"send-disabled-tip": e.sendDisabledTip,
|
|
51689
51708
|
"tippy-options": e.tippyOptions,
|
|
51690
|
-
onSendMessage:
|
|
51691
|
-
onStopSending:
|
|
51709
|
+
onSendMessage: b,
|
|
51710
|
+
onStopSending: S
|
|
51692
51711
|
}, {
|
|
51693
51712
|
default: J(() => [
|
|
51694
51713
|
e.supportUpload ? (B(), p(HG, {
|
|
51695
51714
|
key: 0,
|
|
51696
51715
|
"tippy-options": e.tippyOptions,
|
|
51697
|
-
onUpload:
|
|
51716
|
+
onUpload: A
|
|
51698
51717
|
}, null, 8, ["tippy-options"])) : m("v-if", !0),
|
|
51699
|
-
e.supportUpload && (e.shortcuts?.length ||
|
|
51700
|
-
U(t.$slots, "attachment", {}, () => [e.shortcuts && !
|
|
51718
|
+
e.supportUpload && (e.shortcuts?.length || _.value) ? (B(), h("span", _q)) : m("v-if", !0),
|
|
51719
|
+
U(t.$slots, "attachment", {}, () => [e.shortcuts && !_.value ? (B(), p(HN, {
|
|
51701
51720
|
key: 0,
|
|
51702
51721
|
shortcuts: e.shortcuts,
|
|
51703
|
-
onSelectShortcut:
|
|
51704
|
-
}, null, 8, ["shortcuts"])) : m("v-if", !0),
|
|
51722
|
+
onSelectShortcut: T
|
|
51723
|
+
}, null, 8, ["shortcuts"])) : m("v-if", !0), _.value ? (B(), p(FN, {
|
|
51705
51724
|
key: 1,
|
|
51706
51725
|
class: "selected-shortcut-btn",
|
|
51707
|
-
shortcut:
|
|
51726
|
+
shortcut: _.value
|
|
51708
51727
|
}, {
|
|
51709
|
-
append: J(() => [y(q(Wk), { onClick:
|
|
51728
|
+
append: J(() => [y(q(Wk), { onClick: E })]),
|
|
51710
51729
|
_: 1
|
|
51711
51730
|
}, 8, ["shortcut"])) : m("v-if", !0)])
|
|
51712
51731
|
]),
|
|
51713
51732
|
"before-send": J(() => [U(t.$slots, "model-selector", F(C({
|
|
51714
51733
|
models: e.models,
|
|
51715
51734
|
selectedModel: o.value
|
|
51716
|
-
})), () => [e.models?.length ? (B(), p(q(
|
|
51735
|
+
})), () => [e.models?.length ? (B(), p(q(gq), {
|
|
51717
51736
|
key: 0,
|
|
51718
51737
|
modelValue: o.value,
|
|
51719
51738
|
"onUpdate:modelValue": n[0] ||= (e) => o.value = e,
|
|
51720
51739
|
class: "chat-input-model-selector",
|
|
51721
51740
|
models: e.models,
|
|
51722
51741
|
"tippy-options": e.tippyOptions,
|
|
51723
|
-
onChange:
|
|
51742
|
+
onChange: D
|
|
51724
51743
|
}, null, 8, [
|
|
51725
51744
|
"modelValue",
|
|
51726
51745
|
"models",
|
|
@@ -51736,13 +51755,13 @@ var cK = ["src"], lK = {
|
|
|
51736
51755
|
], 4)
|
|
51737
51756
|
], 4));
|
|
51738
51757
|
}
|
|
51739
|
-
}),
|
|
51758
|
+
}), yq = { class: "ai-chat-input-info-alert" }, bq = { class: "ai-chat-input-info-alert__text" }, xq = /* @__PURE__ */ x({
|
|
51740
51759
|
__name: "input-info-alert",
|
|
51741
51760
|
props: { content: {} },
|
|
51742
51761
|
setup(e) {
|
|
51743
|
-
return (t, n) => (B(), h("div",
|
|
51762
|
+
return (t, n) => (B(), h("div", yq, [y(q(Nk), { class: "ai-chat-input-info-alert__icon" }), g("span", bq, G(e.content), 1)]));
|
|
51744
51763
|
}
|
|
51745
|
-
}),
|
|
51764
|
+
}), Sq = ["innerHTML"], Cq = /* @__PURE__ */ x({
|
|
51746
51765
|
name: "FileIcon",
|
|
51747
51766
|
__name: "file-icon",
|
|
51748
51767
|
props: {
|
|
@@ -51754,9 +51773,9 @@ var cK = ["src"], lK = {
|
|
|
51754
51773
|
return (e, t) => (B(), h(o, null, [m(" svg 源码来自本地内置资源,不含外部输入,v-html 无注入风险 "), g("span", {
|
|
51755
51774
|
class: "ai-file-icon",
|
|
51756
51775
|
innerHTML: n.value
|
|
51757
|
-
}, null, 8,
|
|
51776
|
+
}, null, 8, Sq)], 2112));
|
|
51758
51777
|
}
|
|
51759
|
-
}),
|
|
51778
|
+
}), wq = { class: "ai-artifact-file-card-info" }, Tq = { class: "ai-artifact-file-card-name" }, Eq = /* @__PURE__ */ x({
|
|
51760
51779
|
__name: "artifact-file-card",
|
|
51761
51780
|
props: {
|
|
51762
51781
|
active: { type: Boolean },
|
|
@@ -51803,11 +51822,11 @@ var cK = ["src"], lK = {
|
|
|
51803
51822
|
onClick: l
|
|
51804
51823
|
}, [
|
|
51805
51824
|
m(" 左侧:文件类型图标 + 文件名 "),
|
|
51806
|
-
g("div",
|
|
51825
|
+
g("div", wq, [y(Cq, {
|
|
51807
51826
|
class: "ai-artifact-file-card-icon",
|
|
51808
51827
|
"file-name": e.file.name,
|
|
51809
51828
|
"file-type": e.file.type
|
|
51810
|
-
}, null, 8, ["file-name", "file-type"]), ge((B(), h("span",
|
|
51829
|
+
}, null, 8, ["file-name", "file-type"]), ge((B(), h("span", Tq, [v(G(e.file.name), 1)])), [[q(LP), {
|
|
51811
51830
|
...q(r),
|
|
51812
51831
|
text: e.file.name,
|
|
51813
51832
|
placement: "top"
|
|
@@ -51825,14 +51844,14 @@ var cK = ["src"], lK = {
|
|
|
51825
51844
|
})) : (B(), p(ae(o.value), { key: 1 }))], 2)), [[q(MN), c.value]]) : m("v-if", !0)
|
|
51826
51845
|
], 2));
|
|
51827
51846
|
}
|
|
51828
|
-
}),
|
|
51847
|
+
}), Dq = { class: "ai-message-loading-row" }, Oq = { class: "ai-message-loading-icon-wrap" }, kq = {
|
|
51829
51848
|
key: 0,
|
|
51830
51849
|
class: "ai-message-loading-text ai-message-loading-text-custom"
|
|
51831
|
-
},
|
|
51850
|
+
}, Aq = {
|
|
51832
51851
|
key: 1,
|
|
51833
51852
|
"aria-live": "polite",
|
|
51834
51853
|
class: "ai-message-loading-text"
|
|
51835
|
-
},
|
|
51854
|
+
}, jq = /* @__PURE__ */ x({
|
|
51836
51855
|
name: "MessageLoading",
|
|
51837
51856
|
inheritAttrs: !1,
|
|
51838
51857
|
__name: "message-loading",
|
|
@@ -51865,16 +51884,16 @@ var cK = ["src"], lK = {
|
|
|
51865
51884
|
return (e, t) => (B(), h("div", M({
|
|
51866
51885
|
class: ["ai-message-loading", q(n).class],
|
|
51867
51886
|
style: s.value
|
|
51868
|
-
}, r.value), [g("div",
|
|
51887
|
+
}, r.value), [g("div", Dq, [g("span", Oq, [U(e.$slots, "icon", {}, () => [y(q(iO), {
|
|
51869
51888
|
class: "ai-message-loading-icon-svg",
|
|
51870
51889
|
style: I(i.value)
|
|
51871
|
-
}, null, 8, ["style"])])]), e.$slots.text ? (B(), h("span",
|
|
51890
|
+
}, null, 8, ["style"])])]), e.$slots.text ? (B(), h("span", kq, [U(e.$slots, "text")])) : (B(), h("span", Aq, [(B(!0), h(o, null, H(a.value, (e, t) => (B(), h("span", {
|
|
51872
51891
|
key: `${t}-${e}`,
|
|
51873
51892
|
class: "ai-message-loading-char",
|
|
51874
51893
|
style: I({ "--char-index": t })
|
|
51875
51894
|
}, G(e), 5))), 128))]))])], 16));
|
|
51876
51895
|
}
|
|
51877
|
-
}),
|
|
51896
|
+
}), Mq = { class: "ai-artifact-code-preview" }, Nq = ["innerHTML"], Pq = 3e5, Fq = /* @__PURE__ */ x({
|
|
51878
51897
|
__name: "code-preview",
|
|
51879
51898
|
props: {
|
|
51880
51899
|
content: {},
|
|
@@ -51897,7 +51916,7 @@ var cK = ["src"], lK = {
|
|
|
51897
51916
|
let { content: e } = n;
|
|
51898
51917
|
if (!e) return "";
|
|
51899
51918
|
let t = i(n.extension);
|
|
51900
|
-
if (t === "plaintext" || e.length >
|
|
51919
|
+
if (t === "plaintext" || e.length > Pq) return r(e);
|
|
51901
51920
|
try {
|
|
51902
51921
|
return xU.highlight(e, {
|
|
51903
51922
|
language: t,
|
|
@@ -51907,57 +51926,57 @@ var cK = ["src"], lK = {
|
|
|
51907
51926
|
return r(e);
|
|
51908
51927
|
}
|
|
51909
51928
|
});
|
|
51910
|
-
return (e, t) => (B(), h(o, null, [m(" 高亮结果由 highlight.js 生成,未识别语言时走 escapeHtml 兜底,无注入风险 "), g("pre",
|
|
51929
|
+
return (e, t) => (B(), h(o, null, [m(" 高亮结果由 highlight.js 生成,未识别语言时走 escapeHtml 兜底,无注入风险 "), g("pre", Mq, [g("code", {
|
|
51911
51930
|
class: "hljs",
|
|
51912
51931
|
innerHTML: a.value
|
|
51913
|
-
}, null, 8,
|
|
51932
|
+
}, null, 8, Nq)])], 2112));
|
|
51914
51933
|
}
|
|
51915
|
-
}),
|
|
51934
|
+
}), Iq = ["srcdoc"], Lq = /* @__PURE__ */ x({
|
|
51916
51935
|
__name: "html-preview",
|
|
51917
51936
|
props: { content: {} },
|
|
51918
51937
|
setup(e) {
|
|
51919
51938
|
return (t, n) => (B(), h("iframe", {
|
|
51920
51939
|
class: "ai-artifact-html-preview",
|
|
51921
51940
|
srcdoc: e.content
|
|
51922
|
-
}, null, 8,
|
|
51941
|
+
}, null, 8, Iq));
|
|
51923
51942
|
}
|
|
51924
|
-
}),
|
|
51943
|
+
}), Rq = { class: "ai-artifact-image-preview" }, zq = ["alt", "src"], Bq = /* @__PURE__ */ x({
|
|
51925
51944
|
__name: "image-preview",
|
|
51926
51945
|
props: {
|
|
51927
51946
|
name: {},
|
|
51928
51947
|
url: {}
|
|
51929
51948
|
},
|
|
51930
51949
|
setup(e) {
|
|
51931
|
-
return (t, n) => (B(), h("div",
|
|
51950
|
+
return (t, n) => (B(), h("div", Rq, [g("img", {
|
|
51932
51951
|
alt: e.name,
|
|
51933
51952
|
src: e.url
|
|
51934
|
-
}, null, 8,
|
|
51953
|
+
}, null, 8, zq)]));
|
|
51935
51954
|
}
|
|
51936
|
-
}),
|
|
51955
|
+
}), Vq = { class: "ai-artifact-markdown-preview" }, Hq = /* @__PURE__ */ x({
|
|
51937
51956
|
__name: "markdown-preview",
|
|
51938
51957
|
props: { content: {} },
|
|
51939
51958
|
setup(e) {
|
|
51940
|
-
return (t, n) => (B(), h("div",
|
|
51959
|
+
return (t, n) => (B(), h("div", Vq, [y(lW, {
|
|
51941
51960
|
content: e.content,
|
|
51942
51961
|
status: q(Q).Success
|
|
51943
51962
|
}, null, 8, ["content", "status"])]));
|
|
51944
51963
|
}
|
|
51945
|
-
}),
|
|
51964
|
+
}), Uq = { class: "ai-artifact-txt-preview" }, Wq = /* @__PURE__ */ x({
|
|
51946
51965
|
__name: "txt-preview",
|
|
51947
51966
|
props: { content: {} },
|
|
51948
51967
|
setup(e) {
|
|
51949
|
-
return (t, n) => (B(), h("pre",
|
|
51968
|
+
return (t, n) => (B(), h("pre", Uq, G(e.content), 1));
|
|
51950
51969
|
}
|
|
51951
|
-
}),
|
|
51970
|
+
}), Gq = ["src"], Kq = /* @__PURE__ */ x({
|
|
51952
51971
|
__name: "url-iframe-preview",
|
|
51953
51972
|
props: { url: {} },
|
|
51954
51973
|
setup(e) {
|
|
51955
51974
|
return (t, n) => (B(), h("iframe", {
|
|
51956
51975
|
class: "ai-artifact-url-iframe-preview",
|
|
51957
51976
|
src: e.url
|
|
51958
|
-
}, null, 8,
|
|
51977
|
+
}, null, 8, Gq));
|
|
51959
51978
|
}
|
|
51960
|
-
}),
|
|
51979
|
+
}), qq = {
|
|
51961
51980
|
binary: {
|
|
51962
51981
|
load: "preview_url",
|
|
51963
51982
|
renderer: "urlIframe"
|
|
@@ -51982,7 +52001,7 @@ var cK = ["src"], lK = {
|
|
|
51982
52001
|
load: "text_from_download",
|
|
51983
52002
|
renderer: "txt"
|
|
51984
52003
|
}
|
|
51985
|
-
},
|
|
52004
|
+
}, Jq = (e, t) => qq[dD(e, t)], Yq = (e) => {
|
|
51986
52005
|
let t = W("idle"), n = W(""), r = W(""), i = W(""), a = W("urlIframe"), o, s = 0, c = () => {
|
|
51987
52006
|
n.value = "", r.value = "", i.value = "";
|
|
51988
52007
|
}, l = async () => {
|
|
@@ -51994,7 +52013,7 @@ var cK = ["src"], lK = {
|
|
|
51994
52013
|
return;
|
|
51995
52014
|
}
|
|
51996
52015
|
t.value = "loading", c();
|
|
51997
|
-
let d =
|
|
52016
|
+
let d = Jq(u.type, u.name);
|
|
51998
52017
|
a.value = d.renderer;
|
|
51999
52018
|
try {
|
|
52000
52019
|
let a = await e.resolveUrls(u);
|
|
@@ -52042,20 +52061,20 @@ var cK = ["src"], lK = {
|
|
|
52042
52061
|
renderer: a,
|
|
52043
52062
|
status: t
|
|
52044
52063
|
};
|
|
52045
|
-
},
|
|
52064
|
+
}, Xq = { class: "ai-artifact-preview-host" }, Zq = {
|
|
52046
52065
|
key: 0,
|
|
52047
52066
|
class: "ai-artifact-preview-host-loading"
|
|
52048
|
-
},
|
|
52067
|
+
}, Qq = {
|
|
52049
52068
|
key: 1,
|
|
52050
52069
|
class: "ai-artifact-preview-host-error"
|
|
52051
|
-
},
|
|
52070
|
+
}, $q = {
|
|
52052
52071
|
key: 2,
|
|
52053
52072
|
class: "ai-artifact-preview-host-empty"
|
|
52054
|
-
},
|
|
52073
|
+
}, eJ = /* @__PURE__ */ x({
|
|
52055
52074
|
__name: "artifact-preview-host",
|
|
52056
52075
|
props: { file: {} },
|
|
52057
52076
|
setup(e, { expose: t }) {
|
|
52058
|
-
let n = e, r = eP(), { content: i, downloadUrl: a, load: o, previewUrl: s, renderer: c, status: l } =
|
|
52077
|
+
let n = e, r = eP(), { content: i, downloadUrl: a, load: o, previewUrl: s, renderer: c, status: l } = Yq({
|
|
52059
52078
|
canResolve: () => !!r?.canResolveArtifactUrl.value,
|
|
52060
52079
|
getFile: () => n.file,
|
|
52061
52080
|
resolveUrls: (e) => r?.resolveArtifactUrls(e) ?? Promise.resolve({})
|
|
@@ -52066,7 +52085,7 @@ var cK = ["src"], lK = {
|
|
|
52066
52085
|
content: i,
|
|
52067
52086
|
renderer: c,
|
|
52068
52087
|
status: l
|
|
52069
|
-
}), (t, n) => (B(), h("div",
|
|
52088
|
+
}), (t, n) => (B(), h("div", Xq, [q(l) === "loading" ? (B(), h("div", Zq, [y(jq)])) : q(l) === "error" ? (B(), h("div", Qq, [g("span", null, G(q(Z)("预览加载失败")), 1), y(q(ay), {
|
|
52070
52089
|
size: "small",
|
|
52071
52090
|
text: "",
|
|
52072
52091
|
theme: "primary",
|
|
@@ -52074,41 +52093,41 @@ var cK = ["src"], lK = {
|
|
|
52074
52093
|
}, {
|
|
52075
52094
|
default: J(() => [v(G(q(Z)("重试")), 1)]),
|
|
52076
52095
|
_: 1
|
|
52077
|
-
})])) : q(l) === "empty" || !e.file ? (B(), h("div",
|
|
52096
|
+
})])) : q(l) === "empty" || !e.file ? (B(), h("div", $q, G(q(Z)("暂无可预览的文件")), 1)) : q(c) === "html" ? (B(), p(Lq, {
|
|
52078
52097
|
key: 3,
|
|
52079
52098
|
content: q(i)
|
|
52080
|
-
}, null, 8, ["content"])) : q(c) === "code" ? (B(), p(
|
|
52099
|
+
}, null, 8, ["content"])) : q(c) === "code" ? (B(), p(Fq, {
|
|
52081
52100
|
key: 4,
|
|
52082
52101
|
content: q(i),
|
|
52083
52102
|
extension: u.value
|
|
52084
|
-
}, null, 8, ["content", "extension"])) : q(c) === "txt" ? (B(), p(
|
|
52103
|
+
}, null, 8, ["content", "extension"])) : q(c) === "txt" ? (B(), p(Wq, {
|
|
52085
52104
|
key: 5,
|
|
52086
52105
|
content: q(i)
|
|
52087
|
-
}, null, 8, ["content"])) : q(c) === "markdown" ? (B(), p(
|
|
52106
|
+
}, null, 8, ["content"])) : q(c) === "markdown" ? (B(), p(Hq, {
|
|
52088
52107
|
key: 6,
|
|
52089
52108
|
content: q(i)
|
|
52090
|
-
}, null, 8, ["content"])) : q(c) === "image" ? (B(), p(
|
|
52109
|
+
}, null, 8, ["content"])) : q(c) === "image" ? (B(), p(Bq, {
|
|
52091
52110
|
key: 7,
|
|
52092
52111
|
name: e.file?.name,
|
|
52093
52112
|
url: q(a)
|
|
52094
|
-
}, null, 8, ["name", "url"])) : (B(), p(
|
|
52113
|
+
}, null, 8, ["name", "url"])) : (B(), p(Kq, {
|
|
52095
52114
|
key: 8,
|
|
52096
52115
|
url: q(s)
|
|
52097
52116
|
}, null, 8, ["url"]))]));
|
|
52098
52117
|
}
|
|
52099
|
-
}),
|
|
52118
|
+
}), tJ = {
|
|
52100
52119
|
key: 0,
|
|
52101
52120
|
class: "ai-file-artifact-panel is-empty"
|
|
52102
|
-
},
|
|
52121
|
+
}, nJ = { class: "ai-file-artifact-panel-empty-text" }, rJ = {
|
|
52103
52122
|
key: 1,
|
|
52104
52123
|
class: "ai-file-artifact-panel"
|
|
52105
|
-
},
|
|
52124
|
+
}, iJ = { class: "ai-file-artifact-panel-list" }, aJ = { class: "ai-file-artifact-panel-list-title" }, oJ = { class: "ai-file-artifact-panel-list-scroll" }, sJ = {
|
|
52106
52125
|
key: 1,
|
|
52107
52126
|
class: "ai-file-artifact-panel-list-empty"
|
|
52108
|
-
},
|
|
52127
|
+
}, cJ = { class: "ai-file-artifact-panel-preview" }, lJ = {
|
|
52109
52128
|
key: 0,
|
|
52110
52129
|
class: "ai-file-artifact-panel-preview-header"
|
|
52111
|
-
},
|
|
52130
|
+
}, uJ = { class: "ai-file-artifact-panel-preview-header-info" }, dJ = { class: "ai-file-artifact-panel-preview-header-name" }, fJ = { class: "ai-file-artifact-panel-preview-header-actions" }, pJ = { class: "ai-file-artifact-panel-preview-body" }, mJ = /* @__PURE__ */ x({
|
|
52112
52131
|
__name: "file-artifact-panel",
|
|
52113
52132
|
props: {
|
|
52114
52133
|
activeId: {},
|
|
@@ -52159,10 +52178,10 @@ var cK = ["src"], lK = {
|
|
|
52159
52178
|
};
|
|
52160
52179
|
return pe(() => E.value?.outputId, () => {
|
|
52161
52180
|
S.value = !1;
|
|
52162
|
-
}), (t, n) => (B(), h(o, null, [m(" 无产物:整块空态,不展示文件列表与预览区 "), e.artifacts.length ? (B(), h("div",
|
|
52181
|
+
}), (t, n) => (B(), h(o, null, [m(" 无产物:整块空态,不展示文件列表与预览区 "), e.artifacts.length ? (B(), h("div", rJ, [
|
|
52163
52182
|
m(" 左侧:文件列表 + 搜索 "),
|
|
52164
|
-
g("div",
|
|
52165
|
-
g("p",
|
|
52183
|
+
g("div", iJ, [
|
|
52184
|
+
g("p", aJ, G(q(Z)("文件列表")) + "(" + G(e.artifacts.length) + ")", 1),
|
|
52166
52185
|
y(q(Hy), {
|
|
52167
52186
|
modelValue: x.value,
|
|
52168
52187
|
"onUpdate:modelValue": n[0] ||= (e) => x.value = e,
|
|
@@ -52170,7 +52189,7 @@ var cK = ["src"], lK = {
|
|
|
52170
52189
|
clearable: "",
|
|
52171
52190
|
placeholder: q(Z)("搜索文件关键字")
|
|
52172
52191
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
52173
|
-
g("div",
|
|
52192
|
+
g("div", oJ, [T.value.length ? (B(!0), h(o, { key: 0 }, H(T.value, (t) => (B(), p(Eq, {
|
|
52174
52193
|
key: t.outputId,
|
|
52175
52194
|
active: t.outputId === e.activeId,
|
|
52176
52195
|
file: t,
|
|
@@ -52180,18 +52199,18 @@ var cK = ["src"], lK = {
|
|
|
52180
52199
|
"active",
|
|
52181
52200
|
"file",
|
|
52182
52201
|
"on-preview"
|
|
52183
|
-
]))), 128)) : (B(), h("div",
|
|
52202
|
+
]))), 128)) : (B(), h("div", sJ, G(q(Z)("搜索结果为空")), 1))])
|
|
52184
52203
|
]),
|
|
52185
52204
|
m(" 右侧:预览区 "),
|
|
52186
|
-
g("div",
|
|
52205
|
+
g("div", cJ, [E.value ? (B(), h("div", lJ, [g("div", uJ, [y(Cq, {
|
|
52187
52206
|
class: "ai-file-artifact-panel-preview-header-icon",
|
|
52188
52207
|
"file-name": E.value.name,
|
|
52189
52208
|
"file-type": E.value.type
|
|
52190
|
-
}, null, 8, ["file-name", "file-type"]), ge((B(), h("span",
|
|
52209
|
+
}, null, 8, ["file-name", "file-type"]), ge((B(), h("span", dJ, [v(G(E.value.name), 1)])), [[q(LP), {
|
|
52191
52210
|
...q(l),
|
|
52192
52211
|
text: E.value.name,
|
|
52193
52212
|
placement: "top"
|
|
52194
|
-
}]])]), g("div",
|
|
52213
|
+
}]])]), g("div", fJ, [D.value ? ge((B(), h("span", {
|
|
52195
52214
|
key: 0,
|
|
52196
52215
|
class: P(["ai-file-artifact-panel-preview-header-action", { "is-disabled": !O.value }]),
|
|
52197
52216
|
onClick: A
|
|
@@ -52204,18 +52223,18 @@ var cK = ["src"], lK = {
|
|
|
52204
52223
|
mode: "spin",
|
|
52205
52224
|
size: "mini",
|
|
52206
52225
|
theme: "primary"
|
|
52207
|
-
})) : (B(), p(ae(_()), { key: 1 }))], 2)), [[q(MN), w.value]]) : m("v-if", !0)])])) : m("v-if", !0), g("div",
|
|
52226
|
+
})) : (B(), p(ae(_()), { key: 1 }))], 2)), [[q(MN), w.value]]) : m("v-if", !0)])])) : m("v-if", !0), g("div", pJ, [y(eJ, {
|
|
52208
52227
|
ref_key: "previewHostRef",
|
|
52209
52228
|
ref: f,
|
|
52210
52229
|
file: E.value
|
|
52211
52230
|
}, null, 8, ["file"])])])
|
|
52212
|
-
])) : (B(), h("div",
|
|
52231
|
+
])) : (B(), h("div", tJ, [y(q(pC), {
|
|
52213
52232
|
class: "ai-file-artifact-panel-empty-exception",
|
|
52214
52233
|
scene: "part",
|
|
52215
52234
|
type: "empty"
|
|
52216
|
-
}), g("div",
|
|
52235
|
+
}), g("div", nJ, G(q(Z)("暂无数据")), 1)]))], 2112));
|
|
52217
52236
|
}
|
|
52218
|
-
}),
|
|
52237
|
+
}), hJ = "others", gJ = (e) => e < 26 ? String.fromCharCode(65 + e) : String(e + 1), _J = (e) => {
|
|
52219
52238
|
let t = d(() => e()?.metadata?.questions ?? []), n = W({}), r = W(0), i = d(() => t.value.length), a = d(() => t.value.reduce((e, t, r) => e + +!!n.value[r], 0)), o = d(() => i.value > 0 && a.value === i.value), s = d(() => r.value > 0), c = d(() => r.value < i.value - 1), l = (e) => n.value[e], u = () => {
|
|
52220
52239
|
s.value && --r.value;
|
|
52221
52240
|
}, f = () => {
|
|
@@ -52250,17 +52269,17 @@ var cK = ["src"], lK = {
|
|
|
52250
52269
|
status: "resolved",
|
|
52251
52270
|
payload: { answers: h() }
|
|
52252
52271
|
}),
|
|
52253
|
-
buildSkipPayload: () =>
|
|
52272
|
+
buildSkipPayload: () => vJ(e())
|
|
52254
52273
|
};
|
|
52255
|
-
},
|
|
52274
|
+
}, vJ = (e) => ({
|
|
52256
52275
|
interruptId: e?.id ?? "",
|
|
52257
52276
|
reason: zD.UserQuestion,
|
|
52258
52277
|
status: "cancelled",
|
|
52259
52278
|
payload: { answers: [] }
|
|
52260
|
-
}),
|
|
52279
|
+
}), yJ = { class: "ai-user-question-answered" }, bJ = { class: "ai-user-question-answered__header" }, xJ = { class: "ai-user-question-answered__title-wrap" }, SJ = { class: "ai-user-question-answered__title" }, CJ = { class: "ai-user-question-answered__status" }, wJ = { class: "ai-user-question-answered__body" }, TJ = { class: "ai-user-question-answered__question" }, EJ = { class: "ai-user-question-answered__question-text" }, DJ = {
|
|
52261
52280
|
key: 0,
|
|
52262
52281
|
class: "ai-user-question-answered__tag"
|
|
52263
|
-
},
|
|
52282
|
+
}, OJ = /* @__PURE__ */ x({
|
|
52264
52283
|
__name: "user-question-answered-card",
|
|
52265
52284
|
props: {
|
|
52266
52285
|
answers: {},
|
|
@@ -52268,11 +52287,11 @@ var cK = ["src"], lK = {
|
|
|
52268
52287
|
},
|
|
52269
52288
|
setup(e) {
|
|
52270
52289
|
let t = e, n = d(() => t.status === "cancelled" ? Z("已取消") : Z("已回复"));
|
|
52271
|
-
return (t, r) => (B(), h("section",
|
|
52290
|
+
return (t, r) => (B(), h("section", yJ, [g("header", bJ, [g("div", xJ, [y(q(Mk), { class: "ai-user-question-answered__help-icon" }), g("span", SJ, G(q(Z)("回答内容")), 1)]), g("span", CJ, G(n.value), 1)]), g("div", wJ, [(B(!0), h(o, null, H(e.answers, (n, r) => (B(), h("div", {
|
|
52272
52291
|
key: r,
|
|
52273
52292
|
class: "ai-user-question-answered__item"
|
|
52274
52293
|
}, [
|
|
52275
|
-
g("div",
|
|
52294
|
+
g("div", TJ, [g("span", EJ, G(r + 1) + ". " + G(n.question), 1), n.multiSelect === void 0 ? m("v-if", !0) : (B(), h("span", DJ, G(n.multiSelect ? q(Z)("多选") : q(Z)("单选")), 1))]),
|
|
52276
52295
|
m(" 默认逐条回显选择题答案;业务方可覆盖此 slot 渲染自定义表单的回显 "),
|
|
52277
52296
|
U(t.$slots, "answer", M({ ref_for: !0 }, {
|
|
52278
52297
|
item: n,
|
|
@@ -52284,10 +52303,10 @@ var cK = ["src"], lK = {
|
|
|
52284
52303
|
}, G(e.description || e.label), 1))), 128))])
|
|
52285
52304
|
]))), 128))])]));
|
|
52286
52305
|
}
|
|
52287
|
-
}),
|
|
52306
|
+
}), kJ = { class: "ai-user-question-option__badge" }, AJ = ["placeholder", "value"], jJ = {
|
|
52288
52307
|
key: 1,
|
|
52289
52308
|
class: "ai-user-question-option__text"
|
|
52290
|
-
},
|
|
52309
|
+
}, MJ = /* @__PURE__ */ x({
|
|
52291
52310
|
__name: "user-question-option",
|
|
52292
52311
|
props: {
|
|
52293
52312
|
option: {},
|
|
@@ -52315,7 +52334,7 @@ var cK = ["src"], lK = {
|
|
|
52315
52334
|
}]),
|
|
52316
52335
|
onClick: i
|
|
52317
52336
|
}, [
|
|
52318
|
-
g("span",
|
|
52337
|
+
g("span", kJ, G(e.option.letter), 1),
|
|
52319
52338
|
m(" Others:自定义输入 "),
|
|
52320
52339
|
e.option.isOthers ? (B(), h("input", {
|
|
52321
52340
|
key: 0,
|
|
@@ -52326,25 +52345,25 @@ var cK = ["src"], lK = {
|
|
|
52326
52345
|
onFocus: a,
|
|
52327
52346
|
onInput: o,
|
|
52328
52347
|
onKeydown: n[1] ||= _e(ve((e) => r("confirm"), ["stop"]), ["enter"])
|
|
52329
|
-
}, null, 40,
|
|
52348
|
+
}, null, 40, AJ)) : (B(), h("span", jJ, G(e.option.description), 1))
|
|
52330
52349
|
], 2));
|
|
52331
52350
|
}
|
|
52332
|
-
}),
|
|
52351
|
+
}), NJ = { class: "ai-user-question-choice" }, PJ = /* @__PURE__ */ x({
|
|
52333
52352
|
__name: "user-question-choice",
|
|
52334
52353
|
props: { question: {} },
|
|
52335
52354
|
emits: ["answer", "confirm"],
|
|
52336
52355
|
setup(e, { emit: t }) {
|
|
52337
52356
|
let n = e, r = t, i = W([]), a = W(""), s = d(() => {
|
|
52338
|
-
let e = (n.question.options ?? []).filter((e) => e.label !==
|
|
52357
|
+
let e = (n.question.options ?? []).filter((e) => e.label !== hJ).map((e, t) => ({
|
|
52339
52358
|
...e,
|
|
52340
52359
|
isOthers: !1,
|
|
52341
|
-
letter:
|
|
52360
|
+
letter: gJ(t)
|
|
52342
52361
|
}));
|
|
52343
52362
|
return e.push({
|
|
52344
|
-
label:
|
|
52363
|
+
label: hJ,
|
|
52345
52364
|
description: "",
|
|
52346
52365
|
isOthers: !0,
|
|
52347
|
-
letter:
|
|
52366
|
+
letter: gJ(e.length)
|
|
52348
52367
|
}), e;
|
|
52349
52368
|
}), c = d(() => s.value.findIndex((e) => e.isOthers)), l = (e) => i.value.includes(e), u = d(() => i.value.length ? c.value >= 0 && i.value.includes(c.value) ? a.value.trim().length > 0 : !0 : !1), f = () => ({
|
|
52350
52369
|
question: n.question.question,
|
|
@@ -52352,7 +52371,7 @@ var cK = ["src"], lK = {
|
|
|
52352
52371
|
answer: i.value.map((e) => {
|
|
52353
52372
|
let t = s.value[e];
|
|
52354
52373
|
return t?.isOthers ? {
|
|
52355
|
-
label:
|
|
52374
|
+
label: hJ,
|
|
52356
52375
|
description: a.value.trim()
|
|
52357
52376
|
} : {
|
|
52358
52377
|
label: t?.label ?? "",
|
|
@@ -52367,7 +52386,7 @@ var cK = ["src"], lK = {
|
|
|
52367
52386
|
};
|
|
52368
52387
|
return pe(() => n.question, () => {
|
|
52369
52388
|
i.value = [], a.value = "", m();
|
|
52370
|
-
}), (e, t) => (B(), h("div",
|
|
52389
|
+
}), (e, t) => (B(), h("div", NJ, [(B(!0), h(o, null, H(s.value, (e, n) => (B(), p(MJ, {
|
|
52371
52390
|
key: n,
|
|
52372
52391
|
option: e,
|
|
52373
52392
|
"others-text": a.value,
|
|
@@ -52382,17 +52401,17 @@ var cK = ["src"], lK = {
|
|
|
52382
52401
|
"onSelect"
|
|
52383
52402
|
]))), 128))]));
|
|
52384
52403
|
}
|
|
52385
|
-
}),
|
|
52404
|
+
}), FJ = { class: "ai-user-question-card__title-wrap" }, IJ = { class: "ai-user-question-card__title" }, LJ = { class: "ai-user-question-card__header-actions" }, RJ = { class: "ai-user-question-card__pager" }, zJ = ["disabled"], BJ = { class: "ai-user-question-card__pager-text" }, VJ = ["disabled"], HJ = { class: "ai-user-question-card__body" }, UJ = { class: "ai-user-question-card__question-title" }, WJ = { class: "ai-user-question-card__question-text" }, GJ = {
|
|
52386
52405
|
key: 0,
|
|
52387
52406
|
class: "ai-user-question-card__tag"
|
|
52388
|
-
},
|
|
52407
|
+
}, KJ = { class: "ai-user-question-card__options" }, qJ = { class: "ai-user-question-card__footer" }, JJ = { class: "ai-user-question-card__progress" }, YJ = { class: "ai-user-question-card__progress-num" }, XJ = { class: "ai-user-question-card__actions" }, ZJ = /* @__PURE__ */ x({
|
|
52389
52408
|
__name: "user-question-card",
|
|
52390
52409
|
props: {
|
|
52391
52410
|
interrupt: {},
|
|
52392
52411
|
onResume: { type: Function }
|
|
52393
52412
|
},
|
|
52394
52413
|
setup(e) {
|
|
52395
|
-
let t = e, n = PP(), r = W(!1), { questions: i, answeredCount: a, totalCount: s, completed: c, currentIndex: l, canGoPrev: u, canGoNext: f, goPrev: _, goNext: b, getAnswer: x, setAnswer: S, buildResolvePayload: C, buildSkipPayload: w } =
|
|
52414
|
+
let t = e, n = PP(), r = W(!1), { questions: i, answeredCount: a, totalCount: s, completed: c, currentIndex: l, canGoPrev: u, canGoNext: f, goPrev: _, goNext: b, getAnswer: x, setAnswer: S, buildResolvePayload: C, buildSkipPayload: w } = _J(() => t.interrupt), T = d(() => t.interrupt.metadata?.questions?.[0]?.header || t.interrupt.message || ""), E = () => {
|
|
52396
52415
|
r.value = !r.value;
|
|
52397
52416
|
}, D = () => {
|
|
52398
52417
|
r.value &&= !1;
|
|
@@ -52405,21 +52424,21 @@ var cK = ["src"], lK = {
|
|
|
52405
52424
|
g("header", {
|
|
52406
52425
|
class: "ai-user-question-card__header",
|
|
52407
52426
|
onClick: D
|
|
52408
|
-
}, [g("div",
|
|
52409
|
-
g("div",
|
|
52427
|
+
}, [g("div", FJ, [y(q(Mk), { class: "ai-user-question-card__help-icon" }), ge((B(), h("span", IJ, [v(G(T.value), 1)])), [[q(LP), { ...q(n) }]])]), g("div", LJ, [
|
|
52428
|
+
g("div", RJ, [
|
|
52410
52429
|
g("button", {
|
|
52411
52430
|
class: P(["ai-user-question-card__nav-btn", { "is-disabled": !q(u) }]),
|
|
52412
52431
|
disabled: !q(u),
|
|
52413
52432
|
type: "button",
|
|
52414
52433
|
onClick: t[0] ||= ve((...e) => q(_) && q(_)(...e), ["stop"])
|
|
52415
|
-
}, [y(q(yk), { class: "ai-user-question-card__nav-icon" })], 10,
|
|
52416
|
-
g("span",
|
|
52434
|
+
}, [y(q(yk), { class: "ai-user-question-card__nav-icon" })], 10, zJ),
|
|
52435
|
+
g("span", BJ, G(q(l) + 1) + " / " + G(q(s)), 1),
|
|
52417
52436
|
g("button", {
|
|
52418
52437
|
class: P(["ai-user-question-card__nav-btn", { "is-disabled": !q(f) }]),
|
|
52419
52438
|
disabled: !q(f),
|
|
52420
52439
|
type: "button",
|
|
52421
52440
|
onClick: t[1] ||= ve((...e) => q(b) && q(b)(...e), ["stop"])
|
|
52422
|
-
}, [y(q(bk), { class: "ai-user-question-card__nav-icon" })], 10,
|
|
52441
|
+
}, [y(q(bk), { class: "ai-user-question-card__nav-icon" })], 10, VJ)
|
|
52423
52442
|
]),
|
|
52424
52443
|
t[2] ||= g("span", { class: "ai-user-question-card__divider" }, null, -1),
|
|
52425
52444
|
g("button", {
|
|
@@ -52432,25 +52451,25 @@ var cK = ["src"], lK = {
|
|
|
52432
52451
|
}, null, 8, ["style"])])
|
|
52433
52452
|
])]),
|
|
52434
52453
|
m(" 折叠用 v-show 而非 v-if:保留 UserQuestionChoice 及自定义 slot 的勾选态,避免卸载丢失选中 "),
|
|
52435
|
-
ge(g("div",
|
|
52454
|
+
ge(g("div", HJ, [m(" 一次只展示一题;全部题目仍挂载以保留勾选 / Others 输入态 "), (B(!0), h(o, null, H(q(i), (t, n) => ge((B(), h("div", {
|
|
52436
52455
|
key: n,
|
|
52437
52456
|
class: "ai-user-question-card__question"
|
|
52438
|
-
}, [g("div",
|
|
52457
|
+
}, [g("div", UJ, [g("span", WJ, G(n + 1) + ". " + G(t.question), 1), t.multiSelect === void 0 ? m("v-if", !0) : (B(), h("span", GJ, G(t.multiSelect ? q(Z)("多选") : q(Z)("单选")), 1))]), g("div", KJ, [m(" 默认渲染选择题;业务方可覆盖此 slot 渲染任意表单,作答有效时通过 setAnswer 回传 "), U(e.$slots, "question", M({ ref_for: !0 }, {
|
|
52439
52458
|
question: t,
|
|
52440
52459
|
qIndex: n,
|
|
52441
52460
|
answer: q(x)(n),
|
|
52442
52461
|
setAnswer: (e) => q(S)(n, e),
|
|
52443
52462
|
confirm: k
|
|
52444
|
-
}), () => [y(
|
|
52463
|
+
}), () => [y(PJ, {
|
|
52445
52464
|
question: t,
|
|
52446
52465
|
onAnswer: (e) => q(S)(n, e),
|
|
52447
52466
|
onConfirm: k
|
|
52448
52467
|
}, null, 8, ["question", "onAnswer"])])])])), [[fe, n === q(l)]])), 128))], 512), [[fe, !r.value]]),
|
|
52449
|
-
ge(g("footer",
|
|
52468
|
+
ge(g("footer", qJ, [g("span", JJ, [
|
|
52450
52469
|
v(G(q(Z)("已完成")) + " ", 1),
|
|
52451
|
-
g("span",
|
|
52470
|
+
g("span", YJ, G(q(a)), 1),
|
|
52452
52471
|
v(" " + G(q(Z)("题")), 1)
|
|
52453
|
-
]), g("div",
|
|
52472
|
+
]), g("div", XJ, [y(q(ay), {
|
|
52454
52473
|
class: "ai-user-question-card__skip",
|
|
52455
52474
|
disabled: O.value === "complete",
|
|
52456
52475
|
loading: O.value === "skip",
|
|
@@ -52479,27 +52498,27 @@ var cK = ["src"], lK = {
|
|
|
52479
52498
|
}, 8, ["disabled", "loading"])])], 512), [[fe, !r.value]])
|
|
52480
52499
|
], 2));
|
|
52481
52500
|
}
|
|
52482
|
-
}),
|
|
52501
|
+
}), QJ = 864e5, $J = {
|
|
52483
52502
|
day: "numeric",
|
|
52484
52503
|
hour: "2-digit",
|
|
52485
52504
|
hourCycle: "h23",
|
|
52486
52505
|
minute: "2-digit",
|
|
52487
52506
|
month: "numeric",
|
|
52488
52507
|
year: "numeric"
|
|
52489
|
-
},
|
|
52490
|
-
let t = e ?? "", n =
|
|
52508
|
+
}, eY = /* @__PURE__ */ new Map(), tY = (e) => {
|
|
52509
|
+
let t = e ?? "", n = eY.get(t);
|
|
52491
52510
|
if (n) return n;
|
|
52492
52511
|
let r;
|
|
52493
52512
|
try {
|
|
52494
52513
|
r = new Intl.DateTimeFormat("en-US", {
|
|
52495
|
-
|
|
52514
|
+
...$J,
|
|
52496
52515
|
timeZone: e
|
|
52497
52516
|
});
|
|
52498
52517
|
} catch {
|
|
52499
|
-
r = new Intl.DateTimeFormat("en-US",
|
|
52518
|
+
r = new Intl.DateTimeFormat("en-US", $J);
|
|
52500
52519
|
}
|
|
52501
|
-
return
|
|
52502
|
-
},
|
|
52520
|
+
return eY.set(t, r), r;
|
|
52521
|
+
}, nY = (e, t) => {
|
|
52503
52522
|
let n = e.formatToParts(t), r = (e) => Number(n.find((t) => t.type === e)?.value);
|
|
52504
52523
|
return {
|
|
52505
52524
|
day: r("day"),
|
|
@@ -52508,29 +52527,29 @@ var cK = ["src"], lK = {
|
|
|
52508
52527
|
month: r("month"),
|
|
52509
52528
|
year: r("year")
|
|
52510
52529
|
};
|
|
52511
|
-
},
|
|
52530
|
+
}, rY = (e) => Date.UTC(e.year, e.month - 1, e.day), iY = (e) => String(e).padStart(2, "0"), aY = (e, t) => {
|
|
52512
52531
|
if (e == null || e === "") return "";
|
|
52513
52532
|
let n = new Date(e).getTime();
|
|
52514
52533
|
if (Number.isNaN(n)) return "";
|
|
52515
|
-
let r =
|
|
52534
|
+
let r = tY(t), i = nY(r, n), a = nY(r, Date.now()), o = `${iY(i.hour)}:${iY(i.minute)}`, s = Math.round((rY(a) - rY(i)) / QJ);
|
|
52516
52535
|
if (s === 0) return o;
|
|
52517
52536
|
if (s === 1) return `${Z("昨天")} ${o}`;
|
|
52518
52537
|
let c = `${i.month}-${i.day} ${o}`;
|
|
52519
52538
|
return i.year === a.year ? c : `${i.year}-${c}`;
|
|
52520
|
-
},
|
|
52539
|
+
}, oY = {
|
|
52521
52540
|
key: 0,
|
|
52522
52541
|
class: "ai-message-time"
|
|
52523
|
-
},
|
|
52542
|
+
}, sY = /* @__PURE__ */ x({
|
|
52524
52543
|
__name: "message-time",
|
|
52525
52544
|
props: {
|
|
52526
52545
|
createdAt: {},
|
|
52527
52546
|
timezone: {}
|
|
52528
52547
|
},
|
|
52529
52548
|
setup(e) {
|
|
52530
|
-
let t = e, n = gP(), r = d(() => t.timezone ?? n?.timezone?.value), i = d(() =>
|
|
52531
|
-
return (e, t) => i.value ? (B(), h("span",
|
|
52549
|
+
let t = e, n = gP(), r = d(() => t.timezone ?? n?.timezone?.value), i = d(() => aY(t.createdAt, r.value));
|
|
52550
|
+
return (e, t) => i.value ? (B(), h("span", oY, G(i.value), 1)) : m("v-if", !0);
|
|
52532
52551
|
}
|
|
52533
|
-
}),
|
|
52552
|
+
}), cY = { class: "ai-delete-confirm" }, lY = { class: "ai-delete-confirm__title" }, uY = { class: "ai-delete-confirm__desc" }, dY = { class: "ai-delete-confirm__actions" }, fY = /* @__PURE__ */ x({
|
|
52534
52553
|
__name: "delete-tool",
|
|
52535
52554
|
props: {
|
|
52536
52555
|
description: {},
|
|
@@ -52573,10 +52592,10 @@ var cK = ["src"], lK = {
|
|
|
52573
52592
|
ref_key: "tippyRef",
|
|
52574
52593
|
ref: i
|
|
52575
52594
|
}, o.value, { onShow: s }), {
|
|
52576
|
-
content: J(() => [g("div",
|
|
52577
|
-
g("div",
|
|
52578
|
-
g("div",
|
|
52579
|
-
g("div",
|
|
52595
|
+
content: J(() => [g("div", cY, [
|
|
52596
|
+
g("div", lY, G(q(Z)("确认删除该回答?")), 1),
|
|
52597
|
+
g("div", uY, G(q(Z)("删除操作无法撤回,请谨慎操作!")), 1),
|
|
52598
|
+
g("div", dY, [y(q(ay), {
|
|
52580
52599
|
size: "small",
|
|
52581
52600
|
theme: "danger",
|
|
52582
52601
|
onClick: l
|
|
@@ -52595,7 +52614,7 @@ var cK = ["src"], lK = {
|
|
|
52595
52614
|
_: 1
|
|
52596
52615
|
}, 16));
|
|
52597
52616
|
}
|
|
52598
|
-
}),
|
|
52617
|
+
}), pY = { class: "ai-feedback-title" }, mY = { class: "ai-feedback-reason-list" }, hY = ["onClick"], gY = { class: "ai-feedback-other" }, _Y = { class: "ai-feedback-footer" }, vY = /* @__PURE__ */ x({
|
|
52599
52618
|
__name: "user-feedback",
|
|
52600
52619
|
props: {
|
|
52601
52620
|
loading: { type: Boolean },
|
|
@@ -52615,23 +52634,23 @@ var cK = ["src"], lK = {
|
|
|
52615
52634
|
class: "ai-user-feedback",
|
|
52616
52635
|
onMouseenter: n[1] ||= ve(() => {}, ["stop", "prevent"])
|
|
52617
52636
|
}, [
|
|
52618
|
-
g("div",
|
|
52619
|
-
g("div",
|
|
52637
|
+
g("div", pY, G(e.title), 1),
|
|
52638
|
+
g("div", mY, [e.loading ? (B(), h(o, { key: 0 }, H(8, (e) => g("div", {
|
|
52620
52639
|
key: e,
|
|
52621
52640
|
class: "reason-item ai-skeleton-element"
|
|
52622
52641
|
})), 64)) : (B(!0), h(o, { key: 1 }, H(e.reasonList, (e) => (B(), h("div", {
|
|
52623
52642
|
key: e,
|
|
52624
52643
|
class: P(["reason-item", { "is-active": i.value.includes(e) }]),
|
|
52625
52644
|
onClick: (t) => a(e)
|
|
52626
|
-
}, G(e), 11,
|
|
52627
|
-
g("div",
|
|
52645
|
+
}, G(e), 11, hY))), 128))]),
|
|
52646
|
+
g("div", gY, [y(q(Hy), {
|
|
52628
52647
|
modelValue: r.value,
|
|
52629
52648
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
52630
52649
|
placeholder: q(Z)("说出您的想法"),
|
|
52631
52650
|
rows: 3,
|
|
52632
52651
|
type: "textarea"
|
|
52633
52652
|
}, null, 8, ["modelValue", "placeholder"])]),
|
|
52634
|
-
g("div",
|
|
52653
|
+
g("div", _Y, [y(q(ay), {
|
|
52635
52654
|
class: "custom-btn",
|
|
52636
52655
|
disabled: !r.value && i.value.length === 0,
|
|
52637
52656
|
size: "small",
|
|
@@ -52651,26 +52670,26 @@ var cK = ["src"], lK = {
|
|
|
52651
52670
|
})])
|
|
52652
52671
|
], 32));
|
|
52653
52672
|
}
|
|
52654
|
-
}),
|
|
52673
|
+
}), yY = {
|
|
52655
52674
|
ref: "messageToolsRef",
|
|
52656
52675
|
class: "ai-message-tools-container"
|
|
52657
|
-
},
|
|
52676
|
+
}, bY = {
|
|
52658
52677
|
key: 0,
|
|
52659
52678
|
class: "ai-message-tools-prepend"
|
|
52660
|
-
},
|
|
52679
|
+
}, xY = { class: "message-tools" }, SY = {
|
|
52661
52680
|
key: 1,
|
|
52662
52681
|
class: "ai-divider",
|
|
52663
52682
|
style: {
|
|
52664
52683
|
"margin-right": "4px",
|
|
52665
52684
|
"margin-left": "4px"
|
|
52666
52685
|
}
|
|
52667
|
-
},
|
|
52686
|
+
}, CY = {
|
|
52668
52687
|
key: 2,
|
|
52669
52688
|
class: "message-tools"
|
|
52670
|
-
},
|
|
52689
|
+
}, wY = {
|
|
52671
52690
|
key: 3,
|
|
52672
52691
|
class: "ai-message-tools-append"
|
|
52673
|
-
},
|
|
52692
|
+
}, TY = /* @__PURE__ */ x({
|
|
52674
52693
|
__name: "message-tools",
|
|
52675
52694
|
props: {
|
|
52676
52695
|
messageTools: { default: () => JD },
|
|
@@ -52714,9 +52733,9 @@ var cK = ["src"], lK = {
|
|
|
52714
52733
|
};
|
|
52715
52734
|
return z(() => {
|
|
52716
52735
|
_(), s.value = [];
|
|
52717
|
-
}), (t, n) => (B(), h("div",
|
|
52718
|
-
t.$slots.prepend ? (B(), h("div",
|
|
52719
|
-
g("div",
|
|
52736
|
+
}), (t, n) => (B(), h("div", yY, [
|
|
52737
|
+
t.$slots.prepend ? (B(), h("div", bY, [U(t.$slots, "prepend")])) : m("v-if", !0),
|
|
52738
|
+
g("div", xY, [(B(!0), h(o, null, H(e.messageTools, (t) => (B(), h(o, { key: t.id }, [t.id === "delete" ? (B(), p(fY, M({
|
|
52720
52739
|
key: 0,
|
|
52721
52740
|
ref_for: !0
|
|
52722
52741
|
}, t, {
|
|
@@ -52739,14 +52758,14 @@ var cK = ["src"], lK = {
|
|
|
52739
52758
|
"tippy-options",
|
|
52740
52759
|
"onClick"
|
|
52741
52760
|
]))], 64))), 128))]),
|
|
52742
|
-
e.updateTools.length > 0 ? (B(), h("div",
|
|
52743
|
-
e.updateTools.length > 0 ? (B(), h("div",
|
|
52761
|
+
e.updateTools.length > 0 ? (B(), h("div", SY)) : m("v-if", !0),
|
|
52762
|
+
e.updateTools.length > 0 ? (B(), h("div", CY, [(B(!0), h(o, null, H(e.updateTools, (t) => (B(), h(o, { key: t.id }, [t.id === "like" || t.id === "unlike" ? (B(), p(q(kN), M({
|
|
52744
52763
|
key: 0,
|
|
52745
52764
|
ref_for: !0,
|
|
52746
52765
|
ref_key: "feedbackTippyRef",
|
|
52747
52766
|
ref: i
|
|
52748
52767
|
}, { ref_for: !0 }, l.value, { onShow: (e) => S(t.id) }), {
|
|
52749
|
-
content: J(() => [y(
|
|
52768
|
+
content: J(() => [y(vY, {
|
|
52750
52769
|
loading: a.value,
|
|
52751
52770
|
"reason-list": s.value,
|
|
52752
52771
|
title: t.id === "like" ? q(Z)("什么原因让你满意?") : q(Z)("什么原因让你不满意?"),
|
|
@@ -52775,7 +52794,7 @@ var cK = ["src"], lK = {
|
|
|
52775
52794
|
"onClick"
|
|
52776
52795
|
])]),
|
|
52777
52796
|
_: 2
|
|
52778
|
-
}, 1040, ["onShow"])) : t.id === "delete" ? (B(), p(
|
|
52797
|
+
}, 1040, ["onShow"])) : t.id === "delete" ? (B(), p(fY, M({
|
|
52779
52798
|
key: 1,
|
|
52780
52799
|
ref_for: !0
|
|
52781
52800
|
}, t, {
|
|
@@ -52798,10 +52817,10 @@ var cK = ["src"], lK = {
|
|
|
52798
52817
|
"tippy-options",
|
|
52799
52818
|
"onClick"
|
|
52800
52819
|
]))], 64))), 128))])) : m("v-if", !0),
|
|
52801
|
-
t.$slots.append ? (B(), h("div",
|
|
52820
|
+
t.$slots.append ? (B(), h("div", wY, [U(t.$slots, "append")])) : m("v-if", !0)
|
|
52802
52821
|
], 512));
|
|
52803
52822
|
}
|
|
52804
|
-
}),
|
|
52823
|
+
}), EY = x({
|
|
52805
52824
|
name: "HighlightKeyword",
|
|
52806
52825
|
props: { text: {
|
|
52807
52826
|
type: String,
|
|
@@ -52817,7 +52836,7 @@ var cK = ["src"], lK = {
|
|
|
52817
52836
|
});
|
|
52818
52837
|
return () => T("span", r.value);
|
|
52819
52838
|
}
|
|
52820
|
-
}),
|
|
52839
|
+
}), DY = { class: "ai-activity-message" }, OY = { class: "ai-activity-message-content" }, kY = /* @__PURE__ */ x({
|
|
52821
52840
|
__name: "activity-layout",
|
|
52822
52841
|
props: /* @__PURE__ */ j({ activityType: {} }, {
|
|
52823
52842
|
collapsed: {
|
|
@@ -52829,15 +52848,15 @@ var cK = ["src"], lK = {
|
|
|
52829
52848
|
emits: ["update:collapsed"],
|
|
52830
52849
|
setup(e) {
|
|
52831
52850
|
let t = le(e, "collapsed");
|
|
52832
|
-
return (n, r) => (B(), h("div",
|
|
52851
|
+
return (n, r) => (B(), h("div", DY, [g("div", {
|
|
52833
52852
|
class: "ai-activity-message-title",
|
|
52834
52853
|
onClick: r[0] ||= (e) => t.value = !t.value
|
|
52835
52854
|
}, [U(n.$slots, "title", F(C({ collapsed: t.value }))), e.activityType === q(BD).FlowAgent ? m("v-if", !0) : (B(), h("span", {
|
|
52836
52855
|
key: 0,
|
|
52837
52856
|
class: P(["ai-activity-message-title-icon collapsed-icon", { "is-collapsed": t.value }])
|
|
52838
|
-
}, [y(q(zk))], 2))]), ge(g("div",
|
|
52857
|
+
}, [y(q(zk))], 2))]), ge(g("div", OY, [U(n.$slots, "default")], 512), [[fe, !t.value]])]));
|
|
52839
52858
|
}
|
|
52840
|
-
}),
|
|
52859
|
+
}), AY = [
|
|
52841
52860
|
{
|
|
52842
52861
|
color: "#3A84FF",
|
|
52843
52862
|
icon: null,
|
|
@@ -52893,10 +52912,10 @@ var cK = ["src"], lK = {
|
|
|
52893
52912
|
label: Z("跳过"),
|
|
52894
52913
|
rawStates: ["SKIPPED"]
|
|
52895
52914
|
}
|
|
52896
|
-
],
|
|
52897
|
-
let t =
|
|
52915
|
+
], jY = Object.fromEntries(AY.map((e) => [e.key, e])), MY = Object.fromEntries(AY.flatMap((e) => e.rawStates.map((t) => [t, e.key]))), NY = (e) => MY[e] ?? "running", PY = (e) => jY[e].dotColor ?? jY[e].color, FY = (e) => {
|
|
52916
|
+
let t = jY[e].icon;
|
|
52898
52917
|
return t ? u(t) : null;
|
|
52899
|
-
},
|
|
52918
|
+
}, IY = (e) => {
|
|
52900
52919
|
let t = d(() => Array.isArray(e.value) ? e.value : [e.value ?? {}]), n = W({}), r = (e) => n.value[e.task_id] !== !1;
|
|
52901
52920
|
return {
|
|
52902
52921
|
isTaskExpanded: r,
|
|
@@ -52909,10 +52928,10 @@ var cK = ["src"], lK = {
|
|
|
52909
52928
|
},
|
|
52910
52929
|
viewTasks: d(() => t.value.map((e) => {
|
|
52911
52930
|
let t = Object.values(e.nodes ?? {}).map((e) => {
|
|
52912
|
-
let t =
|
|
52931
|
+
let t = NY(e.state);
|
|
52913
52932
|
return {
|
|
52914
52933
|
convergedState: t,
|
|
52915
|
-
dotColor:
|
|
52934
|
+
dotColor: PY(t),
|
|
52916
52935
|
elapsedTimeText: FD(e.elapsed_time),
|
|
52917
52936
|
id: e.id,
|
|
52918
52937
|
name: e.name,
|
|
@@ -52920,7 +52939,7 @@ var cK = ["src"], lK = {
|
|
|
52920
52939
|
retryable: !!e.retryable,
|
|
52921
52940
|
skippable: !!e.skippable
|
|
52922
52941
|
};
|
|
52923
|
-
}), n = t.reduce((e, t) => e + t.raw.elapsed_time, 0), r =
|
|
52942
|
+
}), n = t.reduce((e, t) => e + t.raw.elapsed_time, 0), r = NY(e.task_state ?? "");
|
|
52924
52943
|
return {
|
|
52925
52944
|
convergedState: r,
|
|
52926
52945
|
hasConfidence: !!e.has_confidence,
|
|
@@ -52928,7 +52947,7 @@ var cK = ["src"], lK = {
|
|
|
52928
52947
|
isActive: !!e.is_active,
|
|
52929
52948
|
nodes: t,
|
|
52930
52949
|
raw: e,
|
|
52931
|
-
stateIcon:
|
|
52950
|
+
stateIcon: FY(r),
|
|
52932
52951
|
taskId: e.task_id,
|
|
52933
52952
|
taskName: e.task_name,
|
|
52934
52953
|
totalTimeText: FD(n)
|
|
@@ -52936,18 +52955,18 @@ var cK = ["src"], lK = {
|
|
|
52936
52955
|
})),
|
|
52937
52956
|
visibleStats: d(() => {
|
|
52938
52957
|
let e = {};
|
|
52939
|
-
for (let t of
|
|
52940
|
-
for (let n of t.value) for (let [t, r] of Object.entries(n.statistics?.state_counts ?? {})) e[
|
|
52941
|
-
return
|
|
52958
|
+
for (let t of AY) e[t.key] = 0;
|
|
52959
|
+
for (let n of t.value) for (let [t, r] of Object.entries(n.statistics?.state_counts ?? {})) e[NY(t)] += r;
|
|
52960
|
+
return AY.filter((t) => e[t.key] > 0).map((t) => ({
|
|
52942
52961
|
color: t.color,
|
|
52943
52962
|
display: e[t.key] > 99 ? "99+" : String(e[t.key]),
|
|
52944
|
-
dotColor:
|
|
52963
|
+
dotColor: PY(t.key),
|
|
52945
52964
|
key: t.key,
|
|
52946
52965
|
label: t.label
|
|
52947
52966
|
}));
|
|
52948
52967
|
})
|
|
52949
52968
|
};
|
|
52950
|
-
},
|
|
52969
|
+
}, LY = [{
|
|
52951
52970
|
blockedTip: () => Z("任务正在跳过中,不可重试"),
|
|
52952
52971
|
icon: Yk,
|
|
52953
52972
|
id: UD.FlowNodeRetry,
|
|
@@ -52961,9 +52980,9 @@ var cK = ["src"], lK = {
|
|
|
52961
52980
|
label: () => Z("跳过"),
|
|
52962
52981
|
pendingLabel: () => Z("跳过中"),
|
|
52963
52982
|
visible: (e) => e.convergedState === "failed" && e.skippable
|
|
52964
|
-
}],
|
|
52983
|
+
}], RY = (e, t) => `${e.task_id}:${t.id}:${t.retry}`, zY = (e) => {
|
|
52965
52984
|
let { hideResumeActions: t, onInterruptResume: n, openNodeDetail: r } = e, i = W({}), a = (e, t, r) => {
|
|
52966
|
-
let a =
|
|
52985
|
+
let a = RY(t, r);
|
|
52967
52986
|
i.value[a] || (i.value = {
|
|
52968
52987
|
...i.value,
|
|
52969
52988
|
[a]: e
|
|
@@ -52977,7 +52996,7 @@ var cK = ["src"], lK = {
|
|
|
52977
52996
|
};
|
|
52978
52997
|
return {
|
|
52979
52998
|
getNodeActions: (e, n) => {
|
|
52980
|
-
let o = i.value[
|
|
52999
|
+
let o = i.value[RY(e.raw, n.raw)], s = (t?.value ? [] : LY).filter((e) => e.visible(n)).map((t) => {
|
|
52981
53000
|
let r = o === t.id, i = o !== void 0 && !r;
|
|
52982
53001
|
return {
|
|
52983
53002
|
disabled: o !== void 0,
|
|
@@ -52998,44 +53017,44 @@ var cK = ["src"], lK = {
|
|
|
52998
53017
|
run: () => r(e.raw, n.raw)
|
|
52999
53018
|
}), s;
|
|
53000
53019
|
},
|
|
53001
|
-
isNodePending: (e, t) => i.value[
|
|
53020
|
+
isNodePending: (e, t) => i.value[RY(e.raw, t.raw)] !== void 0
|
|
53002
53021
|
};
|
|
53003
|
-
},
|
|
53022
|
+
}, BY = { class: "ai-detail-section" }, VY = { class: "section-heading" }, HY = { class: "section-text" }, UY = /* @__PURE__ */ x({
|
|
53004
53023
|
__name: "detail-section",
|
|
53005
53024
|
props: { title: {} },
|
|
53006
53025
|
setup(e) {
|
|
53007
|
-
return (t, n) => (B(), h("div",
|
|
53026
|
+
return (t, n) => (B(), h("div", BY, [g("div", VY, [n[0] ||= g("span", { class: "section-bar" }, null, -1), g("span", HY, G(e.title), 1)]), U(t.$slots, "default")]));
|
|
53008
53027
|
}
|
|
53009
|
-
}),
|
|
53028
|
+
}), WY = { class: "ai-simple-table" }, GY = { key: 0 }, KY = ["colspan"], qY = /* @__PURE__ */ x({
|
|
53010
53029
|
__name: "simple-table",
|
|
53011
53030
|
props: {
|
|
53012
53031
|
columns: {},
|
|
53013
53032
|
data: {}
|
|
53014
53033
|
},
|
|
53015
53034
|
setup(e) {
|
|
53016
|
-
return (t, n) => (B(), h("table",
|
|
53035
|
+
return (t, n) => (B(), h("table", WY, [g("thead", null, [g("tr", null, [(B(!0), h(o, null, H(e.columns, (e) => (B(), h("th", { key: e.key }, G(e.label), 1))), 128))])]), g("tbody", null, [(B(!0), h(o, null, H(e.data, (t, n) => (B(), h("tr", { key: n }, [(B(!0), h(o, null, H(e.columns, (e) => (B(), h("td", {
|
|
53017
53036
|
key: e.key,
|
|
53018
53037
|
class: P({ "is-break-all": e.breakAll })
|
|
53019
|
-
}, G(t[e.key] ?? "--"), 3))), 128))]))), 128)), e.data.length ? m("v-if", !0) : (B(), h("tr",
|
|
53038
|
+
}, G(t[e.key] ?? "--"), 3))), 128))]))), 128)), e.data.length ? m("v-if", !0) : (B(), h("tr", GY, [g("td", {
|
|
53020
53039
|
class: "is-empty",
|
|
53021
53040
|
colspan: e.columns.length
|
|
53022
|
-
}, " -- ", 8,
|
|
53041
|
+
}, " -- ", 8, KY)]))])]));
|
|
53023
53042
|
}
|
|
53024
|
-
}),
|
|
53043
|
+
}), JY = { class: "ai-flow-agent-node-detail" }, YY = { class: "detail-title" }, XY = {
|
|
53025
53044
|
key: 1,
|
|
53026
53045
|
class: "detail-title-content"
|
|
53027
|
-
},
|
|
53046
|
+
}, ZY = { class: "detail-tab-bar" }, QY = ["onClick"], $Y = { class: "detail-body" }, eX = { class: "skeleton-section" }, tX = { class: "skeleton-section" }, nX = { class: "info-form" }, rX = { class: "info-label" }, iX = { class: "info-value" }, aX = { class: "info-row" }, oX = { class: "info-label" }, sX = { class: "info-value" }, cX = {
|
|
53028
53047
|
key: 0,
|
|
53029
53048
|
class: "failure-item"
|
|
53030
|
-
},
|
|
53049
|
+
}, lX = {
|
|
53031
53050
|
key: 1,
|
|
53032
53051
|
class: "failure-item"
|
|
53033
|
-
},
|
|
53052
|
+
}, uX = { class: "info-row" }, dX = { class: "info-label" }, fX = { class: "info-value" }, pX = {
|
|
53034
53053
|
key: 0,
|
|
53035
53054
|
class: "skeleton-section"
|
|
53036
|
-
},
|
|
53055
|
+
}, mX = /* @__PURE__ */ function(e) {
|
|
53037
53056
|
return e.Config = "config", e.Output = "output", e;
|
|
53038
|
-
}(
|
|
53057
|
+
}(mX || {}), hX = /* @__PURE__ */ x({
|
|
53039
53058
|
__name: "flow-agent-node-detail",
|
|
53040
53059
|
props: {
|
|
53041
53060
|
data: {},
|
|
@@ -53048,10 +53067,10 @@ var cK = ["src"], lK = {
|
|
|
53048
53067
|
},
|
|
53049
53068
|
setup(e) {
|
|
53050
53069
|
let t = [{
|
|
53051
|
-
key:
|
|
53070
|
+
key: mX.Config,
|
|
53052
53071
|
label: Z("节点配置")
|
|
53053
53072
|
}, {
|
|
53054
|
-
key:
|
|
53073
|
+
key: mX.Output,
|
|
53055
53074
|
label: Z("节点输出")
|
|
53056
53075
|
}], n = [{
|
|
53057
53076
|
key: "key",
|
|
@@ -53080,7 +53099,7 @@ var cK = ["src"], lK = {
|
|
|
53080
53099
|
breakAll: !0,
|
|
53081
53100
|
key: "value",
|
|
53082
53101
|
label: Z("参数值")
|
|
53083
|
-
}], a = { forced_fail: ID ? "Force Fail" : "强制失败" }, s = e, c = W(
|
|
53102
|
+
}], a = { forced_fail: ID ? "Force Fail" : "强制失败" }, s = e, c = W(mX.Config), l = d(() => s.data?.basic_info), u = d(() => {
|
|
53084
53103
|
let e = l.value;
|
|
53085
53104
|
return e ? [
|
|
53086
53105
|
{
|
|
@@ -53122,53 +53141,53 @@ var cK = ["src"], lK = {
|
|
|
53122
53141
|
key: e.key,
|
|
53123
53142
|
value: w(e.value)
|
|
53124
53143
|
}))), w = (e) => e == null ? "--" : typeof e == "object" ? JSON.stringify(e) : String(e);
|
|
53125
|
-
return (a, s) => (B(), h("div",
|
|
53126
|
-
g("h3",
|
|
53127
|
-
g("div",
|
|
53144
|
+
return (a, s) => (B(), h("div", JY, [
|
|
53145
|
+
g("h3", YY, [e.loading ? (B(), h(o, { key: 0 }, [g("span", null, G(q(Z)("节点")) + ":", 1), s[0] ||= g("span", { class: "skeleton-title ai-skeleton-element" }, null, -1)], 64)) : (B(), h("div", XY, G(q(Z)("节点")) + ":" + G(l.value?.node_name), 1)), U(a.$slots, "locateButton")]),
|
|
53146
|
+
g("div", ZY, [(B(), h(o, null, H(t, (e) => g("div", {
|
|
53128
53147
|
key: e.key,
|
|
53129
53148
|
class: P(["detail-tab", { "is-active": c.value === e.key }]),
|
|
53130
53149
|
onClick: (t) => c.value = e.key
|
|
53131
|
-
}, [(B(), p(ae(e.key ===
|
|
53132
|
-
g("div",
|
|
53150
|
+
}, [(B(), p(ae(e.key === mX.Config ? q(yO) : q(vO)), { class: "detail-tab-icon" })), v(" " + G(e.label), 1)], 10, QY)), 64))]),
|
|
53151
|
+
g("div", $Y, [c.value === mX.Config ? (B(), h(o, { key: 0 }, [e.loading ? (B(), h(o, { key: 0 }, [g("div", eX, [s[1] ||= g("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1), (B(), h(o, null, H(6, (e) => g("div", {
|
|
53133
53152
|
key: e,
|
|
53134
53153
|
class: "skeleton-row ai-skeleton-element"
|
|
53135
|
-
})), 64))]), g("div",
|
|
53154
|
+
})), 64))]), g("div", tX, [s[2] ||= g("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1), (B(), h(o, null, H(4, (e) => g("div", {
|
|
53136
53155
|
key: e,
|
|
53137
53156
|
class: "skeleton-row ai-skeleton-element"
|
|
53138
53157
|
})), 64))])], 64)) : (B(), h(o, { key: 1 }, [
|
|
53139
|
-
y(
|
|
53140
|
-
default: J(() => [g("div",
|
|
53158
|
+
y(UY, { title: q(Z)("基础信息") }, {
|
|
53159
|
+
default: J(() => [g("div", nX, [
|
|
53141
53160
|
(B(!0), h(o, null, H(u.value, (e) => (B(), h("div", {
|
|
53142
53161
|
key: e.label,
|
|
53143
53162
|
class: "info-row"
|
|
53144
|
-
}, [g("div",
|
|
53145
|
-
g("div",
|
|
53146
|
-
g("div",
|
|
53163
|
+
}, [g("div", rX, G(e.label), 1), g("div", iX, G(e.value), 1)]))), 128)),
|
|
53164
|
+
g("div", aX, [g("div", oX, G(q(Z)("失败处理")), 1), g("div", sX, [f.value ? (B(), h(o, { key: 0 }, [l.value?.skippable ? (B(), h("span", cX, [s[3] ||= g("span", { class: "tag-badge" }, "MS", -1), v(" " + G(q(Z)("手动跳过")) + G(l.value?.auto_retry?.enable ? ";" : ""), 1)])) : m("v-if", !0), l.value?.auto_retry?.enable ? (B(), h("span", lX, [s[4] ||= g("span", { class: "tag-badge" }, "AR", -1), v(" " + G(_.value), 1)])) : m("v-if", !0)], 64)) : (B(), h(o, { key: 1 }, [v("--")], 64))])]),
|
|
53165
|
+
g("div", uX, [g("div", dX, G(q(Z)("超时控制")), 1), g("div", fX, G(b.value), 1)])
|
|
53147
53166
|
])]),
|
|
53148
53167
|
_: 1
|
|
53149
53168
|
}, 8, ["title"]),
|
|
53150
|
-
y(
|
|
53151
|
-
default: J(() => [y(
|
|
53169
|
+
y(UY, { title: q(Z)("输入参数") }, {
|
|
53170
|
+
default: J(() => [y(qY, {
|
|
53152
53171
|
columns: n,
|
|
53153
53172
|
data: x.value
|
|
53154
53173
|
}, null, 8, ["data"])]),
|
|
53155
53174
|
_: 1
|
|
53156
53175
|
}, 8, ["title"]),
|
|
53157
|
-
y(
|
|
53158
|
-
default: J(() => [y(
|
|
53176
|
+
y(UY, { title: q(Z)("输出参数") }, {
|
|
53177
|
+
default: J(() => [y(qY, {
|
|
53159
53178
|
columns: r,
|
|
53160
53179
|
data: S.value
|
|
53161
53180
|
}, null, 8, ["data"])]),
|
|
53162
53181
|
_: 1
|
|
53163
53182
|
}, 8, ["title"])
|
|
53164
|
-
], 64))], 64)) : (B(), h(o, { key: 1 }, [e.loading ? (B(), h("div",
|
|
53183
|
+
], 64))], 64)) : (B(), h(o, { key: 1 }, [e.loading ? (B(), h("div", pX, [s[5] ||= g("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1), (B(), h(o, null, H(5, (e) => g("div", {
|
|
53165
53184
|
key: e,
|
|
53166
53185
|
class: "skeleton-row ai-skeleton-element"
|
|
53167
|
-
})), 64))])) : (B(), p(
|
|
53186
|
+
})), 64))])) : (B(), p(UY, {
|
|
53168
53187
|
key: 1,
|
|
53169
53188
|
title: q(Z)("结构化输出")
|
|
53170
53189
|
}, {
|
|
53171
|
-
default: J(() => [y(
|
|
53190
|
+
default: J(() => [y(qY, {
|
|
53172
53191
|
columns: i,
|
|
53173
53192
|
data: C.value
|
|
53174
53193
|
}, null, 8, ["data"])]),
|
|
@@ -53176,25 +53195,25 @@ var cK = ["src"], lK = {
|
|
|
53176
53195
|
}, 8, ["title"]))], 64))])
|
|
53177
53196
|
]));
|
|
53178
53197
|
}
|
|
53179
|
-
}),
|
|
53198
|
+
}), gX = (e) => e.task_id == null ? "" : `${e.task_id}`, _X = gX, vX = (e, t) => e.task_id == null ? "" : `${e.task_id}|${t.id}|${t.name}`, yX = (e) => {
|
|
53180
53199
|
let { messageUid: t, taskList: n } = e, r = dP(), i = sP(), a = d(() => r.selectedTab.value?.name ?? ""), o = W(!1), s = () => {
|
|
53181
53200
|
o.value = !0;
|
|
53182
53201
|
}, c = d(() => {
|
|
53183
53202
|
if (o.value) return a.value;
|
|
53184
53203
|
let e = n.value.find((e) => e.is_active);
|
|
53185
|
-
return e?.task_id == null ? a.value :
|
|
53204
|
+
return e?.task_id == null ? a.value : gX(e);
|
|
53186
53205
|
}), l = (e) => {
|
|
53187
53206
|
let t = c.value;
|
|
53188
|
-
return t ===
|
|
53189
|
-
}, u = (e, t) => c.value ===
|
|
53207
|
+
return t === gX(e) || t === _X(e);
|
|
53208
|
+
}, u = (e, t) => c.value === vX(e, t), f = (e, n) => {
|
|
53190
53209
|
let i = e.task_id;
|
|
53191
53210
|
i != null && (s(), r.addCustomTab?.({
|
|
53192
53211
|
closable: n.closable,
|
|
53193
53212
|
label: n.name,
|
|
53194
|
-
name:
|
|
53213
|
+
name: vX(e, n),
|
|
53195
53214
|
order: n.tab_order ?? 100,
|
|
53196
53215
|
data: {
|
|
53197
|
-
component:
|
|
53216
|
+
component: hX,
|
|
53198
53217
|
messageUid: t.value,
|
|
53199
53218
|
props: {
|
|
53200
53219
|
data: {},
|
|
@@ -53211,10 +53230,10 @@ var cK = ["src"], lK = {
|
|
|
53211
53230
|
n && (s(), r.addCustomTab?.({
|
|
53212
53231
|
closable: e.closable,
|
|
53213
53232
|
label: Z("有效证据"),
|
|
53214
|
-
name:
|
|
53233
|
+
name: _X(e),
|
|
53215
53234
|
order: e.tab_order ?? 10,
|
|
53216
53235
|
data: {
|
|
53217
|
-
component:
|
|
53236
|
+
component: hX,
|
|
53218
53237
|
messageUid: t.value,
|
|
53219
53238
|
props: {
|
|
53220
53239
|
data: {},
|
|
@@ -53232,8 +53251,8 @@ var cK = ["src"], lK = {
|
|
|
53232
53251
|
i?.value && p(n.value.find((e) => e.is_active && e.has_confidence));
|
|
53233
53252
|
}), z(() => {
|
|
53234
53253
|
if (i?.value) for (let e of n.value) {
|
|
53235
|
-
r.removeCustomTab?.(
|
|
53236
|
-
for (let t of Object.values(e.nodes ?? {})) r.removeCustomTab?.(
|
|
53254
|
+
r.removeCustomTab?.(gX(e)), r.removeCustomTab?.(_X(e));
|
|
53255
|
+
for (let t of Object.values(e.nodes ?? {})) r.removeCustomTab?.(vX(e, t));
|
|
53237
53256
|
}
|
|
53238
53257
|
}), {
|
|
53239
53258
|
displaySelectedTabName: c,
|
|
@@ -53243,7 +53262,7 @@ var cK = ["src"], lK = {
|
|
|
53243
53262
|
openConfidence: p,
|
|
53244
53263
|
openNodeDetail: f
|
|
53245
53264
|
};
|
|
53246
|
-
},
|
|
53265
|
+
}, bX = { class: "ai-activity-message-title-text" }, xX = { class: "flow-agent-title-label" }, SX = { class: "flow-agent-stat-tooltip" }, CX = { class: "flow-agent-stat-tooltip-status" }, wX = { class: "flow-agent-stat-tooltip-label" }, TX = ["onClick"], EX = { class: "flow-agent-task-state-icon" }, DX = { class: "flow-agent-task-name" }, OX = { class: "flow-agent-task-trailing" }, kX = { class: "flow-agent-task-time" }, AX = ["onClick"], jX = { class: "flow-agent-task-nodes" }, MX = { class: "flow-agent-node-status" }, NX = ["title"], PX = { class: "flow-agent-node-trailing" }, FX = { class: "flow-agent-node-time" }, IX = { class: "flow-agent-node-actions" }, LX = ["onClick"], RX = /* @__PURE__ */ x({
|
|
53247
53266
|
__name: "flow-agent-content",
|
|
53248
53267
|
props: /* @__PURE__ */ j({
|
|
53249
53268
|
content: {},
|
|
@@ -53259,17 +53278,17 @@ var cK = ["src"], lK = {
|
|
|
53259
53278
|
}),
|
|
53260
53279
|
emits: ["update:collapsed"],
|
|
53261
53280
|
setup(e) {
|
|
53262
|
-
let t = e, n = PP(), r = le(e, "collapsed"), i = jP(), a = d(() => i.value === $D.Share), s = d(() => t.status === Q.Pending || t.status === Q.Streaming), { isTaskExpanded: c, taskList: l, toggleTaskExpanded: u, viewTasks: f, visibleStats: _ } =
|
|
53281
|
+
let t = e, n = PP(), r = le(e, "collapsed"), i = jP(), a = d(() => i.value === $D.Share), s = d(() => t.status === Q.Pending || t.status === Q.Streaming), { isTaskExpanded: c, taskList: l, toggleTaskExpanded: u, viewTasks: f, visibleStats: _ } = IY(oe(t, "content")), { isNodeSelected: b, isTaskSelected: x, openConfidence: S, openNodeDetail: C } = yX({
|
|
53263
53282
|
messageUid: oe(t, "messageUid"),
|
|
53264
53283
|
taskList: l
|
|
53265
|
-
}), { getNodeActions: w, isNodePending: T } =
|
|
53284
|
+
}), { getNodeActions: w, isNodePending: T } = zY({
|
|
53266
53285
|
hideResumeActions: a,
|
|
53267
53286
|
onInterruptResume: oe(t, "onInterruptResume"),
|
|
53268
53287
|
openNodeDetail: C
|
|
53269
53288
|
}), E = (e) => {
|
|
53270
53289
|
e.disabled || e.run();
|
|
53271
53290
|
};
|
|
53272
|
-
return (e, t) => (B(), p(
|
|
53291
|
+
return (e, t) => (B(), p(kY, {
|
|
53273
53292
|
collapsed: r.value,
|
|
53274
53293
|
"onUpdate:collapsed": t[0] ||= (e) => r.value = e,
|
|
53275
53294
|
"activity-type": q(BD).FlowAgent,
|
|
@@ -53285,11 +53304,11 @@ var cK = ["src"], lK = {
|
|
|
53285
53304
|
followCursor: !1,
|
|
53286
53305
|
offset: [0, 10]
|
|
53287
53306
|
}), {
|
|
53288
|
-
content: J(() => [g("div",
|
|
53307
|
+
content: J(() => [g("div", SX, [(B(!0), h(o, null, H(q(_), (e) => (B(), h("div", {
|
|
53289
53308
|
key: e.key,
|
|
53290
53309
|
class: "flow-agent-stat-tooltip-item"
|
|
53291
53310
|
}, [
|
|
53292
|
-
g("span",
|
|
53311
|
+
g("span", CX, [e.key === "running" ? (B(), p(q(Vv), {
|
|
53293
53312
|
key: 0,
|
|
53294
53313
|
mode: "spin",
|
|
53295
53314
|
size: "mini",
|
|
@@ -53299,7 +53318,7 @@ var cK = ["src"], lK = {
|
|
|
53299
53318
|
class: "flow-agent-stat-dot",
|
|
53300
53319
|
style: I({ borderColor: e.dotColor })
|
|
53301
53320
|
}, null, 4))]),
|
|
53302
|
-
g("span",
|
|
53321
|
+
g("span", wX, G(e.label) + ":", 1),
|
|
53303
53322
|
g("span", {
|
|
53304
53323
|
class: "flow-agent-stat-tooltip-count",
|
|
53305
53324
|
style: I({ color: e.color })
|
|
@@ -53308,7 +53327,7 @@ var cK = ["src"], lK = {
|
|
|
53308
53327
|
default: J(() => [g("span", { class: P(["ai-activity-message-title-icon", { "icon-collapsed": r.value }]) }, [s.value ? (B(), p(pA, {
|
|
53309
53328
|
key: 0,
|
|
53310
53329
|
size: 12
|
|
53311
|
-
})) : (B(), p(q(uO), { key: 1 }))], 2), g("span",
|
|
53330
|
+
})) : (B(), p(q(uO), { key: 1 }))], 2), g("span", bX, [g("span", xX, G(q(Z)("执行情况")) + ":", 1), (B(!0), h(o, null, H(q(_), (e) => (B(), h("span", {
|
|
53312
53331
|
key: e.key,
|
|
53313
53332
|
class: "flow-agent-stat-item"
|
|
53314
53333
|
}, [e.key === "running" ? (B(), p(q(Vv), {
|
|
@@ -53337,27 +53356,27 @@ var cK = ["src"], lK = {
|
|
|
53337
53356
|
g("span", {
|
|
53338
53357
|
class: P(["flow-agent-task-arrow", { "is-expanded": q(c)(e.raw) }]),
|
|
53339
53358
|
onClick: ve((t) => q(u)(e.raw), ["stop"])
|
|
53340
|
-
}, [y(q(uO))], 10,
|
|
53341
|
-
g("span",
|
|
53359
|
+
}, [y(q(uO))], 10, TX),
|
|
53360
|
+
g("span", EX, [e.convergedState === "running" ? (B(), p(q(Vv), {
|
|
53342
53361
|
key: 0,
|
|
53343
53362
|
mode: "spin",
|
|
53344
53363
|
size: "mini",
|
|
53345
53364
|
theme: "primary"
|
|
53346
53365
|
})) : (B(), p(ae(e.stateIcon), { key: 1 }))]),
|
|
53347
|
-
ge((B(), h("span",
|
|
53348
|
-
g("span",
|
|
53366
|
+
ge((B(), h("span", DX, [y(q(EY), { text: e.taskName }, null, 8, ["text"])])), [[q(LP), { ...q(n) }]]),
|
|
53367
|
+
g("span", OX, [g("span", kX, G(e.totalTimeText), 1), e.hasConfidence ? (B(), h("span", {
|
|
53349
53368
|
key: 0,
|
|
53350
53369
|
class: "flow-agent-task-action-btn flow-agent-task-confidence-btn",
|
|
53351
53370
|
onClick: ve((t) => q(S)(e.raw), ["stop"])
|
|
53352
|
-
}, [y(q(vO)), v(" " + G(e.confidenceTitle ?? q(Z)("有效证据")), 1)], 8,
|
|
53353
|
-
], 2), ge(g("div",
|
|
53371
|
+
}, [y(q(vO)), v(" " + G(e.confidenceTitle ?? q(Z)("有效证据")), 1)], 8, AX)) : m("v-if", !0)])
|
|
53372
|
+
], 2), ge(g("div", jX, [(B(!0), h(o, null, H(e.nodes, (t) => (B(), h("div", {
|
|
53354
53373
|
key: t.id,
|
|
53355
53374
|
class: P(["flow-agent-node-item", {
|
|
53356
53375
|
"is-selected": q(b)(e.raw, t.raw),
|
|
53357
53376
|
"is-pending": q(T)(e, t)
|
|
53358
53377
|
}])
|
|
53359
53378
|
}, [
|
|
53360
|
-
g("span",
|
|
53379
|
+
g("span", MX, [t.convergedState === "running" ? (B(), p(q(Vv), {
|
|
53361
53380
|
key: 0,
|
|
53362
53381
|
mode: "spin",
|
|
53363
53382
|
size: "mini",
|
|
@@ -53370,8 +53389,8 @@ var cK = ["src"], lK = {
|
|
|
53370
53389
|
ge((B(), h("span", {
|
|
53371
53390
|
class: "flow-agent-node-name",
|
|
53372
53391
|
title: t.name
|
|
53373
|
-
}, [y(q(
|
|
53374
|
-
g("span",
|
|
53392
|
+
}, [y(q(EY), { text: t.name }, null, 8, ["text"])], 8, NX)), [[q(LP), { ...q(n) }]]),
|
|
53393
|
+
g("span", PX, [g("span", FX, G(t.elapsedTimeText), 1), g("span", IX, [(B(!0), h(o, null, H(q(w)(e, t), (e) => ge((B(), h("span", {
|
|
53375
53394
|
key: e.id,
|
|
53376
53395
|
class: P(["flow-agent-node-action-btn", { "is-disabled": e.disabled }]),
|
|
53377
53396
|
onClick: ve((t) => E(e), ["stop"])
|
|
@@ -53385,7 +53404,7 @@ var cK = ["src"], lK = {
|
|
|
53385
53404
|
theme: "primary"
|
|
53386
53405
|
})) : (B(), p(ae(e.icon), { key: 1 })),
|
|
53387
53406
|
v(" " + G(e.label), 1)
|
|
53388
|
-
], 10,
|
|
53407
|
+
], 10, LX)), [[q(MN), e.tooltip ? {
|
|
53389
53408
|
...q(n),
|
|
53390
53409
|
content: e.tooltip,
|
|
53391
53410
|
theme: "ai-chat-box",
|
|
@@ -53395,7 +53414,7 @@ var cK = ["src"], lK = {
|
|
|
53395
53414
|
_: 1
|
|
53396
53415
|
}, 8, ["collapsed", "activity-type"]));
|
|
53397
53416
|
}
|
|
53398
|
-
}),
|
|
53417
|
+
}), zX = { class: "ai-activity-message-title-icon" }, BX = { class: "ai-activity-message-title-text" }, VX = { class: "ai-knowledge-rag-content" }, HX = /* @__PURE__ */ x({
|
|
53399
53418
|
__name: "knowledge-rag-content",
|
|
53400
53419
|
props: /* @__PURE__ */ j({
|
|
53401
53420
|
content: {},
|
|
@@ -53411,19 +53430,19 @@ var cK = ["src"], lK = {
|
|
|
53411
53430
|
emits: ["update:collapsed"],
|
|
53412
53431
|
setup(e) {
|
|
53413
53432
|
let t = e, n = le(e, "collapsed"), r = d(() => t.status === Q.Pending || t.status === Q.Streaming), i = d(() => r.value ? Z("检索中") : Z("检索完成"));
|
|
53414
|
-
return (t, a) => (B(), p(
|
|
53433
|
+
return (t, a) => (B(), p(kY, {
|
|
53415
53434
|
collapsed: n.value,
|
|
53416
53435
|
"onUpdate:collapsed": a[0] ||= (e) => n.value = e
|
|
53417
53436
|
}, {
|
|
53418
|
-
title: J(() => [g("span",
|
|
53437
|
+
title: J(() => [g("span", zX, [r.value ? (B(), p(pA, { key: 0 })) : (B(), p(q(oO), {
|
|
53419
53438
|
key: 1,
|
|
53420
53439
|
style: { "font-size": "12px" }
|
|
53421
|
-
}))]), g("span",
|
|
53422
|
-
default: J(() => [g("div",
|
|
53440
|
+
}))]), g("span", BX, G(i.value), 1)]),
|
|
53441
|
+
default: J(() => [g("div", VX, [y(lW, { content: e.content?.content || "" }, null, 8, ["content"])]), y(dW, { content: e.content?.referenceDocument || [] }, null, 8, ["content"])]),
|
|
53423
53442
|
_: 1
|
|
53424
53443
|
}, 8, ["collapsed"]));
|
|
53425
53444
|
}
|
|
53426
|
-
}),
|
|
53445
|
+
}), UX = { class: "ai-activity-message-title-icon" }, WX = { class: "ai-activity-message-title-text" }, GX = /* @__PURE__ */ x({
|
|
53427
53446
|
__name: "reference-doc-content",
|
|
53428
53447
|
props: /* @__PURE__ */ j({
|
|
53429
53448
|
content: {},
|
|
@@ -53441,16 +53460,16 @@ var cK = ["src"], lK = {
|
|
|
53441
53460
|
let e = t.content?.length ?? 0;
|
|
53442
53461
|
return ID ? `Reference ${e} documents as reference` : `引用 ${e} 篇资料作为参考`;
|
|
53443
53462
|
});
|
|
53444
|
-
return (t, i) => (B(), p(
|
|
53463
|
+
return (t, i) => (B(), p(kY, {
|
|
53445
53464
|
collapsed: n.value,
|
|
53446
53465
|
"onUpdate:collapsed": i[0] ||= (e) => n.value = e
|
|
53447
53466
|
}, {
|
|
53448
|
-
title: J(() => [g("span",
|
|
53467
|
+
title: J(() => [g("span", UX, [y(q(oO), { style: { "font-size": "12px" } })]), g("span", WX, G(r.value), 1)]),
|
|
53449
53468
|
default: J(() => [y(dW, { content: e.content || [] }, null, 8, ["content"])]),
|
|
53450
53469
|
_: 1
|
|
53451
53470
|
}, 8, ["collapsed"]));
|
|
53452
53471
|
}
|
|
53453
|
-
}),
|
|
53472
|
+
}), KX = /* @__PURE__ */ x({
|
|
53454
53473
|
__name: "activity-message",
|
|
53455
53474
|
props: /* @__PURE__ */ j({
|
|
53456
53475
|
activityType: {},
|
|
@@ -53474,9 +53493,9 @@ var cK = ["src"], lK = {
|
|
|
53474
53493
|
emits: ["update:collapsed"],
|
|
53475
53494
|
setup(e) {
|
|
53476
53495
|
let t = {
|
|
53477
|
-
[BD.FlowAgent]:
|
|
53478
|
-
[BD.KnowledgeRag]:
|
|
53479
|
-
[BD.ReferenceDocument]:
|
|
53496
|
+
[BD.FlowAgent]: RX,
|
|
53497
|
+
[BD.KnowledgeRag]: HX,
|
|
53498
|
+
[BD.ReferenceDocument]: GX
|
|
53480
53499
|
}, n = e, r = le(e, "collapsed"), i = d(() => t[n.activityType ?? ""]);
|
|
53481
53500
|
return (t, n) => i.value ? (B(), p(ae(i.value), {
|
|
53482
53501
|
key: 0,
|
|
@@ -53494,7 +53513,7 @@ var cK = ["src"], lK = {
|
|
|
53494
53513
|
"status"
|
|
53495
53514
|
])) : m("v-if", !0);
|
|
53496
53515
|
}
|
|
53497
|
-
}),
|
|
53516
|
+
}), qX = { class: "ai-toolcall-desc" }, JX = { class: "desc-title" }, YX = { class: "desc-panel" }, XX = { class: "desc-label" }, ZX = { class: "desc-value" }, QX = /* @__PURE__ */ x({
|
|
53498
53517
|
__name: "desc-panel",
|
|
53499
53518
|
props: {
|
|
53500
53519
|
desc: {},
|
|
@@ -53508,19 +53527,19 @@ var cK = ["src"], lK = {
|
|
|
53508
53527
|
return t.desc;
|
|
53509
53528
|
}
|
|
53510
53529
|
});
|
|
53511
|
-
return (t, i) => (B(), h("div",
|
|
53530
|
+
return (t, i) => (B(), h("div", qX, [g("div", JX, G(e.title), 1), g("div", YX, [m(" null 的 typeof 为 object,需排除,避免 v-for 异常;键/值统一转字符串以满足 HighlightKeyword "), r.value !== null && typeof r.value == "object" ? (B(!0), h(o, { key: 0 }, H(r.value, (e, t) => (B(), h("div", {
|
|
53512
53531
|
key: t,
|
|
53513
53532
|
class: "desc-panel-item"
|
|
53514
|
-
}, [g("span",
|
|
53533
|
+
}, [g("span", XX, [y(q(EY), { text: String(t) }, null, 8, ["text"]), i[0] ||= v(":", -1)]), g("span", ZX, [y(q(EY), {
|
|
53515
53534
|
style: { "word-break": "break-all" },
|
|
53516
53535
|
text: n(e)
|
|
53517
|
-
}, null, 8, ["text"])])]))), 128)) : (B(), p(q(
|
|
53536
|
+
}, null, 8, ["text"])])]))), 128)) : (B(), p(q(EY), {
|
|
53518
53537
|
key: 1,
|
|
53519
53538
|
style: { wordBreak: "break-all" },
|
|
53520
53539
|
text: n(r.value)
|
|
53521
53540
|
}, null, 8, ["text"]))])]));
|
|
53522
53541
|
}
|
|
53523
|
-
}),
|
|
53542
|
+
}), $X = { class: "ai-tool-message" }, eZ = /* @__PURE__ */ x({
|
|
53524
53543
|
__name: "tool-message",
|
|
53525
53544
|
props: {
|
|
53526
53545
|
duration: {},
|
|
@@ -53537,15 +53556,15 @@ var cK = ["src"], lK = {
|
|
|
53537
53556
|
property: {}
|
|
53538
53557
|
},
|
|
53539
53558
|
setup(e) {
|
|
53540
|
-
return (t, n) => (B(), h("div",
|
|
53559
|
+
return (t, n) => (B(), h("div", $X, [y(QX, {
|
|
53541
53560
|
desc: e.content || (typeof e.error == "string" ? e.error : void 0),
|
|
53542
53561
|
title: q(Z)("返回内容")
|
|
53543
53562
|
}, null, 8, ["desc", "title"])]));
|
|
53544
53563
|
}
|
|
53545
|
-
}),
|
|
53564
|
+
}), tZ = { class: "ai-toolcall-render" }, nZ = { class: "toolcall-header-title" }, rZ = { class: "toolcall-status-title" }, iZ = {
|
|
53546
53565
|
key: 3,
|
|
53547
53566
|
class: "toolcall-duration"
|
|
53548
|
-
},
|
|
53567
|
+
}, aZ = { class: "ai-toolcall-render-content" }, oZ = /* @__PURE__ */ x({
|
|
53549
53568
|
__name: "toolcall-render",
|
|
53550
53569
|
props: {
|
|
53551
53570
|
duration: {},
|
|
@@ -53579,18 +53598,18 @@ var cK = ["src"], lK = {
|
|
|
53579
53598
|
let e = t.duration || t.toolCall?.toolMessage?.duration;
|
|
53580
53599
|
return e ? ND(e) : "";
|
|
53581
53600
|
});
|
|
53582
|
-
return (t, n) => (B(), h("div",
|
|
53601
|
+
return (t, n) => (B(), h("div", tZ, [g("div", {
|
|
53583
53602
|
class: P(["ai-toolcall-render-header", `toolcall-status-${e.status}`]),
|
|
53584
53603
|
onClick: c
|
|
53585
53604
|
}, [
|
|
53586
53605
|
y(q(uO), { class: P({ "is-collapsed": s.value }) }, null, 8, ["class"]),
|
|
53587
53606
|
v(" " + G(e.toolCall?.function.mcpName ? q(Z)("调用 MCP:") : q(Z)("调用工具:")) + " ", 1),
|
|
53588
|
-
ge((B(), h("span",
|
|
53607
|
+
ge((B(), h("span", nZ, [y(q(EY), { text: l.value }, null, 8, ["text"])])), [[q(LP), {
|
|
53589
53608
|
...q(i),
|
|
53590
53609
|
text: l.value,
|
|
53591
53610
|
appendTo: "parent"
|
|
53592
53611
|
}]]),
|
|
53593
|
-
g("span",
|
|
53612
|
+
g("span", rZ, [
|
|
53594
53613
|
e.status === q(Q).Pending || e.status === q(Q).Streaming ? (B(), p(q(Vv), {
|
|
53595
53614
|
key: 0,
|
|
53596
53615
|
mode: "spin",
|
|
@@ -53601,22 +53620,22 @@ var cK = ["src"], lK = {
|
|
|
53601
53620
|
q(Q).Complete,
|
|
53602
53621
|
q(Q).Completed
|
|
53603
53622
|
].includes(e.status) ? (B(), p(q(fO), { key: 1 })) : e.status === q(Q).Error ? (B(), p(q(pO), { key: 2 })) : m("v-if", !0),
|
|
53604
|
-
y(q(
|
|
53605
|
-
f.value ? (B(), h("span",
|
|
53623
|
+
y(q(EY), { text: u.value }, null, 8, ["text"]),
|
|
53624
|
+
f.value ? (B(), h("span", iZ, " (" + G(f.value) + ") ", 1)) : m("v-if", !0)
|
|
53606
53625
|
])
|
|
53607
|
-
], 2), ge(g("div",
|
|
53608
|
-
y(
|
|
53626
|
+
], 2), ge(g("div", aZ, [
|
|
53627
|
+
y(QX, {
|
|
53609
53628
|
desc: e.toolCall?.function.description,
|
|
53610
53629
|
title: q(Z)("描述")
|
|
53611
53630
|
}, null, 8, ["desc", "title"]),
|
|
53612
|
-
y(
|
|
53631
|
+
y(QX, {
|
|
53613
53632
|
desc: e.toolCall?.function.arguments,
|
|
53614
53633
|
title: q(Z)("参数")
|
|
53615
53634
|
}, null, 8, ["desc", "title"]),
|
|
53616
|
-
e.toolCall?.toolMessage ? (B(), p(
|
|
53635
|
+
e.toolCall?.toolMessage ? (B(), p(eZ, F(M({ key: 0 }, e.toolCall.toolMessage)), null, 16)) : m("v-if", !0)
|
|
53617
53636
|
], 512), [[fe, !s.value]])]));
|
|
53618
53637
|
}
|
|
53619
|
-
}),
|
|
53638
|
+
}), sZ = { class: "ai-message-artifacts" }, cZ = /* @__PURE__ */ x({
|
|
53620
53639
|
__name: "message-artifacts",
|
|
53621
53640
|
props: {
|
|
53622
53641
|
artifacts: {},
|
|
@@ -53624,7 +53643,7 @@ var cK = ["src"], lK = {
|
|
|
53624
53643
|
onPreview: { type: Function }
|
|
53625
53644
|
},
|
|
53626
53645
|
setup(e) {
|
|
53627
|
-
return (t, n) => (B(), h("div",
|
|
53646
|
+
return (t, n) => (B(), h("div", sZ, [(B(!0), h(o, null, H(e.artifacts, (t) => (B(), p(Eq, {
|
|
53628
53647
|
key: t.outputId,
|
|
53629
53648
|
file: t,
|
|
53630
53649
|
"on-download": e.onDownload,
|
|
@@ -53635,10 +53654,10 @@ var cK = ["src"], lK = {
|
|
|
53635
53654
|
"on-preview"
|
|
53636
53655
|
]))), 128))]));
|
|
53637
53656
|
}
|
|
53638
|
-
}),
|
|
53657
|
+
}), lZ = { class: "ai-assistant-message" }, uZ = {
|
|
53639
53658
|
key: 0,
|
|
53640
53659
|
class: "ai-assistant-message-content"
|
|
53641
|
-
},
|
|
53660
|
+
}, dZ = /* @__PURE__ */ x({
|
|
53642
53661
|
__name: "assistant-message",
|
|
53643
53662
|
props: {
|
|
53644
53663
|
content: {},
|
|
@@ -53653,9 +53672,9 @@ var cK = ["src"], lK = {
|
|
|
53653
53672
|
},
|
|
53654
53673
|
setup(e) {
|
|
53655
53674
|
let t = e, n = d(() => t.property?.artifacts);
|
|
53656
|
-
return (t, r) => (B(), h("div",
|
|
53675
|
+
return (t, r) => (B(), h("div", lZ, [
|
|
53657
53676
|
m(" 内容 "),
|
|
53658
|
-
e.content ? (B(), h("div",
|
|
53677
|
+
e.content ? (B(), h("div", uZ, [U(t.$slots, "default", F(C({ content: e.content })), () => [y(fW, {
|
|
53659
53678
|
content: e.content || "",
|
|
53660
53679
|
status: e.status,
|
|
53661
53680
|
type: q(BD).Text
|
|
@@ -53665,19 +53684,19 @@ var cK = ["src"], lK = {
|
|
|
53665
53684
|
"type"
|
|
53666
53685
|
])])])) : m("v-if", !0),
|
|
53667
53686
|
m(" 工具调用 "),
|
|
53668
|
-
e.toolCalls && e.toolCalls.length > 0 ? (B(!0), h(o, { key: 1 }, H(e.toolCalls, (t) => (B(), p(
|
|
53687
|
+
e.toolCalls && e.toolCalls.length > 0 ? (B(!0), h(o, { key: 1 }, H(e.toolCalls, (t) => (B(), p(oZ, {
|
|
53669
53688
|
key: t.id,
|
|
53670
53689
|
status: t.toolMessage ? t.toolMessage.error ? q(Q).Error : t.toolMessage.status ?? e.status : q(Q).Pending,
|
|
53671
53690
|
"tool-call": t
|
|
53672
53691
|
}, null, 8, ["status", "tool-call"]))), 128)) : m("v-if", !0),
|
|
53673
53692
|
m(" 生成文件产物 "),
|
|
53674
|
-
n.value && n.value.length > 0 ? (B(), p(
|
|
53693
|
+
n.value && n.value.length > 0 ? (B(), p(cZ, {
|
|
53675
53694
|
key: 2,
|
|
53676
53695
|
artifacts: n.value
|
|
53677
53696
|
}, null, 8, ["artifacts"])) : m("v-if", !0)
|
|
53678
53697
|
]));
|
|
53679
53698
|
}
|
|
53680
|
-
}),
|
|
53699
|
+
}), fZ = { class: "ai-info-message" }, pZ = { class: "ai-info-message-body" }, mZ = /* @__PURE__ */ x({
|
|
53681
53700
|
__name: "info-message",
|
|
53682
53701
|
props: {
|
|
53683
53702
|
content: {},
|
|
@@ -53691,15 +53710,15 @@ var cK = ["src"], lK = {
|
|
|
53691
53710
|
property: {}
|
|
53692
53711
|
},
|
|
53693
53712
|
setup(e) {
|
|
53694
|
-
return (t, n) => (B(), h("div",
|
|
53713
|
+
return (t, n) => (B(), h("div", fZ, [g("div", pZ, [(B(!0), h(o, null, H(Array.isArray(e.content) ? e.content : [e.content], (e, t) => (B(), h("div", {
|
|
53695
53714
|
key: t,
|
|
53696
53715
|
class: "ai-info-message-content"
|
|
53697
53716
|
}, G(e), 1))), 128))])]));
|
|
53698
53717
|
}
|
|
53699
|
-
}),
|
|
53718
|
+
}), hZ = { class: "ai-tool-approval-card" }, gZ = { class: "ai-tool-approval-card__header" }, _Z = { class: "ai-tool-approval-card__title-wrap" }, vZ = { class: "ai-tool-approval-card__title" }, yZ = { class: "ai-tool-approval-card__fields" }, bZ = { class: "ai-tool-approval-card__field" }, xZ = { class: "ai-tool-approval-card__field" }, SZ = {
|
|
53700
53719
|
key: 0,
|
|
53701
53720
|
class: "ai-tool-approval-card__processor"
|
|
53702
|
-
},
|
|
53721
|
+
}, CZ = { class: "ai-tool-approval-card__processor-text" }, wZ = { class: "ai-tool-approval-card__actions" }, TZ = { class: "ai-tool-approval-card__cancel-wrap" }, EZ = 2e3, DZ = /* @__PURE__ */ x({
|
|
53703
53722
|
__name: "tool-approval-card",
|
|
53704
53723
|
props: {
|
|
53705
53724
|
interrupt: {},
|
|
@@ -53731,7 +53750,7 @@ var cK = ["src"], lK = {
|
|
|
53731
53750
|
}, O = W(!1), k = W(!1), A, j = () => {
|
|
53732
53751
|
k.value = !0, clearTimeout(A), A = setTimeout(() => {
|
|
53733
53752
|
k.value = !1;
|
|
53734
|
-
},
|
|
53753
|
+
}, EZ);
|
|
53735
53754
|
}, M = () => {
|
|
53736
53755
|
O.value || (O.value = !0, j(), t.onInterruptResume?.({
|
|
53737
53756
|
operation: UD.ApprovalCancel,
|
|
@@ -53743,10 +53762,10 @@ var cK = ["src"], lK = {
|
|
|
53743
53762
|
payload: { interrupt_id: t.interrupt.id }
|
|
53744
53763
|
}, t.interrupt));
|
|
53745
53764
|
};
|
|
53746
|
-
return z(() => clearTimeout(A)), (t, r) => (B(), h("section",
|
|
53747
|
-
g("header",
|
|
53765
|
+
return z(() => clearTimeout(A)), (t, r) => (B(), h("section", hZ, [
|
|
53766
|
+
g("header", gZ, [g("div", _Z, [
|
|
53748
53767
|
r[0] ||= g("span", { class: "ai-tool-approval-card__title-bar" }, null, -1),
|
|
53749
|
-
g("span",
|
|
53768
|
+
g("span", vZ, G(l.value.title || q(Z)("算法方案评审单")), 1),
|
|
53750
53769
|
ge(y(q(qk), {
|
|
53751
53770
|
class: P(["ai-tool-approval-card__copy-icon", { "is-disabled": !C.value }]),
|
|
53752
53771
|
onClick: D
|
|
@@ -53783,9 +53802,9 @@ var cK = ["src"], lK = {
|
|
|
53783
53802
|
size: "mini",
|
|
53784
53803
|
theme: "primary"
|
|
53785
53804
|
})), v(" " + G(x.value), 1)], 2)]),
|
|
53786
|
-
g("dl",
|
|
53787
|
-
_.value ? (B(), h("div",
|
|
53788
|
-
g("div",
|
|
53805
|
+
g("dl", yZ, [g("div", bZ, [g("dt", null, G(q(Z)("单据编号")), 1), g("dd", null, G(l.value.sn || "--"), 1)]), g("div", xZ, [g("dt", null, G(q(Z)("提交时间")), 1), g("dd", null, G(l.value.submit_time || "--"), 1)])]),
|
|
53806
|
+
_.value ? (B(), h("div", SZ, [y(q(kk), { class: "ai-tool-approval-card__processor-icon" }), ge((B(), h("span", CZ, [v(G(q(Z)("当前处理人")) + ":" + G(S.value), 1)])), [[q(LP), { ...q(n) }]])])) : m("v-if", !0),
|
|
53807
|
+
g("div", wZ, [
|
|
53789
53808
|
y(q(ay), {
|
|
53790
53809
|
class: "ai-tool-approval-card__detail",
|
|
53791
53810
|
disabled: !l.value.url,
|
|
@@ -53807,7 +53826,7 @@ var cK = ["src"], lK = {
|
|
|
53807
53826
|
}, {
|
|
53808
53827
|
default: J(() => [v(G(q(Z)("取消审批")), 1)]),
|
|
53809
53828
|
_: 1
|
|
53810
|
-
}, 8, ["disabled", "loading"])) : e.readonly ? m("v-if", !0) : (B(), h(o, { key: 1 }, [m(" 终态:保留「取消审批」按钮但置灰,hover 显示当前状态无法取消的原因(tooltip 挂在外层 span,规避 disabled 按钮不触发 hover) "), ge((B(), h("span",
|
|
53829
|
+
}, 8, ["disabled", "loading"])) : e.readonly ? m("v-if", !0) : (B(), h(o, { key: 1 }, [m(" 终态:保留「取消审批」按钮但置灰,hover 显示当前状态无法取消的原因(tooltip 挂在外层 span,规避 disabled 按钮不触发 hover) "), ge((B(), h("span", TZ, [y(q(ay), {
|
|
53811
53830
|
class: "ai-tool-approval-card__cancel",
|
|
53812
53831
|
disabled: "",
|
|
53813
53832
|
outline: ""
|
|
@@ -53823,10 +53842,10 @@ var cK = ["src"], lK = {
|
|
|
53823
53842
|
])
|
|
53824
53843
|
]));
|
|
53825
53844
|
}
|
|
53826
|
-
}),
|
|
53845
|
+
}), OZ = { class: "ai-interrupt-message" }, kZ = {
|
|
53827
53846
|
key: 0,
|
|
53828
53847
|
class: "ai-interrupt-message__content"
|
|
53829
|
-
},
|
|
53848
|
+
}, AZ = { class: "ai-interrupt-message__fallback" }, jZ = /* @__PURE__ */ x({
|
|
53830
53849
|
__name: "interrupt-message",
|
|
53831
53850
|
props: {
|
|
53832
53851
|
content: {},
|
|
@@ -53841,14 +53860,14 @@ var cK = ["src"], lK = {
|
|
|
53841
53860
|
onInterruptResume: { type: Function }
|
|
53842
53861
|
},
|
|
53843
53862
|
setup(e) {
|
|
53844
|
-
let t = { [zD.AIDevToolApproval]:
|
|
53863
|
+
let t = { [zD.AIDevToolApproval]: DZ }, n = (e) => ({
|
|
53845
53864
|
id: e.interruptId || e.id || "",
|
|
53846
53865
|
reason: zD.AIDevToolApproval,
|
|
53847
53866
|
toolCallId: "",
|
|
53848
53867
|
metadata: e.payload.metadata
|
|
53849
53868
|
}), r = {
|
|
53850
53869
|
[zD.AIDevToolApproval]: (e) => ({
|
|
53851
|
-
component:
|
|
53870
|
+
component: DZ,
|
|
53852
53871
|
props: {
|
|
53853
53872
|
interrupt: n(e),
|
|
53854
53873
|
onInterruptResume: a.onInterruptResume,
|
|
@@ -53856,7 +53875,7 @@ var cK = ["src"], lK = {
|
|
|
53856
53875
|
}
|
|
53857
53876
|
}),
|
|
53858
53877
|
[zD.UserQuestion]: (e) => ({
|
|
53859
|
-
component:
|
|
53878
|
+
component: OJ,
|
|
53860
53879
|
props: {
|
|
53861
53880
|
answers: e.payload?.answers ?? [],
|
|
53862
53881
|
status: e.status
|
|
@@ -53867,13 +53886,13 @@ var cK = ["src"], lK = {
|
|
|
53867
53886
|
let e = a.content?.result;
|
|
53868
53887
|
if (e) return r[e.reason]?.(e);
|
|
53869
53888
|
});
|
|
53870
|
-
return (t, n) => (B(), h("div",
|
|
53871
|
-
c.value ? (B(), h("div",
|
|
53889
|
+
return (t, n) => (B(), h("div", OZ, [
|
|
53890
|
+
c.value ? (B(), h("div", kZ, G(c.value), 1)) : m("v-if", !0),
|
|
53872
53891
|
(B(!0), h(o, null, H(s.value, (t) => (B(), h(o, { key: t.toolCallId }, [l(t) ? (B(), p(ae(l(t)), {
|
|
53873
53892
|
key: 0,
|
|
53874
53893
|
interrupt: t,
|
|
53875
53894
|
"on-interrupt-resume": e.onInterruptResume
|
|
53876
|
-
}, null, 40, ["interrupt", "on-interrupt-resume"])) : u(t) ? m("v-if", !0) : (B(), h(o, { key: 1 }, [m(" UserQuestion 的交互浮层渲染在 chat-input 上方,不在会话内渲染 "), g("div",
|
|
53895
|
+
}, null, 40, ["interrupt", "on-interrupt-resume"])) : u(t) ? m("v-if", !0) : (B(), h(o, { key: 1 }, [m(" UserQuestion 的交互浮层渲染在 chat-input 上方,不在会话内渲染 "), g("div", AZ, G(t.message || q(Z)("暂不支持的中断消息")), 1)], 2112))], 64))), 128)),
|
|
53877
53896
|
m(" outcome.success 时按 reason 在会话内回显 resume 结果(审批单 / 已回答内容等) "),
|
|
53878
53897
|
f.value ? (B(), p(ae(f.value.component), F(M({ key: 1 }, f.value.props)), _({ _: 2 }, [t.$slots.answeredQuestion ? {
|
|
53879
53898
|
name: "answer",
|
|
@@ -53882,18 +53901,18 @@ var cK = ["src"], lK = {
|
|
|
53882
53901
|
} : void 0]), 1040)) : m("v-if", !0)
|
|
53883
53902
|
]));
|
|
53884
53903
|
}
|
|
53885
|
-
}),
|
|
53904
|
+
}), MZ = { class: "ai-loading-message" }, NZ = /* @__PURE__ */ x({
|
|
53886
53905
|
__name: "loading-message",
|
|
53887
53906
|
setup(e) {
|
|
53888
53907
|
let t = sP();
|
|
53889
53908
|
return R(() => {
|
|
53890
53909
|
t?.value?.jumpToBottom?.();
|
|
53891
|
-
}), (e, t) => (B(), h("div",
|
|
53910
|
+
}), (e, t) => (B(), h("div", MZ, [y(pA, { size: 18 }), U(e.$slots, "default", {}, () => [v(G(q(Z)("请求中...")), 1)])]));
|
|
53892
53911
|
}
|
|
53893
|
-
}),
|
|
53912
|
+
}), PZ = { class: "ai-reasoning-message" }, FZ = {
|
|
53894
53913
|
key: 0,
|
|
53895
53914
|
class: "ai-reasoning-message-title-icon"
|
|
53896
|
-
},
|
|
53915
|
+
}, IZ = { class: "ai-reasoning-message-title-text" }, LZ = { class: "ai-reasoning-message-content" }, RZ = /* @__PURE__ */ x({
|
|
53897
53916
|
__name: "reasoning-message",
|
|
53898
53917
|
props: /* @__PURE__ */ j({
|
|
53899
53918
|
duration: {},
|
|
@@ -53926,7 +53945,7 @@ var cK = ["src"], lK = {
|
|
|
53926
53945
|
default: return Z("思考中");
|
|
53927
53946
|
}
|
|
53928
53947
|
});
|
|
53929
|
-
return (t, r) => (B(), h("div",
|
|
53948
|
+
return (t, r) => (B(), h("div", PZ, [g("div", {
|
|
53930
53949
|
class: P(["ai-reasoning-message-title", {
|
|
53931
53950
|
"ai-reasoning-message-title-collapsed": n.value,
|
|
53932
53951
|
"is-thinking": e.status === q(Q).Pending || e.status === q(Q).Streaming,
|
|
@@ -53935,11 +53954,11 @@ var cK = ["src"], lK = {
|
|
|
53935
53954
|
}]),
|
|
53936
53955
|
onClick: r[0] ||= (e) => n.value = !n.value
|
|
53937
53956
|
}, [
|
|
53938
|
-
e.status === q(Q).Pending || e.status === q(Q).Streaming ? (B(), h("span",
|
|
53939
|
-
g("span",
|
|
53957
|
+
e.status === q(Q).Pending || e.status === q(Q).Streaming ? (B(), h("span", FZ, [y(pA)])) : m("v-if", !0),
|
|
53958
|
+
g("span", IZ, G(i.value), 1),
|
|
53940
53959
|
m(" <template v-if=\"status === MessageStatus.Pending || status === MessageStatus.Streaming\">\n <ContentLoadingIcon\n v-for=\"i in 3\"\n :key=\"i\"\n :class=\"`loading-status-${i}`\"\n />\n </template> "),
|
|
53941
53960
|
g("span", { class: P(["ai-reasoning-message-title-icon collapsed-icon", { "is-collapsed": n.value }]) }, [y(q(zk))], 2)
|
|
53942
|
-
], 2), ge(g("div",
|
|
53961
|
+
], 2), ge(g("div", LZ, [e.status === q(Q).Error ? (B(), p(WU, {
|
|
53943
53962
|
key: 0,
|
|
53944
53963
|
content: e.content?.join("\n") || ""
|
|
53945
53964
|
}, null, 8, ["content"])) : (B(!0), h(o, { key: 1 }, H(Array.isArray(e.content) ? e.content : [e.content], (e) => (B(), p(lW, {
|
|
@@ -53947,38 +53966,38 @@ var cK = ["src"], lK = {
|
|
|
53947
53966
|
content: e
|
|
53948
53967
|
}, null, 8, ["content"]))), 128))], 512), [[fe, !n.value]])]));
|
|
53949
53968
|
}
|
|
53950
|
-
}),
|
|
53969
|
+
}), zZ = { class: "ai-key-value-content" }, BZ = {
|
|
53951
53970
|
key: 0,
|
|
53952
53971
|
class: "ai-key-value-title"
|
|
53953
|
-
},
|
|
53972
|
+
}, VZ = { class: "ai-key-value-content" }, HZ = { class: "item-key" }, UZ = { class: "item-value" }, WZ = /* @__PURE__ */ x({
|
|
53954
53973
|
__name: "key-value-content",
|
|
53955
53974
|
props: {
|
|
53956
53975
|
content: {},
|
|
53957
53976
|
title: {}
|
|
53958
53977
|
},
|
|
53959
53978
|
setup(e) {
|
|
53960
|
-
return (t, n) => (B(), h("div",
|
|
53979
|
+
return (t, n) => (B(), h("div", zZ, [e.title ? (B(), h("div", BZ, [y(q(Rk)), v(" " + G(e.title), 1)])) : m("v-if", !0), g("div", VZ, [(B(!0), h(o, null, H(e.content, (e) => (B(), h("div", {
|
|
53961
53980
|
key: e.key,
|
|
53962
53981
|
class: "key-value-item"
|
|
53963
53982
|
}, [
|
|
53964
|
-
g("div",
|
|
53983
|
+
g("div", HZ, G(e.key), 1),
|
|
53965
53984
|
n[0] ||= v(" : ", -1),
|
|
53966
|
-
g("div",
|
|
53985
|
+
g("div", UZ, G(e.value), 1)
|
|
53967
53986
|
]))), 128))])]));
|
|
53968
53987
|
}
|
|
53969
|
-
}),
|
|
53988
|
+
}), GZ = { class: "ai-text-content" }, KZ = /* @__PURE__ */ x({
|
|
53970
53989
|
__name: "text-content",
|
|
53971
53990
|
props: { content: {} },
|
|
53972
53991
|
setup(e) {
|
|
53973
|
-
return (t, n) => (B(), h("div",
|
|
53992
|
+
return (t, n) => (B(), h("div", GZ, G(e.content), 1));
|
|
53974
53993
|
}
|
|
53975
|
-
}),
|
|
53994
|
+
}), qZ = { class: "ai-user-message" }, JZ = {
|
|
53976
53995
|
key: 0,
|
|
53977
53996
|
class: "ai-user-message-binary-files"
|
|
53978
|
-
},
|
|
53997
|
+
}, YZ = {
|
|
53979
53998
|
key: 1,
|
|
53980
53999
|
class: "ai-user-message-content"
|
|
53981
|
-
},
|
|
54000
|
+
}, XZ = { class: "user-edit-footer" }, ZZ = /* @__PURE__ */ x({
|
|
53982
54001
|
__name: "user-message",
|
|
53983
54002
|
props: {
|
|
53984
54003
|
content: {},
|
|
@@ -54040,7 +54059,7 @@ var cK = ["src"], lK = {
|
|
|
54040
54059
|
}, O = async (e, n) => {
|
|
54041
54060
|
t.onInputConfirm?.(e, n), i.value = !1;
|
|
54042
54061
|
};
|
|
54043
|
-
return (t, r) => (B(), h("div",
|
|
54062
|
+
return (t, r) => (B(), h("div", qZ, [
|
|
54044
54063
|
l.value && typeof l.value == "string" ? (B(), p(GG, {
|
|
54045
54064
|
key: 0,
|
|
54046
54065
|
class: "ai-user-message-cite",
|
|
@@ -54051,7 +54070,7 @@ var cK = ["src"], lK = {
|
|
|
54051
54070
|
class: "user-shortcut-render",
|
|
54052
54071
|
onClose: E,
|
|
54053
54072
|
onSubmit: D
|
|
54054
|
-
}), null, 16)) : (B(), p(
|
|
54073
|
+
}), null, 16)) : (B(), p(vq, {
|
|
54055
54074
|
key: 1,
|
|
54056
54075
|
ref_key: "chatInputRef",
|
|
54057
54076
|
ref: s,
|
|
@@ -54062,7 +54081,7 @@ var cK = ["src"], lK = {
|
|
|
54062
54081
|
"on-send-message": O,
|
|
54063
54082
|
"support-upload": q(n)?.supportUpload.value ?? !1
|
|
54064
54083
|
}, {
|
|
54065
|
-
"send-icon": J(() => [g("div",
|
|
54084
|
+
"send-icon": J(() => [g("div", XZ, [y(q(ay), {
|
|
54066
54085
|
size: "small",
|
|
54067
54086
|
onClick: T
|
|
54068
54087
|
}, {
|
|
@@ -54082,7 +54101,7 @@ var cK = ["src"], lK = {
|
|
|
54082
54101
|
"default-upload-files",
|
|
54083
54102
|
"support-upload"
|
|
54084
54103
|
]))], 64)) : (B(), h(o, { key: 1 }, [
|
|
54085
|
-
_.value.length ? (B(), h(o, { key: 0 }, [b.value.length ? (B(), h("div",
|
|
54104
|
+
_.value.length ? (B(), h(o, { key: 0 }, [b.value.length ? (B(), h("div", JZ, [y(SK, {
|
|
54086
54105
|
files: b.value,
|
|
54087
54106
|
readonly: !0
|
|
54088
54107
|
}, null, 8, ["files"])])) : m("v-if", !0), (B(!0), h(o, null, H(x.value, (e, t) => (B(), h("div", {
|
|
@@ -54092,14 +54111,14 @@ var cK = ["src"], lK = {
|
|
|
54092
54111
|
files: [e],
|
|
54093
54112
|
readonly: !0
|
|
54094
54113
|
}, null, 8, ["files"])]))), 128))], 64)) : m("v-if", !0),
|
|
54095
|
-
l.value || S.value.length ? (B(), h("div",
|
|
54114
|
+
l.value || S.value.length ? (B(), h("div", YZ, [Array.isArray(l.value) ? (B(), h(o, { key: 0 }, [m(" property.extra.cite 是数组时,显示结构化内容 "), y(WZ, {
|
|
54096
54115
|
content: l.value,
|
|
54097
54116
|
title: c.value
|
|
54098
|
-
}, null, 8, ["content", "title"])], 64)) : e.content ? (B(), h(o, { key: 1 }, [m(" agui user message content 显示"), (B(!0), h(o, null, H(S.value, (e, t) => (B(), p(
|
|
54117
|
+
}, null, 8, ["content", "title"])], 64)) : e.content ? (B(), h(o, { key: 1 }, [m(" agui user message content 显示"), (B(!0), h(o, null, H(S.value, (e, t) => (B(), p(KZ, {
|
|
54099
54118
|
key: t,
|
|
54100
54119
|
content: e
|
|
54101
54120
|
}, null, 8, ["content"]))), 128))], 2112)) : m("v-if", !0)])) : m("v-if", !0),
|
|
54102
|
-
e.messageToolsStatus === q(zG).Hidden ? m("v-if", !0) : (B(), p(
|
|
54121
|
+
e.messageToolsStatus === q(zG).Hidden ? m("v-if", !0) : (B(), p(TY, {
|
|
54103
54122
|
key: 2,
|
|
54104
54123
|
class: "ai-user-message-tools",
|
|
54105
54124
|
"message-tools": q(YD),
|
|
@@ -54108,7 +54127,7 @@ var cK = ["src"], lK = {
|
|
|
54108
54127
|
"tippy-options": e.tippyOptions,
|
|
54109
54128
|
"update-tools": []
|
|
54110
54129
|
}, {
|
|
54111
|
-
prepend: J(() => [y(
|
|
54130
|
+
prepend: J(() => [y(sY, { "created-at": e.createdAt }, null, 8, ["created-at"])]),
|
|
54112
54131
|
_: 1
|
|
54113
54132
|
}, 8, [
|
|
54114
54133
|
"message-tools",
|
|
@@ -54118,7 +54137,7 @@ var cK = ["src"], lK = {
|
|
|
54118
54137
|
], 64))
|
|
54119
54138
|
]));
|
|
54120
54139
|
}
|
|
54121
|
-
}),
|
|
54140
|
+
}), QZ = /* @__PURE__ */ x({
|
|
54122
54141
|
__name: "message-render",
|
|
54123
54142
|
props: {
|
|
54124
54143
|
messageToolsStatus: {},
|
|
@@ -54132,7 +54151,7 @@ var cK = ["src"], lK = {
|
|
|
54132
54151
|
setup(e) {
|
|
54133
54152
|
let t = e, n = ue(), r = d(() => {
|
|
54134
54153
|
switch (t.message.role) {
|
|
54135
|
-
case VD.User: return T(
|
|
54154
|
+
case VD.User: return T(ZZ, {
|
|
54136
54155
|
...t.message,
|
|
54137
54156
|
onAction: t.onAction,
|
|
54138
54157
|
onInputConfirm: t.onInputConfirm,
|
|
@@ -54140,33 +54159,33 @@ var cK = ["src"], lK = {
|
|
|
54140
54159
|
messageToolsStatus: t.messageToolsStatus,
|
|
54141
54160
|
tippyOptions: t.tippyOptions
|
|
54142
54161
|
});
|
|
54143
|
-
case VD.Assistant: return T(
|
|
54162
|
+
case VD.Assistant: return T(dZ, t.message, { default: (e) => U(n, "default", e, () => [T(fW, {
|
|
54144
54163
|
content: t.message.content || "",
|
|
54145
54164
|
status: t.message.status
|
|
54146
54165
|
}, n.codeHeader ? { codeHeader: (e) => n.codeHeader?.(e) } : void 0)]) });
|
|
54147
|
-
case VD.Info: return T(
|
|
54148
|
-
case VD.Reasoning: return T(
|
|
54149
|
-
case VD.Tool: return T(
|
|
54150
|
-
case VD.Activity: return T(
|
|
54166
|
+
case VD.Info: return T(mZ, t.message);
|
|
54167
|
+
case VD.Reasoning: return T(RZ, t.message);
|
|
54168
|
+
case VD.Tool: return T(eZ, t.message);
|
|
54169
|
+
case VD.Activity: return T(KX, {
|
|
54151
54170
|
...t.message,
|
|
54152
54171
|
onInterruptResume: t.onInterruptResume
|
|
54153
54172
|
});
|
|
54154
|
-
case VD.Interrupt: return T(
|
|
54173
|
+
case VD.Interrupt: return T(jZ, {
|
|
54155
54174
|
...t.message,
|
|
54156
54175
|
onInterruptResume: t.onInterruptResume
|
|
54157
54176
|
}, n.answeredQuestion ? { answeredQuestion: (e) => n.answeredQuestion?.(e) } : void 0);
|
|
54158
|
-
case VD.Loading: return T(
|
|
54177
|
+
case VD.Loading: return T(NZ, t.message);
|
|
54159
54178
|
default: return null;
|
|
54160
54179
|
}
|
|
54161
54180
|
});
|
|
54162
54181
|
return (e, t) => (B(), p(ae(r.value)));
|
|
54163
54182
|
}
|
|
54164
|
-
}),
|
|
54183
|
+
}), $Z = [
|
|
54165
54184
|
"id",
|
|
54166
54185
|
"data-message-group-id",
|
|
54167
54186
|
"onMouseenter",
|
|
54168
54187
|
"onMouseleave"
|
|
54169
|
-
],
|
|
54188
|
+
], eQ = ["data-message-id"], tQ = { class: "ai-message-fixed-bottom" }, nQ = /* @__PURE__ */ x({
|
|
54170
54189
|
__name: "message-container",
|
|
54171
54190
|
props: /* @__PURE__ */ j({
|
|
54172
54191
|
enableSelection: {
|
|
@@ -54269,7 +54288,7 @@ var cK = ["src"], lK = {
|
|
|
54269
54288
|
message: i,
|
|
54270
54289
|
messageToolsStatus: e.messageToolsStatus,
|
|
54271
54290
|
onInterruptResume: t.onInterruptResume
|
|
54272
|
-
}), () => [(B(), p(
|
|
54291
|
+
}), () => [(B(), p(QZ, {
|
|
54273
54292
|
key: a,
|
|
54274
54293
|
message: i,
|
|
54275
54294
|
"message-tools-status": e.messageToolsStatus,
|
|
@@ -54290,7 +54309,7 @@ var cK = ["src"], lK = {
|
|
|
54290
54309
|
"on-interrupt-resume",
|
|
54291
54310
|
"on-shortcut-confirm",
|
|
54292
54311
|
"tippy-options"
|
|
54293
|
-
]))])], 8,
|
|
54312
|
+
]))])], 8, eQ))), 128)), e.renderMode !== q($D).Share && !(e.enableSelection && a.type !== q(VD).Loading) && !a.pause && a.type === q(VD).Assistant && e.messageToolsStatus !== q(zG).Hidden ? (B(), p(TY, {
|
|
54294
54313
|
key: 0,
|
|
54295
54314
|
"message-tools": b.value,
|
|
54296
54315
|
"message-tools-status": e.messageToolsStatus,
|
|
@@ -54300,7 +54319,7 @@ var cK = ["src"], lK = {
|
|
|
54300
54319
|
"update-tools": x.value,
|
|
54301
54320
|
onFeedback: (e, n, r) => t.onAgentFeedback?.(e, a.messages, n, r)
|
|
54302
54321
|
}, {
|
|
54303
|
-
append: J(() => [y(
|
|
54322
|
+
append: J(() => [y(sY, { "created-at": i(a.messages) }, null, 8, ["created-at"])]),
|
|
54304
54323
|
_: 2
|
|
54305
54324
|
}, 1032, [
|
|
54306
54325
|
"message-tools",
|
|
@@ -54310,14 +54329,14 @@ var cK = ["src"], lK = {
|
|
|
54310
54329
|
"tippy-options",
|
|
54311
54330
|
"update-tools",
|
|
54312
54331
|
"onFeedback"
|
|
54313
|
-
])) : m("v-if", !0)], 6)])], 44,
|
|
54332
|
+
])) : m("v-if", !0)], 6)])], 44, $Z))), 128)),
|
|
54314
54333
|
g("div", {
|
|
54315
54334
|
ref_key: "messageContainerBottomRef",
|
|
54316
54335
|
ref: s,
|
|
54317
54336
|
class: "message-container-bottom",
|
|
54318
54337
|
tabindex: "0"
|
|
54319
54338
|
}, null, 512),
|
|
54320
|
-
g("div",
|
|
54339
|
+
g("div", tQ, [ge(y(oA, {
|
|
54321
54340
|
loading: e.messageStatus === q(Q).StopLoading,
|
|
54322
54341
|
title: e.messageStatus === q(Q).StopLoading ? q(Z)("正在停止") : q(Z)("停止生成"),
|
|
54323
54342
|
onClick: c[0] ||= (e) => n.$emit("stopStreaming")
|
|
@@ -54333,16 +54352,16 @@ var cK = ["src"], lK = {
|
|
|
54333
54352
|
}, 8, ["title"]), [[fe, q(u)]])])
|
|
54334
54353
|
], 512));
|
|
54335
54354
|
}
|
|
54336
|
-
}),
|
|
54355
|
+
}), rQ = { class: "ai-execution-summary" }, iQ = {
|
|
54337
54356
|
key: 0,
|
|
54338
54357
|
class: "ai-execution-summary-header"
|
|
54339
|
-
},
|
|
54358
|
+
}, aQ = { class: "ai-execution-summary-content" }, oQ = ["onMouseenter"], sQ = { class: "content-item-header" }, cQ = { class: "content-item-title" }, lQ = { class: "content-item-messages" }, uQ = {
|
|
54340
54359
|
key: 0,
|
|
54341
54360
|
class: "timeline-line"
|
|
54342
|
-
},
|
|
54361
|
+
}, dQ = {
|
|
54343
54362
|
key: 1,
|
|
54344
54363
|
class: "ai-execution-summary-content-empty"
|
|
54345
|
-
},
|
|
54364
|
+
}, fQ = { class: "ai-execution-summary-content-empty-text" }, pQ = /* @__PURE__ */ x({
|
|
54346
54365
|
__name: "execution-summary",
|
|
54347
54366
|
props: { messageGroups: {} },
|
|
54348
54367
|
emits: ["locateMessageGroup", "updateKeyword"],
|
|
@@ -54356,21 +54375,21 @@ var cK = ["src"], lK = {
|
|
|
54356
54375
|
}, l = () => {
|
|
54357
54376
|
i.value = "", n("updateKeyword", "");
|
|
54358
54377
|
};
|
|
54359
|
-
return (t, u) => (B(), h("div",
|
|
54378
|
+
return (t, u) => (B(), h("div", rQ, [e.messageGroups.length ? (B(), h("div", iQ, [y(q(Hy), {
|
|
54360
54379
|
modelValue: q(i),
|
|
54361
54380
|
"onUpdate:modelValue": [u[0] ||= (e) => O(i) ? i.value = e : null, u[1] ||= (e) => n("updateKeyword", e)],
|
|
54362
54381
|
class: "ai-execution-summary-header-input",
|
|
54363
54382
|
clearable: "",
|
|
54364
54383
|
placeholder: q(Z)("搜索 关键字")
|
|
54365
|
-
}, null, 8, ["modelValue", "placeholder"])])) : m("v-if", !0), g("div",
|
|
54384
|
+
}, null, 8, ["modelValue", "placeholder"])])) : m("v-if", !0), g("div", aQ, [e.messageGroups.length ? (B(!0), h(o, { key: 0 }, H(e.messageGroups, (t, n) => (B(), h("div", {
|
|
54366
54385
|
key: t.uid,
|
|
54367
54386
|
class: "ai-execution-summary-content-item",
|
|
54368
54387
|
onMouseenter: (e) => a.value = t.uid,
|
|
54369
54388
|
onMouseleave: u[2] ||= (e) => a.value = void 0
|
|
54370
54389
|
}, [
|
|
54371
|
-
g("div",
|
|
54390
|
+
g("div", sQ, [
|
|
54372
54391
|
u[3] ||= g("span", { class: "timeline-dot" }, null, -1),
|
|
54373
|
-
ge((B(), h("span",
|
|
54392
|
+
ge((B(), h("span", cQ, [v(G(typeof t.userMessageTitle == "number" ? s(t.userMessageTitle) : t.userMessageTitle), 1)])), [[q(LP), { ...q(r) }]]),
|
|
54374
54393
|
ge(y(q(ay), {
|
|
54375
54394
|
class: "content-item-locate",
|
|
54376
54395
|
text: "",
|
|
@@ -54381,16 +54400,16 @@ var cK = ["src"], lK = {
|
|
|
54381
54400
|
_: 1
|
|
54382
54401
|
}, 8, ["onClick"]), [[fe, a.value === t.uid]])
|
|
54383
54402
|
]),
|
|
54384
|
-
g("div",
|
|
54403
|
+
g("div", lQ, [(B(!0), h(o, null, H(t.messages, (e, t) => (B(), p(QZ, {
|
|
54385
54404
|
key: t,
|
|
54386
54405
|
message: e
|
|
54387
54406
|
}, null, 8, ["message"]))), 128))]),
|
|
54388
|
-
n < e.messageGroups.length - 1 ? (B(), h("div",
|
|
54389
|
-
], 40,
|
|
54407
|
+
n < e.messageGroups.length - 1 ? (B(), h("div", uQ)) : m("v-if", !0)
|
|
54408
|
+
], 40, oQ))), 128)) : (B(), h("div", dQ, [y(q(pC), {
|
|
54390
54409
|
class: "empty-exception",
|
|
54391
54410
|
scene: "part",
|
|
54392
54411
|
type: "empty"
|
|
54393
|
-
}), g("div",
|
|
54412
|
+
}), g("div", fQ, [v(G(q(i) ? q(Z)("搜索结果为空") : q(Z)("暂无数据")) + " ", 1), q(i) ? (B(), p(q(ay), {
|
|
54394
54413
|
key: 0,
|
|
54395
54414
|
text: "",
|
|
54396
54415
|
theme: "primary",
|
|
@@ -54400,7 +54419,7 @@ var cK = ["src"], lK = {
|
|
|
54400
54419
|
_: 1
|
|
54401
54420
|
})) : m("v-if", !0)])]))])]));
|
|
54402
54421
|
}
|
|
54403
|
-
}),
|
|
54422
|
+
}), mQ = { class: "ai-selection-footer" }, hQ = { class: "ai-selection-footer-left" }, gQ = { class: "select-all-text" }, _Q = { class: "ai-selection-footer-right" }, vQ = /* @__PURE__ */ x({
|
|
54404
54423
|
__name: "selection-footer",
|
|
54405
54424
|
props: {
|
|
54406
54425
|
isAllSelected: { type: Boolean },
|
|
@@ -54414,10 +54433,10 @@ var cK = ["src"], lK = {
|
|
|
54414
54433
|
],
|
|
54415
54434
|
setup(e, { emit: t }) {
|
|
54416
54435
|
let n = t;
|
|
54417
|
-
return (t, r) => (B(), h("div",
|
|
54436
|
+
return (t, r) => (B(), h("div", mQ, [g("div", hQ, [y(q(hb), {
|
|
54418
54437
|
"model-value": e.isAllSelected,
|
|
54419
54438
|
"onUpdate:modelValue": r[0] ||= (e) => n("toggle-all", e)
|
|
54420
|
-
}, null, 8, ["model-value"]), g("span",
|
|
54439
|
+
}, null, 8, ["model-value"]), g("span", gQ, G(q(Z)("全选")), 1)]), g("div", _Q, [y(q(ay), {
|
|
54421
54440
|
disabled: e.loading,
|
|
54422
54441
|
onClick: r[1] ||= (e) => n("cancel")
|
|
54423
54442
|
}, {
|
|
@@ -54433,16 +54452,16 @@ var cK = ["src"], lK = {
|
|
|
54433
54452
|
_: 1
|
|
54434
54453
|
}, 8, ["disabled", "loading"])])]));
|
|
54435
54454
|
}
|
|
54436
|
-
}),
|
|
54455
|
+
}), yQ = ["data-ai-size"], bQ = {
|
|
54437
54456
|
key: 0,
|
|
54438
54457
|
class: "ai-chat-container-loading"
|
|
54439
|
-
},
|
|
54458
|
+
}, xQ = { class: "screen-wrapper" }, SQ = {
|
|
54440
54459
|
key: 1,
|
|
54441
54460
|
class: "ai-welcome-content"
|
|
54442
|
-
},
|
|
54461
|
+
}, CQ = { class: "ai-welcome-title" }, wQ = {
|
|
54443
54462
|
key: 0,
|
|
54444
54463
|
class: "ai-welcome-remark"
|
|
54445
|
-
},
|
|
54464
|
+
}, TQ = /* @__PURE__ */ x({
|
|
54446
54465
|
__name: "chat-container",
|
|
54447
54466
|
props: /* @__PURE__ */ j({
|
|
54448
54467
|
asideCollapsed: {
|
|
@@ -54618,7 +54637,7 @@ var cK = ["src"], lK = {
|
|
|
54618
54637
|
}, Ie = async (e, t) => {
|
|
54619
54638
|
let n = De.value;
|
|
54620
54639
|
return i.onSendMessage?.(e, t, n ? {
|
|
54621
|
-
payload:
|
|
54640
|
+
payload: vJ(n),
|
|
54622
54641
|
interrupt: n
|
|
54623
54642
|
} : void 0);
|
|
54624
54643
|
}, Le = (e) => {
|
|
@@ -54669,10 +54688,9 @@ var cK = ["src"], lK = {
|
|
|
54669
54688
|
"data-ai-size": e.size,
|
|
54670
54689
|
style: I({
|
|
54671
54690
|
"--resize-main-width": he.value,
|
|
54672
|
-
"--resize-aside-width": _e.value
|
|
54673
|
-
borderTopColor: q(L) ? "transparent" : "#eaebf0"
|
|
54691
|
+
"--resize-aside-width": _e.value
|
|
54674
54692
|
})
|
|
54675
|
-
}, [e.chatLoading ? (B(), h("div",
|
|
54693
|
+
}, [e.chatLoading ? (B(), h("div", bQ, [y(jq)])) : (B(), p(q(Iw), M({
|
|
54676
54694
|
key: 1,
|
|
54677
54695
|
class: ["ai-chat-container-resize-layout", {
|
|
54678
54696
|
"ai-is-collapse": q(L) || q(A).length === 0,
|
|
@@ -54697,7 +54715,7 @@ var cK = ["src"], lK = {
|
|
|
54697
54715
|
type: "unborder-card",
|
|
54698
54716
|
onChange: ze
|
|
54699
54717
|
}, {
|
|
54700
|
-
setting: J(() => [g("div",
|
|
54718
|
+
setting: J(() => [g("div", xQ, [y(zP, {
|
|
54701
54719
|
class: "screen-btn",
|
|
54702
54720
|
"tippy-options": {
|
|
54703
54721
|
...k.value,
|
|
@@ -54738,13 +54756,13 @@ var cK = ["src"], lK = {
|
|
|
54738
54756
|
}, null, 8, ["label", "name"]))), 128))]),
|
|
54739
54757
|
_: 1
|
|
54740
54758
|
}, 8, ["active"]),
|
|
54741
|
-
q(P)?.name === q("execution") && e.executionTabVisible !== !1 ? (B(), h(o, { key: 0 }, [q(L) ? m("v-if", !0) : (B(), p(
|
|
54759
|
+
q(P)?.name === q("execution") && e.executionTabVisible !== !1 ? (B(), h(o, { key: 0 }, [q(L) ? m("v-if", !0) : (B(), p(pQ, {
|
|
54742
54760
|
key: 0,
|
|
54743
54761
|
"message-groups": q(ye),
|
|
54744
54762
|
style: { height: "calc(100% - 40px)" },
|
|
54745
54763
|
onLocateMessageGroup: Le,
|
|
54746
54764
|
onUpdateKeyword: Be
|
|
54747
|
-
}, null, 8, ["message-groups"]))], 64)) : q(P)?.name === q("file-artifact") ? (B(), p(
|
|
54765
|
+
}, null, 8, ["message-groups"]))], 64)) : q(P)?.name === q("file-artifact") ? (B(), p(mJ, {
|
|
54748
54766
|
key: 1,
|
|
54749
54767
|
"active-id": q(Oe),
|
|
54750
54768
|
artifacts: q(be),
|
|
@@ -54788,7 +54806,7 @@ var cK = ["src"], lK = {
|
|
|
54788
54806
|
onUserAction: e.onUserAction,
|
|
54789
54807
|
onUserInputConfirm: e.onUserInputConfirm,
|
|
54790
54808
|
onUserShortcutConfirm: e.onUserShortcutConfirm
|
|
54791
|
-
})), () => [e.messages?.length ? (B(), p(
|
|
54809
|
+
})), () => [e.messages?.length ? (B(), p(nQ, {
|
|
54792
54810
|
key: 0,
|
|
54793
54811
|
"selected-user-messages": K.value,
|
|
54794
54812
|
"onUpdate:selectedUserMessages": n[1] ||= (e) => K.value = e,
|
|
@@ -54832,14 +54850,14 @@ var cK = ["src"], lK = {
|
|
|
54832
54850
|
"on-user-shortcut-confirm",
|
|
54833
54851
|
"render-mode",
|
|
54834
54852
|
"update-tools"
|
|
54835
|
-
])) : m("v-if", !0)]) : (B(), h("div",
|
|
54853
|
+
])) : m("v-if", !0)]) : (B(), h("div", SQ, [U(t.$slots, "welcome", F(C({
|
|
54836
54854
|
openingRemark: e.openingRemark,
|
|
54837
54855
|
welcomeTitle: e.welcomeTitle
|
|
54838
54856
|
})), () => [
|
|
54839
54857
|
y(q(aO)),
|
|
54840
|
-
g("h2",
|
|
54841
|
-
e.openingRemark ? (B(), h("div",
|
|
54842
|
-
])])), a.value === q($D).Share ? m("v-if", !0) : (B(), h(o, { key: 2 }, [q(xe) ? (B(), p(
|
|
54858
|
+
g("h2", CQ, G(e.welcomeTitle ?? q(Z)("你好,我是小鲸")), 1),
|
|
54859
|
+
e.openingRemark ? (B(), h("div", wQ, [y(fW, { content: e.openingRemark }, null, 8, ["content"])])) : m("v-if", !0)
|
|
54860
|
+
])])), a.value === q($D).Share ? m("v-if", !0) : (B(), h(o, { key: 2 }, [q(xe) ? (B(), p(vQ, {
|
|
54843
54861
|
key: 0,
|
|
54844
54862
|
"is-all-selected": q(Se),
|
|
54845
54863
|
loading: !1,
|
|
@@ -54855,7 +54873,7 @@ var cK = ["src"], lK = {
|
|
|
54855
54873
|
class: { "is-welcome-overlay": !e.messages?.length },
|
|
54856
54874
|
onClose: je,
|
|
54857
54875
|
onSubmit: Me
|
|
54858
|
-
}), null, 16, ["class"])) : (B(), p(
|
|
54876
|
+
}), null, 16, ["class"])) : (B(), p(vq, {
|
|
54859
54877
|
key: 2,
|
|
54860
54878
|
cite: S.value,
|
|
54861
54879
|
"onUpdate:cite": n[3] ||= (e) => S.value = e,
|
|
@@ -54881,7 +54899,7 @@ var cK = ["src"], lK = {
|
|
|
54881
54899
|
onSelectShortcut: Pe,
|
|
54882
54900
|
"onUpdate:modelValue": Fe
|
|
54883
54901
|
}, {
|
|
54884
|
-
interrupt: J(() => [q(De) ? (B(), p(q(
|
|
54902
|
+
interrupt: J(() => [q(De) ? (B(), p(q(ZJ), {
|
|
54885
54903
|
key: 0,
|
|
54886
54904
|
interrupt: q(De),
|
|
54887
54905
|
"on-resume": e.onInterruptResume
|
|
@@ -54894,7 +54912,7 @@ var cK = ["src"], lK = {
|
|
|
54894
54912
|
confirm: a
|
|
54895
54913
|
})))]),
|
|
54896
54914
|
_: 3
|
|
54897
|
-
}, 8, ["interrupt", "on-resume"])) : m("v-if", !0), q(Ee) ? (B(), p(
|
|
54915
|
+
}, 8, ["interrupt", "on-resume"])) : m("v-if", !0), q(Ee) ? (B(), p(xq, {
|
|
54898
54916
|
key: 1,
|
|
54899
54917
|
content: q(Ee)
|
|
54900
54918
|
}, null, 8, ["content"])) : m("v-if", !0)]),
|
|
@@ -54918,22 +54936,22 @@ var cK = ["src"], lK = {
|
|
|
54918
54936
|
"tippy-options"
|
|
54919
54937
|
]))], 64))]),
|
|
54920
54938
|
_: 3
|
|
54921
|
-
}, 16, ["class"]))], 12,
|
|
54939
|
+
}, 16, ["class"]))], 12, yQ));
|
|
54922
54940
|
}
|
|
54923
|
-
}), TQ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAAGVn0euAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAACpM19OAAAj4UlEQVR4Ae1dB4AURbqu7pnZyOICShIVBI5TDPgwR0yn5yknKigIy+5KMCJ4ohgQMGdP8BQDsAsqHsZTnnqcPlEU1DNwnnqKYATxRDIsuxO63/f91dXTMzuzzBLEd28Leqq66q+//lR/he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CN+GkMK3tReLOWe0kHLqE6jW+V8xAnohU7GOzzw4/bdO9QcELLdY7DSwqMSaxf4/J0hfHyr0N0FwigUJXHwxVQRjLsUkBE40m7SOkVIWERDiFSAWKkuFyXRlbE+3BAV5Slf18e9pzhdXyuL31GTb6kBFjVdfY/miQO4OMYTz6rdRrdqhWRTaJJAkwSaJNAkgSYJNEmgSQJNEmhQAv8Lix8k/gNx6O4AAAAASUVORK5CYII=", EQ = { class: "left-section" }, DQ = { class: "logo" }, OQ = ["src"], kQ = {
|
|
54941
|
+
}), EQ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAAGVn0euAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAACpM19OAAAj4UlEQVR4Ae1dB4AURbqu7pnZyOICShIVBI5TDPgwR0yn5yknKigIy+5KMCJ4ohgQMGdP8BQDsAsqHsZTnnqcPlEU1DNwnnqKYATxRDIsuxO63/f91dXTMzuzzBLEd28Leqq66q+//lR/he7qVWpbh35lsYVBnHbwJpjuPqB2Be/3s9X+jH9TFnMZZwxdBkVXdhkc+02w8E8VifoVOg+Kurze/tRxuw2OuodU1tUHMlgI2GdczH1/kSPXR1847ieLE+6AC2uk0v7DoxKn8DDkt7aaMOFOtWaNq8YjXr/WVS3DupEehXHBLRWInXc/rXbV22/NU+vWOurNN+epmnWoENEV9g9WWDIjzyoOuWo9AG694xlVi/ihe55SsfUJtOAI5h5FCYnD8oufj6ryrVcLNrknHmyrkO2qSEgpx3ZUK7SAf5Y11rIIKz+mEuM/jNzgtgDdpd4l6ZCjGO99Vat68MG6v5R09/61NfVoGe/6+vITBqg2HLoJevnK3DO+61v3CXPvi7VbpVsSj8XW7b2HUsNPDamrQ3VuKXRzVlF+wYhJVj9TwRcTtT1rbBgyVyqM3BBS190VVS0i7psfRMNHLnwwT2CFpD3L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ckuRzm4Tx+Kbou9/XPYlB9AwjCApTLiMc3qM15pHBEpzW3Q2PNpqXMDcgQA+GhBGW7BsB0q+IcJChFUuh6ktgpQ4Uxhi/FCplZJTC/GiNo376Fr6cikUhnoYB1msfAEEafzeucV/aB/pGBdKzTUPfivW7OPmRl6CInsIcWmAjZMpYrhkzmE/rE4YJg4xm+FM5zfENgQKsQcPoJXnwBxGMVDzNLo8yIUxjnYIXP75VCw4tfFMm7iyOP+JY46oaPIjh31RkO7pN0/u0Uv38QPlJ40rReVN7AJrZZoF0bqfgWgMu2nQLxqwrjTBoZWaQEwGgIFUpWpgGhmVaKNo10GKTCjMWq63XWDHbSsGJDKnH2GufbVOmHE9ThM720mg0yjY48UrLGiB6BXB/sWO1zxw4vnF/iCxd2KR3u4fykatLw4m8m8HwcDFkj1EzLlAIRujiCuAvjIUGy9KFEbz3BUlXIvg9KxfcWvimPdOWESpdlVas7j1GMb7CDL2QlOA2+BnDKODmPsSHZXp33ZFjQGO0OGLExp6Ya18EIfcH4/IMj8IQy/St1BMk8ikQ42a0gjzhIp+CkzIKEbBaaIwJwx6TqkxRrNdWUtnJtpLlyCN+GkMK3tReLOWe0kHLqE6jW+V8xAnohU7GOzzw4/bdO9QcELLdY7DSwqMSaxf4/J0hfHyr0N0FwigUJXHwxVQRjLsUkBE40m7SOkVIWERDiFSAWKkuFyXRlbE+3BAV5Slf18e9pzhdXyuL31GTb6kBFjVdfY/miQO4OMYTz6rdRrdqhWRTaJJAkwSaJNAkgSYJNEmgSQJNEmhQAv8Lix8k/gNx6O4AAAAASUVORK5CYII=", DQ = { class: "left-section" }, OQ = { class: "logo" }, kQ = ["src"], AQ = {
|
|
54924
54942
|
key: 0,
|
|
54925
54943
|
class: "rename-tooltip"
|
|
54926
|
-
},
|
|
54944
|
+
}, jQ = { class: "rename-content" }, MQ = {
|
|
54927
54945
|
key: 0,
|
|
54928
54946
|
class: "tippy-dropdown-menu"
|
|
54929
|
-
},
|
|
54947
|
+
}, NQ = {
|
|
54930
54948
|
key: 1,
|
|
54931
54949
|
class: "bkai-icon bkai-auto-refresh-line"
|
|
54932
|
-
},
|
|
54950
|
+
}, PQ = { class: "right-section" }, FQ = {
|
|
54933
54951
|
key: 4,
|
|
54934
54952
|
"aria-hidden": "true",
|
|
54935
54953
|
class: "header-toolbar-divider"
|
|
54936
|
-
},
|
|
54954
|
+
}, IQ = /* @__PURE__ */ we(/* @__PURE__ */ x({
|
|
54937
54955
|
__name: "index",
|
|
54938
54956
|
props: {
|
|
54939
54957
|
agentName: { default: "" },
|
|
@@ -55099,17 +55117,20 @@ var cK = ["src"], lK = {
|
|
|
55099
55117
|
}), (t, n) => (B(), h("div", {
|
|
55100
55118
|
ref_key: "headerRef",
|
|
55101
55119
|
ref: s,
|
|
55102
|
-
class: P(["ai-header drag-handle", {
|
|
55120
|
+
class: P(["ai-header drag-handle", {
|
|
55121
|
+
draggable: r.draggable,
|
|
55122
|
+
"is-aside-expanded": !r.asideCollapsed
|
|
55123
|
+
}])
|
|
55103
55124
|
}, [
|
|
55104
|
-
g("div",
|
|
55105
|
-
g("div",
|
|
55125
|
+
g("div", DQ, [
|
|
55126
|
+
g("div", OQ, [g("img", {
|
|
55106
55127
|
alt: "logo",
|
|
55107
|
-
src: q(
|
|
55108
|
-
}, null, 8,
|
|
55128
|
+
src: q(EQ)
|
|
55129
|
+
}, null, 8, kQ)]),
|
|
55109
55130
|
g("div", { class: P(["title", { "title-with-tooltip": f.value }]) }, [
|
|
55110
55131
|
v(G(E.value) + " ", 1),
|
|
55111
55132
|
m(" 重命名 tooltip 直接绑定在 title 上 "),
|
|
55112
|
-
f.value ? (B(), h("div",
|
|
55133
|
+
f.value ? (B(), h("div", AQ, [g("div", jQ, [y(q(Hy), {
|
|
55113
55134
|
ref_key: "renameInputRef",
|
|
55114
55135
|
ref: b,
|
|
55115
55136
|
modelValue: _.value,
|
|
@@ -55140,7 +55161,7 @@ var cK = ["src"], lK = {
|
|
|
55140
55161
|
onHidden: n[1] ||= (e) => S.value = !1,
|
|
55141
55162
|
onShown: n[2] ||= (e) => S.value = !0
|
|
55142
55163
|
}, {
|
|
55143
|
-
content: J(() => [S.value ? (B(), h("div",
|
|
55164
|
+
content: J(() => [S.value ? (B(), h("div", MQ, [
|
|
55144
55165
|
r.dropdownMenuConfig?.showRename ? (B(), h("div", {
|
|
55145
55166
|
key: 0,
|
|
55146
55167
|
class: "tippy-menu-item",
|
|
@@ -55155,7 +55176,7 @@ var cK = ["src"], lK = {
|
|
|
55155
55176
|
mode: "spin",
|
|
55156
55177
|
size: "mini",
|
|
55157
55178
|
theme: "primary"
|
|
55158
|
-
})) : (B(), h("i",
|
|
55179
|
+
})) : (B(), h("i", NQ)), g("span", null, G(q(UE)("自动生成命名")), 1)], 2)), [[q(MN), {
|
|
55159
55180
|
content: r.hasSessionContents ? "" : q(UE)("请先发起会话"),
|
|
55160
55181
|
theme: "ai-blueking-tooltip",
|
|
55161
55182
|
arrow: !0,
|
|
@@ -55182,7 +55203,7 @@ var cK = ["src"], lK = {
|
|
|
55182
55203
|
}, 512)) : m("v-if", !0)
|
|
55183
55204
|
]),
|
|
55184
55205
|
U(t.$slots, "headerLeft", {}, void 0, !0),
|
|
55185
|
-
g("div",
|
|
55206
|
+
g("div", PQ, [
|
|
55186
55207
|
m(" 新增会话按钮 "),
|
|
55187
55208
|
r.showNewChatIcon && e.enableChatSession !== !1 ? ge((B(), h("i", {
|
|
55188
55209
|
key: 0,
|
|
@@ -55237,7 +55258,7 @@ var cK = ["src"], lK = {
|
|
|
55237
55258
|
boundary: "parent"
|
|
55238
55259
|
}]]),
|
|
55239
55260
|
m(" 设计稿:关闭与侧栏展开之间有竖线分隔 "),
|
|
55240
|
-
r.showAsideToggle ? (B(), h("span",
|
|
55261
|
+
r.showAsideToggle ? (B(), h("span", FQ)) : m("v-if", !0),
|
|
55241
55262
|
r.showAsideToggle ? ge((B(), h("span", {
|
|
55242
55263
|
key: 5,
|
|
55243
55264
|
class: "bkai-icon aside-toggle",
|
|
@@ -55249,31 +55270,31 @@ var cK = ["src"], lK = {
|
|
|
55249
55270
|
])
|
|
55250
55271
|
], 2));
|
|
55251
55272
|
}
|
|
55252
|
-
}), [["__scopeId", "data-v-
|
|
55273
|
+
}), [["__scopeId", "data-v-03aace06"]]);
|
|
55253
55274
|
//#endregion
|
|
55254
55275
|
//#region src/bootstrap/agent-bootstrap.ts
|
|
55255
|
-
function
|
|
55276
|
+
function LQ(e) {
|
|
55256
55277
|
let t = PE(e);
|
|
55257
55278
|
fetch(t, {
|
|
55258
55279
|
method: "GET",
|
|
55259
55280
|
credentials: "include"
|
|
55260
55281
|
}).catch(() => {});
|
|
55261
55282
|
}
|
|
55262
|
-
async function
|
|
55283
|
+
async function RQ(e, t = {}) {
|
|
55263
55284
|
let { enableModelSelect: n = !0 } = t, r = [e.agent.getAgentInfo(), e.session.getSessions()];
|
|
55264
55285
|
n && typeof e.agent.getLlms == "function" && r.push(e.agent.getLlms().catch((e) => {
|
|
55265
55286
|
console.error("[runAgentBootstrap] Failed to load models:", e);
|
|
55266
55287
|
})), await Promise.all(r);
|
|
55267
55288
|
let i = e.agent.info.value?.saasUrl;
|
|
55268
|
-
i &&
|
|
55289
|
+
i && LQ(i);
|
|
55269
55290
|
}
|
|
55270
55291
|
//#endregion
|
|
55271
55292
|
//#region src/manager/business/model-selection-manager.ts
|
|
55272
|
-
var
|
|
55293
|
+
var zQ = class extends Error {
|
|
55273
55294
|
constructor(e = "当前没有可用模型,无法创建会话") {
|
|
55274
55295
|
super(e), this.name = "ModelUnavailableError";
|
|
55275
55296
|
}
|
|
55276
|
-
},
|
|
55297
|
+
}, BQ = class {
|
|
55277
55298
|
_isLoading;
|
|
55278
55299
|
_models;
|
|
55279
55300
|
_selectedLlmCode;
|
|
@@ -55378,7 +55399,7 @@ var RQ = class extends Error {
|
|
|
55378
55399
|
resolveModelForSession(e) {
|
|
55379
55400
|
if (!this.enabled) return e;
|
|
55380
55401
|
let t = this._models.value;
|
|
55381
|
-
if (t.length === 0) throw new
|
|
55402
|
+
if (t.length === 0) throw new zQ();
|
|
55382
55403
|
return e && t.some((t) => t.llm_code === e) ? e : this.hasValidSelection() ? this._selectedLlmCode.value : this.defaultModelCode();
|
|
55383
55404
|
}
|
|
55384
55405
|
setModels(e) {
|
|
@@ -55394,7 +55415,7 @@ var RQ = class extends Error {
|
|
|
55394
55415
|
}
|
|
55395
55416
|
this._selectedLlmCode.value = this._models.value.find((t) => t.llm_name === e)?.llm_code;
|
|
55396
55417
|
}
|
|
55397
|
-
},
|
|
55418
|
+
}, VQ = class {
|
|
55398
55419
|
_isGenerating;
|
|
55399
55420
|
_isStopLoading;
|
|
55400
55421
|
agentModule;
|
|
@@ -55429,7 +55450,7 @@ var RQ = class extends Error {
|
|
|
55429
55450
|
this.eventEmitter?.emit(e, t);
|
|
55430
55451
|
}
|
|
55431
55452
|
constructor(e, t, n = null, r = null, i = {}, a) {
|
|
55432
|
-
this.agentModule = e, this.messageModule = t, this.sessionModule = n, this.eventEmitter = r, this.config = i, this.modelSelection = a ?? new
|
|
55453
|
+
this.agentModule = e, this.messageModule = t, this.sessionModule = n, this.eventEmitter = r, this.config = i, this.modelSelection = a ?? new BQ(e, n), this._isGenerating = V(!1), this._isStopLoading = V(!1);
|
|
55433
55454
|
}
|
|
55434
55455
|
get isGenerating() {
|
|
55435
55456
|
return this._isGenerating;
|
|
@@ -55597,7 +55618,7 @@ var RQ = class extends Error {
|
|
|
55597
55618
|
this._isStopLoading.value = !1;
|
|
55598
55619
|
}
|
|
55599
55620
|
}
|
|
55600
|
-
},
|
|
55621
|
+
}, HQ = class {
|
|
55601
55622
|
agentModule;
|
|
55602
55623
|
config;
|
|
55603
55624
|
eventEmitter;
|
|
@@ -55611,7 +55632,7 @@ var RQ = class extends Error {
|
|
|
55611
55632
|
return await this.modelSelection.ensureLoaded(), this.modelSelection.resolveModelForSession(e);
|
|
55612
55633
|
}
|
|
55613
55634
|
constructor(e, t = null, n = null, r = {}, i = null, a) {
|
|
55614
|
-
this.sessionModule = e, this.agentModule = t, this.eventEmitter = n, this.config = r, this.messageModule = i, this.modelSelection = a ?? new
|
|
55635
|
+
this.sessionModule = e, this.agentModule = t, this.eventEmitter = n, this.config = r, this.messageModule = i, this.modelSelection = a ?? new BQ(t, e, { enabled: !1 });
|
|
55615
55636
|
}
|
|
55616
55637
|
get currentSession() {
|
|
55617
55638
|
return this.sessionModule.current;
|
|
@@ -55782,7 +55803,7 @@ var RQ = class extends Error {
|
|
|
55782
55803
|
}), e;
|
|
55783
55804
|
}
|
|
55784
55805
|
}
|
|
55785
|
-
},
|
|
55806
|
+
}, UQ = class {
|
|
55786
55807
|
messageModule;
|
|
55787
55808
|
sessionModule;
|
|
55788
55809
|
constructor(e, t) {
|
|
@@ -55799,7 +55820,7 @@ var RQ = class extends Error {
|
|
|
55799
55820
|
userMessageIds: e.map((e) => String(e.id))
|
|
55800
55821
|
};
|
|
55801
55822
|
}
|
|
55802
|
-
},
|
|
55823
|
+
}, WQ = class {
|
|
55803
55824
|
_agentShortcuts;
|
|
55804
55825
|
_effectiveShortcuts;
|
|
55805
55826
|
_propsShortcuts;
|
|
@@ -55856,7 +55877,7 @@ var RQ = class extends Error {
|
|
|
55856
55877
|
setShortcuts(e) {
|
|
55857
55878
|
this._propsShortcuts.value = e;
|
|
55858
55879
|
}
|
|
55859
|
-
},
|
|
55880
|
+
}, GQ = class {
|
|
55860
55881
|
_isCompressed;
|
|
55861
55882
|
_isDraggingOrResizing;
|
|
55862
55883
|
_nimbusMinimized;
|
|
@@ -56075,12 +56096,12 @@ var RQ = class extends Error {
|
|
|
56075
56096
|
};
|
|
56076
56097
|
}
|
|
56077
56098
|
};
|
|
56078
|
-
function
|
|
56079
|
-
return new
|
|
56099
|
+
function KQ(e) {
|
|
56100
|
+
return new GQ(e);
|
|
56080
56101
|
}
|
|
56081
56102
|
//#endregion
|
|
56082
56103
|
//#region src/manager/event-types.ts
|
|
56083
|
-
var
|
|
56104
|
+
var qQ = {
|
|
56084
56105
|
"panel-show": "show",
|
|
56085
56106
|
"panel-hide": "close",
|
|
56086
56107
|
"panel-toggle": null,
|
|
@@ -56130,7 +56151,7 @@ var KQ = {
|
|
|
56130
56151
|
"agent-info-loaded": null,
|
|
56131
56152
|
error: null
|
|
56132
56153
|
};
|
|
56133
|
-
function
|
|
56154
|
+
function JQ(e, t) {
|
|
56134
56155
|
switch (e) {
|
|
56135
56156
|
case "send-message": return [t.content];
|
|
56136
56157
|
case "rename": return [t.newName, t.sessionCode];
|
|
@@ -56161,12 +56182,12 @@ function qQ(e, t) {
|
|
|
56161
56182
|
}
|
|
56162
56183
|
//#endregion
|
|
56163
56184
|
//#region src/components/composables/use-chatbot-init.ts
|
|
56164
|
-
var
|
|
56185
|
+
var YQ = class extends Error {
|
|
56165
56186
|
constructor() {
|
|
56166
56187
|
super("[ChatBot] Initialization was superseded by a newer init"), this.name = "ChatBotInitStaleError";
|
|
56167
56188
|
}
|
|
56168
56189
|
};
|
|
56169
|
-
function
|
|
56190
|
+
function XQ(e) {
|
|
56170
56191
|
let { props: t, emit: n, reportError: r, managerErrorBridge: i } = e, a = W(null), o = W(null), s = W(null), c = W(null), l = V(!1), u = V(!t.chatHelper), f = V(null), p = d(() => l.value), m = () => t.chatHelper ? !t.chatHelper.agent || !t.chatHelper.session || !t.chatHelper.message ? {
|
|
56171
56192
|
valid: !1,
|
|
56172
56193
|
error: "[ChatBot] Invalid chatHelper: missing required modules (agent, session, message)"
|
|
@@ -56202,7 +56223,7 @@ function YQ(e) {
|
|
|
56202
56223
|
}, _ = 0, v = null, y = null, b = null, x = (e) => {
|
|
56203
56224
|
b &&= (e ? b.reject(e) : b.resolve(), null), v = null;
|
|
56204
56225
|
}, S = (e) => {
|
|
56205
|
-
if (e !== _) throw new
|
|
56226
|
+
if (e !== _) throw new YQ();
|
|
56206
56227
|
}, C = async (e) => {
|
|
56207
56228
|
if (t.enableModelSelect !== !1) {
|
|
56208
56229
|
if (t.models?.length) {
|
|
@@ -56216,26 +56237,26 @@ function YQ(e) {
|
|
|
56216
56237
|
l.value = !1, f.value = null, u.value = !t.chatHelper, g(d), S(e), a.value = null, o.value = null, s.value = null, c.value = null;
|
|
56217
56238
|
let p = h();
|
|
56218
56239
|
if (!p) throw f.value ?? /* @__PURE__ */ Error("[ChatBot] Failed to create chatHelper");
|
|
56219
|
-
let m = t.modelSelectionManager ?? new
|
|
56240
|
+
let m = t.modelSelectionManager ?? new BQ(p.agent, p.session, { enabled: t.enableModelSelect !== !1 }), _ = new HQ(p.session, p.agent, i, {
|
|
56220
56241
|
enableChatSession: !0,
|
|
56221
56242
|
autoSwitchToInitialSession: !!t.sessionCode,
|
|
56222
56243
|
loadRecentSessionOnMount: t.autoLoad,
|
|
56223
56244
|
initialSessionCode: t.sessionCode,
|
|
56224
56245
|
alwaysCreateNewSession: t.alwaysCreateNewSession
|
|
56225
|
-
}, p.message, m), v = new
|
|
56246
|
+
}, p.message, m), v = new VQ(p.agent, p.message, p.session, i, {
|
|
56226
56247
|
openingRemark: t.helloText,
|
|
56227
56248
|
predefinedQuestions: t.prompts,
|
|
56228
56249
|
placeholder: t.placeholder,
|
|
56229
56250
|
onSessionRenamed: (e, t) => n("rename", e, t)
|
|
56230
|
-
}, m), y = new
|
|
56251
|
+
}, m), y = new WQ(null, t.shortcuts || []);
|
|
56231
56252
|
a.value = p, o.value = _, s.value = v, c.value = y;
|
|
56232
56253
|
try {
|
|
56233
|
-
u.value ? (await
|
|
56254
|
+
u.value ? (await RQ(p, { enableModelSelect: t.enableModelSelect !== !1 && !t.models?.length }), S(e), await C(m), S(e), await _.loadRecentSession({ skipLoadSessions: !0 }), S(e)) : await C(m), S(e), l.value = !0, n("agent-info-loaded", p);
|
|
56234
56255
|
} catch (t) {
|
|
56235
56256
|
throw S(e), f.value = r(t, "Failed to initialize ChatBot"), t;
|
|
56236
56257
|
}
|
|
56237
56258
|
}, T = () => {
|
|
56238
|
-
x(new
|
|
56259
|
+
x(new YQ()), y = null;
|
|
56239
56260
|
let e = ++_;
|
|
56240
56261
|
v = new Promise((t, n) => {
|
|
56241
56262
|
b = {
|
|
@@ -56266,7 +56287,7 @@ function YQ(e) {
|
|
|
56266
56287
|
}
|
|
56267
56288
|
//#endregion
|
|
56268
56289
|
//#region src/components/composables/use-chatbot-state.ts
|
|
56269
|
-
function
|
|
56290
|
+
function ZQ(e) {
|
|
56270
56291
|
let { props: t, chatHelper: n, chatBusinessManager: r, sessionBusinessManager: i, shortcutManager: a, isStandaloneMode: o, isInitialized: s, selectedShortcut: c } = e, l = d(() => r.value?.isStopLoading.value ? Q.StopLoading : ((t.chatHelper || n.value)?.agent)?.isChatting?.value ? Q.Streaming : Q.Complete), u = d(() => l.value === Q.Streaming ? zG.Disabled : void 0), f = d(() => r.value?.messages.value ?? []), p = d(() => r.value?.isMessagesLoading.value ?? !1);
|
|
56271
56292
|
return {
|
|
56272
56293
|
messageStatus: l,
|
|
@@ -56295,12 +56316,12 @@ function XQ(e) {
|
|
|
56295
56316
|
}
|
|
56296
56317
|
//#endregion
|
|
56297
56318
|
//#region src/components/composables/use-error-reporter.ts
|
|
56298
|
-
var
|
|
56319
|
+
var QQ = new Set([
|
|
56299
56320
|
"chat-error",
|
|
56300
56321
|
"receive-error",
|
|
56301
56322
|
"session-error"
|
|
56302
56323
|
]);
|
|
56303
|
-
function
|
|
56324
|
+
function $Q(e, t = {}) {
|
|
56304
56325
|
let n = /* @__PURE__ */ new WeakSet(), r = (r, i) => {
|
|
56305
56326
|
let a = jE(r);
|
|
56306
56327
|
return n.has(a) ? a : (n.add(a), console.error(i ? `[ChatBot] ${i}:` : "[ChatBot] error:", r), e("error", a), K(t.errorToast) !== !1 && FC({
|
|
@@ -56310,50 +56331,50 @@ function QQ(e, t = {}) {
|
|
|
56310
56331
|
};
|
|
56311
56332
|
return {
|
|
56312
56333
|
managerErrorBridge: { emit: (e, t) => {
|
|
56313
|
-
|
|
56334
|
+
QQ.has(e) && r(t?.error);
|
|
56314
56335
|
} },
|
|
56315
56336
|
reportError: r
|
|
56316
56337
|
};
|
|
56317
56338
|
}
|
|
56318
56339
|
//#endregion
|
|
56319
56340
|
//#region src/components/composables/use-interrupt-resume.ts
|
|
56320
|
-
var $
|
|
56341
|
+
var e$ = {
|
|
56321
56342
|
[UD.ApprovalCancel]: mT.ApprovalCancel,
|
|
56322
56343
|
[UD.FlowNodeRetry]: mT.FlowNodeRetry,
|
|
56323
56344
|
[UD.FlowNodeSkip]: mT.FlowNodeSkip
|
|
56324
56345
|
};
|
|
56325
|
-
function
|
|
56346
|
+
function t$(e) {
|
|
56326
56347
|
return "operation" in e;
|
|
56327
56348
|
}
|
|
56328
|
-
function
|
|
56349
|
+
function n$(e) {
|
|
56329
56350
|
return "interruptId" in e && "reason" in e && e.reason === zD.UserQuestion;
|
|
56330
56351
|
}
|
|
56331
|
-
function
|
|
56352
|
+
function r$(e) {
|
|
56332
56353
|
return e === "cancelled" ? wT.Cancelled : wT.Resolved;
|
|
56333
56354
|
}
|
|
56334
|
-
function
|
|
56355
|
+
function i$(e) {
|
|
56335
56356
|
let t = e?.session.current?.value?.sessionCode;
|
|
56336
56357
|
if (!t) throw Error("[ChatBot] Cannot resume interrupt: no active session");
|
|
56337
56358
|
return t;
|
|
56338
56359
|
}
|
|
56339
|
-
function
|
|
56360
|
+
function a$(e) {
|
|
56340
56361
|
return {
|
|
56341
56362
|
interruptId: e.interruptId,
|
|
56342
|
-
status:
|
|
56363
|
+
status: r$(e.status),
|
|
56343
56364
|
payload: e.payload
|
|
56344
56365
|
};
|
|
56345
56366
|
}
|
|
56346
|
-
function
|
|
56367
|
+
function o$(e) {
|
|
56347
56368
|
let { chatHelper: t, reportError: n } = e, r = async (e) => {
|
|
56348
56369
|
let n = t.value;
|
|
56349
56370
|
if (!n) throw Error("[ChatBot] Cannot resume interrupt: chatHelper not initialized");
|
|
56350
|
-
if (!
|
|
56351
|
-
let r =
|
|
56371
|
+
if (!t$(e)) throw Error("[ChatBot] Unsupported interrupt resume payload");
|
|
56372
|
+
let r = i$(n);
|
|
56352
56373
|
if (e.operation === UD.ApprovalRefresh) {
|
|
56353
56374
|
n.agent.pollResumeSession(r);
|
|
56354
56375
|
return;
|
|
56355
56376
|
}
|
|
56356
|
-
let i = $
|
|
56377
|
+
let i = e$[e.operation];
|
|
56357
56378
|
if (!i) throw Error(`[ChatBot] Unsupported interrupt resume operation: ${e.operation}`);
|
|
56358
56379
|
let a = n.agent;
|
|
56359
56380
|
if (e.operation === UD.ApprovalCancel) {
|
|
@@ -56367,21 +56388,21 @@ function a$(e) {
|
|
|
56367
56388
|
}, i = async (e, n) => {
|
|
56368
56389
|
let r = t.value;
|
|
56369
56390
|
if (!r) throw Error("[ChatBot] Cannot resume interrupt: chatHelper not initialized");
|
|
56370
|
-
let i =
|
|
56391
|
+
let i = i$(r);
|
|
56371
56392
|
await r.agent.streamRequest({
|
|
56372
56393
|
sessionCode: i,
|
|
56373
|
-
resume:
|
|
56394
|
+
resume: a$(e),
|
|
56374
56395
|
...n ? { input: n } : {}
|
|
56375
56396
|
});
|
|
56376
56397
|
};
|
|
56377
56398
|
return {
|
|
56378
56399
|
handleInterruptResume: async (e, t) => {
|
|
56379
56400
|
try {
|
|
56380
|
-
if (
|
|
56401
|
+
if (t$(e)) {
|
|
56381
56402
|
await r(e);
|
|
56382
56403
|
return;
|
|
56383
56404
|
}
|
|
56384
|
-
if (
|
|
56405
|
+
if (n$(e)) {
|
|
56385
56406
|
await i(e);
|
|
56386
56407
|
return;
|
|
56387
56408
|
}
|
|
@@ -56392,7 +56413,7 @@ function a$(e) {
|
|
|
56392
56413
|
},
|
|
56393
56414
|
resumeUserQuestionWithInput: async (e, t) => {
|
|
56394
56415
|
try {
|
|
56395
|
-
if (!t.payload || !
|
|
56416
|
+
if (!t.payload || !n$(t.payload)) throw Error("[ChatBot] Invalid user question resume options");
|
|
56396
56417
|
let n = typeof e == "string" ? e.trim() : "";
|
|
56397
56418
|
if (!n) throw Error("[ChatBot] User question free text input is empty");
|
|
56398
56419
|
await i(t.payload, n);
|
|
@@ -56404,8 +56425,12 @@ function a$(e) {
|
|
|
56404
56425
|
}
|
|
56405
56426
|
//#endregion
|
|
56406
56427
|
//#region src/components/composables/use-message-sender.ts
|
|
56407
|
-
function
|
|
56408
|
-
let { emit: t, chatHelper: n, chatBusinessManager: r, getRequestOptions: i, reportError: a, resumeUserQuestionWithInput: o, selectedShortcut: s, selectedResources: c } = e, l = W([[]]), u = W("")
|
|
56428
|
+
function s$(e) {
|
|
56429
|
+
let { emit: t, chatHelper: n, chatBusinessManager: r, getRequestOptions: i, reportError: a, resumeUserQuestionWithInput: o, selectedShortcut: s, selectedResources: c } = e, l = W([[]]), u = W("");
|
|
56430
|
+
pe(() => n.value?.session.current?.value?.sessionCode, (e, t) => {
|
|
56431
|
+
t && t !== e && (u.value = "");
|
|
56432
|
+
});
|
|
56433
|
+
let d = (e, t) => {
|
|
56409
56434
|
l.value = e, c.value = t;
|
|
56410
56435
|
}, f = async (e, a = {}) => {
|
|
56411
56436
|
if (!r.value || !n.value) throw Error("[ChatBot] Cannot send message: chatBusinessManager not initialized");
|
|
@@ -56469,11 +56494,11 @@ function o$(e) {
|
|
|
56469
56494
|
}
|
|
56470
56495
|
//#endregion
|
|
56471
56496
|
//#region src/components/composables/use-share-selection.ts
|
|
56472
|
-
var
|
|
56473
|
-
function
|
|
56497
|
+
var c$ = (e) => !e || e.id === "share";
|
|
56498
|
+
function l$(e) {
|
|
56474
56499
|
let { emit: t, chatHelper: n, isStandaloneMode: r } = e, i = async (e) => {
|
|
56475
56500
|
if (!(!n.value || e.length === 0)) try {
|
|
56476
|
-
await FE((await new
|
|
56501
|
+
await FE((await new UQ(n.value.message, n.value.session).shareMessages(e)).shareUrl), FC({
|
|
56477
56502
|
message: "分享链接已复制到剪贴板",
|
|
56478
56503
|
theme: "success"
|
|
56479
56504
|
});
|
|
@@ -56485,12 +56510,12 @@ function c$(e) {
|
|
|
56485
56510
|
}
|
|
56486
56511
|
};
|
|
56487
56512
|
return { handleConfirmShare: async (e, n) => {
|
|
56488
|
-
r.value &&
|
|
56513
|
+
r.value && c$(n) && await i(e), t("confirm-share", e, n);
|
|
56489
56514
|
} };
|
|
56490
56515
|
}
|
|
56491
56516
|
//#endregion
|
|
56492
56517
|
//#region src/components/composables/use-shortcuts.ts
|
|
56493
|
-
function
|
|
56518
|
+
function u$(e) {
|
|
56494
56519
|
let { props: t, emit: n, shortcutManager: r, doSendMessage: i, reportError: a, selectedShortcut: o } = e, s = d(() => r.value?.effectiveShortcuts.value ?? []), c = (e, t) => {
|
|
56495
56520
|
let n = e, r;
|
|
56496
56521
|
if (r = n.enable_fill_back && n.fill_back_component_key ? n.fill_back_component_key : n.components?.find((e) => e.fillBack)?.key, r && t) {
|
|
@@ -56584,7 +56609,7 @@ function l$(e) {
|
|
|
56584
56609
|
}
|
|
56585
56610
|
//#endregion
|
|
56586
56611
|
//#region src/components/composables/use-tool-actions.ts
|
|
56587
|
-
function
|
|
56612
|
+
function d$(e) {
|
|
56588
56613
|
let { emit: t, chatHelper: n, chatBusinessManager: r, cite: i, focusInput: a, getShortcutFromMessage: o, buildShortcutProperty: s, getRequestOptions: c, reportError: l, stopGeneration: u } = e, d = async (e) => {
|
|
56589
56614
|
if (!r.value || !n.value) {
|
|
56590
56615
|
console.error("[ChatBot] Cannot delete messages: chatBusinessManager not initialized");
|
|
@@ -56756,7 +56781,7 @@ function u$(e) {
|
|
|
56756
56781
|
}
|
|
56757
56782
|
//#endregion
|
|
56758
56783
|
//#region src/components/chat-bot.vue
|
|
56759
|
-
var
|
|
56784
|
+
var f$ = /* @__PURE__ */ x({
|
|
56760
56785
|
__name: "chat-bot",
|
|
56761
56786
|
props: {
|
|
56762
56787
|
alwaysCreateNewSession: { type: Boolean },
|
|
@@ -56854,15 +56879,15 @@ var d$ = /* @__PURE__ */ x({
|
|
|
56854
56879
|
set: () => {}
|
|
56855
56880
|
}), x = d(() => N.value?.selectedLlmCode.value), S = () => {
|
|
56856
56881
|
p.value?.focus?.();
|
|
56857
|
-
}, { reportError: w, managerErrorBridge: T } =
|
|
56882
|
+
}, { reportError: w, managerErrorBridge: T } = $Q(s, { errorToast: () => r.errorToast }), { chatHelper: E, isStandaloneMode: D, isInitialized: k, isReady: A, initError: j, whenReady: M, chatBusinessManager: N, sessionBusinessManager: L, shortcutManager: R } = XQ({
|
|
56858
56883
|
props: r,
|
|
56859
56884
|
emit: s,
|
|
56860
56885
|
reportError: w,
|
|
56861
56886
|
managerErrorBridge: T
|
|
56862
|
-
}), { handleInterruptResume: ee, resumeUserQuestionWithInput: z } =
|
|
56887
|
+
}), { handleInterruptResume: ee, resumeUserQuestionWithInput: z } = o$({
|
|
56863
56888
|
chatHelper: E,
|
|
56864
56889
|
reportError: w
|
|
56865
|
-
}), { userInput: te, cite: ne, handleUpdateModelValue: re, doSendMessage: ie, handleSendMessage: H, handleUpload: ae, handleArtifactClick: G, handleStopSending: oe, stopGeneration: K } =
|
|
56890
|
+
}), { userInput: te, cite: ne, handleUpdateModelValue: re, doSendMessage: ie, handleSendMessage: H, handleUpload: ae, handleArtifactClick: G, handleStopSending: oe, stopGeneration: K } = s$({
|
|
56866
56891
|
emit: s,
|
|
56867
56892
|
chatHelper: E,
|
|
56868
56893
|
chatBusinessManager: N,
|
|
@@ -56871,7 +56896,7 @@ var d$ = /* @__PURE__ */ x({
|
|
|
56871
56896
|
resumeUserQuestionWithInput: z,
|
|
56872
56897
|
selectedShortcut: v,
|
|
56873
56898
|
selectedResources: g
|
|
56874
|
-
}), { handleSelectShortcut: se, handleCloseShortcut: ce, handleShortcutSubmit: le, selectShortcutWithText: de, getShortcutFromMessage: fe, buildShortcutProperty: me, sendShortcutDirectly: he } =
|
|
56899
|
+
}), { handleSelectShortcut: se, handleCloseShortcut: ce, handleShortcutSubmit: le, selectShortcutWithText: de, getShortcutFromMessage: fe, buildShortcutProperty: me, sendShortcutDirectly: he } = u$({
|
|
56875
56900
|
props: r,
|
|
56876
56901
|
emit: s,
|
|
56877
56902
|
chatHelper: E,
|
|
@@ -56879,7 +56904,7 @@ var d$ = /* @__PURE__ */ x({
|
|
|
56879
56904
|
doSendMessage: ie,
|
|
56880
56905
|
reportError: w,
|
|
56881
56906
|
selectedShortcut: v
|
|
56882
|
-
}), { messageStatus: ge, messageToolsStatus: _e, messages: ve, isMessagesLoading: ye, isGenerating: be, currentSession: xe, isWelcomeState: Se, openingRemark: Ce, effectiveResources: we, effectivePrompts: Te, effectiveSkills: Ee, effectiveSupportUpload: De, chatbotStyle: Oe, filteredShortcuts: ke } =
|
|
56907
|
+
}), { messageStatus: ge, messageToolsStatus: _e, messages: ve, isMessagesLoading: ye, isGenerating: be, currentSession: xe, isWelcomeState: Se, openingRemark: Ce, effectiveResources: we, effectivePrompts: Te, effectiveSkills: Ee, effectiveSupportUpload: De, chatbotStyle: Oe, filteredShortcuts: ke } = ZQ({
|
|
56883
56908
|
props: r,
|
|
56884
56909
|
chatHelper: E,
|
|
56885
56910
|
chatBusinessManager: N,
|
|
@@ -56888,7 +56913,7 @@ var d$ = /* @__PURE__ */ x({
|
|
|
56888
56913
|
isStandaloneMode: D,
|
|
56889
56914
|
isInitialized: k,
|
|
56890
56915
|
selectedShortcut: v
|
|
56891
|
-
}), { handleAgentAction: Ae, handleAgentFeedback: je, handleUserAction: Me, handleUserInputConfirm: Ne, handleUserShortcutConfirm: Pe, handleStopStreaming: Fe } =
|
|
56916
|
+
}), { handleAgentAction: Ae, handleAgentFeedback: je, handleUserAction: Me, handleUserInputConfirm: Ne, handleUserShortcutConfirm: Pe, handleStopStreaming: Fe } = d$({
|
|
56892
56917
|
emit: s,
|
|
56893
56918
|
chatHelper: E,
|
|
56894
56919
|
chatBusinessManager: N,
|
|
@@ -56916,7 +56941,7 @@ var d$ = /* @__PURE__ */ x({
|
|
|
56916
56941
|
pe(() => r.models, (e) => {
|
|
56917
56942
|
r.enableModelSelect === !1 || !N.value || e?.length && N.value.setModels(e);
|
|
56918
56943
|
});
|
|
56919
|
-
let { handleConfirmShare: Ve } =
|
|
56944
|
+
let { handleConfirmShare: Ve } = l$({
|
|
56920
56945
|
emit: s,
|
|
56921
56946
|
chatHelper: E,
|
|
56922
56947
|
isStandaloneMode: D
|
|
@@ -56978,7 +57003,7 @@ var d$ = /* @__PURE__ */ x({
|
|
|
56978
57003
|
{ "welcome-state": q(Se) }
|
|
56979
57004
|
]),
|
|
56980
57005
|
style: I(q(Oe))
|
|
56981
|
-
}, [y(q(
|
|
57006
|
+
}, [y(q(TQ), {
|
|
56982
57007
|
ref_key: "chatContainerRef",
|
|
56983
57008
|
ref: f,
|
|
56984
57009
|
"aside-collapsed": u.value,
|
|
@@ -57041,7 +57066,7 @@ var d$ = /* @__PURE__ */ x({
|
|
|
57041
57066
|
message: n,
|
|
57042
57067
|
messageToolsStatus: r,
|
|
57043
57068
|
onInterruptResume: i
|
|
57044
|
-
}) : (B(), h(o, { key: 1 }, [m(" 否则使用默认的 MessageRender "), y(q(
|
|
57069
|
+
}) : (B(), h(o, { key: 1 }, [m(" 否则使用默认的 MessageRender "), y(q(QZ), {
|
|
57045
57070
|
message: n,
|
|
57046
57071
|
"message-tools-status": r,
|
|
57047
57072
|
"on-action": (e) => q(Me)(e, n),
|
|
@@ -57072,7 +57097,7 @@ var d$ = /* @__PURE__ */ x({
|
|
|
57072
57097
|
});
|
|
57073
57098
|
//#endregion
|
|
57074
57099
|
//#region src/vue2-wrapper.ts
|
|
57075
|
-
function
|
|
57100
|
+
function p$(e, t) {
|
|
57076
57101
|
let { name: n, props: r, emitNames: i, exposeKeys: a, slots: o = [], deepWatchProps: s = [], methods: c = {} } = t, l = Object.keys(r);
|
|
57077
57102
|
return {
|
|
57078
57103
|
name: n,
|
|
@@ -57101,10 +57126,10 @@ function f$(e, t) {
|
|
|
57101
57126
|
t !== void 0 && (a[e] = (e) => t(e));
|
|
57102
57127
|
}
|
|
57103
57128
|
let s = Object.keys(a).length > 0 ? a : void 0;
|
|
57104
|
-
return T(Oc, { prefix:
|
|
57129
|
+
return T(Oc, { prefix: g$() }, { default: () => T(e, {
|
|
57105
57130
|
...n.$attrs,
|
|
57106
57131
|
...r,
|
|
57107
|
-
...
|
|
57132
|
+
...h$(t, i),
|
|
57108
57133
|
ref: (e) => {
|
|
57109
57134
|
n.componentInstance = e;
|
|
57110
57135
|
}
|
|
@@ -57133,28 +57158,28 @@ function f$(e, t) {
|
|
|
57133
57158
|
methods: c
|
|
57134
57159
|
};
|
|
57135
57160
|
}
|
|
57136
|
-
function
|
|
57161
|
+
function m$(e) {
|
|
57137
57162
|
return "on" + e.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("");
|
|
57138
57163
|
}
|
|
57139
|
-
function
|
|
57164
|
+
function h$(e, t) {
|
|
57140
57165
|
let n = {};
|
|
57141
|
-
for (let r of t) n[
|
|
57166
|
+
for (let r of t) n[m$(r)] = (...t) => {
|
|
57142
57167
|
e(r, ...t);
|
|
57143
57168
|
};
|
|
57144
57169
|
return n;
|
|
57145
57170
|
}
|
|
57146
|
-
function
|
|
57171
|
+
function g$() {
|
|
57147
57172
|
return "ai-bk";
|
|
57148
57173
|
}
|
|
57149
57174
|
//#endregion
|
|
57150
57175
|
//#region src/composables/use-chat-bootstrap.ts
|
|
57151
|
-
var
|
|
57176
|
+
var _$ = /* @__PURE__ */ function(e) {
|
|
57152
57177
|
return e.ERROR = "error", e.IDLE = "idle", e.LOADING_AGENT = "loading_agent", e.READY = "ready", e;
|
|
57153
57178
|
}({});
|
|
57154
|
-
function
|
|
57179
|
+
function v$(e) {
|
|
57155
57180
|
let { url: t, requestOptions: n, autoInit: r = !0, protocolCallbacks: i, enableModelSelect: a = !0 } = e, o = K(t);
|
|
57156
57181
|
if (!o) throw Error("[useChatBootstrap] url is required");
|
|
57157
|
-
let s = V(
|
|
57182
|
+
let s = V(_$.IDLE), c = V(null), l = V(!1), u = /* @__PURE__ */ new Map(), f = new TT({
|
|
57158
57183
|
onStart: () => {
|
|
57159
57184
|
i?.onStart?.();
|
|
57160
57185
|
},
|
|
@@ -57172,14 +57197,14 @@ function _$(e) {
|
|
|
57172
57197
|
protocol: f
|
|
57173
57198
|
});
|
|
57174
57199
|
f.injectMessageModule(p.message);
|
|
57175
|
-
let m = d(() => s.value ===
|
|
57200
|
+
let m = d(() => s.value === _$.LOADING_AGENT), h = d(() => s.value === _$.READY), g = d(() => p.agent.info.value ?? null), _ = d(() => g.value?.agentName ?? ""), v = d(() => p.session.current.value ?? null), y = d(() => p.session.list.value ?? []), b = null, x = 0, S = async (e) => {
|
|
57176
57201
|
c.value = null;
|
|
57177
57202
|
try {
|
|
57178
|
-
if (s.value =
|
|
57179
|
-
s.value =
|
|
57203
|
+
if (s.value = _$.LOADING_AGENT, await RQ(p, { enableModelSelect: a }), e !== x) return;
|
|
57204
|
+
s.value = _$.READY, l.value = !0;
|
|
57180
57205
|
} catch (t) {
|
|
57181
57206
|
if (e !== x) return;
|
|
57182
|
-
throw console.error("[useChatBootstrap] Initialization failed:", t), c.value = t, s.value =
|
|
57207
|
+
throw console.error("[useChatBootstrap] Initialization failed:", t), c.value = t, s.value = _$.ERROR, t;
|
|
57183
57208
|
}
|
|
57184
57209
|
}, C = async () => {
|
|
57185
57210
|
if (l.value) return;
|
|
@@ -57189,7 +57214,7 @@ function _$(e) {
|
|
|
57189
57214
|
e === x && (b = null);
|
|
57190
57215
|
}), b;
|
|
57191
57216
|
}, w = () => {
|
|
57192
|
-
x += 1, s.value =
|
|
57217
|
+
x += 1, s.value = _$.IDLE, c.value = null, l.value = !1, b = null;
|
|
57193
57218
|
}, T = async () => {
|
|
57194
57219
|
w(), await C();
|
|
57195
57220
|
}, E = async (e) => {
|
|
@@ -57223,7 +57248,7 @@ function _$(e) {
|
|
|
57223
57248
|
}
|
|
57224
57249
|
//#endregion
|
|
57225
57250
|
//#region src/composables/use-event-bridge.ts
|
|
57226
|
-
function
|
|
57251
|
+
function y$(e) {
|
|
57227
57252
|
return {
|
|
57228
57253
|
sendMessage: (t) => e("send-message", { content: t }),
|
|
57229
57254
|
receiveStart: () => e("receive-start", {}),
|
|
@@ -57244,12 +57269,12 @@ function v$(e) {
|
|
|
57244
57269
|
shareMessages: (t) => e("share-messages", { messageIds: t })
|
|
57245
57270
|
};
|
|
57246
57271
|
}
|
|
57247
|
-
function
|
|
57272
|
+
function b$(e) {
|
|
57248
57273
|
let { componentManager: t, emit: n, debug: r = !1 } = e, i = [], a = () => {
|
|
57249
|
-
for (let [e, a] of Object.entries(
|
|
57274
|
+
for (let [e, a] of Object.entries(qQ)) {
|
|
57250
57275
|
if (a === null) continue;
|
|
57251
57276
|
let o = t.on(e, (t) => {
|
|
57252
|
-
let i =
|
|
57277
|
+
let i = JQ(e, t);
|
|
57253
57278
|
r && console.debug(`[useEventBridge] ${e} -> ${a}`, i), n(a, ...i);
|
|
57254
57279
|
});
|
|
57255
57280
|
i.push(o);
|
|
@@ -57271,17 +57296,17 @@ function y$(e) {
|
|
|
57271
57296
|
}
|
|
57272
57297
|
//#endregion
|
|
57273
57298
|
//#region src/composables/use-ai-blueking-init.ts
|
|
57274
|
-
function
|
|
57275
|
-
let { props: t, emit: n } = e, r = V(), i = V(), a = d(() => PE(t.url ?? "")), o =
|
|
57299
|
+
function x$(e) {
|
|
57300
|
+
let { props: t, emit: n } = e, r = V(), i = V(), a = d(() => PE(t.url ?? "")), o = KQ({
|
|
57276
57301
|
initialPanelVisible: !1,
|
|
57277
57302
|
initialNimbusMinimized: t.defaultMinimize,
|
|
57278
57303
|
enablePopup: t.enablePopup,
|
|
57279
57304
|
enableNimbus: !t.hideNimbus,
|
|
57280
57305
|
enableDraggable: t.draggable
|
|
57281
|
-
}), s = o.panelVisible, c = o.nimbusMinimized, { forwardToManager: l } =
|
|
57306
|
+
}), s = o.panelVisible, c = o.nimbusMinimized, { forwardToManager: l } = b$({
|
|
57282
57307
|
componentManager: o,
|
|
57283
57308
|
emit: n
|
|
57284
|
-
}), u =
|
|
57309
|
+
}), u = y$(l), f = /* @__PURE__ */ new WeakSet(), p = null, m = null, h = () => {
|
|
57285
57310
|
p &&= (clearTimeout(p.timer), null);
|
|
57286
57311
|
}, g = (e) => {
|
|
57287
57312
|
let { apiName: n, error: r, action: i, source: a, shouldToast: s = !0 } = e, c = r instanceof Error ? r.message : String(r), l = r instanceof Error ? r : null;
|
|
@@ -57323,7 +57348,7 @@ function b$(e) {
|
|
|
57323
57348
|
error: e,
|
|
57324
57349
|
source: "business"
|
|
57325
57350
|
});
|
|
57326
|
-
}, { chatHelper: b, isReady: x, error: S, agentInfo: C, agentName: w, currentSession: T, initialize: E } =
|
|
57351
|
+
}, { chatHelper: b, isReady: x, error: S, agentInfo: C, agentName: w, currentSession: T, initialize: E } = v$({
|
|
57327
57352
|
url: a,
|
|
57328
57353
|
requestOptions: () => K(t.requestOptions),
|
|
57329
57354
|
autoInit: !0,
|
|
@@ -57350,7 +57375,7 @@ function b$(e) {
|
|
|
57350
57375
|
D.onError?.((e) => {
|
|
57351
57376
|
_(e);
|
|
57352
57377
|
}, { ignoreErrors: t.ignoreErrors });
|
|
57353
|
-
let O = new
|
|
57378
|
+
let O = new BQ(D.agent, D.session, { enabled: t.enableModelSelect !== !1 }), k = async () => {
|
|
57354
57379
|
if (t.enableModelSelect !== !1) {
|
|
57355
57380
|
if (t.models?.length) {
|
|
57356
57381
|
O.setModels(t.models);
|
|
@@ -57358,11 +57383,11 @@ function b$(e) {
|
|
|
57358
57383
|
}
|
|
57359
57384
|
await O.ensureLoaded();
|
|
57360
57385
|
}
|
|
57361
|
-
}, A = new
|
|
57386
|
+
}, A = new HQ(D.session, D.agent, null, {
|
|
57362
57387
|
enableChatSession: t.enableChatSession,
|
|
57363
57388
|
initialSessionCode: t.initialSessionCode,
|
|
57364
57389
|
alwaysCreateNewSession: t.alwaysCreateNewSession
|
|
57365
|
-
}, D.message, O), j = new
|
|
57390
|
+
}, D.message, O), j = new UQ(D.message, D.session), M = new WQ(null, t.shortcuts || []), N = null, P = () => t.loadRecentSessionOnMount ? (N ||= k().then(() => A.loadRecentSession({ skipLoadSessions: !0 })).finally(() => {
|
|
57366
57391
|
N = null;
|
|
57367
57392
|
}), N) : Promise.resolve(), F = async () => {
|
|
57368
57393
|
await v("init", async () => {
|
|
@@ -57454,7 +57479,7 @@ function b$(e) {
|
|
|
57454
57479
|
}
|
|
57455
57480
|
//#endregion
|
|
57456
57481
|
//#region src/composables/use-ai-selection.ts
|
|
57457
|
-
function
|
|
57482
|
+
function S$(e) {
|
|
57458
57483
|
let { shortcutManager: t, chatBotRef: n, forwardToManager: r, show: i, props: a } = e, o = V(!1), s = V("");
|
|
57459
57484
|
return {
|
|
57460
57485
|
aiSelectionVisible: o,
|
|
@@ -57476,7 +57501,7 @@ function x$(e) {
|
|
|
57476
57501
|
}
|
|
57477
57502
|
//#endregion
|
|
57478
57503
|
//#region src/composables/use-nimbus.ts
|
|
57479
|
-
function
|
|
57504
|
+
function C$(e, t = !1) {
|
|
57480
57505
|
let n = window.innerHeight - 48 - 40, r = window.innerWidth - 48 - 16, i = V(r), a = V(n), o = V(0), s = V(t), c = V(!1), l = V(!1), u = 0, d = (e) => {
|
|
57481
57506
|
e ? i.value = window.innerWidth - 12 : i.value = r;
|
|
57482
57507
|
}, f = (e, t) => {
|
|
@@ -57529,9 +57554,9 @@ function S$(e, t = !1) {
|
|
|
57529
57554
|
}
|
|
57530
57555
|
//#endregion
|
|
57531
57556
|
//#region src/composables/use-panel-container.ts
|
|
57532
|
-
var
|
|
57533
|
-
function
|
|
57534
|
-
let { componentManager: t, chatBotRef: n, forwarders: r, forwardToManager: i, beforeNimbusClick: a, ensureSessionReady: o } = e, s = V(!0), c =
|
|
57557
|
+
var w$ = 560;
|
|
57558
|
+
function T$(e) {
|
|
57559
|
+
let { componentManager: t, chatBotRef: n, forwarders: r, forwardToManager: i, beforeNimbusClick: a, ensureSessionReady: o } = e, s = V(!0), c = w$, l = async (e) => {
|
|
57535
57560
|
t.showPanel(e), o && await o(), e && n.value && await n.value.switchSession(e);
|
|
57536
57561
|
}, u = async (e) => {
|
|
57537
57562
|
await l(e);
|
|
@@ -57558,7 +57583,7 @@ function w$(e) {
|
|
|
57558
57583
|
}, y = (e) => {
|
|
57559
57584
|
t.setCompressed(e);
|
|
57560
57585
|
}, b = (e, t) => {
|
|
57561
|
-
c = Math.max(
|
|
57586
|
+
c = Math.max(w$, t ?? c);
|
|
57562
57587
|
}, x = async () => {
|
|
57563
57588
|
s.value &&= (await t.expandForSidePanel(c, { onBeforeSizeChange: () => {
|
|
57564
57589
|
s.value = !1;
|
|
@@ -57633,7 +57658,7 @@ function w$(e) {
|
|
|
57633
57658
|
}
|
|
57634
57659
|
//#endregion
|
|
57635
57660
|
//#region src/composables/use-session-handlers.ts
|
|
57636
|
-
function
|
|
57661
|
+
function E$(e) {
|
|
57637
57662
|
let { chatHelper: t, sessionBusinessManager: n, chatBotRef: r, forwarders: i, reportSdkError: a, currentSession: o } = e, s = V(""), c = V(!0), l = V(!1), u = V(!1), d = () => OE(t.message.list.value);
|
|
57638
57663
|
return pe(() => o.value, (e) => {
|
|
57639
57664
|
e && (s.value = e.sessionName || "", l.value = (e.sessionContentCount ?? 0) > 0 || d());
|
|
@@ -57645,7 +57670,7 @@ function T$(e) {
|
|
|
57645
57670
|
hasSessionContents: l,
|
|
57646
57671
|
autoGenerateLoading: u,
|
|
57647
57672
|
handleNewChat: async () => {
|
|
57648
|
-
r.value?.exitShareMode(), i.newChat();
|
|
57673
|
+
r.value?.exitShareMode(), r.value?.setCiteText(""), i.newChat();
|
|
57649
57674
|
},
|
|
57650
57675
|
handleNewChatCreated: (e) => {
|
|
57651
57676
|
i.newChatCreated(e);
|
|
@@ -57764,7 +57789,7 @@ function T$(e) {
|
|
|
57764
57789
|
}
|
|
57765
57790
|
//#endregion
|
|
57766
57791
|
//#region src/composables/use-share-handlers.ts
|
|
57767
|
-
function
|
|
57792
|
+
function D$(e) {
|
|
57768
57793
|
let { shareBusinessManager: t, chatBotRef: n, emit: r, forwarders: i, reportSdkError: a } = e, o = V(!1);
|
|
57769
57794
|
return {
|
|
57770
57795
|
isShareLoading: o,
|
|
@@ -57775,7 +57800,7 @@ function E$(e) {
|
|
|
57775
57800
|
n.value?.exitShareMode();
|
|
57776
57801
|
},
|
|
57777
57802
|
handleConfirmShare: async (e, s) => {
|
|
57778
|
-
if (!
|
|
57803
|
+
if (!c$(s)) {
|
|
57779
57804
|
n.value?.exitShareMode(), r("confirm-share", e, s);
|
|
57780
57805
|
return;
|
|
57781
57806
|
}
|
|
@@ -57801,7 +57826,7 @@ function E$(e) {
|
|
|
57801
57826
|
}
|
|
57802
57827
|
//#endregion
|
|
57803
57828
|
//#region src/composables/use-tippy.ts
|
|
57804
|
-
function
|
|
57829
|
+
function O$(e = {}) {
|
|
57805
57830
|
let t = V([]), n = (n, r, i = {}) => {
|
|
57806
57831
|
try {
|
|
57807
57832
|
let a = typeof n == "string" ? document.querySelector(n) : n;
|
|
@@ -57854,7 +57879,7 @@ function D$(e = {}) {
|
|
|
57854
57879
|
}
|
|
57855
57880
|
//#endregion
|
|
57856
57881
|
//#region src/config/prop-defaults.ts
|
|
57857
|
-
var
|
|
57882
|
+
var k$ = {
|
|
57858
57883
|
url: "",
|
|
57859
57884
|
title: "",
|
|
57860
57885
|
extCls: "",
|
|
@@ -57904,31 +57929,31 @@ var O$ = {
|
|
|
57904
57929
|
};
|
|
57905
57930
|
//#endregion
|
|
57906
57931
|
//#region ../../node_modules/.pnpm/vue-draggable-resizable@3.0.0_vue@3.5.32_typescript@5.9.3_/node_modules/vue-draggable-resizable/dist/vue-draggable-resizable.js
|
|
57907
|
-
function
|
|
57932
|
+
function A$(e) {
|
|
57908
57933
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
|
|
57909
57934
|
}
|
|
57910
|
-
function
|
|
57935
|
+
function j$(e, t, n, r = 1) {
|
|
57911
57936
|
let [i, a] = typeof r == "number" ? [r, r] : r;
|
|
57912
57937
|
return [Math.round(t / i / e[0]) * e[0], Math.round(n / a / e[1]) * e[1]];
|
|
57913
57938
|
}
|
|
57914
|
-
function j$(e, t, n) {
|
|
57915
|
-
return e - t - n;
|
|
57916
|
-
}
|
|
57917
57939
|
function M$(e, t, n) {
|
|
57918
57940
|
return e - t - n;
|
|
57919
57941
|
}
|
|
57920
57942
|
function N$(e, t, n) {
|
|
57921
|
-
return
|
|
57943
|
+
return e - t - n;
|
|
57922
57944
|
}
|
|
57923
57945
|
function P$(e, t, n) {
|
|
57946
|
+
return t !== null && e < t ? t : n !== null && n < e ? n : e;
|
|
57947
|
+
}
|
|
57948
|
+
function F$(e, t, n) {
|
|
57924
57949
|
let r = e, i = [
|
|
57925
57950
|
"matches",
|
|
57926
57951
|
"webkitMatchesSelector",
|
|
57927
57952
|
"mozMatchesSelector",
|
|
57928
57953
|
"msMatchesSelector",
|
|
57929
57954
|
"oMatchesSelector"
|
|
57930
|
-
].find((e) =>
|
|
57931
|
-
if (!
|
|
57955
|
+
].find((e) => A$(r[e]));
|
|
57956
|
+
if (!A$(r[i])) return !1;
|
|
57932
57957
|
do {
|
|
57933
57958
|
if (r[i](t)) return !0;
|
|
57934
57959
|
if (r === n) return !1;
|
|
@@ -57936,21 +57961,21 @@ function P$(e, t, n) {
|
|
|
57936
57961
|
} while (r);
|
|
57937
57962
|
return !1;
|
|
57938
57963
|
}
|
|
57939
|
-
function
|
|
57964
|
+
function I$(e) {
|
|
57940
57965
|
let t = window.getComputedStyle(e);
|
|
57941
57966
|
return [parseFloat(t.getPropertyValue("width"), 10), parseFloat(t.getPropertyValue("height"), 10)];
|
|
57942
57967
|
}
|
|
57943
|
-
function
|
|
57968
|
+
function L$(e, t, n) {
|
|
57944
57969
|
e && (e.attachEvent ? e.attachEvent("on" + t, n) : e.addEventListener ? e.addEventListener(t, n, !0) : e["on" + t] = n);
|
|
57945
57970
|
}
|
|
57946
|
-
function
|
|
57971
|
+
function R$(e, t, n) {
|
|
57947
57972
|
e && (e.detachEvent ? e.detachEvent("on" + t, n) : e.removeEventListener ? e.removeEventListener(t, n, !0) : e["on" + t] = null);
|
|
57948
57973
|
}
|
|
57949
|
-
var
|
|
57974
|
+
var z$ = (e, t) => {
|
|
57950
57975
|
let n = e.__vccOpts || e;
|
|
57951
57976
|
for (let [e, r] of t) n[e] = r;
|
|
57952
57977
|
return n;
|
|
57953
|
-
},
|
|
57978
|
+
}, B$ = {
|
|
57954
57979
|
mouse: {
|
|
57955
57980
|
start: "mousedown",
|
|
57956
57981
|
move: "mousemove",
|
|
@@ -57961,17 +57986,17 @@ var R$ = (e, t) => {
|
|
|
57961
57986
|
move: "touchmove",
|
|
57962
57987
|
stop: "touchend"
|
|
57963
57988
|
}
|
|
57964
|
-
},
|
|
57989
|
+
}, V$ = {
|
|
57965
57990
|
userSelect: "none",
|
|
57966
57991
|
MozUserSelect: "none",
|
|
57967
57992
|
WebkitUserSelect: "none",
|
|
57968
57993
|
MsUserSelect: "none"
|
|
57969
|
-
},
|
|
57994
|
+
}, H$ = {
|
|
57970
57995
|
userSelect: "auto",
|
|
57971
57996
|
MozUserSelect: "auto",
|
|
57972
57997
|
WebkitUserSelect: "auto",
|
|
57973
57998
|
MsUserSelect: "auto"
|
|
57974
|
-
},
|
|
57999
|
+
}, U$ = B$.mouse, W$ = {
|
|
57975
58000
|
replace: !0,
|
|
57976
58001
|
name: "vue-draggable-resizable",
|
|
57977
58002
|
props: {
|
|
@@ -58176,11 +58201,11 @@ var R$ = (e, t) => {
|
|
|
58176
58201
|
this.enableNativeDrag || (this.$el.ondragstart = () => !1);
|
|
58177
58202
|
let [e, t] = this.getParentSize();
|
|
58178
58203
|
this.parentWidth = e, this.parentHeight = t;
|
|
58179
|
-
let [n, r] =
|
|
58180
|
-
this.aspectFactor = (this.w === "auto" ? n : this.w) / (this.h === "auto" ? r : this.h), this.width = this.w === "auto" ? n : this.w, this.height = this.h === "auto" ? r : this.h, this.right = this.parentWidth - this.width - this.left, this.bottom = this.parentHeight - this.height - this.top, this.active && this.$emit("activated"),
|
|
58204
|
+
let [n, r] = I$(this.$el);
|
|
58205
|
+
this.aspectFactor = (this.w === "auto" ? n : this.w) / (this.h === "auto" ? r : this.h), this.width = this.w === "auto" ? n : this.w, this.height = this.h === "auto" ? r : this.h, this.right = this.parentWidth - this.width - this.left, this.bottom = this.parentHeight - this.height - this.top, this.active && this.$emit("activated"), L$(document.documentElement, "mousedown", this.deselect), L$(document.documentElement, "touchend touchcancel", this.deselect), L$(window, "resize", this.checkParentSize);
|
|
58181
58206
|
},
|
|
58182
58207
|
beforeUnmount: function() {
|
|
58183
|
-
|
|
58208
|
+
R$(document.documentElement, "mousedown", this.deselect), R$(document.documentElement, "touchstart", this.handleUp), R$(document.documentElement, "mousemove", this.move), R$(document.documentElement, "touchmove", this.move), R$(document.documentElement, "mouseup", this.handleUp), R$(document.documentElement, "touchend touchcancel", this.deselect), R$(window, "resize", this.checkParentSize);
|
|
58184
58209
|
},
|
|
58185
58210
|
methods: {
|
|
58186
58211
|
resetBoundsAndMouseState() {
|
|
@@ -58216,21 +58241,21 @@ var R$ = (e, t) => {
|
|
|
58216
58241
|
return [null, null];
|
|
58217
58242
|
},
|
|
58218
58243
|
elementTouchDown(e) {
|
|
58219
|
-
|
|
58244
|
+
U$ = B$.touch, this.elementDown(e);
|
|
58220
58245
|
},
|
|
58221
58246
|
elementMouseDown(e) {
|
|
58222
|
-
|
|
58247
|
+
U$ = B$.mouse, this.elementDown(e);
|
|
58223
58248
|
},
|
|
58224
58249
|
elementDown(e) {
|
|
58225
58250
|
if (e instanceof MouseEvent && e.button !== 0) return;
|
|
58226
58251
|
let t = e.target || e.srcElement;
|
|
58227
58252
|
if (this.$el.contains(t)) {
|
|
58228
58253
|
if (this.onDragStart(e) === !1) return;
|
|
58229
|
-
if (this.dragHandle && !
|
|
58254
|
+
if (this.dragHandle && !F$(t, this.dragHandle, this.$el) || this.dragCancel && F$(t, this.dragCancel, this.$el)) {
|
|
58230
58255
|
this.dragging = !1;
|
|
58231
58256
|
return;
|
|
58232
58257
|
}
|
|
58233
|
-
this.enabled || (this.enabled = !0, this.$emit("activated"), this.$emit("update:active", !0)), this.draggable && (this.dragEnable = !0), this.mouseClickPosition.mouseX = e.touches ? e.touches[0].pageX : e.pageX, this.mouseClickPosition.mouseY = e.touches ? e.touches[0].pageY : e.pageY, this.mouseClickPosition.left = this.left, this.mouseClickPosition.right = this.right, this.mouseClickPosition.top = this.top, this.mouseClickPosition.bottom = this.bottom, this.parent && (this.bounds = this.calcDragLimits()),
|
|
58258
|
+
this.enabled || (this.enabled = !0, this.$emit("activated"), this.$emit("update:active", !0)), this.draggable && (this.dragEnable = !0), this.mouseClickPosition.mouseX = e.touches ? e.touches[0].pageX : e.pageX, this.mouseClickPosition.mouseY = e.touches ? e.touches[0].pageY : e.pageY, this.mouseClickPosition.left = this.left, this.mouseClickPosition.right = this.right, this.mouseClickPosition.top = this.top, this.mouseClickPosition.bottom = this.bottom, this.parent && (this.bounds = this.calcDragLimits()), L$(document.documentElement, U$.move, this.move), L$(document.documentElement, U$.stop, this.handleUp);
|
|
58234
58259
|
}
|
|
58235
58260
|
},
|
|
58236
58261
|
calcDragLimits() {
|
|
@@ -58247,13 +58272,13 @@ var R$ = (e, t) => {
|
|
|
58247
58272
|
},
|
|
58248
58273
|
deselect(e) {
|
|
58249
58274
|
let t = e.target || e.srcElement, n = RegExp(this.className + "-([trmbl]{2})", "");
|
|
58250
|
-
!this.$el.contains(t) && !n.test(t.className) && (this.enabled && !this.preventDeactivation && (this.enabled = !1, this.$emit("deactivated"), this.$emit("update:active", !1)),
|
|
58275
|
+
!this.$el.contains(t) && !n.test(t.className) && (this.enabled && !this.preventDeactivation && (this.enabled = !1, this.$emit("deactivated"), this.$emit("update:active", !1)), R$(document.documentElement, U$.move, this.handleResize)), this.resetBoundsAndMouseState();
|
|
58251
58276
|
},
|
|
58252
58277
|
handleTouchDown(e, t) {
|
|
58253
|
-
|
|
58278
|
+
U$ = B$.touch, this.handleDown(e, t);
|
|
58254
58279
|
},
|
|
58255
58280
|
handleDown(e, t) {
|
|
58256
|
-
t instanceof MouseEvent && t.which !== 1 || this.onResizeStart(e, t) !== !1 && (t.stopPropagation && t.stopPropagation(), this.lockAspectRatio && !e.includes("m") ? this.handle = "m" + e.substring(1) : this.handle = e, this.resizeEnable = !0, this.mouseClickPosition.mouseX = t.touches ? t.touches[0].pageX : t.pageX, this.mouseClickPosition.mouseY = t.touches ? t.touches[0].pageY : t.pageY, this.mouseClickPosition.left = this.left, this.mouseClickPosition.right = this.right, this.mouseClickPosition.top = this.top, this.mouseClickPosition.bottom = this.bottom, this.bounds = this.calcResizeLimits(),
|
|
58281
|
+
t instanceof MouseEvent && t.which !== 1 || this.onResizeStart(e, t) !== !1 && (t.stopPropagation && t.stopPropagation(), this.lockAspectRatio && !e.includes("m") ? this.handle = "m" + e.substring(1) : this.handle = e, this.resizeEnable = !0, this.mouseClickPosition.mouseX = t.touches ? t.touches[0].pageX : t.pageX, this.mouseClickPosition.mouseY = t.touches ? t.touches[0].pageY : t.pageY, this.mouseClickPosition.left = this.left, this.mouseClickPosition.right = this.right, this.mouseClickPosition.top = this.top, this.mouseClickPosition.bottom = this.bottom, this.bounds = this.calcResizeLimits(), L$(document.documentElement, U$.move, this.handleResize), L$(document.documentElement, U$.stop, this.handleUp));
|
|
58257
58282
|
},
|
|
58258
58283
|
calcResizeLimits() {
|
|
58259
58284
|
let e = this.minW, t = this.minH, n = this.maxW, r = this.maxH, i = this.aspectFactor, [a, o] = this.grid, s = this.width, c = this.height, l = this.left, u = this.top, d = this.right, f = this.bottom;
|
|
@@ -58274,41 +58299,41 @@ var R$ = (e, t) => {
|
|
|
58274
58299
|
this.resizing ? this.handleResize(e) : this.dragEnable && this.handleDrag(e);
|
|
58275
58300
|
},
|
|
58276
58301
|
handleDrag(e) {
|
|
58277
|
-
let t = this.axis, n = this.grid, r = this.bounds, i = this.mouseClickPosition, [a, o] =
|
|
58302
|
+
let t = this.axis, n = this.grid, r = this.bounds, i = this.mouseClickPosition, [a, o] = j$(n, t && t !== "y" ? i.mouseX - (e.touches ? e.touches[0].pageX : e.pageX) : 0, t && t !== "x" ? i.mouseY - (e.touches ? e.touches[0].pageY : e.pageY) : 0, this.scale), s = P$(i.left - a, r.minLeft, r.maxLeft), c = P$(i.top - o, r.minTop, r.maxTop);
|
|
58278
58303
|
if (this.onDrag(s, c) === !1) return;
|
|
58279
|
-
let l =
|
|
58304
|
+
let l = P$(i.right + a, r.minRight, r.maxRight), u = P$(i.bottom + o, r.minBottom, r.maxBottom);
|
|
58280
58305
|
this.left = s, this.top = c, this.right = l, this.bottom = u, this.$emit("dragging", this.left, this.top), this.dragging = !0;
|
|
58281
58306
|
},
|
|
58282
58307
|
moveHorizontally(e) {
|
|
58283
|
-
let [t, n] =
|
|
58308
|
+
let [t, n] = j$(this.grid, e, this.top, 1), r = P$(t, this.bounds.minLeft, this.bounds.maxLeft);
|
|
58284
58309
|
this.left = r, this.right = this.parentWidth - this.width - r;
|
|
58285
58310
|
},
|
|
58286
58311
|
moveVertically(e) {
|
|
58287
|
-
let [t, n] =
|
|
58312
|
+
let [t, n] = j$(this.grid, this.left, e, 1), r = P$(n, this.bounds.minTop, this.bounds.maxTop);
|
|
58288
58313
|
this.top = r, this.bottom = this.parentHeight - this.height - r;
|
|
58289
58314
|
},
|
|
58290
58315
|
handleResize(e) {
|
|
58291
58316
|
let t = this.left, n = this.top, r = this.right, i = this.bottom, a = this.mouseClickPosition, o = this.aspectFactor, s = a.mouseX - (e.touches ? e.touches[0].pageX : e.pageX), c = a.mouseY - (e.touches ? e.touches[0].pageY : e.pageY);
|
|
58292
58317
|
!this.widthTouched && s && (this.widthTouched = !0), !this.heightTouched && c && (this.heightTouched = !0);
|
|
58293
|
-
let [l, u] =
|
|
58294
|
-
this.handle.includes("b") ? (i =
|
|
58295
|
-
let d =
|
|
58318
|
+
let [l, u] = j$(this.grid, s, c, this.scale);
|
|
58319
|
+
this.handle.includes("b") ? (i = P$(a.bottom + u, this.bounds.minBottom, this.bounds.maxBottom), this.lockAspectRatio && this.resizingOnY && (r = this.right - (this.bottom - i) * o)) : this.handle.includes("t") && (n = P$(a.top - u, this.bounds.minTop, this.bounds.maxTop), this.lockAspectRatio && this.resizingOnY && (t = this.left - (this.top - n) * o)), this.handle.includes("r") ? (r = P$(a.right + l, this.bounds.minRight, this.bounds.maxRight), this.lockAspectRatio && this.resizingOnX && (i = this.bottom - (this.right - r) / o)) : this.handle.includes("l") && (t = P$(a.left - l, this.bounds.minLeft, this.bounds.maxLeft), this.lockAspectRatio && this.resizingOnX && (n = this.top - (this.left - t) / o));
|
|
58320
|
+
let d = M$(this.parentWidth, t, r), f = N$(this.parentHeight, n, i);
|
|
58296
58321
|
this.onResize(this.handle, t, n, d, f) !== !1 && (this.left = t, this.top = n, this.right = r, this.bottom = i, this.width = d, this.height = f, this.$emit("resizing", this.left, this.top, this.width, this.height), this.resizing = !0);
|
|
58297
58322
|
},
|
|
58298
58323
|
changeWidth(e) {
|
|
58299
|
-
let [t, n] =
|
|
58324
|
+
let [t, n] = j$(this.grid, e, 0, 1), r = P$(this.parentWidth - t - this.left, this.bounds.minRight, this.bounds.maxRight), i = this.bottom;
|
|
58300
58325
|
this.lockAspectRatio && (i = this.bottom - (this.right - r) / this.aspectFactor);
|
|
58301
|
-
let a =
|
|
58326
|
+
let a = M$(this.parentWidth, this.left, r), o = N$(this.parentHeight, this.top, i);
|
|
58302
58327
|
this.right = r, this.bottom = i, this.width = a, this.height = o;
|
|
58303
58328
|
},
|
|
58304
58329
|
changeHeight(e) {
|
|
58305
|
-
let [t, n] =
|
|
58330
|
+
let [t, n] = j$(this.grid, 0, e, 1), r = P$(this.parentHeight - n - this.top, this.bounds.minBottom, this.bounds.maxBottom), i = this.right;
|
|
58306
58331
|
this.lockAspectRatio && (i = this.right - (this.bottom - r) * this.aspectFactor);
|
|
58307
|
-
let a =
|
|
58332
|
+
let a = M$(this.parentWidth, this.left, i), o = N$(this.parentHeight, this.top, r);
|
|
58308
58333
|
this.right = i, this.bottom = r, this.width = a, this.height = o;
|
|
58309
58334
|
},
|
|
58310
58335
|
handleUp(e) {
|
|
58311
|
-
this.handle = null, this.resetBoundsAndMouseState(), this.dragEnable = !1, this.resizeEnable = !1, this.resizing && (this.resizing = !1, this.$emit("resizeStop", this.left, this.top, this.width, this.height)), this.dragging && (this.dragging = !1, this.$emit("dragStop", this.left, this.top)),
|
|
58336
|
+
this.handle = null, this.resetBoundsAndMouseState(), this.dragEnable = !1, this.resizeEnable = !1, this.resizing && (this.resizing = !1, this.$emit("resizeStop", this.left, this.top, this.width, this.height)), this.dragging && (this.dragging = !1, this.$emit("dragStop", this.left, this.top)), R$(document.documentElement, U$.move, this.handleResize);
|
|
58312
58337
|
}
|
|
58313
58338
|
},
|
|
58314
58339
|
computed: {
|
|
@@ -58318,7 +58343,7 @@ var R$ = (e, t) => {
|
|
|
58318
58343
|
width: this.computedWidth,
|
|
58319
58344
|
height: this.computedHeight,
|
|
58320
58345
|
zIndex: this.zIndex,
|
|
58321
|
-
...this.dragging && this.disableUserSelect ?
|
|
58346
|
+
...this.dragging && this.disableUserSelect ? V$ : H$
|
|
58322
58347
|
};
|
|
58323
58348
|
},
|
|
58324
58349
|
actualHandles() {
|
|
@@ -58380,8 +58405,8 @@ var R$ = (e, t) => {
|
|
|
58380
58405
|
this.resizing || this.dragging || (this.parent && (this.bounds = this.calcResizeLimits()), this.changeHeight(e));
|
|
58381
58406
|
}
|
|
58382
58407
|
}
|
|
58383
|
-
},
|
|
58384
|
-
function
|
|
58408
|
+
}, G$ = ["onMousedown", "onTouchstart"];
|
|
58409
|
+
function K$(e, t, n, r, i, a) {
|
|
58385
58410
|
return B(), h("div", {
|
|
58386
58411
|
style: I(a.style),
|
|
58387
58412
|
class: P([{
|
|
@@ -58399,17 +58424,17 @@ function G$(e, t, n, r, i, a) {
|
|
|
58399
58424
|
style: I({ display: e.enabled ? "block" : "none" }),
|
|
58400
58425
|
onMousedown: ve((e) => a.handleDown(t, e), ["stop", "prevent"]),
|
|
58401
58426
|
onTouchstart: ve((e) => a.handleTouchDown(t, e), ["stop", "prevent"])
|
|
58402
|
-
}, [U(e.$slots, t)], 46,
|
|
58427
|
+
}, [U(e.$slots, t)], 46, G$))), 128)), U(e.$slots, "default")], 38);
|
|
58403
58428
|
}
|
|
58404
|
-
var
|
|
58405
|
-
function
|
|
58406
|
-
|
|
58429
|
+
var q$ = /* @__PURE__ */ z$(W$, [["render", K$]]);
|
|
58430
|
+
function J$(e) {
|
|
58431
|
+
J$.installed || (J$.installed = !0, e.component("VueDraggableResizable", q$));
|
|
58407
58432
|
}
|
|
58408
|
-
var
|
|
58409
|
-
typeof window < "u" ?
|
|
58433
|
+
var Y$ = { install: J$ }, X$ = null;
|
|
58434
|
+
typeof window < "u" ? X$ = window.Vue : typeof global < "u" && (X$ = global.Vue), X$ && X$.use(Y$);
|
|
58410
58435
|
//#endregion
|
|
58411
58436
|
//#region src/containers/use-draggable.ts
|
|
58412
|
-
function
|
|
58437
|
+
function Z$(e = {}, t) {
|
|
58413
58438
|
let n = e.initWidth || 400, r = e.minWidth || 400, i = e.minHeight || 400, a = e.maxWidthPercent || 40, o = e.compressedHeight || 800, s = e.compressedPadding === void 0 ? 0 : e.compressedPadding, c = V(e.defaultLeft === void 0 ? window.innerWidth - n : e.defaultLeft), l = V(e.defaultTop === void 0 ? 0 : e.defaultTop), u = V(e.defaultHeight === void 0 ? window.innerHeight - (e.defaultTop === void 0 ? 0 : e.defaultTop) : e.defaultHeight), d = V(n), f = V(l.value), p = V(c.value), m = V(d.value), h = V(u.value), g = V(Math.max(window.innerWidth * (a / 100), m.value)), _ = V(!1), v = V(0), y = null, b = null, x = 0, S = 0, C = V(!1), w = (e) => {
|
|
58414
58439
|
let t = window.innerWidth, n = { ...e };
|
|
58415
58440
|
return n.width > t && (n.width = t), n.x + n.width > t && (n.x = t - n.width), n.x < 0 && (n.x = 0), n;
|
|
@@ -58520,7 +58545,7 @@ function X$(e = {}, t) {
|
|
|
58520
58545
|
}
|
|
58521
58546
|
//#endregion
|
|
58522
58547
|
//#region src/containers/draggable-container.vue?vue&type=script&setup=true&lang.ts
|
|
58523
|
-
var
|
|
58548
|
+
var Q$ = { class: "draggable-container-content" }, $$ = /* @__PURE__ */ we(/* @__PURE__ */ x({
|
|
58524
58549
|
__name: "draggable-container",
|
|
58525
58550
|
props: {
|
|
58526
58551
|
className: { default: "" },
|
|
@@ -58557,7 +58582,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
58557
58582
|
"compression-change"
|
|
58558
58583
|
],
|
|
58559
58584
|
setup(e, { expose: t, emit: n }) {
|
|
58560
|
-
let r = e, i = n, a = V(!1), { minWidth: o, minHeight: s, maxWidth: c, top: l, left: u, width: f, height: m, isCompressed: h, isSidePanelExpanded: _, handleDragging: v, handleResizing: y, handleDragStop: b, handleResizeStop: x, toggleCompression: S, updatePosition: C, updateSize: w, updatePositionAndSize: T, expandForSidePanel: E, collapseSidePanel: D, abortSidePanelSequence: O } =
|
|
58585
|
+
let r = e, i = n, a = V(!1), { minWidth: o, minHeight: s, maxWidth: c, top: l, left: u, width: f, height: m, isCompressed: h, isSidePanelExpanded: _, handleDragging: v, handleResizing: y, handleDragStop: b, handleResizeStop: x, toggleCompression: S, updatePosition: C, updateSize: w, updatePositionAndSize: T, expandForSidePanel: E, collapseSidePanel: D, abortSidePanelSequence: O } = Z$({
|
|
58561
58586
|
initWidth: r.defaultWidth,
|
|
58562
58587
|
minWidth: r.minWidth,
|
|
58563
58588
|
minHeight: r.minHeight,
|
|
@@ -58607,7 +58632,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
58607
58632
|
positionAndSize: A,
|
|
58608
58633
|
isCompressed: h,
|
|
58609
58634
|
isSidePanelExpanded: _
|
|
58610
|
-
}), (e, t) => ge((B(), p(q(
|
|
58635
|
+
}), (e, t) => ge((B(), p(q(q$), {
|
|
58611
58636
|
ref: "draggableRef",
|
|
58612
58637
|
active: r.visible,
|
|
58613
58638
|
class: P([
|
|
@@ -58634,7 +58659,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
58634
58659
|
onResizeStop: R,
|
|
58635
58660
|
onResizing: F
|
|
58636
58661
|
}, {
|
|
58637
|
-
default: J(() => [g("div",
|
|
58662
|
+
default: J(() => [g("div", Q$, [U(e.$slots, "default", {}, void 0, !0)])]),
|
|
58638
58663
|
_: 3
|
|
58639
58664
|
}, 8, [
|
|
58640
58665
|
"active",
|
|
@@ -58652,11 +58677,11 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
58652
58677
|
"y"
|
|
58653
58678
|
])), [[fe, r.visible]]);
|
|
58654
58679
|
}
|
|
58655
|
-
}), [["__scopeId", "data-v-7417a71b"]]),
|
|
58680
|
+
}), [["__scopeId", "data-v-7417a71b"]]), e1 = { class: "nimbus-bkai-wrapper" }, t1 = [
|
|
58656
58681
|
"width",
|
|
58657
58682
|
"height",
|
|
58658
58683
|
"src"
|
|
58659
|
-
],
|
|
58684
|
+
], n1 = /* @__PURE__ */ we(/* @__PURE__ */ x({
|
|
58660
58685
|
name: "NimbusButton",
|
|
58661
58686
|
__name: "nimbus",
|
|
58662
58687
|
props: {
|
|
@@ -58708,11 +58733,11 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
58708
58733
|
right: -6
|
|
58709
58734
|
}
|
|
58710
58735
|
}
|
|
58711
|
-
}, a = d(() => i[n.size]), o = V(null), s = V(null), { nimbusLeft: c, nimbusTop: l, isMinimize: u, handleClick: f, handleMinimize: m, handleDragging: h, handleMouseEnter: _, handleMouseLeave: v, handleMouseDown: y, handleMouseUp: b } =
|
|
58736
|
+
}, a = d(() => i[n.size]), o = V(null), s = V(null), { nimbusLeft: c, nimbusTop: l, isMinimize: u, handleClick: f, handleMinimize: m, handleDragging: h, handleMouseEnter: _, handleMouseLeave: v, handleMouseDown: y, handleMouseUp: b } = C$(r, n.isMinimize);
|
|
58712
58737
|
pe(u, (e) => {
|
|
58713
58738
|
r("update:isMinimize", e);
|
|
58714
58739
|
});
|
|
58715
|
-
let x = d(() => u.value ? UE("恢复默认大小") : UE("最小化,将缩成锚点")), { createTooltip: S, destroyAll: C } =
|
|
58740
|
+
let x = d(() => u.value ? UE("恢复默认大小") : UE("最小化,将缩成锚点")), { createTooltip: S, destroyAll: C } = O$({
|
|
58716
58741
|
theme: "ai-blueking",
|
|
58717
58742
|
delay: [0, 0]
|
|
58718
58743
|
}), w = () => {
|
|
@@ -58732,7 +58757,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
58732
58757
|
}), window.addEventListener("resize", w);
|
|
58733
58758
|
}), L(() => {
|
|
58734
58759
|
window.removeEventListener("resize", w);
|
|
58735
|
-
}), (t, n) => (B(), p(q(
|
|
58760
|
+
}), (t, n) => (B(), p(q(q$), {
|
|
58736
58761
|
active: !e.isPanelShow,
|
|
58737
58762
|
axis: "y",
|
|
58738
58763
|
draggable: !0,
|
|
@@ -58754,12 +58779,12 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
58754
58779
|
onMouseenter: n[3] ||= (...e) => q(_) && q(_)(...e),
|
|
58755
58780
|
onMouseleave: n[4] ||= (...e) => q(v) && q(v)(...e),
|
|
58756
58781
|
onMouseup: n[5] ||= (...e) => q(b) && q(b)(...e)
|
|
58757
|
-
}, [g("div",
|
|
58782
|
+
}, [g("div", e1, [g("img", {
|
|
58758
58783
|
width: a.value.img,
|
|
58759
58784
|
height: a.value.img,
|
|
58760
|
-
src: q(
|
|
58785
|
+
src: q(EQ),
|
|
58761
58786
|
alt: "nimbus"
|
|
58762
|
-
}, null, 8,
|
|
58787
|
+
}, null, 8, t1)]), g("i", {
|
|
58763
58788
|
ref_key: "minimizeButtonRef",
|
|
58764
58789
|
ref: s,
|
|
58765
58790
|
class: P(["nimbus-mini bkai-icon", q(u) ? "bkai-yinyong" : "bkai-minus-line"]),
|
|
@@ -58775,7 +58800,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
58775
58800
|
"onDragging"
|
|
58776
58801
|
]));
|
|
58777
58802
|
}
|
|
58778
|
-
}), [["__scopeId", "data-v-26b6f3ea"]]),
|
|
58803
|
+
}), [["__scopeId", "data-v-26b6f3ea"]]), r1 = /* @__PURE__ */ we(/* @__PURE__ */ x({
|
|
58779
58804
|
inheritAttrs: !1,
|
|
58780
58805
|
__name: "ai-blueking",
|
|
58781
58806
|
props: /* @__PURE__ */ A({
|
|
@@ -58832,7 +58857,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
58832
58857
|
resizeProps: {},
|
|
58833
58858
|
size: {},
|
|
58834
58859
|
timezone: {}
|
|
58835
|
-
},
|
|
58860
|
+
}, k$),
|
|
58836
58861
|
emits: [
|
|
58837
58862
|
"show",
|
|
58838
58863
|
"close",
|
|
@@ -58861,30 +58886,30 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
58861
58886
|
"share"
|
|
58862
58887
|
],
|
|
58863
58888
|
setup(e, { expose: t, emit: n }) {
|
|
58864
|
-
let r = e, i = n, a = se(), { chatHelper: o, componentManager: c, modelSelection: l, sessionBusinessManager: u, shareBusinessManager: f, shortcutManager: h, forwarders: v, forwardToManager: b, chatBotRef: x, draggableContainerRef: S, panelVisible: w, nimbusMinimized: T, normalizedUrl: E, agentName: D, currentSession: k, isCompressed: A, isWelcomeState: j, messageToolsTippyOptions: M, agentResources: N, agentPrompts: L, agentSkills: R, handleError: ee, reportSdkError: z, ensureSessionReady: te, updateAgentInfo: ne } =
|
|
58889
|
+
let r = e, i = n, a = se(), { chatHelper: o, componentManager: c, modelSelection: l, sessionBusinessManager: u, shareBusinessManager: f, shortcutManager: h, forwarders: v, forwardToManager: b, chatBotRef: x, draggableContainerRef: S, panelVisible: w, nimbusMinimized: T, normalizedUrl: E, agentName: D, currentSession: k, isCompressed: A, isWelcomeState: j, messageToolsTippyOptions: M, agentResources: N, agentPrompts: L, agentSkills: R, handleError: ee, reportSdkError: z, ensureSessionReady: te, updateAgentInfo: ne } = x$({
|
|
58865
58890
|
props: r,
|
|
58866
58891
|
emit: i
|
|
58867
|
-
}), re = d(() => l.selectedLlmCode.value), { show: V, hide: ie, handleShow: H, handleClose: ae, handleNimbusClick: W, handleDragging: G, handleResizing: oe, handleDragStop: K, handleResizeStop: ce, handleToggleCompression: le, handleCompressionChange: ue, handleExecutionPanelChange: de, handleToggleAside: fe, handleAsideCollapsedUpdate: pe, asideCollapsed: me, sendMessage: he, handleReceiveStart: ge, handleReceiveText: _e, handleReceiveEnd: ve, handleStop: ye, stopGeneration: be, setCiteText: xe, focusInput: Se, selectShortcut: Ce, sendShortcut: we, getChatHelper: Te, updatePosition: Ee, updateSize: De, updatePositionAndSize: Oe, handleShortcutClick: ke } =
|
|
58892
|
+
}), re = d(() => l.selectedLlmCode.value), { show: V, hide: ie, handleShow: H, handleClose: ae, handleNimbusClick: W, handleDragging: G, handleResizing: oe, handleDragStop: K, handleResizeStop: ce, handleToggleCompression: le, handleCompressionChange: ue, handleExecutionPanelChange: de, handleToggleAside: fe, handleAsideCollapsedUpdate: pe, asideCollapsed: me, sendMessage: he, handleReceiveStart: ge, handleReceiveText: _e, handleReceiveEnd: ve, handleStop: ye, stopGeneration: be, setCiteText: xe, focusInput: Se, selectShortcut: Ce, sendShortcut: we, getChatHelper: Te, updatePosition: Ee, updateSize: De, updatePositionAndSize: Oe, handleShortcutClick: ke } = T$({
|
|
58868
58893
|
componentManager: c,
|
|
58869
58894
|
chatBotRef: x,
|
|
58870
58895
|
forwarders: v,
|
|
58871
58896
|
forwardToManager: b,
|
|
58872
58897
|
beforeNimbusClick: r.beforeNimbusClick,
|
|
58873
58898
|
ensureSessionReady: te
|
|
58874
|
-
}), { sessionName: Ae, hasPermission: je, hasSessionContents: Me, autoGenerateLoading: Ne, handleNewChat: Pe, handleNewChatCreated: Fe, handleHistoryClick: Ie, handleHistorySessionSwitch: Le, handleHistorySessionDelete: Re, handleHistorySessionRename: ze, handleAutoGenerateName: Be, handleHelpClick: Ve, handleRename: He, handleSessionRenamed: Ue, handleSessionSwitched: We, addNewSession: Ge, switchToSession: Ke, updateSessionName: qe } =
|
|
58899
|
+
}), { sessionName: Ae, hasPermission: je, hasSessionContents: Me, autoGenerateLoading: Ne, handleNewChat: Pe, handleNewChatCreated: Fe, handleHistoryClick: Ie, handleHistorySessionSwitch: Le, handleHistorySessionDelete: Re, handleHistorySessionRename: ze, handleAutoGenerateName: Be, handleHelpClick: Ve, handleRename: He, handleSessionRenamed: Ue, handleSessionSwitched: We, addNewSession: Ge, switchToSession: Ke, updateSessionName: qe } = E$({
|
|
58875
58900
|
chatHelper: o,
|
|
58876
58901
|
sessionBusinessManager: u,
|
|
58877
58902
|
chatBotRef: x,
|
|
58878
58903
|
forwarders: v,
|
|
58879
58904
|
reportSdkError: z,
|
|
58880
58905
|
currentSession: k
|
|
58881
|
-
}), { isShareLoading: Je, handleShare: Ye, handleCancelShare: Xe, handleConfirmShare: Ze } =
|
|
58906
|
+
}), { isShareLoading: Je, handleShare: Ye, handleCancelShare: Xe, handleConfirmShare: Ze } = D$({
|
|
58882
58907
|
shareBusinessManager: f,
|
|
58883
58908
|
chatBotRef: x,
|
|
58884
58909
|
emit: (e, t, n) => i(e, t, n),
|
|
58885
58910
|
forwarders: v,
|
|
58886
58911
|
reportSdkError: z
|
|
58887
|
-
}), { aiSelectionVisible: Qe, filteredPopupShortcuts: $e, handleSelectionChange: et, handleAiSelectionShortcut: tt } =
|
|
58912
|
+
}), { aiSelectionVisible: Qe, filteredPopupShortcuts: $e, handleSelectionChange: et, handleAiSelectionShortcut: tt } = S$({
|
|
58888
58913
|
shortcutManager: h,
|
|
58889
58914
|
chatBotRef: x,
|
|
58890
58915
|
forwardToManager: b,
|
|
@@ -58918,7 +58943,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
58918
58943
|
q(a).class
|
|
58919
58944
|
]) }, [
|
|
58920
58945
|
m(" 可拖拽容器 "),
|
|
58921
|
-
y(q(
|
|
58946
|
+
y(q($$), {
|
|
58922
58947
|
ref_key: "draggableContainerRef",
|
|
58923
58948
|
ref: S,
|
|
58924
58949
|
"compressed-padding": r.miniPadding,
|
|
@@ -58939,7 +58964,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
58939
58964
|
}, {
|
|
58940
58965
|
default: J(() => [g("div", { class: P(["ai-blueking-panel", { "has-messages": !q(j) }]) }, [
|
|
58941
58966
|
m(" 独立的 Header 组件 "),
|
|
58942
|
-
r.hideHeader ? m("v-if", !0) : (B(), p(
|
|
58967
|
+
r.hideHeader ? m("v-if", !0) : (B(), p(IQ, {
|
|
58943
58968
|
key: 0,
|
|
58944
58969
|
"agent-name": q(D),
|
|
58945
58970
|
"aside-collapsed": q(me),
|
|
@@ -58979,7 +59004,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
58979
59004
|
key: "0"
|
|
58980
59005
|
} : void 0]), 1032, /* @__PURE__ */ "agent-name.aside-collapsed.auto-generate-loading.chat-helper.draggable.dropdown-menu-config.enable-chat-session.has-permission.has-session-contents.is-compression-height.render-mode.selected-llm-code.session-business-manager.session-name.show-compression-icon.show-history-icon.show-more-icon.show-new-chat-icon.title.onAutoGenerateName.onClose.onHelpClick.onHistoryClick.onHistorySessionDelete.onHistorySessionRename.onHistorySessionSwitch.onNewChat.onNewChatCreated.onRename.onShare.onToggleAside.onToggleCompression".split("."))),
|
|
58981
59006
|
m(" ChatBot 核心组件(仅聊天区域) "),
|
|
58982
|
-
y(
|
|
59007
|
+
y(f$, {
|
|
58983
59008
|
ref_key: "chatBotRef",
|
|
58984
59009
|
ref: x,
|
|
58985
59010
|
"always-create-new-session": r.alwaysCreateNewSession,
|
|
@@ -59067,7 +59092,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
59067
59092
|
"onResizing"
|
|
59068
59093
|
]),
|
|
59069
59094
|
m(" Nimbus 悬浮球 "),
|
|
59070
|
-
r.hideNimbus ? m("v-if", !0) : (B(), p(
|
|
59095
|
+
r.hideNimbus ? m("v-if", !0) : (B(), p(n1, {
|
|
59071
59096
|
key: 0,
|
|
59072
59097
|
"is-minimize": q(T),
|
|
59073
59098
|
"onUpdate:isMinimize": t[5] ||= (e) => O(T) ? T.value = e : null,
|
|
@@ -59102,7 +59127,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
59102
59127
|
])) : m("v-if", !0)
|
|
59103
59128
|
], 2)], 8, ["to"]));
|
|
59104
59129
|
}
|
|
59105
|
-
}), [["__scopeId", "data-v-133cd210"]]),
|
|
59130
|
+
}), [["__scopeId", "data-v-133cd210"]]), i1 = [
|
|
59106
59131
|
"close",
|
|
59107
59132
|
"show",
|
|
59108
59133
|
"stop",
|
|
@@ -59128,7 +59153,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
59128
59153
|
"help-click",
|
|
59129
59154
|
"rename",
|
|
59130
59155
|
"share"
|
|
59131
|
-
],
|
|
59156
|
+
], a1 = [
|
|
59132
59157
|
"show",
|
|
59133
59158
|
"handleShow",
|
|
59134
59159
|
"handleClose",
|
|
@@ -59146,7 +59171,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
59146
59171
|
"getChatHelper",
|
|
59147
59172
|
"selectShortcut",
|
|
59148
59173
|
"sendShortcut"
|
|
59149
|
-
],
|
|
59174
|
+
], o1 = p$(r1, {
|
|
59150
59175
|
name: "AIBluekingV2",
|
|
59151
59176
|
props: {
|
|
59152
59177
|
extCls: {
|
|
@@ -59346,8 +59371,8 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
59346
59371
|
default: void 0
|
|
59347
59372
|
}
|
|
59348
59373
|
},
|
|
59349
|
-
emitNames: [...
|
|
59350
|
-
exposeKeys: [...
|
|
59374
|
+
emitNames: [...i1],
|
|
59375
|
+
exposeKeys: [...a1],
|
|
59351
59376
|
slots: [
|
|
59352
59377
|
"codeHeader",
|
|
59353
59378
|
"headerLeft",
|
|
@@ -59412,7 +59437,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
59412
59437
|
return console.warn("AIBluekingV2: sendShortcut method not ready"), Promise.resolve();
|
|
59413
59438
|
}
|
|
59414
59439
|
}
|
|
59415
|
-
}),
|
|
59440
|
+
}), s1 = [
|
|
59416
59441
|
"send-message",
|
|
59417
59442
|
"error",
|
|
59418
59443
|
"stop",
|
|
@@ -59430,7 +59455,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
59430
59455
|
"feedback",
|
|
59431
59456
|
"agent-action",
|
|
59432
59457
|
"rename"
|
|
59433
|
-
],
|
|
59458
|
+
], c1 = [
|
|
59434
59459
|
"sendMessage",
|
|
59435
59460
|
"stopGeneration",
|
|
59436
59461
|
"focusInput",
|
|
@@ -59446,7 +59471,7 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
59446
59471
|
"messages",
|
|
59447
59472
|
"isReady",
|
|
59448
59473
|
"whenReady"
|
|
59449
|
-
],
|
|
59474
|
+
], l1 = p$(f$, {
|
|
59450
59475
|
name: "ChatBotV2",
|
|
59451
59476
|
props: {
|
|
59452
59477
|
chatHelper: {
|
|
@@ -59558,8 +59583,8 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
59558
59583
|
default: !0
|
|
59559
59584
|
}
|
|
59560
59585
|
},
|
|
59561
|
-
emitNames: [...
|
|
59562
|
-
exposeKeys: [...
|
|
59586
|
+
emitNames: [...s1],
|
|
59587
|
+
exposeKeys: [...c1],
|
|
59563
59588
|
slots: [
|
|
59564
59589
|
"codeHeader",
|
|
59565
59590
|
"message",
|
|
@@ -59572,4 +59597,4 @@ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @_
|
|
|
59572
59597
|
]
|
|
59573
59598
|
});
|
|
59574
59599
|
//#endregion
|
|
59575
|
-
export {
|
|
59600
|
+
export { l1 as ChatBotV2, o1 as default, w as h };
|