@blueking/chat-x 0.0.49-beta.8 → 0.0.49-beta.9

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/index.js CHANGED
@@ -566,6 +566,7 @@ var pt = (e) => {
566
566
  停止生成: "Stop generating",
567
567
  正在停止: "Stopping",
568
568
  耗时: "Duration",
569
+ 昨天: "Yesterday",
569
570
  参数: "Parameters",
570
571
  描述: "Description",
571
572
  执行情况: "Execution Status",
@@ -2521,7 +2522,8 @@ var qi = () => _(Ui), Ji = (() => {
2521
2522
  };
2522
2523
  }, Xi = Symbol("GLOBAL_CONFIG_TOKEN"), Zi = (e) => (A(Xi, e), {
2523
2524
  size: e.size,
2524
- supportUpload: e.supportUpload
2525
+ supportUpload: e.supportUpload,
2526
+ timezone: e.timezone
2525
2527
  }), Qi = () => _(Xi, void 0), $i = (e) => {
2526
2528
  let t = I(0);
2527
2529
  E(() => {
@@ -9077,7 +9079,61 @@ var Vf = ["src"], Hf = {
9077
9079
  }, 8, ["disabled", "loading"])])], 512), [[V, !i.value]])
9078
9080
  ], 2));
9079
9081
  }
9080
- }), kh = { class: "ai-delete-confirm" }, Ah = { class: "ai-delete-confirm__title" }, jh = { class: "ai-delete-confirm__desc" }, Mh = { class: "ai-delete-confirm__actions" }, Nh = /* @__PURE__ */ m({
9082
+ }), kh = 864e5, Ah = {
9083
+ day: "numeric",
9084
+ hour: "2-digit",
9085
+ hourCycle: "h23",
9086
+ minute: "2-digit",
9087
+ month: "numeric",
9088
+ year: "numeric"
9089
+ }, jh = /* @__PURE__ */ new Map(), Mh = (e) => {
9090
+ let t = e == null ? "" : e, n = jh.get(t);
9091
+ if (n) return n;
9092
+ let r;
9093
+ try {
9094
+ r = new Intl.DateTimeFormat("en-US", X(X({}, Ah), {}, { timeZone: e }));
9095
+ } catch (e) {
9096
+ r = new Intl.DateTimeFormat("en-US", Ah);
9097
+ }
9098
+ return jh.set(t, r), r;
9099
+ }, Nh = (e, t) => {
9100
+ let n = e.formatToParts(t), r = (e) => {
9101
+ var t;
9102
+ return Number((t = n.find((t) => t.type === e)) == null ? void 0 : t.value);
9103
+ };
9104
+ return {
9105
+ day: r("day"),
9106
+ hour: r("hour"),
9107
+ minute: r("minute"),
9108
+ month: r("month"),
9109
+ year: r("year")
9110
+ };
9111
+ }, Ph = (e) => Date.UTC(e.year, e.month - 1, e.day), Fh = (e) => String(e).padStart(2, "0"), Ih = (e, t) => {
9112
+ if (e == null || e === "") return "";
9113
+ let n = new Date(e).getTime();
9114
+ if (Number.isNaN(n)) return "";
9115
+ let r = Mh(t), i = Nh(r, n), a = Nh(r, Date.now()), o = `${Fh(i.hour)}:${Fh(i.minute)}`, s = Math.round((Ph(a) - Ph(i)) / kh);
9116
+ if (s === 0) return o;
9117
+ if (s === 1) return `${G("昨天")} ${o}`;
9118
+ let c = `${i.month}-${i.day} ${o}`;
9119
+ return i.year === a.year ? c : `${i.year}-${c}`;
9120
+ }, Lh = {
9121
+ key: 0,
9122
+ class: "ai-message-time"
9123
+ }, Rh = /* @__PURE__ */ m({
9124
+ __name: "message-time",
9125
+ props: {
9126
+ createdAt: {},
9127
+ timezone: {}
9128
+ },
9129
+ setup(e) {
9130
+ let t = e, n = Qi(), r = a(() => {
9131
+ var e, r;
9132
+ return (e = t.timezone) == null ? n == null || (r = n.timezone) == null ? void 0 : r.value : e;
9133
+ }), i = a(() => Ih(t.createdAt, r.value));
9134
+ return (e, t) => i.value ? (k(), c("span", Lh, L(i.value), 1)) : s("", !0);
9135
+ }
9136
+ }), zh = { class: "ai-delete-confirm" }, Bh = { class: "ai-delete-confirm__title" }, Vh = { class: "ai-delete-confirm__desc" }, Hh = { class: "ai-delete-confirm__actions" }, Uh = /* @__PURE__ */ m({
9081
9137
  __name: "delete-tool",
9082
9138
  props: {
9083
9139
  description: {},
@@ -9120,10 +9176,10 @@ var Vf = ["src"], Hf = {
9120
9176
  ref_key: "tippyRef",
9121
9177
  ref: i
9122
9178
  }, c.value, { onShow: u }), {
9123
- content: U(() => [l("div", kh, [
9124
- l("div", Ah, L(R(G)("确认删除该回答?")), 1),
9125
- l("div", jh, L(R(G)("删除操作无法撤回,请谨慎操作!")), 1),
9126
- l("div", Mh, [f(R(le), {
9179
+ content: U(() => [l("div", zh, [
9180
+ l("div", Bh, L(R(G)("确认删除该回答?")), 1),
9181
+ l("div", Vh, L(R(G)("删除操作无法撤回,请谨慎操作!")), 1),
9182
+ l("div", Hh, [f(R(le), {
9127
9183
  size: "small",
9128
9184
  theme: "danger",
9129
9185
  onClick: m
@@ -9142,7 +9198,7 @@ var Vf = ["src"], Hf = {
9142
9198
  _: 1
9143
9199
  }, 16));
9144
9200
  }
9145
- }), Ph = { class: "ai-feedback-title" }, Fh = { class: "ai-feedback-reason-list" }, Ih = ["onClick"], Lh = { class: "ai-feedback-other" }, Rh = { class: "ai-feedback-footer" }, zh = /* @__PURE__ */ m({
9201
+ }), Wh = { class: "ai-feedback-title" }, Gh = { class: "ai-feedback-reason-list" }, Kh = ["onClick"], qh = { class: "ai-feedback-other" }, Jh = { class: "ai-feedback-footer" }, Yh = /* @__PURE__ */ m({
9146
9202
  __name: "user-feedback",
9147
9203
  props: {
9148
9204
  loading: { type: Boolean },
@@ -9162,23 +9218,23 @@ var Vf = ["src"], Hf = {
9162
9218
  class: "ai-user-feedback",
9163
9219
  onMouseenter: r[1] || (r[1] = ce(() => {}, ["stop", "prevent"]))
9164
9220
  }, [
9165
- l("div", Ph, L(t.title), 1),
9166
- l("div", Fh, [t.loading ? (k(), c(e, { key: 0 }, N(8, (e) => l("div", {
9221
+ l("div", Wh, L(t.title), 1),
9222
+ l("div", Gh, [t.loading ? (k(), c(e, { key: 0 }, N(8, (e) => l("div", {
9167
9223
  key: e,
9168
9224
  class: "reason-item ai-skeleton-element"
9169
9225
  })), 64)) : (k(!0), c(e, { key: 1 }, N(t.reasonList, (e) => (k(), c("div", {
9170
9226
  key: e,
9171
9227
  class: S(["reason-item", { "is-active": a.value.includes(e) }]),
9172
9228
  onClick: (t) => o(e)
9173
- }, L(e), 11, Ih))), 128))]),
9174
- l("div", Lh, [f(R(pe), {
9229
+ }, L(e), 11, Kh))), 128))]),
9230
+ l("div", qh, [f(R(pe), {
9175
9231
  modelValue: i.value,
9176
9232
  "onUpdate:modelValue": r[0] || (r[0] = (e) => i.value = e),
9177
9233
  placeholder: R(G)("说出您的想法"),
9178
9234
  rows: 3,
9179
9235
  type: "textarea"
9180
9236
  }, null, 8, ["modelValue", "placeholder"])]),
9181
- l("div", Rh, [f(R(le), {
9237
+ l("div", Jh, [f(R(le), {
9182
9238
  class: "custom-btn",
9183
9239
  disabled: !i.value && a.value.length === 0,
9184
9240
  size: "small",
@@ -9198,17 +9254,26 @@ var Vf = ["src"], Hf = {
9198
9254
  })])
9199
9255
  ], 32));
9200
9256
  }
9201
- }), Bh = {
9257
+ }), Xh = {
9202
9258
  ref: "messageToolsRef",
9203
9259
  class: "ai-message-tools-container"
9204
- }, Vh = {
9205
- class: "message-tools",
9206
- style: { "margin-right": "8px" }
9207
- }, Hh = {
9260
+ }, Zh = {
9208
9261
  key: 0,
9262
+ class: "ai-message-tools-prepend"
9263
+ }, Qh = { class: "message-tools" }, $h = {
9264
+ key: 1,
9209
9265
  class: "ai-divider",
9210
- style: { "margin-right": "8px" }
9211
- }, Uh = { class: "message-tools" }, Wh = /* @__PURE__ */ m({
9266
+ style: {
9267
+ "margin-right": "4px",
9268
+ "margin-left": "4px"
9269
+ }
9270
+ }, eg = {
9271
+ key: 2,
9272
+ class: "message-tools"
9273
+ }, tg = {
9274
+ key: 3,
9275
+ class: "ai-message-tools-append"
9276
+ }, ng = /* @__PURE__ */ m({
9212
9277
  __name: "message-tools",
9213
9278
  props: {
9214
9279
  messageTools: { default: () => jt },
@@ -9269,8 +9334,9 @@ var Vf = ["src"], Hf = {
9269
9334
  };
9270
9335
  return O(() => {
9271
9336
  v(), p.value = [];
9272
- }), (n, r) => (k(), c("div", Bh, [
9273
- l("div", Vh, [(k(!0), c(e, null, N(t.messageTools, (n) => (k(), c(e, { key: n.id }, [n.id === "delete" ? (k(), o(Nh, b({
9337
+ }), (n, r) => (k(), c("div", Xh, [
9338
+ n.$slots.prepend ? (k(), c("div", Zh, [P(n.$slots, "prepend")])) : s("", !0),
9339
+ l("div", Qh, [(k(!0), c(e, null, N(t.messageTools, (n) => (k(), c(e, { key: n.id }, [n.id === "delete" ? (k(), o(Uh, b({
9274
9340
  key: 0,
9275
9341
  ref_for: !0
9276
9342
  }, n, {
@@ -9293,14 +9359,14 @@ var Vf = ["src"], Hf = {
9293
9359
  "tippy-options",
9294
9360
  "onClick"
9295
9361
  ]))], 64))), 128))]),
9296
- t.updateTools.length > 0 ? (k(), c("div", Hh)) : s("", !0),
9297
- l("div", Uh, [(k(!0), c(e, null, N(t.updateTools, (n) => (k(), c(e, { key: n.id }, [n.id === "like" || n.id === "unlike" ? (k(), o(R(xe), b({
9362
+ t.updateTools.length > 0 ? (k(), c("div", $h)) : s("", !0),
9363
+ t.updateTools.length > 0 ? (k(), c("div", eg, [(k(!0), c(e, null, N(t.updateTools, (n) => (k(), c(e, { key: n.id }, [n.id === "like" || n.id === "unlike" ? (k(), o(R(xe), b({
9298
9364
  key: 0,
9299
9365
  ref_for: !0,
9300
9366
  ref_key: "feedbackTippyRef",
9301
9367
  ref: u
9302
9368
  }, { ref_for: !0 }, h.value, { onShow: (e) => C(n.id) }), {
9303
- content: U(() => [f(zh, {
9369
+ content: U(() => [f(Yh, {
9304
9370
  loading: d.value,
9305
9371
  "reason-list": p.value,
9306
9372
  title: n.id === "like" ? R(G)("什么原因让你满意?") : R(G)("什么原因让你不满意?"),
@@ -9326,7 +9392,7 @@ var Vf = ["src"], Hf = {
9326
9392
  "onClick"
9327
9393
  ])]),
9328
9394
  _: 2
9329
- }, 1040, ["onShow"])) : n.id === "delete" ? (k(), o(Nh, b({
9395
+ }, 1040, ["onShow"])) : n.id === "delete" ? (k(), o(Uh, b({
9330
9396
  key: 1,
9331
9397
  ref_for: !0
9332
9398
  }, n, {
@@ -9348,10 +9414,11 @@ var Vf = ["src"], Hf = {
9348
9414
  "disabled",
9349
9415
  "tippy-options",
9350
9416
  "onClick"
9351
- ]))], 64))), 128))])
9417
+ ]))], 64))), 128))])) : s("", !0),
9418
+ n.$slots.append ? (k(), c("div", tg, [P(n.$slots, "append")])) : s("", !0)
9352
9419
  ], 512));
9353
9420
  }
9354
- }), Gh = m({
9421
+ }), rg = m({
9355
9422
  name: "HighlightKeyword",
9356
9423
  props: { text: {
9357
9424
  type: String,
@@ -9368,7 +9435,7 @@ var Vf = ["src"], Hf = {
9368
9435
  });
9369
9436
  return () => g("span", r.value);
9370
9437
  }
9371
- }), Kh = { class: "ai-activity-message" }, qh = { class: "ai-activity-message-content" }, Jh = /* @__PURE__ */ m({
9438
+ }), ig = { class: "ai-activity-message" }, ag = { class: "ai-activity-message-content" }, og = /* @__PURE__ */ m({
9372
9439
  __name: "activity-layout",
9373
9440
  props: /* @__PURE__ */ y({ activityType: {} }, {
9374
9441
  collapsed: X({ type: Boolean }, { default: !1 }),
@@ -9377,15 +9444,15 @@ var Vf = ["src"], Hf = {
9377
9444
  emits: ["update:collapsed"],
9378
9445
  setup(e) {
9379
9446
  let t = ie(e, "collapsed");
9380
- return (n, r) => (k(), c("div", Kh, [l("div", {
9447
+ return (n, r) => (k(), c("div", ig, [l("div", {
9381
9448
  class: "ai-activity-message-title",
9382
9449
  onClick: r[0] || (r[0] = (e) => t.value = !t.value)
9383
9450
  }, [P(n.$slots, "title", C(h({ collapsed: t.value }))), e.activityType === R(bt).FlowAgent ? s("", !0) : (k(), c("span", {
9384
9451
  key: 0,
9385
9452
  class: S(["ai-activity-message-title-icon collapsed-icon", { "is-collapsed": t.value }])
9386
- }, [f(R(jr))], 2))]), W(l("div", qh, [P(n.$slots, "default")], 512), [[V, !t.value]])]));
9453
+ }, [f(R(jr))], 2))]), W(l("div", ag, [P(n.$slots, "default")], 512), [[V, !t.value]])]));
9387
9454
  }
9388
- }), Yh = [
9455
+ }), sg = [
9389
9456
  {
9390
9457
  color: "#3A84FF",
9391
9458
  icon: null,
@@ -9441,16 +9508,16 @@ var Vf = ["src"], Hf = {
9441
9508
  label: G("跳过"),
9442
9509
  rawStates: ["SKIPPED"]
9443
9510
  }
9444
- ], Xh = Object.fromEntries(Yh.map((e) => [e.key, e])), Zh = Object.fromEntries(Yh.flatMap((e) => e.rawStates.map((t) => [t, e.key]))), Qh = (e) => {
9511
+ ], cg = Object.fromEntries(sg.map((e) => [e.key, e])), lg = Object.fromEntries(sg.flatMap((e) => e.rawStates.map((t) => [t, e.key]))), ug = (e) => {
9445
9512
  var t;
9446
- return (t = Zh[e]) == null ? "running" : t;
9447
- }, $h = (e) => {
9513
+ return (t = lg[e]) == null ? "running" : t;
9514
+ }, dg = (e) => {
9448
9515
  var t;
9449
- return (t = Xh[e].dotColor) == null ? Xh[e].color : t;
9450
- }, eg = (e) => {
9451
- let t = Xh[e].icon;
9516
+ return (t = cg[e].dotColor) == null ? cg[e].color : t;
9517
+ }, fg = (e) => {
9518
+ let t = cg[e].icon;
9452
9519
  return t ? i(t) : null;
9453
- }, tg = (e) => {
9520
+ }, pg = (e) => {
9454
9521
  let t = a(() => {
9455
9522
  var t;
9456
9523
  return Array.isArray(e.value) ? e.value : [(t = e.value) == null ? {} : t];
@@ -9464,10 +9531,10 @@ var Vf = ["src"], Hf = {
9464
9531
  viewTasks: a(() => t.value.map((e) => {
9465
9532
  var t, n;
9466
9533
  let r = Object.values((t = e.nodes) == null ? {} : t).map((e) => {
9467
- let t = Qh(e.state);
9534
+ let t = ug(e.state);
9468
9535
  return {
9469
9536
  convergedState: t,
9470
- dotColor: $h(t),
9537
+ dotColor: dg(t),
9471
9538
  elapsedTimeText: gt(e.elapsed_time),
9472
9539
  id: e.id,
9473
9540
  name: e.name,
@@ -9475,7 +9542,7 @@ var Vf = ["src"], Hf = {
9475
9542
  retryable: !!e.retryable,
9476
9543
  skippable: !!e.skippable
9477
9544
  };
9478
- }), i = r.reduce((e, t) => e + t.raw.elapsed_time, 0), a = Qh((n = e.task_state) == null ? "" : n);
9545
+ }), i = r.reduce((e, t) => e + t.raw.elapsed_time, 0), a = ug((n = e.task_state) == null ? "" : n);
9479
9546
  return {
9480
9547
  convergedState: a,
9481
9548
  hasConfidence: !!e.has_confidence,
@@ -9483,7 +9550,7 @@ var Vf = ["src"], Hf = {
9483
9550
  isActive: !!e.is_active,
9484
9551
  nodes: r,
9485
9552
  raw: e,
9486
- stateIcon: eg(a),
9553
+ stateIcon: fg(a),
9487
9554
  taskId: e.task_id,
9488
9555
  taskName: e.task_name,
9489
9556
  totalTimeText: gt(i)
@@ -9491,21 +9558,21 @@ var Vf = ["src"], Hf = {
9491
9558
  })),
9492
9559
  visibleStats: a(() => {
9493
9560
  let e = {};
9494
- for (let t of Yh) e[t.key] = 0;
9561
+ for (let t of sg) e[t.key] = 0;
9495
9562
  for (let i of t.value) {
9496
9563
  var n, r;
9497
- for (let [t, a] of Object.entries((n = (r = i.statistics) == null ? void 0 : r.state_counts) == null ? {} : n)) e[Qh(t)] += a;
9564
+ for (let [t, a] of Object.entries((n = (r = i.statistics) == null ? void 0 : r.state_counts) == null ? {} : n)) e[ug(t)] += a;
9498
9565
  }
9499
- return Yh.filter((t) => e[t.key] > 0).map((t) => ({
9566
+ return sg.filter((t) => e[t.key] > 0).map((t) => ({
9500
9567
  color: t.color,
9501
9568
  display: e[t.key] > 99 ? "99+" : String(e[t.key]),
9502
- dotColor: $h(t.key),
9569
+ dotColor: dg(t.key),
9503
9570
  key: t.key,
9504
9571
  label: t.label
9505
9572
  }));
9506
9573
  })
9507
9574
  };
9508
- }, ng = [{
9575
+ }, mg = [{
9509
9576
  blockedTip: () => G("任务正在跳过中,不可重试"),
9510
9577
  icon: Ur,
9511
9578
  id: St.FlowNodeRetry,
@@ -9519,10 +9586,10 @@ var Vf = ["src"], Hf = {
9519
9586
  label: () => G("跳过"),
9520
9587
  pendingLabel: () => G("跳过中"),
9521
9588
  visible: (e) => e.convergedState === "failed" && e.skippable
9522
- }], rg = (e, t) => `${e.task_id}:${t.id}:${t.retry}`, ig = (e) => {
9589
+ }], hg = (e, t) => `${e.task_id}:${t.id}:${t.retry}`, gg = (e) => {
9523
9590
  let { hideResumeActions: t, onInterruptResume: n, openNodeDetail: r } = e, i = I({}), a = (e, t, r) => {
9524
9591
  var a;
9525
- let o = rg(t, r);
9592
+ let o = hg(t, r);
9526
9593
  i.value[o] || (i.value = X(X({}, i.value), {}, { [o]: e }), (a = n.value) == null || a.call(n, {
9527
9594
  payload: {
9528
9595
  node_id: r.id,
@@ -9533,7 +9600,7 @@ var Vf = ["src"], Hf = {
9533
9600
  };
9534
9601
  return {
9535
9602
  getNodeActions: (e, n) => {
9536
- let o = i.value[rg(e.raw, n.raw)], s = (t != null && t.value ? [] : ng).filter((e) => e.visible(n)).map((t) => {
9603
+ let o = i.value[hg(e.raw, n.raw)], s = (t != null && t.value ? [] : mg).filter((e) => e.visible(n)).map((t) => {
9537
9604
  let r = o === t.id, i = o !== void 0 && !r;
9538
9605
  return {
9539
9606
  disabled: o !== void 0,
@@ -9554,47 +9621,47 @@ var Vf = ["src"], Hf = {
9554
9621
  run: () => r(e.raw, n.raw)
9555
9622
  }), s;
9556
9623
  },
9557
- isNodePending: (e, t) => i.value[rg(e.raw, t.raw)] !== void 0
9624
+ isNodePending: (e, t) => i.value[hg(e.raw, t.raw)] !== void 0
9558
9625
  };
9559
- }, ag = { class: "ai-detail-section" }, og = { class: "section-heading" }, sg = { class: "section-text" }, cg = /* @__PURE__ */ m({
9626
+ }, _g = { class: "ai-detail-section" }, vg = { class: "section-heading" }, yg = { class: "section-text" }, bg = /* @__PURE__ */ m({
9560
9627
  __name: "detail-section",
9561
9628
  props: { title: {} },
9562
9629
  setup(e) {
9563
- return (t, n) => (k(), c("div", ag, [l("div", og, [n[0] || (n[0] = l("span", { class: "section-bar" }, null, -1)), l("span", sg, L(e.title), 1)]), P(t.$slots, "default")]));
9630
+ return (t, n) => (k(), c("div", _g, [l("div", vg, [n[0] || (n[0] = l("span", { class: "section-bar" }, null, -1)), l("span", yg, L(e.title), 1)]), P(t.$slots, "default")]));
9564
9631
  }
9565
- }), lg = { class: "ai-simple-table" }, ug = { key: 0 }, dg = ["colspan"], fg = /* @__PURE__ */ m({
9632
+ }), xg = { class: "ai-simple-table" }, Sg = { key: 0 }, Cg = ["colspan"], wg = /* @__PURE__ */ m({
9566
9633
  __name: "simple-table",
9567
9634
  props: {
9568
9635
  columns: {},
9569
9636
  data: {}
9570
9637
  },
9571
9638
  setup(t) {
9572
- return (n, r) => (k(), c("table", lg, [l("thead", null, [l("tr", null, [(k(!0), c(e, null, N(t.columns, (e) => (k(), c("th", { key: e.key }, L(e.label), 1))), 128))])]), l("tbody", null, [(k(!0), c(e, null, N(t.data, (n, r) => (k(), c("tr", { key: r }, [(k(!0), c(e, null, N(t.columns, (e) => {
9639
+ return (n, r) => (k(), c("table", xg, [l("thead", null, [l("tr", null, [(k(!0), c(e, null, N(t.columns, (e) => (k(), c("th", { key: e.key }, L(e.label), 1))), 128))])]), l("tbody", null, [(k(!0), c(e, null, N(t.data, (n, r) => (k(), c("tr", { key: r }, [(k(!0), c(e, null, N(t.columns, (e) => {
9573
9640
  var t;
9574
9641
  return k(), c("td", {
9575
9642
  key: e.key,
9576
9643
  class: S({ "is-break-all": e.breakAll })
9577
9644
  }, L((t = n[e.key]) == null ? "--" : t), 3);
9578
- }), 128))]))), 128)), t.data.length ? s("", !0) : (k(), c("tr", ug, [l("td", {
9645
+ }), 128))]))), 128)), t.data.length ? s("", !0) : (k(), c("tr", Sg, [l("td", {
9579
9646
  class: "is-empty",
9580
9647
  colspan: t.columns.length
9581
- }, " -- ", 8, dg)]))])]));
9648
+ }, " -- ", 8, Cg)]))])]));
9582
9649
  }
9583
- }), pg = { class: "ai-flow-agent-node-detail" }, mg = { class: "detail-title" }, hg = {
9650
+ }), Tg = { class: "ai-flow-agent-node-detail" }, Eg = { class: "detail-title" }, Dg = {
9584
9651
  key: 1,
9585
9652
  class: "detail-title-content"
9586
- }, gg = { class: "detail-tab-bar" }, _g = ["onClick"], vg = { class: "detail-body" }, yg = { class: "skeleton-section" }, bg = { class: "skeleton-section" }, xg = { class: "info-form" }, Sg = { class: "info-label" }, Cg = { class: "info-value" }, wg = { class: "info-row" }, Tg = { class: "info-label" }, Eg = { class: "info-value" }, Dg = {
9653
+ }, Og = { class: "detail-tab-bar" }, kg = ["onClick"], Ag = { class: "detail-body" }, jg = { class: "skeleton-section" }, Mg = { class: "skeleton-section" }, Ng = { class: "info-form" }, Pg = { class: "info-label" }, Fg = { class: "info-value" }, Ig = { class: "info-row" }, Lg = { class: "info-label" }, Rg = { class: "info-value" }, zg = {
9587
9654
  key: 0,
9588
9655
  class: "failure-item"
9589
- }, Og = {
9656
+ }, Bg = {
9590
9657
  key: 1,
9591
9658
  class: "failure-item"
9592
- }, kg = { class: "info-row" }, Ag = { class: "info-label" }, jg = { class: "info-value" }, Mg = {
9659
+ }, Vg = { class: "info-row" }, Hg = { class: "info-label" }, Ug = { class: "info-value" }, Wg = {
9593
9660
  key: 0,
9594
9661
  class: "skeleton-section"
9595
- }, Ng = /* @__PURE__ */ function(e) {
9662
+ }, Gg = /* @__PURE__ */ function(e) {
9596
9663
  return e.Config = "config", e.Output = "output", e;
9597
- }(Ng || {}), Pg = /* @__PURE__ */ m({
9664
+ }(Gg || {}), Kg = /* @__PURE__ */ m({
9598
9665
  __name: "flow-agent-node-detail",
9599
9666
  props: {
9600
9667
  data: {},
@@ -9607,10 +9674,10 @@ var Vf = ["src"], Hf = {
9607
9674
  },
9608
9675
  setup(t) {
9609
9676
  let n = [{
9610
- key: Ng.Config,
9677
+ key: Gg.Config,
9611
9678
  label: G("节点配置")
9612
9679
  }, {
9613
- key: Ng.Output,
9680
+ key: Gg.Output,
9614
9681
  label: G("节点输出")
9615
9682
  }], r = [{
9616
9683
  key: "key",
@@ -9639,7 +9706,7 @@ var Vf = ["src"], Hf = {
9639
9706
  breakAll: !0,
9640
9707
  key: "value",
9641
9708
  label: G("参数值")
9642
- }], p = { forced_fail: _t ? "Force Fail" : "强制失败" }, m = t, h = I(Ng.Config), g = a(() => {
9709
+ }], p = { forced_fail: _t ? "Force Fail" : "强制失败" }, m = t, h = I(Gg.Config), g = a(() => {
9643
9710
  var e;
9644
9711
  return (e = m.data) == null ? void 0 : e.basic_info;
9645
9712
  }), _ = a(() => {
@@ -9701,56 +9768,56 @@ var Vf = ["src"], Hf = {
9701
9768
  }), T = (e) => e == null ? "--" : typeof e == "object" ? JSON.stringify(e) : String(e);
9702
9769
  return (a, p) => {
9703
9770
  var m;
9704
- return k(), c("div", pg, [
9705
- l("h3", mg, [t.loading ? (k(), c(e, { key: 0 }, [l("span", null, L(R(G)("节点")) + ":", 1), p[0] || (p[0] = l("span", { class: "skeleton-title ai-skeleton-element" }, null, -1))], 64)) : (k(), c("div", hg, L(R(G)("节点")) + ":" + L((m = g.value) == null ? void 0 : m.node_name), 1)), P(a.$slots, "locateButton")]),
9706
- l("div", gg, [(k(), c(e, null, N(n, (e) => l("div", {
9771
+ return k(), c("div", Tg, [
9772
+ l("h3", Eg, [t.loading ? (k(), c(e, { key: 0 }, [l("span", null, L(R(G)("节点")) + ":", 1), p[0] || (p[0] = l("span", { class: "skeleton-title ai-skeleton-element" }, null, -1))], 64)) : (k(), c("div", Dg, L(R(G)("节点")) + ":" + L((m = g.value) == null ? void 0 : m.node_name), 1)), P(a.$slots, "locateButton")]),
9773
+ l("div", Og, [(k(), c(e, null, N(n, (e) => l("div", {
9707
9774
  key: e.key,
9708
9775
  class: S(["detail-tab", { "is-active": h.value === e.key }]),
9709
9776
  onClick: (t) => h.value = e.key
9710
- }, [(k(), o(F(e.key === Ng.Config ? R(un) : R(ln)), { class: "detail-tab-icon" })), d(" " + L(e.label), 1)], 10, _g)), 64))]),
9711
- l("div", vg, [h.value === Ng.Config ? (k(), c(e, { key: 0 }, [t.loading ? (k(), c(e, { key: 0 }, [l("div", yg, [p[1] || (p[1] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, N(6, (e) => l("div", {
9777
+ }, [(k(), o(F(e.key === Gg.Config ? R(un) : R(ln)), { class: "detail-tab-icon" })), d(" " + L(e.label), 1)], 10, kg)), 64))]),
9778
+ l("div", Ag, [h.value === Gg.Config ? (k(), c(e, { key: 0 }, [t.loading ? (k(), c(e, { key: 0 }, [l("div", jg, [p[1] || (p[1] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, N(6, (e) => l("div", {
9712
9779
  key: e,
9713
9780
  class: "skeleton-row ai-skeleton-element"
9714
- })), 64))]), l("div", bg, [p[2] || (p[2] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, N(4, (e) => l("div", {
9781
+ })), 64))]), l("div", Mg, [p[2] || (p[2] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, N(4, (e) => l("div", {
9715
9782
  key: e,
9716
9783
  class: "skeleton-row ai-skeleton-element"
9717
9784
  })), 64))])], 64)) : (k(), c(e, { key: 1 }, [
9718
- f(cg, { title: R(G)("基础信息") }, {
9785
+ f(bg, { title: R(G)("基础信息") }, {
9719
9786
  default: U(() => {
9720
9787
  var t, n, r;
9721
- return [l("div", xg, [
9788
+ return [l("div", Ng, [
9722
9789
  (k(!0), c(e, null, N(_.value, (e) => (k(), c("div", {
9723
9790
  key: e.label,
9724
9791
  class: "info-row"
9725
- }, [l("div", Sg, L(e.label), 1), l("div", Cg, L(e.value), 1)]))), 128)),
9726
- l("div", wg, [l("div", Tg, L(R(G)("失败处理")), 1), l("div", Eg, [v.value ? (k(), c(e, { key: 0 }, [(t = g.value) != null && t.skippable ? (k(), c("span", Dg, [p[3] || (p[3] = l("span", { class: "tag-badge" }, "MS", -1)), d(" " + L(R(G)("手动跳过")) + L(!((n = g.value) == null || (n = n.auto_retry) == null) && n.enable ? ";" : ""), 1)])) : s("", !0), !((r = g.value) == null || (r = r.auto_retry) == null) && r.enable ? (k(), c("span", Og, [p[4] || (p[4] = l("span", { class: "tag-badge" }, "AR", -1)), d(" " + L(y.value), 1)])) : s("", !0)], 64)) : (k(), c(e, { key: 1 }, [d("--")], 64))])]),
9727
- l("div", kg, [l("div", Ag, L(R(G)("超时控制")), 1), l("div", jg, L(b.value), 1)])
9792
+ }, [l("div", Pg, L(e.label), 1), l("div", Fg, L(e.value), 1)]))), 128)),
9793
+ l("div", Ig, [l("div", Lg, L(R(G)("失败处理")), 1), l("div", Rg, [v.value ? (k(), c(e, { key: 0 }, [(t = g.value) != null && t.skippable ? (k(), c("span", zg, [p[3] || (p[3] = l("span", { class: "tag-badge" }, "MS", -1)), d(" " + L(R(G)("手动跳过")) + L(!((n = g.value) == null || (n = n.auto_retry) == null) && n.enable ? ";" : ""), 1)])) : s("", !0), !((r = g.value) == null || (r = r.auto_retry) == null) && r.enable ? (k(), c("span", Bg, [p[4] || (p[4] = l("span", { class: "tag-badge" }, "AR", -1)), d(" " + L(y.value), 1)])) : s("", !0)], 64)) : (k(), c(e, { key: 1 }, [d("--")], 64))])]),
9794
+ l("div", Vg, [l("div", Hg, L(R(G)("超时控制")), 1), l("div", Ug, L(b.value), 1)])
9728
9795
  ])];
9729
9796
  }),
9730
9797
  _: 1
9731
9798
  }, 8, ["title"]),
9732
- f(cg, { title: R(G)("输入参数") }, {
9733
- default: U(() => [f(fg, {
9799
+ f(bg, { title: R(G)("输入参数") }, {
9800
+ default: U(() => [f(wg, {
9734
9801
  columns: r,
9735
9802
  data: x.value
9736
9803
  }, null, 8, ["data"])]),
9737
9804
  _: 1
9738
9805
  }, 8, ["title"]),
9739
- f(cg, { title: R(G)("输出参数") }, {
9740
- default: U(() => [f(fg, {
9806
+ f(bg, { title: R(G)("输出参数") }, {
9807
+ default: U(() => [f(wg, {
9741
9808
  columns: i,
9742
9809
  data: C.value
9743
9810
  }, null, 8, ["data"])]),
9744
9811
  _: 1
9745
9812
  }, 8, ["title"])
9746
- ], 64))], 64)) : (k(), c(e, { key: 1 }, [t.loading ? (k(), c("div", Mg, [p[5] || (p[5] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, N(5, (e) => l("div", {
9813
+ ], 64))], 64)) : (k(), c(e, { key: 1 }, [t.loading ? (k(), c("div", Wg, [p[5] || (p[5] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, N(5, (e) => l("div", {
9747
9814
  key: e,
9748
9815
  class: "skeleton-row ai-skeleton-element"
9749
- })), 64))])) : (k(), o(cg, {
9816
+ })), 64))])) : (k(), o(bg, {
9750
9817
  key: 1,
9751
9818
  title: R(G)("结构化输出")
9752
9819
  }, {
9753
- default: U(() => [f(fg, {
9820
+ default: U(() => [f(wg, {
9754
9821
  columns: u,
9755
9822
  data: w.value
9756
9823
  }, null, 8, ["data"])]),
@@ -9759,7 +9826,7 @@ var Vf = ["src"], Hf = {
9759
9826
  ]);
9760
9827
  };
9761
9828
  }
9762
- }), Fg = (e) => e.task_id == null ? "" : `${e.task_id}`, Ig = Fg, Lg = (e, t) => e.task_id == null ? "" : `${e.task_id}|${t.id}|${t.name}`, Rg = (e) => {
9829
+ }), qg = (e) => e.task_id == null ? "" : `${e.task_id}`, Jg = qg, Yg = (e, t) => e.task_id == null ? "" : `${e.task_id}|${t.id}|${t.name}`, Xg = (e) => {
9763
9830
  let { messageUid: t, taskList: n } = e, r = qi(), i = Hi(), o = a(() => {
9764
9831
  var e, t;
9765
9832
  return (e = (t = r.selectedTab.value) == null ? void 0 : t.name) == null ? "" : e;
@@ -9768,20 +9835,20 @@ var Vf = ["src"], Hf = {
9768
9835
  }, l = a(() => {
9769
9836
  if (s.value) return o.value;
9770
9837
  let e = n.value.find((e) => e.is_active);
9771
- return (e == null ? void 0 : e.task_id) == null ? o.value : Fg(e);
9838
+ return (e == null ? void 0 : e.task_id) == null ? o.value : qg(e);
9772
9839
  }), u = (e) => {
9773
9840
  let t = l.value;
9774
- return t === Fg(e) || t === Ig(e);
9775
- }, d = (e, t) => l.value === Lg(e, t), f = (e, n) => {
9841
+ return t === qg(e) || t === Jg(e);
9842
+ }, d = (e, t) => l.value === Yg(e, t), f = (e, n) => {
9776
9843
  var i, a;
9777
9844
  let o = e.task_id;
9778
9845
  o != null && (c(), (i = r.addCustomTab) == null || i.call(r, {
9779
9846
  closable: n.closable,
9780
9847
  label: n.name,
9781
- name: Lg(e, n),
9848
+ name: Yg(e, n),
9782
9849
  order: (a = n.tab_order) == null ? 100 : a,
9783
9850
  data: {
9784
- component: Pg,
9851
+ component: Kg,
9785
9852
  messageUid: t.value,
9786
9853
  props: {
9787
9854
  data: {},
@@ -9799,10 +9866,10 @@ var Vf = ["src"], Hf = {
9799
9866
  a && (c(), (n = r.addCustomTab) == null || n.call(r, {
9800
9867
  closable: e.closable,
9801
9868
  label: G("有效证据"),
9802
- name: Ig(e),
9869
+ name: Jg(e),
9803
9870
  order: (i = e.tab_order) == null ? 10 : i,
9804
9871
  data: {
9805
- component: Pg,
9872
+ component: Kg,
9806
9873
  messageUid: t.value,
9807
9874
  props: {
9808
9875
  data: {},
@@ -9821,10 +9888,10 @@ var Vf = ["src"], Hf = {
9821
9888
  }), O(() => {
9822
9889
  if (i != null && i.value) for (let i of n.value) {
9823
9890
  var e, t, a;
9824
- (e = r.removeCustomTab) == null || e.call(r, Fg(i)), (t = r.removeCustomTab) == null || t.call(r, Ig(i));
9891
+ (e = r.removeCustomTab) == null || e.call(r, qg(i)), (t = r.removeCustomTab) == null || t.call(r, Jg(i));
9825
9892
  for (let e of Object.values((a = i.nodes) == null ? {} : a)) {
9826
9893
  var o;
9827
- (o = r.removeCustomTab) == null || o.call(r, Lg(i, e));
9894
+ (o = r.removeCustomTab) == null || o.call(r, Yg(i, e));
9828
9895
  }
9829
9896
  }
9830
9897
  }), {
@@ -9835,7 +9902,7 @@ var Vf = ["src"], Hf = {
9835
9902
  openConfidence: p,
9836
9903
  openNodeDetail: f
9837
9904
  };
9838
- }, zg = { class: "ai-activity-message-title-text" }, Bg = { class: "flow-agent-title-label" }, Vg = { class: "flow-agent-stat-tooltip" }, Hg = { class: "flow-agent-stat-tooltip-status" }, Ug = { class: "flow-agent-stat-tooltip-label" }, Wg = ["onClick"], Gg = { class: "flow-agent-task-state-icon" }, Kg = { class: "flow-agent-task-name" }, qg = { class: "flow-agent-task-trailing" }, Jg = { class: "flow-agent-task-time" }, Yg = ["onClick"], Xg = { class: "flow-agent-task-nodes" }, Zg = { class: "flow-agent-node-status" }, Qg = ["title"], $g = { class: "flow-agent-node-trailing" }, e_ = { class: "flow-agent-node-time" }, t_ = { class: "flow-agent-node-actions" }, n_ = ["onClick"], r_ = /* @__PURE__ */ m({
9905
+ }, Zg = { class: "ai-activity-message-title-text" }, Qg = { class: "flow-agent-title-label" }, $g = { class: "flow-agent-stat-tooltip" }, e_ = { class: "flow-agent-stat-tooltip-status" }, t_ = { class: "flow-agent-stat-tooltip-label" }, n_ = ["onClick"], r_ = { class: "flow-agent-task-state-icon" }, i_ = { class: "flow-agent-task-name" }, a_ = { class: "flow-agent-task-trailing" }, o_ = { class: "flow-agent-task-time" }, s_ = ["onClick"], c_ = { class: "flow-agent-task-nodes" }, l_ = { class: "flow-agent-node-status" }, u_ = ["title"], d_ = { class: "flow-agent-node-trailing" }, f_ = { class: "flow-agent-node-time" }, p_ = { class: "flow-agent-node-actions" }, m_ = ["onClick"], h_ = /* @__PURE__ */ m({
9839
9906
  __name: "flow-agent-content",
9840
9907
  props: /* @__PURE__ */ y({
9841
9908
  content: {},
@@ -9848,17 +9915,17 @@ var Vf = ["src"], Hf = {
9848
9915
  }),
9849
9916
  emits: ["update:collapsed"],
9850
9917
  setup(t) {
9851
- let n = t, r = va(), i = ie(t, "collapsed"), u = ha(), p = a(() => u.value === Lt.Share), m = a(() => n.status === J.Pending || n.status === J.Streaming), { isTaskExpanded: h, taskList: g, toggleTaskExpanded: _, viewTasks: v, visibleStats: y } = tg(te(n, "content")), { isNodeSelected: x, isTaskSelected: C, openConfidence: T, openNodeDetail: E } = Rg({
9918
+ let n = t, r = va(), i = ie(t, "collapsed"), u = ha(), p = a(() => u.value === Lt.Share), m = a(() => n.status === J.Pending || n.status === J.Streaming), { isTaskExpanded: h, taskList: g, toggleTaskExpanded: _, viewTasks: v, visibleStats: y } = pg(te(n, "content")), { isNodeSelected: x, isTaskSelected: C, openConfidence: T, openNodeDetail: E } = Xg({
9852
9919
  messageUid: te(n, "messageUid"),
9853
9920
  taskList: g
9854
- }), { getNodeActions: D, isNodePending: O } = ig({
9921
+ }), { getNodeActions: D, isNodePending: O } = gg({
9855
9922
  hideResumeActions: p,
9856
9923
  onInterruptResume: te(n, "onInterruptResume"),
9857
9924
  openNodeDetail: E
9858
9925
  }), A = (e) => {
9859
9926
  e.disabled || e.run();
9860
9927
  };
9861
- return (t, n) => (k(), o(Jh, {
9928
+ return (t, n) => (k(), o(og, {
9862
9929
  collapsed: i.value,
9863
9930
  "onUpdate:collapsed": n[0] || (n[0] = (e) => i.value = e),
9864
9931
  "activity-type": R(bt).FlowAgent,
@@ -9873,11 +9940,11 @@ var Vf = ["src"], Hf = {
9873
9940
  followCursor: !1,
9874
9941
  offset: [0, 10]
9875
9942
  })), {
9876
- content: U(() => [l("div", Vg, [(k(!0), c(e, null, N(R(y), (e) => (k(), c("div", {
9943
+ content: U(() => [l("div", $g, [(k(!0), c(e, null, N(R(y), (e) => (k(), c("div", {
9877
9944
  key: e.key,
9878
9945
  class: "flow-agent-stat-tooltip-item"
9879
9946
  }, [
9880
- l("span", Hg, [e.key === "running" ? (k(), o(R(me), {
9947
+ l("span", e_, [e.key === "running" ? (k(), o(R(me), {
9881
9948
  key: 0,
9882
9949
  mode: "spin",
9883
9950
  size: "mini",
@@ -9887,7 +9954,7 @@ var Vf = ["src"], Hf = {
9887
9954
  class: "flow-agent-stat-dot",
9888
9955
  style: w({ borderColor: e.dotColor })
9889
9956
  }, null, 4))]),
9890
- l("span", Ug, L(e.label) + ":", 1),
9957
+ l("span", t_, L(e.label) + ":", 1),
9891
9958
  l("span", {
9892
9959
  class: "flow-agent-stat-tooltip-count",
9893
9960
  style: w({ color: e.color })
@@ -9896,7 +9963,7 @@ var Vf = ["src"], Hf = {
9896
9963
  default: U(() => [l("span", { class: S(["ai-activity-message-title-icon", { "icon-collapsed": i.value }]) }, [m.value ? (k(), o(oi, {
9897
9964
  key: 0,
9898
9965
  size: 12
9899
- })) : (k(), o(R($t), { key: 1 }))], 2), l("span", zg, [l("span", Bg, L(R(G)("执行情况")) + ":", 1), (k(!0), c(e, null, N(R(y), (e) => (k(), c("span", {
9966
+ })) : (k(), o(R($t), { key: 1 }))], 2), l("span", Zg, [l("span", Qg, L(R(G)("执行情况")) + ":", 1), (k(!0), c(e, null, N(R(y), (e) => (k(), c("span", {
9900
9967
  key: e.key,
9901
9968
  class: "flow-agent-stat-item"
9902
9969
  }, [e.key === "running" ? (k(), o(R(me), {
@@ -9927,27 +9994,27 @@ var Vf = ["src"], Hf = {
9927
9994
  l("span", {
9928
9995
  class: S(["flow-agent-task-arrow", { "is-expanded": R(h)(t.raw) }]),
9929
9996
  onClick: ce((e) => R(_)(t.raw), ["stop"])
9930
- }, [f(R($t))], 10, Wg),
9931
- l("span", Gg, [t.convergedState === "running" ? (k(), o(R(me), {
9997
+ }, [f(R($t))], 10, n_),
9998
+ l("span", r_, [t.convergedState === "running" ? (k(), o(R(me), {
9932
9999
  key: 0,
9933
10000
  mode: "spin",
9934
10001
  size: "mini",
9935
10002
  theme: "primary"
9936
10003
  })) : (k(), o(F(t.stateIcon), { key: 1 }))]),
9937
- W((k(), c("span", Kg, [f(R(Gh), { text: t.taskName }, null, 8, ["text"])])), [[R(xa), X({}, R(r))]]),
9938
- l("span", qg, [l("span", Jg, L(t.totalTimeText), 1), t.hasConfidence ? (k(), c("span", {
10004
+ W((k(), c("span", i_, [f(R(rg), { text: t.taskName }, null, 8, ["text"])])), [[R(xa), X({}, R(r))]]),
10005
+ l("span", a_, [l("span", o_, L(t.totalTimeText), 1), t.hasConfidence ? (k(), c("span", {
9939
10006
  key: 0,
9940
10007
  class: "flow-agent-task-action-btn flow-agent-task-confidence-btn",
9941
10008
  onClick: ce((e) => R(T)(t.raw), ["stop"])
9942
- }, [f(R(ln)), d(" " + L((n = t.confidenceTitle) == null ? R(G)("有效证据") : n), 1)], 8, Yg)) : s("", !0)])
9943
- ], 2), W(l("div", Xg, [(k(!0), c(e, null, N(t.nodes, (n) => (k(), c("div", {
10009
+ }, [f(R(ln)), d(" " + L((n = t.confidenceTitle) == null ? R(G)("有效证据") : n), 1)], 8, s_)) : s("", !0)])
10010
+ ], 2), W(l("div", c_, [(k(!0), c(e, null, N(t.nodes, (n) => (k(), c("div", {
9944
10011
  key: n.id,
9945
10012
  class: S(["flow-agent-node-item", {
9946
10013
  "is-selected": R(x)(t.raw, n.raw),
9947
10014
  "is-pending": R(O)(t, n)
9948
10015
  }])
9949
10016
  }, [
9950
- l("span", Zg, [n.convergedState === "running" ? (k(), o(R(me), {
10017
+ l("span", l_, [n.convergedState === "running" ? (k(), o(R(me), {
9951
10018
  key: 0,
9952
10019
  mode: "spin",
9953
10020
  size: "mini",
@@ -9960,8 +10027,8 @@ var Vf = ["src"], Hf = {
9960
10027
  W((k(), c("span", {
9961
10028
  class: "flow-agent-node-name",
9962
10029
  title: n.name
9963
- }, [f(R(Gh), { text: n.name }, null, 8, ["text"])], 8, Qg)), [[R(xa), X({}, R(r))]]),
9964
- l("span", $g, [l("span", e_, L(n.elapsedTimeText), 1), l("span", t_, [(k(!0), c(e, null, N(R(D)(t, n), (e) => W((k(), c("span", {
10030
+ }, [f(R(rg), { text: n.name }, null, 8, ["text"])], 8, u_)), [[R(xa), X({}, R(r))]]),
10031
+ l("span", d_, [l("span", f_, L(n.elapsedTimeText), 1), l("span", p_, [(k(!0), c(e, null, N(R(D)(t, n), (e) => W((k(), c("span", {
9965
10032
  key: e.id,
9966
10033
  class: S(["flow-agent-node-action-btn", { "is-disabled": e.disabled }]),
9967
10034
  onClick: ce((t) => A(e), ["stop"])
@@ -9971,7 +10038,7 @@ var Vf = ["src"], Hf = {
9971
10038
  mode: "spin",
9972
10039
  size: "mini",
9973
10040
  theme: "primary"
9974
- })) : (k(), o(F(e.icon), { key: 1 })), d(" " + L(e.label), 1)], 10, n_)), [[R(Se), e.tooltip ? X(X({}, R(r)), {}, {
10041
+ })) : (k(), o(F(e.icon), { key: 1 })), d(" " + L(e.label), 1)], 10, m_)), [[R(Se), e.tooltip ? X(X({}, R(r)), {}, {
9975
10042
  content: e.tooltip,
9976
10043
  theme: "ai-chat-box",
9977
10044
  offset: [0, 8]
@@ -9981,7 +10048,7 @@ var Vf = ["src"], Hf = {
9981
10048
  _: 1
9982
10049
  }, 8, ["collapsed", "activity-type"]));
9983
10050
  }
9984
- }), i_ = { class: "ai-activity-message-title-icon" }, a_ = { class: "ai-activity-message-title-text" }, o_ = { class: "ai-knowledge-rag-content" }, s_ = /* @__PURE__ */ m({
10051
+ }), g_ = { class: "ai-activity-message-title-icon" }, __ = { class: "ai-activity-message-title-text" }, v_ = { class: "ai-knowledge-rag-content" }, y_ = /* @__PURE__ */ m({
9985
10052
  __name: "knowledge-rag-content",
9986
10053
  props: /* @__PURE__ */ y({
9987
10054
  content: {},
@@ -9994,22 +10061,22 @@ var Vf = ["src"], Hf = {
9994
10061
  emits: ["update:collapsed"],
9995
10062
  setup(e) {
9996
10063
  let t = e, n = ie(e, "collapsed"), r = a(() => t.status === J.Pending || t.status === J.Streaming), i = a(() => r.value ? G("检索中") : G("检索完成"));
9997
- return (t, a) => (k(), o(Jh, {
10064
+ return (t, a) => (k(), o(og, {
9998
10065
  collapsed: n.value,
9999
10066
  "onUpdate:collapsed": a[0] || (a[0] = (e) => n.value = e)
10000
10067
  }, {
10001
- title: U(() => [l("span", i_, [r.value ? (k(), o(oi, { key: 0 })) : (k(), o(R(Yt), {
10068
+ title: U(() => [l("span", g_, [r.value ? (k(), o(oi, { key: 0 })) : (k(), o(R(Yt), {
10002
10069
  key: 1,
10003
10070
  style: { "font-size": "12px" }
10004
- }))]), l("span", a_, L(i.value), 1)]),
10071
+ }))]), l("span", __, L(i.value), 1)]),
10005
10072
  default: U(() => {
10006
10073
  var t, n;
10007
- return [l("div", o_, [f(Fu, { content: ((t = e.content) == null ? void 0 : t.content) || "" }, null, 8, ["content"])]), f(Lu, { content: ((n = e.content) == null ? void 0 : n.referenceDocument) || [] }, null, 8, ["content"])];
10074
+ return [l("div", v_, [f(Fu, { content: ((t = e.content) == null ? void 0 : t.content) || "" }, null, 8, ["content"])]), f(Lu, { content: ((n = e.content) == null ? void 0 : n.referenceDocument) || [] }, null, 8, ["content"])];
10008
10075
  }),
10009
10076
  _: 1
10010
10077
  }, 8, ["collapsed"]));
10011
10078
  }
10012
- }), c_ = { class: "ai-activity-message-title-icon" }, l_ = { class: "ai-activity-message-title-text" }, u_ = /* @__PURE__ */ m({
10079
+ }), b_ = { class: "ai-activity-message-title-icon" }, x_ = { class: "ai-activity-message-title-text" }, S_ = /* @__PURE__ */ m({
10013
10080
  __name: "reference-doc-content",
10014
10081
  props: /* @__PURE__ */ y({
10015
10082
  content: {},
@@ -10025,20 +10092,21 @@ var Vf = ["src"], Hf = {
10025
10092
  let r = (e = (n = t.content) == null ? void 0 : n.length) == null ? 0 : e;
10026
10093
  return _t ? `Reference ${r} documents as reference` : `引用 ${r} 篇资料作为参考`;
10027
10094
  });
10028
- return (t, i) => (k(), o(Jh, {
10095
+ return (t, i) => (k(), o(og, {
10029
10096
  collapsed: n.value,
10030
10097
  "onUpdate:collapsed": i[0] || (i[0] = (e) => n.value = e)
10031
10098
  }, {
10032
- title: U(() => [l("span", c_, [f(R(Yt), { style: { "font-size": "12px" } })]), l("span", l_, L(r.value), 1)]),
10099
+ title: U(() => [l("span", b_, [f(R(Yt), { style: { "font-size": "12px" } })]), l("span", x_, L(r.value), 1)]),
10033
10100
  default: U(() => [f(Lu, { content: e.content || [] }, null, 8, ["content"])]),
10034
10101
  _: 1
10035
10102
  }, 8, ["collapsed"]));
10036
10103
  }
10037
- }), d_ = /* @__PURE__ */ m({
10104
+ }), C_ = /* @__PURE__ */ m({
10038
10105
  __name: "activity-message",
10039
10106
  props: /* @__PURE__ */ y({
10040
10107
  activityType: {},
10041
10108
  content: {},
10109
+ createdAt: {},
10042
10110
  id: {},
10043
10111
  messageId: {},
10044
10112
  name: {},
@@ -10054,9 +10122,9 @@ var Vf = ["src"], Hf = {
10054
10122
  emits: ["update:collapsed"],
10055
10123
  setup(e) {
10056
10124
  let t = {
10057
- [bt.FlowAgent]: r_,
10058
- [bt.KnowledgeRag]: s_,
10059
- [bt.ReferenceDocument]: u_
10125
+ [bt.FlowAgent]: h_,
10126
+ [bt.KnowledgeRag]: y_,
10127
+ [bt.ReferenceDocument]: S_
10060
10128
  }, n = e, r = ie(e, "collapsed"), i = a(() => {
10061
10129
  var e;
10062
10130
  return t[(e = n.activityType) == null ? "" : e];
@@ -10077,7 +10145,7 @@ var Vf = ["src"], Hf = {
10077
10145
  "status"
10078
10146
  ])) : s("", !0);
10079
10147
  }
10080
- }), f_ = { class: "ai-toolcall-desc" }, p_ = { class: "desc-title" }, m_ = { class: "desc-panel" }, h_ = { class: "desc-label" }, g_ = { class: "desc-value" }, __ = /* @__PURE__ */ m({
10148
+ }), w_ = { class: "ai-toolcall-desc" }, T_ = { class: "desc-title" }, E_ = { class: "desc-panel" }, D_ = { class: "desc-label" }, O_ = { class: "desc-value" }, k_ = /* @__PURE__ */ m({
10081
10149
  __name: "desc-panel",
10082
10150
  props: {
10083
10151
  desc: {},
@@ -10091,25 +10159,26 @@ var Vf = ["src"], Hf = {
10091
10159
  return n.desc;
10092
10160
  }
10093
10161
  });
10094
- return (n, a) => (k(), c("div", f_, [l("div", p_, L(t.title), 1), l("div", m_, [i.value !== null && typeof i.value == "object" ? (k(!0), c(e, { key: 0 }, N(i.value, (e, t) => (k(), c("div", {
10162
+ return (n, a) => (k(), c("div", w_, [l("div", T_, L(t.title), 1), l("div", E_, [i.value !== null && typeof i.value == "object" ? (k(!0), c(e, { key: 0 }, N(i.value, (e, t) => (k(), c("div", {
10095
10163
  key: t,
10096
10164
  class: "desc-panel-item"
10097
- }, [l("span", h_, [f(R(Gh), { text: String(t) }, null, 8, ["text"]), a[0] || (a[0] = d(":", -1))]), l("span", g_, [f(R(Gh), {
10165
+ }, [l("span", D_, [f(R(rg), { text: String(t) }, null, 8, ["text"]), a[0] || (a[0] = d(":", -1))]), l("span", O_, [f(R(rg), {
10098
10166
  style: { "word-break": "break-all" },
10099
10167
  text: r(e)
10100
- }, null, 8, ["text"])])]))), 128)) : (k(), o(R(Gh), {
10168
+ }, null, 8, ["text"])])]))), 128)) : (k(), o(R(rg), {
10101
10169
  key: 1,
10102
10170
  style: { wordBreak: "break-all" },
10103
10171
  text: r(i.value)
10104
10172
  }, null, 8, ["text"]))])]));
10105
10173
  }
10106
- }), v_ = { class: "ai-tool-message" }, y_ = /* @__PURE__ */ m({
10174
+ }), A_ = { class: "ai-tool-message" }, j_ = /* @__PURE__ */ m({
10107
10175
  __name: "tool-message",
10108
10176
  props: {
10109
10177
  duration: {},
10110
10178
  error: { type: [Boolean, String] },
10111
10179
  toolCallId: {},
10112
10180
  content: {},
10181
+ createdAt: {},
10113
10182
  id: {},
10114
10183
  messageId: {},
10115
10184
  name: {},
@@ -10119,15 +10188,15 @@ var Vf = ["src"], Hf = {
10119
10188
  property: {}
10120
10189
  },
10121
10190
  setup(e) {
10122
- return (t, n) => (k(), c("div", v_, [f(__, {
10191
+ return (t, n) => (k(), c("div", A_, [f(k_, {
10123
10192
  desc: e.content || (typeof e.error == "string" ? e.error : void 0),
10124
10193
  title: R(G)("返回内容")
10125
10194
  }, null, 8, ["desc", "title"])]));
10126
10195
  }
10127
- }), b_ = { class: "ai-toolcall-render" }, x_ = { class: "toolcall-header-title" }, S_ = { class: "toolcall-status-title" }, C_ = {
10196
+ }), M_ = { class: "ai-toolcall-render" }, N_ = { class: "toolcall-header-title" }, P_ = { class: "toolcall-status-title" }, F_ = {
10128
10197
  key: 3,
10129
10198
  class: "toolcall-duration"
10130
- }, w_ = { class: "ai-toolcall-render-content" }, T_ = /* @__PURE__ */ m({
10199
+ }, I_ = { class: "ai-toolcall-render-content" }, L_ = /* @__PURE__ */ m({
10131
10200
  __name: "toolcall-render",
10132
10201
  props: {
10133
10202
  duration: {},
@@ -10172,17 +10241,17 @@ var Vf = ["src"], Hf = {
10172
10241
  });
10173
10242
  return (t, n) => {
10174
10243
  var r, a, u, p;
10175
- return k(), c("div", b_, [l("div", {
10244
+ return k(), c("div", M_, [l("div", {
10176
10245
  class: S(["ai-toolcall-render-header", `toolcall-status-${e.status}`]),
10177
10246
  onClick: h
10178
10247
  }, [
10179
10248
  f(R($t), { class: S({ "is-collapsed": m.value }) }, null, 8, ["class"]),
10180
10249
  d(" " + L((r = e.toolCall) != null && r.function.mcpName ? R(G)("调用 MCP:") : R(G)("调用工具:")) + " ", 1),
10181
- W((k(), c("span", x_, [f(R(Gh), { text: g.value }, null, 8, ["text"])])), [[R(xa), X(X({}, R(i)), {}, {
10250
+ W((k(), c("span", N_, [f(R(rg), { text: g.value }, null, 8, ["text"])])), [[R(xa), X(X({}, R(i)), {}, {
10182
10251
  text: g.value,
10183
10252
  appendTo: "parent"
10184
10253
  })]]),
10185
- l("span", S_, [
10254
+ l("span", P_, [
10186
10255
  e.status === R(J).Pending || e.status === R(J).Streaming ? (k(), o(R(me), {
10187
10256
  key: 0,
10188
10257
  mode: "spin",
@@ -10193,23 +10262,23 @@ var Vf = ["src"], Hf = {
10193
10262
  R(J).Complete,
10194
10263
  R(J).Completed
10195
10264
  ].includes(e.status) ? (k(), o(R(nn), { key: 1 })) : e.status === R(J).Error ? (k(), o(R(rn), { key: 2 })) : s("", !0),
10196
- f(R(Gh), { text: _.value }, null, 8, ["text"]),
10197
- v.value ? (k(), c("span", C_, " (" + L(v.value) + ") ", 1)) : s("", !0)
10265
+ f(R(rg), { text: _.value }, null, 8, ["text"]),
10266
+ v.value ? (k(), c("span", F_, " (" + L(v.value) + ") ", 1)) : s("", !0)
10198
10267
  ])
10199
- ], 2), W(l("div", w_, [
10200
- f(__, {
10268
+ ], 2), W(l("div", I_, [
10269
+ f(k_, {
10201
10270
  desc: (a = e.toolCall) == null ? void 0 : a.function.description,
10202
10271
  title: R(G)("描述")
10203
10272
  }, null, 8, ["desc", "title"]),
10204
- f(__, {
10273
+ f(k_, {
10205
10274
  desc: (u = e.toolCall) == null ? void 0 : u.function.arguments,
10206
10275
  title: R(G)("参数")
10207
10276
  }, null, 8, ["desc", "title"]),
10208
- (p = e.toolCall) != null && p.toolMessage ? (k(), o(y_, C(b({ key: 0 }, e.toolCall.toolMessage)), null, 16)) : s("", !0)
10277
+ (p = e.toolCall) != null && p.toolMessage ? (k(), o(j_, C(b({ key: 0 }, e.toolCall.toolMessage)), null, 16)) : s("", !0)
10209
10278
  ], 512), [[V, !m.value]])]);
10210
10279
  };
10211
10280
  }
10212
- }), E_ = { class: "ai-message-artifacts" }, D_ = /* @__PURE__ */ m({
10281
+ }), R_ = { class: "ai-message-artifacts" }, z_ = /* @__PURE__ */ m({
10213
10282
  __name: "message-artifacts",
10214
10283
  props: {
10215
10284
  artifacts: {},
@@ -10217,7 +10286,7 @@ var Vf = ["src"], Hf = {
10217
10286
  onPreview: { type: Function }
10218
10287
  },
10219
10288
  setup(t) {
10220
- return (n, r) => (k(), c("div", E_, [(k(!0), c(e, null, N(t.artifacts, (e) => (k(), o(im, {
10289
+ return (n, r) => (k(), c("div", R_, [(k(!0), c(e, null, N(t.artifacts, (e) => (k(), o(im, {
10221
10290
  key: e.outputId,
10222
10291
  file: e,
10223
10292
  "on-download": t.onDownload,
@@ -10228,10 +10297,10 @@ var Vf = ["src"], Hf = {
10228
10297
  "on-preview"
10229
10298
  ]))), 128))]));
10230
10299
  }
10231
- }), O_ = { class: "ai-assistant-message" }, k_ = {
10300
+ }), B_ = { class: "ai-assistant-message" }, V_ = {
10232
10301
  key: 0,
10233
10302
  class: "ai-assistant-message-content"
10234
- }, A_ = /* @__PURE__ */ m({
10303
+ }, H_ = /* @__PURE__ */ m({
10235
10304
  __name: "assistant-message",
10236
10305
  props: {
10237
10306
  content: {},
@@ -10249,8 +10318,8 @@ var Vf = ["src"], Hf = {
10249
10318
  var e;
10250
10319
  return (e = n.property) == null ? void 0 : e.artifacts;
10251
10320
  });
10252
- return (n, i) => (k(), c("div", O_, [
10253
- t.content ? (k(), c("div", k_, [P(n.$slots, "default", C(h({ content: t.content })), () => [f(Ru, {
10321
+ return (n, i) => (k(), c("div", B_, [
10322
+ t.content ? (k(), c("div", V_, [P(n.$slots, "default", C(h({ content: t.content })), () => [f(Ru, {
10254
10323
  content: t.content || "",
10255
10324
  status: t.status,
10256
10325
  type: R(bt).Text
@@ -10261,22 +10330,23 @@ var Vf = ["src"], Hf = {
10261
10330
  ])])])) : s("", !0),
10262
10331
  t.toolCalls && t.toolCalls.length > 0 ? (k(!0), c(e, { key: 1 }, N(t.toolCalls, (e) => {
10263
10332
  var n;
10264
- return k(), o(T_, {
10333
+ return k(), o(L_, {
10265
10334
  key: e.id,
10266
10335
  status: e.toolMessage ? e.toolMessage.error ? R(J).Error : (n = e.toolMessage.status) == null ? t.status : n : R(J).Pending,
10267
10336
  "tool-call": e
10268
10337
  }, null, 8, ["status", "tool-call"]);
10269
10338
  }), 128)) : s("", !0),
10270
- r.value && r.value.length > 0 ? (k(), o(D_, {
10339
+ r.value && r.value.length > 0 ? (k(), o(z_, {
10271
10340
  key: 2,
10272
10341
  artifacts: r.value
10273
10342
  }, null, 8, ["artifacts"])) : s("", !0)
10274
10343
  ]));
10275
10344
  }
10276
- }), j_ = { class: "ai-info-message" }, M_ = { class: "ai-info-message-body" }, N_ = /* @__PURE__ */ m({
10345
+ }), U_ = { class: "ai-info-message" }, W_ = { class: "ai-info-message-body" }, G_ = /* @__PURE__ */ m({
10277
10346
  __name: "info-message",
10278
10347
  props: {
10279
10348
  content: {},
10349
+ createdAt: {},
10280
10350
  id: {},
10281
10351
  messageId: {},
10282
10352
  name: {},
@@ -10286,18 +10356,18 @@ var Vf = ["src"], Hf = {
10286
10356
  property: {}
10287
10357
  },
10288
10358
  setup(t) {
10289
- return (n, r) => (k(), c("div", j_, [l("div", M_, [(k(!0), c(e, null, N(Array.isArray(t.content) ? t.content : [t.content], (e, t) => (k(), c("div", {
10359
+ return (n, r) => (k(), c("div", U_, [l("div", W_, [(k(!0), c(e, null, N(Array.isArray(t.content) ? t.content : [t.content], (e, t) => (k(), c("div", {
10290
10360
  key: t,
10291
10361
  class: "ai-info-message-content"
10292
10362
  }, L(e), 1))), 128))])]));
10293
10363
  }
10294
- }), P_ = { class: "ai-tool-approval-card" }, F_ = { class: "ai-tool-approval-card__header" }, I_ = { class: "ai-tool-approval-card__title-wrap" }, L_ = { class: "ai-tool-approval-card__title" }, R_ = { class: "ai-tool-approval-card__fields" }, z_ = { class: "ai-tool-approval-card__field" }, B_ = { class: "ai-tool-approval-card__field" }, V_ = {
10364
+ }), K_ = { class: "ai-tool-approval-card" }, q_ = { class: "ai-tool-approval-card__header" }, J_ = { class: "ai-tool-approval-card__title-wrap" }, Y_ = { class: "ai-tool-approval-card__title" }, X_ = { class: "ai-tool-approval-card__fields" }, Z_ = { class: "ai-tool-approval-card__field" }, Q_ = { class: "ai-tool-approval-card__field" }, $_ = {
10295
10365
  key: 0,
10296
10366
  class: "ai-tool-approval-card__processor"
10297
- }, H_ = { class: "ai-tool-approval-card__processor-text" }, U_ = { class: "ai-tool-approval-card__actions" }, W_ = {
10367
+ }, ev = { class: "ai-tool-approval-card__processor-text" }, tv = { class: "ai-tool-approval-card__actions" }, nv = {
10298
10368
  key: 1,
10299
10369
  class: "ai-tool-approval-card__cancel-wrap"
10300
- }, G_ = 2e3, K_ = /* @__PURE__ */ m({
10370
+ }, rv = 2e3, iv = /* @__PURE__ */ m({
10301
10371
  __name: "tool-approval-card",
10302
10372
  props: {
10303
10373
  interrupt: {},
@@ -10338,7 +10408,7 @@ var Vf = ["src"], Hf = {
10338
10408
  }, A = I(!1), j = I(!1), M, ee = () => {
10339
10409
  j.value = !0, clearTimeout(M), M = setTimeout(() => {
10340
10410
  j.value = !1;
10341
- }, G_);
10411
+ }, rv);
10342
10412
  }, N = () => {
10343
10413
  var e;
10344
10414
  A.value || (A.value = !0, ee(), (e = t.onInterruptResume) == null || e.call(t, {
@@ -10352,10 +10422,10 @@ var Vf = ["src"], Hf = {
10352
10422
  payload: { interrupt_id: t.interrupt.id }
10353
10423
  }, t.interrupt));
10354
10424
  };
10355
- return O(() => clearTimeout(M)), (t, r) => (k(), c("section", P_, [
10356
- l("header", F_, [l("div", I_, [
10425
+ return O(() => clearTimeout(M)), (t, r) => (k(), c("section", K_, [
10426
+ l("header", q_, [l("div", J_, [
10357
10427
  r[0] || (r[0] = l("span", { class: "ai-tool-approval-card__title-bar" }, null, -1)),
10358
- l("span", L_, L(h.value.title || R(G)("算法方案评审单")), 1),
10428
+ l("span", Y_, L(h.value.title || R(G)("算法方案评审单")), 1),
10359
10429
  W(f(R(Vr), {
10360
10430
  class: S(["ai-tool-approval-card__copy-icon", { "is-disabled": !C.value }]),
10361
10431
  onClick: D
@@ -10389,9 +10459,9 @@ var Vf = ["src"], Hf = {
10389
10459
  size: "mini",
10390
10460
  theme: "primary"
10391
10461
  })), d(" " + L(b.value), 1)], 2)]),
10392
- l("dl", R_, [l("div", z_, [l("dt", null, L(R(G)("单据编号")), 1), l("dd", null, L(h.value.sn || "--"), 1)]), l("div", B_, [l("dt", null, L(R(G)("提交时间")), 1), l("dd", null, L(h.value.submit_time || "--"), 1)])]),
10393
- v.value ? (k(), c("div", V_, [f(R(xr), { class: "ai-tool-approval-card__processor-icon" }), W((k(), c("span", H_, [d(L(R(G)("当前处理人")) + ":" + L(x.value), 1)])), [[R(xa), X({}, R(n))]])])) : s("", !0),
10394
- l("div", U_, [f(R(le), {
10462
+ l("dl", X_, [l("div", Z_, [l("dt", null, L(R(G)("单据编号")), 1), l("dd", null, L(h.value.sn || "--"), 1)]), l("div", Q_, [l("dt", null, L(R(G)("提交时间")), 1), l("dd", null, L(h.value.submit_time || "--"), 1)])]),
10463
+ v.value ? (k(), c("div", $_, [f(R(xr), { class: "ai-tool-approval-card__processor-icon" }), W((k(), c("span", ev, [d(L(R(G)("当前处理人")) + ":" + L(x.value), 1)])), [[R(xa), X({}, R(n))]])])) : s("", !0),
10464
+ l("div", tv, [f(R(le), {
10395
10465
  class: "ai-tool-approval-card__detail",
10396
10466
  disabled: !h.value.url,
10397
10467
  theme: "primary",
@@ -10410,7 +10480,7 @@ var Vf = ["src"], Hf = {
10410
10480
  }, {
10411
10481
  default: U(() => [d(L(R(G)("取消审批")), 1)]),
10412
10482
  _: 1
10413
- }, 8, ["disabled", "loading"])) : e.readonly ? s("", !0) : W((k(), c("span", W_, [f(R(le), {
10483
+ }, 8, ["disabled", "loading"])) : e.readonly ? s("", !0) : W((k(), c("span", nv, [f(R(le), {
10414
10484
  class: "ai-tool-approval-card__cancel",
10415
10485
  disabled: "",
10416
10486
  outline: ""
@@ -10424,16 +10494,17 @@ var Vf = ["src"], Hf = {
10424
10494
  })]])])
10425
10495
  ]));
10426
10496
  }
10427
- }), q_ = { class: "ai-interrupt-message" }, J_ = {
10497
+ }), av = { class: "ai-interrupt-message" }, ov = {
10428
10498
  key: 0,
10429
10499
  class: "ai-interrupt-message__content"
10430
- }, Y_ = {
10500
+ }, sv = {
10431
10501
  key: 1,
10432
10502
  class: "ai-interrupt-message__fallback"
10433
- }, X_ = /* @__PURE__ */ m({
10503
+ }, cv = /* @__PURE__ */ m({
10434
10504
  __name: "interrupt-message",
10435
10505
  props: {
10436
10506
  content: {},
10507
+ createdAt: {},
10437
10508
  id: {},
10438
10509
  messageId: {},
10439
10510
  name: {},
@@ -10444,14 +10515,14 @@ var Vf = ["src"], Hf = {
10444
10515
  onInterruptResume: { type: Function }
10445
10516
  },
10446
10517
  setup(t) {
10447
- let n = { [yt.AIDevToolApproval]: K_ }, r = (e) => ({
10518
+ let n = { [yt.AIDevToolApproval]: iv }, r = (e) => ({
10448
10519
  id: e.interruptId || e.id || "",
10449
10520
  reason: yt.AIDevToolApproval,
10450
10521
  toolCallId: "",
10451
10522
  metadata: e.payload.metadata
10452
10523
  }), i = {
10453
10524
  [yt.AIDevToolApproval]: (e) => ({
10454
- component: K_,
10525
+ component: iv,
10455
10526
  props: {
10456
10527
  interrupt: r(e),
10457
10528
  onInterruptResume: d.onInterruptResume,
@@ -10480,13 +10551,13 @@ var Vf = ["src"], Hf = {
10480
10551
  let r = (t = d.content) == null ? void 0 : t.result;
10481
10552
  if (r) return (n = i[r.reason]) == null ? void 0 : n.call(i, r);
10482
10553
  });
10483
- return (n, r) => (k(), c("div", q_, [
10484
- p.value ? (k(), c("div", J_, L(p.value), 1)) : s("", !0),
10554
+ return (n, r) => (k(), c("div", av, [
10555
+ p.value ? (k(), c("div", ov, L(p.value), 1)) : s("", !0),
10485
10556
  (k(!0), c(e, null, N(f.value, (n) => (k(), c(e, { key: n.toolCallId }, [m(n) ? (k(), o(F(m(n)), {
10486
10557
  key: 0,
10487
10558
  interrupt: n,
10488
10559
  "on-interrupt-resume": t.onInterruptResume
10489
- }, null, 40, ["interrupt", "on-interrupt-resume"])) : g(n) ? s("", !0) : (k(), c("div", Y_, L(n.message || R(G)("暂不支持的中断消息")), 1))], 64))), 128)),
10560
+ }, null, 40, ["interrupt", "on-interrupt-resume"])) : g(n) ? s("", !0) : (k(), c("div", sv, L(n.message || R(G)("暂不支持的中断消息")), 1))], 64))), 128)),
10490
10561
  _.value ? (k(), o(F(_.value.component), C(b({ key: 1 }, _.value.props)), u({ _: 2 }, [n.$slots.answeredQuestion ? {
10491
10562
  name: "answer",
10492
10563
  fn: U((e) => [P(n.$slots, "answeredQuestion", C(h(e)))]),
@@ -10494,23 +10565,24 @@ var Vf = ["src"], Hf = {
10494
10565
  } : void 0]), 1040)) : s("", !0)
10495
10566
  ]));
10496
10567
  }
10497
- }), Z_ = { class: "ai-loading-message" }, Q_ = /* @__PURE__ */ m({
10568
+ }), lv = { class: "ai-loading-message" }, uv = /* @__PURE__ */ m({
10498
10569
  __name: "loading-message",
10499
10570
  setup(e) {
10500
10571
  let t = Hi();
10501
10572
  return E(() => {
10502
10573
  var e, n;
10503
10574
  t == null || (e = t.value) == null || (n = e.jumpToBottom) == null || n.call(e);
10504
- }), (e, t) => (k(), c("div", Z_, [f(oi, { size: 18 }), P(e.$slots, "default", {}, () => [d(L(R(G)("请求中...")), 1)])]));
10575
+ }), (e, t) => (k(), c("div", lv, [f(oi, { size: 18 }), P(e.$slots, "default", {}, () => [d(L(R(G)("请求中...")), 1)])]));
10505
10576
  }
10506
- }), $_ = { class: "ai-reasoning-message" }, ev = {
10577
+ }), dv = { class: "ai-reasoning-message" }, fv = {
10507
10578
  key: 0,
10508
10579
  class: "ai-reasoning-message-title-icon"
10509
- }, tv = { class: "ai-reasoning-message-title-text" }, nv = { class: "ai-reasoning-message-content" }, rv = /* @__PURE__ */ m({
10580
+ }, pv = { class: "ai-reasoning-message-title-text" }, mv = { class: "ai-reasoning-message-content" }, hv = /* @__PURE__ */ m({
10510
10581
  __name: "reasoning-message",
10511
10582
  props: /* @__PURE__ */ y({
10512
10583
  duration: {},
10513
10584
  content: {},
10585
+ createdAt: {},
10514
10586
  id: {},
10515
10587
  messageId: {},
10516
10588
  name: {},
@@ -10542,7 +10614,7 @@ var Vf = ["src"], Hf = {
10542
10614
  });
10543
10615
  return (n, i) => {
10544
10616
  var a;
10545
- return k(), c("div", $_, [l("div", {
10617
+ return k(), c("div", dv, [l("div", {
10546
10618
  class: S(["ai-reasoning-message-title", {
10547
10619
  "ai-reasoning-message-title-collapsed": r.value,
10548
10620
  "is-thinking": t.status === R(J).Pending || t.status === R(J).Streaming,
@@ -10551,10 +10623,10 @@ var Vf = ["src"], Hf = {
10551
10623
  }]),
10552
10624
  onClick: i[0] || (i[0] = (e) => r.value = !r.value)
10553
10625
  }, [
10554
- t.status === R(J).Pending || t.status === R(J).Streaming ? (k(), c("span", ev, [f(oi)])) : s("", !0),
10555
- l("span", tv, L(u.value), 1),
10626
+ t.status === R(J).Pending || t.status === R(J).Streaming ? (k(), c("span", fv, [f(oi)])) : s("", !0),
10627
+ l("span", pv, L(u.value), 1),
10556
10628
  l("span", { class: S(["ai-reasoning-message-title-icon collapsed-icon", { "is-collapsed": r.value }]) }, [f(R(jr))], 2)
10557
- ], 2), W(l("div", nv, [t.status === R(J).Error ? (k(), o(gu, {
10629
+ ], 2), W(l("div", mv, [t.status === R(J).Error ? (k(), o(gu, {
10558
10630
  key: 0,
10559
10631
  content: ((a = t.content) == null ? void 0 : a.join("\n")) || ""
10560
10632
  }, null, 8, ["content"])) : (k(!0), c(e, { key: 1 }, N(Array.isArray(t.content) ? t.content : [t.content], (e) => (k(), o(Fu, {
@@ -10563,41 +10635,42 @@ var Vf = ["src"], Hf = {
10563
10635
  }, null, 8, ["content"]))), 128))], 512), [[V, !r.value]])]);
10564
10636
  };
10565
10637
  }
10566
- }), iv = { class: "ai-key-value-content" }, av = {
10638
+ }), gv = { class: "ai-key-value-content" }, _v = {
10567
10639
  key: 0,
10568
10640
  class: "ai-key-value-title"
10569
- }, ov = { class: "ai-key-value-content" }, sv = { class: "item-key" }, cv = { class: "item-value" }, lv = /* @__PURE__ */ m({
10641
+ }, vv = { class: "ai-key-value-content" }, yv = { class: "item-key" }, bv = { class: "item-value" }, xv = /* @__PURE__ */ m({
10570
10642
  __name: "key-value-content",
10571
10643
  props: {
10572
10644
  content: {},
10573
10645
  title: {}
10574
10646
  },
10575
10647
  setup(t) {
10576
- return (n, r) => (k(), c("div", iv, [t.title ? (k(), c("div", av, [f(R(Ar)), d(" " + L(t.title), 1)])) : s("", !0), l("div", ov, [(k(!0), c(e, null, N(t.content, (e) => (k(), c("div", {
10648
+ return (n, r) => (k(), c("div", gv, [t.title ? (k(), c("div", _v, [f(R(Ar)), d(" " + L(t.title), 1)])) : s("", !0), l("div", vv, [(k(!0), c(e, null, N(t.content, (e) => (k(), c("div", {
10577
10649
  key: e.key,
10578
10650
  class: "key-value-item"
10579
10651
  }, [
10580
- l("div", sv, L(e.key), 1),
10652
+ l("div", yv, L(e.key), 1),
10581
10653
  r[0] || (r[0] = d(" : ", -1)),
10582
- l("div", cv, L(e.value), 1)
10654
+ l("div", bv, L(e.value), 1)
10583
10655
  ]))), 128))])]));
10584
10656
  }
10585
- }), uv = { class: "ai-text-content" }, dv = /* @__PURE__ */ m({
10657
+ }), Sv = { class: "ai-text-content" }, Cv = /* @__PURE__ */ m({
10586
10658
  __name: "text-content",
10587
10659
  props: { content: {} },
10588
10660
  setup(e) {
10589
- return (t, n) => (k(), c("div", uv, L(e.content), 1));
10661
+ return (t, n) => (k(), c("div", Sv, L(e.content), 1));
10590
10662
  }
10591
- }), fv = { class: "ai-user-message" }, pv = {
10663
+ }), wv = { class: "ai-user-message" }, Tv = {
10592
10664
  key: 0,
10593
10665
  class: "ai-user-message-binary-files"
10594
- }, mv = {
10666
+ }, Ev = {
10595
10667
  key: 1,
10596
10668
  class: "ai-user-message-content"
10597
- }, hv = { class: "user-edit-footer" }, gv = /* @__PURE__ */ m({
10669
+ }, Dv = { class: "user-edit-footer" }, Ov = /* @__PURE__ */ m({
10598
10670
  __name: "user-message",
10599
10671
  props: {
10600
10672
  content: {},
10673
+ createdAt: {},
10601
10674
  id: {},
10602
10675
  messageId: {},
10603
10676
  name: {},
@@ -10700,7 +10773,7 @@ var Vf = ["src"], Hf = {
10700
10773
  }();
10701
10774
  return (n, i) => {
10702
10775
  var a, v;
10703
- return k(), c("div", fv, [g.value && typeof g.value == "string" ? (k(), o(wf, {
10776
+ return k(), c("div", wv, [g.value && typeof g.value == "string" ? (k(), o(wf, {
10704
10777
  key: 0,
10705
10778
  class: "ai-user-message-cite",
10706
10779
  content: g.value
@@ -10719,7 +10792,7 @@ var Vf = ["src"], Hf = {
10719
10792
  "on-send-message": A,
10720
10793
  "support-upload": (a = (v = R(r)) == null ? void 0 : v.supportUpload.value) == null ? !1 : a
10721
10794
  }, {
10722
- "send-icon": U(() => [l("div", hv, [f(R(le), {
10795
+ "send-icon": U(() => [l("div", Dv, [f(R(le), {
10723
10796
  size: "small",
10724
10797
  onClick: E
10725
10798
  }, {
@@ -10739,7 +10812,7 @@ var Vf = ["src"], Hf = {
10739
10812
  "default-upload-files",
10740
10813
  "support-upload"
10741
10814
  ]))], 64)) : (k(), c(e, { key: 1 }, [
10742
- y.value.length ? (k(), c(e, { key: 0 }, [x.value.length ? (k(), c("div", pv, [f(tp, {
10815
+ y.value.length ? (k(), c(e, { key: 0 }, [x.value.length ? (k(), c("div", Tv, [f(tp, {
10743
10816
  files: x.value,
10744
10817
  readonly: !0
10745
10818
  }, null, 8, ["files"])])) : s("", !0), (k(!0), c(e, null, N(S.value, (e, t) => {
@@ -10752,15 +10825,15 @@ var Vf = ["src"], Hf = {
10752
10825
  readonly: !0
10753
10826
  }, null, 8, ["files"])]);
10754
10827
  }), 128))], 64)) : s("", !0),
10755
- g.value || C.value.length ? (k(), c("div", mv, [Array.isArray(g.value) ? (k(), o(lv, {
10828
+ g.value || C.value.length ? (k(), c("div", Ev, [Array.isArray(g.value) ? (k(), o(xv, {
10756
10829
  key: 0,
10757
10830
  content: g.value,
10758
10831
  title: h.value
10759
- }, null, 8, ["content", "title"])) : t.content ? (k(!0), c(e, { key: 1 }, N(C.value, (e, t) => (k(), o(dv, {
10832
+ }, null, 8, ["content", "title"])) : t.content ? (k(!0), c(e, { key: 1 }, N(C.value, (e, t) => (k(), o(Cv, {
10760
10833
  key: t,
10761
10834
  content: e
10762
10835
  }, null, 8, ["content"]))), 128)) : s("", !0)])) : s("", !0),
10763
- t.messageToolsStatus === R(vf).Hidden ? s("", !0) : (k(), o(Wh, {
10836
+ t.messageToolsStatus === R(vf).Hidden ? s("", !0) : (k(), o(ng, {
10764
10837
  key: 2,
10765
10838
  class: "ai-user-message-tools",
10766
10839
  "message-tools": R(Mt),
@@ -10768,7 +10841,10 @@ var Vf = ["src"], Hf = {
10768
10841
  "on-action": w,
10769
10842
  "tippy-options": t.tippyOptions,
10770
10843
  "update-tools": []
10771
- }, null, 8, [
10844
+ }, {
10845
+ prepend: U(() => [f(Rh, { "created-at": t.createdAt }, null, 8, ["created-at"])]),
10846
+ _: 1
10847
+ }, 8, [
10772
10848
  "message-tools",
10773
10849
  "message-tools-status",
10774
10850
  "tippy-options"
@@ -10776,7 +10852,7 @@ var Vf = ["src"], Hf = {
10776
10852
  ], 64))]);
10777
10853
  };
10778
10854
  }
10779
- }), _v = /* @__PURE__ */ m({
10855
+ }), kv = /* @__PURE__ */ m({
10780
10856
  __name: "message-render",
10781
10857
  props: {
10782
10858
  messageToolsStatus: {},
@@ -10790,40 +10866,40 @@ var Vf = ["src"], Hf = {
10790
10866
  setup(e) {
10791
10867
  let t = e, n = z(), r = a(() => {
10792
10868
  switch (t.message.role) {
10793
- case q.User: return g(gv, X(X({}, t.message), {}, {
10869
+ case q.User: return g(Ov, X(X({}, t.message), {}, {
10794
10870
  onAction: t.onAction,
10795
10871
  onInputConfirm: t.onInputConfirm,
10796
10872
  onShortcutConfirm: t.onShortcutConfirm,
10797
10873
  messageToolsStatus: t.messageToolsStatus,
10798
10874
  tippyOptions: t.tippyOptions
10799
10875
  }));
10800
- case q.Assistant: return g(A_, t.message, { default: (e) => P(n, "default", e, () => [g(Ru, {
10876
+ case q.Assistant: return g(H_, t.message, { default: (e) => P(n, "default", e, () => [g(Ru, {
10801
10877
  content: t.message.content || "",
10802
10878
  status: t.message.status
10803
10879
  }, n.codeHeader ? { codeHeader: (e) => {
10804
10880
  var t;
10805
10881
  return (t = n.codeHeader) == null ? void 0 : t.call(n, e);
10806
10882
  } } : void 0)]) });
10807
- case q.Info: return g(N_, t.message);
10808
- case q.Reasoning: return g(rv, t.message);
10809
- case q.Tool: return g(y_, t.message);
10810
- case q.Activity: return g(d_, X(X({}, t.message), {}, { onInterruptResume: t.onInterruptResume }));
10811
- case q.Interrupt: return g(X_, X(X({}, t.message), {}, { onInterruptResume: t.onInterruptResume }), n.answeredQuestion ? { answeredQuestion: (e) => {
10883
+ case q.Info: return g(G_, t.message);
10884
+ case q.Reasoning: return g(hv, t.message);
10885
+ case q.Tool: return g(j_, t.message);
10886
+ case q.Activity: return g(C_, X(X({}, t.message), {}, { onInterruptResume: t.onInterruptResume }));
10887
+ case q.Interrupt: return g(cv, X(X({}, t.message), {}, { onInterruptResume: t.onInterruptResume }), n.answeredQuestion ? { answeredQuestion: (e) => {
10812
10888
  var t;
10813
10889
  return (t = n.answeredQuestion) == null ? void 0 : t.call(n, e);
10814
10890
  } } : void 0);
10815
- case q.Loading: return g(Q_, t.message);
10891
+ case q.Loading: return g(uv, t.message);
10816
10892
  default: return null;
10817
10893
  }
10818
10894
  });
10819
10895
  return (e, t) => (k(), o(F(r.value)));
10820
10896
  }
10821
- }), vv = [
10897
+ }), Av = [
10822
10898
  "id",
10823
10899
  "data-message-group-id",
10824
10900
  "onMouseenter",
10825
10901
  "onMouseleave"
10826
- ], yv = ["data-message-id"], bv = { class: "ai-message-fixed-bottom" }, xv = /* @__PURE__ */ m({
10902
+ ], jv = ["data-message-id"], Mv = { class: "ai-message-fixed-bottom" }, Nv = /* @__PURE__ */ m({
10827
10903
  __name: "message-container",
10828
10904
  props: /* @__PURE__ */ y({
10829
10905
  enableSelection: {
@@ -10853,27 +10929,33 @@ var Vf = ["src"], Hf = {
10853
10929
  let n = t, r = ie(t, "selectedUserMessages"), i = (e) => {
10854
10930
  let t = e.id || e.uid;
10855
10931
  return t === void 0 ? void 0 : String(t);
10856
- }, d = B("messageContainerRef"), p = B("messageContainerBottomRef"), { jumpToBottom: m, toScrollBottom: h, debouncedShowScrollBottomBtn: g } = Vi(d, p);
10932
+ }, d = (e) => {
10933
+ for (let n = e.length - 1; n >= 0; n--) {
10934
+ var t;
10935
+ let r = (t = e[n]) == null ? void 0 : t.createdAt;
10936
+ if (r) return r;
10937
+ }
10938
+ }, p = B("messageContainerRef"), m = B("messageContainerBottomRef"), { jumpToBottom: h, toScrollBottom: g, debouncedShowScrollBottomBtn: _ } = Vi(p, m);
10857
10939
  E(() => {
10858
10940
  var e;
10859
- (e = n.messageGroups) != null && e.length && (m(), requestAnimationFrame(() => m()));
10941
+ (e = n.messageGroups) != null && e.length && (h(), requestAnimationFrame(() => h()));
10860
10942
  });
10861
- let { copy: _ } = Ii(), v = (e, t) => {
10943
+ let { copy: v } = Ii(), y = (e, t) => {
10862
10944
  if (!(t != null && t.length)) return e;
10863
10945
  let n = e.map((e) => {
10864
10946
  let n = t.find((t) => t.id === e.id);
10865
10947
  return n ? X(X({}, e), n) : e;
10866
10948
  }), r = t.filter((t) => !e.some((e) => e.id === t.id));
10867
10949
  return [...n, ...r].filter((e) => !e.hidden);
10868
- }, y = a(() => v(jt, n.messageTools).filter((e) => n.renderMode !== Lt.Test || e.id !== "share")), x = a(() => v(Nt, n.updateTools)), C = a(() => n.renderMode === Lt.Share ? n.messageGroups.filter((e) => e.type !== q.Loading) : n.messageGroups), T = (e) => {
10950
+ }, x = a(() => y(jt, n.messageTools).filter((e) => n.renderMode !== Lt.Test || e.id !== "share")), C = a(() => y(Nt, n.updateTools)), T = a(() => n.renderMode === Lt.Share ? n.messageGroups.filter((e) => e.type !== q.Loading) : n.messageGroups), D = (e) => {
10869
10951
  var t;
10870
10952
  let n = (t = e.messages) == null ? void 0 : t.at(-1);
10871
10953
  (n == null ? void 0 : n.role) !== q.Interrupt && (e.isHover = !0);
10872
- }, D = (e, t) => {
10954
+ }, O = (e, t) => {
10873
10955
  var n;
10874
10956
  let r = (n = t.toElement) == null ? t.relatedTarget : n;
10875
10957
  r instanceof Element && r.classList.contains("ai-user-feedback") || (e.isHover = !1);
10876
- }, O = (e, t) => {
10958
+ }, A = (e, t) => {
10877
10959
  var i, a;
10878
10960
  let o = e.type === q.User;
10879
10961
  (i = n.messageGroups) == null || i.forEach((r, i) => {
@@ -10883,15 +10965,15 @@ var Vf = ["src"], Hf = {
10883
10965
  e && (e.checked = t);
10884
10966
  }
10885
10967
  }), r.value = (a = n.messageGroups) == null ? void 0 : a.filter((e) => e.checked).map((e) => e.messages).flat();
10886
- }, A = function() {
10968
+ }, j = function() {
10887
10969
  var e = Z(function* (e, t) {
10888
10970
  var r;
10889
- return e.id === "copy" && _(t.filter((e) => e.role !== q.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n")), (r = n.onAgentAction) == null ? void 0 : r.call(n, e, t);
10971
+ return e.id === "copy" && v(t.filter((e) => e.role !== q.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n")), (r = n.onAgentAction) == null ? void 0 : r.call(n, e, t);
10890
10972
  });
10891
10973
  return function(t, n) {
10892
10974
  return e.apply(this, arguments);
10893
10975
  };
10894
- }(), j = function() {
10976
+ }(), M = function() {
10895
10977
  var e = Z(function* (e, t) {
10896
10978
  var r;
10897
10979
  (r = n.onUserAction) == null || r.call(n, e, t);
@@ -10899,7 +10981,7 @@ var Vf = ["src"], Hf = {
10899
10981
  return function(t, n) {
10900
10982
  return e.apply(this, arguments);
10901
10983
  };
10902
- }(), M = function() {
10984
+ }(), ee = function() {
10903
10985
  var e = Z(function* (e, t, r) {
10904
10986
  var i;
10905
10987
  (i = n.onUserInputConfirm) == null || i.call(n, e, t, r);
@@ -10907,7 +10989,7 @@ var Vf = ["src"], Hf = {
10907
10989
  return function(t, n, r) {
10908
10990
  return e.apply(this, arguments);
10909
10991
  };
10910
- }(), ee = function() {
10992
+ }(), F = function() {
10911
10993
  var e = Z(function* (e, t) {
10912
10994
  var r;
10913
10995
  (r = n.onUserShortcutConfirm) == null || r.call(n, e, t);
@@ -10918,22 +11000,22 @@ var Vf = ["src"], Hf = {
10918
11000
  }();
10919
11001
  return (r, a) => (k(), c("div", {
10920
11002
  ref_key: "messageContainerRef",
10921
- ref: d,
11003
+ ref: p,
10922
11004
  class: "ai-message-container"
10923
11005
  }, [
10924
- (k(!0), c(e, null, N(C.value, (a, d) => (k(), c("div", {
11006
+ (k(!0), c(e, null, N(T.value, (a, p) => (k(), c("div", {
10925
11007
  id: a.uid,
10926
- key: d,
11008
+ key: p,
10927
11009
  class: "message-group",
10928
11010
  "data-message-group-id": a.uid,
10929
11011
  style: w({ backgroundColor: a.checked ? "#f5f7fa" : "transparent" }),
10930
- onMouseenter: (e) => T(a),
10931
- onMouseleave: (e) => D(a, e)
11012
+ onMouseenter: (e) => D(a),
11013
+ onMouseleave: (e) => O(a, e)
10932
11014
  }, [P(r.$slots, "group", b({ ref_for: !0 }, { group: a }), () => [t.enableSelection && a.type !== R(q).Loading ? (k(), o(R(ue), {
10933
11015
  key: 0,
10934
11016
  class: "message-group-checkbox",
10935
11017
  "model-value": a.checked,
10936
- "onUpdate:modelValue": (e) => O(a, e)
11018
+ "onUpdate:modelValue": (e) => A(a, e)
10937
11019
  }, null, 8, ["model-value", "onUpdate:modelValue"])) : s("", !0), l("div", {
10938
11020
  class: S(["message-group-messages", { "message-group-enabled-selection": t.renderMode === R(Lt).Share || t.enableSelection && a.type !== R(q).Loading }]),
10939
11021
  style: w({ width: t.enableSelection && a.type !== R(q).Loading ? "calc(100% - 16px)" : "100%" })
@@ -10945,14 +11027,14 @@ var Vf = ["src"], Hf = {
10945
11027
  message: e,
10946
11028
  messageToolsStatus: t.messageToolsStatus,
10947
11029
  onInterruptResume: n.onInterruptResume
10948
- }), () => [(k(), o(_v, {
11030
+ }), () => [(k(), o(kv, {
10949
11031
  key: a,
10950
11032
  message: e,
10951
11033
  "message-tools-status": t.messageToolsStatus,
10952
- "on-action": (t) => j(t, e),
10953
- "on-input-confirm": (t, n) => M(e, t, n),
11034
+ "on-action": (t) => M(t, e),
11035
+ "on-input-confirm": (t, n) => ee(e, t, n),
10954
11036
  "on-interrupt-resume": n.onInterruptResume,
10955
- "on-shortcut-confirm": (t) => ee(e, t),
11037
+ "on-shortcut-confirm": (t) => F(e, t),
10956
11038
  "tippy-options": t.messageToolsTippyOptions
10957
11039
  }, u({ _: 2 }, [r.$slots.answeredQuestion ? {
10958
11040
  name: "answeredQuestion",
@@ -10966,19 +11048,22 @@ var Vf = ["src"], Hf = {
10966
11048
  "on-interrupt-resume",
10967
11049
  "on-shortcut-confirm",
10968
11050
  "tippy-options"
10969
- ]))])], 8, yv))), 128)), t.renderMode !== R(Lt).Share && !(t.enableSelection && a.type !== R(q).Loading) && !a.pause && a.type === R(q).Assistant && t.messageToolsStatus !== R(vf).Hidden ? (k(), o(Wh, {
11051
+ ]))])], 8, jv))), 128)), t.renderMode !== R(Lt).Share && !(t.enableSelection && a.type !== R(q).Loading) && !a.pause && a.type === R(q).Assistant && t.messageToolsStatus !== R(vf).Hidden ? (k(), o(ng, {
10970
11052
  key: 0,
10971
- "message-tools": y.value,
11053
+ "message-tools": x.value,
10972
11054
  "message-tools-status": t.messageToolsStatus,
10973
- "on-action": (e) => A(e, a.messages),
11055
+ "on-action": (e) => j(e, a.messages),
10974
11056
  style: w({ visibility: a.isHover ? "visible" : "hidden" }),
10975
11057
  "tippy-options": n.messageToolsTippyOptions,
10976
- "update-tools": x.value,
11058
+ "update-tools": C.value,
10977
11059
  onFeedback: (e, t, r) => {
10978
11060
  var i;
10979
11061
  return (i = n.onAgentFeedback) == null ? void 0 : i.call(n, e, a.messages, t, r);
10980
11062
  }
10981
- }, null, 8, [
11063
+ }, {
11064
+ append: U(() => [f(Rh, { "created-at": d(a.messages) }, null, 8, ["created-at"])]),
11065
+ _: 2
11066
+ }, 1032, [
10982
11067
  "message-tools",
10983
11068
  "message-tools-status",
10984
11069
  "on-action",
@@ -10986,14 +11071,14 @@ var Vf = ["src"], Hf = {
10986
11071
  "tippy-options",
10987
11072
  "update-tools",
10988
11073
  "onFeedback"
10989
- ])) : s("", !0)], 6)])], 44, vv))), 128)),
11074
+ ])) : s("", !0)], 6)])], 44, Av))), 128)),
10990
11075
  l("div", {
10991
11076
  ref_key: "messageContainerBottomRef",
10992
- ref: p,
11077
+ ref: m,
10993
11078
  class: "message-container-bottom",
10994
11079
  tabindex: "0"
10995
11080
  }, null, 512),
10996
- l("div", bv, [W(f($r, {
11081
+ l("div", Mv, [W(f($r, {
10997
11082
  loading: t.messageStatus === R(J).StopLoading,
10998
11083
  title: t.messageStatus === R(J).StopLoading ? R(G)("正在停止") : R(G)("停止生成"),
10999
11084
  onClick: a[0] || (a[0] = (e) => r.$emit("stopStreaming"))
@@ -11002,20 +11087,20 @@ var Vf = ["src"], Hf = {
11002
11087
  _: 1
11003
11088
  }, 8, ["loading", "title"]), [[V, t.renderMode !== R(Lt).Share && (t.messageStatus === R(J).Streaming || t.messageStatus === R(J).StopLoading || t.messageStatus === R(J).Fetching || t.messageStatus === R(J).Pending)]]), W(f($r, {
11004
11089
  title: R(G)("返回底部"),
11005
- onClick: a[1] || (a[1] = () => R(h)("smooth"))
11090
+ onClick: a[1] || (a[1] = () => R(g)("smooth"))
11006
11091
  }, {
11007
11092
  icon: U(() => [f(R(Pr))]),
11008
11093
  _: 1
11009
- }, 8, ["title"]), [[V, R(g)]])])
11094
+ }, 8, ["title"]), [[V, R(_)]])])
11010
11095
  ], 512));
11011
11096
  }
11012
- }), Sv = { class: "ai-execution-summary" }, Cv = { class: "ai-execution-summary-header" }, wv = { class: "ai-execution-summary-content" }, Tv = ["onMouseenter"], Ev = { class: "content-item-header" }, Dv = { class: "content-item-title" }, Ov = { class: "content-item-messages" }, kv = {
11097
+ }), Pv = { class: "ai-execution-summary" }, Fv = { class: "ai-execution-summary-header" }, Iv = { class: "ai-execution-summary-content" }, Lv = ["onMouseenter"], Rv = { class: "content-item-header" }, zv = { class: "content-item-title" }, Bv = { class: "content-item-messages" }, Vv = {
11013
11098
  key: 0,
11014
11099
  class: "timeline-line"
11015
- }, Av = {
11100
+ }, Hv = {
11016
11101
  key: 1,
11017
11102
  class: "ai-execution-summary-content-empty"
11018
- }, jv = { class: "ai-execution-summary-content-empty-text" }, Mv = /* @__PURE__ */ m({
11103
+ }, Uv = { class: "ai-execution-summary-content-empty-text" }, Wv = /* @__PURE__ */ m({
11019
11104
  __name: "execution-summary",
11020
11105
  props: { messageGroups: {} },
11021
11106
  emits: ["locateMessageGroup", "updateKeyword"],
@@ -11029,21 +11114,21 @@ var Vf = ["src"], Hf = {
11029
11114
  }, h = () => {
11030
11115
  a.value = "", r("updateKeyword", "");
11031
11116
  };
11032
- return (n, g) => (k(), c("div", Sv, [l("div", Cv, [f(R(pe), {
11117
+ return (n, g) => (k(), c("div", Pv, [l("div", Fv, [f(R(pe), {
11033
11118
  modelValue: R(a),
11034
11119
  "onUpdate:modelValue": [g[0] || (g[0] = (e) => v(a) ? a.value = e : null), g[1] || (g[1] = (e) => r("updateKeyword", e))],
11035
11120
  class: "ai-execution-summary-header-input",
11036
11121
  clearable: "",
11037
11122
  placeholder: R(G)("搜索 关键字")
11038
- }, null, 8, ["modelValue", "placeholder"])]), l("div", wv, [t.messageGroups.length ? (k(!0), c(e, { key: 0 }, N(t.messageGroups, (n, r) => (k(), c("div", {
11123
+ }, null, 8, ["modelValue", "placeholder"])]), l("div", Iv, [t.messageGroups.length ? (k(!0), c(e, { key: 0 }, N(t.messageGroups, (n, r) => (k(), c("div", {
11039
11124
  key: n.uid,
11040
11125
  class: "ai-execution-summary-content-item",
11041
11126
  onMouseenter: (e) => u.value = n.uid,
11042
11127
  onMouseleave: g[2] || (g[2] = (e) => u.value = void 0)
11043
11128
  }, [
11044
- l("div", Ev, [
11129
+ l("div", Rv, [
11045
11130
  g[3] || (g[3] = l("span", { class: "timeline-dot" }, null, -1)),
11046
- W((k(), c("span", Dv, [d(L(typeof n.userMessageTitle == "number" ? p(n.userMessageTitle) : n.userMessageTitle), 1)])), [[R(xa), X({}, R(i))]]),
11131
+ W((k(), c("span", zv, [d(L(typeof n.userMessageTitle == "number" ? p(n.userMessageTitle) : n.userMessageTitle), 1)])), [[R(xa), X({}, R(i))]]),
11047
11132
  W(f(R(le), {
11048
11133
  class: "content-item-locate",
11049
11134
  text: "",
@@ -11054,15 +11139,15 @@ var Vf = ["src"], Hf = {
11054
11139
  _: 1
11055
11140
  }, 8, ["onClick"]), [[V, u.value === n.uid]])
11056
11141
  ]),
11057
- l("div", Ov, [(k(!0), c(e, null, N(n.messages, (e, t) => (k(), o(_v, {
11142
+ l("div", Bv, [(k(!0), c(e, null, N(n.messages, (e, t) => (k(), o(kv, {
11058
11143
  key: t,
11059
11144
  message: e
11060
11145
  }, null, 8, ["message"]))), 128))]),
11061
- r < t.messageGroups.length - 1 ? (k(), c("div", kv)) : s("", !0)
11062
- ], 40, Tv))), 128)) : (k(), c("div", Av, [f(R(de), {
11146
+ r < t.messageGroups.length - 1 ? (k(), c("div", Vv)) : s("", !0)
11147
+ ], 40, Lv))), 128)) : (k(), c("div", Hv, [f(R(de), {
11063
11148
  class: "empty-exception",
11064
11149
  type: "empty"
11065
- }), l("div", jv, [d(L(R(a) ? R(G)("搜索结果为空") : R(G)("暂无数据")) + " ", 1), R(a) ? (k(), o(R(le), {
11150
+ }), l("div", Uv, [d(L(R(a) ? R(G)("搜索结果为空") : R(G)("暂无数据")) + " ", 1), R(a) ? (k(), o(R(le), {
11066
11151
  key: 0,
11067
11152
  text: "",
11068
11153
  theme: "primary",
@@ -11072,7 +11157,7 @@ var Vf = ["src"], Hf = {
11072
11157
  _: 1
11073
11158
  })) : s("", !0)])]))])]));
11074
11159
  }
11075
- }), Nv = { class: "ai-selection-footer" }, Pv = { class: "ai-selection-footer-left" }, Fv = { class: "select-all-text" }, Iv = { class: "ai-selection-footer-right" }, Lv = /* @__PURE__ */ m({
11160
+ }), Gv = { class: "ai-selection-footer" }, Kv = { class: "ai-selection-footer-left" }, qv = { class: "select-all-text" }, Jv = { class: "ai-selection-footer-right" }, Yv = /* @__PURE__ */ m({
11076
11161
  __name: "selection-footer",
11077
11162
  props: {
11078
11163
  isAllSelected: { type: Boolean },
@@ -11086,10 +11171,10 @@ var Vf = ["src"], Hf = {
11086
11171
  ],
11087
11172
  setup(e, { emit: t }) {
11088
11173
  let n = t;
11089
- return (t, r) => (k(), c("div", Nv, [l("div", Pv, [f(R(ue), {
11174
+ return (t, r) => (k(), c("div", Gv, [l("div", Kv, [f(R(ue), {
11090
11175
  "model-value": e.isAllSelected,
11091
11176
  "onUpdate:modelValue": r[0] || (r[0] = (e) => n("toggle-all", e))
11092
- }, null, 8, ["model-value"]), l("span", Fv, L(R(G)("全选")), 1)]), l("div", Iv, [f(R(le), {
11177
+ }, null, 8, ["model-value"]), l("span", qv, L(R(G)("全选")), 1)]), l("div", Jv, [f(R(le), {
11093
11178
  disabled: e.loading,
11094
11179
  onClick: r[1] || (r[1] = (e) => n("cancel"))
11095
11180
  }, {
@@ -11105,16 +11190,16 @@ var Vf = ["src"], Hf = {
11105
11190
  _: 1
11106
11191
  }, 8, ["disabled", "loading"])])]));
11107
11192
  }
11108
- }), Rv = ["data-ai-size"], zv = {
11193
+ }), Xv = ["data-ai-size"], Zv = {
11109
11194
  key: 0,
11110
11195
  class: "ai-chat-container-loading"
11111
- }, Bv = { class: "screen-wrapper" }, Vv = {
11196
+ }, Qv = { class: "screen-wrapper" }, $v = {
11112
11197
  key: 1,
11113
11198
  class: "ai-welcome-content"
11114
- }, Hv = { class: "ai-welcome-title" }, Uv = {
11199
+ }, ey = { class: "ai-welcome-title" }, ty = {
11115
11200
  key: 0,
11116
11201
  class: "ai-welcome-remark"
11117
- }, Wv = /* @__PURE__ */ m({
11202
+ }, ny = /* @__PURE__ */ m({
11118
11203
  __name: "chat-container",
11119
11204
  props: /* @__PURE__ */ y({
11120
11205
  chatLoading: { type: Boolean },
@@ -11131,6 +11216,7 @@ var Vf = ["src"], Hf = {
11131
11216
  placement: { default: "left" },
11132
11217
  resizeProps: {},
11133
11218
  size: { default: "small" },
11219
+ timezone: {},
11134
11220
  welcomeTitle: {},
11135
11221
  defaultUploadFiles: {},
11136
11222
  inputMaxHeight: {},
@@ -11211,7 +11297,8 @@ var Vf = ["src"], Hf = {
11211
11297
  supportUpload: a(() => {
11212
11298
  var e;
11213
11299
  return (e = u.supportUpload) == null ? !1 : e;
11214
- })
11300
+ }),
11301
+ timezone: a(() => u.timezone)
11215
11302
  }), H(() => {
11216
11303
  var e;
11217
11304
  return (e = u.size) == null ? "small" : e;
@@ -11371,7 +11458,7 @@ var Vf = ["src"], Hf = {
11371
11458
  "--resize-main-width": ge.value,
11372
11459
  borderTopColor: R(V) ? "transparent" : "#eaebf0"
11373
11460
  })
11374
- }, [t.chatLoading ? (k(), c("div", zv, [f(um)])) : (k(), o(R(_e), b({
11461
+ }, [t.chatLoading ? (k(), c("div", Zv, [f(um)])) : (k(), o(R(_e), b({
11375
11462
  key: 1,
11376
11463
  class: ["ai-chat-container-resize-layout", { "ai-is-collapse": R(V) || R(ne).length > 0 && !((a = fe.value) != null && a.length) && ((u = R(ye)) == null ? void 0 : u.length) < 1 && !ke.value }]
11377
11464
  }, T.value, { onResizing: qe }), {
@@ -11390,7 +11477,7 @@ var Vf = ["src"], Hf = {
11390
11477
  type: "unborder-card",
11391
11478
  onChange: He
11392
11479
  }, {
11393
- setting: U(() => [l("div", Bv, [f(Ca, {
11480
+ setting: U(() => [l("div", Qv, [f(Ca, {
11394
11481
  class: "screen-btn",
11395
11482
  "tippy-options": X(X({}, te.value), {}, { content: R(_) ? R(G)("退出全屏") : R(G)("全屏") })
11396
11483
  }, {
@@ -11431,7 +11518,7 @@ var Vf = ["src"], Hf = {
11431
11518
  }, null, 8, ["label", "name"]))), 128))]),
11432
11519
  _: 1
11433
11520
  }, 8, ["active"]),
11434
- ((u = R(z)) == null ? void 0 : u.name) === R("execution") && t.executionTabVisible !== !1 ? (k(), c(e, { key: 0 }, [R(V) ? s("", !0) : (k(), o(Mv, {
11521
+ ((u = R(z)) == null ? void 0 : u.name) === R("execution") && t.executionTabVisible !== !1 ? (k(), c(e, { key: 0 }, [R(V) ? s("", !0) : (k(), o(Wv, {
11435
11522
  key: 0,
11436
11523
  "message-groups": R(ye),
11437
11524
  style: { height: "calc(100% - 40px)" },
@@ -11494,7 +11581,7 @@ var Vf = ["src"], Hf = {
11494
11581
  onUserShortcutConfirm: t.onUserShortcutConfirm
11495
11582
  })), () => {
11496
11583
  var e;
11497
- return [(e = t.messages) != null && e.length ? (k(), o(xv, {
11584
+ return [(e = t.messages) != null && e.length ? (k(), o(Nv, {
11498
11585
  key: 0,
11499
11586
  "selected-user-messages": pe.value,
11500
11587
  "onUpdate:selectedUserMessages": r[1] || (r[1] = (e) => pe.value = e),
@@ -11539,17 +11626,17 @@ var Vf = ["src"], Hf = {
11539
11626
  "render-mode",
11540
11627
  "update-tools"
11541
11628
  ])) : s("", !0)];
11542
- }) : (k(), c("div", Vv, [P(n.$slots, "welcome", C(h({
11629
+ }) : (k(), c("div", $v, [P(n.$slots, "welcome", C(h({
11543
11630
  openingRemark: t.openingRemark,
11544
11631
  welcomeTitle: t.welcomeTitle
11545
11632
  })), () => {
11546
11633
  var e;
11547
11634
  return [
11548
11635
  f(R(Jt)),
11549
- l("h2", Hv, L((e = t.welcomeTitle) == null ? R(G)("你好,我是小鲸") : e), 1),
11550
- t.openingRemark ? (k(), c("div", Uv, [f(Ru, { content: t.openingRemark }, null, 8, ["content"])])) : s("", !0)
11636
+ l("h2", ey, L((e = t.welcomeTitle) == null ? R(G)("你好,我是小鲸") : e), 1),
11637
+ t.openingRemark ? (k(), c("div", ty, [f(Ru, { content: t.openingRemark }, null, 8, ["content"])])) : s("", !0)
11551
11638
  ];
11552
- })])), p.value === R(Lt).Share ? s("", !0) : (k(), c(e, { key: 2 }, [R(Se) ? (k(), o(Lv, {
11639
+ })])), p.value === R(Lt).Share ? s("", !0) : (k(), c(e, { key: 2 }, [R(Se) ? (k(), o(Yv, {
11553
11640
  key: 0,
11554
11641
  "is-all-selected": R(Ce),
11555
11642
  loading: !1,
@@ -11629,10 +11716,10 @@ var Vf = ["src"], Hf = {
11629
11716
  ]))], 64))];
11630
11717
  }),
11631
11718
  _: 3
11632
- }, 16, ["class"]))], 12, Rv);
11719
+ }, 16, ["class"]))], 12, Xv);
11633
11720
  };
11634
11721
  }
11635
- }), Gv = { class: "ai-image-preview-group" }, Kv = /* @__PURE__ */ m(X(X({}, { name: "ImagePreviewGroup" }), {}, {
11722
+ }), ry = { class: "ai-image-preview-group" }, iy = /* @__PURE__ */ m(X(X({}, { name: "ImagePreviewGroup" }), {}, {
11636
11723
  __name: "image-preview-group",
11637
11724
  props: {
11638
11725
  maskClosable: {
@@ -11661,7 +11748,7 @@ var Vf = ["src"], Hf = {
11661
11748
  let a = [...t.keys()], o = a.map((e) => t.get(e)()), s = a.indexOf(e);
11662
11749
  r.value = o, i.value = s >= 0 ? s : 0, n.value = !0;
11663
11750
  }
11664
- }), (t, a) => (k(), c("div", Gv, [P(t.$slots, "default"), n.value ? (k(), o(Kf, {
11751
+ }), (t, a) => (k(), c("div", ry, [P(t.$slots, "default"), n.value ? (k(), o(Kf, {
11665
11752
  key: 0,
11666
11753
  current: i.value,
11667
11754
  "onUpdate:current": a[0] || (a[0] = (e) => i.value = e),
@@ -11684,10 +11771,10 @@ var Vf = ["src"], Hf = {
11684
11771
  "show-info"
11685
11772
  ])) : s("", !0)]));
11686
11773
  }
11687
- })), qv = ["alt", "src"], Jv = {
11774
+ })), ay = ["alt", "src"], oy = {
11688
11775
  key: 1,
11689
11776
  class: "ai-image-error"
11690
- }, Yv = /* @__PURE__ */ m(X(X({}, { name: "AiImage" }), {}, {
11777
+ }, sy = /* @__PURE__ */ m(X(X({}, { name: "AiImage" }), {}, {
11691
11778
  __name: "image",
11692
11779
  props: {
11693
11780
  alt: { default: "" },
@@ -11779,8 +11866,8 @@ var Vf = ["src"], Hf = {
11779
11866
  style: j,
11780
11867
  onError: N,
11781
11868
  onLoad: M
11782
- }, null, 40, qv)) : s("", !0),
11783
- h.value === "error" ? (k(), c("div", Jv, [f(R(tn), { class: "ai-image-error-icon" })])) : s("", !0),
11869
+ }, null, 40, ay)) : s("", !0),
11870
+ h.value === "error" ? (k(), c("div", oy, [f(R(tn), { class: "ai-image-error-icon" })])) : s("", !0),
11784
11871
  h.value === "error" ? (k(), c("div", {
11785
11872
  key: 2,
11786
11873
  class: "ai-image-error-overlay",
@@ -11808,4 +11895,4 @@ var Vf = ["src"], Hf = {
11808
11895
  }
11809
11896
  }));
11810
11897
  //#endregion
11811
- export { Jt as AIBluekingBannerIcon, qt as AIBluekingIcon, K as APPROVAL_STATUS, xt as APPROVAL_STATUS_MAP, ki as ARTIFACT_PREVIEW_TOKEN, Yr as ActiveLikeIcon, Xr as ActiveUnLikeIcon, zr as AgentIcon, Yv as AiImage, oi as AiLoading, fi as AiSelection, Pr as ArrowDownIcon, ur as ArrowLeftIcon, $t as ArrowRightIcon, dr as ArrowRightPreviewIcon, dn as ArtifactTabIcon, rn as BkFlowFailedIcon, on as BkFlowPendingIcon, sn as BkFlowSkippedIcon, nn as BkFlowSuccessIcon, an as BkFlowSuspendedIcon, Et as CHAT_Z_INDEX, jt as CONST_MESSAGE_TOOLS, Nt as CONST_UPDATE_TOOLS, Mt as CONST_USER_MESSAGE_TOOLS, Ri as CONTAINER_SCROLL_TOKEN, Ui as CUSTOM_TAB_TOKEN, Wv as ChatContainer, Xp as ChatInput, br as CheckCircleFillIcon, Hr as CiteIcon, Sr as CloseCircleFillIcon, hr as CloseCircleIcon, Lr as CloseIcon, nu as CodeContent, jr as CollapsedIcon, Nr as ContentLoadingIcon, Ru as ContentRender, Vr as CopyIcon, Qr as DEFAULT_SHORTCUTS, Gi as DEFAULT_TAB_ORDER, sd as Delete, _r as DeleteCircleIcon, qr as DeleteIcon, gr as DocLinkIcon, Yt as DocumentIcon, fn as DownloadFileIcon, cr as DownloadIcon, Ot as EDITOR_MENU_Z_INDEX, Dt as EDITOR_Z_INDEX, Wi as EXECUTION_TAB_NAME, Jr as EditIcon, Er as EnterIcon, Mr as ErrorIcon, cn as ExecutionIcon, Mv as ExecutionSummary, Ai as FILE_ARTIFACT_TAB_NAME, tm as FileIcon, vr as FileUploadIcon, sr as FitScreenIcon, Fr as FullScreenIcon, Xi as GLOBAL_CONFIG_TOKEN, It as HIGHLIGHT_KEYWORD_CLASS_NAME, wr as HelpDocIcon, Gh as HighlightKeyword, hf as IMAGE_PREVIEW_GROUP_KEY, Bi as INSTANT_SCROLL_DISTANCE, pr as ImageBrokenIcon, lu as ImageContent, tn as ImageErrorIcon, Kf as ImagePreview, Kv as ImagePreviewGroup, mr as ImageSizeIcon, Tr as InfoIcon, cd as InsertText, X_ as InterruptMessageRender, yt as InterruptReason, St as InterruptResumeOperation, Rt as LOADING_MESSAGE_ID, du as LatexContent, Gr as LikeIcon, en as LinkIcon, kr as LoadingMessageIcon, Pt as MAX_UPLOAD_FILES, Ft as MAX_UPLOAD_FILE_SIZE, Fu as MarkdownContent, zt as MarkdownLanguageMap, pu as MermaidContent, xv as MessageContainer, bt as MessageContentType, um as MessageLoading, _v as MessageRender, q as MessageRole, gf as MessageState, J as MessageStatus, Wh as MessageTools, vf as MessageToolsStatus, zh as MessageUserFeedback, Jp as ModelSelector, Br as MoreAgentIcon, Rr as MoreIcon, ln as NodeOutputIcon, un as NodeTabIcon, Km as OTHERS_OPTION_LABEL, xa as OverflowTips, lr as PreviewCloseIcon, Xt as PreviewIcon, Ur as RebuildIcon, fr as ReloadIcon, Qt as RemoveIcon, Lt as RenderMode, ld as ReplaceAll, Cr as RevokedIcon, or as RotateIcon, At as SELECTION_Z_INDEX, kt as SHORTCUT_MENU_Z_INDEX, zi as SHOW_SCROLL_BOTTOM_BTN_DISTANCE, $r as ScrollBtn, yr as SearchIcon, Lv as SelectionFooter, Or as SendMessageIcon, Wr as ShareIcon, li as ShortcutBtn, gi as ShortcutBtns, Di as ShortcutRender, Dr as SkipIcon, Zt as TargetIcon, Ar as ThinkingIcon, xr as TimeIcon, T_ as ToolCallRender, Zr as ToolIconsMap, tr as UNKNOWN_FILE_ICON_SVG, Ir as UnFullScreenIcon, Kr as UnLikeIcon, _f as UploadStatus, wt as UserMultiChoiceQuestionSchema, ah as UserQuestionAnsweredCard, Oh as UserQuestionCard, dh as UserQuestionChoice, lh as UserQuestionOption, Tt as UserQuestionSchema, Ct as UserSingleChoiceQuestionSchema, Mu as VNodeRenderer, ir as ZoomInIcon, ar as ZoomOutIcon, Ym as buildSkipResumePayload, gu as commonErrorContent, Y as commonSVGProps, et as completeMarkdownSyntax, cf as createEditor, Hu as docToString, mt as formatDuration, gt as formatElapsedTime, Be as formatFileSize, Ve as formatUploadNotAddedMessage, ht as generateUUID, pt as getCookieByName, ze as getFileExtension, rr as getFileIconSvg, Re as getFilePreviewUrl, ca as getScrollParent, Qi as injectGlobalConfig, _t as isEn, Le as isImageFile, vt as lang, Ml as markdownAnimationAttrs, zl as markdownItBkInlineStyle, Wl as markdownItLatex, Kl as markdownItMermaid, dd as microtask, ud as min, Ge as needsMarkdownCompletion, mf as noop, Ue as normalizeFileExtension, lf as plainSchema, Ke as removeCompletionSuffix, We as resolveFileKind, pf as resourceTypeMap, ff as schema, Uu as stringToDoc, G as t, qm as toLetter, ji as triggerArtifactDownload, Oi as useAnimationText, Ni as useArtifactPreviewConsumer, Mi as useArtifactPreviewProvider, Ii as useClipboard, Li as useCommandSelection, Hi as useContainerScrollConsumer, Vi as useContainerScrollProvider, qi as useCustomTabConsumer, Ki as useCustomTabProvider, Yi as useFullScreen, Zi as useGlobalConfig, $i as useMenuKeydown, sa as useMessageGroup, pi as useObserverVisibleList, la as useParentScrolling, Jm as useUserQuestion, df as voidNode };
11898
+ export { Jt as AIBluekingBannerIcon, qt as AIBluekingIcon, K as APPROVAL_STATUS, xt as APPROVAL_STATUS_MAP, ki as ARTIFACT_PREVIEW_TOKEN, Yr as ActiveLikeIcon, Xr as ActiveUnLikeIcon, zr as AgentIcon, sy as AiImage, oi as AiLoading, fi as AiSelection, Pr as ArrowDownIcon, ur as ArrowLeftIcon, $t as ArrowRightIcon, dr as ArrowRightPreviewIcon, dn as ArtifactTabIcon, rn as BkFlowFailedIcon, on as BkFlowPendingIcon, sn as BkFlowSkippedIcon, nn as BkFlowSuccessIcon, an as BkFlowSuspendedIcon, Et as CHAT_Z_INDEX, jt as CONST_MESSAGE_TOOLS, Nt as CONST_UPDATE_TOOLS, Mt as CONST_USER_MESSAGE_TOOLS, Ri as CONTAINER_SCROLL_TOKEN, Ui as CUSTOM_TAB_TOKEN, ny as ChatContainer, Xp as ChatInput, br as CheckCircleFillIcon, Hr as CiteIcon, Sr as CloseCircleFillIcon, hr as CloseCircleIcon, Lr as CloseIcon, nu as CodeContent, jr as CollapsedIcon, Nr as ContentLoadingIcon, Ru as ContentRender, Vr as CopyIcon, Qr as DEFAULT_SHORTCUTS, Gi as DEFAULT_TAB_ORDER, sd as Delete, _r as DeleteCircleIcon, qr as DeleteIcon, gr as DocLinkIcon, Yt as DocumentIcon, fn as DownloadFileIcon, cr as DownloadIcon, Ot as EDITOR_MENU_Z_INDEX, Dt as EDITOR_Z_INDEX, Wi as EXECUTION_TAB_NAME, Jr as EditIcon, Er as EnterIcon, Mr as ErrorIcon, cn as ExecutionIcon, Wv as ExecutionSummary, Ai as FILE_ARTIFACT_TAB_NAME, tm as FileIcon, vr as FileUploadIcon, sr as FitScreenIcon, Fr as FullScreenIcon, Xi as GLOBAL_CONFIG_TOKEN, It as HIGHLIGHT_KEYWORD_CLASS_NAME, wr as HelpDocIcon, rg as HighlightKeyword, hf as IMAGE_PREVIEW_GROUP_KEY, Bi as INSTANT_SCROLL_DISTANCE, pr as ImageBrokenIcon, lu as ImageContent, tn as ImageErrorIcon, Kf as ImagePreview, iy as ImagePreviewGroup, mr as ImageSizeIcon, Tr as InfoIcon, cd as InsertText, cv as InterruptMessageRender, yt as InterruptReason, St as InterruptResumeOperation, Rt as LOADING_MESSAGE_ID, du as LatexContent, Gr as LikeIcon, en as LinkIcon, kr as LoadingMessageIcon, Pt as MAX_UPLOAD_FILES, Ft as MAX_UPLOAD_FILE_SIZE, Fu as MarkdownContent, zt as MarkdownLanguageMap, pu as MermaidContent, Nv as MessageContainer, bt as MessageContentType, um as MessageLoading, kv as MessageRender, q as MessageRole, gf as MessageState, J as MessageStatus, Rh as MessageTime, ng as MessageTools, vf as MessageToolsStatus, Yh as MessageUserFeedback, Jp as ModelSelector, Br as MoreAgentIcon, Rr as MoreIcon, ln as NodeOutputIcon, un as NodeTabIcon, Km as OTHERS_OPTION_LABEL, xa as OverflowTips, lr as PreviewCloseIcon, Xt as PreviewIcon, Ur as RebuildIcon, fr as ReloadIcon, Qt as RemoveIcon, Lt as RenderMode, ld as ReplaceAll, Cr as RevokedIcon, or as RotateIcon, At as SELECTION_Z_INDEX, kt as SHORTCUT_MENU_Z_INDEX, zi as SHOW_SCROLL_BOTTOM_BTN_DISTANCE, $r as ScrollBtn, yr as SearchIcon, Yv as SelectionFooter, Or as SendMessageIcon, Wr as ShareIcon, li as ShortcutBtn, gi as ShortcutBtns, Di as ShortcutRender, Dr as SkipIcon, Zt as TargetIcon, Ar as ThinkingIcon, xr as TimeIcon, L_ as ToolCallRender, Zr as ToolIconsMap, tr as UNKNOWN_FILE_ICON_SVG, Ir as UnFullScreenIcon, Kr as UnLikeIcon, _f as UploadStatus, wt as UserMultiChoiceQuestionSchema, ah as UserQuestionAnsweredCard, Oh as UserQuestionCard, dh as UserQuestionChoice, lh as UserQuestionOption, Tt as UserQuestionSchema, Ct as UserSingleChoiceQuestionSchema, Mu as VNodeRenderer, ir as ZoomInIcon, ar as ZoomOutIcon, Ym as buildSkipResumePayload, gu as commonErrorContent, Y as commonSVGProps, et as completeMarkdownSyntax, cf as createEditor, Hu as docToString, mt as formatDuration, gt as formatElapsedTime, Be as formatFileSize, Ve as formatUploadNotAddedMessage, ht as generateUUID, pt as getCookieByName, ze as getFileExtension, rr as getFileIconSvg, Re as getFilePreviewUrl, ca as getScrollParent, Qi as injectGlobalConfig, _t as isEn, Le as isImageFile, vt as lang, Ml as markdownAnimationAttrs, zl as markdownItBkInlineStyle, Wl as markdownItLatex, Kl as markdownItMermaid, dd as microtask, ud as min, Ge as needsMarkdownCompletion, mf as noop, Ue as normalizeFileExtension, lf as plainSchema, Ke as removeCompletionSuffix, We as resolveFileKind, pf as resourceTypeMap, ff as schema, Uu as stringToDoc, G as t, qm as toLetter, ji as triggerArtifactDownload, Oi as useAnimationText, Ni as useArtifactPreviewConsumer, Mi as useArtifactPreviewProvider, Ii as useClipboard, Li as useCommandSelection, Hi as useContainerScrollConsumer, Vi as useContainerScrollProvider, qi as useCustomTabConsumer, Ki as useCustomTabProvider, Yi as useFullScreen, Zi as useGlobalConfig, $i as useMenuKeydown, sa as useMessageGroup, pi as useObserverVisibleList, la as useParentScrolling, Jm as useUserQuestion, df as voidNode };