@blueking/ai-blueking 2.2.0-beta.7 → 2.2.0-beta.8
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/ai-blueking.vue.d.ts.map +1 -1
- package/dist/standalone/index.es.min.js +110 -105
- package/dist/standalone/index.iife.min.js +2 -2
- package/dist/standalone/index.umd.min.js +2 -2
- package/dist/standalone/style.css +1 -1
- package/dist/vue2/index.es.min.js +110 -105
- package/dist/vue2/index.iife.min.js +2 -2
- package/dist/vue2/index.umd.min.js +2 -2
- package/dist/vue2/style.css +1 -1
- package/dist/vue3/index.es.min.js +536 -531
- package/dist/vue3/index.iife.min.js +2 -2
- package/dist/vue3/index.umd.min.js +4 -4
- package/dist/vue3/style.css +1 -1
- package/package.json +3 -3
|
@@ -56943,6 +56943,7 @@ var VX = { class: "draggable-container-content" }, HX = /* @__PURE__ */ Ce(/* @_
|
|
|
56943
56943
|
]));
|
|
56944
56944
|
}
|
|
56945
56945
|
}), [["__scopeId", "data-v-26b6f3ea"]]), KX = /* @__PURE__ */ Ce(/* @__PURE__ */ x({
|
|
56946
|
+
inheritAttrs: !1,
|
|
56946
56947
|
__name: "ai-blueking",
|
|
56947
56948
|
props: /* @__PURE__ */ A({
|
|
56948
56949
|
alwaysCreateNewSession: { type: Boolean },
|
|
@@ -57018,61 +57019,65 @@ var VX = { class: "draggable-container-content" }, HX = /* @__PURE__ */ Ce(/* @_
|
|
|
57018
57019
|
"share"
|
|
57019
57020
|
],
|
|
57020
57021
|
setup(e, { expose: t, emit: n }) {
|
|
57021
|
-
let r = e, { chatHelper:
|
|
57022
|
+
let r = e, i = n, a = oe(), { chatHelper: o, componentManager: c, sessionBusinessManager: l, shareBusinessManager: u, shortcutManager: d, forwarders: f, forwardToManager: h, chatBotRef: v, draggableContainerRef: b, panelVisible: x, nimbusMinimized: S, normalizedUrl: w, agentName: T, currentSession: E, isCompressed: D, isWelcomeState: k, messageToolsTippyOptions: A, agentResources: j, agentPrompts: M, agentSkills: N, handleError: L, reportSdkError: R, ensureSessionReady: z, updateAgentInfo: B } = uX({
|
|
57022
57023
|
props: r,
|
|
57023
|
-
emit:
|
|
57024
|
-
}), { show:
|
|
57025
|
-
componentManager:
|
|
57026
|
-
chatBotRef:
|
|
57027
|
-
forwarders:
|
|
57028
|
-
forwardToManager:
|
|
57024
|
+
emit: i
|
|
57025
|
+
}), { show: ee, hide: te, handleShow: ne, handleClose: H, handleNimbusClick: re, handleDragging: U, handleResizing: ie, handleDragStop: G, handleResizeStop: K, handleToggleCompression: ae, handleCompressionChange: q, handleExecutionPanelChange: se, sendMessage: ce, handleReceiveStart: le, handleReceiveText: ue, handleReceiveEnd: de, handleStop: fe, stopGeneration: pe, setCiteText: me, focusInput: he, selectShortcut: ge, sendShortcut: _e, getChatHelper: ve, updatePosition: ye, updateSize: be, updatePositionAndSize: xe, handleShortcutClick: Se } = mX({
|
|
57026
|
+
componentManager: c,
|
|
57027
|
+
chatBotRef: v,
|
|
57028
|
+
forwarders: f,
|
|
57029
|
+
forwardToManager: h,
|
|
57029
57030
|
beforeNimbusClick: r.beforeNimbusClick,
|
|
57030
|
-
ensureSessionReady:
|
|
57031
|
-
}), { sessionName:
|
|
57032
|
-
chatHelper:
|
|
57033
|
-
sessionBusinessManager:
|
|
57034
|
-
chatBotRef:
|
|
57035
|
-
forwarders:
|
|
57036
|
-
reportSdkError:
|
|
57037
|
-
currentSession:
|
|
57038
|
-
}), { isShareLoading:
|
|
57039
|
-
shareBusinessManager:
|
|
57040
|
-
chatBotRef:
|
|
57041
|
-
forwarders:
|
|
57042
|
-
reportSdkError:
|
|
57043
|
-
}), { aiSelectionVisible:
|
|
57044
|
-
shortcutManager:
|
|
57045
|
-
chatBotRef:
|
|
57046
|
-
forwardToManager:
|
|
57047
|
-
show:
|
|
57031
|
+
ensureSessionReady: z
|
|
57032
|
+
}), { sessionName: Ce, hasPermission: we, hasSessionContents: Te, autoGenerateLoading: Ee, handleNewChat: De, handleNewChatCreated: Oe, handleHistoryClick: ke, handleHistorySessionSwitch: Ae, handleHistorySessionDelete: je, handleHistorySessionRename: Me, handleAutoGenerateName: Ne, handleHelpClick: Pe, handleRename: Fe, handleSessionSwitched: Ie, addNewSession: Le, switchToSession: Re, updateSessionName: ze } = hX({
|
|
57033
|
+
chatHelper: o,
|
|
57034
|
+
sessionBusinessManager: l,
|
|
57035
|
+
chatBotRef: v,
|
|
57036
|
+
forwarders: f,
|
|
57037
|
+
reportSdkError: R,
|
|
57038
|
+
currentSession: E
|
|
57039
|
+
}), { isShareLoading: Be, handleShare: Ve, handleCancelShare: He, handleConfirmShare: Ue } = gX({
|
|
57040
|
+
shareBusinessManager: u,
|
|
57041
|
+
chatBotRef: v,
|
|
57042
|
+
forwarders: f,
|
|
57043
|
+
reportSdkError: R
|
|
57044
|
+
}), { aiSelectionVisible: We, filteredPopupShortcuts: Ge, handleSelectionChange: Ke, handleAiSelectionShortcut: qe } = dX({
|
|
57045
|
+
shortcutManager: d,
|
|
57046
|
+
chatBotRef: v,
|
|
57047
|
+
forwardToManager: h,
|
|
57048
|
+
show: ee,
|
|
57048
57049
|
props: r
|
|
57049
|
-
}),
|
|
57050
|
-
|
|
57050
|
+
}), Je = (e) => {
|
|
57051
|
+
Te.value = !0, f.sendMessage(e);
|
|
57051
57052
|
};
|
|
57052
57053
|
return t({
|
|
57053
|
-
show:
|
|
57054
|
-
handleShow:
|
|
57055
|
-
handleClose:
|
|
57056
|
-
hide:
|
|
57057
|
-
sendMessage:
|
|
57058
|
-
selectShortcut:
|
|
57059
|
-
sendShortcut:
|
|
57060
|
-
getChatHelper:
|
|
57061
|
-
stopGeneration:
|
|
57062
|
-
addNewSession:
|
|
57063
|
-
switchToSession:
|
|
57064
|
-
updateSessionName:
|
|
57065
|
-
updatePosition:
|
|
57066
|
-
updateSize:
|
|
57067
|
-
updatePositionAndSize:
|
|
57068
|
-
setCiteText:
|
|
57069
|
-
focusInput:
|
|
57070
|
-
updateAgentInfo:
|
|
57071
|
-
}), (e, t) => (V(), p(s, { to: r.teleportTo }, [g("div", { class: P([
|
|
57054
|
+
show: ee,
|
|
57055
|
+
handleShow: ne,
|
|
57056
|
+
handleClose: H,
|
|
57057
|
+
hide: te,
|
|
57058
|
+
sendMessage: ce,
|
|
57059
|
+
selectShortcut: ge,
|
|
57060
|
+
sendShortcut: _e,
|
|
57061
|
+
getChatHelper: ve,
|
|
57062
|
+
stopGeneration: pe,
|
|
57063
|
+
addNewSession: Le,
|
|
57064
|
+
switchToSession: Re,
|
|
57065
|
+
updateSessionName: ze,
|
|
57066
|
+
updatePosition: ye,
|
|
57067
|
+
updateSize: be,
|
|
57068
|
+
updatePositionAndSize: xe,
|
|
57069
|
+
setCiteText: me,
|
|
57070
|
+
focusInput: he,
|
|
57071
|
+
updateAgentInfo: B
|
|
57072
|
+
}), (e, t) => (V(), p(s, { to: r.teleportTo }, [g("div", { class: P([
|
|
57073
|
+
"ai-blueking-v2",
|
|
57074
|
+
r.extCls,
|
|
57075
|
+
J(a).class
|
|
57076
|
+
]) }, [
|
|
57072
57077
|
m(" 可拖拽容器 "),
|
|
57073
57078
|
y(J(HX), {
|
|
57074
57079
|
ref_key: "draggableContainerRef",
|
|
57075
|
-
ref:
|
|
57080
|
+
ref: b,
|
|
57076
57081
|
"compressed-padding": r.miniPadding,
|
|
57077
57082
|
"default-height": r.defaultHeight,
|
|
57078
57083
|
"default-width": r.defaultWidth,
|
|
@@ -57082,46 +57087,46 @@ var VX = { class: "draggable-container-content" }, HX = /* @__PURE__ */ Ce(/* @_
|
|
|
57082
57087
|
draggable: r.draggable,
|
|
57083
57088
|
"max-width": r.maxWidth,
|
|
57084
57089
|
"max-width-percent": 80,
|
|
57085
|
-
visible: J(
|
|
57086
|
-
onCompressionChange: J(
|
|
57087
|
-
onDragStop: J(
|
|
57088
|
-
onDragging: J(
|
|
57089
|
-
onResizeStop: J(
|
|
57090
|
-
onResizing: J(
|
|
57090
|
+
visible: J(x),
|
|
57091
|
+
onCompressionChange: J(q),
|
|
57092
|
+
onDragStop: J(G),
|
|
57093
|
+
onDragging: J(U),
|
|
57094
|
+
onResizeStop: J(K),
|
|
57095
|
+
onResizing: J(ie)
|
|
57091
57096
|
}, {
|
|
57092
|
-
default: Y(() => [g("div", { class: P(["ai-blueking-panel", { "has-messages": !J(
|
|
57097
|
+
default: Y(() => [g("div", { class: P(["ai-blueking-panel", { "has-messages": !J(k) }]) }, [
|
|
57093
57098
|
m(" 独立的 Header 组件 "),
|
|
57094
57099
|
r.hideHeader ? m("v-if", !0) : (V(), p(OY, {
|
|
57095
57100
|
key: 0,
|
|
57096
|
-
"agent-name": J(
|
|
57097
|
-
"chat-helper": J(
|
|
57101
|
+
"agent-name": J(T),
|
|
57102
|
+
"chat-helper": J(o),
|
|
57098
57103
|
draggable: r.draggable,
|
|
57099
57104
|
"dropdown-menu-config": r.dropdownMenuConfig,
|
|
57100
57105
|
"enable-chat-session": r.enableChatSession,
|
|
57101
|
-
"has-permission": J(
|
|
57102
|
-
"has-session-contents": J(
|
|
57103
|
-
"auto-generate-loading": J(
|
|
57104
|
-
"is-compression-height": J(
|
|
57106
|
+
"has-permission": J(we),
|
|
57107
|
+
"has-session-contents": J(Te),
|
|
57108
|
+
"auto-generate-loading": J(Ee),
|
|
57109
|
+
"is-compression-height": J(D),
|
|
57105
57110
|
"render-mode": r.renderMode,
|
|
57106
|
-
"session-business-manager": J(
|
|
57107
|
-
"session-name": J(
|
|
57111
|
+
"session-business-manager": J(l),
|
|
57112
|
+
"session-name": J(Ce),
|
|
57108
57113
|
"show-compression-icon": r.showCompressionIcon,
|
|
57109
57114
|
"show-history-icon": r.showHistoryIcon,
|
|
57110
57115
|
"show-more-icon": r.showMoreIcon,
|
|
57111
57116
|
"show-new-chat-icon": r.showNewChatIcon,
|
|
57112
57117
|
title: r.title,
|
|
57113
|
-
onAutoGenerateName: J(
|
|
57114
|
-
onClose: J(
|
|
57115
|
-
onHelpClick: J(
|
|
57116
|
-
onHistoryClick: J(
|
|
57117
|
-
onHistorySessionDelete: J(
|
|
57118
|
-
onHistorySessionRename: J(
|
|
57119
|
-
onHistorySessionSwitch: J(
|
|
57120
|
-
onNewChat: J(
|
|
57121
|
-
onNewChatCreated: J(
|
|
57122
|
-
onRename: J(
|
|
57123
|
-
onShare: J(
|
|
57124
|
-
onToggleCompression: J(
|
|
57118
|
+
onAutoGenerateName: J(Ne),
|
|
57119
|
+
onClose: J(H),
|
|
57120
|
+
onHelpClick: J(Pe),
|
|
57121
|
+
onHistoryClick: J(ke),
|
|
57122
|
+
onHistorySessionDelete: J(je),
|
|
57123
|
+
onHistorySessionRename: J(Me),
|
|
57124
|
+
onHistorySessionSwitch: J(Ae),
|
|
57125
|
+
onNewChat: J(De),
|
|
57126
|
+
onNewChatCreated: J(Oe),
|
|
57127
|
+
onRename: J(Fe),
|
|
57128
|
+
onShare: J(Ve),
|
|
57129
|
+
onToggleCompression: J(ae)
|
|
57125
57130
|
}, _({ _: 2 }, [e.$slots.headerLeft ? {
|
|
57126
57131
|
name: "headerLeft",
|
|
57127
57132
|
fn: Y(() => [W(e.$slots, "headerLeft", {}, void 0, !0)]),
|
|
@@ -57130,14 +57135,14 @@ var VX = { class: "draggable-container-content" }, HX = /* @__PURE__ */ Ce(/* @_
|
|
|
57130
57135
|
m(" ChatBot 核心组件(仅聊天区域) "),
|
|
57131
57136
|
y(tX, {
|
|
57132
57137
|
ref_key: "chatBotRef",
|
|
57133
|
-
ref:
|
|
57138
|
+
ref: v,
|
|
57134
57139
|
"always-create-new-session": r.alwaysCreateNewSession,
|
|
57135
57140
|
"auto-load": r.loadRecentSessionOnMount,
|
|
57136
|
-
"chat-helper": J(
|
|
57141
|
+
"chat-helper": J(o),
|
|
57137
57142
|
"hello-text": r.helloText,
|
|
57138
|
-
"message-tools-tippy-options": J(
|
|
57143
|
+
"message-tools-tippy-options": J(A),
|
|
57139
57144
|
placeholder: r.placeholder,
|
|
57140
|
-
prompts: J(
|
|
57145
|
+
prompts: J(M),
|
|
57141
57146
|
"render-mode": r.renderMode,
|
|
57142
57147
|
"request-options": r.requestOptions,
|
|
57143
57148
|
"use-agent-name": r.useAgentName,
|
|
@@ -57145,25 +57150,25 @@ var VX = { class: "draggable-container-content" }, HX = /* @__PURE__ */ Ce(/* @_
|
|
|
57145
57150
|
"get-side-tab-render-component": r.getSideTabRenderComponent,
|
|
57146
57151
|
"on-custom-tab-change": r.onCustomTabChange,
|
|
57147
57152
|
"resize-props": r.resizeProps,
|
|
57148
|
-
resources: J(
|
|
57153
|
+
resources: J(j),
|
|
57149
57154
|
"session-code": r.initialSessionCode,
|
|
57150
|
-
"share-loading": J(
|
|
57155
|
+
"share-loading": J(Be),
|
|
57151
57156
|
shortcuts: r.shortcuts,
|
|
57152
|
-
skills: J(
|
|
57157
|
+
skills: J(N),
|
|
57153
57158
|
style: I({ height: r.hideHeader ? "100%" : "calc(100% - 48px)" }),
|
|
57154
|
-
url: J(
|
|
57155
|
-
onCancelShare: J(
|
|
57156
|
-
onConfirmShare: t[0] ||= (e) => J(
|
|
57157
|
-
onError: t[1] ||= (e) => J(
|
|
57158
|
-
onExecutionPanelChange: J(
|
|
57159
|
-
onReceiveEnd: J(
|
|
57160
|
-
onReceiveStart: J(
|
|
57161
|
-
onReceiveText: J(
|
|
57162
|
-
onRequestShare: J(
|
|
57163
|
-
onSendMessage: t[2] ||= (e) =>
|
|
57164
|
-
onSessionSwitched: t[3] ||= (e) => J(
|
|
57165
|
-
onShortcutClick: J(
|
|
57166
|
-
onStop: J(
|
|
57159
|
+
url: J(w),
|
|
57160
|
+
onCancelShare: J(He),
|
|
57161
|
+
onConfirmShare: t[0] ||= (e) => J(Ue)(e),
|
|
57162
|
+
onError: t[1] ||= (e) => J(L)(e),
|
|
57163
|
+
onExecutionPanelChange: J(se),
|
|
57164
|
+
onReceiveEnd: J(de),
|
|
57165
|
+
onReceiveStart: J(le),
|
|
57166
|
+
onReceiveText: J(ue),
|
|
57167
|
+
onRequestShare: J(Ve),
|
|
57168
|
+
onSendMessage: t[2] ||= (e) => Je(e),
|
|
57169
|
+
onSessionSwitched: t[3] ||= (e) => J(Ie)(e),
|
|
57170
|
+
onShortcutClick: J(Se),
|
|
57171
|
+
onStop: J(fe)
|
|
57167
57172
|
}, _({ _: 2 }, [e.$slots.codeHeader ? {
|
|
57168
57173
|
name: "codeHeader",
|
|
57169
57174
|
fn: Y((t) => [W(e.$slots, "codeHeader", F(C(t)), void 0, !0)]),
|
|
@@ -57197,13 +57202,13 @@ var VX = { class: "draggable-container-content" }, HX = /* @__PURE__ */ Ce(/* @_
|
|
|
57197
57202
|
m(" Nimbus 悬浮球 "),
|
|
57198
57203
|
r.hideNimbus ? m("v-if", !0) : (V(), p(GX, {
|
|
57199
57204
|
key: 0,
|
|
57200
|
-
"is-minimize": J(
|
|
57201
|
-
"onUpdate:isMinimize": t[4] ||= (e) => O(
|
|
57202
|
-
"is-panel-show": J(
|
|
57203
|
-
"onUpdate:isPanelShow": t[5] ||= (e) => O(
|
|
57205
|
+
"is-minimize": J(S),
|
|
57206
|
+
"onUpdate:isMinimize": t[4] ||= (e) => O(S) ? S.value = e : null,
|
|
57207
|
+
"is-panel-show": J(x),
|
|
57208
|
+
"onUpdate:isPanelShow": t[5] ||= (e) => O(x) ? x.value = e : null,
|
|
57204
57209
|
"default-minimize": r.defaultMinimize,
|
|
57205
57210
|
size: r.nimbusSize,
|
|
57206
|
-
onClick: J(
|
|
57211
|
+
onClick: J(re)
|
|
57207
57212
|
}, null, 8, [
|
|
57208
57213
|
"is-minimize",
|
|
57209
57214
|
"is-panel-show",
|
|
@@ -57214,13 +57219,13 @@ var VX = { class: "draggable-container-content" }, HX = /* @__PURE__ */ Ce(/* @_
|
|
|
57214
57219
|
m(" 划词选择弹窗(使用 chat-x 的 AiSelection 组件) "),
|
|
57215
57220
|
r.enablePopup ? (V(), p(J(fM), {
|
|
57216
57221
|
key: 1,
|
|
57217
|
-
visible: J(
|
|
57218
|
-
"onUpdate:visible": t[6] ||= (e) => O(
|
|
57222
|
+
visible: J(We),
|
|
57223
|
+
"onUpdate:visible": t[6] ||= (e) => O(We) ? We.value = e : null,
|
|
57219
57224
|
"exclude-selectors": [".draggable-container-wrapper"],
|
|
57220
57225
|
"max-shortcut-count": r.shortcutLimit,
|
|
57221
|
-
shortcuts: J(
|
|
57222
|
-
onSelectShortcut: J(
|
|
57223
|
-
onSelectionChange: J(
|
|
57226
|
+
shortcuts: J(Ge),
|
|
57227
|
+
onSelectShortcut: J(qe),
|
|
57228
|
+
onSelectionChange: J(Ke)
|
|
57224
57229
|
}, null, 8, [
|
|
57225
57230
|
"visible",
|
|
57226
57231
|
"max-shortcut-count",
|
|
@@ -57230,7 +57235,7 @@ var VX = { class: "draggable-container-content" }, HX = /* @__PURE__ */ Ce(/* @_
|
|
|
57230
57235
|
])) : m("v-if", !0)
|
|
57231
57236
|
], 2)], 8, ["to"]));
|
|
57232
57237
|
}
|
|
57233
|
-
}), [["__scopeId", "data-v-
|
|
57238
|
+
}), [["__scopeId", "data-v-73c36917"]]), qX = [
|
|
57234
57239
|
"close",
|
|
57235
57240
|
"show",
|
|
57236
57241
|
"stop",
|