@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-blueking.vue.d.ts","sourceRoot":"","sources":["../src/ai-blueking.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai-blueking.vue.d.ts","sourceRoot":"","sources":["../src/ai-blueking.vue"],"names":[],"mappings":"AAiYE,OAAO,KAAK,EAAmB,gBAAgB,EAAE,eAAe,EAAY,MAAM,SAAS,CAAC;AAC5F,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAUvF,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,EAAE,CAAA;KAAE,KAAK,OAAO,CAAC;IACxE,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAChB,OAAO,EAAE,OAAO,CAAC;QACjB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;QACxC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;KACvC,KAAK,OAAO,CAAC;CACf,CAAC;AAsnBJ,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAKd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -60929,6 +60929,7 @@ var f6 = { class: "draggable-container-content" }, p6 = /* @__PURE__ */ N4(/* @_
|
|
|
60929
60929
|
]));
|
|
60930
60930
|
}
|
|
60931
60931
|
}), [["__scopeId", "data-v-26b6f3ea"]]), _6 = /* @__PURE__ */ N4(/* @__PURE__ */ V({
|
|
60932
|
+
inheritAttrs: !1,
|
|
60932
60933
|
__name: "ai-blueking",
|
|
60933
60934
|
props: /* @__PURE__ */ bi({
|
|
60934
60935
|
alwaysCreateNewSession: { type: Boolean },
|
|
@@ -61004,61 +61005,65 @@ var f6 = { class: "draggable-container-content" }, p6 = /* @__PURE__ */ N4(/* @_
|
|
|
61004
61005
|
"share"
|
|
61005
61006
|
],
|
|
61006
61007
|
setup(e, { expose: t, emit: n }) {
|
|
61007
|
-
let r = e, { chatHelper:
|
|
61008
|
+
let r = e, i = n, a = _i(), { chatHelper: o, componentManager: s, sessionBusinessManager: c, shareBusinessManager: l, shortcutManager: u, forwarders: d, forwardToManager: f, chatBotRef: p, draggableContainerRef: m, panelVisible: h, nimbusMinimized: g, normalizedUrl: _, agentName: v, currentSession: y, isCompressed: b, isWelcomeState: x, messageToolsTippyOptions: S, agentResources: C, agentPrompts: w, agentSkills: T, handleError: E, reportSdkError: D, ensureSessionReady: O, updateAgentInfo: k } = N3({
|
|
61008
61009
|
props: r,
|
|
61009
|
-
emit:
|
|
61010
|
-
}), { show:
|
|
61011
|
-
componentManager:
|
|
61012
|
-
chatBotRef:
|
|
61013
|
-
forwarders:
|
|
61014
|
-
forwardToManager:
|
|
61010
|
+
emit: i
|
|
61011
|
+
}), { show: A, hide: j, handleShow: M, handleClose: N, handleNimbusClick: P, handleDragging: F, handleResizing: I, handleDragStop: ee, handleResizeStop: te, handleToggleCompression: ne, handleCompressionChange: re, handleExecutionPanelChange: ie, sendMessage: ae, handleReceiveStart: oe, handleReceiveText: se, handleReceiveEnd: le, handleStop: ue, stopGeneration: de, setCiteText: fe, focusInput: he, selectShortcut: ge, sendShortcut: _e, getChatHelper: ve, updatePosition: ye, updateSize: be, updatePositionAndSize: L, handleShortcutClick: xe } = L3({
|
|
61012
|
+
componentManager: s,
|
|
61013
|
+
chatBotRef: p,
|
|
61014
|
+
forwarders: d,
|
|
61015
|
+
forwardToManager: f,
|
|
61015
61016
|
beforeNimbusClick: r.beforeNimbusClick,
|
|
61016
|
-
ensureSessionReady:
|
|
61017
|
-
}), { sessionName:
|
|
61018
|
-
chatHelper:
|
|
61019
|
-
sessionBusinessManager:
|
|
61020
|
-
chatBotRef:
|
|
61021
|
-
forwarders:
|
|
61022
|
-
reportSdkError:
|
|
61023
|
-
currentSession:
|
|
61024
|
-
}), { isShareLoading:
|
|
61025
|
-
shareBusinessManager:
|
|
61026
|
-
chatBotRef:
|
|
61027
|
-
forwarders:
|
|
61028
|
-
reportSdkError:
|
|
61029
|
-
}), { aiSelectionVisible:
|
|
61030
|
-
shortcutManager:
|
|
61031
|
-
chatBotRef:
|
|
61032
|
-
forwardToManager:
|
|
61033
|
-
show:
|
|
61017
|
+
ensureSessionReady: O
|
|
61018
|
+
}), { sessionName: Se, hasPermission: Ce, hasSessionContents: we, autoGenerateLoading: Te, handleNewChat: Ee, handleNewChatCreated: De, handleHistoryClick: Oe, handleHistorySessionSwitch: ke, handleHistorySessionDelete: Ae, handleHistorySessionRename: je, handleAutoGenerateName: Me, handleHelpClick: Ne, handleRename: Pe, handleSessionSwitched: Fe, addNewSession: Ie, switchToSession: Le, updateSessionName: Re } = R3({
|
|
61019
|
+
chatHelper: o,
|
|
61020
|
+
sessionBusinessManager: c,
|
|
61021
|
+
chatBotRef: p,
|
|
61022
|
+
forwarders: d,
|
|
61023
|
+
reportSdkError: D,
|
|
61024
|
+
currentSession: y
|
|
61025
|
+
}), { isShareLoading: ze, handleShare: Be, handleCancelShare: Ve, handleConfirmShare: He } = z3({
|
|
61026
|
+
shareBusinessManager: l,
|
|
61027
|
+
chatBotRef: p,
|
|
61028
|
+
forwarders: d,
|
|
61029
|
+
reportSdkError: D
|
|
61030
|
+
}), { aiSelectionVisible: Ue, filteredPopupShortcuts: We, handleSelectionChange: Ge, handleAiSelectionShortcut: Ke } = P3({
|
|
61031
|
+
shortcutManager: u,
|
|
61032
|
+
chatBotRef: p,
|
|
61033
|
+
forwardToManager: f,
|
|
61034
|
+
show: A,
|
|
61034
61035
|
props: r
|
|
61035
|
-
}),
|
|
61036
|
-
|
|
61036
|
+
}), qe = (e) => {
|
|
61037
|
+
we.value = !0, d.sendMessage(e);
|
|
61037
61038
|
};
|
|
61038
61039
|
return t({
|
|
61039
|
-
show:
|
|
61040
|
-
handleShow:
|
|
61041
|
-
handleClose:
|
|
61042
|
-
hide:
|
|
61043
|
-
sendMessage:
|
|
61044
|
-
selectShortcut:
|
|
61045
|
-
sendShortcut:
|
|
61046
|
-
getChatHelper:
|
|
61047
|
-
stopGeneration:
|
|
61048
|
-
addNewSession:
|
|
61049
|
-
switchToSession:
|
|
61050
|
-
updateSessionName:
|
|
61051
|
-
updatePosition:
|
|
61052
|
-
updateSize:
|
|
61053
|
-
updatePositionAndSize:
|
|
61054
|
-
setCiteText:
|
|
61055
|
-
focusInput:
|
|
61056
|
-
updateAgentInfo:
|
|
61057
|
-
}), (e, t) => (U(), G(pr, { to: r.teleportTo }, [K("div", { class: pe([
|
|
61040
|
+
show: A,
|
|
61041
|
+
handleShow: M,
|
|
61042
|
+
handleClose: N,
|
|
61043
|
+
hide: j,
|
|
61044
|
+
sendMessage: ae,
|
|
61045
|
+
selectShortcut: ge,
|
|
61046
|
+
sendShortcut: _e,
|
|
61047
|
+
getChatHelper: ve,
|
|
61048
|
+
stopGeneration: de,
|
|
61049
|
+
addNewSession: Ie,
|
|
61050
|
+
switchToSession: Le,
|
|
61051
|
+
updateSessionName: Re,
|
|
61052
|
+
updatePosition: ye,
|
|
61053
|
+
updateSize: be,
|
|
61054
|
+
updatePositionAndSize: L,
|
|
61055
|
+
setCiteText: fe,
|
|
61056
|
+
focusInput: he,
|
|
61057
|
+
updateAgentInfo: k
|
|
61058
|
+
}), (e, t) => (U(), G(pr, { to: r.teleportTo }, [K("div", { class: pe([
|
|
61059
|
+
"ai-blueking-v2",
|
|
61060
|
+
r.extCls,
|
|
61061
|
+
B(a).class
|
|
61062
|
+
]) }, [
|
|
61058
61063
|
J(" 可拖拽容器 "),
|
|
61059
61064
|
q(B(p6), {
|
|
61060
61065
|
ref_key: "draggableContainerRef",
|
|
61061
|
-
ref:
|
|
61066
|
+
ref: m,
|
|
61062
61067
|
"compressed-padding": r.miniPadding,
|
|
61063
61068
|
"default-height": r.defaultHeight,
|
|
61064
61069
|
"default-width": r.defaultWidth,
|
|
@@ -61068,46 +61073,46 @@ var f6 = { class: "draggable-container-content" }, p6 = /* @__PURE__ */ N4(/* @_
|
|
|
61068
61073
|
draggable: r.draggable,
|
|
61069
61074
|
"max-width": r.maxWidth,
|
|
61070
61075
|
"max-width-percent": 80,
|
|
61071
|
-
visible: B(
|
|
61072
|
-
onCompressionChange: B(
|
|
61073
|
-
onDragStop: B(
|
|
61074
|
-
onDragging: B(
|
|
61075
|
-
onResizeStop: B(
|
|
61076
|
-
onResizing: B(
|
|
61076
|
+
visible: B(h),
|
|
61077
|
+
onCompressionChange: B(re),
|
|
61078
|
+
onDragStop: B(ee),
|
|
61079
|
+
onDragging: B(F),
|
|
61080
|
+
onResizeStop: B(te),
|
|
61081
|
+
onResizing: B(I)
|
|
61077
61082
|
}, {
|
|
61078
|
-
default: Hn(() => [K("div", { class: pe(["ai-blueking-panel", { "has-messages": !B(
|
|
61083
|
+
default: Hn(() => [K("div", { class: pe(["ai-blueking-panel", { "has-messages": !B(x) }]) }, [
|
|
61079
61084
|
J(" 独立的 Header 组件 "),
|
|
61080
61085
|
r.hideHeader ? J("v-if", !0) : (U(), G(e3, {
|
|
61081
61086
|
key: 0,
|
|
61082
|
-
"agent-name": B(
|
|
61083
|
-
"chat-helper": B(
|
|
61087
|
+
"agent-name": B(v),
|
|
61088
|
+
"chat-helper": B(o),
|
|
61084
61089
|
draggable: r.draggable,
|
|
61085
61090
|
"dropdown-menu-config": r.dropdownMenuConfig,
|
|
61086
61091
|
"enable-chat-session": r.enableChatSession,
|
|
61087
|
-
"has-permission": B(
|
|
61088
|
-
"has-session-contents": B(
|
|
61089
|
-
"auto-generate-loading": B(
|
|
61090
|
-
"is-compression-height": B(
|
|
61092
|
+
"has-permission": B(Ce),
|
|
61093
|
+
"has-session-contents": B(we),
|
|
61094
|
+
"auto-generate-loading": B(Te),
|
|
61095
|
+
"is-compression-height": B(b),
|
|
61091
61096
|
"render-mode": r.renderMode,
|
|
61092
|
-
"session-business-manager": B(
|
|
61093
|
-
"session-name": B(
|
|
61097
|
+
"session-business-manager": B(c),
|
|
61098
|
+
"session-name": B(Se),
|
|
61094
61099
|
"show-compression-icon": r.showCompressionIcon,
|
|
61095
61100
|
"show-history-icon": r.showHistoryIcon,
|
|
61096
61101
|
"show-more-icon": r.showMoreIcon,
|
|
61097
61102
|
"show-new-chat-icon": r.showNewChatIcon,
|
|
61098
61103
|
title: r.title,
|
|
61099
|
-
onAutoGenerateName: B(
|
|
61100
|
-
onClose: B(
|
|
61101
|
-
onHelpClick: B(
|
|
61102
|
-
onHistoryClick: B(
|
|
61103
|
-
onHistorySessionDelete: B(
|
|
61104
|
-
onHistorySessionRename: B(
|
|
61105
|
-
onHistorySessionSwitch: B(
|
|
61106
|
-
onNewChat: B(
|
|
61107
|
-
onNewChatCreated: B(
|
|
61108
|
-
onRename: B(
|
|
61109
|
-
onShare: B(
|
|
61110
|
-
onToggleCompression: B(
|
|
61104
|
+
onAutoGenerateName: B(Me),
|
|
61105
|
+
onClose: B(N),
|
|
61106
|
+
onHelpClick: B(Ne),
|
|
61107
|
+
onHistoryClick: B(Oe),
|
|
61108
|
+
onHistorySessionDelete: B(Ae),
|
|
61109
|
+
onHistorySessionRename: B(je),
|
|
61110
|
+
onHistorySessionSwitch: B(ke),
|
|
61111
|
+
onNewChat: B(Ee),
|
|
61112
|
+
onNewChatCreated: B(De),
|
|
61113
|
+
onRename: B(Pe),
|
|
61114
|
+
onShare: B(Be),
|
|
61115
|
+
onToggleCompression: B(ne)
|
|
61111
61116
|
}, li({ _: 2 }, [e.$slots.headerLeft ? {
|
|
61112
61117
|
name: "headerLeft",
|
|
61113
61118
|
fn: Hn(() => [ui(e.$slots, "headerLeft", {}, void 0, !0)]),
|
|
@@ -61116,14 +61121,14 @@ var f6 = { class: "draggable-container-content" }, p6 = /* @__PURE__ */ N4(/* @_
|
|
|
61116
61121
|
J(" ChatBot 核心组件(仅聊天区域) "),
|
|
61117
61122
|
q(O3, {
|
|
61118
61123
|
ref_key: "chatBotRef",
|
|
61119
|
-
ref:
|
|
61124
|
+
ref: p,
|
|
61120
61125
|
"always-create-new-session": r.alwaysCreateNewSession,
|
|
61121
61126
|
"auto-load": r.loadRecentSessionOnMount,
|
|
61122
|
-
"chat-helper": B(
|
|
61127
|
+
"chat-helper": B(o),
|
|
61123
61128
|
"hello-text": r.helloText,
|
|
61124
|
-
"message-tools-tippy-options": B(
|
|
61129
|
+
"message-tools-tippy-options": B(S),
|
|
61125
61130
|
placeholder: r.placeholder,
|
|
61126
|
-
prompts: B(
|
|
61131
|
+
prompts: B(w),
|
|
61127
61132
|
"render-mode": r.renderMode,
|
|
61128
61133
|
"request-options": r.requestOptions,
|
|
61129
61134
|
"use-agent-name": r.useAgentName,
|
|
@@ -61131,25 +61136,25 @@ var f6 = { class: "draggable-container-content" }, p6 = /* @__PURE__ */ N4(/* @_
|
|
|
61131
61136
|
"get-side-tab-render-component": r.getSideTabRenderComponent,
|
|
61132
61137
|
"on-custom-tab-change": r.onCustomTabChange,
|
|
61133
61138
|
"resize-props": r.resizeProps,
|
|
61134
|
-
resources: B(
|
|
61139
|
+
resources: B(C),
|
|
61135
61140
|
"session-code": r.initialSessionCode,
|
|
61136
|
-
"share-loading": B(
|
|
61141
|
+
"share-loading": B(ze),
|
|
61137
61142
|
shortcuts: r.shortcuts,
|
|
61138
|
-
skills: B(
|
|
61143
|
+
skills: B(T),
|
|
61139
61144
|
style: ce({ height: r.hideHeader ? "100%" : "calc(100% - 48px)" }),
|
|
61140
|
-
url: B(
|
|
61141
|
-
onCancelShare: B(
|
|
61142
|
-
onConfirmShare: t[0] ||= (e) => B(
|
|
61143
|
-
onError: t[1] ||= (e) => B(
|
|
61144
|
-
onExecutionPanelChange: B(
|
|
61145
|
-
onReceiveEnd: B(
|
|
61146
|
-
onReceiveStart: B(
|
|
61147
|
-
onReceiveText: B(
|
|
61148
|
-
onRequestShare: B(
|
|
61149
|
-
onSendMessage: t[2] ||= (e) =>
|
|
61150
|
-
onSessionSwitched: t[3] ||= (e) => B(
|
|
61151
|
-
onShortcutClick: B(
|
|
61152
|
-
onStop: B(
|
|
61145
|
+
url: B(_),
|
|
61146
|
+
onCancelShare: B(Ve),
|
|
61147
|
+
onConfirmShare: t[0] ||= (e) => B(He)(e),
|
|
61148
|
+
onError: t[1] ||= (e) => B(E)(e),
|
|
61149
|
+
onExecutionPanelChange: B(ie),
|
|
61150
|
+
onReceiveEnd: B(le),
|
|
61151
|
+
onReceiveStart: B(oe),
|
|
61152
|
+
onReceiveText: B(se),
|
|
61153
|
+
onRequestShare: B(Be),
|
|
61154
|
+
onSendMessage: t[2] ||= (e) => qe(e),
|
|
61155
|
+
onSessionSwitched: t[3] ||= (e) => B(Fe)(e),
|
|
61156
|
+
onShortcutClick: B(xe),
|
|
61157
|
+
onStop: B(ue)
|
|
61153
61158
|
}, li({ _: 2 }, [e.$slots.codeHeader ? {
|
|
61154
61159
|
name: "codeHeader",
|
|
61155
61160
|
fn: Hn((t) => [ui(e.$slots, "codeHeader", me(Ga(t)), void 0, !0)]),
|
|
@@ -61183,13 +61188,13 @@ var f6 = { class: "draggable-container-content" }, p6 = /* @__PURE__ */ N4(/* @_
|
|
|
61183
61188
|
J(" Nimbus 悬浮球 "),
|
|
61184
61189
|
r.hideNimbus ? J("v-if", !0) : (U(), G(g6, {
|
|
61185
61190
|
key: 0,
|
|
61186
|
-
"is-minimize": B(
|
|
61187
|
-
"onUpdate:isMinimize": t[4] ||= (e) => /* @__PURE__ */ Zt(
|
|
61188
|
-
"is-panel-show": B(
|
|
61189
|
-
"onUpdate:isPanelShow": t[5] ||= (e) => /* @__PURE__ */ Zt(
|
|
61191
|
+
"is-minimize": B(g),
|
|
61192
|
+
"onUpdate:isMinimize": t[4] ||= (e) => /* @__PURE__ */ Zt(g) ? g.value = e : null,
|
|
61193
|
+
"is-panel-show": B(h),
|
|
61194
|
+
"onUpdate:isPanelShow": t[5] ||= (e) => /* @__PURE__ */ Zt(h) ? h.value = e : null,
|
|
61190
61195
|
"default-minimize": r.defaultMinimize,
|
|
61191
61196
|
size: r.nimbusSize,
|
|
61192
|
-
onClick: B(
|
|
61197
|
+
onClick: B(P)
|
|
61193
61198
|
}, null, 8, [
|
|
61194
61199
|
"is-minimize",
|
|
61195
61200
|
"is-panel-show",
|
|
@@ -61200,13 +61205,13 @@ var f6 = { class: "draggable-container-content" }, p6 = /* @__PURE__ */ N4(/* @_
|
|
|
61200
61205
|
J(" 划词选择弹窗(使用 chat-x 的 AiSelection 组件) "),
|
|
61201
61206
|
r.enablePopup ? (U(), G(B(iR), {
|
|
61202
61207
|
key: 1,
|
|
61203
|
-
visible: B(
|
|
61204
|
-
"onUpdate:visible": t[6] ||= (e) => /* @__PURE__ */ Zt(
|
|
61208
|
+
visible: B(Ue),
|
|
61209
|
+
"onUpdate:visible": t[6] ||= (e) => /* @__PURE__ */ Zt(Ue) ? Ue.value = e : null,
|
|
61205
61210
|
"exclude-selectors": [".draggable-container-wrapper"],
|
|
61206
61211
|
"max-shortcut-count": r.shortcutLimit,
|
|
61207
|
-
shortcuts: B(
|
|
61208
|
-
onSelectShortcut: B(
|
|
61209
|
-
onSelectionChange: B(
|
|
61212
|
+
shortcuts: B(We),
|
|
61213
|
+
onSelectShortcut: B(Ke),
|
|
61214
|
+
onSelectionChange: B(Ge)
|
|
61210
61215
|
}, null, 8, [
|
|
61211
61216
|
"visible",
|
|
61212
61217
|
"max-shortcut-count",
|
|
@@ -61216,7 +61221,7 @@ var f6 = { class: "draggable-container-content" }, p6 = /* @__PURE__ */ N4(/* @_
|
|
|
61216
61221
|
])) : J("v-if", !0)
|
|
61217
61222
|
], 2)], 8, ["to"]));
|
|
61218
61223
|
}
|
|
61219
|
-
}), [["__scopeId", "data-v-
|
|
61224
|
+
}), [["__scopeId", "data-v-73c36917"]]);
|
|
61220
61225
|
//#endregion
|
|
61221
61226
|
//#region src/vue2-wrapper.ts
|
|
61222
61227
|
function v6(e) {
|