@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.
@@ -1 +1 @@
1
- {"version":3,"file":"ai-blueking.vue.d.ts","sourceRoot":"","sources":["../src/ai-blueking.vue"],"names":[],"mappings":"AAyXE,OAAO,KAAK,EAAmB,gBAAgB,EAAE,eAAe,EAAY,MAAM,SAAS,CAAC;AAC5F,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAMvF,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;AAqnBJ,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"}
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: i, componentManager: a, sessionBusinessManager: o, shareBusinessManager: s, shortcutManager: c, forwarders: l, forwardToManager: u, chatBotRef: d, draggableContainerRef: f, panelVisible: p, nimbusMinimized: m, normalizedUrl: h, agentName: g, currentSession: _, isCompressed: v, isWelcomeState: y, messageToolsTippyOptions: b, agentResources: x, agentPrompts: S, agentSkills: C, handleError: w, reportSdkError: T, ensureSessionReady: E, updateAgentInfo: D } = N3({
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: n
61010
- }), { show: O, hide: k, handleShow: A, handleClose: j, handleNimbusClick: M, handleDragging: N, handleResizing: P, handleDragStop: F, handleResizeStop: I, handleToggleCompression: ee, handleCompressionChange: te, handleExecutionPanelChange: ne, sendMessage: re, handleReceiveStart: ie, handleReceiveText: ae, handleReceiveEnd: oe, handleStop: se, stopGeneration: le, setCiteText: ue, focusInput: de, selectShortcut: fe, sendShortcut: he, getChatHelper: ge, updatePosition: _e, updateSize: ve, updatePositionAndSize: ye, handleShortcutClick: be } = L3({
61011
- componentManager: a,
61012
- chatBotRef: d,
61013
- forwarders: l,
61014
- forwardToManager: u,
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: E
61017
- }), { sessionName: L, hasPermission: xe, hasSessionContents: Se, autoGenerateLoading: Ce, handleNewChat: we, handleNewChatCreated: Te, handleHistoryClick: Ee, handleHistorySessionSwitch: De, handleHistorySessionDelete: Oe, handleHistorySessionRename: ke, handleAutoGenerateName: Ae, handleHelpClick: je, handleRename: Me, handleSessionSwitched: Ne, addNewSession: Pe, switchToSession: Fe, updateSessionName: Ie } = R3({
61018
- chatHelper: i,
61019
- sessionBusinessManager: o,
61020
- chatBotRef: d,
61021
- forwarders: l,
61022
- reportSdkError: T,
61023
- currentSession: _
61024
- }), { isShareLoading: Le, handleShare: Re, handleCancelShare: ze, handleConfirmShare: Be } = z3({
61025
- shareBusinessManager: s,
61026
- chatBotRef: d,
61027
- forwarders: l,
61028
- reportSdkError: T
61029
- }), { aiSelectionVisible: Ve, filteredPopupShortcuts: He, handleSelectionChange: Ue, handleAiSelectionShortcut: We } = P3({
61030
- shortcutManager: c,
61031
- chatBotRef: d,
61032
- forwardToManager: u,
61033
- show: O,
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
- }), Ge = (e) => {
61036
- Se.value = !0, l.sendMessage(e);
61036
+ }), qe = (e) => {
61037
+ we.value = !0, d.sendMessage(e);
61037
61038
  };
61038
61039
  return t({
61039
- show: O,
61040
- handleShow: A,
61041
- handleClose: j,
61042
- hide: k,
61043
- sendMessage: re,
61044
- selectShortcut: fe,
61045
- sendShortcut: he,
61046
- getChatHelper: ge,
61047
- stopGeneration: le,
61048
- addNewSession: Pe,
61049
- switchToSession: Fe,
61050
- updateSessionName: Ie,
61051
- updatePosition: _e,
61052
- updateSize: ve,
61053
- updatePositionAndSize: ye,
61054
- setCiteText: ue,
61055
- focusInput: de,
61056
- updateAgentInfo: D
61057
- }), (e, t) => (U(), G(pr, { to: r.teleportTo }, [K("div", { class: pe(["ai-blueking-v2", r.extCls]) }, [
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: f,
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(p),
61072
- onCompressionChange: B(te),
61073
- onDragStop: B(F),
61074
- onDragging: B(N),
61075
- onResizeStop: B(I),
61076
- onResizing: B(P)
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(y) }]) }, [
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(g),
61083
- "chat-helper": B(i),
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(xe),
61088
- "has-session-contents": B(Se),
61089
- "auto-generate-loading": B(Ce),
61090
- "is-compression-height": B(v),
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(o),
61093
- "session-name": B(L),
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(Ae),
61100
- onClose: B(j),
61101
- onHelpClick: B(je),
61102
- onHistoryClick: B(Ee),
61103
- onHistorySessionDelete: B(Oe),
61104
- onHistorySessionRename: B(ke),
61105
- onHistorySessionSwitch: B(De),
61106
- onNewChat: B(we),
61107
- onNewChatCreated: B(Te),
61108
- onRename: B(Me),
61109
- onShare: B(Re),
61110
- onToggleCompression: B(ee)
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: d,
61124
+ ref: p,
61120
61125
  "always-create-new-session": r.alwaysCreateNewSession,
61121
61126
  "auto-load": r.loadRecentSessionOnMount,
61122
- "chat-helper": B(i),
61127
+ "chat-helper": B(o),
61123
61128
  "hello-text": r.helloText,
61124
- "message-tools-tippy-options": B(b),
61129
+ "message-tools-tippy-options": B(S),
61125
61130
  placeholder: r.placeholder,
61126
- prompts: B(S),
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(x),
61139
+ resources: B(C),
61135
61140
  "session-code": r.initialSessionCode,
61136
- "share-loading": B(Le),
61141
+ "share-loading": B(ze),
61137
61142
  shortcuts: r.shortcuts,
61138
- skills: B(C),
61143
+ skills: B(T),
61139
61144
  style: ce({ height: r.hideHeader ? "100%" : "calc(100% - 48px)" }),
61140
- url: B(h),
61141
- onCancelShare: B(ze),
61142
- onConfirmShare: t[0] ||= (e) => B(Be)(e),
61143
- onError: t[1] ||= (e) => B(w)(e),
61144
- onExecutionPanelChange: B(ne),
61145
- onReceiveEnd: B(oe),
61146
- onReceiveStart: B(ie),
61147
- onReceiveText: B(ae),
61148
- onRequestShare: B(Re),
61149
- onSendMessage: t[2] ||= (e) => Ge(e),
61150
- onSessionSwitched: t[3] ||= (e) => B(Ne)(e),
61151
- onShortcutClick: B(be),
61152
- onStop: B(se)
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(m),
61187
- "onUpdate:isMinimize": t[4] ||= (e) => /* @__PURE__ */ Zt(m) ? m.value = e : null,
61188
- "is-panel-show": B(p),
61189
- "onUpdate:isPanelShow": t[5] ||= (e) => /* @__PURE__ */ Zt(p) ? p.value = e : null,
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(M)
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(Ve),
61204
- "onUpdate:visible": t[6] ||= (e) => /* @__PURE__ */ Zt(Ve) ? Ve.value = e : null,
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(He),
61208
- onSelectShortcut: B(We),
61209
- onSelectionChange: B(Ue)
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-b7e21f21"]]);
61224
+ }), [["__scopeId", "data-v-73c36917"]]);
61220
61225
  //#endregion
61221
61226
  //#region src/vue2-wrapper.ts
61222
61227
  function v6(e) {