ai_co_discuss 0.2.74 → 0.2.75

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/web/modern.js CHANGED
@@ -42561,106 +42561,106 @@ var hU = /*#__PURE__*/ XH({
42561
42561
  }, IU = { class: "channel-message-byline" }, LU = { class: "channel-message-meta" }, RU = { class: "channel-message-author" }, zU = {
42562
42562
  key: 0,
42563
42563
  class: "channel-message-provenance"
42564
- }, BU = ["title"], VU = { class: "channel-message-provenance channel-message-elapsed" }, HU = ["aria-label"], UU = { key: 0 }, WU = {
42564
+ }, BU = ["title"], VU = { class: "channel-message-provenance channel-message-elapsed" }, HU = ["aria-label", "title"], UU = { key: 0 }, WU = {
42565
42565
  key: 0,
42566
42566
  class: "channel-dots",
42567
42567
  "aria-hidden": "true"
42568
42568
  }, GU = {
42569
42569
  key: 0,
42570
- class: "channel-notes",
42570
+ class: "channel-receipt",
42571
42571
  "aria-label": "过程说明"
42572
- }, KU = [
42572
+ }, KU = { class: "channel-notes is-live" }, qU = [
42573
42573
  "id",
42574
42574
  "data-author",
42575
42575
  "aria-label"
42576
- ], qU = { class: "channel-message-byline" }, JU = { class: "channel-message-meta" }, YU = { class: "channel-message-author" }, XU = {
42576
+ ], JU = { class: "channel-message-byline" }, YU = { class: "channel-message-meta" }, XU = { class: "channel-message-author" }, ZU = {
42577
42577
  key: 0,
42578
42578
  class: "channel-message-round"
42579
- }, ZU = { class: "channel-message-provenance" }, QU = ["title"], $U = { key: 0 }, eW = {
42579
+ }, QU = { class: "channel-message-provenance" }, $U = ["title"], eW = { key: 0 }, tW = {
42580
42580
  key: 0,
42581
42581
  class: "channel-message-provenance channel-message-elapsed"
42582
- }, tW = { class: "channel-message-text channel-failure-reason" }, nW = {
42582
+ }, nW = { class: "channel-message-text channel-failure-reason" }, rW = {
42583
42583
  key: 0,
42584
42584
  class: "channel-failure-actions"
42585
- }, rW = {
42585
+ }, iW = {
42586
42586
  key: 0,
42587
42587
  class: "channel-failure-error",
42588
42588
  role: "alert"
42589
- }, iW = { class: "channel-message-byline" }, aW = { class: "channel-message-meta" }, oW = { class: "channel-message-author" }, sW = { class: "channel-message-round" }, cW = { class: "channel-message-provenance" }, lW = ["title"], uW = { key: 0 }, dW = { key: 1 }, fW = {
42589
+ }, aW = { class: "channel-message-byline" }, oW = { class: "channel-message-meta" }, sW = { class: "channel-message-author" }, cW = { class: "channel-message-round" }, lW = { class: "channel-message-provenance" }, uW = ["title"], dW = { key: 0 }, fW = { key: 1 }, pW = {
42590
42590
  key: 0,
42591
42591
  class: "channel-message-provenance channel-message-elapsed"
42592
- }, pW = ["onToggle"], mW = ["aria-label"], hW = { class: "channel-notes" }, gW = {
42592
+ }, mW = ["onToggle"], hW = ["aria-label"], gW = { class: "channel-notes" }, _W = {
42593
42593
  key: 2,
42594
42594
  class: "channel-receipt"
42595
- }, _W = ["aria-label"], vW = ["innerHTML"], yW = {
42595
+ }, vW = ["aria-label"], yW = ["innerHTML"], bW = {
42596
42596
  key: 3,
42597
42597
  class: "channel-answer"
42598
- }, bW = ["id", "innerHTML"], xW = {
42598
+ }, xW = ["id", "innerHTML"], SW = {
42599
42599
  key: 4,
42600
42600
  class: "channel-answer-summary"
42601
- }, SW = { key: 0 }, CW = ["innerHTML"], wW = ["innerHTML"], TW = { key: 0 }, EW = ["title"], DW = { key: 1 }, OW = { key: 2 }, kW = {
42601
+ }, CW = { key: 0 }, wW = ["innerHTML"], TW = ["innerHTML"], EW = { key: 0 }, DW = ["title"], OW = { key: 1 }, kW = { key: 2 }, AW = {
42602
42602
  key: 7,
42603
42603
  class: "channel-response-suggestions",
42604
42604
  "aria-label": "回应建议"
42605
- }, AW = { key: 0 }, jW = { key: 1 }, MW = ["aria-label"], NW = { key: 0 }, PW = { key: 1 }, FW = { class: "channel-message-actions" }, IW = { class: "channel-message-toolbar" }, LW = { key: 0 }, RW = { key: 1 }, zW = ["aria-pressed", "onClick"], BW = ["aria-pressed", "onClick"], VW = { key: 0 }, HW = ["onSubmit"], UW = ["value"], WW = { class: "channel-message-byline" }, GW = { class: "channel-message-meta" }, KW = { class: "channel-message-author" }, qW = { class: "channel-message-provenance channel-message-elapsed" }, JW = {
42605
+ }, jW = { key: 0 }, MW = { key: 1 }, NW = ["aria-label"], PW = { key: 0 }, FW = { key: 1 }, IW = { class: "channel-message-actions" }, LW = { class: "channel-message-toolbar" }, RW = { key: 0 }, zW = { key: 1 }, BW = ["aria-pressed", "onClick"], VW = ["aria-pressed", "onClick"], HW = { key: 0 }, UW = ["onSubmit"], WW = ["value"], GW = { class: "channel-message-byline" }, KW = { class: "channel-message-meta" }, qW = { class: "channel-message-author" }, JW = { class: "channel-message-provenance channel-message-elapsed" }, YW = {
42606
42606
  key: 2,
42607
42607
  class: "channel-message-group"
42608
- }, YW = {
42608
+ }, XW = {
42609
42609
  key: 3,
42610
42610
  class: "channel-message-group"
42611
- }, XW = ["aria-label"], ZW = { class: "channel-message-byline" }, QW = { class: "channel-message-meta" }, $W = { class: "channel-message-author" }, eG = {
42611
+ }, ZW = ["aria-label"], QW = { class: "channel-message-byline" }, $W = { class: "channel-message-meta" }, eG = { class: "channel-message-author" }, tG = {
42612
42612
  key: 0,
42613
42613
  class: "channel-message-round"
42614
- }, tG = { class: "channel-message-provenance channel-message-elapsed" }, nG = ["aria-label"], rG = { key: 0 }, iG = {
42614
+ }, nG = { class: "channel-message-provenance channel-message-elapsed" }, rG = ["aria-label"], iG = { key: 0 }, aG = {
42615
42615
  key: 4,
42616
42616
  class: "channel-empty"
42617
- }, aG = {
42617
+ }, oG = {
42618
42618
  key: 2,
42619
42619
  class: "channel-latest-dock"
42620
- }, oG = { class: "channel-composer-dock" }, sG = [
42620
+ }, sG = { class: "channel-composer-dock" }, cG = [
42621
42621
  "id",
42622
42622
  "aria-selected",
42623
42623
  "onClick",
42624
42624
  "onPointermove"
42625
- ], cG = {
42625
+ ], lG = {
42626
42626
  key: 0,
42627
42627
  class: "channel-mention-empty"
42628
- }, lG = {
42628
+ }, uG = {
42629
42629
  key: 0,
42630
42630
  class: "attachment-drafts"
42631
- }, uG = [
42631
+ }, dG = [
42632
42632
  "src",
42633
42633
  "alt",
42634
42634
  "title"
42635
- ], dG = ["innerHTML"], fG = { class: "attachment-name" }, pG = ["title"], mG = [
42635
+ ], fG = ["innerHTML"], pG = { class: "attachment-name" }, mG = ["title"], hG = [
42636
42636
  "aria-label",
42637
42637
  "disabled",
42638
42638
  "onClick"
42639
- ], hG = ["role"], gG = {
42639
+ ], gG = ["role"], _G = {
42640
42640
  key: 2,
42641
42641
  class: "channel-reply-draft channel-queue-hint"
42642
- }, _G = {
42642
+ }, vG = {
42643
42643
  key: 3,
42644
42644
  class: "channel-reply-draft channel-queue-hint"
42645
- }, vG = {
42645
+ }, yG = {
42646
42646
  key: 4,
42647
42647
  class: "channel-reply-draft"
42648
- }, yG = {
42648
+ }, bG = {
42649
42649
  key: 5,
42650
42650
  class: "channel-answer-editor"
42651
- }, bG = ["innerHTML"], xG = {
42651
+ }, xG = ["innerHTML"], SG = {
42652
42652
  key: 0,
42653
42653
  class: "channel-free-recipients",
42654
42654
  role: "group",
42655
42655
  "aria-label": "代发在线成员的回答"
42656
- }, SG = ["aria-pressed", "onClick"], CG = {
42656
+ }, CG = ["aria-pressed", "onClick"], wG = {
42657
42657
  key: 1,
42658
42658
  class: "channel-composer-identity"
42659
- }, wG = { class: "channel-composer-note" }, TG = { key: 0 }, EG = { key: 1 }, DG = { class: "channel-draft-length" }, OG = 6, kG = .9, AG = 160, jG = 100, MG = 4, NG = 3, PG = 320, FG = 34, IG = 12, LG = 16, RG = 14, zG = 8, BG = 28, VG = 18, HG = 1, UG = 1.5, WG = 3, GG = 6, KG = .62, qG = .72, JG = .88, YG = .16, XG = 12, ZG = 450, QG = 8, $G = 70, eK = 20, tK = 1, nK = 18.566573373612275, rK = 78.16726685662772 / 8, iK = 15, aK = 180, oK = 1e3, sK = "全体成员", cK = "全体依次", lK = 2e3, uK = /*#__PURE__*/ XH({
42659
+ }, TG = { class: "channel-composer-note" }, EG = { key: 0 }, DG = { key: 1 }, OG = { class: "channel-draft-length" }, kG = 6, AG = .9, jG = 160, MG = 100, NG = 4, PG = 3, FG = 320, IG = 34, LG = 12, RG = 16, zG = 14, BG = 8, VG = 28, HG = 18, UG = 1, WG = 1.5, GG = 3, KG = 6, qG = .62, JG = .72, YG = .88, XG = .16, ZG = 12, QG = 450, $G = 8, eK = 70, tK = 20, nK = 1, rK = 18.566573373612275, iK = 78.16726685662772 / 8, aK = 180, oK = 1e3, sK = "全体成员", cK = "全体依次", lK = 2e3, uK = /*#__PURE__*/ XH({
42660
42660
  __name: "ChannelDiscussion",
42661
42661
  emits: ["detail", "edit"],
42662
42662
  setup(e, { emit: t }) {
42663
- let n = t, r = null, { view: i, bridge: a, field: o, act: s, pending: c } = xr("discussion"), l = o("message-input"), u = Z(() => [...l.value].length), d = Z(() => u.value >= a.max_message_length * kG), f = o("author-select"), p = o("message-kind"), m = o("message-summary"), h = o("message-summary-source"), g = Z(() => ["opinion", "forward"].includes(p.value) && f.value !== "用户"), _ = [{
42663
+ let n = t, r = null, { view: i, bridge: a, field: o, act: s, pending: c } = xr("discussion"), l = o("message-input"), u = Z(() => [...l.value].length), d = Z(() => u.value >= a.max_message_length * AG), f = o("author-select"), p = o("message-kind"), m = o("message-summary"), h = o("message-summary-source"), g = Z(() => ["opinion", "forward"].includes(p.value) && f.value !== "用户"), _ = [{
42664
42664
  value: "author",
42665
42665
  label: "原作者摘要"
42666
42666
  }, {
@@ -42674,7 +42674,7 @@ var hU = /*#__PURE__*/ XH({
42674
42674
  }, ae = null, oe = !1, se = TV(0, j), ce = TV(0, j), le = TV(0, j), ue = CV(le, [0, 1], [.96, 1]), de = CV(le, [0, 1], [-8, 0]), pe = CV(le, [0, 1], [0, 1]), me = Z(() => i.value.messages.find((e) => e.id === D.value)), he = Z(() => nn.value.find((e) => e.messages.some((e) => e.id === D.value))), ge = Z(() => he.value?.label), N = Z(() => k.value ? sn.value.findIndex((e) => e.key === O.value) : -1), _e = /* @__PURE__ */ F(null), ve = /* @__PURE__ */ F(!0), ye = Z(() => i.value.room), be = /* @__PURE__ */ F(null);
42675
42675
  R(() => [].concat(be.value ?? []), (e, t, n) => {
42676
42676
  if (!e.length) return;
42677
- let r = tK / nK, i = rK / nK, a = 0, o = 0, s = performance.now(), c = 0;
42677
+ let r = nK / rK, i = iK / rK, a = 0, o = 0, s = performance.now(), c = 0;
42678
42678
  e.forEach((e) => e.classList.add("is-glowing"));
42679
42679
  function l(t) {
42680
42680
  let n = (t - s) / 1e3, u = Math.exp(-n / r);
@@ -42749,27 +42749,17 @@ var hU = /*#__PURE__*/ XH({
42749
42749
  return ((Ee.value ? ye.value.free : ye.value.asks)?.executions || []).find((t) => t.answer_id === e.id);
42750
42750
  }
42751
42751
  function Ne(e) {
42752
- if (!e.working) return null;
42753
- if (qe.includes(e.adapter)) return {
42754
- text: "此接入方式看不到进度,可在原窗口查看",
42755
- tone: "muted"
42756
- };
42757
- let t = e.activity_at || e.created_at, n = Math.max(0, Oe.value - t);
42758
- return !e.activity_at && n < aK ? {
42759
- text: "等待软件输出",
42760
- tone: "muted"
42761
- } : n <= iK ? {
42762
- text: "活动中",
42763
- tone: "active"
42764
- } : n < aK ? {
42765
- text: `${gt(n)}前有输出`,
42766
- tone: "muted"
42752
+ let t = Math.max(0, Oe.value - (e.activity_at || e.created_at));
42753
+ return !e.working || qe.includes(e.adapter) || t < aK ? {
42754
+ text: e.text,
42755
+ live: e.working
42767
42756
  } : e.activity === "command" ? {
42768
- text: `命令已运行 ${gt(n)}`,
42769
- tone: "muted"
42757
+ text: `命令已运行 ${gt(t)}`,
42758
+ live: !0
42770
42759
  } : {
42771
- text: `已 ${gt(n)}无输出,可能卡住`,
42772
- tone: "warning"
42760
+ text: `已 ${gt(t)}无输出,可能卡住`,
42761
+ live: !1,
42762
+ warning: !0
42773
42763
  };
42774
42764
  }
42775
42765
  let Pe = Z(() => {
@@ -43111,12 +43101,12 @@ var hU = /*#__PURE__*/ XH({
43111
43101
  for (let t of e.querySelectorAll("pre code, tbody")) {
43112
43102
  let n = e.ownerDocument.createRange();
43113
43103
  if (t.tagName === "TBODY") {
43114
- if (t.children.length <= NG) continue;
43104
+ if (t.children.length <= PG) continue;
43115
43105
  n.setStartAfter(t.children[2]);
43116
43106
  } else {
43117
43107
  let e = t.textContent.trimEnd().split("\n");
43118
- if (e.length <= MG) continue;
43119
- n.setStart(t.firstChild, e.slice(0, MG).join("\n").length);
43108
+ if (e.length <= NG) continue;
43109
+ n.setStart(t.firstChild, e.slice(0, NG).join("\n").length);
43120
43110
  }
43121
43111
  return n.setEnd(e, e.childNodes.length), n.deleteContents(), !0;
43122
43112
  }
@@ -43133,11 +43123,11 @@ var hU = /*#__PURE__*/ XH({
43133
43123
  let r = Jt(n.content), i = document.createTreeWalker(n.content, NodeFilter.SHOW_TEXT, { acceptNode: (e) => e.parentElement?.closest(".katex-mathml") ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT }), a = [];
43134
43124
  for (; i.nextNode();) a.push(i.currentNode);
43135
43125
  let o = [...a.map((e) => e.textContent).join("").trimEnd()];
43136
- if (o.length <= AG) return {
43126
+ if (o.length <= jG) return {
43137
43127
  truncated: r,
43138
43128
  html: n.innerHTML
43139
43129
  };
43140
- let s = o.slice(0, AG).join(""), c = [...s.matchAll(/[。!?;]\s*|[.!?;](?:\s|$)|\n/gu)].at(-1), l = c ? c.index + c[0].length : 0, u = [...s.slice(0, l)].length >= jG, d = u ? l : s.length;
43130
+ let s = o.slice(0, jG).join(""), c = [...s.matchAll(/[。!?;]\s*|[.!?;](?:\s|$)|\n/gu)].at(-1), l = c ? c.index + c[0].length : 0, u = [...s.slice(0, l)].length >= MG, d = u ? l : s.length;
43141
43131
  for (let e of a) {
43142
43132
  if (d > e.textContent.length) {
43143
43133
  d -= e.textContent.length;
@@ -43242,14 +43232,14 @@ var hU = /*#__PURE__*/ XH({
43242
43232
  function un() {
43243
43233
  let e = y.value;
43244
43234
  if (!e || !e.clientHeight) return;
43245
- ve.value = e.scrollHeight - e.scrollTop - e.clientHeight < $G;
43235
+ ve.value = e.scrollHeight - e.scrollTop - e.clientHeight < eK;
43246
43236
  let t = e.getBoundingClientRect(), n = cn(e), r = [...e.querySelectorAll("[data-message-id]")], i = r.find((e) => Number(e.dataset.messageId) === E.value);
43247
43237
  if (i && i.getBoundingClientRect().bottom > n && i.getBoundingClientRect().top < t.bottom) {
43248
43238
  T.value = E.value;
43249
43239
  return;
43250
43240
  }
43251
43241
  E.value = null;
43252
- let a = r.find((e) => e.getBoundingClientRect().bottom > n + eK);
43242
+ let a = r.find((e) => e.getBoundingClientRect().bottom > n + tK);
43253
43243
  T.value = a ? Number(a.dataset.messageId) : null;
43254
43244
  }
43255
43245
  async function dn() {
@@ -43271,11 +43261,11 @@ var hU = /*#__PURE__*/ XH({
43271
43261
  }), R(() => i.value.room?.id, () => b.value.clear());
43272
43262
  async function fn(e, t) {
43273
43263
  let n = t.currentTarget.closest("[data-message-id]"), r = b.value.has(e.id), i = y.value.scrollTop;
43274
- ve.value = !1, r ? b.value.delete(e.id) : b.value.add(e.id), kn(), await Qn(), r || (y.value.scrollTop = i), r && n.getBoundingClientRect().top < cn(y.value) && (y.value.scrollTop += n.getBoundingClientRect().top - cn(y.value) - eK), un();
43264
+ ve.value = !1, r ? b.value.delete(e.id) : b.value.add(e.id), kn(), await Qn(), r || (y.value.scrollTop = i), r && n.getBoundingClientRect().top < cn(y.value) && (y.value.scrollTop += n.getBoundingClientRect().top - cn(y.value) - tK), un();
43275
43265
  }
43276
43266
  function pn(e) {
43277
43267
  let t = y.value, n = t?.querySelector(`[data-message-id="${e}"]`);
43278
- n && (On(), E.value = e, T.value = e, t.scrollTop += n.getBoundingClientRect().top - cn(t) - eK, n.focus({ preventScroll: !0 }), un());
43268
+ n && (On(), E.value = e, T.value = e, t.scrollTop += n.getBoundingClientRect().top - cn(t) - tK, n.focus({ preventScroll: !0 }), un());
43279
43269
  }
43280
43270
  function mn(e) {
43281
43271
  (e.type !== "keydown" || [
@@ -43304,7 +43294,7 @@ var hU = /*#__PURE__*/ XH({
43304
43294
  let t = C.value;
43305
43295
  if (!t?.clientHeight || !e) return;
43306
43296
  let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
43307
- r.top < n.top + XG ? t.scrollTop += r.top - n.top - XG : r.bottom > n.bottom - XG && (t.scrollTop += r.bottom - n.bottom + XG);
43297
+ r.top < n.top + ZG ? t.scrollTop += r.top - n.top - ZG : r.bottom > n.bottom - ZG && (t.scrollTop += r.bottom - n.bottom + ZG);
43308
43298
  }
43309
43299
  async function _n() {
43310
43300
  await Qn(), gn(C.value?.querySelector(`[data-jump-id="${T.value}"]`));
@@ -43324,7 +43314,7 @@ var hU = /*#__PURE__*/ XH({
43324
43314
  };
43325
43315
  ae = n, n.timer = setTimeout(() => {
43326
43316
  ae === n && (oe = !0, Dn(e, { currentTarget: n.target }));
43327
- }, ZG);
43317
+ }, QG);
43328
43318
  }
43329
43319
  function bn() {
43330
43320
  ae && clearTimeout(ae.timer), ae = null;
@@ -43333,7 +43323,7 @@ var hU = /*#__PURE__*/ XH({
43333
43323
  ae?.pointer === e.pointerId && (e.type === "pointercancel" && (oe = !0), On());
43334
43324
  }
43335
43325
  function Sn(e, t) {
43336
- ["touch", "pen"].includes(t.pointerType) ? ae?.pointer === t.pointerId && Math.hypot(t.clientX - ae.x, t.clientY - ae.y) > QG && (oe = !0, On()) : t.type === "pointerenter" && w.value || (w.value = !1, (O.value !== e.key || !k.value) && Dn(e, t));
43326
+ ["touch", "pen"].includes(t.pointerType) ? ae?.pointer === t.pointerId && Math.hypot(t.clientX - ae.x, t.clientY - ae.y) > $G && (oe = !0, On()) : t.type === "pointerenter" && w.value || (w.value = !1, (O.value !== e.key || !k.value) && Dn(e, t));
43337
43327
  }
43338
43328
  function Cn(e, t) {
43339
43329
  oe && t.detail !== 0 ? (oe = !1, t.preventDefault()) : pn(e.message.id);
@@ -43348,11 +43338,11 @@ var hU = /*#__PURE__*/ XH({
43348
43338
  On(), E.value = null, ve.value = !0, dn();
43349
43339
  }
43350
43340
  async function Dn(e, t) {
43351
- let n = e.message, r = t.currentTarget.getBoundingClientRect(), i = C.value.getBoundingClientRect(), a = Math.min(PG, innerWidth - 24), o = i.right + LG;
43352
- if (ne.value = Math.max(IG, Math.min(o, innerWidth - a - IG)), D.value = n.id, O.value = e.key, ee.value = e.round, k.value = !0, await Qn(), !k.value || O.value !== e.key) return;
43353
- ie.value = te.value.scrollHeight + FG;
43354
- let s = (Math.max(r.top, i.top + XG) + Math.min(r.bottom, i.bottom - XG)) / 2 - ie.value / 2;
43355
- re.value = Math.max(IG, Math.min(s, innerHeight - ie.value - IG));
43341
+ let n = e.message, r = t.currentTarget.getBoundingClientRect(), i = C.value.getBoundingClientRect(), a = Math.min(FG, innerWidth - 24), o = i.right + RG;
43342
+ if (ne.value = Math.max(LG, Math.min(o, innerWidth - a - LG)), D.value = n.id, O.value = e.key, ee.value = e.round, k.value = !0, await Qn(), !k.value || O.value !== e.key) return;
43343
+ ie.value = te.value.scrollHeight + IG;
43344
+ let s = (Math.max(r.top, i.top + ZG) + Math.min(r.bottom, i.bottom - ZG)) / 2 - ie.value / 2;
43345
+ re.value = Math.max(LG, Math.min(s, innerHeight - ie.value - LG));
43356
43346
  let c = A.value || le.get() === 0;
43357
43347
  se[c ? "jump" : "set"](re.value), ce[c ? "jump" : "set"](ie.value);
43358
43348
  }
@@ -43367,14 +43357,14 @@ var hU = /*#__PURE__*/ XH({
43367
43357
  }
43368
43358
  function jn(e) {
43369
43359
  let t = e.entries.length - 1;
43370
- return Math.max(-3, Math.min(t + WG, N.value - e.entries[0].index));
43360
+ return Math.max(-3, Math.min(t + GG, N.value - e.entries[0].index));
43371
43361
  }
43372
43362
  function Mn(e, t) {
43373
- let n = N.value < 0 ? Infinity : Math.abs(t - N.value), r = Math.max(0, 1 - n / WG), i = T.value === e.message.id, a = n === 0 || i && N.value < 0, o = zG;
43363
+ let n = N.value < 0 ? Infinity : Math.abs(t - N.value), r = Math.max(0, 1 - n / GG), i = T.value === e.message.id, a = n === 0 || i && N.value < 0, o = BG;
43374
43364
  return {
43375
- scaleX: a ? BG / o : i ? VG / o : 1 + r * GG / o,
43376
- height: a ? UG : HG,
43377
- opacity: a ? JG : i ? qG : KG + r * YG
43365
+ scaleX: a ? VG / o : i ? HG / o : 1 + r * KG / o,
43366
+ height: a ? WG : UG,
43367
+ opacity: a ? YG : i ? JG : qG + r * XG
43378
43368
  };
43379
43369
  }
43380
43370
  R([k, A], () => {
@@ -43386,7 +43376,7 @@ var hU = /*#__PURE__*/ XH({
43386
43376
  if (!e) return;
43387
43377
  e.rows = 1;
43388
43378
  let t = getComputedStyle(e), n = (e.scrollHeight - parseFloat(t.paddingTop) - parseFloat(t.paddingBottom)) / parseFloat(t.lineHeight);
43389
- e.rows = Math.min(Math.max(Math.floor(n), 1), OG);
43379
+ e.rows = Math.min(Math.max(Math.floor(n), 1), kG);
43390
43380
  }
43391
43381
  let Pn = 0, Fn = new ResizeObserver(([e]) => {
43392
43382
  Math.round(e.contentRect.width) !== Pn && (Pn = Math.round(e.contentRect.width), Nn());
@@ -43457,7 +43447,7 @@ var hU = /*#__PURE__*/ XH({
43457
43447
  ref_key: "message_map",
43458
43448
  ref: C,
43459
43449
  class: "channel-message-map",
43460
- style: fe({ "--nav-entry-height": `${RG}px` }),
43450
+ style: fe({ "--nav-entry-height": `${zG}px` }),
43461
43451
  "aria-label": "发言快速导航",
43462
43452
  onWheelPassive: uu(Tn, ["stop"]),
43463
43453
  onPointerleave: On,
@@ -43522,7 +43512,7 @@ var hU = /*#__PURE__*/ XH({
43522
43512
  opacity: I(pe),
43523
43513
  scale: I(ue),
43524
43514
  height: I(ce),
43525
- "--preview-gap": `${LG}px`
43515
+ "--preview-gap": `${RG}px`
43526
43516
  }),
43527
43517
  onPointerleave: On,
43528
43518
  onFocusout: On,
@@ -43659,25 +43649,26 @@ var hU = /*#__PURE__*/ XH({
43659
43649
  K("div", LU, [K("div", RU, [K("strong", null, P(I(a).display_name(e.author)), 1)]), e.created_at ? (U(), W("div", zU, [K("time", { title: (/* @__PURE__ */ new Date(e.created_at * 1e3)).toLocaleString("zh-CN") }, P(I(a).format_time(e.created_at * 1e3)), 9, BU)])) : Y("", !0)]),
43660
43650
  K("span", VU, P(e.waiting ? `手动启动${e.created_at ? ` · 已等 ${gt(Math.max(0, Oe.value - e.created_at))}` : ""}` : `已用 ${gt(Math.max(0, Oe.value - e.created_at))}`), 1)
43661
43651
  ]),
43662
- K("div", {
43663
- class: M(["channel-message-text", { "is-breathing": e.working }]),
43652
+ (U(!0), W(H, null, B([Ne(e)], (n) => (U(), W("div", {
43653
+ key: e.id,
43654
+ class: M(["channel-message-text", {
43655
+ "is-breathing": n.live,
43656
+ "channel-working-warning": n.warning
43657
+ }]),
43664
43658
  role: "status",
43665
- "aria-label": `${I(a).display_name(e.author)} ${e.text}`
43659
+ "aria-label": `${I(a).display_name(e.author)} ${n.text}`,
43660
+ title: qe.includes(e.adapter) ? "此接入方式看不到进度,可在原窗口查看" : void 0
43666
43661
  }, [e.waiting ? (U(), W("span", UU, P(e.text), 1)) : (U(), W(H, { key: 1 }, [K("span", {
43667
43662
  ref_for: !0,
43668
43663
  ref_key: "reply_glow",
43669
43664
  ref: be,
43670
43665
  class: "channel-reply-glow"
43671
- }, P(e.text), 513), e.working ? (U(), W("span", WU, [...t[27] ||= [
43666
+ }, P(n.text), 513), n.live ? (U(), W("span", WU, [...t[27] ||= [
43672
43667
  K("i", null, ".", -1),
43673
43668
  K("i", null, ".", -1),
43674
43669
  K("i", null, ".", -1)
43675
- ]])) : Y("", !0)], 64))], 10, HU),
43676
- Ae.value.get(e.execution_id)?.length ? (U(), W("ol", GU, [(U(!0), W(H, null, B(Ae.value.get(e.execution_id), (e) => (U(), W("li", { key: e.seq }, P(e.text), 1))), 128))])) : Y("", !0),
43677
- Ne(e) ? (U(), W("div", {
43678
- key: 1,
43679
- class: M(["channel-activity", `is-${Ne(e).tone}`])
43680
- }, P(Ne(e).text), 3)) : Y("", !0)
43670
+ ]])) : Y("", !0)], 64))], 10, HU))), 128)),
43671
+ Ae.value.get(e.execution_id)?.length ? (U(), W("div", GU, [K("ol", KU, [(U(!0), W(H, null, B(Ae.value.get(e.execution_id), (e) => (U(), W("li", { key: e.seq }, P(e.text), 1))), 128))])])) : Y("", !0)
43681
43672
  ]),
43682
43673
  _: 2
43683
43674
  }, 1032, ["id", "data-author"])) : e.failure ? (U(), W("section", {
@@ -43687,7 +43678,7 @@ var hU = /*#__PURE__*/ XH({
43687
43678
  "data-author": I(a).identities[e.author]?.style,
43688
43679
  "aria-label": `${I(a).display_name(e.author)} 执行失败`
43689
43680
  }, [
43690
- K("div", qU, [
43681
+ K("div", JU, [
43691
43682
  q(x, {
43692
43683
  src: I(a).identities[e.author]?.icon,
43693
43684
  text: I(a).identities[e.author]?.initials || "?",
@@ -43700,24 +43691,24 @@ var hU = /*#__PURE__*/ XH({
43700
43691
  "alt",
43701
43692
  "class"
43702
43693
  ]),
43703
- K("div", JU, [K("div", YU, [
43694
+ K("div", YU, [K("div", XU, [
43704
43695
  K("strong", null, P(I(a).display_name(e.author)), 1),
43705
- e.failure.role === "host" ? (U(), W("span", XU, "主持工作")) : Y("", !0),
43696
+ e.failure.role === "host" ? (U(), W("span", ZU, "主持工作")) : Y("", !0),
43706
43697
  q(D, {
43707
43698
  label: "执行失败",
43708
43699
  color: "error",
43709
43700
  variant: "soft",
43710
43701
  size: "xs"
43711
43702
  })
43712
- ]), K("div", ZU, [
43713
- K("time", { title: new Date(e.created_at).toLocaleString("zh-CN") }, P(I(a).format_time(e.created_at)), 9, QU),
43703
+ ]), K("div", QU, [
43704
+ K("time", { title: new Date(e.created_at).toLocaleString("zh-CN") }, P(I(a).format_time(e.created_at)), 9, $U),
43714
43705
  K("span", null, "执行 #" + P(e.failure.id), 1),
43715
- e.failure.turn_id ? (U(), W("span", $U, "安排 #" + P(e.failure.turn_id), 1)) : Y("", !0)
43706
+ e.failure.turn_id ? (U(), W("span", eW, "安排 #" + P(e.failure.turn_id), 1)) : Y("", !0)
43716
43707
  ])]),
43717
- e.failure.elapsed_seconds == null ? Y("", !0) : (U(), W("span", eW, "耗时 " + P(gt(e.failure.elapsed_seconds)), 1))
43708
+ e.failure.elapsed_seconds == null ? Y("", !0) : (U(), W("span", tW, "耗时 " + P(gt(e.failure.elapsed_seconds)), 1))
43718
43709
  ]),
43719
- K("p", tW, P(e.failure.result || "执行失败,未提供原因"), 1),
43720
- e.can_retry ? (U(), W("div", nW, [q(o, {
43710
+ K("p", nW, P(e.failure.result || "执行失败,未提供原因"), 1),
43711
+ e.can_retry ? (U(), W("div", rW, [q(o, {
43721
43712
  label: "重试",
43722
43713
  icon: "i-lucide-rotate-ccw",
43723
43714
  size: "sm",
@@ -43732,8 +43723,8 @@ var hU = /*#__PURE__*/ XH({
43732
43723
  "loading",
43733
43724
  "disabled",
43734
43725
  "onClick"
43735
- ]), I(i).free_error ? (U(), W("p", rW, P(I(i).free_error), 1)) : Y("", !0)])) : Y("", !0)
43736
- ], 8, KU)) : (U(), W(H, { key: 4 }, [
43726
+ ]), I(i).free_error ? (U(), W("p", iW, P(I(i).free_error), 1)) : Y("", !0)])) : Y("", !0)
43727
+ ], 8, qU)) : (U(), W(H, { key: 4 }, [
43737
43728
  nc([
43738
43729
  e,
43739
43730
  I(i).admin?.identity_version,
@@ -43767,7 +43758,7 @@ var hU = /*#__PURE__*/ XH({
43767
43758
  }
43768
43759
  }, {
43769
43760
  body: L(() => [
43770
- K("div", iW, [
43761
+ K("div", aW, [
43771
43762
  q(x, {
43772
43763
  src: I(a).identities[e.author]?.icon,
43773
43764
  text: I(a).identities[e.author]?.initials || "?",
@@ -43780,9 +43771,9 @@ var hU = /*#__PURE__*/ XH({
43780
43771
  "alt",
43781
43772
  "class"
43782
43773
  ]),
43783
- K("div", aW, [K("div", oW, [
43774
+ K("div", oW, [K("div", sW, [
43784
43775
  K("strong", null, P(I(a).display_name(e.author)), 1),
43785
- K("span", sW, P(an.value.get(e.id)), 1),
43776
+ K("span", cW, P(an.value.get(e.id)), 1),
43786
43777
  q(D, {
43787
43778
  size: "xs",
43788
43779
  color: "neutral",
@@ -43834,8 +43825,8 @@ var hU = /*#__PURE__*/ XH({
43834
43825
  default: L(() => [J(P(e.label), 1)]),
43835
43826
  _: 2
43836
43827
  }, 1032, ["color", "title"]))), 128))
43837
- ]), K("div", cW, [
43838
- K("time", { title: new Date(e.created_at).toLocaleString("zh-CN") }, P(I(a).format_time(e.created_at)), 9, lW),
43828
+ ]), K("div", lW, [
43829
+ K("time", { title: new Date(e.created_at).toLocaleString("zh-CN") }, P(I(a).format_time(e.created_at)), 9, uW),
43839
43830
  q(o, {
43840
43831
  label: `#${e.id}`,
43841
43832
  color: "neutral",
@@ -43849,10 +43840,10 @@ var hU = /*#__PURE__*/ XH({
43849
43840
  "aria-label",
43850
43841
  "onClick"
43851
43842
  ]),
43852
- e.submitted_by && e.submitted_by !== e.author && (e.source !== "proxy" || e.submitted_by !== "用户") ? (U(), W("span", uW, P(I(a).display_name(e.submitted_by)) + " 代发", 1)) : Y("", !0),
43853
- e.turn_id ? (U(), W("span", dW, "回答安排 #" + P(e.turn_id), 1)) : Y("", !0)
43843
+ e.submitted_by && e.submitted_by !== e.author && (e.source !== "proxy" || e.submitted_by !== "用户") ? (U(), W("span", dW, P(I(a).display_name(e.submitted_by)) + " 代发", 1)) : Y("", !0),
43844
+ e.turn_id ? (U(), W("span", fW, "回答安排 #" + P(e.turn_id), 1)) : Y("", !0)
43854
43845
  ])]),
43855
- bt(e) === null ? Y("", !0) : (U(), W("span", fW, "耗时 " + P(gt(bt(e))), 1))
43846
+ bt(e) === null ? Y("", !0) : (U(), W("span", pW, "耗时 " + P(gt(bt(e))), 1))
43856
43847
  ]),
43857
43848
  e.reply_to ? (U(), G(o, {
43858
43849
  key: 0,
@@ -43873,15 +43864,15 @@ var hU = /*#__PURE__*/ XH({
43873
43864
  key: 1,
43874
43865
  class: "channel-receipt",
43875
43866
  onToggle: (t) => t.target.open && je(Me(e).id)
43876
- }, [K("summary", { "aria-label": `查看 #${e.id} 的过程说明` }, "过程说明 · " + P(Me(e).notes) + " 段", 9, mW), K("ol", hW, [(U(!0), W(H, null, B(Ae.value.get(Me(e).id) || [], (e) => (U(), W("li", { key: e.seq }, P(e.text), 1))), 128))])], 40, pW)) : Y("", !0),
43877
- e.kind === "receipt" ? (U(), W("details", gW, [K("summary", { "aria-label": `查看运行回执 #${e.id}` }, "运行回执详情", 8, _W), K("div", {
43867
+ }, [K("summary", { "aria-label": `查看 #${e.id} 的过程说明` }, "过程说明 · " + P(Me(e).notes) + " 段", 9, hW), K("ol", gW, [(U(!0), W(H, null, B(Ae.value.get(Me(e).id) || [], (e) => (U(), W("li", { key: e.seq }, P(e.text), 1))), 128))])], 40, mW)) : Y("", !0),
43868
+ e.kind === "receipt" ? (U(), W("details", _W, [K("summary", { "aria-label": `查看运行回执 #${e.id}` }, "运行回执详情", 8, vW), K("div", {
43878
43869
  class: "channel-message-text markdown-body",
43879
43870
  innerHTML: e.rendered_text
43880
- }, null, 8, vW)])) : (U(), W("div", yW, [K("div", {
43871
+ }, null, 8, yW)])) : (U(), W("div", bW, [K("div", {
43881
43872
  id: `channel-answer-${e.id}`,
43882
43873
  class: "channel-message-text markdown-body",
43883
43874
  innerHTML: b.value.has(e.id) ? e.rendered_text : S.value.get(e.id).html
43884
- }, null, 8, bW), S.value.get(e.id).truncated ? (U(), G(o, {
43875
+ }, null, 8, xW), S.value.get(e.id).truncated ? (U(), G(o, {
43885
43876
  key: 0,
43886
43877
  label: b.value.has(e.id) ? "收起" : "展开全文",
43887
43878
  "trailing-icon": b.value.has(e.id) ? "i-lucide-chevron-up" : "i-lucide-chevron-down",
@@ -43901,14 +43892,14 @@ var hU = /*#__PURE__*/ XH({
43901
43892
  "aria-controls",
43902
43893
  "onClick"
43903
43894
  ])) : Y("", !0)])),
43904
- e.summary ? (U(), W("div", xW, [K("small", null, [t[31] ||= J("回答摘要", -1), e.summary_by && e.summary_by !== e.author ? (U(), W("span", SW, " · " + P(I(a).display_name(e.summary_by)) + " 整理", 1)) : Y("", !0)]), K("div", {
43895
+ e.summary ? (U(), W("div", SW, [K("small", null, [t[31] ||= J("回答摘要", -1), e.summary_by && e.summary_by !== e.author ? (U(), W("span", CW, " · " + P(I(a).display_name(e.summary_by)) + " 整理", 1)) : Y("", !0)]), K("div", {
43905
43896
  class: "channel-message-text markdown-body",
43906
43897
  innerHTML: e.rendered_summary
43907
- }, null, 8, CW)])) : Y("", !0),
43898
+ }, null, 8, wW)])) : Y("", !0),
43908
43899
  e.attachments?.length ? (U(), W("div", {
43909
43900
  key: 5,
43910
43901
  innerHTML: I(a).attachment_markup(e.attachments)
43911
- }, null, 8, wW)) : Y("", !0),
43902
+ }, null, 8, TW)) : Y("", !0),
43912
43903
  rt.value.get(e.id) ? (U(), W("div", {
43913
43904
  key: 6,
43914
43905
  class: M(["channel-recommendation", `is-${rt.value.get(e.id).status}`]),
@@ -43919,12 +43910,12 @@ var hU = /*#__PURE__*/ XH({
43919
43910
  name: "i-lucide-zap",
43920
43911
  class: "channel-recommendation-icon"
43921
43912
  }),
43922
- e.status === "open" ? (U(), W("span", TW, [
43913
+ e.status === "open" ? (U(), W("span", EW, [
43923
43914
  t[32] ||= J("智能调度建议让 ", -1),
43924
43915
  K("strong", null, P(I(a).display_name(e.member)), 1),
43925
43916
  t[33] ||= J(" 回答", -1),
43926
- K("small", { title: `${e.label},置信度 ${Number(e.confidence).toFixed(2)}` }, "置信度 " + P(Number(e.confidence).toFixed(2)) + " · " + P(e.remaining) + " 秒", 9, EW)
43927
- ])) : e.status === "waiting" ? (U(), W("span", DW, "智能调度:主持人答完后请 " + P(I(a).display_name(e.member)) + " 回答", 1)) : (U(), W("span", OW, "智能调度:" + P(e.mode === "interrupt" ? `已打断主持人,改由 ${I(a).display_name(e.member)} 回答` : `已请 ${I(a).display_name(e.member)} 回答`), 1)),
43917
+ K("small", { title: `${e.label},置信度 ${Number(e.confidence).toFixed(2)}` }, "置信度 " + P(Number(e.confidence).toFixed(2)) + " · " + P(e.remaining) + " 秒", 9, DW)
43918
+ ])) : e.status === "waiting" ? (U(), W("span", OW, "智能调度:主持人答完后请 " + P(I(a).display_name(e.member)) + " 回答", 1)) : (U(), W("span", kW, "智能调度:" + P(e.mode === "interrupt" ? `已打断主持人,改由 ${I(a).display_name(e.member)} 回答` : `已请 ${I(a).display_name(e.member)} 回答`), 1)),
43928
43919
  e.can_adopt ? (U(), W(H, { key: 3 }, [nt.value === e.message_id ? (U(), W(H, { key: 1 }, [
43929
43920
  q(o, {
43930
43921
  label: `打断主持人,改由 ${I(a).display_name(e.member)} 回答`,
@@ -43959,7 +43950,7 @@ var hU = /*#__PURE__*/ XH({
43959
43950
  onClick: (t) => e.host_busy ? nt.value = e.message_id : mt(e.message_id, "after")
43960
43951
  }, null, 8, ["aria-label", "onClick"]))], 64)) : Y("", !0)
43961
43952
  ], 64))), 128))], 2)) : Y("", !0),
43962
- Ee.value && e.suggestions?.length ? (U(), W("div", kW, [(U(!0), W(H, null, B(He.value.get(e.id) || [], (t) => (U(), W("div", { key: t.member_id }, [K("span", null, "建议请 " + P(I(a).display_name(t.member)) + " 回应", 1), t.request_id ? (U(), W("span", AW, "已转请求 #" + P(t.request_id), 1)) : t.status === "active" ? I(i).access?.can_manage && !ye.value.archived ? (U(), G(o, {
43953
+ Ee.value && e.suggestions?.length ? (U(), W("div", AW, [(U(!0), W(H, null, B(He.value.get(e.id) || [], (t) => (U(), W("div", { key: t.member_id }, [K("span", null, "建议请 " + P(I(a).display_name(t.member)) + " 回应", 1), t.request_id ? (U(), W("span", jW, "已转请求 #" + P(t.request_id), 1)) : t.status === "active" ? I(i).access?.can_manage && !ye.value.archived ? (U(), G(o, {
43963
43954
  key: 2,
43964
43955
  label: "转为请求",
43965
43956
  icon: "i-lucide-send",
@@ -43976,15 +43967,15 @@ var hU = /*#__PURE__*/ XH({
43976
43967
  "disabled",
43977
43968
  "aria-label",
43978
43969
  "onClick"
43979
- ])) : Y("", !0) : (U(), W("span", jW, "成员已离开"))]))), 128))])) : Y("", !0),
43970
+ ])) : Y("", !0) : (U(), W("span", MW, "成员已离开"))]))), 128))])) : Y("", !0),
43980
43971
  (U(!0), W(H, null, B(Xe.value.get(e.id) || [], (e) => (U(), W("section", {
43981
43972
  key: e.id,
43982
43973
  class: "channel-execution-report",
43983
43974
  "aria-label": `执行报告 #${e.id}`
43984
43975
  }, [
43985
43976
  K("div", null, [K("strong", null, "执行 #" + P(e.id) + " · " + P(e.label), 1)]),
43986
- e.changes?.length ? (U(), W("p", NW, "文件变化:" + P(e.changes.join("、")), 1)) : Y("", !0),
43987
- e.status !== "completed" && e.result ? (U(), W("p", PW, P(e.result), 1)) : Y("", !0),
43977
+ e.changes?.length ? (U(), W("p", PW, "文件变化:" + P(e.changes.join("、")), 1)) : Y("", !0),
43978
+ e.status !== "completed" && e.result ? (U(), W("p", FW, P(e.result), 1)) : Y("", !0),
43988
43979
  Bn(e) ? (U(), G(o, {
43989
43980
  key: 2,
43990
43981
  label: "重发",
@@ -43995,9 +43986,9 @@ var hU = /*#__PURE__*/ XH({
43995
43986
  "aria-label": `把执行 #${e.id} 的原消息填回输入框重发`,
43996
43987
  onClick: (t) => Vn(e)
43997
43988
  }, null, 8, ["aria-label", "onClick"])) : Y("", !0)
43998
- ], 8, MW))), 128))
43989
+ ], 8, NW))), 128))
43999
43990
  ]),
44000
- header: L(() => [K("div", FW, [K("div", IW, [q(ie, { text: "回复" }, {
43991
+ header: L(() => [K("div", IW, [K("div", LW, [q(ie, { text: "回复" }, {
44001
43992
  default: L(() => [q(o, {
44002
43993
  icon: "i-lucide-corner-up-left",
44003
43994
  size: "xs",
@@ -44060,8 +44051,8 @@ var hU = /*#__PURE__*/ XH({
44060
44051
  }, {
44061
44052
  text: L(() => [
44062
44053
  J("智能调度:" + P(e.label), 1),
44063
- e.confidence === null ? Y("", !0) : (U(), W("small", LW, "置信度 " + P(Number(e.confidence).toFixed(2)), 1)),
44064
- e.detail?.[0]?.duration_ms == null ? Y("", !0) : (U(), W("small", RW, "耗时 " + P(vt(e.detail[0].duration_ms)), 1))
44054
+ e.confidence === null ? Y("", !0) : (U(), W("small", RW, "置信度 " + P(Number(e.confidence).toFixed(2)), 1)),
44055
+ e.detail?.[0]?.duration_ms == null ? Y("", !0) : (U(), W("small", zW, "耗时 " + P(vt(e.detail[0].duration_ms)), 1))
44065
44056
  ]),
44066
44057
  actions: L(() => [I(i).access?.can_manage ? (U(), W("button", {
44067
44058
  key: 0,
@@ -44071,7 +44062,7 @@ var hU = /*#__PURE__*/ XH({
44071
44062
  "aria-label": "这次调度判断得好",
44072
44063
  title: "判断得好",
44073
44064
  onClick: (t) => dt(e, "good")
44074
- }, [q(re, { name: "i-lucide-thumbs-up" })], 10, zW)) : Y("", !0), I(i).access?.can_manage ? (U(), W("button", {
44065
+ }, [q(re, { name: "i-lucide-thumbs-up" })], 10, BW)) : Y("", !0), I(i).access?.can_manage ? (U(), W("button", {
44075
44066
  key: 1,
44076
44067
  type: "button",
44077
44068
  class: M(["channel-schedule-rate", { "is-on": e.feedback === "bad" }]),
@@ -44079,8 +44070,8 @@ var hU = /*#__PURE__*/ XH({
44079
44070
  "aria-label": "这次调度判断得不好",
44080
44071
  title: "判断得不好",
44081
44072
  onClick: (t) => dt(e, "bad")
44082
- }, [q(re, { name: "i-lucide-thumbs-down" })], 10, BW)) : Y("", !0)]),
44083
- default: L(() => [(U(!0), W(H, null, B(e.detail, (e, t) => (U(), W("p", { key: t }, [K("span", null, "问:" + P(e.question) + "(" + P(e.choices.map(ct).join(" / ")) + ")", 1), K("span", null, [J("答:" + P(e.choice ? ct(e.choice) : "无"), 1), e.probabilities[e.choice] === void 0 ? Y("", !0) : (U(), W("small", VW, "概率 " + P(Number(e.probabilities[e.choice]).toFixed(2)), 1))])]))), 128))]),
44073
+ }, [q(re, { name: "i-lucide-thumbs-down" })], 10, VW)) : Y("", !0)]),
44074
+ default: L(() => [(U(!0), W(H, null, B(e.detail, (e, t) => (U(), W("p", { key: t }, [K("span", null, "问:" + P(e.question) + "(" + P(e.choices.map(ct).join(" / ")) + ")", 1), K("span", null, [J("答:" + P(e.choice ? ct(e.choice) : "无"), 1), e.probabilities[e.choice] === void 0 ? Y("", !0) : (U(), W("small", HW, "概率 " + P(Number(e.probabilities[e.choice]).toFixed(2)), 1))])]))), 128))]),
44084
44075
  _: 2
44085
44076
  }, 1032, [
44086
44077
  "skipped",
@@ -44095,7 +44086,7 @@ var hU = /*#__PURE__*/ XH({
44095
44086
  K("label", null, [t[35] ||= J("应该由谁回答", -1), vr(K("select", { "onUpdate:modelValue": t[7] ||= (e) => ut.value.should_be = e }, [(U(!0), W(H, null, B(pt.value, (e) => (U(), W("option", {
44096
44087
  key: e.value,
44097
44088
  value: e.value
44098
- }, P(e.label), 9, UW))), 128))], 512), [[$l, ut.value.should_be]])]),
44089
+ }, P(e.label), 9, WW))), 128))], 512), [[$l, ut.value.should_be]])]),
44099
44090
  vr(K("input", {
44100
44091
  "onUpdate:modelValue": t[8] ||= (e) => ut.value.note = e,
44101
44092
  type: "text",
@@ -44121,7 +44112,7 @@ var hU = /*#__PURE__*/ XH({
44121
44112
  note: ""
44122
44113
  }
44123
44114
  })
44124
- ], 40, HW)) : Y("", !0)], 64))), 128)),
44115
+ ], 40, UW)) : Y("", !0)], 64))), 128)),
44125
44116
  (U(!0), W(H, null, B(lt.value.get(e.id) || [], (t) => (U(), G(jH, {
44126
44117
  key: `arrangement-${t.id}`,
44127
44118
  icon: "i-lucide-list-ordered",
@@ -44150,7 +44141,7 @@ var hU = /*#__PURE__*/ XH({
44150
44141
  body: "channel-message-body"
44151
44142
  }
44152
44143
  }, {
44153
- body: L(() => [K("div", WW, [
44144
+ body: L(() => [K("div", GW, [
44154
44145
  q(x, {
44155
44146
  src: I(a).identities[e.expert]?.icon,
44156
44147
  text: I(a).identities[e.expert]?.initials || "?",
@@ -44163,8 +44154,8 @@ var hU = /*#__PURE__*/ XH({
44163
44154
  "alt",
44164
44155
  "class"
44165
44156
  ]),
44166
- K("div", GW, [K("div", KW, [K("strong", null, P(I(a).display_name(e.expert)), 1)])]),
44167
- K("span", qW, "已错过 · 安排 #" + P(e.id), 1)
44157
+ K("div", KW, [K("div", qW, [K("strong", null, P(I(a).display_name(e.expert)), 1)])]),
44158
+ K("span", JW, "已错过 · 安排 #" + P(e.id), 1)
44168
44159
  ]), t[36] ||= K("div", {
44169
44160
  class: "channel-message-text",
44170
44161
  role: "status"
@@ -44173,12 +44164,12 @@ var hU = /*#__PURE__*/ XH({
44173
44164
  }, 1032, ["id", "data-author"]))), 128))
44174
44165
  ], 64))
44175
44166
  ], 64))), 128))]))), 128)),
44176
- (Qt.value === "end" || $t.value === "end") && !I(i).query && !I(i).mention_only ? (U(), W("div", JW, [Qt.value === "end" ? (U(), G(qH, {
44167
+ (Qt.value === "end" || $t.value === "end") && !I(i).query && !I(i).mention_only ? (U(), W("div", YW, [Qt.value === "end" ? (U(), G(qH, {
44177
44168
  key: 0,
44178
44169
  ref: (e) => /* @__PURE__ */ ln(r) ? r.value = e : r = e,
44179
44170
  onEdit: t[10] ||= (e) => n("edit")
44180
44171
  }, null, 512)) : Y("", !0), $t.value === "end" ? (U(), G(SU, { key: 1 })) : Y("", !0)])) : Y("", !0),
44181
- Ze.value ? (U(), W("div", YW, [Ze.value.is_host ? (U(), G(jH, {
44172
+ Ze.value ? (U(), W("div", XW, [Ze.value.is_host ? (U(), G(jH, {
44182
44173
  key: 0,
44183
44174
  id: `execution-${Ze.value.id}`,
44184
44175
  icon: "i-lucide-list-ordered",
@@ -44193,7 +44184,7 @@ var hU = /*#__PURE__*/ XH({
44193
44184
  ref_key: "reply_glow",
44194
44185
  ref: be,
44195
44186
  class: "channel-reply-glow"
44196
- }, P(Ze.value.text), 513)], 8, XW), K("small", null, "已用 " + P(_t.value), 1)]),
44187
+ }, P(Ze.value.text), 513)], 8, ZW), K("small", null, "已用 " + P(_t.value), 1)]),
44197
44188
  _: 1
44198
44189
  }, 8, ["id", "label"])) : (U(), G(E, {
44199
44190
  key: 1,
@@ -44211,7 +44202,7 @@ var hU = /*#__PURE__*/ XH({
44211
44202
  body: "channel-message-body"
44212
44203
  }
44213
44204
  }, {
44214
- body: L(() => [K("div", ZW, [
44205
+ body: L(() => [K("div", QW, [
44215
44206
  q(x, {
44216
44207
  src: I(a).identities[Ze.value.author]?.icon,
44217
44208
  text: I(a).identities[Ze.value.author]?.initials || "?",
@@ -44224,27 +44215,27 @@ var hU = /*#__PURE__*/ XH({
44224
44215
  "alt",
44225
44216
  "class"
44226
44217
  ]),
44227
- K("div", QW, [K("div", $W, [K("strong", null, P(I(a).display_name(Ze.value.author)), 1), Ze.value.round ? (U(), W("span", eG, P(Ze.value.round), 1)) : Y("", !0)])]),
44228
- K("span", tG, P(Ze.value.manual ? "手动启动" : `已用 ${_t.value}`), 1)
44218
+ K("div", $W, [K("div", eG, [K("strong", null, P(I(a).display_name(Ze.value.author)), 1), Ze.value.round ? (U(), W("span", tG, P(Ze.value.round), 1)) : Y("", !0)])]),
44219
+ K("span", nG, P(Ze.value.manual ? "手动启动" : `已用 ${_t.value}`), 1)
44229
44220
  ]), K("div", {
44230
44221
  class: "channel-message-text",
44231
44222
  role: "status",
44232
44223
  "aria-label": `${I(a).display_name(Ze.value.author)} ${Ze.value.text}`
44233
- }, [Ze.value.manual ? (U(), W("span", rG, P(Ze.value.text), 1)) : (U(), W("span", {
44224
+ }, [Ze.value.manual ? (U(), W("span", iG, P(Ze.value.text), 1)) : (U(), W("span", {
44234
44225
  key: 1,
44235
44226
  ref_key: "reply_glow",
44236
44227
  ref: be,
44237
44228
  class: "channel-reply-glow"
44238
- }, P(Ze.value.text), 513))], 8, nG)]),
44229
+ }, P(Ze.value.text), 513))], 8, rG)]),
44239
44230
  _: 1
44240
44231
  }, 8, ["id", "data-author"]))])) : Y("", !0),
44241
- !Zt.value.length && !Ze.value && !ke.value.length ? (U(), W("div", iG, [
44232
+ !Zt.value.length && !Ze.value && !ke.value.length ? (U(), W("div", aG, [
44242
44233
  q(re, { name: I(i).query || I(i).mention_only ? "i-lucide-search" : "i-lucide-hash" }, null, 8, ["name"]),
44243
44234
  K("h2", null, P(I(i).query || I(i).mention_only ? "没有找到消息" : ye.value.title), 1),
44244
44235
  K("p", null, P(I(i).query || I(i).mention_only ? "试试其他关键词,或清除筛选。" : I(a).empty_discussion_message(ye.value)), 1)
44245
44236
  ])) : Y("", !0)
44246
44237
  ], 544)), t, 11),
44247
- (Zt.value.length || Ze.value) && !ve.value ? (U(), W("div", aG, [q(o, {
44238
+ (Zt.value.length || Ze.value) && !ve.value ? (U(), W("div", oG, [q(o, {
44248
44239
  icon: "i-lucide-arrow-down",
44249
44240
  color: "neutral",
44250
44241
  variant: "outline",
@@ -44252,7 +44243,7 @@ var hU = /*#__PURE__*/ XH({
44252
44243
  class: "channel-latest-button",
44253
44244
  onClick: En
44254
44245
  })])) : Y("", !0),
44255
- K("div", oG, [K("div", {
44246
+ K("div", sG, [K("div", {
44256
44247
  class: "channel-composer-column",
44257
44248
  onDragover: t[23] ||= (...e) => I(a).drop_attachments && I(a).drop_attachments(...e),
44258
44249
  onDrop: t[24] ||= (...e) => I(a).drop_attachments && I(a).drop_attachments(...e),
@@ -44321,7 +44312,7 @@ var hU = /*#__PURE__*/ XH({
44321
44312
  ])),
44322
44313
  K("span", null, P(Pt[e] ? `全体成员(${Ie.value.length} 位)` : I(a).display_name(e)), 1),
44323
44314
  K("small", null, "@" + P(e), 1)
44324
- ], 40, sG))), 128)), Bt.value.length ? Y("", !0) : (U(), W("p", cG, "没有匹配的成员"))], 512)]),
44315
+ ], 40, cG))), 128)), Bt.value.length ? Y("", !0) : (U(), W("p", lG, "没有匹配的成员"))], 512)]),
44325
44316
  _: 1
44326
44317
  }, 8, [
44327
44318
  "open",
@@ -44337,7 +44328,7 @@ var hU = /*#__PURE__*/ XH({
44337
44328
  "submit-on-enter": !0,
44338
44329
  autofocus: !1,
44339
44330
  rows: 1,
44340
- maxrows: OG,
44331
+ maxrows: kG,
44341
44332
  placeholder: `发消息到 # ${ye.value.title}`,
44342
44333
  "aria-label": "留言正文",
44343
44334
  role: "combobox",
@@ -44357,7 +44348,7 @@ var hU = /*#__PURE__*/ XH({
44357
44348
  onSubmit: Wn
44358
44349
  }, {
44359
44350
  header: L(() => [
44360
- I(i).attachment_drafts.length ? (U(), W("div", lG, [(U(!0), W(H, null, B(I(i).attachment_drafts, (e) => (U(), W("div", {
44351
+ I(i).attachment_drafts.length ? (U(), W("div", uG, [(U(!0), W(H, null, B(I(i).attachment_drafts, (e) => (U(), W("div", {
44361
44352
  key: e.id,
44362
44353
  class: M(e.preview_url ? "attachment-draft-image" : "attachment-draft-file")
44363
44354
  }, [e.preview_url ? (U(), W("img", {
@@ -44365,19 +44356,19 @@ var hU = /*#__PURE__*/ XH({
44365
44356
  src: e.preview_url,
44366
44357
  alt: e.file_name,
44367
44358
  title: e.file_name
44368
- }, null, 8, uG)) : (U(), W(H, { key: 1 }, [K("span", { innerHTML: I(a).attachment_file_icon(e.file_name) }, null, 8, dG), K("span", fG, [K("span", { title: e.file_name }, P(e.file_name), 9, pG), K("small", null, P(I(a).attachment_size(e.size)), 1)])], 64)), K("button", {
44359
+ }, null, 8, dG)) : (U(), W(H, { key: 1 }, [K("span", { innerHTML: I(a).attachment_file_icon(e.file_name) }, null, 8, fG), K("span", pG, [K("span", { title: e.file_name }, P(e.file_name), 9, mG), K("small", null, P(I(a).attachment_size(e.size)), 1)])], 64)), K("button", {
44369
44360
  type: "button",
44370
44361
  class: "attachment-remove",
44371
44362
  "aria-label": `移除 ${e.file_name}`,
44372
44363
  disabled: I(i).sending_message,
44373
44364
  onClick: (t) => I(s)("remove_attachment", e.id)
44374
- }, [q(re, { name: "i-lucide-x" })], 8, mG)], 2))), 128))])) : Y("", !0),
44365
+ }, [q(re, { name: "i-lucide-x" })], 8, hG)], 2))), 128))])) : Y("", !0),
44375
44366
  I(i).composer_error || I(i).upload_status ? (U(), W("p", {
44376
44367
  key: 1,
44377
44368
  class: "attachment-status",
44378
44369
  role: I(i).composer_error ? "alert" : "status"
44379
- }, P(I(i).composer_error || I(i).upload_status), 9, hG)) : Y("", !0),
44380
- we.value ? (U(), W("div", gG, [
44370
+ }, P(I(i).composer_error || I(i).upload_status), 9, gG)) : Y("", !0),
44371
+ we.value ? (U(), W("div", _G, [
44381
44372
  q(re, { name: "i-lucide-user-round-x" }),
44382
44373
  K("span", null, P(I(a).display_name(we.value.name)) + " 待注册:在其会话中粘贴启动指令", 1),
44383
44374
  I(i).access?.can_manage ? (U(), G(o, {
@@ -44392,7 +44383,7 @@ var hU = /*#__PURE__*/ XH({
44392
44383
  onClick: t[14] ||= (e) => zn(we.value.name)
44393
44384
  }, null, 8, ["icon", "label"])) : Y("", !0)
44394
44385
  ])) : Y("", !0),
44395
- Te.value ? (U(), W("div", _G, [
44386
+ Te.value ? (U(), W("div", vG, [
44396
44387
  q(re, { name: "i-lucide-clock" }),
44397
44388
  K("span", null, P(Te.value), 1),
44398
44389
  Se(Ce.value) && I(i).access?.can_manage ? (U(), G(o, {
@@ -44407,7 +44398,7 @@ var hU = /*#__PURE__*/ XH({
44407
44398
  onClick: t[15] ||= (e) => zn(Ce.value.name)
44408
44399
  }, null, 8, ["icon", "label"])) : Y("", !0)
44409
44400
  ])) : Y("", !0),
44410
- I(i).reply_to || I(i).turn_reply_to ? (U(), W("div", vG, [
44401
+ I(i).reply_to || I(i).turn_reply_to ? (U(), W("div", yG, [
44411
44402
  q(re, { name: "i-lucide-corner-up-left" }),
44412
44403
  K("span", null, P(I(i).turn_reply_to ? `回答安排 #${I(i).turn_reply_to} · ${I(a).display_name(ye.value.host)} 代发` : `回复 #${I(i).reply_to}`), 1),
44413
44404
  q(o, {
@@ -44419,7 +44410,7 @@ var hU = /*#__PURE__*/ XH({
44419
44410
  onClick: t[16] ||= (e) => I(s)(I(i).turn_reply_to ? "cancel_answer" : "cancel_reply")
44420
44411
  }, null, 8, ["aria-label"])
44421
44412
  ])) : Y("", !0),
44422
- g.value ? (U(), W("div", yG, [q(le, {
44413
+ g.value ? (U(), W("div", bG, [q(le, {
44423
44414
  modelValue: I(m),
44424
44415
  "onUpdate:modelValue": t[17] ||= (e) => /* @__PURE__ */ ln(m) ? m.value = e : null,
44425
44416
  rows: 2,
@@ -44446,14 +44437,14 @@ var hU = /*#__PURE__*/ XH({
44446
44437
  disabled: I(i).sending_message,
44447
44438
  onClick: t[19] ||= (e) => I(s)("choose_attachments")
44448
44439
  }, null, 8, ["disabled"]),
44449
- Re.value.length ? (U(), W("div", xG, [t[38] ||= K("span", null, "代发", -1), (U(!0), W(H, null, B(Re.value, (e) => (U(), W("button", {
44440
+ Re.value.length ? (U(), W("div", SG, [t[38] ||= K("span", null, "代发", -1), (U(!0), W(H, null, B(Re.value, (e) => (U(), W("button", {
44450
44441
  key: e.id,
44451
44442
  type: "button",
44452
44443
  "aria-pressed": I(i).free_proxy === e.name,
44453
44444
  class: M({ "is-on": I(i).free_proxy === e.name }),
44454
44445
  onClick: (t) => I(s)("set_proxy", e.name)
44455
- }, P(I(a).display_name(e.name)), 11, SG))), 128))])) : Y("", !0),
44456
- Ee.value ? Y("", !0) : (U(), W("div", CG, [q(N, {
44446
+ }, P(I(a).display_name(e.name)), 11, CG))), 128))])) : Y("", !0),
44447
+ Ee.value ? Y("", !0) : (U(), W("div", wG, [q(N, {
44457
44448
  modelValue: I(f),
44458
44449
  "onUpdate:modelValue": t[20] ||= (e) => /* @__PURE__ */ ln(f) ? f.value = e : null,
44459
44450
  items: xt.value,
@@ -44518,7 +44509,7 @@ var hU = /*#__PURE__*/ XH({
44518
44509
  class: "channel-editor channel-editor-mirror",
44519
44510
  "aria-hidden": "true",
44520
44511
  innerHTML: Ot.value
44521
- }, null, 8, bG)) : Y("", !0)]),
44512
+ }, null, 8, xG)) : Y("", !0)]),
44522
44513
  _: 1
44523
44514
  }, 8, [
44524
44515
  "modelValue",
@@ -44529,16 +44520,16 @@ var hU = /*#__PURE__*/ XH({
44529
44520
  "aria-activedescendant",
44530
44521
  "class"
44531
44522
  ]),
44532
- K("div", wG, [Ee.value ? (U(), W("span", TG, [
44523
+ K("div", TG, [Ee.value ? (U(), W("span", EG, [
44533
44524
  J(P(Pe.value), 1),
44534
44525
  t[39] ||= K("span", { class: "channel-note-divider" }, "·", -1),
44535
44526
  t[40] ||= J("手动成员需在原会话触发", -1)
44536
- ])) : (U(), W("span", EG, [
44527
+ ])) : (U(), W("span", DG, [
44537
44528
  J(P(Tt.value), 1),
44538
44529
  Be.value.length ? (U(), W(H, { key: 0 }, [t[41] ||= K("span", { class: "channel-note-divider" }, "·", -1), J("直接提问 " + P(Be.value.join("、")) + ",不计轮次", 1)], 64)) : Y("", !0),
44539
44530
  t[42] ||= K("span", { class: "channel-note-divider" }, "·", -1),
44540
44531
  t[43] ||= J("在线 AI 的观点需代发", -1)
44541
- ])), K("span", DG, [u.value ? (U(), W("span", {
44532
+ ])), K("span", OG, [u.value ? (U(), W("span", {
44542
44533
  key: 0,
44543
44534
  class: M({ "is-near-limit": d.value })
44544
44535
  }, [J(P(u.value) + " / " + P(I(a).max_message_length), 1), t[44] ||= K("span", { class: "channel-note-divider" }, "·", -1)], 2)) : Y("", !0), t[45] ||= K("span", { class: "channel-key-hint" }, [
@@ -44554,7 +44545,7 @@ var hU = /*#__PURE__*/ XH({
44554
44545
  ], 2);
44555
44546
  };
44556
44547
  }
44557
- }, [["__scopeId", "data-v-2db0c1cd"]]), dK = {
44548
+ }, [["__scopeId", "data-v-45aaa601"]]), dK = {
44558
44549
  slots: {
44559
44550
  root: "relative inline-flex items-center",
44560
44551
  base: ["rounded-md", "transition-colors"],