@blueking/ai-blueking 2.1.4-dev.3 → 2.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/standalone/index.es.min.js +17 -16
- package/dist/standalone/index.iife.min.js +3 -3
- package/dist/standalone/index.umd.min.js +3 -3
- package/dist/vue2/index.es.min.js +17 -16
- package/dist/vue2/index.iife.min.js +3 -3
- package/dist/vue2/index.umd.min.js +3 -3
- package/dist/vue3/index.iife.min.js +3 -3
- package/package.json +2 -2
|
@@ -27555,7 +27555,7 @@ var ER = () => qn(CR), DR = (() => {
|
|
|
27555
27555
|
checked: !1,
|
|
27556
27556
|
uid: Sc(),
|
|
27557
27557
|
pause: n?.some((e) => e.property?.extra?.pause) ?? !1
|
|
27558
|
-
}), e.messages.value.at(-1)?.role === kc.User && r.push({
|
|
27558
|
+
}), e.messages.value.at(-1)?.role === kc.User && tn(e.renderMode) !== Hc.Share && r.push({
|
|
27559
27559
|
messages: [{
|
|
27560
27560
|
role: kc.Loading,
|
|
27561
27561
|
content: "",
|
|
@@ -54351,12 +54351,12 @@ var CZ = ["src"], wZ = {
|
|
|
54351
54351
|
}),
|
|
54352
54352
|
emits: /* @__PURE__ */ Si(["stopStreaming"], ["update:selectedUserMessages"]),
|
|
54353
54353
|
setup(e) {
|
|
54354
|
-
let t = e, n = Hi(e, "selectedUserMessages"), r = Nr("messageContainerRef"), i = Nr("messageContainerBottomRef"), { toScrollBottom: a, debouncedShowScrollBottomBtn: o } = xR(r, i), { copy: s } = vR(), c = J(() => Lc.filter((e) => t.renderMode !== Hc.Test || e.id !== "share")), l = (e) => {
|
|
54354
|
+
let t = e, n = Hi(e, "selectedUserMessages"), r = Nr("messageContainerRef"), i = Nr("messageContainerBottomRef"), { toScrollBottom: a, debouncedShowScrollBottomBtn: o } = xR(r, i), { copy: s } = vR(), c = J(() => Lc.filter((e) => t.renderMode !== Hc.Test || e.id !== "share")), l = J(() => t.renderMode === Hc.Share ? t.messageGroups.filter((e) => e.type !== kc.Loading) : t.messageGroups), u = (e) => {
|
|
54355
54355
|
e.messages?.at(-1)?.role !== kc.Interrupt && (e.isHover = !0);
|
|
54356
|
-
},
|
|
54356
|
+
}, d = (e, t) => {
|
|
54357
54357
|
let n = t.toElement ?? t.relatedTarget;
|
|
54358
54358
|
n instanceof Element && n.classList.contains("ai-user-feedback") || (e.isHover = !1);
|
|
54359
|
-
},
|
|
54359
|
+
}, f = (e, r) => {
|
|
54360
54360
|
let i = e.type === kc.User;
|
|
54361
54361
|
t.messageGroups?.forEach((n, a) => {
|
|
54362
54362
|
if (n === e) {
|
|
@@ -54365,11 +54365,11 @@ var CZ = ["src"], wZ = {
|
|
|
54365
54365
|
e && (e.checked = r);
|
|
54366
54366
|
}
|
|
54367
54367
|
}), n.value = t.messageGroups?.filter((e) => e.checked).map((e) => e.messages).flat();
|
|
54368
|
-
},
|
|
54368
|
+
}, p = async (e, n) => (e.id === "copy" && s(n.filter((e) => e.role !== kc.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n")), t.onAgentAction?.(e, n)), m = async (e, n) => {
|
|
54369
54369
|
t.onUserAction?.(e, n);
|
|
54370
|
-
},
|
|
54370
|
+
}, h = async (e, n, r) => {
|
|
54371
54371
|
t.onUserInputConfirm?.(e, n, r);
|
|
54372
|
-
},
|
|
54372
|
+
}, g = async (e, n) => {
|
|
54373
54373
|
t.onUserShortcutConfirm?.(e, n);
|
|
54374
54374
|
};
|
|
54375
54375
|
return (n, s) => (H(), U("div", {
|
|
@@ -54377,18 +54377,18 @@ var CZ = ["src"], wZ = {
|
|
|
54377
54377
|
ref: r,
|
|
54378
54378
|
class: "ai-message-container"
|
|
54379
54379
|
}, [
|
|
54380
|
-
(H(!0), U(V, null, li(
|
|
54380
|
+
(H(!0), U(V, null, li(l.value, (r, i) => (H(), U("div", {
|
|
54381
54381
|
id: r.uid,
|
|
54382
54382
|
key: i,
|
|
54383
54383
|
class: "message-group",
|
|
54384
54384
|
style: ce({ backgroundColor: r.checked ? "#f5f7fa" : "transparent" }),
|
|
54385
|
-
onMouseenter: (e) =>
|
|
54386
|
-
onMouseleave: (e) =>
|
|
54385
|
+
onMouseenter: (e) => u(r),
|
|
54386
|
+
onMouseleave: (e) => d(r, e)
|
|
54387
54387
|
}, [di(n.$slots, "group", Qa({ ref_for: !0 }, { group: r }), () => [e.enableSelection && r.type !== z(kc).Loading ? (H(), W(z(Pk), {
|
|
54388
54388
|
key: 0,
|
|
54389
54389
|
class: "message-group-checkbox",
|
|
54390
54390
|
"model-value": r.checked,
|
|
54391
|
-
"onUpdate:modelValue": (e) =>
|
|
54391
|
+
"onUpdate:modelValue": (e) => f(r, e)
|
|
54392
54392
|
}, null, 8, ["model-value", "onUpdate:modelValue"])) : q("v-if", !0), G("div", {
|
|
54393
54393
|
class: pe(["message-group-messages", { "message-group-enabled-selection": e.renderMode === z(Hc).Share || e.enableSelection && r.type !== z(kc).Loading }]),
|
|
54394
54394
|
style: ce({ width: e.enableSelection && r.type !== z(kc).Loading ? "calc(100% - 16px)" : "100%" })
|
|
@@ -54403,10 +54403,10 @@ var CZ = ["src"], wZ = {
|
|
|
54403
54403
|
key: i,
|
|
54404
54404
|
message: r,
|
|
54405
54405
|
"message-tools-status": e.messageToolsStatus,
|
|
54406
|
-
"on-action": (e) =>
|
|
54407
|
-
"on-input-confirm": (e, t) =>
|
|
54406
|
+
"on-action": (e) => m(e, r),
|
|
54407
|
+
"on-input-confirm": (e, t) => h(r, e, t),
|
|
54408
54408
|
"on-interrupt-resume": t.onInterruptResume,
|
|
54409
|
-
"on-shortcut-confirm": (e) =>
|
|
54409
|
+
"on-shortcut-confirm": (e) => g(r, e),
|
|
54410
54410
|
"tippy-options": e.messageToolsTippyOptions
|
|
54411
54411
|
}, ui({ _: 2 }, [n.$slots.answeredQuestion ? {
|
|
54412
54412
|
name: "answeredQuestion",
|
|
@@ -54424,7 +54424,7 @@ var CZ = ["src"], wZ = {
|
|
|
54424
54424
|
key: 0,
|
|
54425
54425
|
"message-tools": c.value,
|
|
54426
54426
|
"message-tools-status": e.messageToolsStatus,
|
|
54427
|
-
"on-action": (e) =>
|
|
54427
|
+
"on-action": (e) => p(e, r.messages),
|
|
54428
54428
|
style: ce({ visibility: r.isHover ? "visible" : "hidden" }),
|
|
54429
54429
|
"tippy-options": t.messageToolsTippyOptions,
|
|
54430
54430
|
onFeedback: (e, n, i) => t.onAgentFeedback?.(e, r.messages, n, i)
|
|
@@ -54449,7 +54449,7 @@ var CZ = ["src"], wZ = {
|
|
|
54449
54449
|
}, {
|
|
54450
54450
|
icon: Un(() => [K(z(yl))]),
|
|
54451
54451
|
_: 1
|
|
54452
|
-
}, 8, ["loading", "title"]), [[ts, e.messageStatus === z(Ac).Streaming || e.messageStatus === z(Ac).StopLoading || e.messageStatus === z(Ac).Fetching || e.messageStatus === z(Ac).Pending]]), Wn(K(AP, {
|
|
54452
|
+
}, 8, ["loading", "title"]), [[ts, e.renderMode !== z(Hc).Share && (e.messageStatus === z(Ac).Streaming || e.messageStatus === z(Ac).StopLoading || e.messageStatus === z(Ac).Fetching || e.messageStatus === z(Ac).Pending)]]), Wn(K(AP, {
|
|
54453
54453
|
title: z(X)("返回底部"),
|
|
54454
54454
|
onClick: z(a)
|
|
54455
54455
|
}, {
|
|
@@ -54717,6 +54717,7 @@ var CZ = ["src"], wZ = {
|
|
|
54717
54717
|
} }), S = /* @__PURE__ */ Qt(""), C = /* @__PURE__ */ R([]), w = /* @__PURE__ */ Qt(400), T = J(() => `calc(100% - ${w.value}px)`), { messageGroups: E, executionGroups: D, isShareMode: O, isAllSelected: k, onToggleShareAll: A, onCancelShare: j, onConfirmShare: M, pendingApprovalTipText: N, activeUserQuestionInterrupt: P } = BR({
|
|
54718
54718
|
keyword: S,
|
|
54719
54719
|
messages: J(() => i.messages),
|
|
54720
|
+
renderMode: J(() => a.value),
|
|
54720
54721
|
selectedUserMessages: C
|
|
54721
54722
|
});
|
|
54722
54723
|
$n(_, (e) => {
|