@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
|
@@ -26444,7 +26444,7 @@ var OM = () => E(TM), kM = (() => {
|
|
|
26444
26444
|
checked: !1,
|
|
26445
26445
|
uid: CA(),
|
|
26446
26446
|
pause: n?.some((e) => e.property?.extra?.pause) ?? !1
|
|
26447
|
-
}), e.messages.value.at(-1)?.role === AA.User && r.push({
|
|
26447
|
+
}), e.messages.value.at(-1)?.role === AA.User && q(e.renderMode) !== UA.Share && r.push({
|
|
26448
26448
|
messages: [{
|
|
26449
26449
|
role: AA.Loading,
|
|
26450
26450
|
content: "",
|
|
@@ -52598,12 +52598,12 @@ var TW = ["src"], EW = {
|
|
|
52598
52598
|
}),
|
|
52599
52599
|
emits: /* @__PURE__ */ j(["stopStreaming"], ["update:selectedUserMessages"]),
|
|
52600
52600
|
setup(e) {
|
|
52601
|
-
let t = e, n = ce(e, "selectedUserMessages"), r = ue("messageContainerRef"), i = ue("messageContainerBottomRef"), { toScrollBottom: a, debouncedShowScrollBottomBtn: s } = CM(r, i), { copy: c } = bM(), l = d(() => RA.filter((e) => t.renderMode !== UA.Test || e.id !== "share")), u = (e) => {
|
|
52601
|
+
let t = e, n = ce(e, "selectedUserMessages"), r = ue("messageContainerRef"), i = ue("messageContainerBottomRef"), { toScrollBottom: a, debouncedShowScrollBottomBtn: s } = CM(r, i), { copy: c } = bM(), l = d(() => RA.filter((e) => t.renderMode !== UA.Test || e.id !== "share")), u = d(() => t.renderMode === UA.Share ? t.messageGroups.filter((e) => e.type !== AA.Loading) : t.messageGroups), f = (e) => {
|
|
52602
52602
|
e.messages?.at(-1)?.role !== AA.Interrupt && (e.isHover = !0);
|
|
52603
|
-
},
|
|
52603
|
+
}, v = (e, t) => {
|
|
52604
52604
|
let n = t.toElement ?? t.relatedTarget;
|
|
52605
52605
|
n instanceof Element && n.classList.contains("ai-user-feedback") || (e.isHover = !1);
|
|
52606
|
-
},
|
|
52606
|
+
}, b = (e, r) => {
|
|
52607
52607
|
let i = e.type === AA.User;
|
|
52608
52608
|
t.messageGroups?.forEach((n, a) => {
|
|
52609
52609
|
if (n === e) {
|
|
@@ -52612,11 +52612,11 @@ var TW = ["src"], EW = {
|
|
|
52612
52612
|
e && (e.checked = r);
|
|
52613
52613
|
}
|
|
52614
52614
|
}), n.value = t.messageGroups?.filter((e) => e.checked).map((e) => e.messages).flat();
|
|
52615
|
-
},
|
|
52615
|
+
}, x = async (e, n) => (e.id === "copy" && c(n.filter((e) => e.role !== AA.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n")), t.onAgentAction?.(e, n)), S = async (e, n) => {
|
|
52616
52616
|
t.onUserAction?.(e, n);
|
|
52617
|
-
},
|
|
52617
|
+
}, C = async (e, n, r) => {
|
|
52618
52618
|
t.onUserInputConfirm?.(e, n, r);
|
|
52619
|
-
},
|
|
52619
|
+
}, w = async (e, n) => {
|
|
52620
52620
|
t.onUserShortcutConfirm?.(e, n);
|
|
52621
52621
|
};
|
|
52622
52622
|
return (n, c) => (V(), h("div", {
|
|
@@ -52624,18 +52624,18 @@ var TW = ["src"], EW = {
|
|
|
52624
52624
|
ref: r,
|
|
52625
52625
|
class: "ai-message-container"
|
|
52626
52626
|
}, [
|
|
52627
|
-
(V(!0), h(o, null, U(
|
|
52627
|
+
(V(!0), h(o, null, U(u.value, (r, i) => (V(), h("div", {
|
|
52628
52628
|
id: r.uid,
|
|
52629
52629
|
key: i,
|
|
52630
52630
|
class: "message-group",
|
|
52631
52631
|
style: I({ backgroundColor: r.checked ? "#f5f7fa" : "transparent" }),
|
|
52632
|
-
onMouseenter: (e) =>
|
|
52633
|
-
onMouseleave: (e) =>
|
|
52632
|
+
onMouseenter: (e) => f(r),
|
|
52633
|
+
onMouseleave: (e) => v(r, e)
|
|
52634
52634
|
}, [W(n.$slots, "group", M({ ref_for: !0 }, { group: r }), () => [e.enableSelection && r.type !== J(AA).Loading ? (V(), p(J(mb), {
|
|
52635
52635
|
key: 0,
|
|
52636
52636
|
class: "message-group-checkbox",
|
|
52637
52637
|
"model-value": r.checked,
|
|
52638
|
-
"onUpdate:modelValue": (e) =>
|
|
52638
|
+
"onUpdate:modelValue": (e) => b(r, e)
|
|
52639
52639
|
}, null, 8, ["model-value", "onUpdate:modelValue"])) : m("v-if", !0), g("div", {
|
|
52640
52640
|
class: P(["message-group-messages", { "message-group-enabled-selection": e.renderMode === J(UA).Share || e.enableSelection && r.type !== J(AA).Loading }]),
|
|
52641
52641
|
style: I({ width: e.enableSelection && r.type !== J(AA).Loading ? "calc(100% - 16px)" : "100%" })
|
|
@@ -52650,10 +52650,10 @@ var TW = ["src"], EW = {
|
|
|
52650
52650
|
key: i,
|
|
52651
52651
|
message: r,
|
|
52652
52652
|
"message-tools-status": e.messageToolsStatus,
|
|
52653
|
-
"on-action": (e) =>
|
|
52654
|
-
"on-input-confirm": (e, t) =>
|
|
52653
|
+
"on-action": (e) => S(e, r),
|
|
52654
|
+
"on-input-confirm": (e, t) => C(r, e, t),
|
|
52655
52655
|
"on-interrupt-resume": t.onInterruptResume,
|
|
52656
|
-
"on-shortcut-confirm": (e) =>
|
|
52656
|
+
"on-shortcut-confirm": (e) => w(r, e),
|
|
52657
52657
|
"tippy-options": e.messageToolsTippyOptions
|
|
52658
52658
|
}, _({ _: 2 }, [n.$slots.answeredQuestion ? {
|
|
52659
52659
|
name: "answeredQuestion",
|
|
@@ -52671,7 +52671,7 @@ var TW = ["src"], EW = {
|
|
|
52671
52671
|
key: 0,
|
|
52672
52672
|
"message-tools": l.value,
|
|
52673
52673
|
"message-tools-status": e.messageToolsStatus,
|
|
52674
|
-
"on-action": (e) =>
|
|
52674
|
+
"on-action": (e) => x(e, r.messages),
|
|
52675
52675
|
style: I({ visibility: r.isHover ? "visible" : "hidden" }),
|
|
52676
52676
|
"tippy-options": t.messageToolsTippyOptions,
|
|
52677
52677
|
onFeedback: (e, n, i) => t.onAgentFeedback?.(e, r.messages, n, i)
|
|
@@ -52696,7 +52696,7 @@ var TW = ["src"], EW = {
|
|
|
52696
52696
|
}, {
|
|
52697
52697
|
icon: Y(() => [y(J(bj))]),
|
|
52698
52698
|
_: 1
|
|
52699
|
-
}, 8, ["loading", "title"]), [[de, e.messageStatus === J(jA).Streaming || e.messageStatus === J(jA).StopLoading || e.messageStatus === J(jA).Fetching || e.messageStatus === J(jA).Pending]]), he(y(Jj, {
|
|
52699
|
+
}, 8, ["loading", "title"]), [[de, e.renderMode !== J(UA).Share && (e.messageStatus === J(jA).Streaming || e.messageStatus === J(jA).StopLoading || e.messageStatus === J(jA).Fetching || e.messageStatus === J(jA).Pending)]]), he(y(Jj, {
|
|
52700
52700
|
title: J(Q)("返回底部"),
|
|
52701
52701
|
onClick: J(a)
|
|
52702
52702
|
}, {
|
|
@@ -52964,6 +52964,7 @@ var TW = ["src"], EW = {
|
|
|
52964
52964
|
} }), L = G(""), R = H([]), z = G(400), ee = d(() => `calc(100% - ${z.value}px)`), { messageGroups: te, executionGroups: ne, isShareMode: re, isAllSelected: ae, onToggleShareAll: q, onCancelShare: oe, onConfirmShare: se, pendingApprovalTipText: le, activeUserQuestionInterrupt: de } = HM({
|
|
52965
52965
|
keyword: L,
|
|
52966
52966
|
messages: d(() => i.messages),
|
|
52967
|
+
renderMode: d(() => a.value),
|
|
52967
52968
|
selectedUserMessages: R
|
|
52968
52969
|
});
|
|
52969
52970
|
fe(D, (e) => {
|