ai_co_discuss 0.2.3 → 0.2.4
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/docs/runner.md +1 -1
- package/package.json +1 -1
- package/runner/discussion_launch.mjs +23 -1
- package/web/app.js +1 -1
- package/web/modern.css +1 -1
- package/web/modern.js +330 -328
package/web/modern.js
CHANGED
|
@@ -44227,24 +44227,24 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44227
44227
|
"aria-pressed",
|
|
44228
44228
|
"aria-label",
|
|
44229
44229
|
"title"
|
|
44230
|
-
], yK = ["aria-label"], bK = ["inert", "aria-hidden"], xK = { class: "expert-card-heading" }, SK = ["aria-label"], CK = [
|
|
44230
|
+
], yK = ["aria-label"], bK = ["inert", "aria-hidden"], xK = { class: "expert-card-heading" }, SK = ["aria-label"], CK = [
|
|
44231
44231
|
"aria-checked",
|
|
44232
44232
|
"tabindex",
|
|
44233
44233
|
"data-mode",
|
|
44234
44234
|
"onClick"
|
|
44235
|
-
],
|
|
44235
|
+
], wK = {
|
|
44236
44236
|
key: 1,
|
|
44237
44237
|
class: "expert-card-field"
|
|
44238
|
-
},
|
|
44238
|
+
}, TK = { class: "expert-card-field" }, EK = { class: "expert-card-catalog" }, DK = {
|
|
44239
44239
|
key: 0,
|
|
44240
44240
|
class: "expert-card-effort"
|
|
44241
|
-
},
|
|
44241
|
+
}, OK = {
|
|
44242
44242
|
key: 1,
|
|
44243
44243
|
class: "expert-card-note"
|
|
44244
|
-
},
|
|
44244
|
+
}, kK = ["aria-label", "disabled"], AK = {
|
|
44245
44245
|
key: 3,
|
|
44246
44246
|
class: "expert-card-note"
|
|
44247
|
-
},
|
|
44247
|
+
}, jK = ["aria-label"], MK = 180, NK = /*#__PURE__*/ nH({
|
|
44248
44248
|
__name: "ExpertCard",
|
|
44249
44249
|
props: {
|
|
44250
44250
|
name: {
|
|
@@ -44309,7 +44309,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44309
44309
|
});
|
|
44310
44310
|
}
|
|
44311
44311
|
function T(e) {
|
|
44312
|
-
let t = e >=
|
|
44312
|
+
let t = e >= MK / 2;
|
|
44313
44313
|
f.value !== t && (f.value = t, w());
|
|
44314
44314
|
}
|
|
44315
44315
|
let E = o.on("change", T), D = o.on("animationComplete", w);
|
|
@@ -44336,16 +44336,15 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44336
44336
|
d.value && (e.stopPropagation(), e.preventDefault(), O(!1));
|
|
44337
44337
|
}
|
|
44338
44338
|
return R([d, s], ([e, t]) => {
|
|
44339
|
-
let n = e ?
|
|
44339
|
+
let n = e ? MK : 0;
|
|
44340
44340
|
t ? (o.jump(n), w()) : o.set(n);
|
|
44341
44341
|
}), R(() => [
|
|
44342
|
-
d.value,
|
|
44343
44342
|
y.value,
|
|
44344
44343
|
i.value.launch.available,
|
|
44345
44344
|
p.value.adapter
|
|
44346
|
-
], ([e, t
|
|
44347
|
-
e && t &&
|
|
44348
|
-
}), ta(() => {
|
|
44345
|
+
], ([e, t]) => {
|
|
44346
|
+
e && t && a.load_launch_models(n.name);
|
|
44347
|
+
}, { immediate: !0 }), ta(() => {
|
|
44349
44348
|
E(), D(), o.stop();
|
|
44350
44349
|
}), (t, n) => {
|
|
44351
44350
|
let s = Gk, d = zk, h = pV;
|
|
@@ -44425,14 +44424,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44425
44424
|
inert: !f.value,
|
|
44426
44425
|
"aria-hidden": !f.value
|
|
44427
44426
|
}, [
|
|
44428
|
-
K("div", xK, [K("strong", null, [J(P(e.name), 1), n[11] ||= K("span", null, "设置", -1)]),
|
|
44429
|
-
ref_key: "back_button",
|
|
44430
|
-
ref: u,
|
|
44431
|
-
type: "button",
|
|
44432
|
-
class: "expert-card-return",
|
|
44433
|
-
"aria-label": `返回 ${e.name} 角色卡片`,
|
|
44434
|
-
onClick: n[3] ||= (e) => O(!1)
|
|
44435
|
-
}, [q(d, { name: "i-lucide-check" }), n[12] ||= J("完成", -1)], 8, SK)]),
|
|
44427
|
+
K("div", xK, [K("strong", null, [J(P(e.name), 1), n[11] ||= K("span", null, "设置", -1)])]),
|
|
44436
44428
|
e.automatic ? Y("", !0) : (U(), W("div", {
|
|
44437
44429
|
key: 0,
|
|
44438
44430
|
class: "expert-card-modes",
|
|
@@ -44453,112 +44445,122 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44453
44445
|
tabindex: e.mode === t.value ? 0 : -1,
|
|
44454
44446
|
"data-mode": t.value,
|
|
44455
44447
|
onClick: (e) => r("mode", t.value)
|
|
44456
|
-
}, P(t.label), 9,
|
|
44457
|
-
e.automatic && e.mode === "cli" && m.value.length ? (U(), W("div",
|
|
44448
|
+
}, P(t.label), 9, CK)), 64))], 40, SK)),
|
|
44449
|
+
e.automatic && e.mode === "cli" && m.value.length ? (U(), W("div", wK, [n[12] ||= K("span", null, "软件", -1), q(h, {
|
|
44458
44450
|
"model-value": p.value.adapter || "",
|
|
44459
44451
|
items: m.value,
|
|
44460
44452
|
placeholder: "选择 App / CLI",
|
|
44461
44453
|
"aria-label": `${e.name} 软件入口`,
|
|
44462
44454
|
size: "xs",
|
|
44463
44455
|
class: "w-full",
|
|
44464
|
-
"onUpdate:modelValue": n[
|
|
44456
|
+
"onUpdate:modelValue": n[3] ||= (t) => I(a).write_launch(e.name, "adapter", t)
|
|
44465
44457
|
}, null, 8, [
|
|
44466
44458
|
"model-value",
|
|
44467
44459
|
"items",
|
|
44468
44460
|
"aria-label"
|
|
44469
44461
|
])])) : Y("", !0),
|
|
44470
44462
|
y.value ? (U(), W(H, { key: 2 }, [
|
|
44471
|
-
K("div",
|
|
44463
|
+
K("div", TK, [n[13] ||= K("span", null, "模型", -1), q(h, {
|
|
44472
44464
|
"model-value": p.value.model || "__default__",
|
|
44473
44465
|
items: v.value.items,
|
|
44474
44466
|
loading: v.value.loading,
|
|
44475
44467
|
"aria-label": `${e.name} 使用的模型`,
|
|
44476
44468
|
size: "xs",
|
|
44477
44469
|
class: "w-full",
|
|
44478
|
-
"onUpdate:modelValue": n[
|
|
44470
|
+
"onUpdate:modelValue": n[4] ||= (t) => I(a).write_launch_model(e.name, t)
|
|
44479
44471
|
}, null, 8, [
|
|
44480
44472
|
"model-value",
|
|
44481
44473
|
"items",
|
|
44482
44474
|
"loading",
|
|
44483
44475
|
"aria-label"
|
|
44484
44476
|
])]),
|
|
44485
|
-
K("div",
|
|
44477
|
+
K("div", EK, [K("span", null, P(v.value.loading ? "正在读取软件模型列表…" : v.value.error || v.value.source), 1), !v.value.loading && v.value.error && I(i).launch.available ? (U(), W("button", {
|
|
44486
44478
|
key: 0,
|
|
44487
44479
|
type: "button",
|
|
44488
|
-
onClick: n[
|
|
44480
|
+
onClick: n[5] ||= (t) => I(a).load_launch_models(e.name, !0)
|
|
44489
44481
|
}, "重试")) : Y("", !0)]),
|
|
44490
|
-
x.value ? (U(), W("div",
|
|
44482
|
+
x.value ? (U(), W("div", DK, [K("div", null, [n[14] ||= K("span", null, "强度", -1), K("strong", null, P(S.value), 1)]), q(cK, {
|
|
44491
44483
|
items: x.value,
|
|
44492
44484
|
"model-value": p.value.effort || "",
|
|
44493
44485
|
label: `${e.name} 的思考强度`,
|
|
44494
|
-
"onUpdate:modelValue": n[
|
|
44486
|
+
"onUpdate:modelValue": n[6] ||= (t) => I(a).write_launch(e.name, "effort", t)
|
|
44495
44487
|
}, null, 8, [
|
|
44496
44488
|
"items",
|
|
44497
44489
|
"model-value",
|
|
44498
44490
|
"label"
|
|
44499
|
-
])])) : (U(), W("p",
|
|
44500
|
-
K("
|
|
44491
|
+
])])) : (U(), W("p", OK, P(v.value.effort_note), 1)),
|
|
44492
|
+
K("button", {
|
|
44501
44493
|
type: "button",
|
|
44494
|
+
class: "expert-card-defaults",
|
|
44495
|
+
title: "留空使用 CLI 默认值",
|
|
44502
44496
|
"aria-label": `恢复 ${e.name} 的默认模型与强度`,
|
|
44503
44497
|
disabled: !p.value.model && !p.value.effort,
|
|
44504
44498
|
onClick: ee
|
|
44505
|
-
}, "恢复默认", 8,
|
|
44506
|
-
], 64)) : (U(), W("p",
|
|
44499
|
+
}, "恢复默认", 8, kK)
|
|
44500
|
+
], 64)) : (U(), W("p", AK, [q(d, { name: e.mode === "online" ? "i-lucide-globe" : "i-lucide-monitor" }, null, 8, ["name"]), J(P(b.value), 1)])),
|
|
44501
|
+
K("button", {
|
|
44502
|
+
ref_key: "back_button",
|
|
44503
|
+
ref: u,
|
|
44504
|
+
type: "button",
|
|
44505
|
+
class: "expert-card-flip is-done",
|
|
44506
|
+
"aria-label": `返回 ${e.name} 角色卡片`,
|
|
44507
|
+
onClick: n[7] ||= (e) => O(!1)
|
|
44508
|
+
}, [q(d, { name: "i-lucide-check" }), n[15] ||= J("完成", -1)], 8, jK)
|
|
44507
44509
|
], 8, bK)) : Y("", !0)]),
|
|
44508
44510
|
_: 1
|
|
44509
44511
|
}, 8, ["style"])], 42, lK);
|
|
44510
44512
|
};
|
|
44511
44513
|
}
|
|
44512
|
-
}, [["__scopeId", "data-v-
|
|
44514
|
+
}, [["__scopeId", "data-v-f59a27e4"]]), PK = { class: "create-discussion" }, FK = {
|
|
44513
44515
|
key: 0,
|
|
44514
44516
|
class: "channel-create-location"
|
|
44515
|
-
},
|
|
44517
|
+
}, IK = { class: "create-section" }, LK = [
|
|
44516
44518
|
"aria-checked",
|
|
44517
44519
|
"tabindex",
|
|
44518
44520
|
"onClick"
|
|
44519
|
-
],
|
|
44521
|
+
], RK = { class: "create-mode-copy" }, zK = { class: "create-section" }, BK = { class: "create-section-heading" }, VK = [
|
|
44520
44522
|
"title",
|
|
44521
44523
|
"aria-checked",
|
|
44522
44524
|
"tabindex",
|
|
44523
44525
|
"onClick"
|
|
44524
|
-
],
|
|
44526
|
+
], HK = { class: "fine-print create-hint" }, UK = {
|
|
44525
44527
|
key: 0,
|
|
44526
44528
|
class: "create-experts",
|
|
44527
44529
|
role: "group",
|
|
44528
44530
|
"aria-label": "参与的 AI"
|
|
44529
|
-
},
|
|
44531
|
+
}, WK = {
|
|
44530
44532
|
key: 1,
|
|
44531
44533
|
class: "create-experts-empty"
|
|
44532
|
-
},
|
|
44534
|
+
}, GK = [
|
|
44533
44535
|
"disabled",
|
|
44534
44536
|
"title",
|
|
44535
44537
|
"aria-label",
|
|
44536
44538
|
"onClick"
|
|
44537
|
-
],
|
|
44539
|
+
], KK = { class: "fine-print create-hint create-host-hint" }, qK = ["aria-pressed"], JK = {
|
|
44538
44540
|
key: 1,
|
|
44539
44541
|
class: "create-section"
|
|
44540
|
-
},
|
|
44542
|
+
}, YK = {
|
|
44541
44543
|
key: 0,
|
|
44542
44544
|
class: "form-two-columns"
|
|
44543
|
-
},
|
|
44545
|
+
}, XK = { class: "create-host" }, ZK = {
|
|
44544
44546
|
class: "create-chips",
|
|
44545
44547
|
role: "radiogroup",
|
|
44546
44548
|
"aria-label": "达到上限后"
|
|
44547
|
-
},
|
|
44549
|
+
}, QK = ["aria-checked", "onClick"], $K = {
|
|
44548
44550
|
class: "create-limit-rule",
|
|
44549
44551
|
"aria-live": "polite"
|
|
44550
|
-
},
|
|
44552
|
+
}, eq = {
|
|
44551
44553
|
key: 2,
|
|
44552
44554
|
class: "create-section"
|
|
44553
|
-
},
|
|
44555
|
+
}, tq = {
|
|
44554
44556
|
key: 0,
|
|
44555
44557
|
role: "alert",
|
|
44556
44558
|
class: "fine-print create-hint"
|
|
44557
|
-
},
|
|
44559
|
+
}, nq = { class: "form-two-columns" }, rq = { class: "create-launch-list" }, iq = { class: "create-footer" }, aq = {
|
|
44558
44560
|
key: 0,
|
|
44559
44561
|
role: "alert",
|
|
44560
44562
|
class: "create-error"
|
|
44561
|
-
},
|
|
44563
|
+
}, oq = { class: "create-footer-row" }, sq = ["title"], cq = "new-expert-modes", lq = /*#__PURE__*/ nH({
|
|
44562
44564
|
__name: "CreateDiscussion",
|
|
44563
44565
|
props: { targetFolder: {
|
|
44564
44566
|
type: Object,
|
|
@@ -44592,7 +44594,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44592
44594
|
icon: "i-lucide-copy",
|
|
44593
44595
|
title: "手动接入",
|
|
44594
44596
|
text: "首次复制指令,之后人工或定时触发"
|
|
44595
|
-
}], h = Z(() => r.value.experts[
|
|
44597
|
+
}], h = Z(() => r.value.experts[cq] || {}), g = Z(() => Object.keys(h.value).filter((e) => h.value[e]).sort((e, t) => s.indexOf(i.platform_of(e)) - s.indexOf(i.platform_of(t)) || e.localeCompare(t, "en", { numeric: !0 }))), _ = (e) => g.value.filter((t) => i.platform_of(t) === e).length, v = /* @__PURE__ */ F(null), y = Z(() => l("host")), b = Z(() => [...f.value ? ["用户"] : [], ...g.value.filter((e) => h.value[e] === "cli")]), x = /* @__PURE__ */ F(null), S = Z(() => [.../* @__PURE__ */ new Set([y.value, ...Object.keys(h.value)])].filter((e) => i.launch_clients[e])), C = (e) => {
|
|
44596
44598
|
let t = r.value.launch.profiles[e] || {};
|
|
44597
44599
|
return !!(t.adapter && (t.adapter === "antigravity" ? t.ipc_directory : t.executable));
|
|
44598
44600
|
}, w = Z(() => d.value && r.value.launch.available && (f.value || r.value.launch.create)), T = Z(() => g.value.length > 0 && (!d.value || g.value.every(C) && r.value.launch.available)), E = /* @__PURE__ */ F(!1);
|
|
@@ -44628,7 +44630,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44628
44630
|
i.focus(), i.click();
|
|
44629
44631
|
}
|
|
44630
44632
|
function k(e, t) {
|
|
44631
|
-
i.write_expert(
|
|
44633
|
+
i.write_expert(cq, e, t), D();
|
|
44632
44634
|
}
|
|
44633
44635
|
function ne(e) {
|
|
44634
44636
|
return h.value[e] === "online" ? {
|
|
@@ -44651,7 +44653,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44651
44653
|
function ie(e) {
|
|
44652
44654
|
if (d.value && !i.launch_clients[e]) return;
|
|
44653
44655
|
let t = i.launch_clients[e] ? "cli" : "online";
|
|
44654
|
-
_(e) ? i.add_instance(
|
|
44656
|
+
_(e) ? i.add_instance(cq, e, t) : k(e, t), D();
|
|
44655
44657
|
}
|
|
44656
44658
|
function ae(e) {
|
|
44657
44659
|
k(e, ""), Qn(() => v.value?.querySelector("button:not(:disabled)")?.focus({ preventScroll: !0 }));
|
|
@@ -44682,13 +44684,13 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44682
44684
|
});
|
|
44683
44685
|
return (t, c) => {
|
|
44684
44686
|
let _ = zk, D = xV, ce = MV, le = FV, ue = Gk, de = AG, j = pV, fe = uA, pe = OG;
|
|
44685
|
-
return U(), W("div",
|
|
44687
|
+
return U(), W("div", PK, [K("form", {
|
|
44686
44688
|
id: "create-discussion-form",
|
|
44687
44689
|
class: "create-scroll dialog-form",
|
|
44688
44690
|
onSubmit: uu(A, ["prevent"])
|
|
44689
44691
|
}, [
|
|
44690
|
-
e.targetFolder?.id ? (U(), W("p",
|
|
44691
|
-
K("section",
|
|
44692
|
+
e.targetFolder?.id ? (U(), W("p", FK, [q(_, { name: "i-lucide-folder" }), J(P(e.targetFolder.name), 1)])) : Y("", !0),
|
|
44693
|
+
K("section", IK, [
|
|
44692
44694
|
c[12] ||= K("h3", null, [K("span", null, "1"), J("这次做什么")], -1),
|
|
44693
44695
|
K("div", {
|
|
44694
44696
|
class: "create-modes",
|
|
@@ -44703,7 +44705,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44703
44705
|
"aria-checked": (l("kind") || "brainstorm") === e.value,
|
|
44704
44706
|
tabindex: (l("kind") || "brainstorm") === e.value ? 0 : -1,
|
|
44705
44707
|
onClick: (t) => O(e.value)
|
|
44706
|
-
}, [q(_, { name: e.icon }, null, 8, ["name"]), K("span",
|
|
44708
|
+
}, [q(_, { name: e.icon }, null, 8, ["name"]), K("span", RK, [K("strong", null, P(e.title), 1), K("small", null, P(e.text), 1)])], 10, LK)), 64))], 32),
|
|
44707
44709
|
q(ce, {
|
|
44708
44710
|
label: "话题名称",
|
|
44709
44711
|
required: ""
|
|
@@ -44739,8 +44741,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44739
44741
|
_: 1
|
|
44740
44742
|
}, 8, ["description"])
|
|
44741
44743
|
]),
|
|
44742
|
-
K("section",
|
|
44743
|
-
K("div",
|
|
44744
|
+
K("section", zK, [
|
|
44745
|
+
K("div", BK, [c[13] ||= K("h3", null, [K("span", null, "2"), J("谁来参与")], -1), K("div", {
|
|
44744
44746
|
class: "create-segments",
|
|
44745
44747
|
role: "radiogroup",
|
|
44746
44748
|
"aria-label": "接入方式",
|
|
@@ -44753,9 +44755,9 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44753
44755
|
"aria-checked": l("mode") === e.value,
|
|
44754
44756
|
tabindex: l("mode") === e.value ? 0 : -1,
|
|
44755
44757
|
onClick: (t) => ee(e.value)
|
|
44756
|
-
}, [q(_, { name: e.icon }, null, 8, ["name"]), J(P(e.title), 1)], 8,
|
|
44757
|
-
K("p",
|
|
44758
|
-
g.value.length ? (U(), W("div",
|
|
44758
|
+
}, [q(_, { name: e.icon }, null, 8, ["name"]), J(P(e.title), 1)], 8, VK)), 64))], 32)]),
|
|
44759
|
+
K("p", HK, P(d.value ? "本机服务交付任务并自动接续会话;仅支持已适配的本地软件,网页 AI 请用手动接入。" : "首次复制指令,之后人工或定时触发;本地 AI 可自行提交,网页 AI 由你或授权主持人代发。"), 1),
|
|
44760
|
+
g.value.length ? (U(), W("div", UK, [(U(!0), W(H, null, B(g.value, (e) => (U(), G(NK, {
|
|
44759
44761
|
key: e,
|
|
44760
44762
|
name: e,
|
|
44761
44763
|
mode: h.value[e],
|
|
@@ -44776,7 +44778,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44776
44778
|
"onHost",
|
|
44777
44779
|
"onRemove",
|
|
44778
44780
|
"onMode"
|
|
44779
|
-
]))), 128))])) : (U(), W("p",
|
|
44781
|
+
]))), 128))])) : (U(), W("p", WK, "从下方添加 AI;同一平台可添加多位,各自独立会话。")),
|
|
44780
44782
|
K("div", {
|
|
44781
44783
|
ref_key: "library",
|
|
44782
44784
|
ref: v,
|
|
@@ -44805,19 +44807,19 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44805
44807
|
]),
|
|
44806
44808
|
J(P(e), 1),
|
|
44807
44809
|
q(_, { name: "i-lucide-plus" })
|
|
44808
|
-
], 8,
|
|
44809
|
-
K("div",
|
|
44810
|
+
], 8, GK))), 128))], 512),
|
|
44811
|
+
K("div", KK, [f.value ? (U(), W("button", {
|
|
44810
44812
|
key: 0,
|
|
44811
44813
|
type: "button",
|
|
44812
44814
|
class: "create-host-self",
|
|
44813
44815
|
"aria-pressed": y.value === "用户",
|
|
44814
44816
|
onClick: c[2] ||= (e) => u("host", "用户")
|
|
44815
|
-
}, [q(_, { name: "i-lucide-crown" }), c[15] ||= J("我来主持", -1)], 8,
|
|
44817
|
+
}, [q(_, { name: "i-lucide-crown" }), c[15] ||= J("我来主持", -1)], 8, qK)) : (U(), G(_, {
|
|
44816
44818
|
key: 1,
|
|
44817
44819
|
name: "i-lucide-crown"
|
|
44818
44820
|
})), K("span", null, P(f.value ? "默认由你点名和分配任务;也可点卡片上的皇冠,由一位本地 AI 协助主持。" : b.value.length ? "点卡片上的皇冠指定主持人:须为本地读写 AI,负责补全议题、安排发言与收束,也可同时作为专家。" : "先添加一位本地读写的 AI 担任主持人。"), 1)])
|
|
44819
44821
|
]),
|
|
44820
|
-
f.value ? Y("", !0) : (U(), W("section",
|
|
44822
|
+
f.value ? Y("", !0) : (U(), W("section", JK, [
|
|
44821
44823
|
c[18] ||= K("h3", null, [K("span", null, "3"), J("讨论多久")], -1),
|
|
44822
44824
|
q(YG, {
|
|
44823
44825
|
ref_key: "limit_picker",
|
|
@@ -44828,7 +44830,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44828
44830
|
"onUpdate:minutes": c[4] ||= (e) => u("limit-max_minutes", String(e))
|
|
44829
44831
|
}, null, 8, ["rounds", "minutes"]),
|
|
44830
44832
|
c[19] ||= K("p", { class: "fine-print create-hint" }, "一轮指每位专家各完成一次观点;首次进入讨论或创建安排后计时,暂停期间不计时。", -1),
|
|
44831
|
-
d.value ? (U(), W("div",
|
|
44833
|
+
d.value ? (U(), W("div", YK, [q(ce, {
|
|
44832
44834
|
label: "单次 AI 执行(分钟)",
|
|
44833
44835
|
description: "留空或 0 表示不限"
|
|
44834
44836
|
}, {
|
|
@@ -44844,9 +44846,9 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44844
44846
|
}, null, 8, ["model-value"])]),
|
|
44845
44847
|
_: 1
|
|
44846
44848
|
})])) : Y("", !0),
|
|
44847
|
-
K("div",
|
|
44849
|
+
K("div", XK, [
|
|
44848
44850
|
c[17] ||= K("span", { class: "create-label" }, "达到任一上限后", -1),
|
|
44849
|
-
K("div",
|
|
44851
|
+
K("div", ZK, [(U(), W(H, null, B([{
|
|
44850
44852
|
value: "pause",
|
|
44851
44853
|
label: "暂停保留现场"
|
|
44852
44854
|
}, {
|
|
@@ -44859,7 +44861,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44859
44861
|
"aria-checked": (l("limit-on_limit") || "pause") === e.value,
|
|
44860
44862
|
class: M({ "is-selected": (l("limit-on_limit") || "pause") === e.value }),
|
|
44861
44863
|
onClick: (t) => u("limit-on_limit", e.value)
|
|
44862
|
-
}, P(e.label), 11,
|
|
44864
|
+
}, P(e.label), 11, QK)), 64))]),
|
|
44863
44865
|
l("limit-on_limit") === "summarize" ? (U(), G(D, {
|
|
44864
44866
|
key: 0,
|
|
44865
44867
|
"model-value": l("limit-summary_minutes"),
|
|
@@ -44875,11 +44877,11 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44875
44877
|
_: 1
|
|
44876
44878
|
}, 8, ["model-value"])) : Y("", !0)
|
|
44877
44879
|
]),
|
|
44878
|
-
K("p",
|
|
44880
|
+
K("p", $K, [q(_, { name: "i-lucide-flag" }), J(P(oe.value), 1)])
|
|
44879
44881
|
])),
|
|
44880
|
-
d.value ? (U(), W("section",
|
|
44882
|
+
d.value ? (U(), W("section", eq, [
|
|
44881
44883
|
K("h3", null, [K("span", null, P(f.value ? 3 : 4), 1), c[20] ||= J("启动本机软件", -1)]),
|
|
44882
|
-
f.value && !I(r).launch.available ? (U(), W("p",
|
|
44884
|
+
f.value && !I(r).launch.available ? (U(), W("p", tq, "程序唤醒需要本机服务:请在运行 AI 的电脑打开本机网站,或先运行连接命令。")) : Y("", !0),
|
|
44883
44885
|
I(r).launch.available ? (U(), W(H, { key: 1 }, [f.value ? Y("", !0) : (U(), G(de, {
|
|
44884
44886
|
key: 0,
|
|
44885
44887
|
"model-value": I(r).launch.create,
|
|
@@ -44887,7 +44889,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44887
44889
|
description: "由本机服务创建会话并交付首个主持任务;不勾选则只建房,稍后在「接入」页启动。",
|
|
44888
44890
|
"onUpdate:modelValue": c[7] ||= (e) => I(i).write_launch("create", "", e)
|
|
44889
44891
|
}, null, 8, ["model-value"])), f.value || I(r).launch.create ? (U(), W(H, { key: 1 }, [
|
|
44890
|
-
K("div",
|
|
44892
|
+
K("div", nq, [q(ce, {
|
|
44891
44893
|
label: "项目目录(可选)",
|
|
44892
44894
|
help: "要一起查看的项目;留空时 AI 只在讨论私有目录工作"
|
|
44893
44895
|
}, {
|
|
@@ -44910,7 +44912,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44910
44912
|
}, null, 8, ["model-value"])]),
|
|
44911
44913
|
_: 1
|
|
44912
44914
|
}, 8, ["help"])]),
|
|
44913
|
-
K("ul",
|
|
44915
|
+
K("ul", rq, [(U(!0), W(H, null, B(S.value, (e) => (U(), W("li", { key: e }, [
|
|
44914
44916
|
q(_, {
|
|
44915
44917
|
name: C(e) ? "i-lucide-circle-check" : "i-lucide-circle-alert",
|
|
44916
44918
|
class: M(C(e) ? "is-ready" : "is-warn")
|
|
@@ -44944,11 +44946,11 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44944
44946
|
"model-selection": !1
|
|
44945
44947
|
}, null, 8, ["participants"]))
|
|
44946
44948
|
])) : Y("", !0)
|
|
44947
|
-
], 32), K("footer",
|
|
44949
|
+
], 32), K("footer", iq, [w.value && I(r).launch.error ? (U(), W("p", aq, P(I(r).launch.error), 1)) : Y("", !0), K("div", oq, [
|
|
44948
44950
|
K("span", {
|
|
44949
44951
|
class: "create-summary",
|
|
44950
44952
|
title: se.value
|
|
44951
|
-
}, P(se.value), 9,
|
|
44953
|
+
}, P(se.value), 9, sq),
|
|
44952
44954
|
q(fe, {
|
|
44953
44955
|
label: "取消",
|
|
44954
44956
|
color: "neutral",
|
|
@@ -44972,61 +44974,61 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44972
44974
|
])])]);
|
|
44973
44975
|
};
|
|
44974
44976
|
}
|
|
44975
|
-
}, [["__scopeId", "data-v-44ac648e"]]),
|
|
44977
|
+
}, [["__scopeId", "data-v-44ac648e"]]), uq = {
|
|
44976
44978
|
key: 0,
|
|
44977
44979
|
class: "channel-archive-manager"
|
|
44978
|
-
},
|
|
44980
|
+
}, dq = { class: "channel-archive-toolbar" }, fq = {
|
|
44979
44981
|
key: 0,
|
|
44980
44982
|
class: "channel-archive-confirm channel-archive-bulk",
|
|
44981
44983
|
role: "alert"
|
|
44982
|
-
},
|
|
44984
|
+
}, pq = {
|
|
44983
44985
|
key: 1,
|
|
44984
44986
|
role: "alert",
|
|
44985
44987
|
class: "channel-directory-error"
|
|
44986
|
-
},
|
|
44988
|
+
}, mq = { class: "channel-archive-results" }, hq = {
|
|
44987
44989
|
key: 0,
|
|
44988
44990
|
class: "channel-archive-list",
|
|
44989
44991
|
"aria-label": "已存档频道列表"
|
|
44990
|
-
},
|
|
44992
|
+
}, gq = { class: "channel-archive-row" }, _q = { class: "channel-archive-info" }, vq = [
|
|
44991
44993
|
"title",
|
|
44992
44994
|
"disabled",
|
|
44993
44995
|
"onClick"
|
|
44994
|
-
],
|
|
44996
|
+
], yq = { key: 0 }, bq = ["datetime"], xq = { class: "channel-archive-actions" }, Sq = {
|
|
44995
44997
|
key: 0,
|
|
44996
44998
|
class: "channel-archive-confirm channel-archive-bulk",
|
|
44997
44999
|
role: "alert"
|
|
44998
|
-
},
|
|
45000
|
+
}, Cq = {
|
|
44999
45001
|
key: 1,
|
|
45000
45002
|
class: "channel-archive-empty"
|
|
45001
|
-
},
|
|
45003
|
+
}, wq = { class: "fine-print" }, Tq = { class: "dialog-actions" }, Eq = { class: "dialog-actions" }, Dq = { class: "channel-management-target" }, Oq = {
|
|
45002
45004
|
key: 0,
|
|
45003
45005
|
class: "fine-print"
|
|
45004
|
-
},
|
|
45006
|
+
}, kq = {
|
|
45005
45007
|
key: 1,
|
|
45006
45008
|
class: "fine-print"
|
|
45007
|
-
},
|
|
45009
|
+
}, Aq = {
|
|
45008
45010
|
key: 2,
|
|
45009
45011
|
class: "fine-print"
|
|
45010
|
-
},
|
|
45012
|
+
}, jq = { class: "dialog-actions" }, Mq = { key: 4 }, Nq = { class: "theme-choices" }, Pq = ["aria-pressed", "onClick"], Fq = { class: "theme-check" }, Iq = { class: "channel-reading-setting" }, Lq = {
|
|
45011
45013
|
class: "channel-reading-options",
|
|
45012
45014
|
role: "group",
|
|
45013
45015
|
"aria-labelledby": "channel-reading-label"
|
|
45014
|
-
},
|
|
45016
|
+
}, Rq = { class: "form-two-columns" }, zq = { class: "advanced-content" }, Bq = { class: "form-two-columns" }, Vq = {
|
|
45015
45017
|
key: 0,
|
|
45016
45018
|
class: "fine-print"
|
|
45017
|
-
},
|
|
45019
|
+
}, Hq = { class: "advanced-content" }, Uq = { class: "expert-fields" }, Wq = { class: "dialog-actions" }, Gq = { class: "dialog-actions" }, Kq = {
|
|
45018
45020
|
key: 8,
|
|
45019
45021
|
class: "original-message"
|
|
45020
|
-
},
|
|
45022
|
+
}, qq = {
|
|
45021
45023
|
key: 0,
|
|
45022
45024
|
role: "alert"
|
|
45023
|
-
},
|
|
45025
|
+
}, Jq = { class: "original-meta" }, Yq = { class: "fine-print" }, Xq = {
|
|
45024
45026
|
key: 0,
|
|
45025
45027
|
class: "channel-answer-summary"
|
|
45026
|
-
},
|
|
45028
|
+
}, Zq = { class: "message-prose" }, Qq = { class: "message-prose" }, $q = ["innerHTML"], eJ = {
|
|
45027
45029
|
key: 2,
|
|
45028
45030
|
class: "fine-print"
|
|
45029
|
-
},
|
|
45031
|
+
}, tJ = "topic-expert-modes", nJ = {
|
|
45030
45032
|
__name: "WorkspaceDialogs",
|
|
45031
45033
|
props: /*@__PURE__*/ Fa({
|
|
45032
45034
|
detailId: {
|
|
@@ -45297,8 +45299,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45297
45299
|
},
|
|
45298
45300
|
"onAfter:leave": be
|
|
45299
45301
|
}, {
|
|
45300
|
-
body: L(() => [i.value === "archives" ? (U(), W("section",
|
|
45301
|
-
K("div",
|
|
45302
|
+
body: L(() => [i.value === "archives" ? (U(), W("section", uq, [
|
|
45303
|
+
K("div", dq, [
|
|
45302
45304
|
q(b, {
|
|
45303
45305
|
modelValue: m.value,
|
|
45304
45306
|
"onUpdate:modelValue": s[0] ||= (e) => m.value = e,
|
|
@@ -45327,7 +45329,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45327
45329
|
}
|
|
45328
45330
|
}, null, 8, ["label", "disabled"])
|
|
45329
45331
|
]),
|
|
45330
|
-
y.value && _.value.length ? (U(), W("div",
|
|
45332
|
+
y.value && _.value.length ? (U(), W("div", fq, [
|
|
45331
45333
|
K("span", null, "将永久删除当前列表中的 " + P(_.value.length) + " 个频道及其全部记录,无法撤销。", 1),
|
|
45332
45334
|
q(ce, {
|
|
45333
45335
|
label: "取消",
|
|
@@ -45343,20 +45345,20 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45343
45345
|
onClick: E
|
|
45344
45346
|
})
|
|
45345
45347
|
])) : Y("", !0),
|
|
45346
|
-
I(a).directory_error ? (U(), W("p",
|
|
45347
|
-
K("div",
|
|
45348
|
+
I(a).directory_error ? (U(), W("p", pq, P(I(a).directory_error), 1)) : Y("", !0),
|
|
45349
|
+
K("div", mq, [_.value.length ? (U(), W("ul", hq, [(U(!0), W(H, null, B(_.value, (e) => (U(), W("li", {
|
|
45348
45350
|
key: e.id,
|
|
45349
45351
|
class: "channel-archive-item"
|
|
45350
|
-
}, [K("div",
|
|
45352
|
+
}, [K("div", gq, [K("div", _q, [K("button", {
|
|
45351
45353
|
class: "channel-archive-title",
|
|
45352
45354
|
title: e.title,
|
|
45353
45355
|
disabled: !!I(l),
|
|
45354
45356
|
onClick: (t) => w(e)
|
|
45355
|
-
}, P(e.title), 9,
|
|
45357
|
+
}, P(e.title), 9, vq), K("small", null, [e.created_at ? (U(), W("span", yq, [
|
|
45356
45358
|
s[25] ||= J("创建于 ", -1),
|
|
45357
|
-
K("time", { datetime: e.created_at }, P(S(e.created_at)), 9,
|
|
45359
|
+
K("time", { datetime: e.created_at }, P(S(e.created_at)), 9, bq),
|
|
45358
45360
|
s[26] ||= J(" · ", -1)
|
|
45359
|
-
])) : Y("", !0), J(P(e.message_count) + " 条消息", 1)])]), K("div",
|
|
45361
|
+
])) : Y("", !0), J(P(e.message_count) + " 条消息", 1)])]), K("div", xq, [q(ce, {
|
|
45360
45362
|
"aria-label": `彻底删除 ${e.title}`,
|
|
45361
45363
|
title: "彻底删除",
|
|
45362
45364
|
icon: "i-lucide-trash-2",
|
|
@@ -45388,7 +45390,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45388
45390
|
"aria-label",
|
|
45389
45391
|
"disabled",
|
|
45390
45392
|
"onClick"
|
|
45391
|
-
])])]), v.value === e.id ? (U(), W("div",
|
|
45393
|
+
])])]), v.value === e.id ? (U(), W("div", Sq, [
|
|
45392
45394
|
K("span", null, "永久删除「" + P(e.title) + "」及其全部记录,无法撤销。", 1),
|
|
45393
45395
|
q(ce, {
|
|
45394
45396
|
label: "取消",
|
|
@@ -45404,12 +45406,12 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45404
45406
|
disabled: C(e),
|
|
45405
45407
|
onClick: T
|
|
45406
45408
|
}, null, 8, ["disabled"])
|
|
45407
|
-
])) : Y("", !0)]))), 128))])) : (U(), W("p",
|
|
45409
|
+
])) : Y("", !0)]))), 128))])) : (U(), W("p", Cq, P(p.value.length ? "没有匹配的存档频道" : "暂无已存档频道"), 1))])
|
|
45408
45410
|
])) : i.value === "delete-folder" ? (U(), W("form", {
|
|
45409
45411
|
key: 1,
|
|
45410
45412
|
class: "dialog-form",
|
|
45411
45413
|
onSubmit: uu(ne, ["prevent"])
|
|
45412
|
-
}, [K("p",
|
|
45414
|
+
}, [K("p", wq, "移除「" + P(e.targetFolder?.name) + "」后,频道不再归属文件夹,所有消息和存档状态都会保留。", 1), K("div", Tq, [q(ce, {
|
|
45413
45415
|
label: "取消",
|
|
45414
45416
|
color: "neutral",
|
|
45415
45417
|
variant: "ghost",
|
|
@@ -45440,7 +45442,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45440
45442
|
"modelValue",
|
|
45441
45443
|
"aria-label",
|
|
45442
45444
|
"readonly"
|
|
45443
|
-
]), K("div",
|
|
45445
|
+
]), K("div", Eq, [q(ce, {
|
|
45444
45446
|
label: "取消",
|
|
45445
45447
|
color: "neutral",
|
|
45446
45448
|
variant: "ghost",
|
|
@@ -45465,10 +45467,10 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45465
45467
|
class: "dialog-form",
|
|
45466
45468
|
onSubmit: uu(te, ["prevent"])
|
|
45467
45469
|
}, [
|
|
45468
|
-
K("p",
|
|
45469
|
-
i.value === "archive" ? (U(), W("p",
|
|
45470
|
-
i.value === "restore" ? (U(), W("p",
|
|
45471
|
-
i.value === "delete" ? (U(), W("p",
|
|
45470
|
+
K("p", Dq, [J(P(e.targetRoom?.title) + " ", 1), K("span", null, "· " + P(e.targetRoom?.message_count) + " 条消息", 1)]),
|
|
45471
|
+
i.value === "archive" ? (U(), W("p", Oq, "存档后可在侧栏「已存档」中查阅与恢复。已有发言安排会保留;专家需在下次检查时停止自己的定时任务。")) : Y("", !0),
|
|
45472
|
+
i.value === "restore" ? (U(), W("p", kq, "恢复不会自动继续讨论;需要继续时,在主持设置中调整阶段。")) : Y("", !0),
|
|
45473
|
+
i.value === "delete" ? (U(), W("p", Aq, "消息、共识和发言安排将一起删除,无法撤销。")) : Y("", !0),
|
|
45472
45474
|
i.value === "rename" ? (U(), G(ue, {
|
|
45473
45475
|
key: 3,
|
|
45474
45476
|
label: "频道名称",
|
|
@@ -45485,7 +45487,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45485
45487
|
}, null, 8, ["modelValue"])]),
|
|
45486
45488
|
_: 1
|
|
45487
45489
|
})) : Y("", !0),
|
|
45488
|
-
K("div",
|
|
45490
|
+
K("div", jq, [q(ce, {
|
|
45489
45491
|
label: "取消",
|
|
45490
45492
|
color: "neutral",
|
|
45491
45493
|
variant: "ghost",
|
|
@@ -45502,7 +45504,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45502
45504
|
"loading",
|
|
45503
45505
|
"disabled"
|
|
45504
45506
|
])])
|
|
45505
|
-
], 32)) : i.value === "settings" ? (U(), W("div",
|
|
45507
|
+
], 32)) : i.value === "settings" ? (U(), W("div", Mq, [K("div", Nq, [(U(), W(H, null, B(he, (e) => K("button", {
|
|
45506
45508
|
key: e.value,
|
|
45507
45509
|
class: M({ chosen: I(a).theme === e.value }),
|
|
45508
45510
|
"aria-pressed": I(a).theme === e.value,
|
|
@@ -45517,11 +45519,11 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45517
45519
|
K("b")
|
|
45518
45520
|
], -1)]], 2),
|
|
45519
45521
|
K("span", null, [K("strong", null, P(e.title), 1), K("small", null, P(e.description), 1)]),
|
|
45520
|
-
K("span",
|
|
45522
|
+
K("span", Fq, [I(a).theme === e.value ? (U(), G(de, {
|
|
45521
45523
|
key: 0,
|
|
45522
45524
|
name: "i-lucide-check"
|
|
45523
45525
|
})) : Y("", !0)])
|
|
45524
|
-
], 10,
|
|
45526
|
+
], 10, Pq)), 64))]), K("section", Iq, [s[28] ||= K("h3", { id: "channel-reading-label" }, "对话宽度", -1), K("div", Lq, [(U(!0), W(H, null, B(e.readingOptions, (e) => (U(), G(ce, {
|
|
45525
45527
|
key: e.value,
|
|
45526
45528
|
label: e.label,
|
|
45527
45529
|
color: "neutral",
|
|
@@ -45534,7 +45536,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45534
45536
|
"class",
|
|
45535
45537
|
"aria-pressed",
|
|
45536
45538
|
"onClick"
|
|
45537
|
-
]))), 128))])])])) : i.value === "create" ? (U(), G(
|
|
45539
|
+
]))), 128))])])])) : i.value === "create" ? (U(), G(lq, {
|
|
45538
45540
|
key: 5,
|
|
45539
45541
|
"target-folder": e.targetFolder,
|
|
45540
45542
|
onSubmit: N,
|
|
@@ -45569,7 +45571,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45569
45571
|
}, null, 8, ["model-value"])]),
|
|
45570
45572
|
_: 1
|
|
45571
45573
|
}),
|
|
45572
|
-
K("div",
|
|
45574
|
+
K("div", Rq, [q(ue, { label: "主持人" }, {
|
|
45573
45575
|
default: L(() => [q(x, {
|
|
45574
45576
|
"model-value": I(a).fields[ge("host")],
|
|
45575
45577
|
items: I(ie),
|
|
@@ -45603,9 +45605,9 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45603
45605
|
}, null, 8, ["model-value"])]),
|
|
45604
45606
|
_: 1
|
|
45605
45607
|
})) : Y("", !0),
|
|
45606
|
-
K("section",
|
|
45608
|
+
K("section", zq, [
|
|
45607
45609
|
s[29] ||= K("h3", null, "讨论上限", -1),
|
|
45608
|
-
K("div",
|
|
45610
|
+
K("div", Bq, [
|
|
45609
45611
|
(U(!0), W(H, null, B(le.value, (e) => (U(), G(ue, {
|
|
45610
45612
|
key: e.key,
|
|
45611
45613
|
label: e.label
|
|
@@ -45666,14 +45668,14 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45666
45668
|
})) : Y("", !0)
|
|
45667
45669
|
]),
|
|
45668
45670
|
s[30] ||= K("p", { class: "fine-print" }, "轮次、总时长、单次执行留空或 0 表示不限。一轮指每位专家各完成一次观点;首次进入讨论阶段或创建安排后计时,暂停期间不计时。收束预留计入总时长。", -1),
|
|
45669
|
-
se.value ? (U(), W("p",
|
|
45671
|
+
se.value ? (U(), W("p", Vq, "修改上限前,请先把阶段保存为“已暂停”。")) : Y("", !0)
|
|
45670
45672
|
]),
|
|
45671
45673
|
q(Se, {
|
|
45672
45674
|
open: oe.value,
|
|
45673
45675
|
"onUpdate:open": s[19] ||= (e) => oe.value = e,
|
|
45674
45676
|
class: "advanced-fields"
|
|
45675
45677
|
}, {
|
|
45676
|
-
content: L(() => [K("div",
|
|
45678
|
+
content: L(() => [K("div", Hq, [
|
|
45677
45679
|
(U(), W(H, null, B([
|
|
45678
45680
|
{
|
|
45679
45681
|
key: "user_request",
|
|
@@ -45700,11 +45702,11 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45700
45702
|
}, null, 8, ["model-value", "onUpdate:modelValue"])]),
|
|
45701
45703
|
_: 2
|
|
45702
45704
|
}, 1032, ["label"])), 64)),
|
|
45703
|
-
K("div",
|
|
45704
|
-
"model-value": I(a).experts[
|
|
45705
|
+
K("div", Uq, [(U(!0), W(H, null, B(I(re), (e) => (U(), W("div", { key: e }, [K("label", null, P(e), 1), q(x, {
|
|
45706
|
+
"model-value": I(a).experts[tJ]?.[e] || "none",
|
|
45705
45707
|
items: A,
|
|
45706
45708
|
"aria-label": `${e} 参与方式`,
|
|
45707
|
-
"onUpdate:modelValue": (t) => I(o).write_expert(
|
|
45709
|
+
"onUpdate:modelValue": (t) => I(o).write_expert(tJ, e, t === "none" ? "" : t)
|
|
45708
45710
|
}, null, 8, [
|
|
45709
45711
|
"model-value",
|
|
45710
45712
|
"aria-label",
|
|
@@ -45722,7 +45724,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45722
45724
|
}, null, 8, ["trailing-icon"])]),
|
|
45723
45725
|
_: 1
|
|
45724
45726
|
}, 8, ["open"]),
|
|
45725
|
-
K("div",
|
|
45727
|
+
K("div", Wq, [q(ce, {
|
|
45726
45728
|
label: "取消",
|
|
45727
45729
|
color: "neutral",
|
|
45728
45730
|
variant: "ghost",
|
|
@@ -45766,7 +45768,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45766
45768
|
_: 1
|
|
45767
45769
|
}),
|
|
45768
45770
|
s[32] ||= K("p", { class: "fine-print" }, "创建后为待通知状态;由主持人实际联系专家。", -1),
|
|
45769
|
-
K("div",
|
|
45771
|
+
K("div", Gq, [q(ce, {
|
|
45770
45772
|
label: "取消",
|
|
45771
45773
|
variant: "ghost",
|
|
45772
45774
|
color: "neutral",
|
|
@@ -45777,8 +45779,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45777
45779
|
label: "创建发言安排",
|
|
45778
45780
|
loading: I(l) === "schedule"
|
|
45779
45781
|
}, null, 8, ["loading"])])
|
|
45780
|
-
], 32)) : i.value === "message" ? (U(), W("div",
|
|
45781
|
-
K("div",
|
|
45782
|
+
], 32)) : i.value === "message" ? (U(), W("div", Kq, [fe.value ? (U(), W("p", qq, P(fe.value), 1)) : j.value ? (U(), W(H, { key: 1 }, [
|
|
45783
|
+
K("div", Jq, [
|
|
45782
45784
|
K("strong", null, P(I(o).display_name(j.value.author)), 1),
|
|
45783
45785
|
K("span", null, "#" + P(j.value.id), 1),
|
|
45784
45786
|
q(Ce, {
|
|
@@ -45789,14 +45791,14 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45789
45791
|
_: 1
|
|
45790
45792
|
})
|
|
45791
45793
|
]),
|
|
45792
|
-
K("p",
|
|
45793
|
-
j.value.summary ? (U(), W("section",
|
|
45794
|
-
K("p",
|
|
45794
|
+
K("p", Yq, P(I(o).provenance(j.value)) + " · " + P(new Date(j.value.created_at).toLocaleString("zh-CN")), 1),
|
|
45795
|
+
j.value.summary ? (U(), W("section", Xq, [K("small", null, "回答摘要 · " + P(I(o).display_name(j.value.summary_by)), 1), K("p", Zq, P(j.value.summary), 1)])) : Y("", !0),
|
|
45796
|
+
K("p", Qq, P(j.value.text), 1),
|
|
45795
45797
|
j.value.attachments?.length ? (U(), W("div", {
|
|
45796
45798
|
key: 1,
|
|
45797
45799
|
onClick: ye,
|
|
45798
45800
|
innerHTML: I(o).attachment_markup(j.value.attachments)
|
|
45799
|
-
}, null, 8,
|
|
45801
|
+
}, null, 8, $q)) : Y("", !0),
|
|
45800
45802
|
j.value.reply_to ? (U(), G(ce, {
|
|
45801
45803
|
key: 2,
|
|
45802
45804
|
label: `查看被回复的原文 #${j.value.reply_to}`,
|
|
@@ -45806,7 +45808,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45806
45808
|
class: "channel-surface-button",
|
|
45807
45809
|
onClick: xe
|
|
45808
45810
|
}, null, 8, ["label"])) : Y("", !0)
|
|
45809
|
-
], 64)) : (U(), W("p",
|
|
45811
|
+
], 64)) : (U(), W("p", eJ, "正在读取原文…"))])) : Y("", !0)]),
|
|
45810
45812
|
_: 1
|
|
45811
45813
|
}, 8, [
|
|
45812
45814
|
"open",
|
|
@@ -45816,7 +45818,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45816
45818
|
]);
|
|
45817
45819
|
};
|
|
45818
45820
|
}
|
|
45819
|
-
},
|
|
45821
|
+
}, rJ = {
|
|
45820
45822
|
__name: "ContextMenuContent",
|
|
45821
45823
|
props: {
|
|
45822
45824
|
items: {
|
|
@@ -46111,7 +46113,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46111
46113
|
"disabled",
|
|
46112
46114
|
"text-value",
|
|
46113
46115
|
"class"
|
|
46114
|
-
]), q(
|
|
46116
|
+
]), q(rJ, X({
|
|
46115
46117
|
sub: "",
|
|
46116
46118
|
class: r.ui?.content,
|
|
46117
46119
|
ui: e.ui,
|
|
@@ -46222,7 +46224,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46222
46224
|
_: 3
|
|
46223
46225
|
}, 16)], 64));
|
|
46224
46226
|
}
|
|
46225
|
-
},
|
|
46227
|
+
}, iJ = {
|
|
46226
46228
|
slots: {
|
|
46227
46229
|
content: "min-w-32 max-h-(--reka-context-menu-content-available-height) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)] origin-(--reka-context-menu-content-transform-origin) flex flex-col",
|
|
46228
46230
|
viewport: "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
|
|
@@ -46410,7 +46412,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46410
46412
|
}
|
|
46411
46413
|
],
|
|
46412
46414
|
defaultVariants: { size: "md" }
|
|
46413
|
-
},
|
|
46415
|
+
}, aJ = {
|
|
46414
46416
|
__name: "ContextMenu",
|
|
46415
46417
|
props: {
|
|
46416
46418
|
size: {
|
|
@@ -46480,7 +46482,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46480
46482
|
emits: ["update:open"],
|
|
46481
46483
|
setup(e, { emit: t }) {
|
|
46482
46484
|
let n = e, r = t, i = Aa(), a = cE("contextMenu", n), o = Sm(), s = lE(am(a, "modal"), r), c = /* @__PURE__ */ Sn(() => a.content), l = () => Bm(i, ["default"]), u = Z(() => Rk({
|
|
46483
|
-
extend:
|
|
46485
|
+
extend: iJ,
|
|
46484
46486
|
...o.ui?.contextMenu || {}
|
|
46485
46487
|
})({ size: a.size }));
|
|
46486
46488
|
return (e, t) => (U(), G(I(GS), N(Ss(I(s))), {
|
|
@@ -46492,7 +46494,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46492
46494
|
}, {
|
|
46493
46495
|
default: L(() => [V(e.$slots, "default")]),
|
|
46494
46496
|
_: 3
|
|
46495
|
-
}, 8, ["disabled", "class"])) : Y("", !0), q(
|
|
46497
|
+
}, 8, ["disabled", "class"])) : Y("", !0), q(rJ, X({
|
|
46496
46498
|
class: u.value.content({ class: [!i.default && I(a).class, I(a).ui?.content] }),
|
|
46497
46499
|
ui: u.value,
|
|
46498
46500
|
"ui-override": I(a).ui
|
|
@@ -46522,43 +46524,43 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46522
46524
|
_: 3
|
|
46523
46525
|
}, 16));
|
|
46524
46526
|
}
|
|
46525
|
-
},
|
|
46527
|
+
}, oJ = { class: "channel-directory-manager" }, sJ = { class: "channel-directory-heading" }, cJ = ["aria-expanded"], lJ = { class: "channel-directory-actions" }, uJ = {
|
|
46526
46528
|
"aria-label": "讨论频道列表",
|
|
46527
46529
|
class: "channel-room-list",
|
|
46528
46530
|
"data-room-directory": ""
|
|
46529
|
-
},
|
|
46531
|
+
}, dJ = ["data-room-folder", "data-drag-folder"], fJ = {
|
|
46530
46532
|
key: 0,
|
|
46531
46533
|
class: "channel-folder-row"
|
|
46532
|
-
},
|
|
46534
|
+
}, pJ = [
|
|
46533
46535
|
"disabled",
|
|
46534
46536
|
"aria-label",
|
|
46535
46537
|
"aria-expanded",
|
|
46536
46538
|
"onKeydown",
|
|
46537
46539
|
"onClick"
|
|
46538
|
-
],
|
|
46540
|
+
], mJ = { class: "channel-folder-name" }, hJ = { class: "channel-folder-actions" }, gJ = {
|
|
46539
46541
|
class: "channel-directory-count",
|
|
46540
46542
|
"aria-hidden": "true"
|
|
46541
|
-
},
|
|
46543
|
+
}, _J = ["data-drop-folder"], vJ = {
|
|
46542
46544
|
key: 0,
|
|
46543
46545
|
class: "channel-directory-empty",
|
|
46544
46546
|
role: "status"
|
|
46545
|
-
},
|
|
46547
|
+
}, yJ = ["data-drag-room"], bJ = [
|
|
46546
46548
|
"aria-label",
|
|
46547
46549
|
"disabled",
|
|
46548
46550
|
"onKeydown"
|
|
46549
|
-
],
|
|
46551
|
+
], xJ = [
|
|
46550
46552
|
"title",
|
|
46551
46553
|
"aria-label",
|
|
46552
46554
|
"aria-current",
|
|
46553
46555
|
"onClick"
|
|
46554
|
-
],
|
|
46556
|
+
], SJ = { class: "channel-room-actions" }, CJ = {
|
|
46555
46557
|
key: 0,
|
|
46556
46558
|
class: "channel-directory-empty"
|
|
46557
|
-
},
|
|
46559
|
+
}, wJ = {
|
|
46558
46560
|
key: 0,
|
|
46559
46561
|
role: "alert",
|
|
46560
46562
|
class: "channel-directory-error"
|
|
46561
|
-
},
|
|
46563
|
+
}, TJ = {
|
|
46562
46564
|
__name: "ChannelDirectory",
|
|
46563
46565
|
emits: [
|
|
46564
46566
|
"select",
|
|
@@ -46735,8 +46737,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46735
46737
|
];
|
|
46736
46738
|
}
|
|
46737
46739
|
return (e, t) => {
|
|
46738
|
-
let u = uA, h = zk, v = EV, y = VV, b =
|
|
46739
|
-
return U(), W("div",
|
|
46740
|
+
let u = uA, h = zk, v = EV, y = VV, b = aJ;
|
|
46741
|
+
return U(), W("div", oJ, [
|
|
46740
46742
|
q(u, {
|
|
46741
46743
|
label: "新建对话",
|
|
46742
46744
|
icon: "i-lucide-square-pen",
|
|
@@ -46746,12 +46748,12 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46746
46748
|
disabled: I(r).directory_pending.includes("create-room"),
|
|
46747
46749
|
onClick: t[0] ||= (e) => n("create", null)
|
|
46748
46750
|
}, null, 8, ["disabled"]),
|
|
46749
|
-
K("div",
|
|
46751
|
+
K("div", sJ, [K("button", {
|
|
46750
46752
|
type: "button",
|
|
46751
46753
|
class: "channel-section-toggle",
|
|
46752
46754
|
"aria-expanded": f.value,
|
|
46753
46755
|
onClick: t[1] ||= (e) => f.value = !f.value
|
|
46754
|
-
}, [q(h, { name: f.value ? "i-lucide-chevron-down" : "i-lucide-chevron-right" }, null, 8, ["name"]), t[7] ||= J("讨论频道", -1)], 8,
|
|
46756
|
+
}, [q(h, { name: f.value ? "i-lucide-chevron-down" : "i-lucide-chevron-right" }, null, 8, ["name"]), t[7] ||= J("讨论频道", -1)], 8, cJ), K("div", lJ, [q(v, {
|
|
46755
46757
|
items: d.value,
|
|
46756
46758
|
content: {
|
|
46757
46759
|
align: "end",
|
|
@@ -46780,12 +46782,12 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46780
46782
|
}, null, 8, ["disabled"])]),
|
|
46781
46783
|
_: 1
|
|
46782
46784
|
})])]),
|
|
46783
|
-
vr(K("nav",
|
|
46785
|
+
vr(K("nav", uJ, [(U(!0), W(H, null, B(l.value, (e, s) => (U(), W("section", {
|
|
46784
46786
|
key: e.order_id,
|
|
46785
46787
|
class: "channel-folder-section",
|
|
46786
46788
|
"data-room-folder": e.id,
|
|
46787
46789
|
"data-drag-folder": e.order_id
|
|
46788
|
-
}, [e.id ? (U(), W("div",
|
|
46790
|
+
}, [e.id ? (U(), W("div", fJ, [
|
|
46789
46791
|
K("button", {
|
|
46790
46792
|
class: "channel-folder-heading",
|
|
46791
46793
|
"data-drop-folder": "",
|
|
@@ -46807,9 +46809,9 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46807
46809
|
}, [
|
|
46808
46810
|
q(h, { name: p.value.has(e.id) ? "i-lucide-chevron-right" : "i-lucide-chevron-down" }, null, 8, ["name"]),
|
|
46809
46811
|
q(h, { name: "i-lucide-folder" }),
|
|
46810
|
-
K("span",
|
|
46811
|
-
], 40,
|
|
46812
|
-
K("div",
|
|
46812
|
+
K("span", mJ, P(e.name), 1)
|
|
46813
|
+
], 40, pJ),
|
|
46814
|
+
K("div", hJ, [q(v, {
|
|
46813
46815
|
items: m(e, s),
|
|
46814
46816
|
content: {
|
|
46815
46817
|
align: "start",
|
|
@@ -46843,12 +46845,12 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46843
46845
|
])]),
|
|
46844
46846
|
_: 2
|
|
46845
46847
|
}, 1032, ["text"])]),
|
|
46846
|
-
K("small",
|
|
46848
|
+
K("small", gJ, P(e.pending ? "保存中" : e.rooms.length), 1)
|
|
46847
46849
|
])) : Y("", !0), !e.id || !p.value.has(e.id) ? (U(), W("div", {
|
|
46848
46850
|
key: 1,
|
|
46849
46851
|
class: M(e.id ? "channel-folder-rooms" : "channel-root-rooms"),
|
|
46850
46852
|
"data-drop-folder": e.id ? void 0 : ""
|
|
46851
|
-
}, [I(r).creating_room && (I(r).creating_room.folder_id || "") === e.id ? (U(), W("p",
|
|
46853
|
+
}, [I(r).creating_room && (I(r).creating_room.folder_id || "") === e.id ? (U(), W("p", vJ, "正在创建:" + P(I(r).creating_room.title), 1)) : Y("", !0), (U(!0), W(H, null, B(e.rooms, (s, c) => (U(), G(b, {
|
|
46852
46854
|
key: s.id,
|
|
46853
46855
|
items: _(s, c, s.folder_id || null, e.rooms.length),
|
|
46854
46856
|
ui: { content: "channel-menu channel-topic-menu" }
|
|
@@ -46873,7 +46875,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46873
46875
|
direction: 1,
|
|
46874
46876
|
folder_id: s.folder_id || null
|
|
46875
46877
|
}), ["prevent"]), ["down"])]
|
|
46876
|
-
}, [q(h, { name: "i-lucide-grip-vertical" })], 40,
|
|
46878
|
+
}, [q(h, { name: "i-lucide-grip-vertical" })], 40, bJ),
|
|
46877
46879
|
K("button", {
|
|
46878
46880
|
class: "channel-room-select",
|
|
46879
46881
|
"data-drag-title": "",
|
|
@@ -46882,8 +46884,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46882
46884
|
"aria-current": s.id === I(r).room?.id ? "page" : void 0,
|
|
46883
46885
|
onPointerdown: t[5] ||= (e) => !I(o) && I(i).start_drag(e),
|
|
46884
46886
|
onClick: (e) => n("select", s.id)
|
|
46885
|
-
}, [K("span", null, P(s.title), 1)], 40,
|
|
46886
|
-
K("div",
|
|
46887
|
+
}, [K("span", null, P(s.title), 1)], 40, xJ),
|
|
46888
|
+
K("div", SJ, [q(y, {
|
|
46887
46889
|
text: s.archived ? "恢复频道" : "存档频道",
|
|
46888
46890
|
ui: { content: "channel-topic-tooltip" }
|
|
46889
46891
|
}, {
|
|
@@ -46924,9 +46926,9 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46924
46926
|
}, null, 8, ["aria-label"])]),
|
|
46925
46927
|
_: 2
|
|
46926
46928
|
}, 1032, ["items"])])
|
|
46927
|
-
], 10,
|
|
46929
|
+
], 10, yJ)]),
|
|
46928
46930
|
_: 2
|
|
46929
|
-
}, 1032, ["items"]))), 128))], 10,
|
|
46931
|
+
}, 1032, ["items"]))), 128))], 10, _J)) : Y("", !0)], 8, dJ))), 128)), s.value.length ? Y("", !0) : (U(), W("p", CJ, "暂无讨论频道"))], 512), [[Vc, f.value]]),
|
|
46930
46932
|
vr(q(u, {
|
|
46931
46933
|
icon: "i-lucide-archive",
|
|
46932
46934
|
label: `已存档 · ${c.value}`,
|
|
@@ -46937,61 +46939,61 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46937
46939
|
"aria-haspopup": "dialog",
|
|
46938
46940
|
onClick: t[6] ||= (e) => n("archives")
|
|
46939
46941
|
}, null, 8, ["label"]), [[Vc, f.value]]),
|
|
46940
|
-
I(r).directory_error ? (U(), W("p",
|
|
46942
|
+
I(r).directory_error ? (U(), W("p", wJ, P(I(r).directory_error), 1)) : Y("", !0)
|
|
46941
46943
|
]);
|
|
46942
46944
|
};
|
|
46943
46945
|
}
|
|
46944
|
-
},
|
|
46946
|
+
}, EJ = {
|
|
46945
46947
|
key: 0,
|
|
46946
46948
|
class: "pb-header"
|
|
46947
|
-
},
|
|
46949
|
+
}, DJ = { class: "pb-mode" }, OJ = { class: "pb-status-line" }, kJ = { role: "status" }, AJ = {
|
|
46948
46950
|
key: 0,
|
|
46949
46951
|
class: "pb-mode"
|
|
46950
|
-
},
|
|
46952
|
+
}, jJ = {
|
|
46951
46953
|
key: 0,
|
|
46952
46954
|
class: "pb-status-detail"
|
|
46953
|
-
},
|
|
46955
|
+
}, MJ = {
|
|
46954
46956
|
key: 1,
|
|
46955
46957
|
class: "pb-status-detail"
|
|
46956
|
-
},
|
|
46958
|
+
}, NJ = { class: "pb-error-detail" }, PJ = {
|
|
46957
46959
|
key: 2,
|
|
46958
46960
|
class: "pb-meters"
|
|
46959
|
-
},
|
|
46961
|
+
}, FJ = { class: "pb-meter-label" }, IJ = {
|
|
46960
46962
|
key: 0,
|
|
46961
46963
|
class: "pb-bar"
|
|
46962
|
-
},
|
|
46964
|
+
}, LJ = {
|
|
46963
46965
|
key: 1,
|
|
46964
46966
|
class: "pb-section",
|
|
46965
46967
|
"aria-label": "当前焦点"
|
|
46966
|
-
},
|
|
46968
|
+
}, RJ = {
|
|
46967
46969
|
class: "pb-section",
|
|
46968
46970
|
"aria-label": "参与者"
|
|
46969
|
-
},
|
|
46971
|
+
}, zJ = {
|
|
46970
46972
|
key: 0,
|
|
46971
46973
|
class: "pb-status-detail pb-held"
|
|
46972
|
-
},
|
|
46974
|
+
}, BJ = { class: "pb-members" }, VJ = { class: "pb-member-body" }, HJ = { class: "pb-member-name" }, UJ = {
|
|
46973
46975
|
class: "pb-member-model",
|
|
46974
46976
|
title: "本场启动配置;默认模型与默认强度由对应软件决定"
|
|
46975
|
-
},
|
|
46977
|
+
}, WJ = { key: 0 }, GJ = {
|
|
46976
46978
|
key: 2,
|
|
46977
46979
|
class: "pb-actions",
|
|
46978
46980
|
"aria-label": "操作"
|
|
46979
|
-
},
|
|
46981
|
+
}, KJ = {
|
|
46980
46982
|
key: 3,
|
|
46981
46983
|
class: "pb-section",
|
|
46982
46984
|
"aria-label": "阶段耗时"
|
|
46983
|
-
},
|
|
46985
|
+
}, qJ = { class: "pb-timing-heading" }, JJ = ["aria-label"], YJ = { class: "pb-timing-totals" }, XJ = ["title"], ZJ = { class: "pb-timings" }, QJ = { class: "pb-timing-who" }, $J = { class: "pb-timing-stages" }, eY = ["title"], tY = {
|
|
46984
46986
|
key: 0,
|
|
46985
46987
|
class: "pb-note"
|
|
46986
|
-
},
|
|
46988
|
+
}, nY = { class: "pb-connection" }, rY = { class: "fine-print" }, iY = {
|
|
46987
46989
|
key: 0,
|
|
46988
46990
|
role: "status",
|
|
46989
46991
|
class: "fine-print"
|
|
46990
|
-
},
|
|
46992
|
+
}, aY = {
|
|
46991
46993
|
key: 2,
|
|
46992
46994
|
role: "alert",
|
|
46993
46995
|
class: "fine-print"
|
|
46994
|
-
},
|
|
46996
|
+
}, oY = { key: 2 }, sY = { class: "progress-ending" }, cY = ["disabled"], lY = { key: 0 }, uY = ["disabled"], dY = 90, fY = 100, pY = /*#__PURE__*/ nH({
|
|
46995
46997
|
__name: "ProgressBoard",
|
|
46996
46998
|
props: { docked: {
|
|
46997
46999
|
type: Boolean,
|
|
@@ -47028,7 +47030,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47028
47030
|
"initial",
|
|
47029
47031
|
"discussing",
|
|
47030
47032
|
"reviewing"
|
|
47031
|
-
].includes(m.value.phase) && !m.value.archived), w = Z(() => (C.value || m.value.phase === "paused") && !m.value.archived), T = Z(() => C.value || S.value || w.value), E = Z(() => !y.value && m.value.phase !== "preparing" && !m.value.archived && !h.value.closing), D = Z(() => [m.value.host, ...Object.keys(m.value.experts || {}).filter((e) => e !== m.value.host)].filter((e) => e && e !== "用户").map(A)), O = Z(() => D.value.find((e) => e.result)), ee = Z(() => v.value?.question || m.value.focus || m.value.goal || ""), te = Z(() => ee.value.length >
|
|
47033
|
+
].includes(m.value.phase) && !m.value.archived), w = Z(() => (C.value || m.value.phase === "paused") && !m.value.archived), T = Z(() => C.value || S.value || w.value), E = Z(() => !y.value && m.value.phase !== "preparing" && !m.value.archived && !h.value.closing), D = Z(() => [m.value.host, ...Object.keys(m.value.experts || {}).filter((e) => e !== m.value.host)].filter((e) => e && e !== "用户").map(A)), O = Z(() => D.value.find((e) => e.result)), ee = Z(() => v.value?.question || m.value.focus || m.value.goal || ""), te = Z(() => ee.value.length > dY), k = Z(() => g.value.timings || {
|
|
47032
47034
|
items: [],
|
|
47033
47035
|
totals: {},
|
|
47034
47036
|
count: 0
|
|
@@ -47062,7 +47064,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47062
47064
|
if (e.phase === "paused") {
|
|
47063
47065
|
let e = O.value;
|
|
47064
47066
|
if (e) {
|
|
47065
|
-
let t = e.result.startsWith(e.name) ? e.result : `${r.display_name(e.name)} 执行失败:${e.result}`, n = t.split("\n")[0], i = n.length >
|
|
47067
|
+
let t = e.result.startsWith(e.name) ? e.result : `${r.display_name(e.name)} 执行失败:${e.result}`, n = t.split("\n")[0], i = n.length > fY ? `${n.slice(0, fY)}…` : n;
|
|
47066
47068
|
return {
|
|
47067
47069
|
tone: "error",
|
|
47068
47070
|
title: "已暂停",
|
|
@@ -47156,24 +47158,24 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47156
47158
|
return (e, l) => {
|
|
47157
47159
|
let u = Gk, d = zk, O = uA, A = EV, se = pV, j = MV, pe = EG;
|
|
47158
47160
|
return U(), W("div", { class: M(["progress-board", { "is-docked": t.docked }]) }, [
|
|
47159
|
-
t.docked ? (U(), W("header",
|
|
47161
|
+
t.docked ? (U(), W("header", EJ, [l[11] ||= K("strong", null, "讨论进度", -1), K("span", DJ, P(_.value ? "全自动" : "手动"), 1)])) : Y("", !0),
|
|
47160
47162
|
K("section", {
|
|
47161
47163
|
class: M(["pb-status", `is-${ie.value.tone}`]),
|
|
47162
47164
|
"aria-label": "讨论状态"
|
|
47163
47165
|
}, [
|
|
47164
|
-
K("div",
|
|
47166
|
+
K("div", OJ, [
|
|
47165
47167
|
l[12] ||= K("span", { class: "pb-dot" }, null, -1),
|
|
47166
|
-
K("strong",
|
|
47167
|
-
t.docked ? Y("", !0) : (U(), W("span",
|
|
47168
|
+
K("strong", kJ, P(ie.value.title), 1),
|
|
47169
|
+
t.docked ? Y("", !0) : (U(), W("span", AJ, P(_.value ? "全自动" : "手动"), 1))
|
|
47168
47170
|
]),
|
|
47169
|
-
ie.value.detail ? (U(), W("p",
|
|
47170
|
-
ie.value.full_detail ? (U(), W("details",
|
|
47171
|
-
ae.value.length ? (U(), W("div",
|
|
47171
|
+
ie.value.detail ? (U(), W("p", jJ, P(ie.value.detail), 1)) : Y("", !0),
|
|
47172
|
+
ie.value.full_detail ? (U(), W("details", MJ, [l[13] ||= K("summary", null, "查看错误详情", -1), K("pre", NJ, P(ie.value.full_detail), 1)])) : Y("", !0),
|
|
47173
|
+
ae.value.length ? (U(), W("div", PJ, [(U(!0), W(H, null, B(ae.value, (e) => (U(), W("div", {
|
|
47172
47174
|
key: e.label,
|
|
47173
47175
|
class: "pb-meter"
|
|
47174
|
-
}, [K("div",
|
|
47176
|
+
}, [K("div", FJ, [K("span", null, P(e.label), 1), K("b", null, P(e.text), 1)]), e.ratio === null ? Y("", !0) : (U(), W("div", IJ, [K("i", { style: fe({ width: `${Math.min(100, Math.round(e.ratio * 100))}%` }) }, null, 4)]))]))), 128))])) : Y("", !0)
|
|
47175
47177
|
], 2),
|
|
47176
|
-
ee.value ? (U(), W("section",
|
|
47178
|
+
ee.value ? (U(), W("section", LJ, [
|
|
47177
47179
|
l[14] ||= K("h4", null, "当前焦点", -1),
|
|
47178
47180
|
K("p", { class: M(["pb-focus", { "is-expanded": s.value }]) }, P(ee.value), 3),
|
|
47179
47181
|
te.value ? (U(), W("button", {
|
|
@@ -47183,10 +47185,10 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47183
47185
|
onClick: l[0] ||= (e) => s.value = !s.value
|
|
47184
47186
|
}, P(s.value ? "收起" : "展开"), 1)) : Y("", !0)
|
|
47185
47187
|
])) : Y("", !0),
|
|
47186
|
-
K("section",
|
|
47188
|
+
K("section", RJ, [
|
|
47187
47189
|
l[16] ||= K("h4", null, "参与者", -1),
|
|
47188
|
-
m.value.held_since && v.value && !y.value ? (U(), W("p",
|
|
47189
|
-
K("ul",
|
|
47190
|
+
m.value.held_since && v.value && !y.value ? (U(), W("p", zJ, "用户有新操作," + P(I(r).display_name(v.value.expert)) + " 说完后交给主持人", 1)) : Y("", !0),
|
|
47191
|
+
K("ul", BJ, [(U(!0), W(H, null, B(D.value, (e) => (U(), W("li", {
|
|
47190
47192
|
key: e.name,
|
|
47191
47193
|
class: "pb-member"
|
|
47192
47194
|
}, [
|
|
@@ -47202,8 +47204,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47202
47204
|
"alt",
|
|
47203
47205
|
"class"
|
|
47204
47206
|
]),
|
|
47205
|
-
K("div",
|
|
47206
|
-
K("div",
|
|
47207
|
+
K("div", VJ, [
|
|
47208
|
+
K("div", HJ, [
|
|
47207
47209
|
J(P(I(r).display_name(e.name)), 1),
|
|
47208
47210
|
e.is_host ? (U(), G(d, {
|
|
47209
47211
|
key: 0,
|
|
@@ -47212,14 +47214,14 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47212
47214
|
})) : Y("", !0),
|
|
47213
47215
|
K("small", null, P(e.is_host ? `主持 · ${e.mode}` : e.mode), 1)
|
|
47214
47216
|
]),
|
|
47215
|
-
K("div",
|
|
47217
|
+
K("div", UJ, P(e.model), 1),
|
|
47216
47218
|
x.value ? Y("", !0) : (U(), W("div", {
|
|
47217
47219
|
key: 0,
|
|
47218
47220
|
class: M(["pb-member-status", `is-${e.tone}`])
|
|
47219
47221
|
}, [
|
|
47220
47222
|
l[15] ||= K("span", { class: "pb-dot" }, null, -1),
|
|
47221
47223
|
J(P(e.text), 1),
|
|
47222
|
-
e.failures ? (U(), W("small",
|
|
47224
|
+
e.failures ? (U(), W("small", WJ, " · 失败 " + P(e.failures) + " 次", 1)) : Y("", !0)
|
|
47223
47225
|
], 2))
|
|
47224
47226
|
]),
|
|
47225
47227
|
e.session ? (U(), G(A, {
|
|
@@ -47240,7 +47242,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47240
47242
|
}, 1032, ["items"])) : Y("", !0)
|
|
47241
47243
|
]))), 128))])
|
|
47242
47244
|
]),
|
|
47243
|
-
T.value ? (U(), W("section",
|
|
47245
|
+
T.value ? (U(), W("section", GJ, [
|
|
47244
47246
|
S.value ? (U(), G(O, {
|
|
47245
47247
|
key: 0,
|
|
47246
47248
|
icon: "i-lucide-rotate-ccw",
|
|
@@ -47289,8 +47291,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47289
47291
|
onClick: l[4] ||= (e) => o.value = !0
|
|
47290
47292
|
})) : Y("", !0)
|
|
47291
47293
|
])) : Y("", !0),
|
|
47292
|
-
_.value && k.value.count ? (U(), W("section",
|
|
47293
|
-
K("div",
|
|
47294
|
+
_.value && k.value.count ? (U(), W("section", KJ, [
|
|
47295
|
+
K("div", qJ, [l[17] ||= K("h4", null, "耗时", -1), K("small", null, "共 " + P(k.value.count) + " 次执行", 1)]),
|
|
47294
47296
|
K("div", {
|
|
47295
47297
|
class: "pb-timing-bar",
|
|
47296
47298
|
role: "img",
|
|
@@ -47299,18 +47301,18 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47299
47301
|
key: e.key,
|
|
47300
47302
|
class: M(`is-${e.key}`),
|
|
47301
47303
|
style: fe({ width: `${e.percent}%` })
|
|
47302
|
-
}, null, 6))), 128))], 8,
|
|
47303
|
-
K("dl",
|
|
47304
|
+
}, null, 6))), 128))], 8, JJ),
|
|
47305
|
+
K("dl", YJ, [(U(!0), W(H, null, B(le.value, (e) => (U(), W("div", {
|
|
47304
47306
|
key: e.key,
|
|
47305
47307
|
title: e.hint
|
|
47306
|
-
}, [K("dt", null, [K("span", { class: M(`pb-timing-dot is-${e.key}`) }, null, 2), J(P(e.label), 1)]), K("dd", null, [J(P(ue(e.seconds)), 1), K("small", null, P(e.percent) + "%", 1)])], 8,
|
|
47307
|
-
K("details",
|
|
47308
|
+
}, [K("dt", null, [K("span", { class: M(`pb-timing-dot is-${e.key}`) }, null, 2), J(P(e.label), 1)]), K("dd", null, [J(P(ue(e.seconds)), 1), K("small", null, P(e.percent) + "%", 1)])], 8, XJ))), 128))]),
|
|
47309
|
+
K("details", ZJ, [
|
|
47308
47310
|
l[18] ||= K("summary", null, "查看每次执行", -1),
|
|
47309
|
-
K("ol", null, [(U(!0), W(H, null, B(k.value.items, (e) => (U(), W("li", { key: e.id }, [K("span",
|
|
47311
|
+
K("ol", null, [(U(!0), W(H, null, B(k.value.items, (e) => (U(), W("li", { key: e.id }, [K("span", QJ, [J("#" + P(e.id) + " " + P(I(r).display_name(e.participant)), 1), K("small", null, P(e.role === "host" ? "主持" : "专家") + " · " + P(p[e.status] || e.status), 1)]), K("span", $J, [(U(), W(H, null, B(f, (t) => K("span", {
|
|
47310
47312
|
key: t.key,
|
|
47311
47313
|
title: t.hint
|
|
47312
|
-
}, P(t.label) + " " + P(ue(e[t.key])), 9,
|
|
47313
|
-
k.value.count > k.value.items.length ? (U(), W("p",
|
|
47314
|
+
}, P(t.label) + " " + P(ue(e[t.key])), 9, eY)), 64))])]))), 128))]),
|
|
47315
|
+
k.value.count > k.value.items.length ? (U(), W("p", tY, "只列出最近 " + P(k.value.items.length) + " 次,共 " + P(k.value.count) + " 次执行。", 1)) : Y("", !0)
|
|
47314
47316
|
])
|
|
47315
47317
|
])) : Y("", !0),
|
|
47316
47318
|
q(pe, {
|
|
@@ -47323,7 +47325,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47323
47325
|
body: "dialog-body"
|
|
47324
47326
|
}
|
|
47325
47327
|
}, {
|
|
47326
|
-
body: L(() => [K("div",
|
|
47328
|
+
body: L(() => [K("div", nY, [g.value.status === "running" ? (U(), W(H, { key: 0 }, [l[19] ||= K("p", null, "切换前需要暂停讨论,当前执行会停止,原发言安排保留。", -1), q(O, {
|
|
47327
47329
|
label: "暂停并读取配置",
|
|
47328
47330
|
icon: "i-lucide-pause",
|
|
47329
47331
|
class: "channel-primary-button",
|
|
@@ -47346,7 +47348,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47346
47348
|
}, null, 8, ["model-value", "disabled"])]),
|
|
47347
47349
|
_: 1
|
|
47348
47350
|
}),
|
|
47349
|
-
K("p",
|
|
47351
|
+
K("p", rY, P(re.value.adapter === "codex" ? "App 需保持运行,模型与权限沿用原聊天设置。" : "切回 CLI 前,需让 App 释放原聊天;仍被占用时无法执行。"), 1),
|
|
47350
47352
|
q(O, {
|
|
47351
47353
|
label: "保存接入方式",
|
|
47352
47354
|
class: "channel-primary-button",
|
|
@@ -47354,7 +47356,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47354
47356
|
disabled: !!I(a),
|
|
47355
47357
|
onClick: l[6] ||= (e) => I(i)("save_room_configuration")
|
|
47356
47358
|
}, null, 8, ["loading", "disabled"]),
|
|
47357
|
-
I(n).launch.repair?.notice ? (U(), W("p",
|
|
47359
|
+
I(n).launch.repair?.notice ? (U(), W("p", iY, P(I(n).launch.repair.notice), 1)) : Y("", !0)
|
|
47358
47360
|
], 64)) : (U(), G(O, {
|
|
47359
47361
|
key: 1,
|
|
47360
47362
|
label: "读取本场配置",
|
|
@@ -47362,7 +47364,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47362
47364
|
color: "neutral",
|
|
47363
47365
|
loading: !!I(a),
|
|
47364
47366
|
onClick: ce
|
|
47365
|
-
}, null, 8, ["loading"])), I(n).launch.repair_error ? (U(), W("p",
|
|
47367
|
+
}, null, 8, ["loading"])), I(n).launch.repair_error ? (U(), W("p", aY, P(I(n).launch.repair_error), 1)) : Y("", !0)], 64)) : (U(), W("p", oY, "本场状态已变化,请关闭后重新核对。"))])]),
|
|
47366
47368
|
_: 1
|
|
47367
47369
|
}, 8, ["open"]),
|
|
47368
47370
|
q(pe, {
|
|
@@ -47375,7 +47377,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47375
47377
|
body: "dialog-body"
|
|
47376
47378
|
}
|
|
47377
47379
|
}, {
|
|
47378
|
-
body: L(() => [K("div",
|
|
47380
|
+
body: L(() => [K("div", sY, [K("button", {
|
|
47379
47381
|
type: "button",
|
|
47380
47382
|
class: "progress-ending-option",
|
|
47381
47383
|
disabled: !E.value || !!I(a),
|
|
@@ -47383,19 +47385,19 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47383
47385
|
}, [
|
|
47384
47386
|
l[20] ||= K("strong", null, "请主持人收尾", -1),
|
|
47385
47387
|
K("span", null, "立即进入收束,由 " + P(I(r).display_name(m.value.host)) + " 在 " + P(h.value.summary_minutes || 5) + " 分钟收束预留内根据已有材料总结。", 1),
|
|
47386
|
-
E.value ? Y("", !0) : (U(), W("small",
|
|
47387
|
-
], 8,
|
|
47388
|
+
E.value ? Y("", !0) : (U(), W("small", lY, P(h.value.closing ? "已在收尾中。" : "仅进行中的讨论可以收尾;暂停后可先重启再收尾,或直接结束并保留记录。"), 1))
|
|
47389
|
+
], 8, cY), K("button", {
|
|
47388
47390
|
type: "button",
|
|
47389
47391
|
class: "progress-ending-option",
|
|
47390
47392
|
disabled: b.value || !!I(a),
|
|
47391
47393
|
onClick: l[9] ||= (e) => de("conclude_discussion")
|
|
47392
|
-
}, [...l[21] ||= [K("strong", null, "直接结束(不总结)", -1), K("span", null, "保留全部记录,阶段设为“已收束”,自动运行随之停止。", -1)]], 8,
|
|
47394
|
+
}, [...l[21] ||= [K("strong", null, "直接结束(不总结)", -1), K("span", null, "保留全部记录,阶段设为“已收束”,自动运行随之停止。", -1)]], 8, uY)])]),
|
|
47393
47395
|
_: 1
|
|
47394
47396
|
}, 8, ["open"])
|
|
47395
47397
|
], 2);
|
|
47396
47398
|
};
|
|
47397
47399
|
}
|
|
47398
|
-
}, [["__scopeId", "data-v-9928cf63"]]),
|
|
47400
|
+
}, [["__scopeId", "data-v-9928cf63"]]), mY = { class: "progress-panel-anchor" }, hY = ["aria-expanded", "aria-label"], gY = { class: "progress-chip-text" }, _Y = { class: "progress-chip-rounds" }, vY = {
|
|
47399
47401
|
__name: "ProgressPanel",
|
|
47400
47402
|
setup(e) {
|
|
47401
47403
|
let { view: t, bridge: n } = xr("discussion"), r = /* @__PURE__ */ F(!1), i = Z(() => t.value.room), a = Z(() => i.value.limits || {}), o = Z(() => {
|
|
@@ -47425,7 +47427,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47425
47427
|
}), s = Z(() => a.value.max_rounds ? `${a.value.completed_rounds || 0}/${a.value.max_rounds} 轮` : n.progress_round(i.value)), c = Z(() => `${o.value.title} · ${s.value}`);
|
|
47426
47428
|
return (e, t) => {
|
|
47427
47429
|
let n = VV, a = dV;
|
|
47428
|
-
return U(), W("div",
|
|
47430
|
+
return U(), W("div", mY, [q(n, { text: "查看讨论进度" }, {
|
|
47429
47431
|
default: L(() => [K("button", {
|
|
47430
47432
|
type: "button",
|
|
47431
47433
|
class: M(["progress-chip", `is-${o.value.tone}`]),
|
|
@@ -47433,7 +47435,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47433
47435
|
"aria-expanded": r.value,
|
|
47434
47436
|
"aria-label": `查看讨论进度:${c.value}`,
|
|
47435
47437
|
onClick: t[0] ||= (e) => r.value = !0
|
|
47436
|
-
}, [t[2] ||= K("span", { class: "progress-dot" }, null, -1), K("span",
|
|
47438
|
+
}, [t[2] ||= K("span", { class: "progress-dot" }, null, -1), K("span", gY, [J(P(o.value.title), 1), K("span", _Y, " · " + P(s.value), 1)])], 10, hY)]),
|
|
47437
47439
|
_: 1
|
|
47438
47440
|
}), q(a, {
|
|
47439
47441
|
open: r.value,
|
|
@@ -47446,98 +47448,98 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47446
47448
|
body: "progress-drawer-body"
|
|
47447
47449
|
}
|
|
47448
47450
|
}, {
|
|
47449
|
-
body: L(() => [q(
|
|
47451
|
+
body: L(() => [q(pY)]),
|
|
47450
47452
|
_: 1
|
|
47451
47453
|
}, 8, ["open", "description"])]);
|
|
47452
47454
|
};
|
|
47453
47455
|
}
|
|
47454
|
-
},
|
|
47456
|
+
}, yY = {
|
|
47455
47457
|
id: "channel-sidebar",
|
|
47456
47458
|
class: "channel-sidebar",
|
|
47457
47459
|
"aria-label": "频道导航"
|
|
47458
|
-
},
|
|
47460
|
+
}, bY = { class: "channel-workspace-heading" }, xY = { class: "channel-brand-icon" }, SY = { class: "channel-sidebar-content" }, CY = { class: "channel-directory-heading channel-tools-heading" }, wY = ["aria-expanded"], TY = { class: "channel-sidebar-footer" }, EY = { class: "channel-self" }, DY = { class: "channel-connection" }, OY = [
|
|
47459
47461
|
"aria-valuemax",
|
|
47460
47462
|
"aria-valuenow",
|
|
47461
47463
|
"aria-valuetext"
|
|
47462
|
-
],
|
|
47464
|
+
], kY = { class: "channel-main" }, AY = { class: "channel-header" }, jY = { class: "channel-title-icon" }, MY = { class: "channel-title" }, NY = { class: "channel-title-copy" }, PY = ["title"], FY = ["title"], IY = {
|
|
47463
47465
|
key: 0,
|
|
47464
47466
|
class: "channel-header-context"
|
|
47465
|
-
},
|
|
47467
|
+
}, LY = { class: "channel-header-actions" }, RY = {
|
|
47466
47468
|
key: 0,
|
|
47467
47469
|
class: "channel-launch-recovery",
|
|
47468
47470
|
"aria-label": "未完成的创建或启动请求"
|
|
47469
|
-
},
|
|
47471
|
+
}, zY = { role: "status" }, BY = { class: "button-row" }, VY = {
|
|
47470
47472
|
key: 1,
|
|
47471
47473
|
class: "channel-tabbar"
|
|
47472
|
-
},
|
|
47474
|
+
}, HY = { class: "channel-brief-inner" }, UY = { class: "channel-brief-heading" }, WY = ["aria-label", "aria-expanded"], GY = {
|
|
47473
47475
|
key: 0,
|
|
47474
47476
|
class: "channel-brief-preview"
|
|
47475
|
-
},
|
|
47477
|
+
}, KY = {
|
|
47476
47478
|
id: "channel-brief-content",
|
|
47477
47479
|
class: "channel-brief-content"
|
|
47478
|
-
},
|
|
47480
|
+
}, qY = ["innerHTML"], JY = { class: "channel-brief-footer" }, YY = { class: "channel-brief-status" }, XY = { class: "channel-content" }, ZY = {
|
|
47479
47481
|
key: 0,
|
|
47480
47482
|
class: "content-page channel-summary",
|
|
47481
47483
|
role: "tabpanel",
|
|
47482
47484
|
"aria-label": "共识"
|
|
47483
|
-
},
|
|
47485
|
+
}, QY = { class: "page-heading" }, $Y = {
|
|
47484
47486
|
key: 0,
|
|
47485
47487
|
class: "info-section"
|
|
47486
|
-
},
|
|
47488
|
+
}, eX = { class: "button-row" }, tX = { class: "form-footer" }, nX = {
|
|
47487
47489
|
key: 4,
|
|
47488
47490
|
class: "channel-empty"
|
|
47489
|
-
},
|
|
47491
|
+
}, rX = ["aria-valuenow", "aria-valuetext"], iX = {
|
|
47490
47492
|
key: 2,
|
|
47491
47493
|
id: "channel-member-rail",
|
|
47492
47494
|
class: "channel-member-rail",
|
|
47493
47495
|
"aria-label": "当前焦点与讨论进度"
|
|
47494
|
-
},
|
|
47496
|
+
}, aX = { class: "channel-rail-board" }, oX = {
|
|
47495
47497
|
key: 0,
|
|
47496
47498
|
class: "progress-board is-docked"
|
|
47497
|
-
},
|
|
47499
|
+
}, sX = { class: "pb-header" }, cX = { class: "pb-mode" }, lX = {
|
|
47498
47500
|
class: "pb-section",
|
|
47499
47501
|
"aria-label": "成员"
|
|
47500
|
-
},
|
|
47502
|
+
}, uX = { class: "pb-members" }, dX = { class: "pb-member-body" }, fX = { class: "pb-member-name" }, pX = {
|
|
47501
47503
|
key: 0,
|
|
47502
47504
|
class: "pb-member-model",
|
|
47503
47505
|
title: "它工作时请不要在原窗口继续操作"
|
|
47504
|
-
},
|
|
47506
|
+
}, mX = {
|
|
47505
47507
|
key: 0,
|
|
47506
47508
|
class: "pb-section",
|
|
47507
47509
|
"aria-label": "提示"
|
|
47508
|
-
},
|
|
47510
|
+
}, hX = {
|
|
47509
47511
|
key: 0,
|
|
47510
47512
|
role: "alert",
|
|
47511
47513
|
class: "pb-free-note is-error"
|
|
47512
|
-
},
|
|
47514
|
+
}, gX = {
|
|
47513
47515
|
key: 1,
|
|
47514
47516
|
role: "status",
|
|
47515
47517
|
class: "pb-free-note"
|
|
47516
|
-
},
|
|
47518
|
+
}, _X = {
|
|
47517
47519
|
key: 2,
|
|
47518
47520
|
role: "alert",
|
|
47519
47521
|
class: "pb-free-note is-error"
|
|
47520
|
-
},
|
|
47522
|
+
}, vX = {
|
|
47521
47523
|
key: 3,
|
|
47522
47524
|
role: "status",
|
|
47523
47525
|
class: "pb-free-note"
|
|
47524
|
-
},
|
|
47526
|
+
}, yX = {
|
|
47525
47527
|
class: "pb-section",
|
|
47526
47528
|
"aria-label": "邀请"
|
|
47527
|
-
},
|
|
47529
|
+
}, bX = {
|
|
47528
47530
|
key: 0,
|
|
47529
47531
|
class: "pb-free-note"
|
|
47530
|
-
},
|
|
47532
|
+
}, xX = {
|
|
47531
47533
|
key: 1,
|
|
47532
47534
|
class: "pb-section",
|
|
47533
47535
|
"aria-label": "头脑风暴"
|
|
47534
|
-
},
|
|
47536
|
+
}, SX = ["onClick"], CX = {
|
|
47535
47537
|
class: "pb-actions",
|
|
47536
47538
|
"aria-label": "操作"
|
|
47537
|
-
},
|
|
47539
|
+
}, wX = {
|
|
47538
47540
|
key: 2,
|
|
47539
47541
|
class: "progress-board is-docked"
|
|
47540
|
-
},
|
|
47542
|
+
}, TX = { class: "channel-detail-title" }, EX = { class: "info-section" }, DX = "ai-codiscuss-channel-layout", OX = 220, kX = 440, AX = 280, jX = 16, MX = 180, NX = 400, PX = 248, FX = 16, IX = 480, LX = 1200, RX = 6, zX = {
|
|
47541
47543
|
__name: "ChannelWorkspace",
|
|
47542
47544
|
setup(e) {
|
|
47543
47545
|
let { view: t, bridge: n, field: r, act: i, pending: a } = xr("discussion"), o = Z(() => t.value.room), s = /* @__PURE__ */ F(""), c = /* @__PURE__ */ F(null), l = /* @__PURE__ */ F(null), u = /* @__PURE__ */ F(null), d = /* @__PURE__ */ F(!1), f = /* @__PURE__ */ F(!0), p = /* @__PURE__ */ F(!1), m = r("state-input"), h = r("brief-input"), g = r("search-input"), _ = r("author-select"), v = {
|
|
@@ -47553,13 +47555,13 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47553
47555
|
label: "宽",
|
|
47554
47556
|
width: 1240
|
|
47555
47557
|
}
|
|
47556
|
-
}, y = Oe(), b = /* @__PURE__ */ F(y.reading), x = /* @__PURE__ */ F(y.rail), S = /* @__PURE__ */ F(y.nav), C = /* @__PURE__ */ F(typeof window > "u" ? 734 : window.innerWidth), w = /* @__PURE__ */ F(y.collapsed), T = /* @__PURE__ */ F(!0), E = /* @__PURE__ */ F(y.rail_collapsed), D = Z(() => C.value >=
|
|
47558
|
+
}, y = Oe(), b = /* @__PURE__ */ F(y.reading), x = /* @__PURE__ */ F(y.rail), S = /* @__PURE__ */ F(y.nav), C = /* @__PURE__ */ F(typeof window > "u" ? 734 : window.innerWidth), w = /* @__PURE__ */ F(y.collapsed), T = /* @__PURE__ */ F(!0), E = /* @__PURE__ */ F(y.rail_collapsed), D = Z(() => C.value >= LX), O = Z(() => t.value.tab === "discussion" && !E.value), ee = Z(() => D.value && t.value.tab === "discussion" ? E.value ? "展开频道概览" : "收起频道概览" : "频道资料与参与者"), te = Z(() => {
|
|
47557
47559
|
let e = document.createElement("template");
|
|
47558
47560
|
return e.innerHTML = o.value?.rendered_brief || "", e.content.textContent.replace(/\s+/g, " ").trim();
|
|
47559
|
-
}), k = /* @__PURE__ */ F(null), ne = /* @__PURE__ */ F(null), re = Z(() => Math.min(
|
|
47561
|
+
}), k = /* @__PURE__ */ F(null), ne = /* @__PURE__ */ F(null), re = Z(() => Math.min(NX, Math.max(MX, C.value - IX - RX))), ie = Z(() => Math.min(S.value, re.value)), ae = Z(() => ({
|
|
47560
47562
|
"--channel-reading-width": `${v[b.value].width}px`,
|
|
47561
47563
|
"--channel-rail-width": `${x.value}px`,
|
|
47562
|
-
"--channel-main-columns": w.value ? "minmax(0, 1fr)" : `${ie.value}px ${
|
|
47564
|
+
"--channel-main-columns": w.value ? "minmax(0, 1fr)" : `${ie.value}px ${RX}px minmax(0, 1fr)`
|
|
47563
47565
|
})), A = Object.entries(v).map(([e, t]) => ({
|
|
47564
47566
|
value: e,
|
|
47565
47567
|
label: t.label
|
|
@@ -47693,11 +47695,11 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47693
47695
|
}
|
|
47694
47696
|
function Oe() {
|
|
47695
47697
|
try {
|
|
47696
|
-
let e = JSON.parse(localStorage.getItem(
|
|
47698
|
+
let e = JSON.parse(localStorage.getItem(DX)) || {};
|
|
47697
47699
|
return {
|
|
47698
47700
|
reading: Object.hasOwn(v, e.reading) ? e.reading : "default",
|
|
47699
|
-
rail: Number.isFinite(e.rail) ? Math.min(
|
|
47700
|
-
nav: Number.isFinite(e.nav) ? Math.min(
|
|
47701
|
+
rail: Number.isFinite(e.rail) ? Math.min(kX, Math.max(OX, e.rail)) : AX,
|
|
47702
|
+
nav: Number.isFinite(e.nav) ? Math.min(NX, Math.max(MX, e.nav)) : ke(),
|
|
47701
47703
|
collapsed: e.collapsed === !0,
|
|
47702
47704
|
brief_collapsed: e.brief_collapsed === !0,
|
|
47703
47705
|
rail_collapsed: e.rail_collapsed === !0
|
|
@@ -47705,7 +47707,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47705
47707
|
} catch {
|
|
47706
47708
|
return {
|
|
47707
47709
|
reading: "default",
|
|
47708
|
-
rail:
|
|
47710
|
+
rail: AX,
|
|
47709
47711
|
nav: ke(),
|
|
47710
47712
|
collapsed: !1,
|
|
47711
47713
|
brief_collapsed: !1,
|
|
@@ -47714,11 +47716,11 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47714
47716
|
}
|
|
47715
47717
|
}
|
|
47716
47718
|
function ke() {
|
|
47717
|
-
return typeof window > "u" ?
|
|
47719
|
+
return typeof window > "u" ? PX : window.innerWidth >= 1900 ? 280 : window.innerWidth <= 980 ? 220 : PX;
|
|
47718
47720
|
}
|
|
47719
47721
|
function Ae() {
|
|
47720
47722
|
try {
|
|
47721
|
-
localStorage.setItem(
|
|
47723
|
+
localStorage.setItem(DX, JSON.stringify({
|
|
47722
47724
|
reading: b.value,
|
|
47723
47725
|
rail: x.value,
|
|
47724
47726
|
nav: S.value,
|
|
@@ -47748,19 +47750,19 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47748
47750
|
}, e.currentTarget.setPointerCapture(e.pointerId));
|
|
47749
47751
|
}
|
|
47750
47752
|
function Ie(e) {
|
|
47751
|
-
k.value?.pointer === e.pointerId && (x.value = Math.round(Math.min(
|
|
47753
|
+
k.value?.pointer === e.pointerId && (x.value = Math.round(Math.min(kX, Math.max(OX, k.value.width + k.value.x - e.clientX))));
|
|
47752
47754
|
}
|
|
47753
47755
|
function Le(e) {
|
|
47754
47756
|
k.value?.pointer === e.pointerId && (k.value = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), Ae());
|
|
47755
47757
|
}
|
|
47756
47758
|
function Re(e) {
|
|
47757
47759
|
let t = {
|
|
47758
|
-
ArrowLeft: x.value +
|
|
47759
|
-
ArrowRight: x.value -
|
|
47760
|
-
Home:
|
|
47761
|
-
End:
|
|
47760
|
+
ArrowLeft: x.value + jX,
|
|
47761
|
+
ArrowRight: x.value - jX,
|
|
47762
|
+
Home: OX,
|
|
47763
|
+
End: kX
|
|
47762
47764
|
};
|
|
47763
|
-
Object.hasOwn(t, e.key) && (e.preventDefault(), x.value = Math.min(
|
|
47765
|
+
Object.hasOwn(t, e.key) && (e.preventDefault(), x.value = Math.min(kX, Math.max(OX, t[e.key])), Ae());
|
|
47764
47766
|
}
|
|
47765
47767
|
function ze(e) {
|
|
47766
47768
|
e.button === 0 && (e.preventDefault(), e.currentTarget.focus(), ne.value = {
|
|
@@ -47770,19 +47772,19 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47770
47772
|
}, e.currentTarget.setPointerCapture(e.pointerId));
|
|
47771
47773
|
}
|
|
47772
47774
|
function Be(e) {
|
|
47773
|
-
ne.value?.pointer === e.pointerId && (S.value = Math.round(Math.min(re.value, Math.max(
|
|
47775
|
+
ne.value?.pointer === e.pointerId && (S.value = Math.round(Math.min(re.value, Math.max(MX, ne.value.width + e.clientX - ne.value.x))));
|
|
47774
47776
|
}
|
|
47775
47777
|
function Ve(e) {
|
|
47776
47778
|
ne.value?.pointer === e.pointerId && (ne.value = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), Ae());
|
|
47777
47779
|
}
|
|
47778
47780
|
function He(e) {
|
|
47779
47781
|
let t = {
|
|
47780
|
-
ArrowLeft: ie.value -
|
|
47781
|
-
ArrowRight: ie.value +
|
|
47782
|
-
Home:
|
|
47782
|
+
ArrowLeft: ie.value - FX,
|
|
47783
|
+
ArrowRight: ie.value + FX,
|
|
47784
|
+
Home: MX,
|
|
47783
47785
|
End: re.value
|
|
47784
47786
|
};
|
|
47785
|
-
Object.hasOwn(t, e.key) && (e.preventDefault(), S.value = Math.min(re.value, Math.max(
|
|
47787
|
+
Object.hasOwn(t, e.key) && (e.preventDefault(), S.value = Math.min(re.value, Math.max(MX, t[e.key])), Ae());
|
|
47786
47788
|
}
|
|
47787
47789
|
return (e, r) => {
|
|
47788
47790
|
let v = zk, y = GV, S = Gk, C = uA, E = VV, se = LV, me = xV, Oe = zV, ke = FV, Ae = MV, Me = EV, Pe = pV, Ue = dV, We = cV;
|
|
@@ -47794,14 +47796,14 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47794
47796
|
}]),
|
|
47795
47797
|
style: fe(ae.value)
|
|
47796
47798
|
}, [
|
|
47797
|
-
K("aside",
|
|
47798
|
-
K("header",
|
|
47799
|
-
K("span",
|
|
47799
|
+
K("aside", yY, [
|
|
47800
|
+
K("header", bY, [
|
|
47801
|
+
K("span", xY, [q(v, { name: "i-lucide-messages-square" })]),
|
|
47800
47802
|
r[26] ||= K("strong", null, "共议", -1),
|
|
47801
47803
|
r[27] ||= K("span", null, "AI CoDiscuss", -1)
|
|
47802
47804
|
]),
|
|
47803
|
-
K("div",
|
|
47804
|
-
q(
|
|
47805
|
+
K("div", SY, [
|
|
47806
|
+
q(TJ, {
|
|
47805
47807
|
onSelect: Se,
|
|
47806
47808
|
onManage: be,
|
|
47807
47809
|
onCreate: we,
|
|
@@ -47810,12 +47812,12 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47810
47812
|
onDeleteFolder: De,
|
|
47811
47813
|
onArchives: xe
|
|
47812
47814
|
}),
|
|
47813
|
-
K("div",
|
|
47815
|
+
K("div", CY, [K("button", {
|
|
47814
47816
|
type: "button",
|
|
47815
47817
|
class: "channel-section-toggle",
|
|
47816
47818
|
"aria-expanded": f.value,
|
|
47817
47819
|
onClick: r[0] ||= (e) => f.value = !f.value
|
|
47818
|
-
}, [q(v, { name: f.value ? "i-lucide-chevron-down" : "i-lucide-chevron-right" }, null, 8, ["name"]), r[28] ||= J("频道工具", -1)], 8,
|
|
47820
|
+
}, [q(v, { name: f.value ? "i-lucide-chevron-down" : "i-lucide-chevron-right" }, null, 8, ["name"]), r[28] ||= J("频道工具", -1)], 8, wY)]),
|
|
47819
47821
|
f.value ? (U(), G(y, {
|
|
47820
47822
|
key: 0,
|
|
47821
47823
|
items: ve.value,
|
|
@@ -47831,7 +47833,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47831
47833
|
}
|
|
47832
47834
|
}, null, 8, ["items"])) : Y("", !0)
|
|
47833
47835
|
]),
|
|
47834
|
-
K("footer",
|
|
47836
|
+
K("footer", TY, [
|
|
47835
47837
|
q(S, {
|
|
47836
47838
|
src: I(n).identities[I(_)]?.icon,
|
|
47837
47839
|
text: I(n).identities[I(_)]?.initials,
|
|
@@ -47844,7 +47846,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47844
47846
|
"alt",
|
|
47845
47847
|
"class"
|
|
47846
47848
|
]),
|
|
47847
|
-
K("div",
|
|
47849
|
+
K("div", EY, [K("strong", null, P(I(n).display_name(I(_))), 1), K("div", DY, [K("span", { class: M({ connected: I(t).connected }) }, null, 2), J(P(I(t).connected ? "网站已连接" : "网站未连接"), 1)])]),
|
|
47848
47850
|
q(E, { text: "外观设置" }, {
|
|
47849
47851
|
default: L(() => [q(C, {
|
|
47850
47852
|
icon: "i-lucide-settings-2",
|
|
@@ -47867,7 +47869,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47867
47869
|
"aria-label": "调整频道栏宽度",
|
|
47868
47870
|
"aria-orientation": "vertical",
|
|
47869
47871
|
"aria-controls": "channel-sidebar",
|
|
47870
|
-
"aria-valuemin":
|
|
47872
|
+
"aria-valuemin": MX,
|
|
47871
47873
|
"aria-valuemax": re.value,
|
|
47872
47874
|
"aria-valuenow": ie.value,
|
|
47873
47875
|
"aria-valuetext": `${ie.value} 像素`,
|
|
@@ -47878,9 +47880,9 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47878
47880
|
onPointercancel: Ve,
|
|
47879
47881
|
onLostpointercapture: Ve,
|
|
47880
47882
|
onKeydown: He
|
|
47881
|
-
}, null, 40,
|
|
47882
|
-
K("main",
|
|
47883
|
-
K("header",
|
|
47883
|
+
}, null, 40, OY)),
|
|
47884
|
+
K("main", kY, [
|
|
47885
|
+
K("header", AY, [
|
|
47884
47886
|
q(E, { text: w.value ? "展开频道栏" : "收起频道栏" }, {
|
|
47885
47887
|
default: L(() => [q(C, {
|
|
47886
47888
|
icon: "i-lucide-panel-left",
|
|
@@ -47905,13 +47907,13 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47905
47907
|
"aria-expanded": d.value,
|
|
47906
47908
|
onClick: r[3] ||= (e) => d.value = !0
|
|
47907
47909
|
}, null, 8, ["aria-expanded"]),
|
|
47908
|
-
K("span",
|
|
47909
|
-
K("div",
|
|
47910
|
+
K("span", jY, [q(v, { name: "i-lucide-hash" })]),
|
|
47911
|
+
K("div", MY, [K("div", NY, [K("h1", { title: o.value?.title }, P(o.value?.title || "共议"), 9, PY), o.value?.floor && !ce.value ? (U(), W("div", {
|
|
47910
47912
|
key: 0,
|
|
47911
47913
|
class: M(["channel-floor-status", { "is-held": o.value.floor.holder }]),
|
|
47912
47914
|
role: "status",
|
|
47913
47915
|
title: `发言权:${I(n).floor_status(o.value)}`
|
|
47914
|
-
}, [q(v, { name: "i-lucide-mic" }), K("span", null, "发言权:" + P(I(n).floor_status(o.value)), 1)], 10,
|
|
47916
|
+
}, [q(v, { name: "i-lucide-mic" }), K("span", null, "发言权:" + P(I(n).floor_status(o.value)), 1)], 10, FY)) : Y("", !0)]), o.value?.archived ? (U(), G(se, {
|
|
47915
47917
|
key: 0,
|
|
47916
47918
|
color: "neutral",
|
|
47917
47919
|
variant: "subtle",
|
|
@@ -47920,12 +47922,12 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47920
47922
|
default: L(() => [...r[29] ||= [J("已存档", -1)]]),
|
|
47921
47923
|
_: 1
|
|
47922
47924
|
})) : Y("", !0)]),
|
|
47923
|
-
o.value ? (U(), W("span",
|
|
47925
|
+
o.value ? (U(), W("span", IY, [
|
|
47924
47926
|
J(P(le.value.find((e) => e.value === I(t).tab)?.label), 1),
|
|
47925
47927
|
r[30] ||= K("span", null, "·", -1),
|
|
47926
47928
|
J(P(o.value.message_count) + " 条记录", 1)
|
|
47927
47929
|
])) : Y("", !0),
|
|
47928
|
-
K("div",
|
|
47930
|
+
K("div", LY, [
|
|
47929
47931
|
I(t).tab === "discussion" ? (U(), W("form", {
|
|
47930
47932
|
key: 0,
|
|
47931
47933
|
class: "channel-search",
|
|
@@ -47983,7 +47985,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47983
47985
|
])]),
|
|
47984
47986
|
_: 1
|
|
47985
47987
|
})) : Y("", !0),
|
|
47986
|
-
o.value && !(O.value && D.value) ? (U(), G(
|
|
47988
|
+
o.value && !(O.value && D.value) ? (U(), G(vY, { key: 2 })) : Y("", !0)
|
|
47987
47989
|
]),
|
|
47988
47990
|
q(E, { text: ee.value }, {
|
|
47989
47991
|
default: L(() => [q(C, {
|
|
@@ -48004,12 +48006,12 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48004
48006
|
_: 1
|
|
48005
48007
|
}, 8, ["text"])
|
|
48006
48008
|
]),
|
|
48007
|
-
I(t).launch.recoveries.length ? (U(), W("section",
|
|
48009
|
+
I(t).launch.recoveries.length ? (U(), W("section", RY, [
|
|
48008
48010
|
r[31] ||= K("h2", null, "继续未完成的请求", -1),
|
|
48009
48011
|
(U(!0), W(H, null, B(I(t).launch.recoveries, (e) => (U(), W("article", { key: e.id }, [
|
|
48010
48012
|
K("strong", null, P(e.title), 1),
|
|
48011
|
-
K("p",
|
|
48012
|
-
K("div",
|
|
48013
|
+
K("p", zY, P(e.error || "启动结果尚未确认;原请求已保存在此浏览器中。"), 1),
|
|
48014
|
+
K("div", BY, [
|
|
48013
48015
|
q(C, {
|
|
48014
48016
|
label: e.direct ? "继续创建房间" : "继续本次启动",
|
|
48015
48017
|
size: "sm",
|
|
@@ -48042,7 +48044,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48042
48044
|
]))), 128)),
|
|
48043
48045
|
r[32] ||= K("small", null, "移除待办不会删除房间或停止讨论。", -1)
|
|
48044
48046
|
])) : Y("", !0),
|
|
48045
|
-
o.value ? (U(), W("div",
|
|
48047
|
+
o.value ? (U(), W("div", VY, [q(Oe, {
|
|
48046
48048
|
modelValue: oe.value,
|
|
48047
48049
|
"onUpdate:modelValue": r[8] ||= (e) => oe.value = e,
|
|
48048
48050
|
items: le.value,
|
|
@@ -48057,7 +48059,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48057
48059
|
key: 2,
|
|
48058
48060
|
class: M(["channel-host-brief", { "is-collapsed": T.value }]),
|
|
48059
48061
|
"aria-label": "主持简报"
|
|
48060
|
-
}, [K("div",
|
|
48062
|
+
}, [K("div", HY, [K("div", UY, [K("button", {
|
|
48061
48063
|
type: "button",
|
|
48062
48064
|
class: "channel-brief-toggle",
|
|
48063
48065
|
"aria-label": T.value ? "展开主持简报" : "收起主持简报",
|
|
@@ -48067,8 +48069,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48067
48069
|
}, [
|
|
48068
48070
|
q(v, { name: T.value ? "i-lucide-chevron-right" : "i-lucide-chevron-down" }, null, 8, ["name"]),
|
|
48069
48071
|
K("strong", null, "主持简报" + P(T.value ? ":" : ""), 1),
|
|
48070
|
-
T.value ? (U(), W("span",
|
|
48071
|
-
], 8,
|
|
48072
|
+
T.value ? (U(), W("span", GY, P(te.value), 1)) : Y("", !0)
|
|
48073
|
+
], 8, WY), T.value ? Y("", !0) : (U(), G(C, {
|
|
48072
48074
|
key: 0,
|
|
48073
48075
|
label: "更新简报",
|
|
48074
48076
|
color: "neutral",
|
|
@@ -48076,30 +48078,30 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48076
48078
|
size: "xs",
|
|
48077
48079
|
class: "channel-brief-update",
|
|
48078
48080
|
onClick: r[9] ||= (e) => I(i)("tab", "context")
|
|
48079
|
-
}))]), vr(K("div",
|
|
48081
|
+
}))]), vr(K("div", KY, [K("div", {
|
|
48080
48082
|
class: "channel-brief-text markdown-body",
|
|
48081
48083
|
innerHTML: o.value.rendered_brief
|
|
48082
|
-
}, null, 8,
|
|
48084
|
+
}, null, 8, qY), K("div", JY, [K("span", YY, P(I(n).progress_speaker(o.value)), 1), K("small", null, P(I(n).brief_meta(o.value)), 1)])], 512), [[Vc, !T.value]])])], 2)) : Y("", !0),
|
|
48083
48085
|
o.value ? (U(), W("div", {
|
|
48084
48086
|
key: 3,
|
|
48085
48087
|
class: M(["channel-body", { "channel-body-discussion": I(t).tab === "discussion" }])
|
|
48086
|
-
}, [K("div",
|
|
48088
|
+
}, [K("div", XY, [
|
|
48087
48089
|
vr(q(aW, {
|
|
48088
48090
|
onDetail: Ce,
|
|
48089
48091
|
onEdit: r[10] ||= (e) => s.value = "edit"
|
|
48090
48092
|
}, null, 512), [[Vc, I(t).tab === "discussion"]]),
|
|
48091
|
-
I(t).tab === "context" ? (U(), W("section",
|
|
48092
|
-
K("div",
|
|
48093
|
+
I(t).tab === "context" ? (U(), W("section", ZY, [
|
|
48094
|
+
K("div", QY, [r[33] ||= K("div", null, [K("h2", null, "共识与分歧"), K("p", null, "整理讨论进展,用 #消息编号 保留依据。")], -1), q(se, {
|
|
48093
48095
|
color: "neutral",
|
|
48094
48096
|
variant: "outline"
|
|
48095
48097
|
}, {
|
|
48096
48098
|
default: L(() => [J("截止 #" + P(o.value.state_until), 1)]),
|
|
48097
48099
|
_: 1
|
|
48098
48100
|
})]),
|
|
48099
|
-
Array.isArray(o.value.latest_receipts) && o.value.latest_receipts.length ? (U(), W("section",
|
|
48101
|
+
Array.isArray(o.value.latest_receipts) && o.value.latest_receipts.length ? (U(), W("section", $Y, [
|
|
48100
48102
|
r[34] ||= K("h3", null, "最新运行回执", -1),
|
|
48101
48103
|
r[35] ||= K("p", { class: "fine-print" }, "以下回执独立于摘要更新;晚于摘要的回执可能尚未整理,实际运行结果请查看原文。", -1),
|
|
48102
|
-
K("div",
|
|
48104
|
+
K("div", eX, [(U(!0), W(H, null, B(o.value.latest_receipts, (e) => (U(), G(C, {
|
|
48103
48105
|
key: e.id,
|
|
48104
48106
|
label: `${I(n).display_name(e.author)} #${e.id} · ${new Date(e.created_at).toLocaleString("zh-CN")}${e.id > o.value.state_until ? " · 晚于摘要" : ""}`,
|
|
48105
48107
|
variant: "link",
|
|
@@ -48142,7 +48144,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48142
48144
|
}, null, 8, ["modelValue"])]),
|
|
48143
48145
|
_: 1
|
|
48144
48146
|
}),
|
|
48145
|
-
K("div",
|
|
48147
|
+
K("div", tX, [K("span", null, "依据消息截止 #" + P(I(t).snapshot_id), 1), q(C, {
|
|
48146
48148
|
type: "submit",
|
|
48147
48149
|
color: "neutral",
|
|
48148
48150
|
icon: "i-lucide-check",
|
|
@@ -48157,7 +48159,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48157
48159
|
onOpen: r[14] ||= (e) => s.value = e,
|
|
48158
48160
|
onDetail: Ce
|
|
48159
48161
|
})) : Y("", !0)
|
|
48160
|
-
])], 2)) : (U(), W("div",
|
|
48162
|
+
])], 2)) : (U(), W("div", nX, [
|
|
48161
48163
|
q(v, { name: "i-lucide-hash" }),
|
|
48162
48164
|
r[36] ||= K("h2", null, "新建一个讨论频道", -1),
|
|
48163
48165
|
r[37] ||= K("p", null, "每个频道围绕一个议题,保留所有人的观点。", -1),
|
|
@@ -48177,8 +48179,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48177
48179
|
"aria-label": "调整右侧栏宽度",
|
|
48178
48180
|
"aria-orientation": "vertical",
|
|
48179
48181
|
"aria-controls": "channel-member-rail",
|
|
48180
|
-
"aria-valuemin":
|
|
48181
|
-
"aria-valuemax":
|
|
48182
|
+
"aria-valuemin": OX,
|
|
48183
|
+
"aria-valuemax": kX,
|
|
48182
48184
|
"aria-valuenow": x.value,
|
|
48183
48185
|
"aria-valuetext": `${x.value} 像素`,
|
|
48184
48186
|
title: "拖动调整右侧栏宽度,也可使用左右方向键",
|
|
@@ -48188,10 +48190,10 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48188
48190
|
onPointercancel: Le,
|
|
48189
48191
|
onLostpointercapture: Le,
|
|
48190
48192
|
onKeydown: Re
|
|
48191
|
-
}, null, 40,
|
|
48192
|
-
O.value ? (U(), W("aside",
|
|
48193
|
-
K("header",
|
|
48194
|
-
K("section",
|
|
48193
|
+
}, null, 40, rX)) : Y("", !0),
|
|
48194
|
+
O.value ? (U(), W("aside", iX, [K("section", aX, [o.value && ce.value ? (U(), W("div", oX, [
|
|
48195
|
+
K("header", sX, [r[38] ||= K("strong", null, "自由协作", -1), K("span", cX, P(he.value ? `${I(n).display_name(he.value.name)} 协助主持` : "你来主持"), 1)]),
|
|
48196
|
+
K("section", lX, [r[40] ||= K("h4", null, "成员", -1), K("ul", uX, [(U(!0), W(H, null, B(o.value.free?.members || [], (e) => (U(), W("li", {
|
|
48195
48197
|
key: e.id,
|
|
48196
48198
|
class: "pb-member"
|
|
48197
48199
|
}, [
|
|
@@ -48207,8 +48209,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48207
48209
|
"alt",
|
|
48208
48210
|
"class"
|
|
48209
48211
|
]),
|
|
48210
|
-
K("div",
|
|
48211
|
-
K("div",
|
|
48212
|
+
K("div", dX, [
|
|
48213
|
+
K("div", fX, [
|
|
48212
48214
|
J(P(I(n).display_name(e.name)), 1),
|
|
48213
48215
|
e.role === "host" ? (U(), G(v, {
|
|
48214
48216
|
key: 0,
|
|
@@ -48221,7 +48223,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48221
48223
|
}[e.access] || "本机自动"), 1)
|
|
48222
48224
|
]),
|
|
48223
48225
|
K("div", { class: M(["pb-member-status", `is-${ge(e)}`]) }, [r[39] ||= K("span", { class: "pb-dot" }, null, -1), J(P(_e(e)), 1)], 2),
|
|
48224
|
-
e.session_mode === "borrowed" ? (U(), W("p",
|
|
48226
|
+
e.session_mode === "borrowed" ? (U(), W("p", pX, "借用你正在使用的会话")) : Y("", !0)
|
|
48225
48227
|
]),
|
|
48226
48228
|
q(Me, {
|
|
48227
48229
|
items: N(e),
|
|
@@ -48239,7 +48241,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48239
48241
|
_: 2
|
|
48240
48242
|
}, 1032, ["items"])
|
|
48241
48243
|
]))), 128))])]),
|
|
48242
|
-
o.value.free?.conflicts?.length || o.value.free?.halted_chains?.length || I(t).free_error || I(t).free_notice || I(t).access?.error || I(t).access?.notice ? (U(), W("section",
|
|
48244
|
+
o.value.free?.conflicts?.length || o.value.free?.halted_chains?.length || I(t).free_error || I(t).free_notice || I(t).access?.error || I(t).access?.notice ? (U(), W("section", mX, [
|
|
48243
48245
|
r[41] ||= K("h4", null, "提示", -1),
|
|
48244
48246
|
(U(!0), W(H, null, B(o.value.free?.conflicts || [], (e) => (U(), W("p", {
|
|
48245
48247
|
key: e.executions.join("-"),
|
|
@@ -48249,10 +48251,10 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48249
48251
|
key: e.chain_id,
|
|
48250
48252
|
class: "pb-free-note"
|
|
48251
48253
|
}, "#" + P(e.chain_id) + " 的任务链已停:" + P(e.reason === "budget" ? `达到 ${o.value.free.max_auto_hops} 次上限` : "派出的成员都失败了") + ";发新消息即重新开始", 1))), 128)),
|
|
48252
|
-
I(t).free_error ? (U(), W("p",
|
|
48253
|
-
I(t).access?.error ? (U(), W("p",
|
|
48254
|
+
I(t).free_error ? (U(), W("p", hX, P(I(t).free_error), 1)) : I(t).free_notice ? (U(), W("p", gX, P(I(t).free_notice), 1)) : Y("", !0),
|
|
48255
|
+
I(t).access?.error ? (U(), W("p", _X, P(I(t).access.error), 1)) : I(t).access?.notice ? (U(), W("p", vX, P(I(t).access.notice), 1)) : Y("", !0)
|
|
48254
48256
|
])) : Y("", !0),
|
|
48255
|
-
K("section",
|
|
48257
|
+
K("section", yX, [
|
|
48256
48258
|
r[42] ||= K("h4", null, "邀请 AI", -1),
|
|
48257
48259
|
K("form", {
|
|
48258
48260
|
class: "pb-free-invite",
|
|
@@ -48287,15 +48289,15 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48287
48289
|
size: "sm",
|
|
48288
48290
|
class: "w-26"
|
|
48289
48291
|
}, null, 8, ["modelValue"])], 32),
|
|
48290
|
-
de.value === "runner" && !I(t).launch.available ? (U(), W("p",
|
|
48292
|
+
de.value === "runner" && !I(t).launch.available ? (U(), W("p", bX, "程序唤醒需要本机服务,请在运行 AI 的电脑打开本机网站。")) : Y("", !0)
|
|
48291
48293
|
]),
|
|
48292
|
-
o.value.linked_rooms?.length ? (U(), W("section",
|
|
48294
|
+
o.value.linked_rooms?.length ? (U(), W("section", xX, [r[43] ||= K("h4", null, "头脑风暴", -1), (U(!0), W(H, null, B(o.value.linked_rooms, (e) => (U(), W("button", {
|
|
48293
48295
|
key: e.id,
|
|
48294
48296
|
type: "button",
|
|
48295
48297
|
class: "pb-link pb-free-linked",
|
|
48296
48298
|
onClick: (t) => I(i)("room", e.id)
|
|
48297
|
-
}, [J(P(e.title), 1), K("small", null, P(I(n).phases[e.phase] || e.phase), 1)], 8,
|
|
48298
|
-
K("section",
|
|
48299
|
+
}, [J(P(e.title), 1), K("small", null, P(I(n).phases[e.phase] || e.phase), 1)], 8, SX))), 128))])) : Y("", !0),
|
|
48300
|
+
K("section", CX, [q(C, {
|
|
48299
48301
|
icon: "i-lucide-user-plus",
|
|
48300
48302
|
label: "邀请",
|
|
48301
48303
|
size: "sm",
|
|
@@ -48317,10 +48319,10 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48317
48319
|
title: "用当前成员新建一场讨论房间,收束后可把结论发回这里",
|
|
48318
48320
|
onClick: j
|
|
48319
48321
|
})])
|
|
48320
|
-
])) : o.value ? (U(), G(
|
|
48322
|
+
])) : o.value ? (U(), G(pY, {
|
|
48321
48323
|
key: 1,
|
|
48322
48324
|
docked: ""
|
|
48323
|
-
})) : (U(), W("div",
|
|
48325
|
+
})) : (U(), W("div", wX, [...r[44] ||= [K("header", { class: "pb-header" }, [K("strong", null, "讨论进度")], -1), K("p", { class: "channel-rail-empty" }, "暂无频道,新建讨论后在这里查看进度与参与者。", -1)]]))])])) : Y("", !0),
|
|
48324
48326
|
q(Ue, {
|
|
48325
48327
|
open: d.value,
|
|
48326
48328
|
"onUpdate:open": r[21] ||= (e) => d.value = e,
|
|
@@ -48332,7 +48334,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48332
48334
|
body: "channel-drawer-body"
|
|
48333
48335
|
}
|
|
48334
48336
|
}, {
|
|
48335
|
-
body: L(() => [q(
|
|
48337
|
+
body: L(() => [q(TJ, {
|
|
48336
48338
|
onSelect: Se,
|
|
48337
48339
|
onManage: be,
|
|
48338
48340
|
onCreate: we,
|
|
@@ -48363,7 +48365,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48363
48365
|
}
|
|
48364
48366
|
}, {
|
|
48365
48367
|
body: L(() => [o.value ? (U(), W(H, { key: 0 }, [
|
|
48366
|
-
K("div",
|
|
48368
|
+
K("div", TX, [q(v, { name: "i-lucide-hash" }), K("h2", null, P(o.value.title), 1)]),
|
|
48367
48369
|
(U(), W(H, null, B([
|
|
48368
48370
|
{
|
|
48369
48371
|
key: "goal",
|
|
@@ -48390,7 +48392,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48390
48392
|
class: "info-section"
|
|
48391
48393
|
}, [K("h3", null, P(e.label), 1), K("p", null, P(o.value[e.key] || "尚未填写"), 1)])), 64)),
|
|
48392
48394
|
q(We),
|
|
48393
|
-
K("section",
|
|
48395
|
+
K("section", EX, [r[45] ||= K("h3", null, "参与身份", -1), (U(!0), W(H, null, B(ye.value, (e) => (U(), W("div", {
|
|
48394
48396
|
key: e.name,
|
|
48395
48397
|
class: "expert-row"
|
|
48396
48398
|
}, [
|
|
@@ -48423,7 +48425,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48423
48425
|
], 64)) : Y("", !0)]),
|
|
48424
48426
|
_: 1
|
|
48425
48427
|
}, 8, ["open"]),
|
|
48426
|
-
q(
|
|
48428
|
+
q(nJ, {
|
|
48427
48429
|
modelValue: s.value,
|
|
48428
48430
|
"onUpdate:modelValue": r[24] ||= (e) => s.value = e,
|
|
48429
48431
|
"reading-width": b.value,
|
|
@@ -48443,7 +48445,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48443
48445
|
], 6);
|
|
48444
48446
|
};
|
|
48445
48447
|
}
|
|
48446
|
-
},
|
|
48448
|
+
}, BX = {
|
|
48447
48449
|
__name: "App",
|
|
48448
48450
|
setup(e) {
|
|
48449
48451
|
return br("discussion", oV()), (e, t) => {
|
|
@@ -48454,7 +48456,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48454
48456
|
toaster: null
|
|
48455
48457
|
}, {
|
|
48456
48458
|
default: L(() => [q(I(Az), { "reduced-motion": "user" }, {
|
|
48457
|
-
default: L(() => [q(
|
|
48459
|
+
default: L(() => [q(zX)]),
|
|
48458
48460
|
_: 1
|
|
48459
48461
|
})]),
|
|
48460
48462
|
_: 1
|
|
@@ -48464,8 +48466,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48464
48466
|
};
|
|
48465
48467
|
//#endregion
|
|
48466
48468
|
//#region frontend/main.js
|
|
48467
|
-
function
|
|
48468
|
-
bu(
|
|
48469
|
+
function VX() {
|
|
48470
|
+
bu(BX).use(fh).mount("#modern-root");
|
|
48469
48471
|
}
|
|
48470
|
-
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded",
|
|
48472
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", VX) : VX();
|
|
48471
48473
|
//#endregion
|