ai_co_discuss 0.3.3 → 0.3.5
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/README.md +3 -1
- package/README.zh-CN.md +3 -1
- package/package.json +1 -1
- package/web/modern.css +1 -1
- package/web/modern.js +609 -613
package/web/modern.js
CHANGED
|
@@ -48523,14 +48523,17 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48523
48523
|
], 10, XJ)], 64))), 128))], 8, YJ);
|
|
48524
48524
|
};
|
|
48525
48525
|
}
|
|
48526
|
-
}, [["__scopeId", "data-v-b682fa87"]]), QJ = { class: "scheduler-settings" }, $J = { class: "scheduler-title" }, eY = { class: "scheduler-description" }, tY = {
|
|
48526
|
+
}, [["__scopeId", "data-v-b682fa87"]]), QJ = { class: "scheduler-settings" }, $J = { class: "scheduler-title" }, eY = { class: "scheduler-description" }, tY = {
|
|
48527
48527
|
key: 0,
|
|
48528
|
-
class: "scheduler-
|
|
48529
|
-
},
|
|
48528
|
+
class: "scheduler-empty"
|
|
48529
|
+
}, nY = {
|
|
48530
|
+
key: 1,
|
|
48531
|
+
class: "scheduler-cards"
|
|
48532
|
+
}, rY = { class: "scheduler-slot" }, iY = { class: "scheduler-identity" }, aY = { class: "scheduler-facts" }, oY = ["title"], sY = { class: "scheduler-flip" }, cY = { class: "scheduler-tools" }, lY = ["aria-label"], uY = { class: "scheduler-back" }, dY = { class: "scheduler-heading" }, fY = { class: "scheduler-field" }, pY = { class: "scheduler-field" }, mY = {
|
|
48530
48533
|
key: 0,
|
|
48531
48534
|
role: "alert",
|
|
48532
48535
|
class: "scheduler-error"
|
|
48533
|
-
},
|
|
48536
|
+
}, hY = ["role"], gY = { class: "scheduler-flip-actions" }, _Y = "••••••••••••", vY = /*#__PURE__*/ YH({
|
|
48534
48537
|
__name: "SchedulerSettings",
|
|
48535
48538
|
props: {
|
|
48536
48539
|
free: {
|
|
@@ -48645,7 +48648,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48645
48648
|
}
|
|
48646
48649
|
}
|
|
48647
48650
|
return (t, a) => {
|
|
48648
|
-
let g = WV, ee =
|
|
48651
|
+
let g = WV, ee = pA, D = sA, O = MA, te = oq, ne = YV;
|
|
48649
48652
|
return U(), W("div", QJ, [
|
|
48650
48653
|
K("div", null, [K("p", $J, [
|
|
48651
48654
|
a[5] ||= J("智能调度", -1),
|
|
@@ -48666,11 +48669,8 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48666
48669
|
items: u.value,
|
|
48667
48670
|
onAdd: y
|
|
48668
48671
|
}, null, 8, ["items"]),
|
|
48669
|
-
K("div",
|
|
48670
|
-
|
|
48671
|
-
class: j(["scheduler-card", { "is-editing": h.value }])
|
|
48672
|
-
}, [h.value ? (U(), W(H, { key: 1 }, [K("div", lY, [
|
|
48673
|
-
K("div", uY, [K("strong", null, [J(P(x.value), 1), a[13] ||= K("span", null, "设置", -1)]), q(O, {
|
|
48672
|
+
c.value ? (U(), W("div", nY, [K("div", rY, [K("div", { class: j(["scheduler-card", { "is-editing": h.value }]) }, [h.value ? (U(), W(H, { key: 1 }, [K("div", uY, [
|
|
48673
|
+
K("div", dY, [K("strong", null, [J(P(x.value), 1), a[11] ||= K("span", null, "设置", -1)]), q(O, {
|
|
48674
48674
|
icon: "i-lucide-zap",
|
|
48675
48675
|
"aria-label": "检查智能调度配置",
|
|
48676
48676
|
title: "检查配置:向决策模型发送一道极短的是非题,核对供应商、模型与密钥",
|
|
@@ -48685,7 +48685,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48685
48685
|
"loading",
|
|
48686
48686
|
"disabled"
|
|
48687
48687
|
])]),
|
|
48688
|
-
K("div",
|
|
48688
|
+
K("div", fY, [a[12] ||= K("span", null, "模型", -1), q(te, {
|
|
48689
48689
|
mode: "autocomplete",
|
|
48690
48690
|
"ignore-filter": "",
|
|
48691
48691
|
"model-value": i.value.model || "",
|
|
@@ -48697,7 +48697,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48697
48697
|
class: "w-full",
|
|
48698
48698
|
"onUpdate:modelValue": a[0] ||= (e) => I(r).write_scheduler("model", e)
|
|
48699
48699
|
}, null, 8, ["model-value", "items"])]),
|
|
48700
|
-
K("div",
|
|
48700
|
+
K("div", pY, [a[13] ||= K("span", null, "密钥", -1), q(ne, {
|
|
48701
48701
|
modelValue: d.value,
|
|
48702
48702
|
"onUpdate:modelValue": a[2] ||= (e) => d.value = e,
|
|
48703
48703
|
type: "text",
|
|
@@ -48705,7 +48705,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48705
48705
|
spellcheck: "false",
|
|
48706
48706
|
"data-1p-ignore": "",
|
|
48707
48707
|
"data-lpignore": "true",
|
|
48708
|
-
placeholder: i.value.api_key_ref ?
|
|
48708
|
+
placeholder: i.value.api_key_ref ? _Y : "填写所选供应商的 API Key",
|
|
48709
48709
|
title: i.value.api_key_ref && !d.value ? "已保存;本机不回传密钥,输入新 Key 可更换" : void 0,
|
|
48710
48710
|
"aria-label": "智能调度 API Key",
|
|
48711
48711
|
size: "xs",
|
|
@@ -48740,14 +48740,14 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48740
48740
|
"loading",
|
|
48741
48741
|
"ui"
|
|
48742
48742
|
])]),
|
|
48743
|
-
m.value ? (U(), W("p",
|
|
48743
|
+
m.value ? (U(), W("p", mY, P(m.value), 1)) : Y("", !0),
|
|
48744
48744
|
C.value.message ? (U(), W("p", {
|
|
48745
48745
|
key: 1,
|
|
48746
48746
|
role: C.value.state === "error" ? "alert" : "status",
|
|
48747
48747
|
class: j(C.value.state === "error" ? "scheduler-error" : "scheduler-ok")
|
|
48748
|
-
}, P(C.value.message), 11,
|
|
48749
|
-
a[
|
|
48750
|
-
]), K("span",
|
|
48748
|
+
}, P(C.value.message), 11, hY)) : Y("", !0),
|
|
48749
|
+
a[14] ||= K("p", { class: "scheduler-note" }, "决策模型只做选择、不生成文本,只按输入计费。判断时会把房间标题和最近 10~20 条消息发给所选供应商;密钥只存本机。", -1)
|
|
48750
|
+
]), K("span", gY, [K("button", {
|
|
48751
48751
|
type: "button",
|
|
48752
48752
|
class: "scheduler-flip is-cancel",
|
|
48753
48753
|
"aria-label": "放弃决策模型的修改",
|
|
@@ -48757,14 +48757,14 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48757
48757
|
class: "scheduler-flip is-done",
|
|
48758
48758
|
"aria-label": "完成并返回决策模型卡片",
|
|
48759
48759
|
onClick: a[3] ||= (e) => h.value = !1
|
|
48760
|
-
}, [q(
|
|
48760
|
+
}, [q(D, { name: "i-lucide-check" }), a[15] ||= J("完成", -1)])])], 64)) : (U(), W(H, { key: 0 }, [K("button", {
|
|
48761
48761
|
type: "button",
|
|
48762
48762
|
class: "scheduler-open",
|
|
48763
48763
|
"aria-label": "设置智能调度的决策模型",
|
|
48764
48764
|
title: "点击设置",
|
|
48765
48765
|
onClick: _
|
|
48766
48766
|
}, [
|
|
48767
|
-
K("span",
|
|
48767
|
+
K("span", iY, [q(ee, {
|
|
48768
48768
|
src: s[i.value.provider]?.icon,
|
|
48769
48769
|
text: x.value.slice(0, 2),
|
|
48770
48770
|
alt: x.value,
|
|
@@ -48776,44 +48776,40 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48776
48776
|
"alt",
|
|
48777
48777
|
"class"
|
|
48778
48778
|
]), K("strong", null, P(x.value), 1)]),
|
|
48779
|
-
K("dl",
|
|
48780
|
-
K("span",
|
|
48781
|
-
]), K("span",
|
|
48779
|
+
K("dl", aY, [K("div", null, [a[8] ||= K("dt", null, "状态", -1), K("dd", { class: j(`is-${S.value.tone}`) }, [a[7] ||= K("i", { "aria-hidden": "true" }, null, -1), J(P(S.value.text), 1)], 2)]), K("div", null, [a[9] ||= K("dt", null, "模型", -1), K("dd", { title: i.value.model }, P(i.value.model || "未选择"), 9, oY)])]),
|
|
48780
|
+
K("span", sY, [q(D, { name: "i-lucide-settings-2" }), a[10] ||= J("设置", -1)])
|
|
48781
|
+
]), K("span", cY, [K("button", {
|
|
48782
48782
|
type: "button",
|
|
48783
48783
|
"aria-label": `移出决策模型 ${x.value}`,
|
|
48784
48784
|
title: "移出",
|
|
48785
48785
|
onClick: b
|
|
48786
|
-
}, [q(
|
|
48787
|
-
q(ee, { name: "i-lucide-zap" }),
|
|
48788
|
-
a[7] ||= K("strong", null, "决策模型槽位", -1),
|
|
48789
|
-
a[8] ||= K("span", null, "只能放一个;从上方添加,再点其他会替换", -1)
|
|
48790
|
-
]))])
|
|
48786
|
+
}, [q(D, { name: "i-lucide-x" })], 8, lY)])], 64))], 2)])])) : (U(), W("p", tY, "未添加决策模型。只能放一个,点其他供应商会替换。"))
|
|
48791
48787
|
]);
|
|
48792
48788
|
};
|
|
48793
48789
|
}
|
|
48794
|
-
}, [["__scopeId", "data-v-
|
|
48790
|
+
}, [["__scopeId", "data-v-d4d373f5"]]), yY = { class: "create-discussion" }, bY = {
|
|
48795
48791
|
key: 0,
|
|
48796
48792
|
class: "create-connect",
|
|
48797
48793
|
role: "status"
|
|
48798
|
-
},
|
|
48794
|
+
}, xY = { class: "create-connect-command" }, SY = {
|
|
48799
48795
|
key: 1,
|
|
48800
48796
|
class: "channel-create-location"
|
|
48801
|
-
},
|
|
48797
|
+
}, CY = { class: "create-section" }, wY = { class: "create-section" }, TY = {
|
|
48802
48798
|
key: 0,
|
|
48803
48799
|
class: "create-experts",
|
|
48804
48800
|
role: "group",
|
|
48805
48801
|
"aria-label": "参与的 AI"
|
|
48806
|
-
},
|
|
48802
|
+
}, EY = {
|
|
48807
48803
|
key: 1,
|
|
48808
48804
|
class: "create-experts-empty"
|
|
48809
|
-
},
|
|
48805
|
+
}, DY = {
|
|
48810
48806
|
key: 2,
|
|
48811
48807
|
class: "fine-print create-hint create-host-hint"
|
|
48812
|
-
},
|
|
48808
|
+
}, OY = { class: "create-section" }, kY = { class: "create-advanced" }, AY = { class: "create-footer" }, jY = {
|
|
48813
48809
|
key: 0,
|
|
48814
48810
|
role: "alert",
|
|
48815
48811
|
class: "create-error"
|
|
48816
|
-
},
|
|
48812
|
+
}, MY = { class: "create-footer-row" }, NY = ["title"], PY = "new-expert-modes", FY = 3e3, IY = "preset:", LY = /*#__PURE__*/ YH({
|
|
48817
48813
|
__name: "CreateDiscussion",
|
|
48818
48814
|
props: { targetFolder: {
|
|
48819
48815
|
type: Object,
|
|
@@ -48821,7 +48817,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48821
48817
|
} },
|
|
48822
48818
|
emits: ["submit", "cancel"],
|
|
48823
48819
|
setup(e, { emit: t }) {
|
|
48824
|
-
let n = t, { view: r, bridge: i, pending: a, act: o } = xr("discussion"), s = Object.keys(i.identities).filter((e) => e !== "用户"), c = (e) => `new-room-${e}`, l = (e) => r.value.fields[c(e)] ?? "", u = (e, t) => i.write_field(c(e), t), d = Z(() => !!r.value.create_discussion), f = Z(() => r.value.experts[
|
|
48820
|
+
let n = t, { view: r, bridge: i, pending: a, act: o } = xr("discussion"), s = Object.keys(i.identities).filter((e) => e !== "用户"), c = (e) => `new-room-${e}`, l = (e) => r.value.fields[c(e)] ?? "", u = (e, t) => i.write_field(c(e), t), d = Z(() => !!r.value.create_discussion), f = Z(() => r.value.experts[PY] || {}), p = /* @__PURE__ */ F([]), m = Z(() => Object.keys(f.value).filter((e) => f.value[e]));
|
|
48825
48821
|
R(m, (e) => {
|
|
48826
48822
|
p.value = [...p.value.filter((t) => e.includes(t)), ...e.filter((e) => !p.value.includes(e))];
|
|
48827
48823
|
}, { immediate: !0 });
|
|
@@ -48845,14 +48841,14 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48845
48841
|
Qi(() => {
|
|
48846
48842
|
se(), ae = window.setInterval(() => {
|
|
48847
48843
|
ie.value && !document.hidden && o("check_launch_connection");
|
|
48848
|
-
},
|
|
48844
|
+
}, FY);
|
|
48849
48845
|
}), ta(() => window.clearInterval(ae));
|
|
48850
48846
|
function ce(e) {
|
|
48851
48847
|
i.write_create_discussion(e), Qn(se);
|
|
48852
48848
|
}
|
|
48853
48849
|
let le = (e) => i.launch_clients[e]?.some((e) => e.value !== "api"), ue = (e) => d.value && e === v.value ? [] : ["cli", "manual"];
|
|
48854
48850
|
function de(e, t) {
|
|
48855
|
-
i.write_expert(
|
|
48851
|
+
i.write_expert(PY, e, t), se();
|
|
48856
48852
|
}
|
|
48857
48853
|
function fe(e) {
|
|
48858
48854
|
if (C.value) return E(e) ? {
|
|
@@ -48882,7 +48878,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48882
48878
|
title: pe(e),
|
|
48883
48879
|
aria_label: `添加 ${e} 实例`
|
|
48884
48880
|
})), ...r.value && i.expert_presets().map((e, t) => ({
|
|
48885
|
-
value:
|
|
48881
|
+
value: IY + e.name,
|
|
48886
48882
|
name: e.label || e.name,
|
|
48887
48883
|
...i.identities[i.platform_of(e.name)],
|
|
48888
48884
|
separated: t === 0,
|
|
@@ -48890,11 +48886,11 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48890
48886
|
aria_label: `添加预设 ${e.label || e.name}`
|
|
48891
48887
|
}))]);
|
|
48892
48888
|
function me(e) {
|
|
48893
|
-
if (e.startsWith(
|
|
48889
|
+
if (e.startsWith(IY)) {
|
|
48894
48890
|
let t = i.expert_presets().find((t) => t.name === e.slice(7));
|
|
48895
|
-
return t && i.add_preset(
|
|
48891
|
+
return t && i.add_preset(PY, t, "cli"), se();
|
|
48896
48892
|
}
|
|
48897
|
-
i.launch_clients[e] && (i.default_launch_entry(e), g(e) ? i.add_instance(
|
|
48893
|
+
i.launch_clients[e] && (i.default_launch_entry(e), g(e) ? i.add_instance(PY, e, "cli") : de(e, "cli"), se());
|
|
48898
48894
|
}
|
|
48899
48895
|
function he(e) {
|
|
48900
48896
|
de(e, ""), Qn(() => _.value?.focus_first());
|
|
@@ -48916,20 +48912,20 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48916
48912
|
});
|
|
48917
48913
|
return (t, s) => {
|
|
48918
48914
|
let c = sA, p = MA, m = YV, g = zV, x = FK, T = HV;
|
|
48919
|
-
return U(), W("div",
|
|
48915
|
+
return U(), W("div", yY, [K("form", {
|
|
48920
48916
|
id: "create-discussion-form",
|
|
48921
48917
|
class: "create-scroll dialog-form",
|
|
48922
48918
|
onSubmit: uu(ge, ["prevent"])
|
|
48923
48919
|
}, [
|
|
48924
|
-
ie.value ? (U(), W("div",
|
|
48920
|
+
ie.value ? (U(), W("div", bY, [K("p", null, [q(c, { name: "i-lucide-plug-zap" }), s[10] ||= J("本机服务未连接,连接后才能唤醒本机 AI。在运行 AI 的电脑上执行下面的命令并完成网页授权,连上后自动检测。", -1)]), K("div", xY, [K("code", null, P(I(r).launch.connect_command), 1), q(p, {
|
|
48925
48921
|
icon: "i-lucide-copy",
|
|
48926
48922
|
"aria-label": "复制本机连接命令",
|
|
48927
48923
|
variant: "ghost",
|
|
48928
48924
|
color: "neutral",
|
|
48929
48925
|
onClick: s[0] ||= (e) => I(o)("copy", I(r).launch.connect_command)
|
|
48930
48926
|
})])])) : Y("", !0),
|
|
48931
|
-
e.targetFolder?.id ? (U(), W("p",
|
|
48932
|
-
K("section",
|
|
48927
|
+
e.targetFolder?.id ? (U(), W("p", SY, [q(c, { name: "i-lucide-folder" }), J(P(e.targetFolder.name), 1)])) : Y("", !0),
|
|
48928
|
+
K("section", CY, [
|
|
48933
48929
|
s[11] ||= K("h3", null, [K("span", null, "1"), J("这次做什么")], -1),
|
|
48934
48930
|
q(g, {
|
|
48935
48931
|
label: "话题名称",
|
|
@@ -48955,7 +48951,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48955
48951
|
_: 1
|
|
48956
48952
|
}, 8, ["description"])
|
|
48957
48953
|
]),
|
|
48958
|
-
K("section",
|
|
48954
|
+
K("section", wY, [
|
|
48959
48955
|
s[12] ||= K("h3", null, [K("span", null, "2"), J("谁来参与")], -1),
|
|
48960
48956
|
q(ZJ, {
|
|
48961
48957
|
ref_key: "library",
|
|
@@ -48964,7 +48960,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48964
48960
|
items: A.value,
|
|
48965
48961
|
onAdd: me
|
|
48966
48962
|
}, null, 8, ["items"]),
|
|
48967
|
-
h.value.length ? (U(), W("div",
|
|
48963
|
+
h.value.length ? (U(), W("div", TY, [(U(!0), W(H, null, B(h.value, (e) => (U(), G(MJ, {
|
|
48968
48964
|
key: e,
|
|
48969
48965
|
name: e,
|
|
48970
48966
|
mode: f.value[e],
|
|
@@ -48986,14 +48982,14 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48986
48982
|
"onHost",
|
|
48987
48983
|
"onRemove",
|
|
48988
48984
|
"onMode"
|
|
48989
|
-
]))), 128))])) : (U(), W("p",
|
|
48990
|
-
h.value.length ? (U(), W("div",
|
|
48991
|
-
q(
|
|
48985
|
+
]))), 128))])) : (U(), W("p", EY, "请至少添加一位成员。同一平台可添加多位,各自独立会话。")),
|
|
48986
|
+
h.value.length ? (U(), W("div", DY, [q(c, { name: "i-lucide-crown" }), K("span", null, P(y.value.length ? "点卡片上的皇冠指定主持人:没 @ 任何人的消息由它分配;其他成员只在被你或主持人点名时发言。" : "需要一位本地 AI 做主持人,没 @ 的消息才有人接。"), 1)])) : Y("", !0),
|
|
48987
|
+
q(vY, {
|
|
48992
48988
|
free: !0,
|
|
48993
48989
|
blocker: ne.value
|
|
48994
48990
|
}, null, 8, ["blocker"])
|
|
48995
48991
|
]),
|
|
48996
|
-
K("section",
|
|
48992
|
+
K("section", OY, [
|
|
48997
48993
|
s[13] ||= K("h3", null, [K("span", null, "3"), J("讨论(可选)")], -1),
|
|
48998
48994
|
q(x, {
|
|
48999
48995
|
"model-value": d.value,
|
|
@@ -49039,7 +49035,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49039
49035
|
"execution_minutes"
|
|
49040
49036
|
])], 64)) : Y("", !0)
|
|
49041
49037
|
]),
|
|
49042
|
-
K("details",
|
|
49038
|
+
K("details", kY, [K("summary", null, [
|
|
49043
49039
|
q(c, {
|
|
49044
49040
|
name: "i-lucide-chevron-right",
|
|
49045
49041
|
class: "create-advanced-icon"
|
|
@@ -49053,7 +49049,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49053
49049
|
default: L(() => [...s[15] ||= [J("建房后可在房间页修改。", -1)]]),
|
|
49054
49050
|
_: 1
|
|
49055
49051
|
}, 8, ["model-value"])])
|
|
49056
|
-
], 32), K("footer",
|
|
49052
|
+
], 32), K("footer", AY, [ee.value && I(r).launch.error ? (U(), W("p", jY, P(I(r).launch.error), 1)) : Y("", !0), K("div", MY, [
|
|
49057
49053
|
K("span", {
|
|
49058
49054
|
class: j(["create-summary", { "is-blocked": oe.value }]),
|
|
49059
49055
|
title: oe.value || _e.value,
|
|
@@ -49061,7 +49057,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49061
49057
|
}, [oe.value ? (U(), G(c, {
|
|
49062
49058
|
key: 0,
|
|
49063
49059
|
name: "i-lucide-circle-alert"
|
|
49064
|
-
})) : Y("", !0), J(P(oe.value ? `还差:${oe.value}` : h.value.length || d.value ? _e.value : ""), 1)], 10,
|
|
49060
|
+
})) : Y("", !0), J(P(oe.value ? `还差:${oe.value}` : h.value.length || d.value ? _e.value : ""), 1)], 10, NY),
|
|
49065
49061
|
q(p, {
|
|
49066
49062
|
label: "取消",
|
|
49067
49063
|
color: "neutral",
|
|
@@ -49085,46 +49081,46 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49085
49081
|
])])]);
|
|
49086
49082
|
};
|
|
49087
49083
|
}
|
|
49088
|
-
}, [["__scopeId", "data-v-4da10016"]]),
|
|
49084
|
+
}, [["__scopeId", "data-v-4da10016"]]), RY = {
|
|
49089
49085
|
class: "account-settings",
|
|
49090
49086
|
"aria-labelledby": "account-heading"
|
|
49091
|
-
},
|
|
49087
|
+
}, zY = {
|
|
49092
49088
|
key: 0,
|
|
49093
49089
|
class: "fine-print",
|
|
49094
49090
|
role: "status"
|
|
49095
|
-
},
|
|
49091
|
+
}, BY = ["aria-label"], VY = { class: "fine-print account-intro" }, HY = {
|
|
49096
49092
|
key: 0,
|
|
49097
49093
|
class: "account-message is-error",
|
|
49098
49094
|
role: "status"
|
|
49099
|
-
}, HY = {
|
|
49100
|
-
key: 1,
|
|
49101
|
-
class: "fine-print"
|
|
49102
49095
|
}, UY = {
|
|
49103
49096
|
key: 1,
|
|
49104
49097
|
class: "fine-print"
|
|
49105
49098
|
}, WY = {
|
|
49099
|
+
key: 1,
|
|
49100
|
+
class: "fine-print"
|
|
49101
|
+
}, GY = {
|
|
49106
49102
|
key: 2,
|
|
49107
49103
|
class: "account-message is-error",
|
|
49108
49104
|
role: "alert"
|
|
49109
|
-
},
|
|
49105
|
+
}, KY = {
|
|
49110
49106
|
key: 3,
|
|
49111
49107
|
class: "account-message",
|
|
49112
49108
|
role: "status"
|
|
49113
|
-
},
|
|
49109
|
+
}, qY = { class: "account-actions" }, JY = {
|
|
49114
49110
|
key: 2,
|
|
49115
49111
|
class: "account-profile"
|
|
49116
|
-
},
|
|
49112
|
+
}, YY = { class: "account-identity" }, XY = { class: "account-avatar-actions" }, ZY = { class: "account-name-row" }, QY = {
|
|
49117
49113
|
key: 0,
|
|
49118
49114
|
class: "account-message is-error",
|
|
49119
49115
|
role: "alert"
|
|
49120
|
-
},
|
|
49116
|
+
}, $Y = {
|
|
49121
49117
|
key: 1,
|
|
49122
49118
|
class: "account-message",
|
|
49123
49119
|
role: "status"
|
|
49124
|
-
},
|
|
49120
|
+
}, eX = {
|
|
49125
49121
|
key: 2,
|
|
49126
49122
|
class: "account-signout account-actions"
|
|
49127
|
-
},
|
|
49123
|
+
}, tX = {
|
|
49128
49124
|
__name: "AccountSettings",
|
|
49129
49125
|
setup(e) {
|
|
49130
49126
|
let { view: t, bridge: n } = xr("discussion"), r = Z(() => t.value.admin), i = Z(() => r.value.profile), a = Z(() => r.value.loaded ? r.value.registered ? r.value.logged_in ? "profile" : "login" : "register" : "loading"), o = /* @__PURE__ */ F(""), s = /* @__PURE__ */ Yt({
|
|
@@ -49192,13 +49188,13 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49192
49188
|
}
|
|
49193
49189
|
return (e, t) => {
|
|
49194
49190
|
let p = YV, y = zV, b = MA, x = pA;
|
|
49195
|
-
return U(), W("section",
|
|
49191
|
+
return U(), W("section", RY, [t[9] ||= K("h3", { id: "account-heading" }, "账号", -1), a.value === "loading" ? (U(), W("p", zY, "正在读取账号状态…")) : a.value === "register" || a.value === "login" ? (U(), W("form", {
|
|
49196
49192
|
key: 1,
|
|
49197
49193
|
class: "dialog-form account-form",
|
|
49198
49194
|
"aria-label": a.value === "register" ? "设置管理员账号" : "登录管理员账号",
|
|
49199
49195
|
onSubmit: uu(m, ["prevent"])
|
|
49200
49196
|
}, [
|
|
49201
|
-
K("p",
|
|
49197
|
+
K("p", VY, [a.value === "register" ? (U(), W(H, { key: 0 }, [J("设置站点管理员账号:名称和头像对所有访客可见,登录后可在没有房间凭据的浏览器中存档、恢复、删除房间。")], 64)) : (U(), W(H, { key: 1 }, [J("登录后可管理房间;未登录时仍可阅读并使用本浏览器创建的房间。")], 64))]),
|
|
49202
49198
|
q(y, {
|
|
49203
49199
|
label: "用户名",
|
|
49204
49200
|
description: a.value === "register" ? "1–30 个字符,也是公开显示的名称" : void 0,
|
|
@@ -49265,24 +49261,24 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49265
49261
|
}, null, 8, ["modelValue", "disabled"])]),
|
|
49266
49262
|
_: 1
|
|
49267
49263
|
}),
|
|
49268
|
-
f.value ? (U(), W("p",
|
|
49264
|
+
f.value ? (U(), W("p", HY, [...t[6] ||= [
|
|
49269
49265
|
J("尚无可用的注册令牌。请在部署网站的电脑上运行 ", -1),
|
|
49270
49266
|
K("code", null, "codiscuss token", -1),
|
|
49271
49267
|
J(",再刷新本页;本地版也可设置环境变量 DISCUSS_ADMIN_SETUP_KEY 后重启。", -1)
|
|
49272
|
-
]])) : (U(), W("p",
|
|
49268
|
+
]])) : (U(), W("p", UY, [...t[7] ||= [
|
|
49273
49269
|
J("首个注册者需要令牌,防止他人抢注:在部署网站的电脑上运行 ", -1),
|
|
49274
49270
|
K("code", null, "codiscuss token", -1),
|
|
49275
49271
|
J(" 获取(一次性);本地版也可用服务端启动日志里的安装令牌。在已连接本机服务的电脑上注册时,账号与密码会保存到 ~/.codiscuss。忘记密码:本地版运行 ", -1),
|
|
49276
49272
|
K("code", null, "python server.py --reset-admin", -1),
|
|
49277
49273
|
J(" 后重新注册;Cloudflare 版需清空管理员表(见部署文档)。", -1)
|
|
49278
49274
|
]]))
|
|
49279
|
-
], 64)) : (U(), W("p",
|
|
49275
|
+
], 64)) : (U(), W("p", WY, [...t[8] ||= [
|
|
49280
49276
|
J("忘记密码:本地版运行 ", -1),
|
|
49281
49277
|
K("code", null, "python server.py --reset-admin", -1),
|
|
49282
49278
|
J(" 后重新注册;Cloudflare 版需清空管理员表(见部署文档)。", -1)
|
|
49283
49279
|
]])),
|
|
49284
|
-
s.auth.error ? (U(), W("p",
|
|
49285
|
-
K("div",
|
|
49280
|
+
s.auth.error ? (U(), W("p", GY, P(s.auth.error), 1)) : s.auth.notice ? (U(), W("p", KY, P(s.auth.notice), 1)) : Y("", !0),
|
|
49281
|
+
K("div", qY, [q(b, {
|
|
49286
49282
|
type: "submit",
|
|
49287
49283
|
class: "channel-primary-button",
|
|
49288
49284
|
label: a.value === "register" ? "创建并登录" : "登录",
|
|
@@ -49293,13 +49289,13 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49293
49289
|
"loading",
|
|
49294
49290
|
"disabled"
|
|
49295
49291
|
])])
|
|
49296
|
-
], 40,
|
|
49297
|
-
K("div",
|
|
49292
|
+
], 40, BY)) : (U(), W("div", JY, [
|
|
49293
|
+
K("div", YY, [q(x, {
|
|
49298
49294
|
src: I(n).identities.用户.icon,
|
|
49299
49295
|
alt: `${I(n).display_name("用户")} 的头像`,
|
|
49300
49296
|
size: "lg",
|
|
49301
49297
|
class: "channel-avatar user account-avatar"
|
|
49302
|
-
}, null, 8, ["src", "alt"]), K("div",
|
|
49298
|
+
}, null, 8, ["src", "alt"]), K("div", XY, [
|
|
49303
49299
|
K("input", {
|
|
49304
49300
|
ref_key: "avatar_input",
|
|
49305
49301
|
ref: u,
|
|
@@ -49337,7 +49333,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49337
49333
|
label: "显示名称",
|
|
49338
49334
|
description: "即用户名,对所有访客可见"
|
|
49339
49335
|
}, {
|
|
49340
|
-
default: L(() => [K("div",
|
|
49336
|
+
default: L(() => [K("div", ZY, [q(p, {
|
|
49341
49337
|
modelValue: l.value,
|
|
49342
49338
|
"onUpdate:modelValue": t[5] ||= (e) => l.value = e,
|
|
49343
49339
|
autocomplete: "username",
|
|
@@ -49355,8 +49351,8 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49355
49351
|
}, null, 8, ["loading", "disabled"])])]),
|
|
49356
49352
|
_: 1
|
|
49357
49353
|
})], 32),
|
|
49358
|
-
s.profile.error ? (U(), W("p",
|
|
49359
|
-
r.value.local ? Y("", !0) : (U(), W("div",
|
|
49354
|
+
s.profile.error ? (U(), W("p", QY, P(s.profile.error), 1)) : s.profile.notice ? (U(), W("p", $Y, P(s.profile.notice), 1)) : Y("", !0),
|
|
49355
|
+
r.value.local ? Y("", !0) : (U(), W("div", eX, [q(b, {
|
|
49360
49356
|
label: "退出登录",
|
|
49361
49357
|
icon: "i-lucide-log-out",
|
|
49362
49358
|
color: "neutral",
|
|
@@ -49369,68 +49365,68 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49369
49365
|
]))]);
|
|
49370
49366
|
};
|
|
49371
49367
|
}
|
|
49372
|
-
},
|
|
49368
|
+
}, nX = {
|
|
49373
49369
|
key: 0,
|
|
49374
49370
|
class: "channel-archive-manager"
|
|
49375
|
-
},
|
|
49371
|
+
}, rX = { class: "channel-archive-toolbar" }, iX = {
|
|
49376
49372
|
key: 0,
|
|
49377
49373
|
class: "channel-archive-confirm channel-archive-bulk",
|
|
49378
49374
|
role: "alert"
|
|
49379
|
-
},
|
|
49375
|
+
}, aX = {
|
|
49380
49376
|
key: 1,
|
|
49381
49377
|
role: "alert",
|
|
49382
49378
|
class: "channel-directory-error"
|
|
49383
|
-
},
|
|
49379
|
+
}, oX = { class: "channel-archive-results" }, sX = {
|
|
49384
49380
|
key: 0,
|
|
49385
49381
|
class: "channel-archive-list",
|
|
49386
49382
|
"aria-label": "已存档房间列表"
|
|
49387
|
-
},
|
|
49383
|
+
}, cX = { class: "channel-archive-row" }, lX = { class: "channel-archive-info" }, uX = [
|
|
49388
49384
|
"title",
|
|
49389
49385
|
"disabled",
|
|
49390
49386
|
"onClick"
|
|
49391
|
-
],
|
|
49387
|
+
], dX = { key: 0 }, fX = ["datetime"], pX = { class: "channel-archive-actions" }, mX = {
|
|
49392
49388
|
key: 0,
|
|
49393
49389
|
class: "channel-archive-confirm channel-archive-bulk",
|
|
49394
49390
|
role: "alert"
|
|
49395
|
-
},
|
|
49391
|
+
}, hX = {
|
|
49396
49392
|
key: 1,
|
|
49397
49393
|
class: "channel-archive-empty"
|
|
49398
|
-
},
|
|
49394
|
+
}, gX = { class: "fine-print" }, _X = {
|
|
49399
49395
|
key: 0,
|
|
49400
49396
|
class: "fine-print"
|
|
49401
|
-
},
|
|
49397
|
+
}, vX = { class: "dialog-actions" }, yX = { class: "fine-print" }, bX = { class: "dialog-actions" }, xX = { class: "dialog-actions" }, SX = { class: "channel-management-target" }, CX = {
|
|
49402
49398
|
key: 0,
|
|
49403
49399
|
class: "fine-print"
|
|
49404
|
-
},
|
|
49400
|
+
}, wX = {
|
|
49405
49401
|
key: 1,
|
|
49406
49402
|
class: "fine-print"
|
|
49407
|
-
},
|
|
49403
|
+
}, TX = {
|
|
49408
49404
|
key: 2,
|
|
49409
49405
|
class: "fine-print"
|
|
49410
|
-
},
|
|
49406
|
+
}, EX = { class: "dialog-actions" }, DX = { key: 5 }, OX = { class: "theme-choices" }, kX = ["aria-pressed", "onClick"], AX = { class: "theme-check" }, jX = { class: "channel-reading-setting" }, MX = {
|
|
49411
49407
|
class: "channel-reading-options",
|
|
49412
49408
|
role: "group",
|
|
49413
49409
|
"aria-labelledby": "channel-reading-label"
|
|
49414
|
-
},
|
|
49410
|
+
}, NX = { class: "channel-reading-setting" }, PX = {
|
|
49415
49411
|
class: "channel-reading-options channel-effect-options",
|
|
49416
49412
|
role: "group",
|
|
49417
49413
|
"aria-labelledby": "channel-effects-label"
|
|
49418
|
-
},
|
|
49414
|
+
}, FX = { class: "advanced-content" }, IX = {
|
|
49419
49415
|
key: 0,
|
|
49420
49416
|
class: "fine-print"
|
|
49421
|
-
},
|
|
49417
|
+
}, LX = { class: "advanced-content" }, RX = { class: "expert-fields" }, zX = { class: "dialog-actions" }, BX = { class: "dialog-actions" }, VX = {
|
|
49422
49418
|
key: 9,
|
|
49423
49419
|
class: "original-message"
|
|
49424
|
-
},
|
|
49420
|
+
}, HX = {
|
|
49425
49421
|
key: 0,
|
|
49426
49422
|
role: "alert"
|
|
49427
|
-
},
|
|
49423
|
+
}, UX = { class: "original-meta" }, WX = { class: "fine-print" }, GX = {
|
|
49428
49424
|
key: 0,
|
|
49429
49425
|
class: "channel-answer-summary"
|
|
49430
|
-
},
|
|
49426
|
+
}, KX = { class: "message-prose" }, qX = { class: "message-prose" }, JX = ["innerHTML"], YX = {
|
|
49431
49427
|
key: 2,
|
|
49432
49428
|
class: "fine-print"
|
|
49433
|
-
},
|
|
49429
|
+
}, XX = "topic-expert-modes", ZX = {
|
|
49434
49430
|
__name: "WorkspaceDialogs",
|
|
49435
49431
|
props: /*@__PURE__*/ Fa({
|
|
49436
49432
|
detailId: {
|
|
@@ -49722,8 +49718,8 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49722
49718
|
} : void 0,
|
|
49723
49719
|
"onAfter:leave": xe
|
|
49724
49720
|
}, {
|
|
49725
|
-
body: L(() => [a.value === "archives" ? (U(), W("section",
|
|
49726
|
-
K("div",
|
|
49721
|
+
body: L(() => [a.value === "archives" ? (U(), W("section", nX, [
|
|
49722
|
+
K("div", rX, [
|
|
49727
49723
|
q(x, {
|
|
49728
49724
|
modelValue: h.value,
|
|
49729
49725
|
"onUpdate:modelValue": c[0] ||= (e) => h.value = e,
|
|
@@ -49752,7 +49748,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49752
49748
|
}
|
|
49753
49749
|
}, null, 8, ["label", "disabled"])
|
|
49754
49750
|
]),
|
|
49755
|
-
b.value && v.value.length ? (U(), W("div",
|
|
49751
|
+
b.value && v.value.length ? (U(), W("div", iX, [
|
|
49756
49752
|
K("span", null, "将永久删除当前列表中的 " + P(v.value.length) + " 个房间及其全部记录,无法撤销。", 1),
|
|
49757
49753
|
q(fe, {
|
|
49758
49754
|
label: "取消",
|
|
@@ -49768,20 +49764,20 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49768
49764
|
onClick: ee
|
|
49769
49765
|
})
|
|
49770
49766
|
])) : Y("", !0),
|
|
49771
|
-
I(o).directory_error ? (U(), W("p",
|
|
49772
|
-
K("div",
|
|
49767
|
+
I(o).directory_error ? (U(), W("p", aX, P(I(o).directory_error), 1)) : Y("", !0),
|
|
49768
|
+
K("div", oX, [v.value.length ? (U(), W("ul", sX, [(U(!0), W(H, null, B(v.value, (e) => (U(), W("li", {
|
|
49773
49769
|
key: e.id,
|
|
49774
49770
|
class: "channel-archive-item"
|
|
49775
|
-
}, [K("div",
|
|
49771
|
+
}, [K("div", cX, [K("div", lX, [K("button", {
|
|
49776
49772
|
class: "channel-archive-title",
|
|
49777
49773
|
title: e.title,
|
|
49778
49774
|
disabled: !!I(u),
|
|
49779
49775
|
onClick: (t) => T(e)
|
|
49780
|
-
}, P(e.title), 9,
|
|
49776
|
+
}, P(e.title), 9, uX), K("small", null, [e.created_at ? (U(), W("span", dX, [
|
|
49781
49777
|
c[28] ||= J("创建于 ", -1),
|
|
49782
|
-
K("time", { datetime: e.created_at }, P(C(e.created_at)), 9,
|
|
49778
|
+
K("time", { datetime: e.created_at }, P(C(e.created_at)), 9, fX),
|
|
49783
49779
|
c[29] ||= J(" · ", -1)
|
|
49784
|
-
])) : Y("", !0), J(P(e.message_count) + " 条消息", 1)])]), K("div",
|
|
49780
|
+
])) : Y("", !0), J(P(e.message_count) + " 条消息", 1)])]), K("div", pX, [q(fe, {
|
|
49785
49781
|
"aria-label": `彻底删除 ${e.title}`,
|
|
49786
49782
|
title: "彻底删除",
|
|
49787
49783
|
icon: "i-lucide-trash-2",
|
|
@@ -49813,7 +49809,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49813
49809
|
"aria-label",
|
|
49814
49810
|
"disabled",
|
|
49815
49811
|
"onClick"
|
|
49816
|
-
])])]), y.value === e.id ? (U(), W("div",
|
|
49812
|
+
])])]), y.value === e.id ? (U(), W("div", mX, [
|
|
49817
49813
|
K("span", null, "永久删除「" + P(e.title) + "」及其全部记录,无法撤销。", 1),
|
|
49818
49814
|
q(fe, {
|
|
49819
49815
|
label: "取消",
|
|
@@ -49829,15 +49825,15 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49829
49825
|
disabled: w(e),
|
|
49830
49826
|
onClick: E
|
|
49831
49827
|
}, null, 8, ["disabled"])
|
|
49832
|
-
])) : Y("", !0)]))), 128))])) : (U(), W("p",
|
|
49828
|
+
])) : Y("", !0)]))), 128))])) : (U(), W("p", hX, P(m.value.length ? "没有匹配的存档房间" : "暂无已存档房间"), 1))])
|
|
49833
49829
|
])) : a.value === "delete-folder" ? (U(), W("form", {
|
|
49834
49830
|
key: 1,
|
|
49835
49831
|
class: "dialog-form",
|
|
49836
49832
|
onSubmit: c[7] ||= uu((e) => ae(!1), ["prevent"])
|
|
49837
49833
|
}, [
|
|
49838
|
-
K("p",
|
|
49839
|
-
ie.value.length ? (U(), W("p",
|
|
49840
|
-
K("div",
|
|
49834
|
+
K("p", gX, "仅移除「" + P(e.targetFolder?.name) + "」时,房间变为未分组,所有消息和存档状态都会保留。", 1),
|
|
49835
|
+
ie.value.length ? (U(), W("p", _X, "也可以连同其中的 " + P(ie.value.length) + " 个房间一起永久删除,无法撤销。", 1)) : Y("", !0),
|
|
49836
|
+
K("div", vX, [
|
|
49841
49837
|
q(fe, {
|
|
49842
49838
|
label: "取消",
|
|
49843
49839
|
color: "neutral",
|
|
@@ -49862,7 +49858,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49862
49858
|
key: 2,
|
|
49863
49859
|
class: "dialog-form",
|
|
49864
49860
|
onSubmit: uu(oe, ["prevent"])
|
|
49865
|
-
}, [K("p",
|
|
49861
|
+
}, [K("p", yX, "存档「" + P(e.targetFolder?.name) + "」中的 " + P(ie.value.length) + " 个房间,文件夹保留。存档后可在侧栏「已存档」中查阅与恢复;尚未收束的讨论会暂停。", 1), K("div", bX, [q(fe, {
|
|
49866
49862
|
label: "取消",
|
|
49867
49863
|
color: "neutral",
|
|
49868
49864
|
variant: "ghost",
|
|
@@ -49892,7 +49888,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49892
49888
|
"modelValue",
|
|
49893
49889
|
"aria-label",
|
|
49894
49890
|
"readonly"
|
|
49895
|
-
]), K("div",
|
|
49891
|
+
]), K("div", xX, [q(fe, {
|
|
49896
49892
|
label: "取消",
|
|
49897
49893
|
color: "neutral",
|
|
49898
49894
|
variant: "ghost",
|
|
@@ -49917,10 +49913,10 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49917
49913
|
class: "dialog-form",
|
|
49918
49914
|
onSubmit: uu(ne, ["prevent"])
|
|
49919
49915
|
}, [
|
|
49920
|
-
K("p",
|
|
49921
|
-
a.value === "archive" ? (U(), W("p",
|
|
49922
|
-
a.value === "restore" ? (U(), W("p",
|
|
49923
|
-
a.value === "delete" ? (U(), W("p",
|
|
49916
|
+
K("p", SX, [J(P(e.targetRoom?.title) + " ", 1), K("span", null, "· " + P(e.targetRoom?.message_count) + " 条消息", 1)]),
|
|
49917
|
+
a.value === "archive" ? (U(), W("p", CX, "存档后可在侧栏「已存档」中查阅与恢复。已有发言安排会保留;专家需在下次检查时停止自己的定时任务。")) : Y("", !0),
|
|
49918
|
+
a.value === "restore" ? (U(), W("p", wX, "恢复不会自动继续讨论;需要继续时,在主持设置中调整阶段。")) : Y("", !0),
|
|
49919
|
+
a.value === "delete" ? (U(), W("p", TX, "消息、共识和发言安排将一起删除,无法撤销。")) : Y("", !0),
|
|
49924
49920
|
a.value === "rename" ? (U(), G(pe, {
|
|
49925
49921
|
key: 3,
|
|
49926
49922
|
label: "房间名称",
|
|
@@ -49937,7 +49933,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49937
49933
|
}, null, 8, ["modelValue"])]),
|
|
49938
49934
|
_: 1
|
|
49939
49935
|
})) : Y("", !0),
|
|
49940
|
-
K("div",
|
|
49936
|
+
K("div", EX, [q(fe, {
|
|
49941
49937
|
label: "取消",
|
|
49942
49938
|
color: "neutral",
|
|
49943
49939
|
variant: "ghost",
|
|
@@ -49954,10 +49950,10 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49954
49950
|
"loading",
|
|
49955
49951
|
"disabled"
|
|
49956
49952
|
])])
|
|
49957
|
-
], 32)) : a.value === "settings" ? (U(), W("div",
|
|
49958
|
-
q(
|
|
49953
|
+
], 32)) : a.value === "settings" ? (U(), W("div", DX, [
|
|
49954
|
+
q(tX),
|
|
49959
49955
|
c[34] ||= K("h3", { class: "account-appearance-heading" }, "外观", -1),
|
|
49960
|
-
K("div",
|
|
49956
|
+
K("div", OX, [(U(), W(H, null, B(_e, (e) => K("button", {
|
|
49961
49957
|
key: e.value,
|
|
49962
49958
|
class: j({ chosen: I(o).theme === e.value }),
|
|
49963
49959
|
"aria-pressed": I(o).theme === e.value,
|
|
@@ -49972,12 +49968,12 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49972
49968
|
K("b")
|
|
49973
49969
|
], -1)]], 2),
|
|
49974
49970
|
K("span", null, [K("strong", null, P(e.title), 1), K("small", null, P(e.description), 1)]),
|
|
49975
|
-
K("span",
|
|
49971
|
+
K("span", AX, [I(o).theme === e.value ? (U(), G(ye, {
|
|
49976
49972
|
key: 0,
|
|
49977
49973
|
name: "i-lucide-check"
|
|
49978
49974
|
})) : Y("", !0)])
|
|
49979
|
-
], 10,
|
|
49980
|
-
K("section",
|
|
49975
|
+
], 10, kX)), 64))]),
|
|
49976
|
+
K("section", jX, [c[31] ||= K("h3", { id: "channel-reading-label" }, "对话宽度", -1), K("div", MX, [(U(!0), W(H, null, B(e.readingOptions, (e) => (U(), G(fe, {
|
|
49981
49977
|
key: e.value,
|
|
49982
49978
|
label: e.label,
|
|
49983
49979
|
color: "neutral",
|
|
@@ -49991,9 +49987,9 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
49991
49987
|
"aria-pressed",
|
|
49992
49988
|
"onClick"
|
|
49993
49989
|
]))), 128))])]),
|
|
49994
|
-
K("section",
|
|
49990
|
+
K("section", NX, [
|
|
49995
49991
|
c[32] ||= K("h3", { id: "channel-effects-label" }, "视觉效果", -1),
|
|
49996
|
-
K("div",
|
|
49992
|
+
K("div", PX, [(U(!0), W(H, null, B(e.effectOptions, (e) => (U(), G(fe, {
|
|
49997
49993
|
key: e.value,
|
|
49998
49994
|
label: e.label,
|
|
49999
49995
|
color: "neutral",
|
|
@@ -50009,7 +50005,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50009
50005
|
]))), 128))]),
|
|
50010
50006
|
c[33] ||= K("p", { class: "fine-print" }, "精简模式关闭毛玻璃模糊与多层阴影,适合配置较低或需要更流畅滚动的设备。", -1)
|
|
50011
50007
|
])
|
|
50012
|
-
])) : a.value === "create" ? (U(), G(
|
|
50008
|
+
])) : a.value === "create" ? (U(), G(LY, {
|
|
50013
50009
|
key: 6,
|
|
50014
50010
|
"target-folder": e.targetFolder,
|
|
50015
50011
|
onSubmit: N,
|
|
@@ -50067,7 +50063,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50067
50063
|
}, null, 8, ["model-value"])]),
|
|
50068
50064
|
_: 1
|
|
50069
50065
|
})) : Y("", !0),
|
|
50070
|
-
K("section",
|
|
50066
|
+
K("section", FX, [
|
|
50071
50067
|
c[35] ||= K("h3", null, "讨论上限", -1),
|
|
50072
50068
|
q(yU, {
|
|
50073
50069
|
ref_key: "topic_limits",
|
|
@@ -50087,14 +50083,14 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50087
50083
|
"execution",
|
|
50088
50084
|
"disabled"
|
|
50089
50085
|
]),
|
|
50090
|
-
de.value ? (U(), W("p",
|
|
50086
|
+
de.value ? (U(), W("p", IX, "讨论未结束时,上限不可在此修改。")) : Y("", !0)
|
|
50091
50087
|
]),
|
|
50092
50088
|
q(Te, {
|
|
50093
50089
|
open: le.value,
|
|
50094
50090
|
"onUpdate:open": c[22] ||= (e) => le.value = e,
|
|
50095
50091
|
class: "advanced-fields"
|
|
50096
50092
|
}, {
|
|
50097
|
-
content: L(() => [K("div",
|
|
50093
|
+
content: L(() => [K("div", LX, [
|
|
50098
50094
|
(U(), W(H, null, B([
|
|
50099
50095
|
{
|
|
50100
50096
|
key: "user_request",
|
|
@@ -50121,11 +50117,11 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50121
50117
|
}, null, 8, ["model-value", "onUpdate:modelValue"])]),
|
|
50122
50118
|
_: 2
|
|
50123
50119
|
}, 1032, ["label"])), 64)),
|
|
50124
|
-
K("div",
|
|
50125
|
-
"model-value": I(o).experts[
|
|
50120
|
+
K("div", RX, [(U(!0), W(H, null, B(I(k), (e) => (U(), W("div", { key: e }, [K("label", null, P(e), 1), q(S, {
|
|
50121
|
+
"model-value": I(o).experts[XX]?.[e] || "none",
|
|
50126
50122
|
items: ce,
|
|
50127
50123
|
"aria-label": `${e} 参与方式`,
|
|
50128
|
-
"onUpdate:modelValue": (t) => I(s).write_expert(
|
|
50124
|
+
"onUpdate:modelValue": (t) => I(s).write_expert(XX, e, t === "none" ? "" : t)
|
|
50129
50125
|
}, null, 8, [
|
|
50130
50126
|
"model-value",
|
|
50131
50127
|
"aria-label",
|
|
@@ -50143,7 +50139,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50143
50139
|
}, null, 8, ["trailing-icon"])]),
|
|
50144
50140
|
_: 1
|
|
50145
50141
|
}, 8, ["open"]),
|
|
50146
|
-
K("div",
|
|
50142
|
+
K("div", zX, [q(fe, {
|
|
50147
50143
|
label: "取消",
|
|
50148
50144
|
color: "neutral",
|
|
50149
50145
|
variant: "ghost",
|
|
@@ -50187,7 +50183,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50187
50183
|
_: 1
|
|
50188
50184
|
}),
|
|
50189
50185
|
c[37] ||= K("p", { class: "fine-print" }, "创建后为待通知状态;由主持人实际联系专家。", -1),
|
|
50190
|
-
K("div",
|
|
50186
|
+
K("div", BX, [q(fe, {
|
|
50191
50187
|
label: "取消",
|
|
50192
50188
|
variant: "ghost",
|
|
50193
50189
|
color: "neutral",
|
|
@@ -50198,8 +50194,8 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50198
50194
|
label: "创建发言安排",
|
|
50199
50195
|
loading: I(u) === "schedule"
|
|
50200
50196
|
}, null, 8, ["loading"])])
|
|
50201
|
-
], 32)) : a.value === "message" ? (U(), W("div",
|
|
50202
|
-
K("div",
|
|
50197
|
+
], 32)) : a.value === "message" ? (U(), W("div", VX, [me.value ? (U(), W("p", HX, P(me.value), 1)) : A.value ? (U(), W(H, { key: 1 }, [
|
|
50198
|
+
K("div", UX, [
|
|
50203
50199
|
K("strong", null, P(I(s).display_name(A.value.author)), 1),
|
|
50204
50200
|
K("span", null, "#" + P(A.value.id), 1),
|
|
50205
50201
|
q(Ee, {
|
|
@@ -50210,14 +50206,14 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50210
50206
|
_: 1
|
|
50211
50207
|
})
|
|
50212
50208
|
]),
|
|
50213
|
-
K("p",
|
|
50214
|
-
A.value.summary ? (U(), W("section",
|
|
50215
|
-
K("p",
|
|
50209
|
+
K("p", WX, P(I(s).provenance(A.value)) + " · " + P(new Date(A.value.created_at).toLocaleString("zh-CN")), 1),
|
|
50210
|
+
A.value.summary ? (U(), W("section", GX, [K("small", null, "回答摘要 · " + P(I(s).display_name(A.value.summary_by)), 1), K("p", KX, P(A.value.summary), 1)])) : Y("", !0),
|
|
50211
|
+
K("p", qX, P(A.value.text), 1),
|
|
50216
50212
|
A.value.attachments?.length ? (U(), W("div", {
|
|
50217
50213
|
key: 1,
|
|
50218
50214
|
onClick: be,
|
|
50219
50215
|
innerHTML: I(s).attachment_markup(A.value.attachments)
|
|
50220
|
-
}, null, 8,
|
|
50216
|
+
}, null, 8, JX)) : Y("", !0),
|
|
50221
50217
|
A.value.reply_to ? (U(), G(fe, {
|
|
50222
50218
|
key: 2,
|
|
50223
50219
|
label: `查看被回复的原文 #${A.value.reply_to}`,
|
|
@@ -50227,7 +50223,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50227
50223
|
class: "channel-surface-button",
|
|
50228
50224
|
onClick: Se
|
|
50229
50225
|
}, null, 8, ["label"])) : Y("", !0)
|
|
50230
|
-
], 64)) : (U(), W("p",
|
|
50226
|
+
], 64)) : (U(), W("p", YX, "正在读取原文…"))])) : Y("", !0)]),
|
|
50231
50227
|
_: 1
|
|
50232
50228
|
}, 8, [
|
|
50233
50229
|
"open",
|
|
@@ -50238,7 +50234,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50238
50234
|
]);
|
|
50239
50235
|
};
|
|
50240
50236
|
}
|
|
50241
|
-
},
|
|
50237
|
+
}, QX = {
|
|
50242
50238
|
__name: "ContextMenuContent",
|
|
50243
50239
|
props: {
|
|
50244
50240
|
items: {
|
|
@@ -50533,7 +50529,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50533
50529
|
"disabled",
|
|
50534
50530
|
"text-value",
|
|
50535
50531
|
"class"
|
|
50536
|
-
]), q(
|
|
50532
|
+
]), q(QX, X({
|
|
50537
50533
|
sub: "",
|
|
50538
50534
|
class: r.ui?.content,
|
|
50539
50535
|
ui: e.ui,
|
|
@@ -50644,7 +50640,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50644
50640
|
_: 3
|
|
50645
50641
|
}, 16)], 64));
|
|
50646
50642
|
}
|
|
50647
|
-
},
|
|
50643
|
+
}, $X = {
|
|
50648
50644
|
slots: {
|
|
50649
50645
|
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",
|
|
50650
50646
|
viewport: "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
|
|
@@ -50832,7 +50828,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50832
50828
|
}
|
|
50833
50829
|
],
|
|
50834
50830
|
defaultVariants: { size: "md" }
|
|
50835
|
-
},
|
|
50831
|
+
}, eZ = {
|
|
50836
50832
|
__name: "ContextMenu",
|
|
50837
50833
|
props: {
|
|
50838
50834
|
size: {
|
|
@@ -50902,7 +50898,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50902
50898
|
emits: ["update:open"],
|
|
50903
50899
|
setup(e, { emit: t }) {
|
|
50904
50900
|
let n = e, r = t, i = Aa(), a = AE("contextMenu", n), o = Cm(), s = jE(om(a, "modal"), r), c = /* @__PURE__ */ Sn(() => a.content), l = () => Vm(i, ["default"]), u = Z(() => oA({
|
|
50905
|
-
extend:
|
|
50901
|
+
extend: $X,
|
|
50906
50902
|
...o.ui?.contextMenu || {}
|
|
50907
50903
|
})({ size: a.size }));
|
|
50908
50904
|
return (e, t) => (U(), G(I(iC), M(Ss(I(s))), {
|
|
@@ -50914,7 +50910,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50914
50910
|
}, {
|
|
50915
50911
|
default: L(() => [V(e.$slots, "default")]),
|
|
50916
50912
|
_: 3
|
|
50917
|
-
}, 8, ["disabled", "class"])) : Y("", !0), q(
|
|
50913
|
+
}, 8, ["disabled", "class"])) : Y("", !0), q(QX, X({
|
|
50918
50914
|
class: u.value.content({ class: [!i.default && I(a).class, I(a).ui?.content] }),
|
|
50919
50915
|
ui: u.value,
|
|
50920
50916
|
"ui-override": I(a).ui
|
|
@@ -50944,20 +50940,20 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
50944
50940
|
_: 3
|
|
50945
50941
|
}, 16));
|
|
50946
50942
|
}
|
|
50947
|
-
},
|
|
50943
|
+
}, tZ = {
|
|
50948
50944
|
key: 0,
|
|
50949
50945
|
class: "channel-import-reading"
|
|
50950
|
-
},
|
|
50946
|
+
}, nZ = {
|
|
50951
50947
|
class: "channel-import-list",
|
|
50952
50948
|
"aria-live": "polite"
|
|
50953
|
-
},
|
|
50949
|
+
}, rZ = { class: "channel-import-head" }, iZ = ["title"], aZ = {
|
|
50954
50950
|
key: 0,
|
|
50955
50951
|
role: "alert",
|
|
50956
50952
|
class: "channel-import-error"
|
|
50957
|
-
},
|
|
50953
|
+
}, oZ = {
|
|
50958
50954
|
key: 1,
|
|
50959
50955
|
class: "channel-import-members"
|
|
50960
|
-
},
|
|
50956
|
+
}, sZ = ["title"], cZ = { class: "dialog-actions" }, lZ = /*#__PURE__*/ YH({
|
|
50961
50957
|
__name: "ImportDialog",
|
|
50962
50958
|
props: {
|
|
50963
50959
|
open: {
|
|
@@ -51013,21 +51009,21 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51013
51009
|
}
|
|
51014
51010
|
}, {
|
|
51015
51011
|
body: L(() => [
|
|
51016
|
-
!r.value.done && !r.value.rooms.length ? (U(), W("p",
|
|
51017
|
-
K("ul",
|
|
51012
|
+
!r.value.done && !r.value.rooms.length ? (U(), W("p", tZ, "正在读取备份文件…")) : Y("", !0),
|
|
51013
|
+
K("ul", nZ, [(U(!0), W(H, null, B(r.value.rooms, (e, t) => (U(), W("li", {
|
|
51018
51014
|
key: t,
|
|
51019
51015
|
class: j(["channel-import-room", `is-${e.status}`])
|
|
51020
51016
|
}, [
|
|
51021
|
-
K("div",
|
|
51017
|
+
K("div", rZ, [
|
|
51022
51018
|
q(o, {
|
|
51023
51019
|
name: i[e.status].icon,
|
|
51024
51020
|
class: j({ "animate-spin": e.status === "importing" })
|
|
51025
51021
|
}, null, 8, ["name", "class"]),
|
|
51026
|
-
K("strong", { title: e.title }, P(e.title), 9,
|
|
51022
|
+
K("strong", { title: e.title }, P(e.title), 9, iZ),
|
|
51027
51023
|
K("span", null, P(i[e.status].label), 1)
|
|
51028
51024
|
]),
|
|
51029
|
-
e.error ? (U(), W("p",
|
|
51030
|
-
e.members.length ? (U(), W("ul",
|
|
51025
|
+
e.error ? (U(), W("p", aZ, P(e.error), 1)) : Y("", !0),
|
|
51026
|
+
e.members.length ? (U(), W("ul", oZ, [(U(!0), W(H, null, B(e.members, (e) => (U(), W("li", {
|
|
51031
51027
|
key: e.name,
|
|
51032
51028
|
class: j({ "is-failed": e.failed })
|
|
51033
51029
|
}, [
|
|
@@ -51036,7 +51032,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51036
51032
|
e.resume ? (U(), W("code", {
|
|
51037
51033
|
key: 0,
|
|
51038
51034
|
title: `没有开着的原窗口时,在 ${e.resume.cwd} 运行`
|
|
51039
|
-
}, P(e.resume.command), 9,
|
|
51035
|
+
}, P(e.resume.command), 9, sZ)) : Y("", !0)
|
|
51040
51036
|
], 2))), 128))])) : Y("", !0),
|
|
51041
51037
|
(U(!0), W(H, null, B(e.problems, (e) => (U(), W("p", {
|
|
51042
51038
|
key: e,
|
|
@@ -51048,7 +51044,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51048
51044
|
role: "alert",
|
|
51049
51045
|
class: "channel-import-error is-file"
|
|
51050
51046
|
}, P(e), 1))), 128)),
|
|
51051
|
-
K("div",
|
|
51047
|
+
K("div", cZ, [q(s, {
|
|
51052
51048
|
label: "完成",
|
|
51053
51049
|
class: "channel-primary-button",
|
|
51054
51050
|
disabled: !r.value.done,
|
|
@@ -51064,47 +51060,47 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51064
51060
|
]);
|
|
51065
51061
|
};
|
|
51066
51062
|
}
|
|
51067
|
-
}, [["__scopeId", "data-v-03a2f1dd"]]),
|
|
51063
|
+
}, [["__scopeId", "data-v-03a2f1dd"]]), uZ = { class: "channel-directory-manager" }, dZ = { class: "channel-directory-heading" }, fZ = ["aria-expanded"], pZ = { class: "channel-directory-actions" }, mZ = {
|
|
51068
51064
|
"aria-label": "协作房间列表",
|
|
51069
51065
|
class: "channel-room-list",
|
|
51070
51066
|
"data-room-directory": ""
|
|
51071
|
-
},
|
|
51067
|
+
}, hZ = ["data-room-folder", "data-drag-folder"], gZ = [
|
|
51072
51068
|
"disabled",
|
|
51073
51069
|
"aria-label",
|
|
51074
51070
|
"aria-expanded",
|
|
51075
51071
|
"onKeydown",
|
|
51076
51072
|
"onClick"
|
|
51077
|
-
],
|
|
51073
|
+
], _Z = { class: "channel-folder-name" }, vZ = {
|
|
51078
51074
|
class: "channel-directory-count",
|
|
51079
51075
|
"aria-hidden": "true"
|
|
51080
|
-
},
|
|
51076
|
+
}, yZ = { class: "channel-folder-actions" }, bZ = ["data-drop-folder"], xZ = {
|
|
51081
51077
|
key: 0,
|
|
51082
51078
|
class: "channel-directory-empty",
|
|
51083
51079
|
role: "status"
|
|
51084
|
-
},
|
|
51080
|
+
}, SZ = ["data-drag-room"], CZ = [
|
|
51085
51081
|
"aria-label",
|
|
51086
51082
|
"disabled",
|
|
51087
51083
|
"onKeydown"
|
|
51088
|
-
],
|
|
51084
|
+
], wZ = [
|
|
51089
51085
|
"title",
|
|
51090
51086
|
"aria-label",
|
|
51091
51087
|
"aria-current",
|
|
51092
51088
|
"onClick"
|
|
51093
|
-
],
|
|
51089
|
+
], TZ = { class: "channel-room-actions" }, EZ = {
|
|
51094
51090
|
key: 0,
|
|
51095
51091
|
class: "channel-directory-empty"
|
|
51096
|
-
},
|
|
51092
|
+
}, DZ = {
|
|
51097
51093
|
key: 0,
|
|
51098
51094
|
class: "channel-archive-count"
|
|
51099
|
-
},
|
|
51095
|
+
}, OZ = {
|
|
51100
51096
|
key: 0,
|
|
51101
51097
|
role: "status",
|
|
51102
51098
|
class: "channel-directory-notice"
|
|
51103
|
-
},
|
|
51099
|
+
}, kZ = {
|
|
51104
51100
|
key: 1,
|
|
51105
51101
|
role: "alert",
|
|
51106
51102
|
class: "channel-directory-error"
|
|
51107
|
-
},
|
|
51103
|
+
}, AZ = {
|
|
51108
51104
|
__name: "ChannelDirectory",
|
|
51109
51105
|
emits: [
|
|
51110
51106
|
"select",
|
|
@@ -51335,8 +51331,8 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51335
51331
|
];
|
|
51336
51332
|
}
|
|
51337
51333
|
return (e, t) => {
|
|
51338
|
-
let u = MA, m = sA, h = $V, b = CH, x =
|
|
51339
|
-
return U(), W("div",
|
|
51334
|
+
let u = MA, m = sA, h = $V, b = CH, x = eZ;
|
|
51335
|
+
return U(), W("div", uZ, [
|
|
51340
51336
|
q(u, {
|
|
51341
51337
|
label: "新建对话",
|
|
51342
51338
|
icon: "i-lucide-plus",
|
|
@@ -51345,12 +51341,12 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51345
51341
|
disabled: I(r).directory_pending.includes("create-room"),
|
|
51346
51342
|
onClick: t[0] ||= (e) => n("create", null)
|
|
51347
51343
|
}, null, 8, ["disabled"]),
|
|
51348
|
-
K("div",
|
|
51344
|
+
K("div", dZ, [K("button", {
|
|
51349
51345
|
type: "button",
|
|
51350
51346
|
class: "channel-section-toggle",
|
|
51351
51347
|
"aria-expanded": _.value,
|
|
51352
51348
|
onClick: t[1] ||= (e) => _.value = !_.value
|
|
51353
|
-
}, [q(m, { name: _.value ? "i-lucide-chevron-down" : "i-lucide-chevron-right" }, null, 8, ["name"]), t[8] ||= J("协作房间", -1)], 8,
|
|
51349
|
+
}, [q(m, { name: _.value ? "i-lucide-chevron-down" : "i-lucide-chevron-right" }, null, 8, ["name"]), t[8] ||= J("协作房间", -1)], 8, fZ), K("div", pZ, [
|
|
51354
51350
|
q(h, { text: "新建文件夹" }, {
|
|
51355
51351
|
default: L(() => [q(u, {
|
|
51356
51352
|
icon: "i-lucide-plus",
|
|
@@ -51392,7 +51388,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51392
51388
|
onChange: g
|
|
51393
51389
|
}, null, 544)
|
|
51394
51390
|
])]),
|
|
51395
|
-
vr(K("nav",
|
|
51391
|
+
vr(K("nav", mZ, [(U(!0), W(H, null, B(l.value, (e, s) => (U(), W("section", {
|
|
51396
51392
|
key: e.order_id,
|
|
51397
51393
|
class: "channel-folder-section",
|
|
51398
51394
|
"data-room-folder": e.id,
|
|
@@ -51421,9 +51417,9 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51421
51417
|
}, [
|
|
51422
51418
|
q(m, { name: v.value.has(e.id) ? "i-lucide-chevron-right" : "i-lucide-chevron-down" }, null, 8, ["name"]),
|
|
51423
51419
|
q(m, { name: "i-lucide-folder" }),
|
|
51424
|
-
K("span",
|
|
51425
|
-
K("small",
|
|
51426
|
-
], 40,
|
|
51420
|
+
K("span", _Z, P(e.name), 1),
|
|
51421
|
+
K("small", vZ, P(e.pending ? "保存中" : e.rooms.length), 1)
|
|
51422
|
+
], 40, gZ), K("div", yZ, [q(h, { text: `在${e.name}中新建对话` }, {
|
|
51427
51423
|
default: L(() => [q(u, {
|
|
51428
51424
|
icon: "i-lucide-square-pen",
|
|
51429
51425
|
"aria-label": `在${e.name}中新建对话`,
|
|
@@ -51460,7 +51456,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51460
51456
|
key: 1,
|
|
51461
51457
|
class: j(e.id ? "channel-folder-rooms" : "channel-root-rooms"),
|
|
51462
51458
|
"data-drop-folder": e.id ? void 0 : ""
|
|
51463
|
-
}, [I(r).creating_room && (I(r).creating_room.folder_id || "") === e.id ? (U(), W("p",
|
|
51459
|
+
}, [I(r).creating_room && (I(r).creating_room.folder_id || "") === e.id ? (U(), W("p", xZ, "正在创建:" + P(I(r).creating_room.title), 1)) : Y("", !0), (U(!0), W(H, null, B(e.rooms, (s, c) => (U(), G(x, {
|
|
51464
51460
|
key: s.id,
|
|
51465
51461
|
items: C(s, c, s.folder_id || null, e.rooms.length),
|
|
51466
51462
|
ui: { content: "channel-menu channel-topic-menu" }
|
|
@@ -51485,7 +51481,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51485
51481
|
direction: 1,
|
|
51486
51482
|
folder_id: s.folder_id || null
|
|
51487
51483
|
}), ["prevent"]), ["down"])]
|
|
51488
|
-
}, [q(m, { name: "i-lucide-grip-vertical" })], 40,
|
|
51484
|
+
}, [q(m, { name: "i-lucide-grip-vertical" })], 40, CZ),
|
|
51489
51485
|
K("button", {
|
|
51490
51486
|
class: "channel-room-select",
|
|
51491
51487
|
"data-drag-title": "",
|
|
@@ -51494,8 +51490,8 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51494
51490
|
"aria-current": s.id === I(r).room?.id ? "page" : void 0,
|
|
51495
51491
|
onPointerdown: t[5] ||= (e) => !I(o) && I(i).start_drag(e),
|
|
51496
51492
|
onClick: (e) => n("select", s.id)
|
|
51497
|
-
}, [K("span", null, P(s.title), 1)], 40,
|
|
51498
|
-
K("div",
|
|
51493
|
+
}, [K("span", null, P(s.title), 1)], 40, wZ),
|
|
51494
|
+
K("div", TZ, [q(h, {
|
|
51499
51495
|
text: s.archived ? "恢复房间" : "存档房间",
|
|
51500
51496
|
ui: { content: "channel-topic-tooltip" }
|
|
51501
51497
|
}, {
|
|
@@ -51536,9 +51532,9 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51536
51532
|
}, null, 8, ["aria-label"])]),
|
|
51537
51533
|
_: 2
|
|
51538
51534
|
}, 1032, ["items"])])
|
|
51539
|
-
], 10,
|
|
51535
|
+
], 10, SZ)]),
|
|
51540
51536
|
_: 2
|
|
51541
|
-
}, 1032, ["items"]))), 128))], 10,
|
|
51537
|
+
}, 1032, ["items"]))), 128))], 10, bZ)) : Y("", !0)], 8, hZ))), 128)), s.value.length ? Y("", !0) : (U(), W("p", EZ, "暂无协作房间"))], 512), [[Vc, _.value]]),
|
|
51542
51538
|
vr(q(u, {
|
|
51543
51539
|
icon: "i-lucide-archive",
|
|
51544
51540
|
color: "neutral",
|
|
@@ -51547,44 +51543,44 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51547
51543
|
"aria-haspopup": "dialog",
|
|
51548
51544
|
onClick: t[6] ||= (e) => n("archives")
|
|
51549
51545
|
}, {
|
|
51550
|
-
default: L(() => [t[9] ||= K("span", { class: "channel-archive-label" }, "已存档", -1), c.value ? (U(), W("small",
|
|
51546
|
+
default: L(() => [t[9] ||= K("span", { class: "channel-archive-label" }, "已存档", -1), c.value ? (U(), W("small", DZ, P(c.value), 1)) : Y("", !0)]),
|
|
51551
51547
|
_: 1
|
|
51552
51548
|
}, 512), [[Vc, _.value]]),
|
|
51553
|
-
I(r).directory_notice ? (U(), W("p",
|
|
51554
|
-
I(r).directory_error ? (U(), W("p",
|
|
51555
|
-
q(
|
|
51549
|
+
I(r).directory_notice ? (U(), W("p", OZ, P(I(r).directory_notice), 1)) : Y("", !0),
|
|
51550
|
+
I(r).directory_error ? (U(), W("p", kZ, P(I(r).directory_error), 1)) : Y("", !0),
|
|
51551
|
+
q(lZ, {
|
|
51556
51552
|
open: p.value,
|
|
51557
51553
|
"onUpdate:open": t[7] ||= (e) => p.value = e
|
|
51558
51554
|
}, null, 8, ["open"])
|
|
51559
51555
|
]);
|
|
51560
51556
|
};
|
|
51561
51557
|
}
|
|
51562
|
-
},
|
|
51558
|
+
}, jZ = {
|
|
51563
51559
|
key: 0,
|
|
51564
51560
|
class: "pb-invite",
|
|
51565
51561
|
"aria-label": "启动手动成员"
|
|
51566
|
-
},
|
|
51562
|
+
}, MZ = { class: "pb-invite-lead" }, NZ = {
|
|
51567
51563
|
key: 0,
|
|
51568
51564
|
role: "alert",
|
|
51569
51565
|
class: "pb-free-note is-error"
|
|
51570
|
-
},
|
|
51566
|
+
}, PZ = { class: "pb-invite-launches" }, FZ = { class: "pb-invite-footer" }, IZ = {
|
|
51571
51567
|
key: 0,
|
|
51572
51568
|
class: "pb-invite-cards"
|
|
51573
|
-
},
|
|
51569
|
+
}, LZ = {
|
|
51574
51570
|
key: 0,
|
|
51575
51571
|
class: "fine-print"
|
|
51576
|
-
},
|
|
51572
|
+
}, RZ = ["aria-hidden"], zZ = {
|
|
51577
51573
|
key: 2,
|
|
51578
51574
|
class: "pb-invite-empty"
|
|
51579
|
-
},
|
|
51575
|
+
}, BZ = {
|
|
51580
51576
|
key: 3,
|
|
51581
51577
|
role: "alert",
|
|
51582
51578
|
class: "fine-print"
|
|
51583
|
-
},
|
|
51579
|
+
}, VZ = {
|
|
51584
51580
|
key: 4,
|
|
51585
51581
|
role: "alert",
|
|
51586
51582
|
class: "pb-free-note is-error"
|
|
51587
|
-
},
|
|
51583
|
+
}, HZ = { class: "pb-invite-footer" }, UZ = 2e3, WZ = "preset:", GZ = /*#__PURE__*/ YH({
|
|
51588
51584
|
__name: "InviteDialog",
|
|
51589
51585
|
props: /*@__PURE__*/ Fa({ description: {
|
|
51590
51586
|
type: String,
|
|
@@ -51602,7 +51598,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51602
51598
|
async function u(e) {
|
|
51603
51599
|
clearTimeout(l), c.value = "", await i("copy_member_launch", e) && (c.value = e, l = setTimeout(() => {
|
|
51604
51600
|
c.value = "";
|
|
51605
|
-
},
|
|
51601
|
+
}, UZ));
|
|
51606
51602
|
}
|
|
51607
51603
|
let d = /* @__PURE__ */ F([]), f = 0, p = /* @__PURE__ */ F([]), m = /* @__PURE__ */ F(!1), h = Z(() => Object.keys(r.launch_clients)), g = Z(() => n.value && r.expert_presets()), _ = Z(() => (o.value.members || []).map((e) => e.name)), v = (e) => _.value.filter((t) => r.platform_of(t) === e).length, y = Z(() => [...d.value.filter((e) => e.mode !== "manual"), ...d.value.filter((e) => e.mode === "manual")]), b = Z(() => {
|
|
51608
51604
|
let e = /* @__PURE__ */ new Set([..._.value, ...d.value.filter((e) => e.preset).map((e) => e.name)]);
|
|
@@ -51641,7 +51637,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51641
51637
|
title: v(e) ? `已在场 ${v(e)} 位 · 将添加新实例` : "",
|
|
51642
51638
|
aria_label: `添加 ${e} 实例`
|
|
51643
51639
|
})), ...g.value.map((e, t) => ({
|
|
51644
|
-
value:
|
|
51640
|
+
value: WZ + e.name,
|
|
51645
51641
|
name: e.label || e.name,
|
|
51646
51642
|
...r.identities[r.platform_of(e.name)],
|
|
51647
51643
|
separated: t === 0,
|
|
@@ -51649,7 +51645,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51649
51645
|
aria_label: `添加预设 ${e.label || e.name}`
|
|
51650
51646
|
}))]);
|
|
51651
51647
|
function T(e) {
|
|
51652
|
-
if (!e.startsWith(
|
|
51648
|
+
if (!e.startsWith(WZ)) return C(e);
|
|
51653
51649
|
let t = g.value.find((t) => t.name === e.slice(7));
|
|
51654
51650
|
t && E(t);
|
|
51655
51651
|
}
|
|
@@ -51688,10 +51684,10 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51688
51684
|
body: "dialog-body"
|
|
51689
51685
|
}
|
|
51690
51686
|
}, {
|
|
51691
|
-
body: L(() => [p.value.length && !d.value.length ? (U(), W("div",
|
|
51692
|
-
K("p",
|
|
51693
|
-
I(n).access?.error ? (U(), W("p",
|
|
51694
|
-
K("ul",
|
|
51687
|
+
body: L(() => [p.value.length && !d.value.length ? (U(), W("div", jZ, [
|
|
51688
|
+
K("p", MZ, P(p.value.length > 1 ? `${p.value.length} 位手动成员已加入` : "手动成员已加入") + ",把启动指令交给各自的 AI 会话,注册后才算到场。", 1),
|
|
51689
|
+
I(n).access?.error ? (U(), W("p", NZ, P(I(n).access.error), 1)) : Y("", !0),
|
|
51690
|
+
K("ul", PZ, [(U(!0), W(H, null, B(p.value, (e) => (U(), W("li", { key: e }, [
|
|
51695
51691
|
q(l, {
|
|
51696
51692
|
src: I(r).identities[I(r).platform_of(e)]?.icon,
|
|
51697
51693
|
text: I(r).identities[I(r).platform_of(e)]?.initials,
|
|
@@ -51726,7 +51722,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51726
51722
|
])
|
|
51727
51723
|
]))), 128))]),
|
|
51728
51724
|
o[3] ||= K("p", { class: "fine-print" }, "指令含该成员的凭证,只交给对应的会话;关闭后仍可在参与者列表中复制。", -1),
|
|
51729
|
-
K("div",
|
|
51725
|
+
K("div", FZ, [q(f, {
|
|
51730
51726
|
label: "完成",
|
|
51731
51727
|
class: "channel-primary-button",
|
|
51732
51728
|
onClick: o[0] ||= (e) => t.value = !1
|
|
@@ -51742,7 +51738,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51742
51738
|
items: w.value,
|
|
51743
51739
|
onAdd: T
|
|
51744
51740
|
}, null, 8, ["items"]),
|
|
51745
|
-
d.value.length ? (U(), W("div",
|
|
51741
|
+
d.value.length ? (U(), W("div", IZ, [(U(!0), W(H, null, B(d.value, (e) => (U(), W("div", {
|
|
51746
51742
|
key: e.id,
|
|
51747
51743
|
class: "pb-invite-pick"
|
|
51748
51744
|
}, [q(MJ, {
|
|
@@ -51758,15 +51754,15 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51758
51754
|
"status",
|
|
51759
51755
|
"onMode",
|
|
51760
51756
|
"onRemove"
|
|
51761
|
-
]), b.value.get(e) === e.name ? Y("", !0) : (U(), W("p",
|
|
51757
|
+
]), b.value.get(e) === e.name ? Y("", !0) : (U(), W("p", LZ, "同一 AI 已有实例,将以 " + P(b.value.get(e)) + " 加入,使用独立会话。", 1))]))), 128))])) : Y("", !0),
|
|
51762
51758
|
d.value.length ? (U(), W("p", {
|
|
51763
51759
|
key: 1,
|
|
51764
51760
|
class: j(["fine-print", { "pb-invite-reserved": !(d.value.some((e) => e.mode === "manual") && d.value.some((e) => e.mode !== "manual")) }]),
|
|
51765
51761
|
"aria-hidden": !(d.value.some((e) => e.mode === "manual") && d.value.some((e) => e.mode !== "manual"))
|
|
51766
|
-
}, "手动启动的成员排在程序启动的成员之后加入队列。", 10,
|
|
51767
|
-
d.value.some((e) => e.mode === "cli") && !I(n).launch.available ? (U(), W("p",
|
|
51768
|
-
m.value && I(n).free_error ? (U(), W("p",
|
|
51769
|
-
K("div",
|
|
51762
|
+
}, "手动启动的成员排在程序启动的成员之后加入队列。", 10, RZ)) : (U(), W("p", zZ, "选择一位或多位 AI(同一 AI 可重复添加),点卡片翻面设置软件、模型与项目权限。")),
|
|
51763
|
+
d.value.some((e) => e.mode === "cli") && !I(n).launch.available ? (U(), W("p", BZ, "邀请需要本机服务,请在运行 AI 的电脑打开本机网站。")) : Y("", !0),
|
|
51764
|
+
m.value && I(n).free_error ? (U(), W("p", VZ, P(I(n).free_error), 1)) : Y("", !0),
|
|
51765
|
+
K("div", HZ, [q(f, {
|
|
51770
51766
|
label: "取消",
|
|
51771
51767
|
color: "neutral",
|
|
51772
51768
|
variant: "ghost",
|
|
@@ -51788,7 +51784,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51788
51784
|
}, 8, ["open", "description"]);
|
|
51789
51785
|
};
|
|
51790
51786
|
}
|
|
51791
|
-
}, [["__scopeId", "data-v-95048b60"]]),
|
|
51787
|
+
}, [["__scopeId", "data-v-95048b60"]]), KZ = { class: "start-discussion-footer" }, qZ = 3, JZ = /*#__PURE__*/ YH({
|
|
51792
51788
|
__name: "StartDiscussionDialog",
|
|
51793
51789
|
props: {
|
|
51794
51790
|
open: {
|
|
@@ -51799,9 +51795,9 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51799
51795
|
},
|
|
51800
51796
|
emits: ["update:open"],
|
|
51801
51797
|
setup(e) {
|
|
51802
|
-
let t = ro(e, "open"), { view: n, act: r, pending: i } = xr("discussion"), a = /* @__PURE__ */ F(""), o = /* @__PURE__ */ F(
|
|
51798
|
+
let t = ro(e, "open"), { view: n, act: r, pending: i } = xr("discussion"), a = /* @__PURE__ */ F(""), o = /* @__PURE__ */ F(qZ), s = /* @__PURE__ */ F(0), c = /* @__PURE__ */ F(""), l = /* @__PURE__ */ F(!1), u = /* @__PURE__ */ F(null);
|
|
51803
51799
|
R(t, (e) => {
|
|
51804
|
-
e && (a.value = "", o.value =
|
|
51800
|
+
e && (a.value = "", o.value = qZ, s.value = 0, c.value = "", l.value = !1);
|
|
51805
51801
|
});
|
|
51806
51802
|
async function d() {
|
|
51807
51803
|
u.value?.settle();
|
|
@@ -51869,7 +51865,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51869
51865
|
"minutes",
|
|
51870
51866
|
"execution_minutes"
|
|
51871
51867
|
]),
|
|
51872
|
-
K("div",
|
|
51868
|
+
K("div", KZ, [q(h, {
|
|
51873
51869
|
label: "取消",
|
|
51874
51870
|
color: "neutral",
|
|
51875
51871
|
variant: "ghost",
|
|
@@ -51887,21 +51883,21 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51887
51883
|
}, 8, ["open"]);
|
|
51888
51884
|
};
|
|
51889
51885
|
}
|
|
51890
|
-
}, [["__scopeId", "data-v-dee972d6"]]),
|
|
51886
|
+
}, [["__scopeId", "data-v-dee972d6"]]), YZ = { class: "pb-status-line" }, XZ = { role: "status" }, ZZ = {
|
|
51891
51887
|
key: 0,
|
|
51892
51888
|
class: "pb-status-detail"
|
|
51893
|
-
},
|
|
51889
|
+
}, QZ = { class: "pb-meters" }, $Z = { class: "pb-meter-label" }, eQ = {
|
|
51894
51890
|
key: 0,
|
|
51895
51891
|
class: "pb-bar"
|
|
51896
|
-
},
|
|
51892
|
+
}, tQ = {
|
|
51897
51893
|
key: 0,
|
|
51898
51894
|
class: "pb-section",
|
|
51899
51895
|
"aria-label": "当前焦点"
|
|
51900
|
-
},
|
|
51896
|
+
}, nQ = {
|
|
51901
51897
|
key: 1,
|
|
51902
51898
|
class: "pb-actions",
|
|
51903
51899
|
"aria-label": "讨论操作"
|
|
51904
|
-
},
|
|
51900
|
+
}, rQ = { class: "progress-ending" }, iQ = ["disabled"], aQ = 90, oQ = {
|
|
51905
51901
|
__name: "ProgressBoard",
|
|
51906
51902
|
setup(e) {
|
|
51907
51903
|
let { view: t, bridge: n, act: r, pending: i } = xr("discussion"), a = Z(() => t.value.room), o = Z(() => a.value.session), s = Z(() => a.value.limits || {}), c = /* @__PURE__ */ F(0);
|
|
@@ -51967,24 +51963,24 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
51967
51963
|
class: j(["pb-status", `is-${h.value.tone}`]),
|
|
51968
51964
|
"aria-label": "讨论状态"
|
|
51969
51965
|
}, [
|
|
51970
|
-
K("div",
|
|
51971
|
-
h.value.detail ? (U(), W("p",
|
|
51972
|
-
K("div",
|
|
51966
|
+
K("div", YZ, [t[6] ||= K("span", { class: "pb-dot" }, null, -1), K("strong", XZ, P(h.value.title), 1)]),
|
|
51967
|
+
h.value.detail ? (U(), W("p", ZZ, P(h.value.detail), 1)) : Y("", !0),
|
|
51968
|
+
K("div", QZ, [(U(!0), W(H, null, B(_.value, (e) => (U(), W("div", {
|
|
51973
51969
|
key: e.label,
|
|
51974
51970
|
class: "pb-meter"
|
|
51975
|
-
}, [K("div",
|
|
51971
|
+
}, [K("div", $Z, [K("span", null, P(e.label), 1), K("b", null, P(e.text), 1)]), e.ratio === null ? Y("", !0) : (U(), W("div", eQ, [K("i", { style: A({ width: `${Math.min(100, Math.round(e.ratio * 100))}%` }) }, null, 4)]))]))), 128))])
|
|
51976
51972
|
], 2),
|
|
51977
|
-
m.value ? (U(), W("section",
|
|
51973
|
+
m.value ? (U(), W("section", tQ, [
|
|
51978
51974
|
t[7] ||= K("h4", null, "当前焦点", -1),
|
|
51979
51975
|
K("p", { class: j(["pb-focus", { "is-expanded": p.value }]) }, P(m.value), 3),
|
|
51980
|
-
m.value.length >
|
|
51976
|
+
m.value.length > aQ ? (U(), W("button", {
|
|
51981
51977
|
key: 0,
|
|
51982
51978
|
type: "button",
|
|
51983
51979
|
class: "pb-link",
|
|
51984
51980
|
onClick: t[0] ||= (e) => p.value = !p.value
|
|
51985
51981
|
}, P(p.value ? "收起" : "展开"), 1)) : Y("", !0)
|
|
51986
51982
|
])) : Y("", !0),
|
|
51987
|
-
a.value.archived ? Y("", !0) : (U(), W("section",
|
|
51983
|
+
a.value.archived ? Y("", !0) : (U(), W("section", nQ, [
|
|
51988
51984
|
l.value ? (U(), G(o, {
|
|
51989
51985
|
key: 0,
|
|
51990
51986
|
icon: "i-lucide-play",
|
|
@@ -52047,51 +52043,51 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
52047
52043
|
body: "dialog-body"
|
|
52048
52044
|
}
|
|
52049
52045
|
}, {
|
|
52050
|
-
body: L(() => [K("div",
|
|
52046
|
+
body: L(() => [K("div", rQ, [K("button", {
|
|
52051
52047
|
type: "button",
|
|
52052
52048
|
class: "progress-ending-option",
|
|
52053
52049
|
disabled: !!I(i),
|
|
52054
52050
|
onClick: v
|
|
52055
|
-
}, [...t[8] ||= [K("strong", null, "结束讨论", -1), K("span", null, "保留全部记录,房间回到自由协作;需要总结时可直接请主持人写一份。", -1)]], 8,
|
|
52051
|
+
}, [...t[8] ||= [K("strong", null, "结束讨论", -1), K("span", null, "保留全部记录,房间回到自由协作;需要总结时可直接请主持人写一份。", -1)]], 8, iQ)])]),
|
|
52056
52052
|
_: 1
|
|
52057
52053
|
}, 8, ["open"])
|
|
52058
52054
|
], 64);
|
|
52059
52055
|
};
|
|
52060
52056
|
}
|
|
52061
|
-
},
|
|
52057
|
+
}, sQ = { class: "speaking-order" }, cQ = {
|
|
52062
52058
|
key: 0,
|
|
52063
52059
|
class: "speaking-order-divider",
|
|
52064
52060
|
"aria-hidden": "true"
|
|
52065
|
-
},
|
|
52061
|
+
}, lQ = ["data-key", "data-movable"], uQ = [
|
|
52066
52062
|
"aria-disabled",
|
|
52067
52063
|
"aria-label",
|
|
52068
52064
|
"title",
|
|
52069
52065
|
"onPointerdown",
|
|
52070
52066
|
"onKeydown"
|
|
52071
|
-
],
|
|
52067
|
+
], dQ = { class: "speaking-order-number" }, fQ = {
|
|
52072
52068
|
key: 1,
|
|
52073
52069
|
class: "speaking-order-place",
|
|
52074
52070
|
title: "已发言",
|
|
52075
52071
|
"aria-label": "已发言"
|
|
52076
|
-
},
|
|
52072
|
+
}, pQ = ["title"], mQ = {
|
|
52077
52073
|
key: 0,
|
|
52078
52074
|
class: "speaking-order-later"
|
|
52079
|
-
},
|
|
52075
|
+
}, hQ = {
|
|
52080
52076
|
key: 1,
|
|
52081
52077
|
class: "speaking-order-divider",
|
|
52082
52078
|
"aria-hidden": "true"
|
|
52083
|
-
},
|
|
52079
|
+
}, gQ = {
|
|
52084
52080
|
key: 0,
|
|
52085
52081
|
role: "status",
|
|
52086
52082
|
class: "pb-free-note"
|
|
52087
|
-
},
|
|
52083
|
+
}, _Q = {
|
|
52088
52084
|
key: 1,
|
|
52089
52085
|
role: "alert",
|
|
52090
52086
|
class: "pb-free-note is-error"
|
|
52091
|
-
},
|
|
52087
|
+
}, vQ = {
|
|
52092
52088
|
class: "speaking-order-live",
|
|
52093
52089
|
"aria-live": "polite"
|
|
52094
|
-
},
|
|
52090
|
+
}, yQ = "发言顺序刚有变化,已更新为最新顺序,请重新调整", bQ = /*#__PURE__*/ YH({
|
|
52095
52091
|
__name: "SpeakingOrder",
|
|
52096
52092
|
props: {
|
|
52097
52093
|
away: {
|
|
@@ -52111,7 +52107,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
52111
52107
|
}), c = Z(() => s.value.kind === "default" ? "idle" : "queued"), l = Z(() => !!n.value.access?.can_manage && !o.value.archived && s.value.movable.length > 1), u = {
|
|
52112
52108
|
queue: "不在本次依次回答中",
|
|
52113
52109
|
turns: "本轮未安排"
|
|
52114
|
-
}, d = Z(() => s.value.kind === "default" ? "拖动设置默认发言顺序,@全体依次 按此顺序;聚焦后可用上下方向键" : "拖动调整还没发言的顺序,立即生效;聚焦后可用上下方向键"), f = /* @__PURE__ */ F(!1), p = Z(() => f.value ?
|
|
52110
|
+
}, d = Z(() => s.value.kind === "default" ? "拖动设置默认发言顺序,@全体依次 按此顺序;聚焦后可用上下方向键" : "拖动调整还没发言的顺序,立即生效;聚焦后可用上下方向键"), f = /* @__PURE__ */ F(!1), p = Z(() => f.value ? yQ : n.value.order_error?.room_id === o.value.id ? n.value.order_error.message : ""), m = /* @__PURE__ */ F(null), h = /* @__PURE__ */ F(null), g = /* @__PURE__ */ F(null), _ = /* @__PURE__ */ F("");
|
|
52115
52111
|
R(() => s.value.revision, () => {
|
|
52116
52112
|
g.value = null;
|
|
52117
52113
|
}), R(() => o.value.id, () => {
|
|
@@ -52198,13 +52194,13 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
52198
52194
|
}
|
|
52199
52195
|
return (e, n) => {
|
|
52200
52196
|
let i = sA;
|
|
52201
|
-
return U(), W("div",
|
|
52197
|
+
return U(), W("div", sQ, [
|
|
52202
52198
|
K("ul", {
|
|
52203
52199
|
ref_key: "list",
|
|
52204
52200
|
ref: m,
|
|
52205
52201
|
class: j(["pb-members", { "is-dragging": h.value }])
|
|
52206
52202
|
}, [
|
|
52207
|
-
(U(!0), W(H, null, B(y.value, (t, r) => (U(), W(H, { key: t.key }, [t.outside ? (U(), W("li",
|
|
52203
|
+
(U(!0), W(H, null, B(y.value, (t, r) => (U(), W(H, { key: t.key }, [t.outside ? (U(), W("li", cQ, [K("span", null, P(u[s.value.kind]), 1)])) : Y("", !0), K("li", {
|
|
52208
52204
|
class: j(["pb-member speaking-order-row", [
|
|
52209
52205
|
`is-${t.state}`,
|
|
52210
52206
|
E(r),
|
|
@@ -52225,19 +52221,19 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
52225
52221
|
onPointercancel: n[0] ||= (e) => w(e, !0),
|
|
52226
52222
|
onLostpointercapture: n[1] ||= (e) => w(e, !0),
|
|
52227
52223
|
onKeydown: [fu((e) => ee(e, b(r), -1), ["up"]), fu((e) => ee(e, b(r), 1), ["down"])]
|
|
52228
|
-
}, [K("span",
|
|
52224
|
+
}, [K("span", dQ, P(t.place), 1), q(i, {
|
|
52229
52225
|
name: "i-lucide-grip-vertical",
|
|
52230
52226
|
class: "speaking-order-handle"
|
|
52231
|
-
})], 40,
|
|
52227
|
+
})], 40, uQ)) : t.state === "done" ? (U(), W("span", fQ, [q(i, { name: "i-lucide-check" })])) : (U(), W("span", {
|
|
52232
52228
|
key: 2,
|
|
52233
52229
|
class: "speaking-order-place",
|
|
52234
52230
|
title: t.state === "speaking" ? "正在发言" : void 0
|
|
52235
|
-
}, P(t.place || ""), 9,
|
|
52231
|
+
}, P(t.place || ""), 9, pQ)), V(e.$slots, "default", {
|
|
52236
52232
|
item: t,
|
|
52237
52233
|
place: t.place
|
|
52238
|
-
}, void 0, !0)], 10,
|
|
52239
|
-
s.value.later?.length ? (U(), W("li",
|
|
52240
|
-
t.away.length ? (U(), W("li",
|
|
52234
|
+
}, void 0, !0)], 10, lQ)], 64))), 128)),
|
|
52235
|
+
s.value.later?.length ? (U(), W("li", mQ, [K("details", null, [K("summary", null, "后续已排 " + P(s.value.later.length) + " 轮", 1), K("ol", null, [(U(!0), W(H, null, B(s.value.later, (e, n) => (U(), W("li", { key: n }, [K("span", null, P(t.round ? `第 ${t.round + n + 1} 轮` : `后续第 ${n + 1} 轮`), 1), J(P(e.map((e) => I(r).display_name(e)).join(" → ")), 1)]))), 128))])])])) : Y("", !0),
|
|
52236
|
+
t.away.length ? (U(), W("li", hQ, [...n[2] ||= [K("span", null, "已离开", -1)]])) : Y("", !0),
|
|
52241
52237
|
(U(!0), W(H, null, B(t.away, (t) => (U(), W("li", {
|
|
52242
52238
|
key: `away-${t}`,
|
|
52243
52239
|
class: "pb-member speaking-order-row is-away"
|
|
@@ -52249,13 +52245,13 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
52249
52245
|
place: 0
|
|
52250
52246
|
}, void 0, !0)]))), 128))
|
|
52251
52247
|
], 2),
|
|
52252
|
-
p.value ===
|
|
52253
|
-
K("p",
|
|
52248
|
+
p.value === yQ ? (U(), W("p", gQ, P(p.value), 1)) : p.value ? (U(), W("p", _Q, P(p.value), 1)) : Y("", !0),
|
|
52249
|
+
K("p", vQ, P(_.value), 1)
|
|
52254
52250
|
]);
|
|
52255
52251
|
};
|
|
52256
52252
|
}
|
|
52257
|
-
}, [["__scopeId", "data-v-dc33a051"]]),
|
|
52258
|
-
function
|
|
52253
|
+
}, [["__scopeId", "data-v-dc33a051"]]), xQ = ["dispatched", "started"], SQ = (e) => e.pending > 0 || xQ.includes(e.execution?.status);
|
|
52254
|
+
function CQ(e, { view: t, act: n, describe: r }) {
|
|
52259
52255
|
let i = t.access, a = i?.members?.find((t) => t.name === e.name)?.available, o = !i?.can_manage, s = e.manual_source === "web" || e.access === "online", c = ["active", "paused"].includes(t.room?.session?.status) && e.role === "host", l = (t, r, i, a = {}) => ({
|
|
52260
52256
|
label: t,
|
|
52261
52257
|
icon: r,
|
|
@@ -52301,7 +52297,7 @@ function SQ(e, { view: t, act: n, describe: r }) {
|
|
|
52301
52297
|
}] : []
|
|
52302
52298
|
],
|
|
52303
52299
|
[
|
|
52304
|
-
...
|
|
52300
|
+
...SQ(e) ? [l("停止", "i-lucide-square", "interrupt")] : [],
|
|
52305
52301
|
...s && e.pending ? [{
|
|
52306
52302
|
label: "复制阅读通知",
|
|
52307
52303
|
icon: "i-lucide-copy",
|
|
@@ -52322,54 +52318,54 @@ function SQ(e, { view: t, act: n, describe: r }) {
|
|
|
52322
52318
|
}
|
|
52323
52319
|
//#endregion
|
|
52324
52320
|
//#region frontend/FreeBoard.vue
|
|
52325
|
-
var
|
|
52321
|
+
var wQ = { class: "progress-board is-docked" }, TQ = { class: "pb-header" }, EQ = { class: "pb-mode" }, DQ = { class: "pb-status-line" }, OQ = { role: "status" }, kQ = {
|
|
52326
52322
|
key: 0,
|
|
52327
52323
|
class: "pb-status-detail"
|
|
52328
|
-
},
|
|
52324
|
+
}, AQ = {
|
|
52329
52325
|
key: 1,
|
|
52330
52326
|
class: "pb-chain-actions"
|
|
52331
|
-
},
|
|
52327
|
+
}, jQ = { class: "pb-meters" }, MQ = { class: "pb-meter-label" }, NQ = {
|
|
52332
52328
|
key: 0,
|
|
52333
52329
|
class: "pb-bar"
|
|
52334
|
-
},
|
|
52330
|
+
}, PQ = {
|
|
52335
52331
|
key: 2,
|
|
52336
52332
|
class: "pb-section",
|
|
52337
52333
|
"aria-label": "当前任务"
|
|
52338
|
-
},
|
|
52334
|
+
}, FQ = {
|
|
52339
52335
|
class: "pb-section",
|
|
52340
52336
|
"aria-label": "发言顺序"
|
|
52341
|
-
},
|
|
52337
|
+
}, IQ = { class: "pb-member-body" }, LQ = ["title"], RQ = ["title"], zQ = ["title"], BQ = ["title"], VQ = {
|
|
52342
52338
|
key: 0,
|
|
52343
52339
|
role: "alert",
|
|
52344
52340
|
class: "pb-free-note is-error"
|
|
52345
|
-
},
|
|
52341
|
+
}, HQ = {
|
|
52346
52342
|
key: 1,
|
|
52347
52343
|
role: "status",
|
|
52348
52344
|
class: "pb-free-note"
|
|
52349
|
-
},
|
|
52345
|
+
}, UQ = {
|
|
52350
52346
|
key: 2,
|
|
52351
52347
|
role: "alert",
|
|
52352
52348
|
class: "pb-free-note is-error"
|
|
52353
|
-
},
|
|
52349
|
+
}, WQ = {
|
|
52354
52350
|
key: 3,
|
|
52355
52351
|
role: "status",
|
|
52356
52352
|
class: "pb-free-note"
|
|
52357
|
-
},
|
|
52353
|
+
}, GQ = {
|
|
52358
52354
|
key: 3,
|
|
52359
52355
|
class: "pb-section",
|
|
52360
52356
|
"aria-label": "头脑风暴"
|
|
52361
|
-
},
|
|
52357
|
+
}, KQ = ["onClick"], qQ = {
|
|
52362
52358
|
key: 4,
|
|
52363
52359
|
class: "pb-actions",
|
|
52364
52360
|
"aria-label": "操作"
|
|
52365
|
-
},
|
|
52361
|
+
}, JQ = {
|
|
52366
52362
|
key: 0,
|
|
52367
52363
|
class: "pb-free-note"
|
|
52368
|
-
},
|
|
52364
|
+
}, YQ = {
|
|
52369
52365
|
key: 5,
|
|
52370
52366
|
class: "pb-section",
|
|
52371
52367
|
"aria-label": "执行耗时"
|
|
52372
|
-
},
|
|
52368
|
+
}, XQ = { class: "pb-timing-heading" }, ZQ = { class: "pb-timings" }, QQ = { class: "pb-timing-who" }, $Q = { class: "pb-timing-stages" }, e$ = 90, t$ = /*#__PURE__*/ YH({
|
|
52373
52369
|
__name: "FreeBoard",
|
|
52374
52370
|
setup(e) {
|
|
52375
52371
|
let { view: t, bridge: n, act: r, pending: i } = xr("discussion"), a = ["dispatched", "started"], o = {
|
|
@@ -52384,7 +52380,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52384
52380
|
online: "网页代发"
|
|
52385
52381
|
}, c = Z(() => t.value.room), l = Z(() => c.value.free || {}), u = Z(() => ["active", "paused"].includes(c.value.session?.status)), d = Z(() => u.value ? c.value.current_turn?.round || (c.value.completed_rounds || 0) + 1 : 0), f = Z(() => (l.value.members || []).find((e) => e.role === "host" && e.status === "active")), p = (e) => (l.value.members || []).find((t) => t.name === e), m = Z(() => (l.value.members || []).filter((e) => e.status === "away").map((e) => e.name)), h = (e) => n.display_name((l.value.members || []).find((t) => t.id === e)?.name || "成员"), g = (e) => e.access === "manual" && e.manual_source !== "web" && e.status === "active" && !e.registered_at;
|
|
52386
52382
|
function _(e) {
|
|
52387
|
-
return e.status === "away" ? "neutral" : g(e) ? "warning" : e.execution?.stale ? "error" :
|
|
52383
|
+
return e.status === "away" ? "neutral" : g(e) ? "warning" : e.execution?.stale ? "error" : SQ(e) ? e.pending && !a.includes(e.execution?.status) ? "warning" : "primary" : e.execution?.status === "failed" ? "error" : "success";
|
|
52388
52384
|
}
|
|
52389
52385
|
function v(e, t) {
|
|
52390
52386
|
if (e.status === "away") return "已离开:不会被唤醒,可请回";
|
|
@@ -52416,7 +52412,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52416
52412
|
title: "已存档",
|
|
52417
52413
|
detail: ""
|
|
52418
52414
|
};
|
|
52419
|
-
let e = (l.value.members || []).filter(
|
|
52415
|
+
let e = (l.value.members || []).filter(SQ);
|
|
52420
52416
|
if (e.some((e) => e.execution?.stale)) return {
|
|
52421
52417
|
tone: "error",
|
|
52422
52418
|
title: "执行失联",
|
|
@@ -52484,7 +52480,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52484
52480
|
return e == null ? "—" : e < 60 ? `${e}秒` : e < 3600 ? `${Math.floor(e / 60)}分${String(e % 60).padStart(2, "0")}秒` : `${Math.floor(e / 3600)}小时${Math.floor(e % 3600 / 60)}分`;
|
|
52485
52481
|
}
|
|
52486
52482
|
function re(e) {
|
|
52487
|
-
return
|
|
52483
|
+
return CQ(e, {
|
|
52488
52484
|
view: t.value,
|
|
52489
52485
|
act: r,
|
|
52490
52486
|
describe: (e) => {
|
|
@@ -52509,16 +52505,16 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52509
52505
|
se.value = !1;
|
|
52510
52506
|
}), (e, i) => {
|
|
52511
52507
|
let a = MA, s = pA, g = sA, E = CH;
|
|
52512
|
-
return U(), W("div",
|
|
52513
|
-
K("header",
|
|
52514
|
-
u.value ? (U(), G(
|
|
52508
|
+
return U(), W("div", wQ, [
|
|
52509
|
+
K("header", TQ, [K("strong", null, P(u.value ? "讨论进度" : "自由协作"), 1), K("span", EQ, P(f.value ? `${I(n).display_name(f.value.name)} 主持` : "无主持人"), 1)]),
|
|
52510
|
+
u.value ? (U(), G(oQ, { key: 0 })) : (U(), W("section", {
|
|
52515
52511
|
key: 1,
|
|
52516
52512
|
class: j(["pb-status", `is-${T.value.tone}`]),
|
|
52517
52513
|
"aria-label": "房间状态"
|
|
52518
52514
|
}, [
|
|
52519
|
-
K("div",
|
|
52520
|
-
T.value.detail ? (U(), W("p",
|
|
52521
|
-
T.value.continue_chain && I(t).access?.can_manage ? (U(), W("div",
|
|
52515
|
+
K("div", DQ, [i[6] ||= K("span", { class: "pb-dot" }, null, -1), K("strong", OQ, P(T.value.title), 1)]),
|
|
52516
|
+
T.value.detail ? (U(), W("p", kQ, P(T.value.detail), 1)) : Y("", !0),
|
|
52517
|
+
T.value.continue_chain && I(t).access?.can_manage ? (U(), W("div", AQ, [(U(!0), W(H, null, B(S.value, (e) => (U(), G(a, {
|
|
52522
52518
|
key: e,
|
|
52523
52519
|
label: `继续 ${e} 轮`,
|
|
52524
52520
|
icon: "i-lucide-play",
|
|
@@ -52534,24 +52530,24 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52534
52530
|
"disabled",
|
|
52535
52531
|
"onClick"
|
|
52536
52532
|
]))), 128))])) : Y("", !0),
|
|
52537
|
-
K("div",
|
|
52533
|
+
K("div", jQ, [(U(!0), W(H, null, B(ee.value, (e) => (U(), W("div", {
|
|
52538
52534
|
key: e.label,
|
|
52539
52535
|
class: "pb-meter"
|
|
52540
|
-
}, [K("div",
|
|
52536
|
+
}, [K("div", MQ, [K("span", null, P(e.label), 1), K("b", null, P(e.text), 1)]), e.ratio === null ? Y("", !0) : (U(), W("div", NQ, [K("i", { style: A({ width: `${Math.min(100, Math.round(e.ratio * 100))}%` }) }, null, 4)]))]))), 128))])
|
|
52541
52537
|
], 2)),
|
|
52542
|
-
D.value && !u.value ? (U(), W("section",
|
|
52538
|
+
D.value && !u.value ? (U(), W("section", PQ, [
|
|
52543
52539
|
i[7] ||= K("h4", null, "当前任务", -1),
|
|
52544
52540
|
K("p", { class: j(["pb-focus", { "is-expanded": O.value }]) }, P(D.value), 3),
|
|
52545
|
-
D.value.length > $
|
|
52541
|
+
D.value.length > e$ ? (U(), W("button", {
|
|
52546
52542
|
key: 0,
|
|
52547
52543
|
type: "button",
|
|
52548
52544
|
class: "pb-link",
|
|
52549
52545
|
onClick: i[0] ||= (e) => O.value = !O.value
|
|
52550
52546
|
}, P(O.value ? "收起" : "展开"), 1)) : Y("", !0)
|
|
52551
52547
|
])) : Y("", !0),
|
|
52552
|
-
K("section",
|
|
52548
|
+
K("section", FQ, [
|
|
52553
52549
|
i[9] ||= K("h4", null, "发言顺序", -1),
|
|
52554
|
-
q(
|
|
52550
|
+
q(bQ, {
|
|
52555
52551
|
away: m.value,
|
|
52556
52552
|
round: d.value
|
|
52557
52553
|
}, {
|
|
@@ -52568,7 +52564,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52568
52564
|
"alt",
|
|
52569
52565
|
"class"
|
|
52570
52566
|
]),
|
|
52571
|
-
K("div",
|
|
52567
|
+
K("div", IQ, [
|
|
52572
52568
|
K("div", {
|
|
52573
52569
|
class: "pb-member-name",
|
|
52574
52570
|
title: c.value.descriptions?.[r.name] || void 0
|
|
@@ -52579,17 +52575,17 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52579
52575
|
name: "i-lucide-crown",
|
|
52580
52576
|
title: "主持人"
|
|
52581
52577
|
})) : Y("", !0),
|
|
52582
|
-
K("small", { title: b(r) || void 0 }, P(y(r)), 9,
|
|
52583
|
-
], 8,
|
|
52578
|
+
K("small", { title: b(r) || void 0 }, P(y(r)), 9, RQ)
|
|
52579
|
+
], 8, LQ),
|
|
52584
52580
|
x(r) ? (U(), W("div", {
|
|
52585
52581
|
key: 0,
|
|
52586
52582
|
class: "pb-member-model",
|
|
52587
52583
|
title: I(n).participant_session_hint(r.name, c.value, I(t).launch.room_models)
|
|
52588
|
-
}, P(x(r)), 9,
|
|
52584
|
+
}, P(x(r)), 9, zQ)) : Y("", !0),
|
|
52589
52585
|
K("div", { class: j(["pb-member-status", `is-${_(r)}`]) }, [i[8] ||= K("span", { class: "pb-dot" }, null, -1), K("span", {
|
|
52590
52586
|
class: "pb-member-status-text",
|
|
52591
52587
|
title: r.execution?.status === "failed" ? r.execution.result : void 0
|
|
52592
|
-
}, P(v(r, e.state)), 9,
|
|
52588
|
+
}, P(v(r, e.state)), 9, BQ)], 2)
|
|
52593
52589
|
]),
|
|
52594
52590
|
q(E, {
|
|
52595
52591
|
items: re(r),
|
|
@@ -52613,8 +52609,8 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52613
52609
|
key: e.executions.join("-"),
|
|
52614
52610
|
class: "pb-free-note is-warning"
|
|
52615
52611
|
}, "可能冲突:" + P(e.members.map((e) => I(n).display_name(e)).join(" 与 ")) + " 的重叠执行观察到 " + P(e.files.join("、")) + " 变化;修改者未确认。", 1))), 128)),
|
|
52616
|
-
I(t).free_error ? (U(), W("p",
|
|
52617
|
-
I(t).access?.error ? (U(), W("p",
|
|
52612
|
+
I(t).free_error ? (U(), W("p", VQ, P(I(t).free_error), 1)) : I(t).free_notice ? (U(), W("p", HQ, P(I(t).free_notice), 1)) : Y("", !0),
|
|
52613
|
+
I(t).access?.error ? (U(), W("p", UQ, P(I(t).access.error), 1)) : I(t).access?.notice ? (U(), W("p", WQ, P(I(t).access.notice), 1)) : Y("", !0),
|
|
52618
52614
|
c.value.archived ? Y("", !0) : (U(), G(a, {
|
|
52619
52615
|
key: 4,
|
|
52620
52616
|
icon: "i-lucide-plus",
|
|
@@ -52626,13 +52622,13 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52626
52622
|
onClick: i[1] ||= (e) => ie.value = !0
|
|
52627
52623
|
}))
|
|
52628
52624
|
]),
|
|
52629
|
-
c.value.linked_rooms?.length ? (U(), W("section",
|
|
52625
|
+
c.value.linked_rooms?.length ? (U(), W("section", GQ, [i[10] ||= K("h4", null, "头脑风暴", -1), (U(!0), W(H, null, B(c.value.linked_rooms, (e) => (U(), W("button", {
|
|
52630
52626
|
key: e.id,
|
|
52631
52627
|
type: "button",
|
|
52632
52628
|
class: "pb-link pb-free-linked",
|
|
52633
52629
|
onClick: (t) => I(r)("room", e.id)
|
|
52634
|
-
}, [J(P(e.title), 1), K("small", null, P(I(n).phases[e.phase] || e.phase), 1)], 8,
|
|
52635
|
-
!c.value.archived && !u.value ? (U(), W("section",
|
|
52630
|
+
}, [J(P(e.title), 1), K("small", null, P(I(n).phases[e.phase] || e.phase), 1)], 8, KQ))), 128))])) : Y("", !0),
|
|
52631
|
+
!c.value.archived && !u.value ? (U(), W("section", qQ, [q(a, {
|
|
52636
52632
|
icon: "i-lucide-messages-square",
|
|
52637
52633
|
label: "开启讨论",
|
|
52638
52634
|
size: "sm",
|
|
@@ -52642,13 +52638,13 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52642
52638
|
title: "由主持人推进成员轮流发言,到上限或结束后房间回到自由协作",
|
|
52643
52639
|
disabled: !ce.value,
|
|
52644
52640
|
onClick: i[2] ||= (e) => se.value = !0
|
|
52645
|
-
}, null, 8, ["disabled"]), ce.value ? Y("", !0) : (U(), W("p",
|
|
52646
|
-
te.value.items.length ? (U(), W("section",
|
|
52647
|
-
q(
|
|
52641
|
+
}, null, 8, ["disabled"]), ce.value ? Y("", !0) : (U(), W("p", JQ, "开启讨论需要一位由本机唤醒的 AI 主持人。"))])) : Y("", !0),
|
|
52642
|
+
te.value.items.length ? (U(), W("section", YQ, [K("div", XQ, [i[11] ||= K("h4", null, "耗时", -1), K("small", null, "共 " + P(te.value.items.length) + " 次执行 · " + P(ne(te.value.total)), 1)]), K("details", ZQ, [i[12] ||= K("summary", null, "查看每次执行", -1), K("ol", null, [(U(!0), W(H, null, B(te.value.items, (e) => (U(), W("li", { key: e.id }, [K("span", QQ, [J("#" + P(e.id) + " " + P(h(e.member_id)), 1), K("small", null, P(o[e.status] || e.status), 1)]), K("span", $Q, [K("span", null, "用时 " + P(ne(e.seconds)), 1)])]))), 128))])])])) : Y("", !0),
|
|
52643
|
+
q(JZ, {
|
|
52648
52644
|
open: se.value,
|
|
52649
52645
|
"onUpdate:open": i[3] ||= (e) => se.value = e
|
|
52650
52646
|
}, null, 8, ["open"]),
|
|
52651
|
-
q(
|
|
52647
|
+
q(GZ, {
|
|
52652
52648
|
open: ie.value,
|
|
52653
52649
|
"onUpdate:open": i[4] ||= (e) => ie.value = e,
|
|
52654
52650
|
description: "新成员加入后不打断其他成员;点卡片翻面可设置软件、模型、项目权限和要续接的已有会话。"
|
|
@@ -52675,7 +52671,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52675
52671
|
]);
|
|
52676
52672
|
};
|
|
52677
52673
|
}
|
|
52678
|
-
}, [["__scopeId", "data-v-81d8efa9"]]),
|
|
52674
|
+
}, [["__scopeId", "data-v-81d8efa9"]]), n$ = { class: "progress-panel-anchor" }, r$ = ["aria-expanded", "aria-label"], i$ = { class: "progress-chip-text" }, a$ = { class: "progress-chip-rounds" }, o$ = {
|
|
52679
52675
|
__name: "ProgressPanel",
|
|
52680
52676
|
setup(e) {
|
|
52681
52677
|
let { view: t, bridge: n } = xr("discussion"), r = /* @__PURE__ */ F(!1), i = Z(() => t.value.room), a = Z(() => i.value.limits || {}), o = Z(() => {
|
|
@@ -52702,7 +52698,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52702
52698
|
}), s = Z(() => a.value.round_cap || a.value.max_rounds ? n.limit_rounds(a.value).text.replace(" / ", "/") : n.progress_round(i.value)), c = Z(() => `${o.value.title} · ${s.value}`);
|
|
52703
52699
|
return (e, t) => {
|
|
52704
52700
|
let n = $V, a = NV;
|
|
52705
|
-
return U(), W("div",
|
|
52701
|
+
return U(), W("div", n$, [q(n, { text: "查看讨论进度" }, {
|
|
52706
52702
|
default: L(() => [K("button", {
|
|
52707
52703
|
type: "button",
|
|
52708
52704
|
class: j(["progress-chip", `is-${o.value.tone}`]),
|
|
@@ -52710,7 +52706,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52710
52706
|
"aria-expanded": r.value,
|
|
52711
52707
|
"aria-label": `查看讨论进度:${c.value}`,
|
|
52712
52708
|
onClick: t[0] ||= (e) => r.value = !0
|
|
52713
|
-
}, [t[2] ||= K("span", { class: "progress-dot" }, null, -1), K("span",
|
|
52709
|
+
}, [t[2] ||= K("span", { class: "progress-dot" }, null, -1), K("span", i$, [J(P(o.value.title), 1), K("span", a$, " · " + P(s.value), 1)])], 10, r$)]),
|
|
52714
52710
|
_: 1
|
|
52715
52711
|
}), q(a, {
|
|
52716
52712
|
open: r.value,
|
|
@@ -52723,36 +52719,36 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52723
52719
|
body: "progress-drawer-body"
|
|
52724
52720
|
}
|
|
52725
52721
|
}, {
|
|
52726
|
-
body: L(() => [q(
|
|
52722
|
+
body: L(() => [q(t$)]),
|
|
52727
52723
|
_: 1
|
|
52728
52724
|
}, 8, ["open", "description"])]);
|
|
52729
52725
|
};
|
|
52730
52726
|
}
|
|
52731
|
-
},
|
|
52727
|
+
}, s$ = {
|
|
52732
52728
|
class: "merged-section discussion-history",
|
|
52733
52729
|
"aria-label": "讨论记录"
|
|
52734
|
-
},
|
|
52730
|
+
}, c$ = {
|
|
52735
52731
|
key: 0,
|
|
52736
52732
|
class: "fine-print"
|
|
52737
|
-
},
|
|
52733
|
+
}, l$ = { class: "history-timeline" }, u$ = {
|
|
52738
52734
|
key: 0,
|
|
52739
52735
|
class: "history-free"
|
|
52740
|
-
},
|
|
52736
|
+
}, d$ = {
|
|
52741
52737
|
key: 1,
|
|
52742
52738
|
class: "history-discussion"
|
|
52743
|
-
},
|
|
52739
|
+
}, f$ = { class: "history-meta" }, p$ = {
|
|
52744
52740
|
key: 0,
|
|
52745
52741
|
class: "fine-print"
|
|
52746
|
-
},
|
|
52742
|
+
}, m$ = {
|
|
52747
52743
|
key: 1,
|
|
52748
52744
|
class: "fine-print"
|
|
52749
|
-
},
|
|
52745
|
+
}, h$ = {
|
|
52750
52746
|
key: 2,
|
|
52751
52747
|
class: "history-conclusion"
|
|
52752
|
-
},
|
|
52748
|
+
}, g$ = ["onClick"], _$ = ["innerHTML"], v$ = {
|
|
52753
52749
|
key: 1,
|
|
52754
52750
|
class: "fine-print"
|
|
52755
|
-
},
|
|
52751
|
+
}, y$ = ["aria-expanded", "onClick"], b$ = ["innerHTML"], x$ = /*#__PURE__*/ YH({
|
|
52756
52752
|
__name: "DiscussionHistory",
|
|
52757
52753
|
emits: ["detail"],
|
|
52758
52754
|
setup(e) {
|
|
@@ -52810,16 +52806,16 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52810
52806
|
}
|
|
52811
52807
|
return (e, t) => {
|
|
52812
52808
|
let l = WV, d = sA;
|
|
52813
|
-
return U(), W("section",
|
|
52809
|
+
return U(), W("section", s$, [
|
|
52814
52810
|
t[2] ||= K("div", { class: "page-heading" }, [K("div", null, [K("h2", null, "讨论记录"), K("p", null, "每场讨论及其结束时的结论,最新的在上;自由协作的消息按段汇总。")])], -1),
|
|
52815
|
-
i.value.discussions?.length ? Y("", !0) : (U(), W("p",
|
|
52816
|
-
K("ol",
|
|
52811
|
+
i.value.discussions?.length ? Y("", !0) : (U(), W("p", c$, "还没有开启过讨论。")),
|
|
52812
|
+
K("ol", l$, [(U(!0), W(H, null, B(c.value, (i) => (U(), W("li", {
|
|
52817
52813
|
key: i.key,
|
|
52818
52814
|
class: j(`is-${i.kind}`)
|
|
52819
52815
|
}, [t[1] ||= K("span", {
|
|
52820
52816
|
class: "history-dot",
|
|
52821
52817
|
"aria-hidden": "true"
|
|
52822
|
-
}, null, -1), i.kind === "free" ? (U(), W("p",
|
|
52818
|
+
}, null, -1), i.kind === "free" ? (U(), W("p", u$, "自由协作 · " + P(i.count) + " 条消息", 1)) : (U(), W("article", d$, [
|
|
52823
52819
|
K("header", null, [K("h3", null, [K("small", null, "讨论 " + P(i.number), 1), J(P(i.goal || "未填写目标"), 1)]), q(l, {
|
|
52824
52820
|
color: r[i.status]?.color || "neutral",
|
|
52825
52821
|
variant: "subtle",
|
|
@@ -52828,74 +52824,74 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52828
52824
|
default: L(() => [J(P(r[i.status]?.label || i.status), 1)]),
|
|
52829
52825
|
_: 2
|
|
52830
52826
|
}, 1032, ["color"])]),
|
|
52831
|
-
K("p",
|
|
52827
|
+
K("p", f$, [
|
|
52832
52828
|
J(P(s(i.created_at)) + " 开始 · " + P(i.count) + " 条消息", 1),
|
|
52833
52829
|
i.status === "concluded" && i.state !== null ? (U(), W(H, { key: 0 }, [J(" · " + P(I(n).stop_reason_label(i)), 1)], 64)) : Y("", !0),
|
|
52834
52830
|
i.concluded_at ? (U(), W(H, { key: 1 }, [J(" · " + P(s(i.concluded_at)) + " 结束", 1)], 64)) : Y("", !0)
|
|
52835
52831
|
]),
|
|
52836
|
-
i.result?.current ? (U(), W("p",
|
|
52832
|
+
i.result?.current ? (U(), W("p", p$, "结论即上方的当前共识。")) : i.result?.missing ? (U(), W("p", m$, "这场讨论结束于结论快照功能之前,没有保存当时的结论。")) : i.result ? (U(), W("div", h$, [
|
|
52837
52833
|
K("small", null, [J(P(i.result.label), 1), i.result.until ? (U(), W("button", {
|
|
52838
52834
|
key: 0,
|
|
52839
52835
|
type: "button",
|
|
52840
52836
|
class: "subtle-link",
|
|
52841
52837
|
onClick: (t) => e.$emit("detail", i.result.until)
|
|
52842
|
-
}, "整理至 #" + P(i.result.until), 9,
|
|
52838
|
+
}, "整理至 #" + P(i.result.until), 9, g$)) : Y("", !0)]),
|
|
52843
52839
|
i.result.brief ? (U(), W("div", {
|
|
52844
52840
|
key: 0,
|
|
52845
52841
|
class: "markdown-body",
|
|
52846
52842
|
innerHTML: o(i.result.brief)
|
|
52847
|
-
}, null, 8,
|
|
52843
|
+
}, null, 8, _$)) : i.result.state ? Y("", !0) : (U(), W("p", v$, "主持人没有留下简报或共识。")),
|
|
52848
52844
|
i.result.state ? (U(), W(H, { key: 2 }, [K("button", {
|
|
52849
52845
|
type: "button",
|
|
52850
52846
|
class: "history-toggle",
|
|
52851
52847
|
"aria-expanded": a.value.has(i.id),
|
|
52852
52848
|
onClick: (e) => u(i.id)
|
|
52853
|
-
}, [t[0] ||= J("详细共识与进度", -1), q(d, { name: a.value.has(i.id) ? "i-lucide-chevron-up" : "i-lucide-chevron-down" }, null, 8, ["name"])], 8,
|
|
52849
|
+
}, [t[0] ||= J("详细共识与进度", -1), q(d, { name: a.value.has(i.id) ? "i-lucide-chevron-up" : "i-lucide-chevron-down" }, null, 8, ["name"])], 8, y$), a.value.has(i.id) ? (U(), W("div", {
|
|
52854
52850
|
key: 0,
|
|
52855
52851
|
class: "markdown-body history-state",
|
|
52856
52852
|
innerHTML: o(i.result.state)
|
|
52857
|
-
}, null, 8,
|
|
52853
|
+
}, null, 8, b$)) : Y("", !0)], 64)) : Y("", !0)
|
|
52858
52854
|
])) : Y("", !0)
|
|
52859
52855
|
]))], 2))), 128))])
|
|
52860
52856
|
]);
|
|
52861
52857
|
};
|
|
52862
52858
|
}
|
|
52863
|
-
}, [["__scopeId", "data-v-8daffdea"]]),
|
|
52859
|
+
}, [["__scopeId", "data-v-8daffdea"]]), S$ = {
|
|
52864
52860
|
class: "merged-section room-overview",
|
|
52865
52861
|
"aria-label": "成员与设置"
|
|
52866
|
-
},
|
|
52862
|
+
}, C$ = { class: "page-heading" }, w$ = { class: "overview-section" }, T$ = {
|
|
52867
52863
|
key: 0,
|
|
52868
52864
|
class: "overview-local",
|
|
52869
52865
|
role: "status"
|
|
52870
|
-
},
|
|
52866
|
+
}, E$ = {
|
|
52871
52867
|
class: "member-cards",
|
|
52872
52868
|
"aria-label": "成员"
|
|
52873
|
-
},
|
|
52869
|
+
}, D$ = { class: "member-card-head" }, O$ = { class: "member-card-name" }, k$ = ["title"], A$ = { class: "member-card-facts" }, j$ = ["aria-label", "title"], M$ = [
|
|
52874
52870
|
"aria-checked",
|
|
52875
52871
|
"disabled",
|
|
52876
52872
|
"onClick"
|
|
52877
|
-
],
|
|
52873
|
+
], N$ = { key: 1 }, P$ = ["title"], F$ = [
|
|
52878
52874
|
"aria-label",
|
|
52879
52875
|
"aria-busy",
|
|
52880
52876
|
"title"
|
|
52881
|
-
],
|
|
52877
|
+
], I$ = [
|
|
52882
52878
|
"aria-checked",
|
|
52883
52879
|
"title",
|
|
52884
52880
|
"disabled",
|
|
52885
52881
|
"onClick"
|
|
52886
|
-
],
|
|
52882
|
+
], L$ = ["title"], R$ = ["aria-label"], z$ = { key: 0 }, B$ = {
|
|
52887
52883
|
key: 1,
|
|
52888
52884
|
class: "overview-result is-error",
|
|
52889
52885
|
role: "alert"
|
|
52890
|
-
},
|
|
52886
|
+
}, V$ = {
|
|
52891
52887
|
key: 2,
|
|
52892
52888
|
class: "overview-result",
|
|
52893
52889
|
role: "status"
|
|
52894
|
-
},
|
|
52890
|
+
}, H$ = ["role"], U$ = { class: "overview-section" }, W$ = { class: "overview-settings" }, G$ = { key: 0 }, K$ = {
|
|
52895
52891
|
key: 0,
|
|
52896
52892
|
role: "status",
|
|
52897
52893
|
class: "overview-saved"
|
|
52898
|
-
},
|
|
52894
|
+
}, q$ = { key: 1 }, J$ = { key: 1 }, Y$ = { class: "overview-address" }, X$ = { key: 2 }, Z$ = 2e3, Q$ = "设为主持人", $$ = /*#__PURE__*/ YH({
|
|
52899
52895
|
__name: "RoomOverview",
|
|
52900
52896
|
setup(e) {
|
|
52901
52897
|
let { view: t, bridge: n, act: r } = xr("discussion"), i = {
|
|
@@ -52930,7 +52926,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
52930
52926
|
try {
|
|
52931
52927
|
await n.set_chain_rounds(e), v.value = !0, setTimeout(() => {
|
|
52932
52928
|
v.value = !1;
|
|
52933
|
-
},
|
|
52929
|
+
}, Z$);
|
|
52934
52930
|
} catch {
|
|
52935
52931
|
_.value = u.value.free?.max_rounds || 0;
|
|
52936
52932
|
} finally {
|
|
@@ -53040,7 +53036,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53040
53036
|
}
|
|
53041
53037
|
let ee = Z(() => p.value ? "—" : f.value.scheduler ? `${t.value.launch.scheduler_providers?.[f.value.scheduler.provider]?.label || f.value.scheduler.provider} · ${f.value.scheduler.model}` : "未开启");
|
|
53042
53038
|
function D(e) {
|
|
53043
|
-
let [n, i, a] =
|
|
53039
|
+
let [n, i, a] = CQ(C(e), {
|
|
53044
53040
|
view: t.value,
|
|
53045
53041
|
act: r,
|
|
53046
53042
|
describe: (e) => {
|
|
@@ -53049,8 +53045,8 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53049
53045
|
});
|
|
53050
53046
|
return d.value ? {
|
|
53051
53047
|
taking_part: n,
|
|
53052
|
-
host: i.find((e) => e.label ===
|
|
53053
|
-
place: [...i.filter((e) => e.label !==
|
|
53048
|
+
host: i.find((e) => e.label === Q$) || null,
|
|
53049
|
+
place: [...i.filter((e) => e.label !== Q$), ...a]
|
|
53054
53050
|
} : {
|
|
53055
53051
|
taking_part: n,
|
|
53056
53052
|
host: null,
|
|
@@ -53077,8 +53073,8 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53077
53073
|
let ie = Z(() => `${location.origin}/r/${u.value.id}`), ae = Z(() => u.value.created_at ? new Date(u.value.created_at).toLocaleString("zh-CN", { hour12: !1 }) : "");
|
|
53078
53074
|
return (e, i) => {
|
|
53079
53075
|
let s = MA, l = pA, oe = sA, k = WV;
|
|
53080
|
-
return U(), W("section",
|
|
53081
|
-
K("div",
|
|
53076
|
+
return U(), W("section", S$, [
|
|
53077
|
+
K("div", C$, [i[5] ||= K("div", null, [K("h2", null, "成员与设置"), K("p", null, "成员的接入、权限与全部操作,以及房间的协作设置;右栏成员菜单是同样操作的快捷入口。")], -1), u.value.archived ? Y("", !0) : (U(), G(s, {
|
|
53082
53078
|
key: 0,
|
|
53083
53079
|
icon: "i-lucide-plus",
|
|
53084
53080
|
label: "邀请 AI 加入",
|
|
@@ -53088,19 +53084,19 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53088
53084
|
disabled: !I(t).access?.can_manage,
|
|
53089
53085
|
onClick: i[0] ||= (e) => O.value = !0
|
|
53090
53086
|
}, null, 8, ["disabled"]))]),
|
|
53091
|
-
K("section",
|
|
53087
|
+
K("section", w$, [
|
|
53092
53088
|
i[9] ||= K("h3", null, "成员", -1),
|
|
53093
|
-
p.value ? (U(), W("p",
|
|
53089
|
+
p.value ? (U(), W("p", T$, [J(P(p.value.text), 1), p.value.retry ? (U(), W("button", {
|
|
53094
53090
|
key: 0,
|
|
53095
53091
|
type: "button",
|
|
53096
53092
|
class: "subtle-link",
|
|
53097
53093
|
onClick: i[1] ||= (e) => I(n).reload_room_models()
|
|
53098
53094
|
}, "重试")) : Y("", !0)])) : Y("", !0),
|
|
53099
|
-
K("ul",
|
|
53095
|
+
K("ul", E$, [(U(!0), W(H, null, B(x.value, (e) => (U(), W("li", {
|
|
53100
53096
|
key: e.name,
|
|
53101
53097
|
class: "member-card"
|
|
53102
53098
|
}, [
|
|
53103
|
-
K("header",
|
|
53099
|
+
K("header", D$, [
|
|
53104
53100
|
q(l, {
|
|
53105
53101
|
src: I(n).identities[e.name]?.icon,
|
|
53106
53102
|
text: I(n).identities[e.name]?.initials,
|
|
@@ -53113,14 +53109,14 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53113
53109
|
"alt",
|
|
53114
53110
|
"class"
|
|
53115
53111
|
]),
|
|
53116
|
-
K("div",
|
|
53112
|
+
K("div", O$, [K("strong", null, [J(P(I(n).display_name(e.name)), 1), e.role === "host" ? (U(), G(oe, {
|
|
53117
53113
|
key: 0,
|
|
53118
53114
|
name: "i-lucide-crown",
|
|
53119
53115
|
title: "主持人"
|
|
53120
53116
|
})) : Y("", !0)]), u.value.descriptions?.[e.name] ? (U(), W("small", {
|
|
53121
53117
|
key: 0,
|
|
53122
53118
|
title: u.value.descriptions[e.name]
|
|
53123
|
-
}, P(u.value.descriptions[e.name]), 9,
|
|
53119
|
+
}, P(u.value.descriptions[e.name]), 9, k$)) : Y("", !0)]),
|
|
53124
53120
|
D(e).host ? (U(), G(s, {
|
|
53125
53121
|
key: 0,
|
|
53126
53122
|
icon: D(e).host.icon,
|
|
@@ -53145,7 +53141,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53145
53141
|
_: 2
|
|
53146
53142
|
}, 1032, ["color"])
|
|
53147
53143
|
]),
|
|
53148
|
-
K("dl",
|
|
53144
|
+
K("dl", A$, [
|
|
53149
53145
|
K("div", null, [i[6] ||= K("dt", null, "接入", -1), K("dd", null, [S(C(e)).value ? (U(), W("div", {
|
|
53150
53146
|
key: 0,
|
|
53151
53147
|
class: j(["expert-card-modes overview-switch", { "is-locked": !S(C(e)).editable }]),
|
|
@@ -53159,11 +53155,11 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53159
53155
|
"aria-checked": S(C(e)).value === t.value,
|
|
53160
53156
|
disabled: !S(C(e)).editable || !!h.value,
|
|
53161
53157
|
onClick: (n) => w(e, t.value)
|
|
53162
|
-
}, P(t.label), 9,
|
|
53158
|
+
}, P(t.label), 9, M$)), 64))], 10, j$)) : (U(), W("span", N$, P(S(e).text), 1))])]),
|
|
53163
53159
|
K("div", null, [i[7] ||= K("dt", null, "模型", -1), K("dd", {
|
|
53164
53160
|
class: j(["overview-model", { "overview-muted": m(e.name) }]),
|
|
53165
53161
|
title: I(n).participant_model(e.name, u.value, f.value) || void 0
|
|
53166
|
-
}, P(e.access === "runner" ? I(n).participant_model(e.name, u.value, f.value) || "—" : "在它自己的会话里设置"), 11,
|
|
53162
|
+
}, P(e.access === "runner" ? I(n).participant_model(e.name, u.value, f.value) || "—" : "在它自己的会话里设置"), 11, P$)]),
|
|
53167
53163
|
K("div", null, [i[8] ||= K("dt", null, "项目文件", -1), K("dd", null, [T(e).value ? (U(), W("div", {
|
|
53168
53164
|
key: 0,
|
|
53169
53165
|
class: j(["expert-card-modes overview-switch", { "is-locked": !T(e).editable }]),
|
|
@@ -53179,11 +53175,11 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53179
53175
|
title: t.hint,
|
|
53180
53176
|
disabled: !T(e).editable || !!h.value,
|
|
53181
53177
|
onClick: (n) => E(e, t.value)
|
|
53182
|
-
}, P(t.label), 9,
|
|
53178
|
+
}, P(t.label), 9, I$))), 128))], 10, F$)) : (U(), W("span", {
|
|
53183
53179
|
key: 1,
|
|
53184
53180
|
class: "overview-muted",
|
|
53185
53181
|
title: T(e).hint
|
|
53186
|
-
}, P(T(e).text), 9,
|
|
53182
|
+
}, P(T(e).text), 9, L$))])])
|
|
53187
53183
|
]),
|
|
53188
53184
|
K("footer", {
|
|
53189
53185
|
class: "member-card-actions",
|
|
@@ -53202,7 +53198,7 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53202
53198
|
"label",
|
|
53203
53199
|
"disabled",
|
|
53204
53200
|
"onClick"
|
|
53205
|
-
]))), 128))]), D(e).place.length ? (U(), W("div",
|
|
53201
|
+
]))), 128))]), D(e).place.length ? (U(), W("div", z$, [(U(!0), W(H, null, B(D(e).place, (e) => (U(), G(s, {
|
|
53206
53202
|
key: e.label,
|
|
53207
53203
|
icon: e.icon,
|
|
53208
53204
|
label: e.label,
|
|
@@ -53217,26 +53213,26 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53217
53213
|
"color",
|
|
53218
53214
|
"disabled",
|
|
53219
53215
|
"onClick"
|
|
53220
|
-
]))), 128))])) : Y("", !0)], 8,
|
|
53216
|
+
]))), 128))])) : Y("", !0)], 8, R$)
|
|
53221
53217
|
]))), 128))]),
|
|
53222
|
-
I(t).access?.error || I(t).free_error ? (U(), W("p",
|
|
53218
|
+
I(t).access?.error || I(t).free_error ? (U(), W("p", B$, P(I(t).access?.error || I(t).free_error), 1)) : I(t).access?.notice || I(t).free_notice ? (U(), W("p", V$, P(I(t).access?.notice || I(t).free_notice), 1)) : Y("", !0),
|
|
53223
53219
|
i[10] ||= K("p", { class: "overview-result" }, "复制说明或下载配置不代表 AI 已接入,以实际回答和运行记录为准。", -1),
|
|
53224
53220
|
b.value.text ? (U(), W("p", {
|
|
53225
53221
|
key: 3,
|
|
53226
53222
|
class: j(["overview-result", { "is-error": b.value.tone === "error" }]),
|
|
53227
53223
|
role: b.value.tone === "error" ? "alert" : "status"
|
|
53228
|
-
}, P(b.value.text), 11,
|
|
53224
|
+
}, P(b.value.text), 11, H$)) : Y("", !0)
|
|
53229
53225
|
]),
|
|
53230
|
-
K("section",
|
|
53226
|
+
K("section", U$, [i[17] ||= K("h3", null, "协作设置", -1), K("dl", W$, [
|
|
53231
53227
|
K("div", null, [i[11] ||= K("dt", null, "主持人", -1), K("dd", null, P(u.value.host ? I(n).display_name(u.value.host) : "未指定"), 1)]),
|
|
53232
53228
|
K("div", null, [i[12] ||= K("dt", null, "智能调度", -1), K("dd", null, P(ee.value), 1)]),
|
|
53233
|
-
u.value.free?.max_rounds ? (U(), W("div",
|
|
53229
|
+
u.value.free?.max_rounds ? (U(), W("div", G$, [i[13] ||= K("dt", null, "连续派活上限", -1), K("dd", null, [I(t).access?.can_manage ? (U(), W(H, { key: 0 }, [q(WK, {
|
|
53234
53230
|
"model-value": _.value,
|
|
53235
53231
|
disabled: g.value,
|
|
53236
53232
|
"onUpdate:modelValue": y
|
|
53237
|
-
}, null, 8, ["model-value", "disabled"]), v.value ? (U(), W("small",
|
|
53238
|
-
d.value ? Y("", !0) : (U(), W("div",
|
|
53239
|
-
K("div", null, [i[15] ||= K("dt", null, "阅读地址", -1), K("dd",
|
|
53233
|
+
}, null, 8, ["model-value", "disabled"]), v.value ? (U(), W("small", K$, "已保存,进行中的任务链也按新值")) : Y("", !0)], 64)) : (U(), W("span", q$, "主持人收到你的一条消息后,最多连续派活 " + P(u.value.free.max_rounds) + " 轮(派活 → 成员回答 → 交回汇总为一轮),然后停下等你", 1))])])) : Y("", !0),
|
|
53234
|
+
d.value ? Y("", !0) : (U(), W("div", J$, [i[14] ||= K("dt", null, "逐人追问", -1), K("dd", null, P(u.value.named_followup ? "开启:主持人每轮给每位专家写针对性追问" : "关闭:首轮后请专家回应上一轮观点"), 1)])),
|
|
53235
|
+
K("div", null, [i[15] ||= K("dt", null, "阅读地址", -1), K("dd", Y$, [K("code", null, P(ie.value), 1), q(s, {
|
|
53240
53236
|
icon: "i-lucide-copy",
|
|
53241
53237
|
color: "neutral",
|
|
53242
53238
|
variant: "ghost",
|
|
@@ -53244,9 +53240,9 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53244
53240
|
"aria-label": "复制阅读地址",
|
|
53245
53241
|
onClick: i[2] ||= (e) => I(r)("copy", ie.value)
|
|
53246
53242
|
})])]),
|
|
53247
|
-
ae.value ? (U(), W("div",
|
|
53243
|
+
ae.value ? (U(), W("div", X$, [i[16] ||= K("dt", null, "创建时间", -1), K("dd", null, P(ae.value), 1)])) : Y("", !0)
|
|
53248
53244
|
])]),
|
|
53249
|
-
q(
|
|
53245
|
+
q(GZ, {
|
|
53250
53246
|
open: O.value,
|
|
53251
53247
|
"onUpdate:open": i[3] ||= (e) => O.value = e,
|
|
53252
53248
|
description: d.value ? "新成员加入后不打断其他成员;点卡片翻面可设置软件、模型、项目权限和要续接的已有会话。" : "新专家由程序按本机软件配置启动,或由你手动启动,加入本轮发言队列。"
|
|
@@ -53273,31 +53269,31 @@ var CQ = { class: "progress-board is-docked" }, wQ = { class: "pb-header" }, TQ
|
|
|
53273
53269
|
]);
|
|
53274
53270
|
};
|
|
53275
53271
|
}
|
|
53276
|
-
}, [["__scopeId", "data-v-cfcbc22f"]]),
|
|
53272
|
+
}, [["__scopeId", "data-v-cfcbc22f"]]), e1 = {
|
|
53277
53273
|
thinking: "思考",
|
|
53278
53274
|
command: "命令",
|
|
53279
53275
|
tool: "工具",
|
|
53280
53276
|
editing: "编辑",
|
|
53281
53277
|
writing: "撰写"
|
|
53282
|
-
},
|
|
53278
|
+
}, t1 = {
|
|
53283
53279
|
thinking: "model",
|
|
53284
53280
|
writing: "model",
|
|
53285
53281
|
command: "tool",
|
|
53286
53282
|
tool: "tool",
|
|
53287
53283
|
editing: "tool"
|
|
53288
|
-
},
|
|
53284
|
+
}, n1 = {
|
|
53289
53285
|
running: "进行中",
|
|
53290
53286
|
done: "完成",
|
|
53291
53287
|
failed: "失败",
|
|
53292
53288
|
cancelled: "已撤销"
|
|
53293
|
-
},
|
|
53294
|
-
function
|
|
53289
|
+
}, r1 = 3e5, i1 = .03;
|
|
53290
|
+
function a1(e) {
|
|
53295
53291
|
if (e < 1e3) return `${Math.max(0, Math.round(e))}ms`;
|
|
53296
53292
|
if (e < 1e4) return `${(e / 1e3).toFixed(1)}s`;
|
|
53297
53293
|
let t = Math.round(e / 1e3);
|
|
53298
53294
|
return t < 60 ? `${t}s` : t < 3600 ? `${Math.floor(t / 60)}m ${String(t % 60).padStart(2, "0")}s` : `${Math.floor(t / 3600)}h ${String(Math.floor(t % 3600 / 60)).padStart(2, "0")}m`;
|
|
53299
53295
|
}
|
|
53300
|
-
function
|
|
53296
|
+
function o1(e, t) {
|
|
53301
53297
|
let n = e.state === "running", r = e.finished_at ? e.finished_at * 1e3 : t, i = e.dispatched_at ? e.dispatched_at * 1e3 : 0, a = Math.min(e.queued_at ? e.queued_at * 1e3 : i || r, i || r), o = i ? e.segments.map((t, a) => {
|
|
53302
53298
|
let o = n && a === e.segments.length - 1, s = Math.min(i + t.end_ms, r);
|
|
53303
53299
|
return {
|
|
@@ -53323,8 +53319,8 @@ function a1(e, t) {
|
|
|
53323
53319
|
notes: l
|
|
53324
53320
|
};
|
|
53325
53321
|
}
|
|
53326
|
-
var
|
|
53327
|
-
function
|
|
53322
|
+
var s1 = 18e4;
|
|
53323
|
+
function c1(e, t) {
|
|
53328
53324
|
let { item: n } = e;
|
|
53329
53325
|
if (n.state === "failed") return {
|
|
53330
53326
|
tone: "failed",
|
|
@@ -53348,22 +53344,22 @@ function s1(e, t) {
|
|
|
53348
53344
|
let r = n.dispatched_at * 1e3, i = n.segments.at(-1), a = Math.max(n.activity_at ? n.activity_at * 1e3 : 0, i ? r + i.end_ms : 0, ...(n.notes || []).map((e) => e * 1e3)), o = a ? t - a : 0;
|
|
53349
53345
|
return o >= 18e4 ? i?.phase === "command" ? {
|
|
53350
53346
|
tone: "warn",
|
|
53351
|
-
text: `命令已运行 ${
|
|
53347
|
+
text: `命令已运行 ${a1(o)}`
|
|
53352
53348
|
} : {
|
|
53353
53349
|
tone: "warn",
|
|
53354
|
-
text: `已 ${
|
|
53350
|
+
text: `已 ${a1(o)} 无输出,可能卡住`
|
|
53355
53351
|
} : n.last_note ? {
|
|
53356
53352
|
tone: "live",
|
|
53357
53353
|
text: n.last_note
|
|
53358
53354
|
} : i ? {
|
|
53359
53355
|
tone: "live",
|
|
53360
|
-
text: `${
|
|
53356
|
+
text: `${e1[i.phase]}${i.tool ? ` · ${i.tool}` : ""}中`
|
|
53361
53357
|
} : {
|
|
53362
53358
|
tone: "live",
|
|
53363
53359
|
text: "处理中"
|
|
53364
53360
|
};
|
|
53365
53361
|
}
|
|
53366
|
-
function
|
|
53362
|
+
function l1(e, t) {
|
|
53367
53363
|
return [...e.segments.map((e) => ({
|
|
53368
53364
|
at: e.start,
|
|
53369
53365
|
kind: "phase",
|
|
@@ -53377,7 +53373,7 @@ function c1(e, t) {
|
|
|
53377
53373
|
text: t?.[e.index] ?? (t ? "(未能读取)" : "读取中…")
|
|
53378
53374
|
}))].sort((e, t) => e.at - t.at || (e.kind === "note") - (t.kind === "note"));
|
|
53379
53375
|
}
|
|
53380
|
-
function
|
|
53376
|
+
function u1(e, t, n = /* @__PURE__ */ new Map()) {
|
|
53381
53377
|
let r = t / 1e3, i = [];
|
|
53382
53378
|
for (let t of e.executions) {
|
|
53383
53379
|
if ((t.queued_at || t.dispatched_at || Infinity) > r) continue;
|
|
@@ -53411,7 +53407,7 @@ function l1(e, t, n = /* @__PURE__ */ new Map()) {
|
|
|
53411
53407
|
executions: i
|
|
53412
53408
|
};
|
|
53413
53409
|
}
|
|
53414
|
-
function
|
|
53410
|
+
function d1(e, t, n) {
|
|
53415
53411
|
let r = e.filter((e) => e.at >= t && e.at <= n);
|
|
53416
53412
|
if (r.length) return {
|
|
53417
53413
|
notes: r,
|
|
@@ -53423,13 +53419,13 @@ function u1(e, t, n) {
|
|
|
53423
53419
|
earlier: !!i
|
|
53424
53420
|
};
|
|
53425
53421
|
}
|
|
53426
|
-
function
|
|
53422
|
+
function f1(e, t) {
|
|
53427
53423
|
let n = e.executions.map((n) => ({
|
|
53428
53424
|
key: `${n.source}:${n.id}`,
|
|
53429
53425
|
parent: n.parent_id ? `free:${n.parent_id}` : "",
|
|
53430
53426
|
item: n,
|
|
53431
53427
|
truncated: n.segments.length >= e.segment_limit,
|
|
53432
|
-
...
|
|
53428
|
+
...o1(n, t)
|
|
53433
53429
|
})), r = new Map(n.map((e) => [e.key, e])), i = (e) => {
|
|
53434
53430
|
let t = r.get(e.parent);
|
|
53435
53431
|
for (let n = /* @__PURE__ */ new Set([e.key]); t?.item.member === e.item.member && !n.has(t.key); t = r.get(t.parent)) n.add(t.key);
|
|
@@ -53458,18 +53454,18 @@ function d1(e, t) {
|
|
|
53458
53454
|
});
|
|
53459
53455
|
return o;
|
|
53460
53456
|
}
|
|
53461
|
-
function
|
|
53457
|
+
function p1(e, t) {
|
|
53462
53458
|
if (e.source === "discussion") return `run:${e.run_id || e.id}`;
|
|
53463
53459
|
let n = e;
|
|
53464
53460
|
for (let r = /* @__PURE__ */ new Set([e.id]); n.parent_id && t.has(n.parent_id) && !r.has(n.parent_id); n = t.get(n.parent_id)) r.add(n.parent_id);
|
|
53465
53461
|
return n.task_id ? `task:${n.task_id}` : `exec:${n.id}`;
|
|
53466
53462
|
}
|
|
53467
|
-
function
|
|
53463
|
+
function m1(e, t) {
|
|
53468
53464
|
let n = new Map(e.executions.filter((e) => e.source === "free").map((e) => [e.id, e])), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
53469
53465
|
for (let a of e.executions) {
|
|
53470
|
-
let e =
|
|
53466
|
+
let e = p1(a, n);
|
|
53471
53467
|
i.set(`${a.source}:${a.id}`, e);
|
|
53472
|
-
let o =
|
|
53468
|
+
let o = o1(a, t), s = r.get(e) || {
|
|
53473
53469
|
key: e,
|
|
53474
53470
|
source: a.source,
|
|
53475
53471
|
start: o.start,
|
|
@@ -53487,7 +53483,7 @@ function p1(e, t) {
|
|
|
53487
53483
|
of: i
|
|
53488
53484
|
};
|
|
53489
53485
|
}
|
|
53490
|
-
function
|
|
53486
|
+
function h1(e, t) {
|
|
53491
53487
|
let n = new Map(e.map((e, t) => [e.key, t])), r = /* @__PURE__ */ new Map(), i = (e, t) => {
|
|
53492
53488
|
r.has(e) || r.set(e, []), r.get(e).push(t);
|
|
53493
53489
|
};
|
|
@@ -53513,7 +53509,7 @@ function m1(e, t) {
|
|
|
53513
53509
|
});
|
|
53514
53510
|
}), r;
|
|
53515
53511
|
}
|
|
53516
|
-
var
|
|
53512
|
+
var g1 = [
|
|
53517
53513
|
5,
|
|
53518
53514
|
10,
|
|
53519
53515
|
15,
|
|
@@ -53537,8 +53533,8 @@ var h1 = [
|
|
|
53537
53533
|
21600,
|
|
53538
53534
|
43200,
|
|
53539
53535
|
86400
|
|
53540
|
-
].map((e) => e * 1e3),
|
|
53541
|
-
function
|
|
53536
|
+
].map((e) => e * 1e3), _1 = .75;
|
|
53537
|
+
function v1(e, t = !1) {
|
|
53542
53538
|
let n = e.map((e) => [e.start, e.end]).sort((e, t) => e[0] - t[0]);
|
|
53543
53539
|
if (!n.length) return {
|
|
53544
53540
|
start: 0,
|
|
@@ -53554,8 +53550,8 @@ function _1(e, t = !1) {
|
|
|
53554
53550
|
n && e <= n[1] + 3e5 ? n[1] = Math.max(n[1], t) : r.push([e, t]);
|
|
53555
53551
|
}
|
|
53556
53552
|
let i = r.reduce((e, [t, n]) => e + (n - t), 0), a = i;
|
|
53557
|
-
t && i && (a =
|
|
53558
|
-
let o = Math.min(
|
|
53553
|
+
t && i && (a = g1.find((e) => e >= i / _1) ?? Math.ceil(i / _1), r.at(-1)[1] += a - i);
|
|
53554
|
+
let o = Math.min(i1, .5 / Math.max(1, r.length - 1)), s = a ? (1 - o * (r.length - 1)) / a : 0, c = [], l = 0;
|
|
53559
53555
|
return r.forEach(([e, t], n) => {
|
|
53560
53556
|
if (n) {
|
|
53561
53557
|
let t = r[n - 1][1];
|
|
@@ -53598,7 +53594,7 @@ function _1(e, t = !1) {
|
|
|
53598
53594
|
}))
|
|
53599
53595
|
};
|
|
53600
53596
|
}
|
|
53601
|
-
var
|
|
53597
|
+
var y1 = [
|
|
53602
53598
|
1,
|
|
53603
53599
|
2,
|
|
53604
53600
|
5,
|
|
@@ -53617,14 +53613,14 @@ var v1 = [
|
|
|
53617
53613
|
21600,
|
|
53618
53614
|
43200,
|
|
53619
53615
|
86400
|
|
53620
|
-
].map((e) => e * 1e3),
|
|
53621
|
-
function
|
|
53616
|
+
].map((e) => e * 1e3), b1 = .12;
|
|
53617
|
+
function x1(e, t = 6, n = {
|
|
53622
53618
|
from: 0,
|
|
53623
53619
|
span: 1
|
|
53624
53620
|
}) {
|
|
53625
53621
|
let r = (e.total_ms ?? e.busy_ms) * n.span;
|
|
53626
53622
|
if (!r) return [];
|
|
53627
|
-
let i =
|
|
53623
|
+
let i = y1.find((e) => r / e <= t) ?? y1.at(-1), a = b1 * n.span, o = [];
|
|
53628
53624
|
for (let t of e.spans) if (!(t.from + t.width < n.from || t.from > n.from + n.span)) for (let r = Math.ceil(t.start / i) * i; r <= t.end; r += i) {
|
|
53629
53625
|
let t = e.x(r);
|
|
53630
53626
|
t < n.from || t > n.from + n.span || (!o.length || t - o.at(-1).x >= a) && o.push({
|
|
@@ -53637,8 +53633,8 @@ function b1(e, t = 6, n = {
|
|
|
53637
53633
|
seconds: i < 6e4
|
|
53638
53634
|
}));
|
|
53639
53635
|
}
|
|
53640
|
-
var
|
|
53641
|
-
function
|
|
53636
|
+
var S1 = .01, C1 = 2e3;
|
|
53637
|
+
function w1(e, t) {
|
|
53642
53638
|
let n = (e) => (e - t.from) / t.span;
|
|
53643
53639
|
return {
|
|
53644
53640
|
...e,
|
|
@@ -53655,20 +53651,20 @@ function C1(e, t) {
|
|
|
53655
53651
|
}))
|
|
53656
53652
|
};
|
|
53657
53653
|
}
|
|
53658
|
-
function
|
|
53659
|
-
let i = Math.max(
|
|
53654
|
+
function T1(e, t, n, r = 0) {
|
|
53655
|
+
let i = Math.max(S1, r ? C1 / r : 0), a = Math.min(1, Math.max(i, e.span * n)), o = e.from + t * e.span;
|
|
53660
53656
|
return {
|
|
53661
53657
|
from: Math.min(1 - a, Math.max(0, o - t * a)),
|
|
53662
53658
|
span: a
|
|
53663
53659
|
};
|
|
53664
53660
|
}
|
|
53665
|
-
function
|
|
53661
|
+
function E1(e, t) {
|
|
53666
53662
|
return {
|
|
53667
53663
|
from: Math.min(1 - e.span, Math.max(0, e.from + t * e.span)),
|
|
53668
53664
|
span: e.span
|
|
53669
53665
|
};
|
|
53670
53666
|
}
|
|
53671
|
-
function
|
|
53667
|
+
function D1(e, t = Date.now()) {
|
|
53672
53668
|
let n = null;
|
|
53673
53669
|
for (let t of e) for (let e of t.segments) (!n || e.seen - e.start > n.end - n.start) && (n = {
|
|
53674
53670
|
...e,
|
|
@@ -53680,7 +53676,7 @@ function E1(e, t = Date.now()) {
|
|
|
53680
53676
|
executions: e.length,
|
|
53681
53677
|
running: e.filter((e) => e.item.state === "running").length,
|
|
53682
53678
|
failed: e.filter((e) => e.item.state === "failed").length,
|
|
53683
|
-
stalled: e.filter((e) => e.item.state === "running" &&
|
|
53679
|
+
stalled: e.filter((e) => e.item.state === "running" && c1(e, t).tone === "warn").length,
|
|
53684
53680
|
tool_segments: e.reduce((e, t) => e + t.segments.filter((e) => [
|
|
53685
53681
|
"command",
|
|
53686
53682
|
"tool",
|
|
@@ -53691,116 +53687,116 @@ function E1(e, t = Date.now()) {
|
|
|
53691
53687
|
}
|
|
53692
53688
|
//#endregion
|
|
53693
53689
|
//#region frontend/ExecutionTimeline.vue
|
|
53694
|
-
var
|
|
53690
|
+
var O1 = {
|
|
53695
53691
|
class: "merged-section execution-timeline",
|
|
53696
53692
|
"aria-label": "执行时间线"
|
|
53697
|
-
},
|
|
53693
|
+
}, k1 = {
|
|
53698
53694
|
key: 0,
|
|
53699
53695
|
role: "alert",
|
|
53700
53696
|
class: "fine-print wf-error"
|
|
53701
|
-
},
|
|
53697
|
+
}, A1 = {
|
|
53702
53698
|
key: 1,
|
|
53703
53699
|
class: "fine-print"
|
|
53704
|
-
},
|
|
53700
|
+
}, j1 = { class: "wf-head" }, M1 = {
|
|
53705
53701
|
key: 0,
|
|
53706
53702
|
class: "wf-state is-replay"
|
|
53707
|
-
},
|
|
53703
|
+
}, N1 = {
|
|
53708
53704
|
key: 2,
|
|
53709
53705
|
class: "wf-headline"
|
|
53710
|
-
},
|
|
53706
|
+
}, P1 = { class: "wf-summary" }, F1 = ["title"], I1 = ["title"], L1 = { title: "连续调用同一工具合并为一段" }, R1 = {
|
|
53711
53707
|
class: "wf-legend",
|
|
53712
53708
|
"aria-label": "图例"
|
|
53713
|
-
},
|
|
53709
|
+
}, z1 = {
|
|
53714
53710
|
key: 0,
|
|
53715
53711
|
class: "wf-legend-note"
|
|
53716
|
-
},
|
|
53712
|
+
}, B1 = {
|
|
53717
53713
|
key: 1,
|
|
53718
53714
|
class: "wf-legend-note"
|
|
53719
|
-
},
|
|
53715
|
+
}, V1 = { class: "wf-axis-label" }, H1 = {
|
|
53720
53716
|
key: 0,
|
|
53721
53717
|
class: "wf-zoom"
|
|
53722
|
-
},
|
|
53718
|
+
}, U1 = {
|
|
53723
53719
|
key: 1,
|
|
53724
53720
|
class: "wf-zoom-hint",
|
|
53725
53721
|
title: "Ctrl + 滚轮缩放;放大后按住中键或拖动时间轴平移,双击时间轴还原"
|
|
53726
|
-
},
|
|
53722
|
+
}, W1 = {
|
|
53727
53723
|
key: 2,
|
|
53728
53724
|
class: "wf-branch"
|
|
53729
|
-
},
|
|
53725
|
+
}, G1 = ["title"], K1 = {
|
|
53730
53726
|
key: 0,
|
|
53731
53727
|
class: "wf-guides",
|
|
53732
53728
|
"aria-hidden": "true"
|
|
53733
|
-
},
|
|
53729
|
+
}, q1 = [
|
|
53734
53730
|
"aria-expanded",
|
|
53735
53731
|
"aria-label",
|
|
53736
53732
|
"onClick"
|
|
53737
|
-
],
|
|
53733
|
+
], J1 = {
|
|
53738
53734
|
key: 2,
|
|
53739
53735
|
class: "wf-toggle-space"
|
|
53740
|
-
},
|
|
53736
|
+
}, Y1 = [
|
|
53741
53737
|
"aria-expanded",
|
|
53742
53738
|
"onClick",
|
|
53743
53739
|
"onMouseenter",
|
|
53744
53740
|
"onMouseleave"
|
|
53745
|
-
],
|
|
53741
|
+
], X1 = { class: "wf-name-line" }, Z1 = {
|
|
53746
53742
|
key: 0,
|
|
53747
53743
|
class: "wf-spinner",
|
|
53748
53744
|
"aria-hidden": "true"
|
|
53749
|
-
},
|
|
53745
|
+
}, Q1 = {
|
|
53750
53746
|
key: 1,
|
|
53751
53747
|
class: "wf-pill is-slowest"
|
|
53752
|
-
},
|
|
53748
|
+
}, $1 = {
|
|
53753
53749
|
key: 0,
|
|
53754
53750
|
class: "wf-live-dot",
|
|
53755
53751
|
"aria-hidden": "true"
|
|
53756
|
-
},
|
|
53752
|
+
}, e0 = ["aria-label", "onMouseleave"], t0 = { class: "wf-track" }, n0 = ["data-tone"], r0 = ["onMouseenter", "onClick"], i0 = ["onMouseenter", "onClick"], a0 = [
|
|
53757
53753
|
"data-tone",
|
|
53758
53754
|
"onMouseenter",
|
|
53759
53755
|
"onClick"
|
|
53760
|
-
],
|
|
53756
|
+
], o0 = [
|
|
53761
53757
|
"data-tone",
|
|
53762
53758
|
"onMouseenter",
|
|
53763
53759
|
"onClick"
|
|
53764
|
-
],
|
|
53760
|
+
], s0 = [
|
|
53765
53761
|
"data-tone",
|
|
53766
53762
|
"onMouseenter",
|
|
53767
53763
|
"onClick"
|
|
53768
|
-
],
|
|
53764
|
+
], c0 = [
|
|
53769
53765
|
"aria-label",
|
|
53770
53766
|
"onMouseenter",
|
|
53771
53767
|
"onClick",
|
|
53772
53768
|
"onFocus",
|
|
53773
53769
|
"onBlur"
|
|
53774
|
-
],
|
|
53770
|
+
], l0 = { class: "wf-end" }, u0 = { key: 1 }, d0 = ["aria-label"], f0 = { class: "wf-detail-head" }, p0 = { key: 0 }, m0 = { key: 1 }, h0 = { class: "is-failed" }, g0 = { key: 2 }, _0 = { key: 3 }, v0 = {
|
|
53775
53771
|
key: 0,
|
|
53776
53772
|
class: "wf-log",
|
|
53777
53773
|
"aria-label": "过程"
|
|
53778
|
-
},
|
|
53774
|
+
}, y0 = ["data-tone"], b0 = {
|
|
53779
53775
|
key: 1,
|
|
53780
53776
|
class: "wf-log-note"
|
|
53781
|
-
},
|
|
53777
|
+
}, x0 = {
|
|
53782
53778
|
key: 1,
|
|
53783
53779
|
class: "fine-print"
|
|
53784
|
-
},
|
|
53780
|
+
}, S0 = {
|
|
53785
53781
|
key: 1,
|
|
53786
53782
|
class: "wf-player"
|
|
53787
|
-
},
|
|
53783
|
+
}, C0 = {
|
|
53788
53784
|
key: 2,
|
|
53789
53785
|
class: "wf-player"
|
|
53790
|
-
},
|
|
53786
|
+
}, w0 = ["aria-label"], T0 = ["disabled"], E0 = ["max", "value"], D0 = { class: "wf-player-time" }, O0 = {
|
|
53791
53787
|
key: 3,
|
|
53792
53788
|
class: "wf-foot"
|
|
53793
|
-
},
|
|
53789
|
+
}, k0 = { key: 0 }, A0 = { key: 1 }, j0 = ["role"], M0 = {
|
|
53794
53790
|
key: 1,
|
|
53795
53791
|
class: "wf-card-text"
|
|
53796
|
-
},
|
|
53792
|
+
}, N0 = {
|
|
53797
53793
|
key: 2,
|
|
53798
53794
|
class: "wf-card-reason"
|
|
53799
|
-
},
|
|
53795
|
+
}, P0 = { class: "wf-card-label" }, F0 = 2e3, I0 = 6e4, L0 = 100, R0 = 60, z0 = 2e4, B0 = 600, V0 = 5, H0 = 16, U0 = 90, W0 = 2, G0 = 8, K0 = 560, q0 = .0015, J0 = "latest", Y0 = "all", X0 = 22, Z0 = 5, Q0 = 52, $0 = /*#__PURE__*/ YH({
|
|
53800
53796
|
__name: "ExecutionTimeline",
|
|
53801
53797
|
emits: ["detail"],
|
|
53802
53798
|
setup(e, { emit: t }) {
|
|
53803
|
-
let n = t, { view: r, bridge: i } = xr("discussion"), a =
|
|
53799
|
+
let n = t, { view: r, bridge: i } = xr("discussion"), a = s1 / 6e4, o = [
|
|
53804
53800
|
1,
|
|
53805
53801
|
2,
|
|
53806
53802
|
4,
|
|
@@ -53816,7 +53812,7 @@ var D1 = {
|
|
|
53816
53812
|
let t = d.value;
|
|
53817
53813
|
if (!t || w) return;
|
|
53818
53814
|
w = !0;
|
|
53819
|
-
let n = e || !S || Date.now() - C >=
|
|
53815
|
+
let n = e || !S || Date.now() - C >= I0 ? 0 : S - V0;
|
|
53820
53816
|
try {
|
|
53821
53817
|
let e = await i.request(`/api/rooms/${t}/timeline${n ? `?after=${n}` : ""}`);
|
|
53822
53818
|
if (t !== d.value) return;
|
|
@@ -53839,7 +53835,7 @@ var D1 = {
|
|
|
53839
53835
|
R(Z(() => re.value?.executions.some((e) => e.state === "running")), (e) => {
|
|
53840
53836
|
clearInterval(T), e && (T = setInterval(() => {
|
|
53841
53837
|
document.hidden || ne();
|
|
53842
|
-
},
|
|
53838
|
+
}, F0));
|
|
53843
53839
|
}, { immediate: !0 }), R(d, () => {
|
|
53844
53840
|
f.value = /* @__PURE__ */ new Map(), p.value = null, g.value = /* @__PURE__ */ new Set(), _.value = /* @__PURE__ */ new Map(), v.value = null, y.value = "", S = 0, ne(!0);
|
|
53845
53841
|
}, { immediate: !0 }), R(() => r.value.room, (e, t) => {
|
|
@@ -53854,7 +53850,7 @@ var D1 = {
|
|
|
53854
53850
|
};
|
|
53855
53851
|
}
|
|
53856
53852
|
function oe(e) {
|
|
53857
|
-
c.value && e.target.closest?.(".wf-track, .wf-axis") && (e.ctrlKey || e.metaKey ? (e.preventDefault(), De.value =
|
|
53853
|
+
c.value && e.target.closest?.(".wf-track, .wf-axis") && (e.ctrlKey || e.metaKey ? (e.preventDefault(), De.value = T1(De.value, ae(e).share, Math.exp(e.deltaY * q0), Te.value.total_ms)) : Oe.value && (e.shiftKey || Math.abs(e.deltaX) > Math.abs(e.deltaY)) && (e.preventDefault(), De.value = E1(De.value, (e.shiftKey ? e.deltaY : e.deltaX) / ae(e).width)));
|
|
53858
53854
|
}
|
|
53859
53855
|
function k(e) {
|
|
53860
53856
|
let t = e.target.closest?.(".wf-axis");
|
|
@@ -53865,7 +53861,7 @@ var D1 = {
|
|
|
53865
53861
|
}, e.currentTarget.setPointerCapture(e.pointerId));
|
|
53866
53862
|
}
|
|
53867
53863
|
function se(e) {
|
|
53868
|
-
ie && (De.value =
|
|
53864
|
+
ie && (De.value = E1({
|
|
53869
53865
|
from: ie.from,
|
|
53870
53866
|
span: De.value.span
|
|
53871
53867
|
}, -(e.clientX - ie.x) / ie.width));
|
|
@@ -53891,15 +53887,15 @@ var D1 = {
|
|
|
53891
53887
|
}), ta(() => {
|
|
53892
53888
|
clearInterval(T), cancelAnimationFrame(E), document.removeEventListener("pointerdown", ue), document.removeEventListener("keydown", de), u?.disconnect();
|
|
53893
53889
|
});
|
|
53894
|
-
let fe = /* @__PURE__ */ F(
|
|
53890
|
+
let fe = /* @__PURE__ */ F(J0), pe = Z(() => re.value ? m1(re.value, h.value) : {
|
|
53895
53891
|
list: [],
|
|
53896
53892
|
of: /* @__PURE__ */ new Map()
|
|
53897
|
-
}), me = Z(() => fe.value ===
|
|
53893
|
+
}), me = Z(() => fe.value === J0 ? pe.value.list[0]?.key : fe.value === Y0 || pe.value.list.some((e) => e.key === fe.value) ? fe.value : pe.value.list[0]?.key), he = Z(() => !re.value || me.value === Y0 ? re.value : {
|
|
53898
53894
|
...re.value,
|
|
53899
53895
|
executions: re.value.executions.filter((e) => pe.value.of.get(`${e.source}:${e.id}`) === me.value)
|
|
53900
53896
|
});
|
|
53901
53897
|
R(d, () => {
|
|
53902
|
-
fe.value =
|
|
53898
|
+
fe.value = J0;
|
|
53903
53899
|
});
|
|
53904
53900
|
let ge = (e) => new Date(e).toLocaleString("zh-CN", {
|
|
53905
53901
|
month: "numeric",
|
|
@@ -53909,13 +53905,13 @@ var D1 = {
|
|
|
53909
53905
|
hour12: !1
|
|
53910
53906
|
});
|
|
53911
53907
|
function _e(e) {
|
|
53912
|
-
let t = e.task ? `${e.task.replace(/\s+/g, " ").slice(0,
|
|
53908
|
+
let t = e.task ? `${e.task.replace(/\s+/g, " ").slice(0, X0)}${e.task.length > X0 ? "…" : ""}` : e.source === "discussion" ? "讨论" : "执行";
|
|
53913
53909
|
return `${ge(e.start)} · ${t} · ${e.count} 次${e.running ? " · 进行中" : e.failed ? " · 有失败" : ""}`;
|
|
53914
53910
|
}
|
|
53915
53911
|
let M = Z(() => [
|
|
53916
53912
|
{
|
|
53917
53913
|
label: "最近一轮(自动跟随)",
|
|
53918
|
-
value:
|
|
53914
|
+
value: J0
|
|
53919
53915
|
},
|
|
53920
53916
|
...pe.value.list.map((e) => ({
|
|
53921
53917
|
label: _e(e),
|
|
@@ -53923,9 +53919,9 @@ var D1 = {
|
|
|
53923
53919
|
})),
|
|
53924
53920
|
{
|
|
53925
53921
|
label: "全部执行",
|
|
53926
|
-
value:
|
|
53922
|
+
value: Y0
|
|
53927
53923
|
}
|
|
53928
|
-
]), N = Z(() => he.value ?
|
|
53924
|
+
]), N = Z(() => he.value ? f1(he.value, h.value) : []), ve = Z(() => N.value.some((e) => e.item.state === "running")), ye = Z(() => {
|
|
53929
53925
|
let e = Math.min(...N.value.map((e) => e.start)), t = Math.max(...N.value.map((e) => e.end));
|
|
53930
53926
|
return Number.isFinite(e) ? {
|
|
53931
53927
|
start: e,
|
|
@@ -53936,17 +53932,17 @@ var D1 = {
|
|
|
53936
53932
|
end: 0,
|
|
53937
53933
|
duration: 0
|
|
53938
53934
|
};
|
|
53939
|
-
}), be = Z(() => O.position !== null && !ve.value), xe = Z(() => be.value ? ye.value.start + O.position : h.value), Se = Z(() => be.value ?
|
|
53935
|
+
}), be = Z(() => O.position !== null && !ve.value), xe = Z(() => be.value ? ye.value.start + O.position : h.value), Se = Z(() => be.value ? f1(u1(he.value, xe.value, _.value), xe.value) : N.value), Ce = Z(() => Se.value.filter((e) => !e.ancestors.some((e) => g.value.has(e)))), we = Z(() => Se.value.some((e) => e.item.state === "running")), Te = Z(() => v1(Se.value, we.value)), Ee = {
|
|
53940
53936
|
from: 0,
|
|
53941
53937
|
span: 1
|
|
53942
53938
|
}, De = /* @__PURE__ */ F(Ee), Oe = Z(() => De.value.span < 1);
|
|
53943
53939
|
R([me, d], () => {
|
|
53944
53940
|
De.value = Ee;
|
|
53945
53941
|
});
|
|
53946
|
-
let ke = Z(() =>
|
|
53942
|
+
let ke = Z(() => w1(Te.value, De.value)), Ae = Z(() => {
|
|
53947
53943
|
let e = we.value ? ke.value.x(xe.value) : null;
|
|
53948
53944
|
return e === null || e < 0 || e > 1 ? null : e;
|
|
53949
|
-
}), je = Z(() => Math.max(1, ye.value.duration /
|
|
53945
|
+
}), je = Z(() => Math.max(1, ye.value.duration / z0)), Me = Z(() => [{
|
|
53950
53946
|
label: `自动 · ${Math.round(je.value)}×`,
|
|
53951
53947
|
value: 0
|
|
53952
53948
|
}, ...o.map((e) => ({
|
|
@@ -53956,7 +53952,7 @@ var D1 = {
|
|
|
53956
53952
|
function Pe(e) {
|
|
53957
53953
|
let t = ee ? Math.min(e - ee, 250) : 0;
|
|
53958
53954
|
ee = e;
|
|
53959
|
-
let n = Se.value.length <=
|
|
53955
|
+
let n = Se.value.length <= R0 || e - D >= L0;
|
|
53960
53956
|
O.playing && (te += t * Ne.value, te >= ye.value.duration ? Object.assign(O, {
|
|
53961
53957
|
position: null,
|
|
53962
53958
|
playing: !1
|
|
@@ -54009,15 +54005,15 @@ var D1 = {
|
|
|
54009
54005
|
let t = e.filter((e) => !Ve.has(e));
|
|
54010
54006
|
t.forEach((e) => Ve.add(e)), t.length && (Be.value = /* @__PURE__ */ new Set([...Be.value, ...t]), setTimeout(() => {
|
|
54011
54007
|
Be.value = new Set([...Be.value].filter((e) => !t.includes(e)));
|
|
54012
|
-
},
|
|
54008
|
+
}, B0));
|
|
54013
54009
|
}), R([me, d], () => {
|
|
54014
54010
|
Ve = null;
|
|
54015
54011
|
});
|
|
54016
|
-
let Ue = Z(() =>
|
|
54012
|
+
let Ue = Z(() => h1(Ce.value, ke.value)), We = Z(() => x1(Te.value, Math.min(G0, Math.max(W0, Math.round((l.value || 540) / U0))), De.value).map((e) => ({
|
|
54017
54013
|
...e,
|
|
54018
54014
|
x: (e.x - De.value.from) / De.value.span
|
|
54019
|
-
}))), Ge = Z(() =>
|
|
54020
|
-
let e = Se.value, t = new Set(e.flatMap((e) => e.segments.map((e) =>
|
|
54015
|
+
}))), Ge = Z(() => D1(Se.value, xe.value)), Ke = Z(() => Se.value.filter((e) => e.has_children).map((e) => e.key)), qe = Z(() => Se.value.find((e) => e.key === y.value)), Je = Z(() => qe.value ? l1(qe.value, _.value.get(qe.value.item.id)) : []), Ye = Z(() => {
|
|
54016
|
+
let e = Se.value, t = new Set(e.flatMap((e) => e.segments.map((e) => t1[e.phase])));
|
|
54021
54017
|
return [
|
|
54022
54018
|
...e.some((e) => e.queue[1] > e.queue[0]) ? [["queue", "排队"]] : [],
|
|
54023
54019
|
...e.some((e) => e.wake) ? [["wake", "唤醒"]] : [],
|
|
@@ -54030,10 +54026,10 @@ var D1 = {
|
|
|
54030
54026
|
];
|
|
54031
54027
|
}), Xe = Z(() => Se.value.length > 0 && Se.value.every((e) => !e.segments.length)), Ze = Z(() => {
|
|
54032
54028
|
let e = /* @__PURE__ */ new Map();
|
|
54033
|
-
for (let t of [...Se.value].sort((e, t) => e.start - t.start)) e.has(t.item.member) || e.set(t.item.member, e.size %
|
|
54029
|
+
for (let t of [...Se.value].sort((e, t) => e.start - t.start)) e.has(t.item.member) || e.set(t.item.member, e.size % Z0 + 1);
|
|
54034
54030
|
return e;
|
|
54035
54031
|
}), Qe = Z(() => {
|
|
54036
|
-
let e =
|
|
54032
|
+
let e = Q0 / (l.value || 800), t = [];
|
|
54037
54033
|
for (let n of ke.value.folds) {
|
|
54038
54034
|
let r = n.from + n.width / 2;
|
|
54039
54035
|
r < 0 || r > 1 || (!t.length || r - t.at(-1).middle >= e) && t.push({
|
|
@@ -54043,12 +54039,12 @@ var D1 = {
|
|
|
54043
54039
|
}
|
|
54044
54040
|
return t;
|
|
54045
54041
|
}), $e = Z(() => {
|
|
54046
|
-
let e =
|
|
54042
|
+
let e = Q0 / (l.value || 800);
|
|
54047
54043
|
return We.value.filter((t) => !Qe.value.some((n) => Math.abs(t.x - n.middle) < e));
|
|
54048
54044
|
});
|
|
54049
54045
|
function et(e, t) {
|
|
54050
54046
|
if (y.value = y.value === e.key ? "" : e.key, !y.value) return;
|
|
54051
|
-
let n = t.currentTarget.getBoundingClientRect(), r = x.value.getBoundingClientRect(), i = Math.min(
|
|
54047
|
+
let n = t.currentTarget.getBoundingClientRect(), r = x.value.getBoundingClientRect(), i = Math.min(K0, r.width - 16);
|
|
54052
54048
|
b.value = {
|
|
54053
54049
|
top: n.bottom - r.top + 4,
|
|
54054
54050
|
left: Math.max(8, Math.min(n.left - r.left, r.width - i - 8))
|
|
@@ -54075,15 +54071,15 @@ var D1 = {
|
|
|
54075
54071
|
function it(e) {
|
|
54076
54072
|
return [...e.item.source === "discussion" ? ["讨论"] : [], ...e.item.role === "host" ? ["主持"] : []];
|
|
54077
54073
|
}
|
|
54078
|
-
let at = (e) =>
|
|
54074
|
+
let at = (e) => c1(e, xe.value);
|
|
54079
54075
|
function ot(e) {
|
|
54080
54076
|
let t = [
|
|
54081
54077
|
i.display_name(e.item.member),
|
|
54082
54078
|
rt(e),
|
|
54083
|
-
|
|
54084
|
-
`用时 ${
|
|
54079
|
+
n1[e.item.state],
|
|
54080
|
+
`用时 ${a1(e.end - e.start)}`
|
|
54085
54081
|
];
|
|
54086
|
-
return e.wake && t.push(`唤醒 ${
|
|
54082
|
+
return e.wake && t.push(`唤醒 ${a1(e.wake[1] - e.wake[0])}${e.wake_approx ? "(约)" : ""}`), !e.segments.length && e.work && t.push("无阶段明细"), e.notes.length && t.push(`${e.notes.length} 段过程说明`), t.join(",");
|
|
54087
54083
|
}
|
|
54088
54084
|
async function st(e) {
|
|
54089
54085
|
let t = e.item.id;
|
|
@@ -54107,7 +54103,7 @@ var D1 = {
|
|
|
54107
54103
|
let i = e.currentTarget.getBoundingClientRect(), a = n.note ? {
|
|
54108
54104
|
notes: [n.note],
|
|
54109
54105
|
earlier: !1
|
|
54110
|
-
} :
|
|
54106
|
+
} : d1(t.notes, n.start, n.end), o = Math.min(360, window.innerWidth - 16), s = i.bottom + 6, c = s + 160 > window.innerHeight && i.top > 200 ? Math.max(8, i.top - 6 - 200) : s;
|
|
54111
54107
|
v.value = {
|
|
54112
54108
|
key: t.key,
|
|
54113
54109
|
id: dt(t, n),
|
|
@@ -54131,7 +54127,7 @@ var D1 = {
|
|
|
54131
54127
|
}
|
|
54132
54128
|
let ht = Z(() => {
|
|
54133
54129
|
let e = v.value?.piece;
|
|
54134
|
-
return e ? e.note ? `过程说明 · ${ct(e.note.at)}` : `${e.kind === "segment" ? `${
|
|
54130
|
+
return e ? e.note ? `过程说明 · ${ct(e.note.at)}` : `${e.kind === "segment" ? `${e1[e.phase]}${e.tool ? ` · ${e.tool}` : ""}` : e.label} · ${a1(e.end - e.start)}${e.live ? " · 进行中" : ""}` : "";
|
|
54135
54131
|
}), gt = Z(() => {
|
|
54136
54132
|
if (!v.value) return [];
|
|
54137
54133
|
let e = _.value.get(v.value.row.item.id);
|
|
@@ -54142,17 +54138,17 @@ var D1 = {
|
|
|
54142
54138
|
});
|
|
54143
54139
|
return (e, t) => {
|
|
54144
54140
|
let r = bH, o = sA, s = pA;
|
|
54145
|
-
return U(), W("section",
|
|
54141
|
+
return U(), W("section", O1, [
|
|
54146
54142
|
t[30] ||= K("div", { class: "page-heading" }, [K("div", null, [K("h2", null, "执行时间线"), K("p", null, "本机接入程序唤醒的每次执行;点名字看详情,悬停条形看当时的过程说明。")])], -1),
|
|
54147
|
-
m.value ? (U(), W("p",
|
|
54148
|
-
re.value && !Se.value.length ? (U(), W("p",
|
|
54143
|
+
m.value ? (U(), W("p", k1, P(m.value), 1)) : Y("", !0),
|
|
54144
|
+
re.value && !Se.value.length ? (U(), W("p", A1, "还没有执行记录。")) : Y("", !0),
|
|
54149
54145
|
Se.value.length ? (U(), W("div", {
|
|
54150
54146
|
key: 2,
|
|
54151
54147
|
ref_key: "wf_element",
|
|
54152
54148
|
ref: x,
|
|
54153
54149
|
class: "wf"
|
|
54154
54150
|
}, [
|
|
54155
|
-
K("header",
|
|
54151
|
+
K("header", j1, [
|
|
54156
54152
|
t[12] ||= K("span", { class: "wf-title" }, "执行瀑布", -1),
|
|
54157
54153
|
q(r, {
|
|
54158
54154
|
modelValue: fe.value,
|
|
@@ -54171,17 +54167,17 @@ var D1 = {
|
|
|
54171
54167
|
trailingIcon: "wf-select-icon"
|
|
54172
54168
|
}
|
|
54173
54169
|
}, null, 8, ["modelValue", "items"]),
|
|
54174
|
-
be.value ? (U(), W("span",
|
|
54170
|
+
be.value ? (U(), W("span", M1, "回放中 · " + P(ct(xe.value)), 1)) : (U(), W("span", {
|
|
54175
54171
|
key: 1,
|
|
54176
54172
|
class: j(["wf-state", { "is-live": Ge.value.running }])
|
|
54177
54173
|
}, P(Ge.value.running ? `${Ge.value.running} 个进行中` : "均已结束"), 3)),
|
|
54178
|
-
Ge.value.slowest ? (U(), W("span",
|
|
54174
|
+
Ge.value.slowest ? (U(), W("span", N1, [
|
|
54179
54175
|
t[11] ||= J("最慢一步 ", -1),
|
|
54180
|
-
K("b", null, [J(P(I(i).display_name(Ge.value.slowest.member)) + " · " + P(I(
|
|
54181
|
-
J(" · " + P(I(
|
|
54176
|
+
K("b", null, [J(P(I(i).display_name(Ge.value.slowest.member)) + " · " + P(I(e1)[Ge.value.slowest.phase]), 1), Ge.value.slowest.tool ? (U(), W(H, { key: 0 }, [J(P(Ge.value.slowest.tool), 1)], 64)) : Y("", !0)]),
|
|
54177
|
+
J(" · " + P(I(a1)(Ge.value.slowest.end - Ge.value.slowest.start)), 1)
|
|
54182
54178
|
])) : Y("", !0)
|
|
54183
54179
|
]),
|
|
54184
|
-
K("dl",
|
|
54180
|
+
K("dl", P1, [
|
|
54185
54181
|
K("div", null, [t[13] ||= K("dt", null, "执行", -1), K("dd", null, [(U(), W("span", {
|
|
54186
54182
|
key: Ge.value.executions,
|
|
54187
54183
|
class: "wf-roll"
|
|
@@ -54197,17 +54193,17 @@ var D1 = {
|
|
|
54197
54193
|
K("div", { title: `超过 ${a} 分钟没有输出` }, [t[16] ||= K("dt", null, "可能卡住", -1), K("dd", { class: j(Ge.value.stalled ? "is-warn" : "is-zero") }, [(U(), W("span", {
|
|
54198
54194
|
key: Ge.value.stalled,
|
|
54199
54195
|
class: "wf-roll"
|
|
54200
|
-
}, P(Ge.value.stalled), 1))], 2)], 8,
|
|
54201
|
-
K("div", { title: Te.value.folds.length ? `已折叠 ${Te.value.folds.length} 段超过 ${I(
|
|
54202
|
-
K("div",
|
|
54196
|
+
}, P(Ge.value.stalled), 1))], 2)], 8, F1),
|
|
54197
|
+
K("div", { title: Te.value.folds.length ? `已折叠 ${Te.value.folds.length} 段超过 ${I(r1) / 6e4} 分钟的空闲` : void 0 }, [t[17] ||= K("dt", null, "有效时长", -1), K("dd", null, P(I(a1)(Te.value.busy_ms)), 1)], 8, I1),
|
|
54198
|
+
K("div", L1, [t[19] ||= K("dt", null, "工具与命令", -1), K("dd", { class: j({ "is-zero": !Ge.value.tool_segments }) }, [(U(), W("span", {
|
|
54203
54199
|
key: Ge.value.tool_segments,
|
|
54204
54200
|
class: "wf-roll"
|
|
54205
54201
|
}, P(Ge.value.tool_segments), 1)), t[18] ||= J(" 段", -1)], 2)])
|
|
54206
54202
|
]),
|
|
54207
|
-
K("ul",
|
|
54203
|
+
K("ul", R1, [
|
|
54208
54204
|
(U(!0), W(H, null, B(Ye.value, ([e, t]) => (U(), W("li", { key: e }, [K("i", { class: j(["wf-swatch", `is-${e}`]) }, null, 2), J(P(t), 1)]))), 128)),
|
|
54209
|
-
Ze.value.size > 1 ? (U(), W("li",
|
|
54210
|
-
Xe.value ? (U(), W("li",
|
|
54205
|
+
Ze.value.size > 1 ? (U(), W("li", z1, "颜色区分成员,深浅区分模型与工具")) : Y("", !0),
|
|
54206
|
+
Xe.value ? (U(), W("li", B1, "这些执行都没有阶段明细:发生在接入程序上报阶段之前,或来自手动接入、在线 AI、Codex App")) : Y("", !0)
|
|
54211
54207
|
]),
|
|
54212
54208
|
K("div", {
|
|
54213
54209
|
class: j(["wf-grid", {
|
|
@@ -54215,7 +54211,7 @@ var D1 = {
|
|
|
54215
54211
|
"is-panning": I(ie)
|
|
54216
54212
|
}]),
|
|
54217
54213
|
role: "list",
|
|
54218
|
-
style: A({ "--wf-depth-px": `${
|
|
54214
|
+
style: A({ "--wf-depth-px": `${H0}px` }),
|
|
54219
54215
|
onWheel: oe,
|
|
54220
54216
|
onMousedown: le,
|
|
54221
54217
|
onPointerdown: k,
|
|
@@ -54223,14 +54219,14 @@ var D1 = {
|
|
|
54223
54219
|
onPointerup: ce,
|
|
54224
54220
|
onPointercancel: ce
|
|
54225
54221
|
}, [
|
|
54226
|
-
K("div",
|
|
54222
|
+
K("div", V1, [
|
|
54227
54223
|
K("span", null, "执行 · " + P(Ce.value.length) + "/" + P(Se.value.length), 1),
|
|
54228
|
-
Oe.value ? (U(), W("span",
|
|
54224
|
+
Oe.value ? (U(), W("span", H1, [J("放大 " + P((1 / De.value.span).toFixed(1)) + "×", 1), K("button", {
|
|
54229
54225
|
type: "button",
|
|
54230
54226
|
class: "wf-text-button",
|
|
54231
54227
|
onClick: t[1] ||= (e) => De.value = Ee
|
|
54232
|
-
}, "重置")])) : (U(), W("span",
|
|
54233
|
-
Ke.value.length ? (U(), W("span",
|
|
54228
|
+
}, "重置")])) : (U(), W("span", U1, "Ctrl + 滚轮缩放")),
|
|
54229
|
+
Ke.value.length ? (U(), W("span", W1, [K("button", {
|
|
54234
54230
|
type: "button",
|
|
54235
54231
|
class: "wf-text-button",
|
|
54236
54232
|
onClick: t[2] ||= (e) => g.value = /* @__PURE__ */ new Set()
|
|
@@ -54257,7 +54253,7 @@ var D1 = {
|
|
|
54257
54253
|
class: "wf-fold-label",
|
|
54258
54254
|
style: A({ left: `${e.middle * 100}%` }),
|
|
54259
54255
|
title: `${ct(e.start)} – ${ct(e.end)} 没有执行,已折叠`
|
|
54260
|
-
}, "⋯ " + P(I(
|
|
54256
|
+
}, "⋯ " + P(I(a1)(e.end - e.start)), 13, G1))), 128)),
|
|
54261
54257
|
Ae.value === null ? Y("", !0) : (U(), W("span", {
|
|
54262
54258
|
key: 0,
|
|
54263
54259
|
class: "wf-cursor-head",
|
|
@@ -54277,7 +54273,7 @@ var D1 = {
|
|
|
54277
54273
|
class: "wf-label",
|
|
54278
54274
|
style: A({ "--depth": e.depth })
|
|
54279
54275
|
}, [
|
|
54280
|
-
e.depth ? (U(), W("span",
|
|
54276
|
+
e.depth ? (U(), W("span", K1)) : Y("", !0),
|
|
54281
54277
|
e.has_children ? (U(), W("button", {
|
|
54282
54278
|
key: 1,
|
|
54283
54279
|
type: "button",
|
|
@@ -54285,7 +54281,7 @@ var D1 = {
|
|
|
54285
54281
|
"aria-expanded": !g.value.has(e.key),
|
|
54286
54282
|
"aria-label": `${g.value.has(e.key) ? "展开" : "收起"} ${I(i).display_name(e.item.member)} 派出的执行`,
|
|
54287
54283
|
onClick: (t) => tt(e.key)
|
|
54288
|
-
}, [q(o, { name: "i-lucide-chevron-right" })], 10,
|
|
54284
|
+
}, [q(o, { name: "i-lucide-chevron-right" })], 10, q1)) : (U(), W("span", J1)),
|
|
54289
54285
|
q(s, {
|
|
54290
54286
|
src: I(i).identities[e.item.member]?.icon,
|
|
54291
54287
|
text: I(i).identities[e.item.member]?.initials,
|
|
@@ -54304,29 +54300,29 @@ var D1 = {
|
|
|
54304
54300
|
"aria-expanded": y.value === e.key,
|
|
54305
54301
|
onClick: (t) => et(e, t),
|
|
54306
54302
|
onMouseenter: (t) => ft(t, e, {
|
|
54307
|
-
label: I(
|
|
54303
|
+
label: I(n1)[e.item.state],
|
|
54308
54304
|
start: e.start,
|
|
54309
54305
|
end: e.end,
|
|
54310
54306
|
text: at(e).text,
|
|
54311
54307
|
live: e.item.state === "running"
|
|
54312
54308
|
}),
|
|
54313
54309
|
onMouseleave: (t) => mt(e)
|
|
54314
|
-
}, [K("span",
|
|
54315
|
-
e.item.state === "running" ? (U(), W("i",
|
|
54310
|
+
}, [K("span", X1, [
|
|
54311
|
+
e.item.state === "running" ? (U(), W("i", Z1)) : Y("", !0),
|
|
54316
54312
|
K("strong", null, P(I(i).display_name(e.item.member)), 1),
|
|
54317
54313
|
(U(!0), W(H, null, B(it(e), (e) => (U(), W("em", {
|
|
54318
54314
|
key: e,
|
|
54319
54315
|
class: "wf-pill is-role"
|
|
54320
54316
|
}, P(e), 1))), 128)),
|
|
54321
|
-
Ge.value.slowest?.row === e.key ? (U(), W("em",
|
|
54322
|
-
]), K("span", { class: j(["wf-status", `is-${at(e).tone}`]) }, [at(e).tone === "live" ? (U(), W("i",
|
|
54317
|
+
Ge.value.slowest?.row === e.key ? (U(), W("em", Q1, "最慢")) : Y("", !0)
|
|
54318
|
+
]), K("span", { class: j(["wf-status", `is-${at(e).tone}`]) }, [at(e).tone === "live" ? (U(), W("i", $1)) : Y("", !0), J(P(at(e).text), 1)], 2)], 40, Y1)
|
|
54323
54319
|
], 4),
|
|
54324
54320
|
K("div", {
|
|
54325
54321
|
class: "wf-lane",
|
|
54326
54322
|
role: "img",
|
|
54327
54323
|
"aria-label": ot(e),
|
|
54328
54324
|
onMouseleave: (t) => mt(e)
|
|
54329
|
-
}, [K("div",
|
|
54325
|
+
}, [K("div", t0, [
|
|
54330
54326
|
(U(!0), W(H, null, B($e.value, (e) => (U(), W("i", {
|
|
54331
54327
|
key: e.at,
|
|
54332
54328
|
class: "wf-gridline",
|
|
@@ -54346,7 +54342,7 @@ var D1 = {
|
|
|
54346
54342
|
class: j(["wf-link", `is-${e.part}`]),
|
|
54347
54343
|
"data-tone": Ze.value.get(e.member),
|
|
54348
54344
|
style: A({ left: `${e.x * 100}%` })
|
|
54349
|
-
}, null, 14,
|
|
54345
|
+
}, null, 14, n0))), 128)),
|
|
54350
54346
|
Ae.value === null ? Y("", !0) : (U(), W("i", {
|
|
54351
54347
|
key: 0,
|
|
54352
54348
|
class: "wf-cursor",
|
|
@@ -54365,7 +54361,7 @@ var D1 = {
|
|
|
54365
54361
|
start: e.queue[0],
|
|
54366
54362
|
end: e.queue[1]
|
|
54367
54363
|
})
|
|
54368
|
-
}, null, 44,
|
|
54364
|
+
}, null, 44, r0),
|
|
54369
54365
|
e.wake ? (U(), W("i", {
|
|
54370
54366
|
key: 1,
|
|
54371
54367
|
class: "wf-bar is-wake",
|
|
@@ -54380,7 +54376,7 @@ var D1 = {
|
|
|
54380
54376
|
start: e.wake[0],
|
|
54381
54377
|
end: e.wake[1]
|
|
54382
54378
|
})
|
|
54383
|
-
}, null, 44,
|
|
54379
|
+
}, null, 44, i0)) : Y("", !0),
|
|
54384
54380
|
e.work ? (U(), W("i", {
|
|
54385
54381
|
key: 2,
|
|
54386
54382
|
class: j(["wf-bar is-work", { "has-detail": e.segments.length }]),
|
|
@@ -54398,9 +54394,9 @@ var D1 = {
|
|
|
54398
54394
|
end: e.work[1],
|
|
54399
54395
|
live: e.item.state === "running"
|
|
54400
54396
|
})
|
|
54401
|
-
}, null, 46,
|
|
54397
|
+
}, null, 46, a0)) : Y("", !0),
|
|
54402
54398
|
(U(!0), W(H, null, B(e.segments, (t) => (U(), W(H, { key: t.start + t.phase }, [K("i", {
|
|
54403
|
-
class: j(["wf-bar wf-seg", [`is-${I(
|
|
54399
|
+
class: j(["wf-bar wf-seg", [`is-${I(t1)[t.phase]}`, { "is-live": t.live }]]),
|
|
54404
54400
|
"data-tone": Ze.value.get(e.item.member),
|
|
54405
54401
|
style: A(nt(t.start, t.seen, !0)),
|
|
54406
54402
|
onMouseenter: (n) => ft(n, e, {
|
|
@@ -54411,9 +54407,9 @@ var D1 = {
|
|
|
54411
54407
|
kind: "segment",
|
|
54412
54408
|
...t
|
|
54413
54409
|
})
|
|
54414
|
-
}, null, 46,
|
|
54410
|
+
}, null, 46, o0), t.end > t.seen ? (U(), W("i", {
|
|
54415
54411
|
key: 0,
|
|
54416
|
-
class: j(["wf-bar wf-seg is-tail", `is-${I(
|
|
54412
|
+
class: j(["wf-bar wf-seg is-tail", `is-${I(t1)[t.phase]}`]),
|
|
54417
54413
|
"data-tone": Ze.value.get(e.item.member),
|
|
54418
54414
|
style: A(nt(t.seen, t.end)),
|
|
54419
54415
|
onMouseenter: (n) => ft(n, e, {
|
|
@@ -54424,7 +54420,7 @@ var D1 = {
|
|
|
54424
54420
|
kind: "segment",
|
|
54425
54421
|
...t
|
|
54426
54422
|
})
|
|
54427
|
-
}, null, 46,
|
|
54423
|
+
}, null, 46, s0)) : Y("", !0)], 64))), 128)),
|
|
54428
54424
|
(U(!0), W(H, null, B(e.notes, (t) => (U(), W("button", {
|
|
54429
54425
|
key: `note-${t.index}`,
|
|
54430
54426
|
type: "button",
|
|
@@ -54447,15 +54443,15 @@ var D1 = {
|
|
|
54447
54443
|
end: t.at
|
|
54448
54444
|
}),
|
|
54449
54445
|
onBlur: (t) => mt(e)
|
|
54450
|
-
}, null, 44,
|
|
54451
|
-
])], 40,
|
|
54452
|
-
K("span",
|
|
54453
|
-
J(P(I(
|
|
54446
|
+
}, null, 44, c0))), 128))
|
|
54447
|
+
])], 40, e0),
|
|
54448
|
+
K("span", l0, [
|
|
54449
|
+
J(P(I(a1)(e.end - e.start)) + P(e.wake_approx && e.wake ? "~" : ""), 1),
|
|
54454
54450
|
e.item.state === "done" ? Y("", !0) : (U(), W("small", {
|
|
54455
54451
|
key: 0,
|
|
54456
54452
|
class: j(`is-${e.item.state}`)
|
|
54457
|
-
}, P(I(
|
|
54458
|
-
e.truncated ? (U(), W("small",
|
|
54453
|
+
}, P(I(n1)[e.item.state]), 3)),
|
|
54454
|
+
e.truncated ? (U(), W("small", u0, "明细已截断")) : Y("", !0)
|
|
54459
54455
|
])
|
|
54460
54456
|
], 2))), 128))
|
|
54461
54457
|
], 38),
|
|
@@ -54469,9 +54465,9 @@ var D1 = {
|
|
|
54469
54465
|
left: `${b.value.left}px`
|
|
54470
54466
|
})
|
|
54471
54467
|
}, [
|
|
54472
|
-
K("header",
|
|
54468
|
+
K("header", f0, [
|
|
54473
54469
|
K("strong", null, P(I(i).display_name(qe.value.item.member)), 1),
|
|
54474
|
-
K("small", null, P(rt(qe.value)) + " · " + P(I(
|
|
54470
|
+
K("small", null, P(rt(qe.value)) + " · " + P(I(n1)[qe.value.item.state]) + " · " + P(I(a1)(qe.value.end - qe.value.start)), 1),
|
|
54475
54471
|
K("button", {
|
|
54476
54472
|
type: "button",
|
|
54477
54473
|
class: "wf-card-close",
|
|
@@ -54480,47 +54476,47 @@ var D1 = {
|
|
|
54480
54476
|
}, [q(o, { name: "i-lucide-x" })])
|
|
54481
54477
|
]),
|
|
54482
54478
|
K("dl", null, [
|
|
54483
|
-
qe.value.item.task ? (U(), W("div",
|
|
54479
|
+
qe.value.item.task ? (U(), W("div", p0, [t[22] ||= K("dt", null, "任务", -1), K("dd", null, [J(P(qe.value.item.task), 1), qe.value.item.task_id ? (U(), W("button", {
|
|
54484
54480
|
key: 0,
|
|
54485
54481
|
type: "button",
|
|
54486
54482
|
class: "subtle-link",
|
|
54487
54483
|
onClick: t[6] ||= (e) => n("detail", qe.value.item.task_id)
|
|
54488
54484
|
}, "#" + P(qe.value.item.task_id), 1)) : Y("", !0)])])) : Y("", !0),
|
|
54489
|
-
qe.value.item.state === "failed" ? (U(), W("div",
|
|
54485
|
+
qe.value.item.state === "failed" ? (U(), W("div", m0, [t[23] ||= K("dt", null, "失败原因", -1), K("dd", h0, P(qe.value.item.reason || "执行失败"), 1)])) : qe.value.item.result || qe.value.item.answer_id ? (U(), W("div", g0, [t[24] ||= K("dt", null, "结果", -1), K("dd", null, [J(P(qe.value.item.result), 1), qe.value.item.answer_id ? (U(), W("button", {
|
|
54490
54486
|
key: 0,
|
|
54491
54487
|
type: "button",
|
|
54492
54488
|
class: "subtle-link",
|
|
54493
54489
|
onClick: t[7] ||= (e) => n("detail", qe.value.item.answer_id)
|
|
54494
54490
|
}, "在消息中查看 #" + P(qe.value.item.answer_id), 1)) : Y("", !0)])])) : Y("", !0),
|
|
54495
|
-
qe.value.item.changes ? (U(), W("div",
|
|
54491
|
+
qe.value.item.changes ? (U(), W("div", _0, [t[25] ||= K("dt", null, "改动", -1), K("dd", null, P(qe.value.item.changes) + " 个文件", 1)])) : Y("", !0)
|
|
54496
54492
|
]),
|
|
54497
|
-
Je.value.length ? (U(), W("ol",
|
|
54493
|
+
Je.value.length ? (U(), W("ol", v0, [(U(!0), W(H, null, B(Je.value, (e) => (U(), W("li", {
|
|
54498
54494
|
key: `${e.kind}-${e.at}-${e.phase || ""}`,
|
|
54499
54495
|
class: j(`log-${e.kind}`)
|
|
54500
54496
|
}, [K("time", null, P(ct(e.at)), 1), e.kind === "phase" ? (U(), W(H, { key: 0 }, [K("i", {
|
|
54501
|
-
class: j(["wf-swatch", `is-${I(
|
|
54497
|
+
class: j(["wf-swatch", `is-${I(t1)[e.phase]}`]),
|
|
54502
54498
|
"data-tone": Ze.value.get(qe.value.item.member),
|
|
54503
54499
|
"aria-hidden": "true"
|
|
54504
|
-
}, null, 10,
|
|
54505
|
-
J(P(I(
|
|
54500
|
+
}, null, 10, y0), K("span", null, [
|
|
54501
|
+
J(P(I(e1)[e.phase]), 1),
|
|
54506
54502
|
e.tool ? (U(), W(H, { key: 0 }, [J(" · " + P(e.tool), 1)], 64)) : Y("", !0),
|
|
54507
|
-
J(" · " + P(e.live ? "进行中" : I(
|
|
54508
|
-
])], 64)) : (U(), W("span",
|
|
54509
|
-
], 12,
|
|
54510
|
-
me.value ===
|
|
54503
|
+
J(" · " + P(e.live ? "进行中" : I(a1)(e.duration)), 1)
|
|
54504
|
+
])], 64)) : (U(), W("span", b0, P(e.text), 1))], 2))), 128))])) : (U(), W("p", x0, "这次执行没有阶段明细或过程说明。"))
|
|
54505
|
+
], 12, d0)) : Y("", !0),
|
|
54506
|
+
me.value === Y0 ? (U(), W("div", S0, [...t[26] ||= [K("span", { class: "wf-player-note" }, "回放按轮进行:在上方选一轮即可回放", -1)]])) : (U(), W("div", C0, [ve.value ? (U(), W(H, { key: 0 }, [t[27] ||= K("span", { class: "wf-state is-live" }, "实时", -1), t[28] ||= K("span", { class: "wf-player-note" }, "这一轮结束后可以回放", -1)], 64)) : (U(), W(H, { key: 1 }, [
|
|
54511
54507
|
K("button", {
|
|
54512
54508
|
type: "button",
|
|
54513
54509
|
class: "wf-player-button",
|
|
54514
54510
|
"aria-label": O.playing ? "暂停回放" : "回放这一轮",
|
|
54515
54511
|
onClick: t[8] ||= (e) => O.playing ? Le() : Fe()
|
|
54516
|
-
}, [q(o, { name: O.playing ? "i-lucide-pause" : "i-lucide-play" }, null, 8, ["name"])], 8,
|
|
54512
|
+
}, [q(o, { name: O.playing ? "i-lucide-pause" : "i-lucide-play" }, null, 8, ["name"])], 8, w0),
|
|
54517
54513
|
K("button", {
|
|
54518
54514
|
type: "button",
|
|
54519
54515
|
class: "wf-player-button",
|
|
54520
54516
|
"aria-label": "从头回放",
|
|
54521
54517
|
disabled: !be.value,
|
|
54522
54518
|
onClick: Re
|
|
54523
|
-
}, [q(o, { name: "i-lucide-rotate-ccw" })], 8,
|
|
54519
|
+
}, [q(o, { name: "i-lucide-rotate-ccw" })], 8, T0),
|
|
54524
54520
|
q(r, {
|
|
54525
54521
|
modelValue: O.speed,
|
|
54526
54522
|
"onUpdate:modelValue": t[9] ||= (e) => O.speed = e,
|
|
@@ -54547,13 +54543,13 @@ var D1 = {
|
|
|
54547
54543
|
value: be.value ? O.position : ye.value.duration,
|
|
54548
54544
|
"aria-label": "回放位置",
|
|
54549
54545
|
onInput: ze
|
|
54550
|
-
}, null, 40,
|
|
54551
|
-
K("span",
|
|
54546
|
+
}, null, 40, E0),
|
|
54547
|
+
K("span", D0, P(I(a1)(be.value ? O.position : ye.value.duration)) + " / " + P(I(a1)(ye.value.duration)), 1)
|
|
54552
54548
|
], 64))])),
|
|
54553
|
-
Te.value.folds.length || re.value.executions.length >= re.value.execution_limit ? (U(), W("footer",
|
|
54549
|
+
Te.value.folds.length || re.value.executions.length >= re.value.execution_limit ? (U(), W("footer", O0, [Te.value.folds.length ? (U(), W("span", k0, [t[29] ||= K("i", {
|
|
54554
54550
|
class: "wf-swatch is-fold",
|
|
54555
54551
|
"aria-hidden": "true"
|
|
54556
|
-
}, null, -1), J("已折叠 " + P(Te.value.folds.length) + " 段超过 " + P(I(
|
|
54552
|
+
}, null, -1), J("已折叠 " + P(Te.value.folds.length) + " 段超过 " + P(I(r1) / 6e4) + " 分钟的空闲", 1)])) : Y("", !0), re.value.executions.length >= re.value.execution_limit ? (U(), W("span", A0, "只列出最近 " + P(re.value.execution_limit) + " 次讨论执行与 " + P(re.value.execution_limit) + " 次协作执行", 1)) : Y("", !0)])) : Y("", !0)
|
|
54557
54553
|
], 512)) : Y("", !0),
|
|
54558
54554
|
v.value ? (U(), W("div", {
|
|
54559
54555
|
key: 3,
|
|
@@ -54573,79 +54569,79 @@ var D1 = {
|
|
|
54573
54569
|
onClick: t[10] ||= (e) => v.value = null
|
|
54574
54570
|
}, [q(o, { name: "i-lucide-x" })])) : Y("", !0),
|
|
54575
54571
|
K("small", null, [J(P(ct(v.value.piece.start)), 1), v.value.piece.end > v.value.piece.start ? (U(), W(H, { key: 0 }, [J(" – " + P(v.value.piece.live ? "现在" : ct(v.value.piece.end)), 1)], 64)) : Y("", !0)]),
|
|
54576
|
-
v.value.piece.text ? (U(), W("p",
|
|
54577
|
-
gt.value.length ? (U(), W(H, { key: 3 }, [K("small",
|
|
54578
|
-
], 14,
|
|
54572
|
+
v.value.piece.text ? (U(), W("p", M0, P(v.value.piece.text), 1)) : v.value.row.item.reason ? (U(), W("p", N0, P(v.value.row.item.reason), 1)) : Y("", !0),
|
|
54573
|
+
gt.value.length ? (U(), W(H, { key: 3 }, [K("small", P0, P(v.value.related.earlier ? "此前的过程说明" : "过程说明"), 1), K("ol", null, [(U(!0), W(H, null, B(gt.value, (e) => (U(), W("li", { key: e.at + e.text }, [K("time", null, P(ct(e.at)), 1), J(P(e.text), 1)]))), 128))])], 64)) : Y("", !0)
|
|
54574
|
+
], 14, j0)) : Y("", !0)
|
|
54579
54575
|
]);
|
|
54580
54576
|
};
|
|
54581
54577
|
}
|
|
54582
|
-
}, [["__scopeId", "data-v-ae571187"]]),
|
|
54578
|
+
}, [["__scopeId", "data-v-ae571187"]]), e2 = {
|
|
54583
54579
|
id: "channel-sidebar",
|
|
54584
54580
|
class: "channel-sidebar",
|
|
54585
54581
|
"aria-label": "房间导航"
|
|
54586
|
-
},
|
|
54582
|
+
}, t2 = { class: "channel-sidebar-content" }, n2 = { class: "channel-directory-heading channel-tools-heading" }, r2 = ["aria-expanded"], i2 = { class: "channel-sidebar-footer" }, a2 = ["aria-label"], o2 = { class: "channel-self" }, s2 = ["title"], c2 = [
|
|
54587
54583
|
"aria-valuemax",
|
|
54588
54584
|
"aria-valuenow",
|
|
54589
54585
|
"aria-valuetext"
|
|
54590
|
-
],
|
|
54586
|
+
], l2 = { class: "channel-main" }, u2 = { class: "channel-header" }, d2 = { class: "channel-title-icon" }, f2 = { class: "channel-title" }, p2 = { class: "channel-title-copy" }, m2 = ["title"], h2 = {
|
|
54591
54587
|
key: 2,
|
|
54592
54588
|
class: "channel-header-context"
|
|
54593
|
-
},
|
|
54589
|
+
}, g2 = { class: "channel-header-actions" }, _2 = {
|
|
54594
54590
|
key: 0,
|
|
54595
54591
|
class: "channel-launch-recovery",
|
|
54596
54592
|
"aria-label": "未完成的创建或启动请求"
|
|
54597
|
-
},
|
|
54593
|
+
}, v2 = { role: "status" }, y2 = { class: "button-row" }, b2 = {
|
|
54598
54594
|
key: 1,
|
|
54599
54595
|
class: "channel-tabbar"
|
|
54600
|
-
},
|
|
54596
|
+
}, x2 = { class: "channel-brief-inner" }, S2 = { class: "channel-brief-heading" }, C2 = ["aria-label", "aria-expanded"], w2 = {
|
|
54601
54597
|
key: 0,
|
|
54602
54598
|
class: "channel-brief-preview"
|
|
54603
|
-
},
|
|
54599
|
+
}, T2 = {
|
|
54604
54600
|
id: "channel-brief-content",
|
|
54605
54601
|
class: "channel-brief-content"
|
|
54606
|
-
},
|
|
54602
|
+
}, E2 = ["innerHTML"], D2 = { class: "channel-brief-footer" }, O2 = { class: "channel-brief-status" }, k2 = { class: "channel-content" }, A2 = {
|
|
54607
54603
|
key: 0,
|
|
54608
54604
|
class: "content-page merged-page",
|
|
54609
54605
|
role: "tabpanel",
|
|
54610
54606
|
"aria-label": "讨论"
|
|
54611
|
-
},
|
|
54607
|
+
}, j2 = {
|
|
54612
54608
|
key: 1,
|
|
54613
54609
|
class: "merged-section",
|
|
54614
54610
|
"aria-label": "当前讨论"
|
|
54615
|
-
},
|
|
54611
|
+
}, M2 = { class: "page-heading" }, N2 = {
|
|
54616
54612
|
key: 0,
|
|
54617
54613
|
class: "fine-print"
|
|
54618
|
-
},
|
|
54614
|
+
}, P2 = {
|
|
54619
54615
|
class: "merged-section channel-summary",
|
|
54620
54616
|
"aria-label": "当前共识"
|
|
54621
|
-
},
|
|
54617
|
+
}, F2 = { class: "page-heading" }, I2 = { class: "form-footer" }, L2 = { class: "button-row" }, R2 = { class: "consensus-card is-brief" }, z2 = ["innerHTML"], B2 = {
|
|
54622
54618
|
key: 0,
|
|
54623
54619
|
class: "consensus-card"
|
|
54624
|
-
},
|
|
54620
|
+
}, V2 = ["innerHTML"], H2 = {
|
|
54625
54621
|
key: 2,
|
|
54626
54622
|
class: "fine-print"
|
|
54627
|
-
},
|
|
54623
|
+
}, U2 = {
|
|
54628
54624
|
key: 1,
|
|
54629
54625
|
class: "content-page merged-page",
|
|
54630
54626
|
role: "tabpanel",
|
|
54631
54627
|
"aria-label": "房间"
|
|
54632
|
-
},
|
|
54628
|
+
}, W2 = {
|
|
54633
54629
|
key: 2,
|
|
54634
54630
|
class: "content-page merged-page",
|
|
54635
54631
|
role: "tabpanel",
|
|
54636
54632
|
"aria-label": "执行"
|
|
54637
|
-
},
|
|
54633
|
+
}, G2 = {
|
|
54638
54634
|
key: 1,
|
|
54639
54635
|
class: "channel-empty"
|
|
54640
|
-
},
|
|
54636
|
+
}, K2 = ["aria-valuenow", "aria-valuetext"], q2 = {
|
|
54641
54637
|
key: 2,
|
|
54642
54638
|
id: "channel-member-rail",
|
|
54643
54639
|
class: "channel-member-rail",
|
|
54644
54640
|
"aria-label": "当前焦点与讨论进度"
|
|
54645
|
-
},
|
|
54641
|
+
}, J2 = { class: "channel-rail-board" }, Y2 = {
|
|
54646
54642
|
key: 1,
|
|
54647
54643
|
class: "progress-board is-docked"
|
|
54648
|
-
},
|
|
54644
|
+
}, X2 = { class: "channel-detail-title" }, Z2 = { class: "info-section" }, Q2 = "ai-codiscuss-channel-layout", $2 = 220, e4 = 440, t4 = 280, n4 = 16, r4 = 180, i4 = 400, a4 = 248, o4 = 16, s4 = 480, c4 = 1200, l4 = 0, u4 = {
|
|
54649
54645
|
__name: "ChannelWorkspace",
|
|
54650
54646
|
setup(e) {
|
|
54651
54647
|
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 = [{
|
|
@@ -54667,14 +54663,14 @@ var D1 = {
|
|
|
54667
54663
|
label: "宽",
|
|
54668
54664
|
width: 1240
|
|
54669
54665
|
}
|
|
54670
|
-
}, b = Ne(), x = /* @__PURE__ */ F(b.reading), S = /* @__PURE__ */ F(b.effects), C = /* @__PURE__ */ F(b.rail), w = /* @__PURE__ */ F(b.nav), T = /* @__PURE__ */ F(typeof window > "u" ? 728 : window.innerWidth), E = /* @__PURE__ */ F(b.collapsed), ee = /* @__PURE__ */ F(!0), D = /* @__PURE__ */ F(b.rail_collapsed), O = Z(() => T.value >=
|
|
54666
|
+
}, b = Ne(), x = /* @__PURE__ */ F(b.reading), S = /* @__PURE__ */ F(b.effects), C = /* @__PURE__ */ F(b.rail), w = /* @__PURE__ */ F(b.nav), T = /* @__PURE__ */ F(typeof window > "u" ? 728 : window.innerWidth), E = /* @__PURE__ */ F(b.collapsed), ee = /* @__PURE__ */ F(!0), D = /* @__PURE__ */ F(b.rail_collapsed), O = Z(() => T.value >= c4), te = Z(() => O.value && !E.value), ne = Z(() => t.value.tab === "discussion" && !D.value), re = Z(() => O.value && t.value.tab === "discussion" ? D.value ? "展开房间概览" : "收起房间概览" : "房间资料与参与者"), ie = Z(() => {
|
|
54671
54667
|
let e = document.createElement("template");
|
|
54672
54668
|
return e.innerHTML = o.value?.rendered_brief || "", e.content.textContent.replace(/\s+/g, " ").trim();
|
|
54673
|
-
}), ae = /* @__PURE__ */ F(null), oe = /* @__PURE__ */ F(0), k = null, se = /* @__PURE__ */ F(null), ce = /* @__PURE__ */ F(null), le = Z(() => Math.min(
|
|
54669
|
+
}), ae = /* @__PURE__ */ F(null), oe = /* @__PURE__ */ F(0), k = null, se = /* @__PURE__ */ F(null), ce = /* @__PURE__ */ F(null), le = Z(() => Math.min(i4, Math.max(r4, T.value - s4 - l4))), ue = Z(() => Math.min(w.value, le.value)), de = Z(() => ({
|
|
54674
54670
|
"--channel-reading-width": `${y[x.value].width}px`,
|
|
54675
54671
|
"--channel-rail-width": `${C.value}px`,
|
|
54676
54672
|
"--channel-topbar-height": `${oe.value}px`,
|
|
54677
|
-
"--channel-main-columns": te.value ? `${ue.value}px ${
|
|
54673
|
+
"--channel-main-columns": te.value ? `${ue.value}px ${l4}px minmax(0, 1fr)` : "minmax(0, 1fr)"
|
|
54678
54674
|
})), fe = Object.entries(y).map(([e, t]) => ({
|
|
54679
54675
|
value: e,
|
|
54680
54676
|
label: t.label
|
|
@@ -54771,12 +54767,12 @@ var D1 = {
|
|
|
54771
54767
|
}
|
|
54772
54768
|
function Ne() {
|
|
54773
54769
|
try {
|
|
54774
|
-
let e = JSON.parse(localStorage.getItem(
|
|
54770
|
+
let e = JSON.parse(localStorage.getItem(Q2)) || {};
|
|
54775
54771
|
return {
|
|
54776
54772
|
reading: Object.hasOwn(y, e.reading) ? e.reading : "default",
|
|
54777
54773
|
effects: e.effects === "reduced" ? "reduced" : "full",
|
|
54778
|
-
rail: Number.isFinite(e.rail) ? Math.min(
|
|
54779
|
-
nav: Number.isFinite(e.nav) ? Math.min(
|
|
54774
|
+
rail: Number.isFinite(e.rail) ? Math.min(e4, Math.max($2, e.rail)) : t4,
|
|
54775
|
+
nav: Number.isFinite(e.nav) ? Math.min(i4, Math.max(r4, e.nav)) : Pe(),
|
|
54780
54776
|
collapsed: e.collapsed === !0,
|
|
54781
54777
|
brief_collapsed: e.brief_collapsed === !0,
|
|
54782
54778
|
rail_collapsed: e.rail_collapsed === !0
|
|
@@ -54785,7 +54781,7 @@ var D1 = {
|
|
|
54785
54781
|
return {
|
|
54786
54782
|
reading: "default",
|
|
54787
54783
|
effects: "full",
|
|
54788
|
-
rail:
|
|
54784
|
+
rail: t4,
|
|
54789
54785
|
nav: Pe(),
|
|
54790
54786
|
collapsed: !1,
|
|
54791
54787
|
brief_collapsed: !1,
|
|
@@ -54794,11 +54790,11 @@ var D1 = {
|
|
|
54794
54790
|
}
|
|
54795
54791
|
}
|
|
54796
54792
|
function Pe() {
|
|
54797
|
-
return typeof window > "u" ?
|
|
54793
|
+
return typeof window > "u" ? a4 : window.innerWidth >= 1900 ? 280 : window.innerWidth <= 980 ? 220 : a4;
|
|
54798
54794
|
}
|
|
54799
54795
|
function Fe() {
|
|
54800
54796
|
try {
|
|
54801
|
-
localStorage.setItem(
|
|
54797
|
+
localStorage.setItem(Q2, JSON.stringify({
|
|
54802
54798
|
reading: x.value,
|
|
54803
54799
|
effects: S.value,
|
|
54804
54800
|
rail: C.value,
|
|
@@ -54829,19 +54825,19 @@ var D1 = {
|
|
|
54829
54825
|
}, e.currentTarget.setPointerCapture(e.pointerId));
|
|
54830
54826
|
}
|
|
54831
54827
|
function Ve(e) {
|
|
54832
|
-
se.value?.pointer === e.pointerId && (C.value = Math.round(Math.min(
|
|
54828
|
+
se.value?.pointer === e.pointerId && (C.value = Math.round(Math.min(e4, Math.max($2, se.value.width + se.value.x - e.clientX))));
|
|
54833
54829
|
}
|
|
54834
54830
|
function He(e) {
|
|
54835
54831
|
se.value?.pointer === e.pointerId && (se.value = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), Fe());
|
|
54836
54832
|
}
|
|
54837
54833
|
function Ue(e) {
|
|
54838
54834
|
let t = {
|
|
54839
|
-
ArrowLeft: C.value +
|
|
54840
|
-
ArrowRight: C.value -
|
|
54841
|
-
Home:
|
|
54842
|
-
End:
|
|
54835
|
+
ArrowLeft: C.value + n4,
|
|
54836
|
+
ArrowRight: C.value - n4,
|
|
54837
|
+
Home: $2,
|
|
54838
|
+
End: e4
|
|
54843
54839
|
};
|
|
54844
|
-
Object.hasOwn(t, e.key) && (e.preventDefault(), C.value = Math.min(
|
|
54840
|
+
Object.hasOwn(t, e.key) && (e.preventDefault(), C.value = Math.min(e4, Math.max($2, t[e.key])), Fe());
|
|
54845
54841
|
}
|
|
54846
54842
|
function We(e) {
|
|
54847
54843
|
e.button === 0 && (e.preventDefault(), e.currentTarget.focus(), ce.value = {
|
|
@@ -54851,19 +54847,19 @@ var D1 = {
|
|
|
54851
54847
|
}, e.currentTarget.setPointerCapture(e.pointerId));
|
|
54852
54848
|
}
|
|
54853
54849
|
function Ge(e) {
|
|
54854
|
-
ce.value?.pointer === e.pointerId && (w.value = Math.round(Math.min(le.value, Math.max(
|
|
54850
|
+
ce.value?.pointer === e.pointerId && (w.value = Math.round(Math.min(le.value, Math.max(r4, ce.value.width + e.clientX - ce.value.x))));
|
|
54855
54851
|
}
|
|
54856
54852
|
function Ke(e) {
|
|
54857
54853
|
ce.value?.pointer === e.pointerId && (ce.value = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), Fe());
|
|
54858
54854
|
}
|
|
54859
54855
|
function qe(e) {
|
|
54860
54856
|
let t = {
|
|
54861
|
-
ArrowLeft: ue.value -
|
|
54862
|
-
ArrowRight: ue.value +
|
|
54863
|
-
Home:
|
|
54857
|
+
ArrowLeft: ue.value - o4,
|
|
54858
|
+
ArrowRight: ue.value + o4,
|
|
54859
|
+
Home: r4,
|
|
54864
54860
|
End: le.value
|
|
54865
54861
|
};
|
|
54866
|
-
Object.hasOwn(t, e.key) && (e.preventDefault(), w.value = Math.min(le.value, Math.max(
|
|
54862
|
+
Object.hasOwn(t, e.key) && (e.preventDefault(), w.value = Math.min(le.value, Math.max(r4, t[e.key])), Fe());
|
|
54867
54863
|
}
|
|
54868
54864
|
return (e, r) => {
|
|
54869
54865
|
let y = sA, b = lH, w = pA, T = MA, D = $V, oe = WV, k = YV, he = KV, N = HV, Ne = zV, Pe = NV, Fe = AV;
|
|
@@ -54875,10 +54871,10 @@ var D1 = {
|
|
|
54875
54871
|
}]),
|
|
54876
54872
|
style: A(de.value)
|
|
54877
54873
|
}, [
|
|
54878
|
-
K("aside",
|
|
54874
|
+
K("aside", e2, [
|
|
54879
54875
|
r[30] ||= ws("<header class=\"channel-workspace-heading\"><span class=\"channel-brand-icon\" aria-hidden=\"true\"><svg class=\"channel-brand-dark\" viewBox=\"0 0 100 100\"><defs><linearGradient id=\"brand-d0\" gradientUnits=\"userSpaceOnUse\" x1=\"4.5\" y1=\"64\" x2=\"95.5\" y2=\"64\"><stop offset=\"0.0%\" stop-color=\"#e9ebed\"></stop><stop offset=\"6.3%\" stop-color=\"#e2e5e7\"></stop><stop offset=\"12.5%\" stop-color=\"#dcdee1\"></stop><stop offset=\"18.8%\" stop-color=\"#d5d8db\"></stop><stop offset=\"25.0%\" stop-color=\"#ced2d5\"></stop><stop offset=\"31.3%\" stop-color=\"#c8cbcf\"></stop><stop offset=\"37.5%\" stop-color=\"#c1c5ca\"></stop><stop offset=\"43.8%\" stop-color=\"#babfc4\"></stop><stop offset=\"50.0%\" stop-color=\"#b4b9be\"></stop><stop offset=\"56.3%\" stop-color=\"#a9aeb3\"></stop><stop offset=\"62.5%\" stop-color=\"#9ea3a9\"></stop><stop offset=\"68.8%\" stop-color=\"#93999f\"></stop><stop offset=\"75.0%\" stop-color=\"#888e95\"></stop><stop offset=\"81.3%\" stop-color=\"#7e848a\"></stop><stop offset=\"87.5%\" stop-color=\"#737a80\"></stop><stop offset=\"93.8%\" stop-color=\"#697077\"></stop><stop offset=\"100.0%\" stop-color=\"#5f666d\"></stop></linearGradient><linearGradient id=\"brand-d1\" gradientUnits=\"userSpaceOnUse\" x1=\"8.5\" y1=\"36\" x2=\"91.5\" y2=\"36\"><stop offset=\"0.0%\" stop-color=\"#3f86ff\"></stop><stop offset=\"6.3%\" stop-color=\"#5588ff\"></stop><stop offset=\"12.5%\" stop-color=\"#6889ff\"></stop><stop offset=\"18.8%\" stop-color=\"#788aff\"></stop><stop offset=\"25.0%\" stop-color=\"#878bff\"></stop><stop offset=\"31.3%\" stop-color=\"#958cff\"></stop><stop offset=\"37.5%\" stop-color=\"#a78aef\"></stop><stop offset=\"43.8%\" stop-color=\"#b986d7\"></stop><stop offset=\"50.0%\" stop-color=\"#ca80bf\"></stop><stop offset=\"56.3%\" stop-color=\"#da78a6\"></stop><stop offset=\"62.5%\" stop-color=\"#ea6e8c\"></stop><stop offset=\"68.8%\" stop-color=\"#f56d78\"></stop><stop offset=\"75.0%\" stop-color=\"#f77f72\"></stop><stop offset=\"81.3%\" stop-color=\"#f8906b\"></stop><stop offset=\"87.5%\" stop-color=\"#f9a163\"></stop><stop offset=\"93.8%\" stop-color=\"#fab058\"></stop><stop offset=\"100.0%\" stop-color=\"#fac04a\"></stop></linearGradient><linearGradient id=\"brand-d2\" gradientUnits=\"userSpaceOnUse\" x1=\"28.021\" y1=\"95.435\" x2=\"39.978\" y2=\"4.564\"><stop offset=\"0.0%\" stop-color=\"#d06a49\"></stop><stop offset=\"6.3%\" stop-color=\"#d36f4f\"></stop><stop offset=\"12.5%\" stop-color=\"#d67456\"></stop><stop offset=\"18.8%\" stop-color=\"#d97a5c\"></stop><stop offset=\"25.0%\" stop-color=\"#dc7f62\"></stop><stop offset=\"31.3%\" stop-color=\"#df8468\"></stop><stop offset=\"37.5%\" stop-color=\"#e2896e\"></stop><stop offset=\"43.8%\" stop-color=\"#e58e74\"></stop><stop offset=\"50.0%\" stop-color=\"#e8937a\"></stop><stop offset=\"56.3%\" stop-color=\"#eb9d85\"></stop><stop offset=\"62.5%\" stop-color=\"#eea68f\"></stop><stop offset=\"68.8%\" stop-color=\"#f1b09a\"></stop><stop offset=\"75.0%\" stop-color=\"#f4baa4\"></stop><stop offset=\"81.3%\" stop-color=\"#f6c3af\"></stop><stop offset=\"87.5%\" stop-color=\"#f9cdb9\"></stop><stop offset=\"93.8%\" stop-color=\"#fbd6c4\"></stop><stop offset=\"100.0%\" stop-color=\"#fde0cf\"></stop></linearGradient><linearGradient id=\"brand-d3\" gradientUnits=\"userSpaceOnUse\" x1=\"71.978\" y1=\"95.435\" x2=\"60.021\" y2=\"4.564\"><stop offset=\"0.0%\" stop-color=\"#4a5cff\"></stop><stop offset=\"6.3%\" stop-color=\"#5062ff\"></stop><stop offset=\"12.5%\" stop-color=\"#5768ff\"></stop><stop offset=\"18.8%\" stop-color=\"#5d6dff\"></stop><stop offset=\"25.0%\" stop-color=\"#6472ff\"></stop><stop offset=\"31.3%\" stop-color=\"#6b77ff\"></stop><stop offset=\"37.5%\" stop-color=\"#717cff\"></stop><stop offset=\"43.8%\" stop-color=\"#7881ff\"></stop><stop offset=\"50.0%\" stop-color=\"#7f86ff\"></stop><stop offset=\"56.3%\" stop-color=\"#8990ff\"></stop><stop offset=\"62.5%\" stop-color=\"#9399ff\"></stop><stop offset=\"68.8%\" stop-color=\"#9da2ff\"></stop><stop offset=\"75.0%\" stop-color=\"#a8abff\"></stop><stop offset=\"81.3%\" stop-color=\"#b3b4ff\"></stop><stop offset=\"87.5%\" stop-color=\"#bebdff\"></stop><stop offset=\"93.8%\" stop-color=\"#c9c5ff\"></stop><stop offset=\"100.0%\" stop-color=\"#d4ceff\"></stop></linearGradient><clipPath id=\"brand-d4\"><polygon points=\"16,46.5 84,46.5 84,25.5 16,25.5\"></polygon></clipPath><clipPath id=\"brand-d5\"><polygon points=\"16,48.5 84,48.5 84,23.5 16,23.5\"></polygon></clipPath><clipPath id=\"brand-d6\"><polygon points=\"81.410,86.630 71.410,10.630 50.589,13.369 60.589,89.369\"></polygon></clipPath><clipPath id=\"brand-d7\"><polygon points=\"83.393,86.369 73.393,10.369 48.606,13.630 58.606,89.630\"></polygon></clipPath><clipPath id=\"brand-d8\"><polygon points=\"12,74.5 88,74.5 88,53.5 12,53.5\"></polygon></clipPath><clipPath id=\"brand-d9\"><polygon points=\"12,76.5 88,76.5 88,51.5 12,51.5\"></polygon></clipPath><clipPath id=\"brand-d10\"><polygon points=\"39.410,89.369 49.410,13.369 28.589,10.630 18.589,86.630\"></polygon></clipPath><clipPath id=\"brand-d11\"><polygon points=\"41.393,89.630 51.393,13.630 26.606,10.369 16.606,86.369\"></polygon></clipPath></defs><line x1=\"12\" y1=\"64\" x2=\"88\" y2=\"64\" stroke=\"url(#brand-d0)\" stroke-width=\"15\" stroke-linecap=\"round\"></line><line x1=\"16\" y1=\"36\" x2=\"84\" y2=\"36\" stroke=\"url(#brand-d1)\" stroke-width=\"15\" stroke-linecap=\"round\"></line><line x1=\"29\" y1=\"88\" x2=\"39\" y2=\"12\" stroke=\"url(#brand-d2)\" stroke-width=\"15\" stroke-linecap=\"round\"></line><line x1=\"71\" y1=\"88\" x2=\"61\" y2=\"12\" stroke=\"url(#brand-d3)\" stroke-width=\"15\" stroke-linecap=\"round\"></line><g clip-path=\"url(#brand-d4)\"><line x1=\"29\" y1=\"88\" x2=\"39\" y2=\"12\" stroke=\"#202127\" stroke-width=\"21\" stroke-linecap=\"round\"></line></g><g clip-path=\"url(#brand-d5)\"><line x1=\"29\" y1=\"88\" x2=\"39\" y2=\"12\" stroke=\"url(#brand-d2)\" stroke-width=\"15\" stroke-linecap=\"round\"></line></g><g clip-path=\"url(#brand-d6)\"><line x1=\"16\" y1=\"36\" x2=\"84\" y2=\"36\" stroke=\"#202127\" stroke-width=\"21\" stroke-linecap=\"round\"></line></g><g clip-path=\"url(#brand-d7)\"><line x1=\"16\" y1=\"36\" x2=\"84\" y2=\"36\" stroke=\"url(#brand-d1)\" stroke-width=\"15\" stroke-linecap=\"round\"></line></g><g clip-path=\"url(#brand-d8)\"><line x1=\"71\" y1=\"88\" x2=\"61\" y2=\"12\" stroke=\"#202127\" stroke-width=\"21\" stroke-linecap=\"round\"></line></g><g clip-path=\"url(#brand-d9)\"><line x1=\"71\" y1=\"88\" x2=\"61\" y2=\"12\" stroke=\"url(#brand-d3)\" stroke-width=\"15\" stroke-linecap=\"round\"></line></g><g clip-path=\"url(#brand-d10)\"><line x1=\"12\" y1=\"64\" x2=\"88\" y2=\"64\" stroke=\"#202127\" stroke-width=\"21\" stroke-linecap=\"round\"></line></g><g clip-path=\"url(#brand-d11)\"><line x1=\"12\" y1=\"64\" x2=\"88\" y2=\"64\" stroke=\"url(#brand-d0)\" stroke-width=\"15\" stroke-linecap=\"round\"></line></g></svg><svg class=\"channel-brand-light\" viewBox=\"0 0 100 100\"><defs><linearGradient id=\"brand-l0\" gradientUnits=\"userSpaceOnUse\" x1=\"4.5\" y1=\"64\" x2=\"95.5\" y2=\"64\"><stop offset=\"0.0%\" stop-color=\"#0b0d0f\"></stop><stop offset=\"6.3%\" stop-color=\"#101315\"></stop><stop offset=\"12.5%\" stop-color=\"#16191b\"></stop><stop offset=\"18.8%\" stop-color=\"#1c1f22\"></stop><stop offset=\"25.0%\" stop-color=\"#222529\"></stop><stop offset=\"31.3%\" stop-color=\"#282c2f\"></stop><stop offset=\"37.5%\" stop-color=\"#2e3237\"></stop><stop offset=\"43.8%\" stop-color=\"#34393e\"></stop><stop offset=\"50.0%\" stop-color=\"#3b4045\"></stop><stop offset=\"56.3%\" stop-color=\"#484d52\"></stop><stop offset=\"62.5%\" stop-color=\"#555a5f\"></stop><stop offset=\"68.8%\" stop-color=\"#62676d\"></stop><stop offset=\"75.0%\" stop-color=\"#70757b\"></stop><stop offset=\"81.3%\" stop-color=\"#7e8389\"></stop><stop offset=\"87.5%\" stop-color=\"#8c9297\"></stop><stop offset=\"93.8%\" stop-color=\"#9aa0a6\"></stop><stop offset=\"100.0%\" stop-color=\"#a9afb5\"></stop></linearGradient><linearGradient id=\"brand-l1\" gradientUnits=\"userSpaceOnUse\" x1=\"8.5\" y1=\"36\" x2=\"91.5\" y2=\"36\"><stop offset=\"0.0%\" stop-color=\"#2f7bff\"></stop><stop offset=\"6.3%\" stop-color=\"#487cff\"></stop><stop offset=\"12.5%\" stop-color=\"#5a7cff\"></stop><stop offset=\"18.8%\" stop-color=\"#6a7dff\"></stop><stop offset=\"25.0%\" stop-color=\"#797dff\"></stop><stop offset=\"31.3%\" stop-color=\"#877dff\"></stop><stop offset=\"37.5%\" stop-color=\"#997cee\"></stop><stop offset=\"43.8%\" stop-color=\"#ae79d3\"></stop><stop offset=\"50.0%\" stop-color=\"#c174b8\"></stop><stop offset=\"56.3%\" stop-color=\"#d36b9d\"></stop><stop offset=\"62.5%\" stop-color=\"#e56080\"></stop><stop offset=\"68.8%\" stop-color=\"#f15d69\"></stop><stop offset=\"75.0%\" stop-color=\"#f37162\"></stop><stop offset=\"81.3%\" stop-color=\"#f5835a\"></stop><stop offset=\"87.5%\" stop-color=\"#f79550\"></stop><stop offset=\"93.8%\" stop-color=\"#f8a542\"></stop><stop offset=\"100.0%\" stop-color=\"#f8b52c\"></stop></linearGradient><linearGradient id=\"brand-l2\" gradientUnits=\"userSpaceOnUse\" x1=\"28.021\" y1=\"95.435\" x2=\"39.978\" y2=\"4.564\"><stop offset=\"0.0%\" stop-color=\"#b9502f\"></stop><stop offset=\"6.3%\" stop-color=\"#bd5534\"></stop><stop offset=\"12.5%\" stop-color=\"#c15a39\"></stop><stop offset=\"18.8%\" stop-color=\"#c55f3e\"></stop><stop offset=\"25.0%\" stop-color=\"#c96443\"></stop><stop offset=\"31.3%\" stop-color=\"#cd6848\"></stop><stop offset=\"37.5%\" stop-color=\"#d16d4d\"></stop><stop offset=\"43.8%\" stop-color=\"#d57252\"></stop><stop offset=\"50.0%\" stop-color=\"#d97757\"></stop><stop offset=\"56.3%\" stop-color=\"#dd8060\"></stop><stop offset=\"62.5%\" stop-color=\"#e08a69\"></stop><stop offset=\"68.8%\" stop-color=\"#e49372\"></stop><stop offset=\"75.0%\" stop-color=\"#e79c7b\"></stop><stop offset=\"81.3%\" stop-color=\"#eaa584\"></stop><stop offset=\"87.5%\" stop-color=\"#edae8d\"></stop><stop offset=\"93.8%\" stop-color=\"#f0b796\"></stop><stop offset=\"100.0%\" stop-color=\"#f3c09f\"></stop></linearGradient><linearGradient id=\"brand-l3\" gradientUnits=\"userSpaceOnUse\" x1=\"71.978\" y1=\"95.435\" x2=\"60.021\" y2=\"4.564\"><stop offset=\"0.0%\" stop-color=\"#2b33e6\"></stop><stop offset=\"6.3%\" stop-color=\"#3139e9\"></stop><stop offset=\"12.5%\" stop-color=\"#363fec\"></stop><stop offset=\"18.8%\" stop-color=\"#3c44ef\"></stop><stop offset=\"25.0%\" stop-color=\"#4249f3\"></stop><stop offset=\"31.3%\" stop-color=\"#484ef6\"></stop><stop offset=\"37.5%\" stop-color=\"#4e53f9\"></stop><stop offset=\"43.8%\" stop-color=\"#5457fc\"></stop><stop offset=\"50.0%\" stop-color=\"#5a5cff\"></stop><stop offset=\"56.3%\" stop-color=\"#6569ff\"></stop><stop offset=\"62.5%\" stop-color=\"#7075ff\"></stop><stop offset=\"68.8%\" stop-color=\"#7c80ff\"></stop><stop offset=\"75.0%\" stop-color=\"#888bff\"></stop><stop offset=\"81.3%\" stop-color=\"#9595ff\"></stop><stop offset=\"87.5%\" stop-color=\"#a29fff\"></stop><stop offset=\"93.8%\" stop-color=\"#afa9ff\"></stop><stop offset=\"100.0%\" stop-color=\"#bdb3ff\"></stop></linearGradient><clipPath id=\"brand-l4\"><polygon points=\"16,46.5 84,46.5 84,25.5 16,25.5\"></polygon></clipPath><clipPath id=\"brand-l5\"><polygon points=\"16,48.5 84,48.5 84,23.5 16,23.5\"></polygon></clipPath><clipPath id=\"brand-l6\"><polygon points=\"81.410,86.630 71.410,10.630 50.589,13.369 60.589,89.369\"></polygon></clipPath><clipPath id=\"brand-l7\"><polygon points=\"83.393,86.369 73.393,10.369 48.606,13.630 58.606,89.630\"></polygon></clipPath><clipPath id=\"brand-l8\"><polygon points=\"12,74.5 88,74.5 88,53.5 12,53.5\"></polygon></clipPath><clipPath id=\"brand-l9\"><polygon points=\"12,76.5 88,76.5 88,51.5 12,51.5\"></polygon></clipPath><clipPath id=\"brand-l10\"><polygon points=\"39.410,89.369 49.410,13.369 28.589,10.630 18.589,86.630\"></polygon></clipPath><clipPath id=\"brand-l11\"><polygon points=\"41.393,89.630 51.393,13.630 26.606,10.369 16.606,86.369\"></polygon></clipPath></defs><line x1=\"12\" y1=\"64\" x2=\"88\" y2=\"64\" stroke=\"url(#brand-l0)\" stroke-width=\"15\" stroke-linecap=\"round\"></line><line x1=\"16\" y1=\"36\" x2=\"84\" y2=\"36\" stroke=\"url(#brand-l1)\" stroke-width=\"15\" stroke-linecap=\"round\"></line><line x1=\"29\" y1=\"88\" x2=\"39\" y2=\"12\" stroke=\"url(#brand-l2)\" stroke-width=\"15\" stroke-linecap=\"round\"></line><line x1=\"71\" y1=\"88\" x2=\"61\" y2=\"12\" stroke=\"url(#brand-l3)\" stroke-width=\"15\" stroke-linecap=\"round\"></line><g clip-path=\"url(#brand-l4)\"><line x1=\"29\" y1=\"88\" x2=\"39\" y2=\"12\" stroke=\"#f6f6f6\" stroke-width=\"21\" stroke-linecap=\"round\"></line></g><g clip-path=\"url(#brand-l5)\"><line x1=\"29\" y1=\"88\" x2=\"39\" y2=\"12\" stroke=\"url(#brand-l2)\" stroke-width=\"15\" stroke-linecap=\"round\"></line></g><g clip-path=\"url(#brand-l6)\"><line x1=\"16\" y1=\"36\" x2=\"84\" y2=\"36\" stroke=\"#f6f6f6\" stroke-width=\"21\" stroke-linecap=\"round\"></line></g><g clip-path=\"url(#brand-l7)\"><line x1=\"16\" y1=\"36\" x2=\"84\" y2=\"36\" stroke=\"url(#brand-l1)\" stroke-width=\"15\" stroke-linecap=\"round\"></line></g><g clip-path=\"url(#brand-l8)\"><line x1=\"71\" y1=\"88\" x2=\"61\" y2=\"12\" stroke=\"#f6f6f6\" stroke-width=\"21\" stroke-linecap=\"round\"></line></g><g clip-path=\"url(#brand-l9)\"><line x1=\"71\" y1=\"88\" x2=\"61\" y2=\"12\" stroke=\"url(#brand-l3)\" stroke-width=\"15\" stroke-linecap=\"round\"></line></g><g clip-path=\"url(#brand-l10)\"><line x1=\"12\" y1=\"64\" x2=\"88\" y2=\"64\" stroke=\"#f6f6f6\" stroke-width=\"21\" stroke-linecap=\"round\"></line></g><g clip-path=\"url(#brand-l11)\"><line x1=\"12\" y1=\"64\" x2=\"88\" y2=\"64\" stroke=\"url(#brand-l0)\" stroke-width=\"15\" stroke-linecap=\"round\"></line></g></svg></span><span class=\"channel-brand-text\"><strong>共议</strong><span>AI CoDiscuss</span></span></header>", 1),
|
|
54880
|
-
K("div",
|
|
54881
|
-
q(
|
|
54876
|
+
K("div", t2, [
|
|
54877
|
+
q(AZ, {
|
|
54882
54878
|
onSelect: Ee,
|
|
54883
54879
|
onManage: we,
|
|
54884
54880
|
onCreate: Oe,
|
|
@@ -54888,12 +54884,12 @@ var D1 = {
|
|
|
54888
54884
|
onArchiveFolder: Me,
|
|
54889
54885
|
onArchives: Te
|
|
54890
54886
|
}),
|
|
54891
|
-
K("div",
|
|
54887
|
+
K("div", n2, [K("button", {
|
|
54892
54888
|
type: "button",
|
|
54893
54889
|
class: "channel-section-toggle",
|
|
54894
54890
|
"aria-expanded": f.value,
|
|
54895
54891
|
onClick: r[0] ||= (e) => f.value = !f.value
|
|
54896
|
-
}, [q(y, { name: f.value ? "i-lucide-chevron-down" : "i-lucide-chevron-right" }, null, 8, ["name"]), r[29] ||= J("频道工具", -1)], 8,
|
|
54892
|
+
}, [q(y, { name: f.value ? "i-lucide-chevron-down" : "i-lucide-chevron-right" }, null, 8, ["name"]), r[29] ||= J("频道工具", -1)], 8, r2)]),
|
|
54897
54893
|
f.value ? (U(), G(b, {
|
|
54898
54894
|
key: 0,
|
|
54899
54895
|
items: xe.value,
|
|
@@ -54909,7 +54905,7 @@ var D1 = {
|
|
|
54909
54905
|
}
|
|
54910
54906
|
}, null, 8, ["items"])) : Y("", !0)
|
|
54911
54907
|
]),
|
|
54912
|
-
K("footer",
|
|
54908
|
+
K("footer", i2, [K("button", {
|
|
54913
54909
|
type: "button",
|
|
54914
54910
|
class: "channel-self-button",
|
|
54915
54911
|
"aria-label": `账号与设置:${I(n).display_name(I(_))}${Se.value ? "," + Se.value : ""}`,
|
|
@@ -54925,10 +54921,10 @@ var D1 = {
|
|
|
54925
54921
|
"text",
|
|
54926
54922
|
"alt",
|
|
54927
54923
|
"class"
|
|
54928
|
-
]), K("span",
|
|
54924
|
+
]), K("span", o2, [K("strong", null, P(I(n).display_name(I(_))), 1), K("span", { class: j(["channel-connection", { "is-action": Se.value }]) }, [K("span", {
|
|
54929
54925
|
class: j({ connected: I(t).connected }),
|
|
54930
54926
|
title: I(t).connected ? "网站已连接" : "网站未连接"
|
|
54931
|
-
}, null, 10,
|
|
54927
|
+
}, null, 10, s2), J(P(Se.value || (I(t).connected ? "网站已连接" : "网站未连接")), 1)], 2)])], 8, a2), q(D, { text: "设置" }, {
|
|
54932
54928
|
default: L(() => [q(T, {
|
|
54933
54929
|
icon: "i-lucide-settings-2",
|
|
54934
54930
|
color: "neutral",
|
|
@@ -54949,7 +54945,7 @@ var D1 = {
|
|
|
54949
54945
|
"aria-label": "调整房间栏宽度",
|
|
54950
54946
|
"aria-orientation": "vertical",
|
|
54951
54947
|
"aria-controls": "channel-sidebar",
|
|
54952
|
-
"aria-valuemin":
|
|
54948
|
+
"aria-valuemin": r4,
|
|
54953
54949
|
"aria-valuemax": le.value,
|
|
54954
54950
|
"aria-valuenow": ue.value,
|
|
54955
54951
|
"aria-valuetext": `${ue.value} 像素`,
|
|
@@ -54960,13 +54956,13 @@ var D1 = {
|
|
|
54960
54956
|
onPointercancel: Ke,
|
|
54961
54957
|
onLostpointercapture: Ke,
|
|
54962
54958
|
onKeydown: qe
|
|
54963
|
-
}, null, 40,
|
|
54964
|
-
K("main",
|
|
54959
|
+
}, null, 40, c2)) : Y("", !0),
|
|
54960
|
+
K("main", l2, [K("div", {
|
|
54965
54961
|
ref_key: "topbar",
|
|
54966
54962
|
ref: ae,
|
|
54967
54963
|
class: j(["channel-topbar", { "is-overlay": o.value && I(t).tab === "discussion" }])
|
|
54968
54964
|
}, [
|
|
54969
|
-
K("header",
|
|
54965
|
+
K("header", u2, [
|
|
54970
54966
|
O.value ? (U(), G(D, {
|
|
54971
54967
|
key: 0,
|
|
54972
54968
|
text: E.value ? "展开房间栏" : "收起房间栏"
|
|
@@ -54994,8 +54990,8 @@ var D1 = {
|
|
|
54994
54990
|
"aria-expanded": d.value,
|
|
54995
54991
|
onClick: r[4] ||= (e) => d.value = !0
|
|
54996
54992
|
}, null, 8, ["aria-expanded"])),
|
|
54997
|
-
K("span",
|
|
54998
|
-
K("div",
|
|
54993
|
+
K("span", d2, [q(y, { name: "i-lucide-hash" })]),
|
|
54994
|
+
K("div", f2, [K("div", p2, [K("h1", { title: o.value?.title }, P(o.value?.title || "共议"), 9, m2)]), o.value?.archived ? (U(), G(oe, {
|
|
54999
54995
|
key: 0,
|
|
55000
54996
|
color: "neutral",
|
|
55001
54997
|
variant: "subtle",
|
|
@@ -55004,12 +55000,12 @@ var D1 = {
|
|
|
55004
55000
|
default: L(() => [...r[31] ||= [J("已存档", -1)]]),
|
|
55005
55001
|
_: 1
|
|
55006
55002
|
})) : Y("", !0)]),
|
|
55007
|
-
o.value ? (U(), W("span",
|
|
55003
|
+
o.value ? (U(), W("span", h2, [
|
|
55008
55004
|
J(P(me.find((e) => e.value === I(t).tab)?.label), 1),
|
|
55009
55005
|
r[32] ||= K("span", null, "·", -1),
|
|
55010
55006
|
J(P(o.value.message_count) + " 条记录", 1)
|
|
55011
55007
|
])) : Y("", !0),
|
|
55012
|
-
K("div",
|
|
55008
|
+
K("div", g2, [
|
|
55013
55009
|
I(t).tab === "discussion" ? (U(), W("form", {
|
|
55014
55010
|
key: 0,
|
|
55015
55011
|
class: "channel-search",
|
|
@@ -55067,7 +55063,7 @@ var D1 = {
|
|
|
55067
55063
|
])]),
|
|
55068
55064
|
_: 1
|
|
55069
55065
|
})) : Y("", !0),
|
|
55070
|
-
o.value && !(ne.value && O.value) ? (U(), G(
|
|
55066
|
+
o.value && !(ne.value && O.value) ? (U(), G(o$, { key: 2 })) : Y("", !0)
|
|
55071
55067
|
]),
|
|
55072
55068
|
q(D, { text: re.value }, {
|
|
55073
55069
|
default: L(() => [q(T, {
|
|
@@ -55088,12 +55084,12 @@ var D1 = {
|
|
|
55088
55084
|
_: 1
|
|
55089
55085
|
}, 8, ["text"])
|
|
55090
55086
|
]),
|
|
55091
|
-
I(t).launch.recoveries.length ? (U(), W("section",
|
|
55087
|
+
I(t).launch.recoveries.length ? (U(), W("section", _2, [
|
|
55092
55088
|
r[33] ||= K("h2", null, "继续未完成的请求", -1),
|
|
55093
55089
|
(U(!0), W(H, null, B(I(t).launch.recoveries, (e) => (U(), W("article", { key: e.id }, [
|
|
55094
55090
|
K("strong", null, P(e.title), 1),
|
|
55095
|
-
K("p",
|
|
55096
|
-
K("div",
|
|
55091
|
+
K("p", v2, P(e.error || "启动结果尚未确认;原请求已保存在此浏览器中。"), 1),
|
|
55092
|
+
K("div", y2, [
|
|
55097
55093
|
q(T, {
|
|
55098
55094
|
label: e.direct ? "继续创建房间" : "继续本次启动",
|
|
55099
55095
|
size: "sm",
|
|
@@ -55126,7 +55122,7 @@ var D1 = {
|
|
|
55126
55122
|
]))), 128)),
|
|
55127
55123
|
r[34] ||= K("small", null, "移除待办不会删除房间或停止讨论。", -1)
|
|
55128
55124
|
])) : Y("", !0),
|
|
55129
|
-
o.value ? (U(), W("div",
|
|
55125
|
+
o.value ? (U(), W("div", b2, [q(he, {
|
|
55130
55126
|
modelValue: pe.value,
|
|
55131
55127
|
"onUpdate:modelValue": r[9] ||= (e) => pe.value = e,
|
|
55132
55128
|
items: me,
|
|
@@ -55141,7 +55137,7 @@ var D1 = {
|
|
|
55141
55137
|
key: 2,
|
|
55142
55138
|
class: j(["channel-host-brief", { "is-collapsed": ee.value }]),
|
|
55143
55139
|
"aria-label": "主持简报"
|
|
55144
|
-
}, [K("div",
|
|
55140
|
+
}, [K("div", x2, [K("div", S2, [K("button", {
|
|
55145
55141
|
type: "button",
|
|
55146
55142
|
class: "channel-brief-toggle",
|
|
55147
55143
|
"aria-label": ee.value ? "展开主持简报" : "收起主持简报",
|
|
@@ -55151,8 +55147,8 @@ var D1 = {
|
|
|
55151
55147
|
}, [
|
|
55152
55148
|
q(y, { name: ee.value ? "i-lucide-chevron-right" : "i-lucide-chevron-down" }, null, 8, ["name"]),
|
|
55153
55149
|
K("strong", null, "主持简报" + P(ee.value ? ":" : ""), 1),
|
|
55154
|
-
ee.value ? (U(), W("span",
|
|
55155
|
-
], 8,
|
|
55150
|
+
ee.value ? (U(), W("span", w2, P(ie.value), 1)) : Y("", !0)
|
|
55151
|
+
], 8, C2), ee.value ? Y("", !0) : (U(), G(T, {
|
|
55156
55152
|
key: 0,
|
|
55157
55153
|
label: "更新简报",
|
|
55158
55154
|
color: "neutral",
|
|
@@ -55160,20 +55156,20 @@ var D1 = {
|
|
|
55160
55156
|
size: "xs",
|
|
55161
55157
|
class: "channel-brief-update",
|
|
55162
55158
|
onClick: r[10] ||= (e) => I(i)("tab", "context")
|
|
55163
|
-
}))]), vr(K("div",
|
|
55159
|
+
}))]), vr(K("div", T2, [K("div", {
|
|
55164
55160
|
class: "channel-brief-text markdown-body",
|
|
55165
55161
|
innerHTML: o.value.rendered_brief
|
|
55166
|
-
}, null, 8,
|
|
55162
|
+
}, null, 8, E2), K("div", D2, [K("span", O2, P(I(n).progress_speaker(o.value)), 1), K("small", null, P(I(n).brief_meta(o.value)), 1)])], 512), [[Vc, !ee.value]])])], 2)) : Y("", !0)
|
|
55167
55163
|
], 2), o.value ? (U(), W("div", {
|
|
55168
55164
|
key: 0,
|
|
55169
55165
|
class: j(["channel-body", { "channel-body-discussion": I(t).tab === "discussion" }])
|
|
55170
|
-
}, [K("div",
|
|
55166
|
+
}, [K("div", k2, [
|
|
55171
55167
|
vr(q(uK, {
|
|
55172
55168
|
onDetail: De,
|
|
55173
55169
|
onEdit: r[11] ||= (e) => s.value = "edit"
|
|
55174
55170
|
}, null, 512), [[Vc, I(t).tab === "discussion"]]),
|
|
55175
|
-
I(t).tab === "history" ? (U(), W("div",
|
|
55176
|
-
ge.value ? (U(), W("section",
|
|
55171
|
+
I(t).tab === "history" ? (U(), W("div", A2, [
|
|
55172
|
+
ge.value ? (U(), W("section", j2, [K("div", M2, [r[35] ||= K("div", null, [K("h2", null, "当前讨论"), K("p", null, "没有进行中的讨论。开启后由主持人推进成员轮流发言,到上限或结束后房间回到自由协作,记录与结论保留。")], -1), q(T, {
|
|
55177
55173
|
icon: "i-lucide-messages-square",
|
|
55178
55174
|
label: "开启讨论",
|
|
55179
55175
|
variant: "outline",
|
|
@@ -55181,13 +55177,13 @@ var D1 = {
|
|
|
55181
55177
|
class: "channel-surface-button",
|
|
55182
55178
|
disabled: !ve.value,
|
|
55183
55179
|
onClick: r[13] ||= (e) => _e.value = !0
|
|
55184
|
-
}, null, 8, ["disabled"])]), !ve.value && !o.value.archived ? (U(), W("p",
|
|
55180
|
+
}, null, 8, ["disabled"])]), !ve.value && !o.value.archived ? (U(), W("p", N2, "开启讨论需要一位由本机唤醒的 AI 主持人,且本机服务在线。")) : Y("", !0)])) : (U(), G(jK, {
|
|
55185
55181
|
key: 0,
|
|
55186
55182
|
section: "host",
|
|
55187
55183
|
onOpen: r[12] ||= (e) => s.value = e,
|
|
55188
55184
|
onDetail: De
|
|
55189
55185
|
})),
|
|
55190
|
-
K("section",
|
|
55186
|
+
K("section", P2, [K("div", F2, [r[36] ||= K("div", null, [K("h2", null, "当前共识"), K("p", null, "主持人整理的结论、共识与分歧,用 #消息编号 保留依据;讨论结束时保存进下方记录。")], -1), M.value ? Y("", !0) : (U(), G(T, {
|
|
55191
55187
|
key: 0,
|
|
55192
55188
|
icon: "i-lucide-pencil",
|
|
55193
55189
|
label: "编辑",
|
|
@@ -55231,7 +55227,7 @@ var D1 = {
|
|
|
55231
55227
|
}, null, 8, ["modelValue"])]),
|
|
55232
55228
|
_: 1
|
|
55233
55229
|
}),
|
|
55234
|
-
K("div",
|
|
55230
|
+
K("div", I2, [K("span", null, "依据消息截止 #" + P(I(t).snapshot_id), 1), K("div", L2, [q(T, {
|
|
55235
55231
|
label: "取消",
|
|
55236
55232
|
color: "neutral",
|
|
55237
55233
|
variant: "ghost",
|
|
@@ -55244,7 +55240,7 @@ var D1 = {
|
|
|
55244
55240
|
class: "channel-primary-button",
|
|
55245
55241
|
loading: I(a) === "save_context"
|
|
55246
55242
|
}, null, 8, ["loading"])])])
|
|
55247
|
-
], 32)) : o.value.host_brief?.text || o.value.state_text ? (U(), W(H, { key: 1 }, [K("div",
|
|
55243
|
+
], 32)) : o.value.host_brief?.text || o.value.state_text ? (U(), W(H, { key: 1 }, [K("div", R2, [K("h3", null, [r[37] ||= J("主持简报", -1), o.value.state_until ? (U(), W("button", {
|
|
55248
55244
|
key: 0,
|
|
55249
55245
|
type: "button",
|
|
55250
55246
|
class: "subtle-link",
|
|
@@ -55252,7 +55248,7 @@ var D1 = {
|
|
|
55252
55248
|
}, "整理至 #" + P(o.value.state_until), 1)) : Y("", !0)]), K("div", {
|
|
55253
55249
|
class: "markdown-body",
|
|
55254
55250
|
innerHTML: o.value.rendered_brief
|
|
55255
|
-
}, null, 8,
|
|
55251
|
+
}, null, 8, z2)]), ye.value ? (U(), W("details", B2, [K("summary", null, [
|
|
55256
55252
|
r[38] ||= K("h3", null, "详细共识与进度", -1),
|
|
55257
55253
|
r[39] ||= K("span", null, "依据、已处理内容、未决问题与下一步", -1),
|
|
55258
55254
|
q(y, {
|
|
@@ -55262,21 +55258,21 @@ var D1 = {
|
|
|
55262
55258
|
]), K("div", {
|
|
55263
55259
|
class: "markdown-body consensus-state",
|
|
55264
55260
|
innerHTML: ye.value
|
|
55265
|
-
}, null, 8,
|
|
55266
|
-
q(
|
|
55267
|
-
q(
|
|
55261
|
+
}, null, 8, V2)])) : Y("", !0)], 64)) : (U(), W("p", H2, "还没有共识。主持人会在讨论中整理,也可以点“编辑”自己写。"))]),
|
|
55262
|
+
q(x$, { onDetail: De }),
|
|
55263
|
+
q(JZ, {
|
|
55268
55264
|
open: _e.value,
|
|
55269
55265
|
"onUpdate:open": r[19] ||= (e) => _e.value = e
|
|
55270
55266
|
}, null, 8, ["open"])
|
|
55271
55267
|
])) : Y("", !0),
|
|
55272
|
-
I(t).tab === "overview" ? (U(), W("div",
|
|
55268
|
+
I(t).tab === "overview" ? (U(), W("div", U2, [q($$), ge.value ? Y("", !0) : (U(), G(jK, {
|
|
55273
55269
|
key: 0,
|
|
55274
55270
|
section: "access",
|
|
55275
55271
|
onOpen: r[20] ||= (e) => s.value = e,
|
|
55276
55272
|
onDetail: De
|
|
55277
55273
|
}))])) : Y("", !0),
|
|
55278
|
-
I(t).tab === "timeline" ? (U(), W("div",
|
|
55279
|
-
])], 2)) : (U(), W("div",
|
|
55274
|
+
I(t).tab === "timeline" ? (U(), W("div", W2, [q($0, { onDetail: De })])) : Y("", !0)
|
|
55275
|
+
])], 2)) : (U(), W("div", G2, [
|
|
55280
55276
|
q(y, { name: "i-lucide-hash" }),
|
|
55281
55277
|
r[40] ||= K("h2", null, "新建一个协作房间", -1),
|
|
55282
55278
|
r[41] ||= K("p", null, "邀请 AI 一起协作,随时 @ 提问;需要时开启讨论,保留所有人的观点。", -1),
|
|
@@ -55295,8 +55291,8 @@ var D1 = {
|
|
|
55295
55291
|
"aria-label": "调整右侧栏宽度",
|
|
55296
55292
|
"aria-orientation": "vertical",
|
|
55297
55293
|
"aria-controls": "channel-member-rail",
|
|
55298
|
-
"aria-valuemin":
|
|
55299
|
-
"aria-valuemax":
|
|
55294
|
+
"aria-valuemin": $2,
|
|
55295
|
+
"aria-valuemax": e4,
|
|
55300
55296
|
"aria-valuenow": C.value,
|
|
55301
55297
|
"aria-valuetext": `${C.value} 像素`,
|
|
55302
55298
|
title: "拖动调整右侧栏宽度,也可使用左右方向键",
|
|
@@ -55306,8 +55302,8 @@ var D1 = {
|
|
|
55306
55302
|
onPointercancel: He,
|
|
55307
55303
|
onLostpointercapture: He,
|
|
55308
55304
|
onKeydown: Ue
|
|
55309
|
-
}, null, 40,
|
|
55310
|
-
ne.value ? (U(), W("aside",
|
|
55305
|
+
}, null, 40, K2)) : Y("", !0),
|
|
55306
|
+
ne.value ? (U(), W("aside", q2, [K("section", J2, [o.value ? (U(), G(t$, { key: 0 })) : (U(), W("div", Y2, [...r[42] ||= [K("header", { class: "pb-header" }, [K("strong", null, "讨论进度")], -1), K("p", { class: "channel-rail-empty" }, "暂无房间,新建讨论后在这里查看进度与参与者。", -1)]]))])])) : Y("", !0),
|
|
55311
55307
|
q(Pe, {
|
|
55312
55308
|
open: d.value,
|
|
55313
55309
|
"onUpdate:open": r[23] ||= (e) => d.value = e,
|
|
@@ -55319,7 +55315,7 @@ var D1 = {
|
|
|
55319
55315
|
body: "channel-drawer-body"
|
|
55320
55316
|
}
|
|
55321
55317
|
}, {
|
|
55322
|
-
body: L(() => [q(
|
|
55318
|
+
body: L(() => [q(AZ, {
|
|
55323
55319
|
onSelect: Ee,
|
|
55324
55320
|
onManage: we,
|
|
55325
55321
|
onCreate: Oe,
|
|
@@ -55351,7 +55347,7 @@ var D1 = {
|
|
|
55351
55347
|
}
|
|
55352
55348
|
}, {
|
|
55353
55349
|
body: L(() => [o.value ? (U(), W(H, { key: 0 }, [
|
|
55354
|
-
K("div",
|
|
55350
|
+
K("div", X2, [q(y, { name: "i-lucide-hash" }), K("h2", null, P(o.value.title), 1)]),
|
|
55355
55351
|
(U(), W(H, null, B([
|
|
55356
55352
|
{
|
|
55357
55353
|
key: "goal",
|
|
@@ -55378,7 +55374,7 @@ var D1 = {
|
|
|
55378
55374
|
class: "info-section"
|
|
55379
55375
|
}, [K("h3", null, P(e.label), 1), K("p", null, P(o.value[e.key] || "尚未填写"), 1)])), 64)),
|
|
55380
55376
|
q(Fe),
|
|
55381
|
-
K("section",
|
|
55377
|
+
K("section", Z2, [r[43] ||= K("h3", null, "参与身份", -1), (U(!0), W(H, null, B(Ce.value, (e) => (U(), W("div", {
|
|
55382
55378
|
key: e.name,
|
|
55383
55379
|
class: "expert-row"
|
|
55384
55380
|
}, [
|
|
@@ -55411,7 +55407,7 @@ var D1 = {
|
|
|
55411
55407
|
], 64)) : Y("", !0)]),
|
|
55412
55408
|
_: 1
|
|
55413
55409
|
}, 8, ["open"]),
|
|
55414
|
-
q(
|
|
55410
|
+
q(ZX, {
|
|
55415
55411
|
modelValue: s.value,
|
|
55416
55412
|
"onUpdate:modelValue": r[26] ||= (e) => s.value = e,
|
|
55417
55413
|
"reading-width": x.value,
|
|
@@ -55435,7 +55431,7 @@ var D1 = {
|
|
|
55435
55431
|
], 6);
|
|
55436
55432
|
};
|
|
55437
55433
|
}
|
|
55438
|
-
},
|
|
55434
|
+
}, d4 = {
|
|
55439
55435
|
__name: "App",
|
|
55440
55436
|
setup(e) {
|
|
55441
55437
|
return br("discussion", OV()), (e, t) => {
|
|
@@ -55446,7 +55442,7 @@ var D1 = {
|
|
|
55446
55442
|
toaster: null
|
|
55447
55443
|
}, {
|
|
55448
55444
|
default: L(() => [q(I(Qz), { "reduced-motion": "user" }, {
|
|
55449
|
-
default: L(() => [q(
|
|
55445
|
+
default: L(() => [q(u4)]),
|
|
55450
55446
|
_: 1
|
|
55451
55447
|
})]),
|
|
55452
55448
|
_: 1
|
|
@@ -55456,8 +55452,8 @@ var D1 = {
|
|
|
55456
55452
|
};
|
|
55457
55453
|
//#endregion
|
|
55458
55454
|
//#region frontend/main.js
|
|
55459
|
-
function
|
|
55460
|
-
bu(
|
|
55455
|
+
function f4() {
|
|
55456
|
+
bu(d4).use(ph).mount("#modern-root");
|
|
55461
55457
|
}
|
|
55462
|
-
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded",
|
|
55458
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", f4) : f4();
|
|
55463
55459
|
//#endregion
|