@blueking/ai-blueking 2.2.3-dev.2 → 2.2.3

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.
@@ -2624,7 +2624,11 @@ var hn = { class: "left-section" }, gn = { class: "logo" }, _n = ["src"], vn = {
2624
2624
  }, xn = {
2625
2625
  key: 1,
2626
2626
  class: "bkai-icon bkai-auto-refresh-line"
2627
- }, Sn = { class: "right-section" }, Cn = /* @__PURE__ */ $t(/* @__PURE__ */ d({
2627
+ }, Sn = { class: "right-section" }, Cn = {
2628
+ key: 4,
2629
+ "aria-hidden": "true",
2630
+ class: "header-toolbar-divider"
2631
+ }, wn = /* @__PURE__ */ $t(/* @__PURE__ */ d({
2628
2632
  __name: "index",
2629
2633
  props: {
2630
2634
  agentName: { default: "" },
@@ -2912,57 +2916,59 @@ var hn = { class: "left-section" }, gn = { class: "logo" }, _n = ["src"], vn = {
2912
2916
  content: M($)("转人工"),
2913
2917
  boundary: "parent"
2914
2918
  }]]) : a("v-if", !0),
2915
- f.showAsideToggle ? z((C(), o("span", {
2916
- key: 3,
2917
- class: "bkai-icon aside-toggle",
2918
- onClick: n[5] ||= B((e) => p("toggle-aside"), ["stop"])
2919
- }, [u(M(m))])), [[M(h), {
2920
- content: f.asideCollapsed ? M($)("展开侧栏") : M($)("收起侧栏"),
2921
- boundary: "parent"
2922
- }]]) : a("v-if", !0),
2923
2919
  f.showCompressionIcon ? z((C(), o("i", {
2924
- key: 4,
2920
+ key: 3,
2925
2921
  class: _(["bkai-icon", I.value]),
2926
- onClick: n[6] ||= (e) => p("toggle-compression")
2922
+ onClick: n[5] ||= (e) => p("toggle-compression")
2927
2923
  }, null, 2)), [[M(h), {
2928
2924
  content: te.value,
2929
2925
  boundary: "parent"
2930
2926
  }]]) : a("v-if", !0),
2931
2927
  z(s("i", {
2932
2928
  class: "bkai-icon bkai-close-line-2",
2933
- onClick: n[7] ||= (e) => p("close")
2929
+ onClick: n[6] ||= (e) => p("close")
2934
2930
  }, null, 512), [[M(h), {
2935
2931
  content: M($)("关闭"),
2936
2932
  boundary: "parent"
2937
- }]])
2933
+ }]]),
2934
+ a(" 设计稿:关闭与侧栏展开之间有竖线分隔 "),
2935
+ f.showAsideToggle ? (C(), o("span", Cn)) : a("v-if", !0),
2936
+ f.showAsideToggle ? z((C(), o("span", {
2937
+ key: 5,
2938
+ class: "bkai-icon aside-toggle",
2939
+ onClick: n[7] ||= B((e) => p("toggle-aside"), ["stop"])
2940
+ }, [u(M(m))])), [[M(h), {
2941
+ content: f.asideCollapsed ? M($)("展开侧栏") : M($)("收起侧栏"),
2942
+ boundary: "parent"
2943
+ }]]) : a("v-if", !0)
2938
2944
  ])
2939
2945
  ], 2));
2940
2946
  }
2941
- }), [["__scopeId", "data-v-e7638280"]]);
2947
+ }), [["__scopeId", "data-v-34a1164a"]]);
2942
2948
  //#endregion
2943
2949
  //#region src/bootstrap/agent-bootstrap.ts
2944
- function wn(e) {
2950
+ function Tn(e) {
2945
2951
  let t = zt(e);
2946
2952
  fetch(t, {
2947
2953
  method: "GET",
2948
2954
  credentials: "include"
2949
2955
  }).catch(() => {});
2950
2956
  }
2951
- async function Tn(e, t = {}) {
2957
+ async function En(e, t = {}) {
2952
2958
  let { enableModelSelect: n = !0 } = t, r = [e.agent.getAgentInfo(), e.session.getSessions()];
2953
2959
  n && typeof e.agent.getLlms == "function" && r.push(e.agent.getLlms().catch((e) => {
2954
2960
  console.error("[runAgentBootstrap] Failed to load models:", e);
2955
2961
  })), await Promise.all(r);
2956
2962
  let i = e.agent.info.value?.saasUrl;
2957
- i && wn(i);
2963
+ i && Tn(i);
2958
2964
  }
2959
2965
  //#endregion
2960
2966
  //#region src/manager/business/model-selection-manager.ts
2961
- var En = class extends Error {
2967
+ var Dn = class extends Error {
2962
2968
  constructor(e = "当前没有可用模型,无法创建会话") {
2963
2969
  super(e), this.name = "ModelUnavailableError";
2964
2970
  }
2965
- }, Dn = class {
2971
+ }, On = class {
2966
2972
  _isLoading;
2967
2973
  _models;
2968
2974
  _selectedLlmCode;
@@ -3067,7 +3073,7 @@ var En = class extends Error {
3067
3073
  resolveModelForSession(e) {
3068
3074
  if (!this.enabled) return e;
3069
3075
  let t = this._models.value;
3070
- if (t.length === 0) throw new En();
3076
+ if (t.length === 0) throw new Dn();
3071
3077
  return e && t.some((t) => t.llm_code === e) ? e : this.hasValidSelection() ? this._selectedLlmCode.value : this.defaultModelCode();
3072
3078
  }
3073
3079
  setModels(e) {
@@ -3083,7 +3089,7 @@ var En = class extends Error {
3083
3089
  }
3084
3090
  this._selectedLlmCode.value = this._models.value.find((t) => t.llm_name === e)?.llm_code;
3085
3091
  }
3086
- }, On = class {
3092
+ }, kn = class {
3087
3093
  _isGenerating;
3088
3094
  _isStopLoading;
3089
3095
  agentModule;
@@ -3118,7 +3124,7 @@ var En = class extends Error {
3118
3124
  this.eventEmitter?.emit(e, t);
3119
3125
  }
3120
3126
  constructor(e, t, n = null, r = null, i = {}, a) {
3121
- this.agentModule = e, this.messageModule = t, this.sessionModule = n, this.eventEmitter = r, this.config = i, this.modelSelection = a ?? new Dn(e, n), this._isGenerating = T(!1), this._isStopLoading = T(!1);
3127
+ this.agentModule = e, this.messageModule = t, this.sessionModule = n, this.eventEmitter = r, this.config = i, this.modelSelection = a ?? new On(e, n), this._isGenerating = T(!1), this._isStopLoading = T(!1);
3122
3128
  }
3123
3129
  get isGenerating() {
3124
3130
  return this._isGenerating;
@@ -3286,7 +3292,7 @@ var En = class extends Error {
3286
3292
  this._isStopLoading.value = !1;
3287
3293
  }
3288
3294
  }
3289
- }, kn = class {
3295
+ }, An = class {
3290
3296
  agentModule;
3291
3297
  config;
3292
3298
  eventEmitter;
@@ -3300,7 +3306,7 @@ var En = class extends Error {
3300
3306
  return await this.modelSelection.ensureLoaded(), this.modelSelection.resolveModelForSession(e);
3301
3307
  }
3302
3308
  constructor(e, t = null, n = null, r = {}, i = null, a) {
3303
- this.sessionModule = e, this.agentModule = t, this.eventEmitter = n, this.config = r, this.messageModule = i, this.modelSelection = a ?? new Dn(t, e, { enabled: !1 });
3309
+ this.sessionModule = e, this.agentModule = t, this.eventEmitter = n, this.config = r, this.messageModule = i, this.modelSelection = a ?? new On(t, e, { enabled: !1 });
3304
3310
  }
3305
3311
  get currentSession() {
3306
3312
  return this.sessionModule.current;
@@ -3471,7 +3477,7 @@ var En = class extends Error {
3471
3477
  }), e;
3472
3478
  }
3473
3479
  }
3474
- }, An = class {
3480
+ }, jn = class {
3475
3481
  messageModule;
3476
3482
  sessionModule;
3477
3483
  constructor(e, t) {
@@ -3488,7 +3494,7 @@ var En = class extends Error {
3488
3494
  userMessageIds: e.map((e) => String(e.id))
3489
3495
  };
3490
3496
  }
3491
- }, jn = class {
3497
+ }, Mn = class {
3492
3498
  _agentShortcuts;
3493
3499
  _effectiveShortcuts;
3494
3500
  _propsShortcuts;
@@ -3545,7 +3551,7 @@ var En = class extends Error {
3545
3551
  setShortcuts(e) {
3546
3552
  this._propsShortcuts.value = e;
3547
3553
  }
3548
- }, Mn = class {
3554
+ }, Nn = class {
3549
3555
  _isCompressed;
3550
3556
  _isDraggingOrResizing;
3551
3557
  _nimbusMinimized;
@@ -3764,12 +3770,12 @@ var En = class extends Error {
3764
3770
  };
3765
3771
  }
3766
3772
  };
3767
- function Nn(e) {
3768
- return new Mn(e);
3773
+ function Pn(e) {
3774
+ return new Nn(e);
3769
3775
  }
3770
3776
  //#endregion
3771
3777
  //#region src/manager/event-types.ts
3772
- var Pn = {
3778
+ var Fn = {
3773
3779
  "panel-show": "show",
3774
3780
  "panel-hide": "close",
3775
3781
  "panel-toggle": null,
@@ -3819,7 +3825,7 @@ var Pn = {
3819
3825
  "agent-info-loaded": null,
3820
3826
  error: null
3821
3827
  };
3822
- function Fn(e, t) {
3828
+ function In(e, t) {
3823
3829
  switch (e) {
3824
3830
  case "send-message": return [t.content];
3825
3831
  case "rename": return [t.newName, t.sessionCode];
@@ -3850,7 +3856,7 @@ function Fn(e, t) {
3850
3856
  }
3851
3857
  //#endregion
3852
3858
  //#region src/manager/ui/ui-state-manager.ts
3853
- var In = class {
3859
+ var Ln = class {
3854
3860
  _selectedMessageIds;
3855
3861
  _isSelectionMode;
3856
3862
  _editingSessionCode;
@@ -3923,12 +3929,12 @@ var In = class {
3923
3929
  reset() {
3924
3930
  this.clearSelection(), this.disableSelectionMode(), this.stopEditingSession(), this.clearLoadingStates();
3925
3931
  }
3926
- }, Ln = class extends Error {
3932
+ }, Rn = class extends Error {
3927
3933
  constructor() {
3928
3934
  super("[ChatBot] Initialization was superseded by a newer init"), this.name = "ChatBotInitStaleError";
3929
3935
  }
3930
3936
  };
3931
- function Rn(e) {
3937
+ function zn(e) {
3932
3938
  let { props: t, emit: n, reportError: i, managerErrorBridge: a } = e, o = k(null), s = k(null), c = k(null), l = k(null), u = T(!1), d = T(!t.chatHelper), f = T(null), p = r(() => u.value), m = () => t.chatHelper ? !t.chatHelper.agent || !t.chatHelper.session || !t.chatHelper.message ? {
3933
3939
  valid: !1,
3934
3940
  error: "[ChatBot] Invalid chatHelper: missing required modules (agent, session, message)"
@@ -3964,7 +3970,7 @@ function Rn(e) {
3964
3970
  }, _ = 0, v = null, y = null, x = null, S = (e) => {
3965
3971
  x &&= (e ? x.reject(e) : x.resolve(), null), v = null;
3966
3972
  }, C = (e) => {
3967
- if (e !== _) throw new Ln();
3973
+ if (e !== _) throw new Rn();
3968
3974
  }, w = async (e) => {
3969
3975
  if (t.enableModelSelect !== !1) {
3970
3976
  if (t.models?.length) {
@@ -3978,26 +3984,26 @@ function Rn(e) {
3978
3984
  u.value = !1, f.value = null, d.value = !t.chatHelper, g(r), C(e), o.value = null, s.value = null, c.value = null, l.value = null;
3979
3985
  let p = h();
3980
3986
  if (!p) throw f.value ?? /* @__PURE__ */ Error("[ChatBot] Failed to create chatHelper");
3981
- let m = t.modelSelectionManager ?? new Dn(p.agent, p.session, { enabled: t.enableModelSelect !== !1 }), _ = new kn(p.session, p.agent, a, {
3987
+ let m = t.modelSelectionManager ?? new On(p.agent, p.session, { enabled: t.enableModelSelect !== !1 }), _ = new An(p.session, p.agent, a, {
3982
3988
  enableChatSession: !0,
3983
3989
  autoSwitchToInitialSession: !!t.sessionCode,
3984
3990
  loadRecentSessionOnMount: t.autoLoad,
3985
3991
  initialSessionCode: t.sessionCode,
3986
3992
  alwaysCreateNewSession: t.alwaysCreateNewSession
3987
- }, p.message, m), v = new On(p.agent, p.message, p.session, a, {
3993
+ }, p.message, m), v = new kn(p.agent, p.message, p.session, a, {
3988
3994
  openingRemark: t.helloText,
3989
3995
  predefinedQuestions: t.prompts,
3990
3996
  placeholder: t.placeholder,
3991
3997
  onSessionRenamed: (e, t) => n("rename", e, t)
3992
- }, m), y = new jn(null, t.shortcuts || []);
3998
+ }, m), y = new Mn(null, t.shortcuts || []);
3993
3999
  o.value = p, s.value = _, c.value = v, l.value = y;
3994
4000
  try {
3995
- d.value ? (await Tn(p, { enableModelSelect: t.enableModelSelect !== !1 && !t.models?.length }), C(e), await w(m), C(e), await _.loadRecentSession({ skipLoadSessions: !0 }), C(e)) : await w(m), C(e), u.value = !0, n("agent-info-loaded", p);
4001
+ d.value ? (await En(p, { enableModelSelect: t.enableModelSelect !== !1 && !t.models?.length }), C(e), await w(m), C(e), await _.loadRecentSession({ skipLoadSessions: !0 }), C(e)) : await w(m), C(e), u.value = !0, n("agent-info-loaded", p);
3996
4002
  } catch (t) {
3997
4003
  throw C(e), f.value = i(t, "Failed to initialize ChatBot"), t;
3998
4004
  }
3999
4005
  }, D = () => {
4000
- S(new Ln()), y = null;
4006
+ S(new Rn()), y = null;
4001
4007
  let e = ++_;
4002
4008
  v = new Promise((t, n) => {
4003
4009
  x = {
@@ -4028,7 +4034,7 @@ function Rn(e) {
4028
4034
  }
4029
4035
  //#endregion
4030
4036
  //#region src/components/composables/use-chatbot-state.ts
4031
- function zn(e) {
4037
+ function Bn(e) {
4032
4038
  let { props: t, chatHelper: n, chatBusinessManager: i, sessionBusinessManager: a, shortcutManager: o, isStandaloneMode: s, isInitialized: c, selectedShortcut: l } = e, u = r(() => i.value?.isStopLoading.value ? G.StopLoading : ((t.chatHelper || n.value)?.agent)?.isChatting?.value ? G.Streaming : G.Complete), d = r(() => u.value === G.Streaming ? ae.Disabled : void 0), f = r(() => i.value?.messages.value ?? []), p = r(() => i.value?.isMessagesLoading.value ?? !1);
4033
4039
  return {
4034
4040
  messageStatus: u,
@@ -4057,12 +4063,12 @@ function zn(e) {
4057
4063
  }
4058
4064
  //#endregion
4059
4065
  //#region src/components/composables/use-error-reporter.ts
4060
- var Bn = new Set([
4066
+ var Vn = new Set([
4061
4067
  "chat-error",
4062
4068
  "receive-error",
4063
4069
  "session-error"
4064
4070
  ]);
4065
- function Vn(e, t = {}) {
4071
+ function Hn(e, t = {}) {
4066
4072
  let n = /* @__PURE__ */ new WeakSet(), r = (r, i) => {
4067
4073
  let a = It(r);
4068
4074
  return n.has(a) ? a : (n.add(a), console.error(i ? `[ChatBot] ${i}:` : "[ChatBot] error:", r), e("error", a), j(t.errorToast) !== !1 && de({
@@ -4072,50 +4078,50 @@ function Vn(e, t = {}) {
4072
4078
  };
4073
4079
  return {
4074
4080
  managerErrorBridge: { emit: (e, t) => {
4075
- Bn.has(e) && r(t?.error);
4081
+ Vn.has(e) && r(t?.error);
4076
4082
  } },
4077
4083
  reportError: r
4078
4084
  };
4079
4085
  }
4080
4086
  //#endregion
4081
4087
  //#region src/components/composables/use-interrupt-resume.ts
4082
- var Hn = {
4088
+ var Un = {
4083
4089
  [U.ApprovalCancel]: Se.ApprovalCancel,
4084
4090
  [U.FlowNodeRetry]: Se.FlowNodeRetry,
4085
4091
  [U.FlowNodeSkip]: Se.FlowNodeSkip
4086
4092
  };
4087
- function Un(e) {
4093
+ function Wn(e) {
4088
4094
  return "operation" in e;
4089
4095
  }
4090
- function Wn(e) {
4096
+ function Gn(e) {
4091
4097
  return "interruptId" in e && "reason" in e && e.reason === H.UserQuestion;
4092
4098
  }
4093
- function Gn(e) {
4099
+ function Kn(e) {
4094
4100
  return e === "cancelled" ? Ae.Cancelled : Ae.Resolved;
4095
4101
  }
4096
- function Kn(e) {
4102
+ function qn(e) {
4097
4103
  let t = e?.session.current?.value?.sessionCode;
4098
4104
  if (!t) throw Error("[ChatBot] Cannot resume interrupt: no active session");
4099
4105
  return t;
4100
4106
  }
4101
- function qn(e) {
4107
+ function Jn(e) {
4102
4108
  return {
4103
4109
  interruptId: e.interruptId,
4104
- status: Gn(e.status),
4110
+ status: Kn(e.status),
4105
4111
  payload: e.payload
4106
4112
  };
4107
4113
  }
4108
- function Jn(e) {
4114
+ function Yn(e) {
4109
4115
  let { chatHelper: t, reportError: n } = e, r = async (e) => {
4110
4116
  let n = t.value;
4111
4117
  if (!n) throw Error("[ChatBot] Cannot resume interrupt: chatHelper not initialized");
4112
- if (!Un(e)) throw Error("[ChatBot] Unsupported interrupt resume payload");
4113
- let r = Kn(n);
4118
+ if (!Wn(e)) throw Error("[ChatBot] Unsupported interrupt resume payload");
4119
+ let r = qn(n);
4114
4120
  if (e.operation === U.ApprovalRefresh) {
4115
4121
  n.agent.pollResumeSession(r);
4116
4122
  return;
4117
4123
  }
4118
- let i = Hn[e.operation];
4124
+ let i = Un[e.operation];
4119
4125
  if (!i) throw Error(`[ChatBot] Unsupported interrupt resume operation: ${e.operation}`);
4120
4126
  let a = n.agent;
4121
4127
  if (e.operation === U.ApprovalCancel) {
@@ -4129,21 +4135,21 @@ function Jn(e) {
4129
4135
  }, i = async (e, n) => {
4130
4136
  let r = t.value;
4131
4137
  if (!r) throw Error("[ChatBot] Cannot resume interrupt: chatHelper not initialized");
4132
- let i = Kn(r);
4138
+ let i = qn(r);
4133
4139
  await r.agent.streamRequest({
4134
4140
  sessionCode: i,
4135
- resume: qn(e),
4141
+ resume: Jn(e),
4136
4142
  ...n ? { input: n } : {}
4137
4143
  });
4138
4144
  };
4139
4145
  return {
4140
4146
  handleInterruptResume: async (e, t) => {
4141
4147
  try {
4142
- if (Un(e)) {
4148
+ if (Wn(e)) {
4143
4149
  await r(e);
4144
4150
  return;
4145
4151
  }
4146
- if (Wn(e)) {
4152
+ if (Gn(e)) {
4147
4153
  await i(e);
4148
4154
  return;
4149
4155
  }
@@ -4154,7 +4160,7 @@ function Jn(e) {
4154
4160
  },
4155
4161
  resumeUserQuestionWithInput: async (e, t) => {
4156
4162
  try {
4157
- if (!t.payload || !Wn(t.payload)) throw Error("[ChatBot] Invalid user question resume options");
4163
+ if (!t.payload || !Gn(t.payload)) throw Error("[ChatBot] Invalid user question resume options");
4158
4164
  let n = typeof e == "string" ? e.trim() : "";
4159
4165
  if (!n) throw Error("[ChatBot] User question free text input is empty");
4160
4166
  await i(t.payload, n);
@@ -4166,7 +4172,7 @@ function Jn(e) {
4166
4172
  }
4167
4173
  //#endregion
4168
4174
  //#region src/components/composables/use-message-sender.ts
4169
- function Yn(e) {
4175
+ function Xn(e) {
4170
4176
  let { emit: t, chatHelper: n, chatBusinessManager: r, getRequestOptions: i, reportError: a, resumeUserQuestionWithInput: o, selectedShortcut: s, selectedResources: c } = e, l = k([[]]), u = k(""), d = (e, t) => {
4171
4177
  l.value = e, c.value = t;
4172
4178
  }, f = async (e, a = {}) => {
@@ -4231,11 +4237,11 @@ function Yn(e) {
4231
4237
  }
4232
4238
  //#endregion
4233
4239
  //#region src/components/composables/use-share-selection.ts
4234
- var Xn = (e) => !e || e.id === "share";
4235
- function Zn(e) {
4240
+ var Zn = (e) => !e || e.id === "share";
4241
+ function Qn(e) {
4236
4242
  let { emit: t, chatHelper: n, isStandaloneMode: r } = e, i = async (e) => {
4237
4243
  if (!(!n.value || e.length === 0)) try {
4238
- await Bt((await new An(n.value.message, n.value.session).shareMessages(e)).shareUrl), de({
4244
+ await Bt((await new jn(n.value.message, n.value.session).shareMessages(e)).shareUrl), de({
4239
4245
  message: "分享链接已复制到剪贴板",
4240
4246
  theme: "success"
4241
4247
  });
@@ -4247,12 +4253,12 @@ function Zn(e) {
4247
4253
  }
4248
4254
  };
4249
4255
  return { handleConfirmShare: async (e, n) => {
4250
- r.value && Xn(n) && await i(e), t("confirm-share", e, n);
4256
+ r.value && Zn(n) && await i(e), t("confirm-share", e, n);
4251
4257
  } };
4252
4258
  }
4253
4259
  //#endregion
4254
4260
  //#region src/components/composables/use-shortcuts.ts
4255
- function Qn(e) {
4261
+ function $n(e) {
4256
4262
  let { props: t, emit: n, shortcutManager: i, doSendMessage: a, reportError: o, selectedShortcut: s } = e, c = r(() => i.value?.effectiveShortcuts.value ?? []), l = (e, t) => {
4257
4263
  let n = e, r;
4258
4264
  if (r = n.enable_fill_back && n.fill_back_component_key ? n.fill_back_component_key : n.components?.find((e) => e.fillBack)?.key, r && t) {
@@ -4346,7 +4352,7 @@ function Qn(e) {
4346
4352
  }
4347
4353
  //#endregion
4348
4354
  //#region src/components/composables/use-tool-actions.ts
4349
- function $n(e) {
4355
+ function er(e) {
4350
4356
  let { emit: t, chatHelper: n, chatBusinessManager: r, cite: i, focusInput: a, getShortcutFromMessage: o, buildShortcutProperty: s, getRequestOptions: c, reportError: l, stopGeneration: u } = e, d = async (e) => {
4351
4357
  if (!r.value || !n.value) {
4352
4358
  console.error("[ChatBot] Cannot delete messages: chatBusinessManager not initialized");
@@ -4518,7 +4524,7 @@ function $n(e) {
4518
4524
  }
4519
4525
  //#endregion
4520
4526
  //#region src/components/chat-bot.vue
4521
- var er = /* @__PURE__ */ d({
4527
+ var tr = /* @__PURE__ */ d({
4522
4528
  __name: "chat-bot",
4523
4529
  props: {
4524
4530
  alwaysCreateNewSession: { type: Boolean },
@@ -4616,15 +4622,15 @@ var er = /* @__PURE__ */ d({
4616
4622
  set: () => {}
4617
4623
  }), A = r(() => H.value?.selectedLlmCode.value), j = () => {
4618
4624
  S.value?.focus?.();
4619
- }, { reportError: N, managerErrorBridge: P } = Vn(p, { errorToast: () => s.errorToast }), { chatHelper: F, isStandaloneMode: I, isInitialized: z, isReady: B, initError: te, whenReady: ne, chatBusinessManager: H, sessionBusinessManager: U, shortcutManager: W } = Rn({
4625
+ }, { reportError: N, managerErrorBridge: P } = Hn(p, { errorToast: () => s.errorToast }), { chatHelper: F, isStandaloneMode: I, isInitialized: z, isReady: B, initError: te, whenReady: ne, chatBusinessManager: H, sessionBusinessManager: U, shortcutManager: W } = zn({
4620
4626
  props: s,
4621
4627
  emit: p,
4622
4628
  reportError: N,
4623
4629
  managerErrorBridge: P
4624
- }), { handleInterruptResume: ie, resumeUserQuestionWithInput: G } = Jn({
4630
+ }), { handleInterruptResume: ie, resumeUserQuestionWithInput: G } = Yn({
4625
4631
  chatHelper: F,
4626
4632
  reportError: N
4627
- }), { userInput: ae, cite: oe, handleUpdateModelValue: ce, doSendMessage: le, handleSendMessage: ue, handleUpload: de, handleArtifactClick: fe, handleStopSending: pe, stopGeneration: me } = Yn({
4633
+ }), { userInput: ae, cite: oe, handleUpdateModelValue: ce, doSendMessage: le, handleSendMessage: ue, handleUpload: de, handleArtifactClick: fe, handleStopSending: pe, stopGeneration: me } = Xn({
4628
4634
  emit: p,
4629
4635
  chatHelper: F,
4630
4636
  chatBusinessManager: H,
@@ -4633,7 +4639,7 @@ var er = /* @__PURE__ */ d({
4633
4639
  resumeUserQuestionWithInput: G,
4634
4640
  selectedShortcut: E,
4635
4641
  selectedResources: w
4636
- }), { handleSelectShortcut: he, handleCloseShortcut: ge, handleShortcutSubmit: _e, selectShortcutWithText: ve, getShortcutFromMessage: ye, buildShortcutProperty: be, sendShortcutDirectly: K } = Qn({
4642
+ }), { handleSelectShortcut: he, handleCloseShortcut: ge, handleShortcutSubmit: _e, selectShortcutWithText: ve, getShortcutFromMessage: ye, buildShortcutProperty: be, sendShortcutDirectly: K } = $n({
4637
4643
  props: s,
4638
4644
  emit: p,
4639
4645
  chatHelper: F,
@@ -4641,7 +4647,7 @@ var er = /* @__PURE__ */ d({
4641
4647
  doSendMessage: le,
4642
4648
  reportError: N,
4643
4649
  selectedShortcut: E
4644
- }), { messageStatus: q, messageToolsStatus: J, messages: xe, isMessagesLoading: Se, isGenerating: Ce, currentSession: we, isWelcomeState: Te, openingRemark: Ee, effectiveResources: Y, effectivePrompts: X, effectiveSkills: De, effectiveSupportUpload: Oe, chatbotStyle: ke, filteredShortcuts: Ae } = zn({
4650
+ }), { messageStatus: q, messageToolsStatus: J, messages: xe, isMessagesLoading: Se, isGenerating: Ce, currentSession: we, isWelcomeState: Te, openingRemark: Ee, effectiveResources: Y, effectivePrompts: X, effectiveSkills: De, effectiveSupportUpload: Oe, chatbotStyle: ke, filteredShortcuts: Ae } = Bn({
4645
4651
  props: s,
4646
4652
  chatHelper: F,
4647
4653
  chatBusinessManager: H,
@@ -4650,7 +4656,7 @@ var er = /* @__PURE__ */ d({
4650
4656
  isStandaloneMode: I,
4651
4657
  isInitialized: z,
4652
4658
  selectedShortcut: E
4653
- }), { handleAgentAction: Z, handleAgentFeedback: je, handleUserAction: Me, handleUserInputConfirm: Ne, handleUserShortcutConfirm: Pe, handleStopStreaming: Fe } = $n({
4659
+ }), { handleAgentAction: Z, handleAgentFeedback: je, handleUserAction: Me, handleUserInputConfirm: Ne, handleUserShortcutConfirm: Pe, handleStopStreaming: Fe } = er({
4654
4660
  emit: p,
4655
4661
  chatHelper: F,
4656
4662
  chatBusinessManager: H,
@@ -4678,7 +4684,7 @@ var er = /* @__PURE__ */ d({
4678
4684
  L(() => s.models, (e) => {
4679
4685
  s.enableModelSelect === !1 || !H.value || e?.length && H.value.setModels(e);
4680
4686
  });
4681
- let { handleConfirmShare: Q } = Zn({
4687
+ let { handleConfirmShare: Q } = Qn({
4682
4688
  emit: p,
4683
4689
  chatHelper: F,
4684
4690
  isStandaloneMode: I
@@ -4831,13 +4837,13 @@ var er = /* @__PURE__ */ d({
4831
4837
  key: "0"
4832
4838
  } : void 0]), 1032, /* @__PURE__ */ "aside-collapsed.cite.render-mode.selected-model.selected-shortcut.chat-loading.common-tippy-options.execution-tab-visible.get-side-render-component.get-side-tab-render-component.message-status.message-tools.message-tools-status.messages.model-value.models.on-agent-action.on-agent-feedback.on-artifact-click.on-interrupt-resume.on-send-message.on-stop-sending.on-upload.on-user-action.on-user-input-confirm.on-user-shortcut-confirm.opening-remark.placeholder.prompts.resize-props.resources.shortcut-id.shortcuts.size.skills.timezone.support-upload.update-tools.welcome-title.onConfirmShare.onDeleteShortcut.onSelectShortcut.onShortcutClose.onShortcutSubmit.onStopStreaming.onUpdate:modelValue".split("."))], 6));
4833
4839
  }
4834
- }), tr = /* @__PURE__ */ function(e) {
4840
+ }), nr = /* @__PURE__ */ function(e) {
4835
4841
  return e.ERROR = "error", e.IDLE = "idle", e.LOADING_AGENT = "loading_agent", e.READY = "ready", e;
4836
4842
  }({});
4837
- function nr(e) {
4843
+ function rr(e) {
4838
4844
  let { url: t, requestOptions: n, autoInit: i = !0, protocolCallbacks: a, enableModelSelect: o = !0 } = e, s = j(t);
4839
4845
  if (!s) throw Error("[useChatBootstrap] url is required");
4840
- let c = T(tr.IDLE), l = T(null), u = T(!1), d = /* @__PURE__ */ new Map(), f = new Z({
4846
+ let c = T(nr.IDLE), l = T(null), u = T(!1), d = /* @__PURE__ */ new Map(), f = new Z({
4841
4847
  onStart: () => {
4842
4848
  a?.onStart?.();
4843
4849
  },
@@ -4855,14 +4861,14 @@ function nr(e) {
4855
4861
  protocol: f
4856
4862
  });
4857
4863
  f.injectMessageModule(p.message);
4858
- let m = r(() => c.value === tr.LOADING_AGENT), h = r(() => c.value === tr.READY), g = r(() => p.agent.info.value ?? null), _ = r(() => g.value?.agentName ?? ""), v = r(() => p.session.current.value ?? null), y = r(() => p.session.list.value ?? []), b = null, x = 0, S = async (e) => {
4864
+ let m = r(() => c.value === nr.LOADING_AGENT), h = r(() => c.value === nr.READY), g = r(() => p.agent.info.value ?? null), _ = r(() => g.value?.agentName ?? ""), v = r(() => p.session.current.value ?? null), y = r(() => p.session.list.value ?? []), b = null, x = 0, S = async (e) => {
4859
4865
  l.value = null;
4860
4866
  try {
4861
- if (c.value = tr.LOADING_AGENT, await Tn(p, { enableModelSelect: o }), e !== x) return;
4862
- c.value = tr.READY, u.value = !0;
4867
+ if (c.value = nr.LOADING_AGENT, await En(p, { enableModelSelect: o }), e !== x) return;
4868
+ c.value = nr.READY, u.value = !0;
4863
4869
  } catch (t) {
4864
4870
  if (e !== x) return;
4865
- throw console.error("[useChatBootstrap] Initialization failed:", t), l.value = t, c.value = tr.ERROR, t;
4871
+ throw console.error("[useChatBootstrap] Initialization failed:", t), l.value = t, c.value = nr.ERROR, t;
4866
4872
  }
4867
4873
  }, C = async () => {
4868
4874
  if (u.value) return;
@@ -4872,7 +4878,7 @@ function nr(e) {
4872
4878
  e === x && (b = null);
4873
4879
  }), b;
4874
4880
  }, w = () => {
4875
- x += 1, c.value = tr.IDLE, l.value = null, u.value = !1, b = null;
4881
+ x += 1, c.value = nr.IDLE, l.value = null, u.value = !1, b = null;
4876
4882
  }, E = async () => {
4877
4883
  w(), await C();
4878
4884
  }, D = async (e) => {
@@ -4906,7 +4912,7 @@ function nr(e) {
4906
4912
  }
4907
4913
  //#endregion
4908
4914
  //#region src/composables/use-event-bridge.ts
4909
- function rr(e) {
4915
+ function ir(e) {
4910
4916
  return {
4911
4917
  sendMessage: (t) => e("send-message", { content: t }),
4912
4918
  receiveStart: () => e("receive-start", {}),
@@ -4927,12 +4933,12 @@ function rr(e) {
4927
4933
  shareMessages: (t) => e("share-messages", { messageIds: t })
4928
4934
  };
4929
4935
  }
4930
- function ir(e) {
4936
+ function ar(e) {
4931
4937
  let { componentManager: t, emit: n, debug: r = !1 } = e, i = [], a = () => {
4932
- for (let [e, a] of Object.entries(Pn)) {
4938
+ for (let [e, a] of Object.entries(Fn)) {
4933
4939
  if (a === null) continue;
4934
4940
  let o = t.on(e, (t) => {
4935
- let i = Fn(e, t);
4941
+ let i = In(e, t);
4936
4942
  r && console.debug(`[useEventBridge] ${e} -> ${a}`, i), n(a, ...i);
4937
4943
  });
4938
4944
  i.push(o);
@@ -4954,17 +4960,17 @@ function ir(e) {
4954
4960
  }
4955
4961
  //#endregion
4956
4962
  //#region src/composables/use-ai-blueking-init.ts
4957
- function ar(e) {
4958
- let { props: t, emit: n } = e, i = T(), a = T(), o = r(() => zt(t.url ?? "")), s = Nn({
4963
+ function or(e) {
4964
+ let { props: t, emit: n } = e, i = T(), a = T(), o = r(() => zt(t.url ?? "")), s = Pn({
4959
4965
  initialPanelVisible: !1,
4960
4966
  initialNimbusMinimized: t.defaultMinimize,
4961
4967
  enablePopup: t.enablePopup,
4962
4968
  enableNimbus: !t.hideNimbus,
4963
4969
  enableDraggable: t.draggable
4964
- }), c = s.panelVisible, l = s.nimbusMinimized, { forwardToManager: u } = ir({
4970
+ }), c = s.panelVisible, l = s.nimbusMinimized, { forwardToManager: u } = ar({
4965
4971
  componentManager: s,
4966
4972
  emit: n
4967
- }), d = rr(u), f = /* @__PURE__ */ new WeakSet(), p = null, m = null, h = () => {
4973
+ }), d = ir(u), f = /* @__PURE__ */ new WeakSet(), p = null, m = null, h = () => {
4968
4974
  p &&= (clearTimeout(p.timer), null);
4969
4975
  }, g = (e) => {
4970
4976
  let { apiName: n, error: r, action: i, source: a, shouldToast: o = !0 } = e, c = r instanceof Error ? r.message : String(r), l = r instanceof Error ? r : null;
@@ -5006,7 +5012,7 @@ function ar(e) {
5006
5012
  error: e,
5007
5013
  source: "business"
5008
5014
  });
5009
- }, { chatHelper: S, isReady: C, error: w, agentInfo: E, agentName: D, currentSession: O, initialize: k } = nr({
5015
+ }, { chatHelper: S, isReady: C, error: w, agentInfo: E, agentName: D, currentSession: O, initialize: k } = rr({
5010
5016
  url: o,
5011
5017
  requestOptions: () => j(t.requestOptions),
5012
5018
  autoInit: !0,
@@ -5033,7 +5039,7 @@ function ar(e) {
5033
5039
  A.onError?.((e) => {
5034
5040
  _(e);
5035
5041
  }, { ignoreErrors: t.ignoreErrors });
5036
- let M = new Dn(A.agent, A.session, { enabled: t.enableModelSelect !== !1 }), N = async () => {
5042
+ let M = new On(A.agent, A.session, { enabled: t.enableModelSelect !== !1 }), N = async () => {
5037
5043
  if (t.enableModelSelect !== !1) {
5038
5044
  if (t.models?.length) {
5039
5045
  M.setModels(t.models);
@@ -5041,11 +5047,11 @@ function ar(e) {
5041
5047
  }
5042
5048
  await M.ensureLoaded();
5043
5049
  }
5044
- }, P = new kn(A.session, A.agent, null, {
5050
+ }, P = new An(A.session, A.agent, null, {
5045
5051
  enableChatSession: t.enableChatSession,
5046
5052
  initialSessionCode: t.initialSessionCode,
5047
5053
  alwaysCreateNewSession: t.alwaysCreateNewSession
5048
- }, A.message, M), ee = new An(A.message, A.session), F = new jn(null, t.shortcuts || []), I = null, R = () => t.loadRecentSessionOnMount ? (I ||= N().then(() => P.loadRecentSession({ skipLoadSessions: !0 })).finally(() => {
5054
+ }, A.message, M), ee = new jn(A.message, A.session), F = new Mn(null, t.shortcuts || []), I = null, R = () => t.loadRecentSessionOnMount ? (I ||= N().then(() => P.loadRecentSession({ skipLoadSessions: !0 })).finally(() => {
5049
5055
  I = null;
5050
5056
  }), I) : Promise.resolve(), z = async () => {
5051
5057
  await v("init", async () => {
@@ -5137,7 +5143,7 @@ function ar(e) {
5137
5143
  }
5138
5144
  //#endregion
5139
5145
  //#region src/composables/use-ai-selection.ts
5140
- function or(e) {
5146
+ function sr(e) {
5141
5147
  let { shortcutManager: t, chatBotRef: n, forwardToManager: i, show: a, props: o } = e, s = T(!1), c = T("");
5142
5148
  return {
5143
5149
  aiSelectionVisible: s,
@@ -5159,7 +5165,7 @@ function or(e) {
5159
5165
  }
5160
5166
  //#endregion
5161
5167
  //#region src/composables/use-nimbus.ts
5162
- function sr(e, t = !1) {
5168
+ function cr(e, t = !1) {
5163
5169
  let n = window.innerHeight - 48 - 40, r = window.innerWidth - 48 - 16, i = T(r), a = T(n), o = T(0), s = T(t), c = T(!1), l = T(!1), u = 0, d = (e) => {
5164
5170
  e ? i.value = window.innerWidth - 12 : i.value = r;
5165
5171
  }, f = (e, t) => {
@@ -5212,9 +5218,9 @@ function sr(e, t = !1) {
5212
5218
  }
5213
5219
  //#endregion
5214
5220
  //#region src/composables/use-panel-container.ts
5215
- var cr = 560;
5216
- function lr(e) {
5217
- let { componentManager: t, chatBotRef: n, forwarders: r, forwardToManager: i, beforeNimbusClick: a, ensureSessionReady: o } = e, s = T(!0), c = cr, l = async (e) => {
5221
+ var lr = 560;
5222
+ function ur(e) {
5223
+ let { componentManager: t, chatBotRef: n, forwarders: r, forwardToManager: i, beforeNimbusClick: a, ensureSessionReady: o } = e, s = T(!0), c = lr, l = async (e) => {
5218
5224
  t.showPanel(e), o && await o(), e && n.value && await n.value.switchSession(e);
5219
5225
  }, u = async (e) => {
5220
5226
  await l(e);
@@ -5241,7 +5247,7 @@ function lr(e) {
5241
5247
  }, y = (e) => {
5242
5248
  t.setCompressed(e);
5243
5249
  }, b = (e, t) => {
5244
- c = Math.max(cr, t ?? c);
5250
+ c = Math.max(lr, t ?? c);
5245
5251
  }, x = async () => {
5246
5252
  s.value &&= (await t.expandForSidePanel(c, { onBeforeSizeChange: () => {
5247
5253
  s.value = !1;
@@ -5316,7 +5322,7 @@ function lr(e) {
5316
5322
  }
5317
5323
  //#endregion
5318
5324
  //#region src/composables/use-session-handlers.ts
5319
- function ur(e) {
5325
+ function dr(e) {
5320
5326
  let { chatHelper: t, sessionBusinessManager: n, chatBotRef: r, forwarders: i, reportSdkError: a, currentSession: o } = e, s = T(""), c = T(!0), l = T(!1), u = T(!1), d = () => Mt(t.message.list.value);
5321
5327
  return L(() => o.value, (e) => {
5322
5328
  e && (s.value = e.sessionName || "", l.value = (e.sessionContentCount ?? 0) > 0 || d());
@@ -5447,7 +5453,7 @@ function ur(e) {
5447
5453
  }
5448
5454
  //#endregion
5449
5455
  //#region src/composables/use-share-handlers.ts
5450
- function dr(e) {
5456
+ function fr(e) {
5451
5457
  let { shareBusinessManager: t, chatBotRef: n, emit: r, forwarders: i, reportSdkError: a } = e, o = T(!1);
5452
5458
  return {
5453
5459
  isShareLoading: o,
@@ -5458,7 +5464,7 @@ function dr(e) {
5458
5464
  n.value?.exitShareMode();
5459
5465
  },
5460
5466
  handleConfirmShare: async (e, s) => {
5461
- if (!Xn(s)) {
5467
+ if (!Zn(s)) {
5462
5468
  n.value?.exitShareMode(), r("confirm-share", e, s);
5463
5469
  return;
5464
5470
  }
@@ -5484,7 +5490,7 @@ function dr(e) {
5484
5490
  }
5485
5491
  //#endregion
5486
5492
  //#region src/composables/use-tippy.ts
5487
- function fr(e = {}) {
5493
+ function pr(e = {}) {
5488
5494
  let t = T([]), n = (n, r, i = {}) => {
5489
5495
  try {
5490
5496
  let a = typeof n == "string" ? document.querySelector(n) : n;
@@ -5537,7 +5543,7 @@ function fr(e = {}) {
5537
5543
  }
5538
5544
  //#endregion
5539
5545
  //#region src/config/prop-defaults.ts
5540
- var pr = {
5546
+ var mr = {
5541
5547
  url: "",
5542
5548
  title: "",
5543
5549
  extCls: "",
@@ -5584,7 +5590,7 @@ var pr = {
5584
5590
  defaultChatInputPosition: void 0,
5585
5591
  errorToast: !0,
5586
5592
  ignoreErrors: () => []
5587
- }, mr = class extends Z {
5593
+ }, hr = class extends Z {
5588
5594
  eventEmitter;
5589
5595
  constructor(e = {}) {
5590
5596
  super({
@@ -5613,7 +5619,7 @@ var pr = {
5613
5619
  super.handleToolCallStartEvent(e), this.eventEmitter?.emit("tool-call-start", { event: e });
5614
5620
  }
5615
5621
  };
5616
- function hr(e = {}) {
5622
+ function gr(e = {}) {
5617
5623
  let { eventEmitter: t, onStart: n, onMessage: r, onDone: i, onError: a, onTextChunk: o } = e;
5618
5624
  return new Z({
5619
5625
  onStart: () => {
@@ -5632,7 +5638,7 @@ function hr(e = {}) {
5632
5638
  }
5633
5639
  //#endregion
5634
5640
  //#region src/containers/use-draggable.ts
5635
- function gr(e = {}, t) {
5641
+ function _r(e = {}, t) {
5636
5642
  let n = e.initWidth || 400, r = e.minWidth || 400, i = e.minHeight || 400, a = e.maxWidthPercent || 40, o = e.compressedHeight || 800, s = e.compressedPadding === void 0 ? 0 : e.compressedPadding, c = T(e.defaultLeft === void 0 ? window.innerWidth - n : e.defaultLeft), l = T(e.defaultTop === void 0 ? 0 : e.defaultTop), u = T(e.defaultHeight === void 0 ? window.innerHeight - (e.defaultTop === void 0 ? 0 : e.defaultTop) : e.defaultHeight), d = T(n), f = T(l.value), p = T(c.value), m = T(d.value), h = T(u.value), _ = T(Math.max(window.innerWidth * (a / 100), m.value)), v = T(!1), y = T(0), S = null, C = null, w = 0, E = 0, D = T(!1), O = (e) => {
5637
5643
  let t = window.innerWidth, n = { ...e };
5638
5644
  return n.width > t && (n.width = t), n.x + n.width > t && (n.x = t - n.width), n.x < 0 && (n.x = 0), n;
@@ -5743,7 +5749,7 @@ function gr(e = {}, t) {
5743
5749
  }
5744
5750
  //#endregion
5745
5751
  //#region src/containers/draggable-container.vue?vue&type=script&setup=true&lang.ts
5746
- var _r = { class: "draggable-container-content" }, vr = /* @__PURE__ */ $t(/* @__PURE__ */ d({
5752
+ var vr = { class: "draggable-container-content" }, yr = /* @__PURE__ */ $t(/* @__PURE__ */ d({
5747
5753
  __name: "draggable-container",
5748
5754
  props: {
5749
5755
  className: { default: "" },
@@ -5780,7 +5786,7 @@ var _r = { class: "draggable-container-content" }, vr = /* @__PURE__ */ $t(/* @_
5780
5786
  "compression-change"
5781
5787
  ],
5782
5788
  setup(e, { expose: t, emit: n }) {
5783
- let a = e, o = n, c = T(!1), { minWidth: l, minHeight: u, maxWidth: d, top: f, left: p, width: m, height: h, isCompressed: g, isSidePanelExpanded: v, handleDragging: b, handleResizing: x, handleDragStop: S, handleResizeStop: w, toggleCompression: E, updatePosition: D, updateSize: k, updatePositionAndSize: A, expandForSidePanel: j, collapseSidePanel: N, abortSidePanelSequence: P } = gr({
5789
+ let a = e, o = n, c = T(!1), { minWidth: l, minHeight: u, maxWidth: d, top: f, left: p, width: m, height: h, isCompressed: g, isSidePanelExpanded: v, handleDragging: b, handleResizing: x, handleDragStop: S, handleResizeStop: w, toggleCompression: E, updatePosition: D, updateSize: k, updatePositionAndSize: A, expandForSidePanel: j, collapseSidePanel: N, abortSidePanelSequence: P } = _r({
5784
5790
  initWidth: a.defaultWidth,
5785
5791
  minWidth: a.minWidth,
5786
5792
  minHeight: a.minHeight,
@@ -5857,7 +5863,7 @@ var _r = { class: "draggable-container-content" }, vr = /* @__PURE__ */ $t(/* @_
5857
5863
  onResizeStop: U,
5858
5864
  onResizing: ne
5859
5865
  }, {
5860
- default: R(() => [s("div", _r, [O(e.$slots, "default", {}, void 0, !0)])]),
5866
+ default: R(() => [s("div", vr, [O(e.$slots, "default", {}, void 0, !0)])]),
5861
5867
  _: 3
5862
5868
  }, 8, [
5863
5869
  "active",
@@ -5875,11 +5881,11 @@ var _r = { class: "draggable-container-content" }, vr = /* @__PURE__ */ $t(/* @_
5875
5881
  "y"
5876
5882
  ])), [[I, a.visible]]);
5877
5883
  }
5878
- }), [["__scopeId", "data-v-7417a71b"]]), yr = { class: "nimbus-bkai-wrapper" }, br = [
5884
+ }), [["__scopeId", "data-v-7417a71b"]]), br = { class: "nimbus-bkai-wrapper" }, xr = [
5879
5885
  "width",
5880
5886
  "height",
5881
5887
  "src"
5882
- ], xr = /* @__PURE__ */ $t(/* @__PURE__ */ d({
5888
+ ], Sr = /* @__PURE__ */ $t(/* @__PURE__ */ d({
5883
5889
  name: "NimbusButton",
5884
5890
  __name: "nimbus",
5885
5891
  props: {
@@ -5931,11 +5937,11 @@ var _r = { class: "draggable-container-content" }, vr = /* @__PURE__ */ $t(/* @_
5931
5937
  right: -6
5932
5938
  }
5933
5939
  }
5934
- }, c = r(() => o[n.size]), l = T(null), u = T(null), { nimbusLeft: d, nimbusTop: f, isMinimize: p, handleClick: m, handleMinimize: h, handleDragging: v, handleMouseEnter: y, handleMouseLeave: S, handleMouseDown: w, handleMouseUp: E } = sr(a, n.isMinimize);
5940
+ }, c = r(() => o[n.size]), l = T(null), u = T(null), { nimbusLeft: d, nimbusTop: f, isMinimize: p, handleClick: m, handleMinimize: h, handleDragging: v, handleMouseEnter: y, handleMouseLeave: S, handleMouseDown: w, handleMouseUp: E } = cr(a, n.isMinimize);
5935
5941
  L(p, (e) => {
5936
5942
  a("update:isMinimize", e);
5937
5943
  });
5938
- let D = r(() => p.value ? $("恢复默认大小") : $("最小化,将缩成锚点")), { createTooltip: O, destroyAll: k } = fr({
5944
+ let D = r(() => p.value ? $("恢复默认大小") : $("最小化,将缩成锚点")), { createTooltip: O, destroyAll: k } = pr({
5939
5945
  theme: "ai-blueking",
5940
5946
  delay: [0, 0]
5941
5947
  }), A = () => {
@@ -5977,12 +5983,12 @@ var _r = { class: "draggable-container-content" }, vr = /* @__PURE__ */ $t(/* @_
5977
5983
  onMouseenter: n[3] ||= (...e) => M(y) && M(y)(...e),
5978
5984
  onMouseleave: n[4] ||= (...e) => M(S) && M(S)(...e),
5979
5985
  onMouseup: n[5] ||= (...e) => M(E) && M(E)(...e)
5980
- }, [s("div", yr, [s("img", {
5986
+ }, [s("div", br, [s("img", {
5981
5987
  width: c.value.img,
5982
5988
  height: c.value.img,
5983
5989
  src: M(be),
5984
5990
  alt: "nimbus"
5985
- }, null, 8, br)]), s("i", {
5991
+ }, null, 8, xr)]), s("i", {
5986
5992
  ref_key: "minimizeButtonRef",
5987
5993
  ref: u,
5988
5994
  class: _(["nimbus-mini bkai-icon", M(p) ? "bkai-yinyong" : "bkai-minus-line"]),
@@ -5998,7 +6004,7 @@ var _r = { class: "draggable-container-content" }, vr = /* @__PURE__ */ $t(/* @_
5998
6004
  "onDragging"
5999
6005
  ]));
6000
6006
  }
6001
- }), [["__scopeId", "data-v-26b6f3ea"]]), Sr = /* @__PURE__ */ $t(/* @__PURE__ */ d({
6007
+ }), [["__scopeId", "data-v-26b6f3ea"]]), Cr = /* @__PURE__ */ $t(/* @__PURE__ */ d({
6002
6008
  inheritAttrs: !1,
6003
6009
  __name: "ai-blueking",
6004
6010
  props: /* @__PURE__ */ h({
@@ -6055,7 +6061,7 @@ var _r = { class: "draggable-container-content" }, vr = /* @__PURE__ */ $t(/* @_
6055
6061
  resizeProps: {},
6056
6062
  size: {},
6057
6063
  timezone: {}
6058
- }, pr),
6064
+ }, mr),
6059
6065
  emits: [
6060
6066
  "show",
6061
6067
  "close",
@@ -6084,30 +6090,30 @@ var _r = { class: "draggable-container-content" }, vr = /* @__PURE__ */ $t(/* @_
6084
6090
  "share"
6085
6091
  ],
6086
6092
  setup(e, { expose: n, emit: o }) {
6087
- let l = e, d = o, p = N(), { chatHelper: h, componentManager: g, modelSelection: b, sessionBusinessManager: x, shareBusinessManager: S, shortcutManager: w, forwarders: T, forwardToManager: E, chatBotRef: D, draggableContainerRef: k, panelVisible: A, nimbusMinimized: j, normalizedUrl: P, agentName: ee, currentSession: F, isCompressed: I, isWelcomeState: L, messageToolsTippyOptions: z, agentResources: B, agentPrompts: V, agentSkills: ne, handleError: H, reportSdkError: U, ensureSessionReady: W, updateAgentInfo: re } = ar({
6093
+ let l = e, d = o, p = N(), { chatHelper: h, componentManager: g, modelSelection: b, sessionBusinessManager: x, shareBusinessManager: S, shortcutManager: w, forwarders: T, forwardToManager: E, chatBotRef: D, draggableContainerRef: k, panelVisible: A, nimbusMinimized: j, normalizedUrl: P, agentName: ee, currentSession: F, isCompressed: I, isWelcomeState: L, messageToolsTippyOptions: z, agentResources: B, agentPrompts: V, agentSkills: ne, handleError: H, reportSdkError: U, ensureSessionReady: W, updateAgentInfo: re } = or({
6088
6094
  props: l,
6089
6095
  emit: d
6090
- }), ie = r(() => b.selectedLlmCode.value), { show: G, hide: ae, handleShow: oe, handleClose: se, handleNimbusClick: ce, handleDragging: le, handleResizing: ue, handleDragStop: de, handleResizeStop: fe, handleToggleCompression: pe, handleCompressionChange: me, handleExecutionPanelChange: he, handleToggleAside: ge, handleAsideCollapsedUpdate: _e, asideCollapsed: ve, sendMessage: ye, handleReceiveStart: be, handleReceiveText: K, handleReceiveEnd: q, handleStop: J, stopGeneration: xe, setCiteText: Se, focusInput: Ce, selectShortcut: we, sendShortcut: Te, getChatHelper: Ee, updatePosition: Y, updateSize: X, updatePositionAndSize: De, handleShortcutClick: Oe } = lr({
6096
+ }), ie = r(() => b.selectedLlmCode.value), { show: G, hide: ae, handleShow: oe, handleClose: se, handleNimbusClick: ce, handleDragging: le, handleResizing: ue, handleDragStop: de, handleResizeStop: fe, handleToggleCompression: pe, handleCompressionChange: me, handleExecutionPanelChange: he, handleToggleAside: ge, handleAsideCollapsedUpdate: _e, asideCollapsed: ve, sendMessage: ye, handleReceiveStart: be, handleReceiveText: K, handleReceiveEnd: q, handleStop: J, stopGeneration: xe, setCiteText: Se, focusInput: Ce, selectShortcut: we, sendShortcut: Te, getChatHelper: Ee, updatePosition: Y, updateSize: X, updatePositionAndSize: De, handleShortcutClick: Oe } = ur({
6091
6097
  componentManager: g,
6092
6098
  chatBotRef: D,
6093
6099
  forwarders: T,
6094
6100
  forwardToManager: E,
6095
6101
  beforeNimbusClick: l.beforeNimbusClick,
6096
6102
  ensureSessionReady: W
6097
- }), { sessionName: ke, hasPermission: Ae, hasSessionContents: Z, autoGenerateLoading: je, handleNewChat: Me, handleNewChatCreated: Ne, handleHistoryClick: Pe, handleHistorySessionSwitch: Fe, handleHistorySessionDelete: Ie, handleHistorySessionRename: Le, handleAutoGenerateName: Re, handleHelpClick: ze, handleRename: Be, handleSessionRenamed: Q, handleSessionSwitched: Ve, addNewSession: He, switchToSession: Ue, updateSessionName: We } = ur({
6103
+ }), { sessionName: ke, hasPermission: Ae, hasSessionContents: Z, autoGenerateLoading: je, handleNewChat: Me, handleNewChatCreated: Ne, handleHistoryClick: Pe, handleHistorySessionSwitch: Fe, handleHistorySessionDelete: Ie, handleHistorySessionRename: Le, handleAutoGenerateName: Re, handleHelpClick: ze, handleRename: Be, handleSessionRenamed: Q, handleSessionSwitched: Ve, addNewSession: He, switchToSession: Ue, updateSessionName: We } = dr({
6098
6104
  chatHelper: h,
6099
6105
  sessionBusinessManager: x,
6100
6106
  chatBotRef: D,
6101
6107
  forwarders: T,
6102
6108
  reportSdkError: U,
6103
6109
  currentSession: F
6104
- }), { isShareLoading: Ge, handleShare: Ke, handleCancelShare: qe, handleConfirmShare: Je } = dr({
6110
+ }), { isShareLoading: Ge, handleShare: Ke, handleCancelShare: qe, handleConfirmShare: Je } = fr({
6105
6111
  shareBusinessManager: S,
6106
6112
  chatBotRef: D,
6107
6113
  emit: (e, t, n) => d(e, t, n),
6108
6114
  forwarders: T,
6109
6115
  reportSdkError: U
6110
- }), { aiSelectionVisible: Ye, filteredPopupShortcuts: Xe, handleSelectionChange: Ze, handleAiSelectionShortcut: Qe } = or({
6116
+ }), { aiSelectionVisible: Ye, filteredPopupShortcuts: Xe, handleSelectionChange: Ze, handleAiSelectionShortcut: Qe } = sr({
6111
6117
  shortcutManager: w,
6112
6118
  chatBotRef: D,
6113
6119
  forwardToManager: E,
@@ -6141,7 +6147,7 @@ var _r = { class: "draggable-container-content" }, vr = /* @__PURE__ */ $t(/* @_
6141
6147
  M(p).class
6142
6148
  ]) }, [
6143
6149
  a(" 可拖拽容器 "),
6144
- u(M(vr), {
6150
+ u(M(yr), {
6145
6151
  ref_key: "draggableContainerRef",
6146
6152
  ref: k,
6147
6153
  "compressed-padding": l.miniPadding,
@@ -6162,7 +6168,7 @@ var _r = { class: "draggable-container-content" }, vr = /* @__PURE__ */ $t(/* @_
6162
6168
  }, {
6163
6169
  default: R(() => [s("div", { class: _(["ai-blueking-panel", { "has-messages": !M(L) }]) }, [
6164
6170
  a(" 独立的 Header 组件 "),
6165
- l.hideHeader ? a("v-if", !0) : (C(), i(Cn, {
6171
+ l.hideHeader ? a("v-if", !0) : (C(), i(wn, {
6166
6172
  key: 0,
6167
6173
  "agent-name": M(ee),
6168
6174
  "aside-collapsed": M(ve),
@@ -6202,7 +6208,7 @@ var _r = { class: "draggable-container-content" }, vr = /* @__PURE__ */ $t(/* @_
6202
6208
  key: "0"
6203
6209
  } : void 0]), 1032, /* @__PURE__ */ "agent-name.aside-collapsed.auto-generate-loading.chat-helper.draggable.dropdown-menu-config.enable-chat-session.has-permission.has-session-contents.is-compression-height.render-mode.selected-llm-code.session-business-manager.session-name.show-compression-icon.show-history-icon.show-more-icon.show-new-chat-icon.title.onAutoGenerateName.onClose.onHelpClick.onHistoryClick.onHistorySessionDelete.onHistorySessionRename.onHistorySessionSwitch.onNewChat.onNewChatCreated.onRename.onShare.onToggleAside.onToggleCompression".split("."))),
6204
6210
  a(" ChatBot 核心组件(仅聊天区域) "),
6205
- u(er, {
6211
+ u(tr, {
6206
6212
  ref_key: "chatBotRef",
6207
6213
  ref: D,
6208
6214
  "always-create-new-session": l.alwaysCreateNewSession,
@@ -6290,7 +6296,7 @@ var _r = { class: "draggable-container-content" }, vr = /* @__PURE__ */ $t(/* @_
6290
6296
  "onResizing"
6291
6297
  ]),
6292
6298
  a(" Nimbus 悬浮球 "),
6293
- l.hideNimbus ? a("v-if", !0) : (C(), i(xr, {
6299
+ l.hideNimbus ? a("v-if", !0) : (C(), i(Sr, {
6294
6300
  key: 0,
6295
6301
  "is-minimize": M(j),
6296
6302
  "onUpdate:isMinimize": n[5] ||= (e) => m(j) ? j.value = e : null,
@@ -6327,4 +6333,4 @@ var _r = { class: "draggable-container-content" }, vr = /* @__PURE__ */ $t(/* @_
6327
6333
  }
6328
6334
  }), [["__scopeId", "data-v-133cd210"]]);
6329
6335
  //#endregion
6330
- export { Z as AGUIProtocol, Sr as AIBlueking, Sr as default, mr as BluekingProtocol, tr as BootstrapPhase, er as ChatBot, On as ChatBusinessManager, Mn as ComponentManager, vr as DraggableContainer, W as MessageContentType, oe as RenderMode, kn as SessionBusinessManager, jn as ShortcutManager, In as UIStateManager, hr as createBluekingProtocol, Nn as createComponentManager, pr as defaultProps, Ft as parseCustomBlocks, nr as useChatBootstrap, Et as useChatHelper, gr as useDraggable };
6336
+ export { Z as AGUIProtocol, Cr as AIBlueking, Cr as default, hr as BluekingProtocol, nr as BootstrapPhase, tr as ChatBot, kn as ChatBusinessManager, Nn as ComponentManager, yr as DraggableContainer, W as MessageContentType, oe as RenderMode, An as SessionBusinessManager, Mn as ShortcutManager, Ln as UIStateManager, gr as createBluekingProtocol, Pn as createComponentManager, mr as defaultProps, Ft as parseCustomBlocks, rr as useChatBootstrap, Et as useChatHelper, _r as useDraggable };