ai_co_discuss 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/docs/architecture.md +1 -1
- package/docs/runner.md +2 -2
- package/package.json +1 -1
- package/runner/discussion_launch.mjs +23 -1
- package/web/app.js +1 -1
- package/web/modern.css +1 -1
- package/web/modern.js +500 -486
package/web/modern.js
CHANGED
|
@@ -44217,27 +44217,34 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44217
44217
|
}, null, 4)
|
|
44218
44218
|
])], 40, XG));
|
|
44219
44219
|
}
|
|
44220
|
-
}, [["__scopeId", "data-v-3e99b484"]]), lK = ["data-identity", "data-face"], uK = ["inert", "aria-hidden"], dK = { class: "expert-card-identity" }, fK =
|
|
44220
|
+
}, [["__scopeId", "data-v-3e99b484"]]), lK = ["data-identity", "data-face"], uK = ["inert", "aria-hidden"], dK = { class: "expert-card-identity" }, fK = {
|
|
44221
|
+
key: 0,
|
|
44222
|
+
class: "expert-card-badge"
|
|
44223
|
+
}, pK = { class: "expert-card-facts" }, mK = ["title"], hK = ["title"], gK = {
|
|
44224
|
+
key: 0,
|
|
44225
|
+
class: "expert-card-flip"
|
|
44226
|
+
}, _K = { class: "expert-card-tools" }, vK = [
|
|
44227
|
+
"aria-pressed",
|
|
44228
|
+
"aria-label",
|
|
44229
|
+
"title"
|
|
44230
|
+
], yK = ["aria-label"], bK = ["inert", "aria-hidden"], xK = { class: "expert-card-heading" }, SK = ["aria-label"], CK = [
|
|
44221
44231
|
"aria-checked",
|
|
44222
44232
|
"tabindex",
|
|
44223
44233
|
"data-mode",
|
|
44224
44234
|
"onClick"
|
|
44225
44235
|
], wK = {
|
|
44226
44236
|
key: 1,
|
|
44227
|
-
class: "expert-card-
|
|
44228
|
-
}, TK = { class: "expert-card-
|
|
44237
|
+
class: "expert-card-field"
|
|
44238
|
+
}, TK = { class: "expert-card-field" }, EK = { class: "expert-card-catalog" }, DK = {
|
|
44229
44239
|
key: 0,
|
|
44230
44240
|
class: "expert-card-effort"
|
|
44231
|
-
}, DK = {
|
|
44232
|
-
class: "expert-card-scale",
|
|
44233
|
-
"aria-hidden": "true"
|
|
44234
44241
|
}, OK = {
|
|
44235
44242
|
key: 1,
|
|
44236
44243
|
class: "expert-card-note"
|
|
44237
|
-
}, kK =
|
|
44244
|
+
}, kK = ["aria-label", "disabled"], AK = {
|
|
44238
44245
|
key: 3,
|
|
44239
|
-
class: "expert-card-
|
|
44240
|
-
}, MK = 180, NK = /*#__PURE__*/ nH({
|
|
44246
|
+
class: "expert-card-note"
|
|
44247
|
+
}, jK = ["aria-label"], MK = 180, NK = /*#__PURE__*/ nH({
|
|
44241
44248
|
__name: "ExpertCard",
|
|
44242
44249
|
props: {
|
|
44243
44250
|
name: {
|
|
@@ -44252,9 +44259,15 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44252
44259
|
status: {
|
|
44253
44260
|
type: Object,
|
|
44254
44261
|
required: !0
|
|
44255
|
-
}
|
|
44262
|
+
},
|
|
44263
|
+
host: Boolean,
|
|
44264
|
+
hostable: Boolean
|
|
44256
44265
|
},
|
|
44257
|
-
emits: [
|
|
44266
|
+
emits: [
|
|
44267
|
+
"remove",
|
|
44268
|
+
"mode",
|
|
44269
|
+
"host"
|
|
44270
|
+
],
|
|
44258
44271
|
setup(e, { emit: t }) {
|
|
44259
44272
|
let n = e, r = t, { view: i, bridge: a } = xr("discussion"), o = rV(0, {
|
|
44260
44273
|
mass: 1,
|
|
@@ -44276,24 +44289,37 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44276
44289
|
label: t[e] || e,
|
|
44277
44290
|
value: e
|
|
44278
44291
|
}))] : null;
|
|
44279
|
-
}), S = Z(() => x.value?.find((e) => e.value === (p.value.effort || ""))?.label || (p.value.adapter === "antigravity_cli" ? "强度随模型" : p.value.effort || "默认强度"))
|
|
44280
|
-
|
|
44292
|
+
}), S = Z(() => x.value?.find((e) => e.value === (p.value.effort || ""))?.label || (p.value.adapter === "antigravity_cli" ? "强度随模型" : p.value.effort || "默认强度")), C = Z(() => [
|
|
44293
|
+
{
|
|
44294
|
+
label: "软件",
|
|
44295
|
+
value: h.value
|
|
44296
|
+
},
|
|
44297
|
+
{
|
|
44298
|
+
label: "模型",
|
|
44299
|
+
value: y.value ? p.value.model || "默认模型" : n.mode === "online" ? "在原网页设置" : "在原软件设置"
|
|
44300
|
+
},
|
|
44301
|
+
...y.value ? [{
|
|
44302
|
+
label: "强度",
|
|
44303
|
+
value: S.value
|
|
44304
|
+
}] : []
|
|
44305
|
+
]);
|
|
44306
|
+
function w() {
|
|
44281
44307
|
Qn(() => {
|
|
44282
44308
|
document.activeElement === c.value && (f.value ? u : l).value?.focus({ preventScroll: !0 });
|
|
44283
44309
|
});
|
|
44284
44310
|
}
|
|
44285
|
-
function
|
|
44311
|
+
function T(e) {
|
|
44286
44312
|
let t = e >= MK / 2;
|
|
44287
|
-
f.value !== t && (f.value = t,
|
|
44313
|
+
f.value !== t && (f.value = t, w());
|
|
44288
44314
|
}
|
|
44289
|
-
let
|
|
44290
|
-
function
|
|
44315
|
+
let E = o.on("change", T), D = o.on("animationComplete", w);
|
|
44316
|
+
function O(e) {
|
|
44291
44317
|
(!e || g.value) && (c.value?.focus({ preventScroll: !0 }), d.value = e);
|
|
44292
44318
|
}
|
|
44293
|
-
function
|
|
44319
|
+
function ee() {
|
|
44294
44320
|
a.write_launch(n.name, "model", ""), a.write_launch(n.name, "effort", "");
|
|
44295
44321
|
}
|
|
44296
|
-
function
|
|
44322
|
+
function te(e) {
|
|
44297
44323
|
if (![
|
|
44298
44324
|
"ArrowLeft",
|
|
44299
44325
|
"ArrowRight",
|
|
@@ -44306,31 +44332,33 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44306
44332
|
let t = e.key === "Home" ? "cli" : e.key === "End" || n.mode === "cli" ? "online" : "cli";
|
|
44307
44333
|
r("mode", t), e.currentTarget.querySelector(`[data-mode="${t}"]`)?.focus();
|
|
44308
44334
|
}
|
|
44309
|
-
function
|
|
44310
|
-
d.value && (e.stopPropagation(), e.preventDefault(),
|
|
44335
|
+
function k(e) {
|
|
44336
|
+
d.value && (e.stopPropagation(), e.preventDefault(), O(!1));
|
|
44311
44337
|
}
|
|
44312
44338
|
return R([d, s], ([e, t]) => {
|
|
44313
44339
|
let n = e ? MK : 0;
|
|
44314
|
-
t ? (o.jump(n),
|
|
44340
|
+
t ? (o.jump(n), w()) : o.set(n);
|
|
44315
44341
|
}), R(() => [
|
|
44316
|
-
d.value,
|
|
44317
44342
|
y.value,
|
|
44318
44343
|
i.value.launch.available,
|
|
44319
44344
|
p.value.adapter
|
|
44320
|
-
], ([e, t
|
|
44321
|
-
e && t &&
|
|
44322
|
-
}), ta(() => {
|
|
44323
|
-
|
|
44345
|
+
], ([e, t]) => {
|
|
44346
|
+
e && t && a.load_launch_models(n.name);
|
|
44347
|
+
}, { immediate: !0 }), ta(() => {
|
|
44348
|
+
E(), D(), o.stop();
|
|
44324
44349
|
}), (t, n) => {
|
|
44325
|
-
let s = Gk, d = zk,
|
|
44350
|
+
let s = Gk, d = zk, h = pV;
|
|
44326
44351
|
return U(), W("div", {
|
|
44327
44352
|
ref_key: "card",
|
|
44328
44353
|
ref: c,
|
|
44329
|
-
class: M(["expert-card", {
|
|
44354
|
+
class: M(["expert-card", {
|
|
44355
|
+
"is-configurable": y.value,
|
|
44356
|
+
"is-host": e.host
|
|
44357
|
+
}]),
|
|
44330
44358
|
"data-identity": I(a).identities[e.name]?.style,
|
|
44331
44359
|
"data-face": f.value ? "back" : "front",
|
|
44332
44360
|
tabindex: "-1",
|
|
44333
|
-
onKeydown: fu(
|
|
44361
|
+
onKeydown: fu(k, ["esc"])
|
|
44334
44362
|
}, [q(I(QB).div, {
|
|
44335
44363
|
class: "expert-card-turn",
|
|
44336
44364
|
style: fe({ rotateY: I(o) })
|
|
@@ -44345,36 +44373,31 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44345
44373
|
type: g.value ? "button" : void 0,
|
|
44346
44374
|
class: M(["expert-card-open", { "is-static": !g.value }]),
|
|
44347
44375
|
"aria-label": g.value ? _.value : void 0,
|
|
44348
|
-
title: g.value ? "
|
|
44349
|
-
onClick: n[0] ||= (e) =>
|
|
44376
|
+
title: g.value ? "点击翻面设置" : void 0,
|
|
44377
|
+
onClick: n[0] ||= (e) => O(!0)
|
|
44350
44378
|
}, {
|
|
44351
44379
|
default: L(() => [
|
|
44352
|
-
K("span", dK, [
|
|
44353
|
-
|
|
44354
|
-
|
|
44355
|
-
|
|
44356
|
-
|
|
44357
|
-
|
|
44358
|
-
|
|
44359
|
-
|
|
44360
|
-
|
|
44361
|
-
|
|
44362
|
-
|
|
44363
|
-
|
|
44364
|
-
|
|
44380
|
+
K("span", dK, [
|
|
44381
|
+
q(s, {
|
|
44382
|
+
src: I(a).identities[e.name]?.icon,
|
|
44383
|
+
text: I(a).identities[e.name]?.initials,
|
|
44384
|
+
alt: e.name,
|
|
44385
|
+
size: "sm",
|
|
44386
|
+
class: M(["channel-avatar expert-card-avatar", I(a).identities[e.name]?.style])
|
|
44387
|
+
}, null, 8, [
|
|
44388
|
+
"src",
|
|
44389
|
+
"text",
|
|
44390
|
+
"alt",
|
|
44391
|
+
"class"
|
|
44392
|
+
]),
|
|
44393
|
+
K("strong", null, P(e.name), 1),
|
|
44394
|
+
e.host ? (U(), W("span", fK, "主持")) : Y("", !0)
|
|
44395
|
+
]),
|
|
44396
|
+
K("dl", pK, [K("div", null, [n[9] ||= K("dt", null, "状态", -1), K("dd", {
|
|
44365
44397
|
class: M(["expert-card-status", `is-${e.status.tone}`]),
|
|
44366
44398
|
title: e.status.text
|
|
44367
|
-
}, [n[
|
|
44368
|
-
|
|
44369
|
-
K("span", mK, [
|
|
44370
|
-
K("span", hK, P(y.value ? p.value.model || "默认模型" : e.mode === "online" ? "模型与强度在原网页设置" : "模型在原软件设置"), 1),
|
|
44371
|
-
K("span", gK, P(y.value ? S.value : e.mode === "online" ? "在线只读 · 由人代发" : "本地读写 · 自行提交"), 1),
|
|
44372
|
-
g.value ? (U(), G(d, {
|
|
44373
|
-
key: 0,
|
|
44374
|
-
name: "i-lucide-settings-2",
|
|
44375
|
-
class: "expert-card-chevron"
|
|
44376
|
-
})) : Y("", !0)
|
|
44377
|
-
])
|
|
44399
|
+
}, [n[8] ||= K("i", { "aria-hidden": "true" }, null, -1), J(P(e.status.text), 1)], 10, mK)]), (U(!0), W(H, null, B(C.value, (e) => (U(), W("div", { key: e.label }, [K("dt", null, P(e.label), 1), K("dd", { title: e.value }, P(e.value), 9, hK)]))), 128))]),
|
|
44400
|
+
g.value ? (U(), W("span", gK, [q(d, { name: "i-lucide-settings-2" }), n[10] ||= J("设置", -1)])) : Y("", !0)
|
|
44378
44401
|
]),
|
|
44379
44402
|
_: 1
|
|
44380
44403
|
}, 8, [
|
|
@@ -44382,31 +44405,32 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44382
44405
|
"class",
|
|
44383
44406
|
"aria-label",
|
|
44384
44407
|
"title"
|
|
44385
|
-
])), K("button", {
|
|
44408
|
+
])), K("span", _K, [e.hostable ? (U(), W("button", {
|
|
44409
|
+
key: 0,
|
|
44410
|
+
type: "button",
|
|
44411
|
+
class: "expert-card-host",
|
|
44412
|
+
"aria-pressed": e.host,
|
|
44413
|
+
"aria-label": e.host ? `${e.name} 是主持人` : `设 ${e.name} 为主持人`,
|
|
44414
|
+
title: e.host ? "主持人" : "设为主持人",
|
|
44415
|
+
onClick: n[1] ||= (e) => r("host")
|
|
44416
|
+
}, [q(d, { name: "i-lucide-crown" })], 8, vK)) : Y("", !0), K("button", {
|
|
44386
44417
|
type: "button",
|
|
44387
|
-
class: "expert-card-remove",
|
|
44388
44418
|
"aria-label": `移出 ${e.name}`,
|
|
44389
|
-
|
|
44390
|
-
|
|
44419
|
+
title: "移出",
|
|
44420
|
+
onClick: n[2] ||= (e) => r("remove")
|
|
44421
|
+
}, [q(d, { name: "i-lucide-x" })], 8, yK)])], 8, uK), g.value ? (U(), W("div", {
|
|
44391
44422
|
key: 0,
|
|
44392
44423
|
class: "expert-card-face expert-card-back",
|
|
44393
44424
|
inert: !f.value,
|
|
44394
44425
|
"aria-hidden": !f.value
|
|
44395
44426
|
}, [
|
|
44396
|
-
K("div",
|
|
44397
|
-
ref_key: "back_button",
|
|
44398
|
-
ref: u,
|
|
44399
|
-
type: "button",
|
|
44400
|
-
class: "expert-card-return",
|
|
44401
|
-
"aria-label": `返回 ${e.name} 角色卡片`,
|
|
44402
|
-
onClick: n[2] ||= (e) => D(!1)
|
|
44403
|
-
}, [q(d, { name: "i-lucide-arrow-left" }), n[9] ||= J("返回", -1)], 8, xK)])]),
|
|
44427
|
+
K("div", xK, [K("strong", null, [J(P(e.name), 1), n[11] ||= K("span", null, "设置", -1)])]),
|
|
44404
44428
|
e.automatic ? Y("", !0) : (U(), W("div", {
|
|
44405
44429
|
key: 0,
|
|
44406
44430
|
class: "expert-card-modes",
|
|
44407
44431
|
role: "radiogroup",
|
|
44408
44432
|
"aria-label": `${e.name} 参与能力`,
|
|
44409
|
-
onKeydown:
|
|
44433
|
+
onKeydown: te
|
|
44410
44434
|
}, [(U(), W(H, null, B([{
|
|
44411
44435
|
value: "cli",
|
|
44412
44436
|
label: "本地读写"
|
|
@@ -44422,12 +44446,13 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44422
44446
|
"data-mode": t.value,
|
|
44423
44447
|
onClick: (e) => r("mode", t.value)
|
|
44424
44448
|
}, P(t.label), 9, CK)), 64))], 40, SK)),
|
|
44425
|
-
e.automatic && e.mode === "cli" && m.value.length ? (U(), W("div", wK, [n[
|
|
44449
|
+
e.automatic && e.mode === "cli" && m.value.length ? (U(), W("div", wK, [n[12] ||= K("span", null, "软件", -1), q(h, {
|
|
44426
44450
|
"model-value": p.value.adapter || "",
|
|
44427
44451
|
items: m.value,
|
|
44428
44452
|
placeholder: "选择 App / CLI",
|
|
44429
44453
|
"aria-label": `${e.name} 软件入口`,
|
|
44430
44454
|
size: "xs",
|
|
44455
|
+
class: "w-full",
|
|
44431
44456
|
"onUpdate:modelValue": n[3] ||= (t) => I(a).write_launch(e.name, "adapter", t)
|
|
44432
44457
|
}, null, 8, [
|
|
44433
44458
|
"model-value",
|
|
@@ -44435,116 +44460,107 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44435
44460
|
"aria-label"
|
|
44436
44461
|
])])) : Y("", !0),
|
|
44437
44462
|
y.value ? (U(), W(H, { key: 2 }, [
|
|
44438
|
-
q(
|
|
44439
|
-
|
|
44440
|
-
|
|
44441
|
-
|
|
44442
|
-
|
|
44443
|
-
|
|
44444
|
-
|
|
44445
|
-
|
|
44446
|
-
|
|
44447
|
-
|
|
44448
|
-
|
|
44449
|
-
|
|
44450
|
-
|
|
44451
|
-
|
|
44452
|
-
|
|
44453
|
-
"loading",
|
|
44454
|
-
"aria-label"
|
|
44455
|
-
])]),
|
|
44456
|
-
_: 1
|
|
44457
|
-
}),
|
|
44458
|
-
K("div", TK, [K("span", null, P(v.value.loading ? "正在读取软件模型列表…" : v.value.error || v.value.source), 1), !v.value.loading && v.value.error && I(i).launch.available ? (U(), W("button", {
|
|
44463
|
+
K("div", TK, [n[13] ||= K("span", null, "模型", -1), q(h, {
|
|
44464
|
+
"model-value": p.value.model || "__default__",
|
|
44465
|
+
items: v.value.items,
|
|
44466
|
+
loading: v.value.loading,
|
|
44467
|
+
"aria-label": `${e.name} 使用的模型`,
|
|
44468
|
+
size: "xs",
|
|
44469
|
+
class: "w-full",
|
|
44470
|
+
"onUpdate:modelValue": n[4] ||= (t) => I(a).write_launch_model(e.name, t)
|
|
44471
|
+
}, null, 8, [
|
|
44472
|
+
"model-value",
|
|
44473
|
+
"items",
|
|
44474
|
+
"loading",
|
|
44475
|
+
"aria-label"
|
|
44476
|
+
])]),
|
|
44477
|
+
K("div", EK, [K("span", null, P(v.value.loading ? "正在读取软件模型列表…" : v.value.error || v.value.source), 1), !v.value.loading && v.value.error && I(i).launch.available ? (U(), W("button", {
|
|
44459
44478
|
key: 0,
|
|
44460
44479
|
type: "button",
|
|
44461
44480
|
onClick: n[5] ||= (t) => I(a).load_launch_models(e.name, !0)
|
|
44462
44481
|
}, "重试")) : Y("", !0)]),
|
|
44463
|
-
x.value ? (U(), W("div",
|
|
44464
|
-
|
|
44465
|
-
|
|
44466
|
-
|
|
44467
|
-
|
|
44468
|
-
|
|
44469
|
-
|
|
44470
|
-
|
|
44471
|
-
|
|
44472
|
-
|
|
44473
|
-
|
|
44474
|
-
]),
|
|
44475
|
-
K("div", DK, [n[12] ||= K("span", null, "默认", -1), K("span", null, P(x.value.at(-1).label), 1)])
|
|
44476
|
-
])) : (U(), W("p", OK, P(v.value.effort_note), 1)),
|
|
44477
|
-
K("div", kK, [n[13] ||= K("span", null, "默认值由 CLI 决定", -1), K("button", {
|
|
44482
|
+
x.value ? (U(), W("div", DK, [K("div", null, [n[14] ||= K("span", null, "强度", -1), K("strong", null, P(S.value), 1)]), q(cK, {
|
|
44483
|
+
items: x.value,
|
|
44484
|
+
"model-value": p.value.effort || "",
|
|
44485
|
+
label: `${e.name} 的思考强度`,
|
|
44486
|
+
"onUpdate:modelValue": n[6] ||= (t) => I(a).write_launch(e.name, "effort", t)
|
|
44487
|
+
}, null, 8, [
|
|
44488
|
+
"items",
|
|
44489
|
+
"model-value",
|
|
44490
|
+
"label"
|
|
44491
|
+
])])) : (U(), W("p", OK, P(v.value.effort_note), 1)),
|
|
44492
|
+
K("button", {
|
|
44478
44493
|
type: "button",
|
|
44494
|
+
class: "expert-card-defaults",
|
|
44495
|
+
title: "留空使用 CLI 默认值",
|
|
44479
44496
|
"aria-label": `恢复 ${e.name} 的默认模型与强度`,
|
|
44480
44497
|
disabled: !p.value.model && !p.value.effort,
|
|
44481
|
-
onClick:
|
|
44482
|
-
}, "恢复默认", 8,
|
|
44483
|
-
], 64)) : (U(), W("
|
|
44484
|
-
|
|
44485
|
-
|
|
44486
|
-
|
|
44487
|
-
|
|
44488
|
-
|
|
44498
|
+
onClick: ee
|
|
44499
|
+
}, "恢复默认", 8, kK)
|
|
44500
|
+
], 64)) : (U(), W("p", AK, [q(d, { name: e.mode === "online" ? "i-lucide-globe" : "i-lucide-monitor" }, null, 8, ["name"]), J(P(b.value), 1)])),
|
|
44501
|
+
K("button", {
|
|
44502
|
+
ref_key: "back_button",
|
|
44503
|
+
ref: u,
|
|
44504
|
+
type: "button",
|
|
44505
|
+
class: "expert-card-flip is-done",
|
|
44506
|
+
"aria-label": `返回 ${e.name} 角色卡片`,
|
|
44507
|
+
onClick: n[7] ||= (e) => O(!1)
|
|
44508
|
+
}, [q(d, { name: "i-lucide-check" }), n[15] ||= J("完成", -1)], 8, jK)
|
|
44509
|
+
], 8, bK)) : Y("", !0)]),
|
|
44489
44510
|
_: 1
|
|
44490
44511
|
}, 8, ["style"])], 42, lK);
|
|
44491
44512
|
};
|
|
44492
44513
|
}
|
|
44493
|
-
}, [["__scopeId", "data-v-
|
|
44514
|
+
}, [["__scopeId", "data-v-f59a27e4"]]), PK = { class: "create-discussion" }, FK = {
|
|
44494
44515
|
key: 0,
|
|
44495
44516
|
class: "channel-create-location"
|
|
44496
44517
|
}, IK = { class: "create-section" }, LK = [
|
|
44497
44518
|
"aria-checked",
|
|
44498
44519
|
"tabindex",
|
|
44499
44520
|
"onClick"
|
|
44500
|
-
], RK = { class: "create-mode-copy" }, zK = { class: "create-section" }, BK = { class: "create-
|
|
44521
|
+
], RK = { class: "create-mode-copy" }, zK = { class: "create-section" }, BK = { class: "create-section-heading" }, VK = [
|
|
44522
|
+
"title",
|
|
44501
44523
|
"aria-checked",
|
|
44502
44524
|
"tabindex",
|
|
44503
44525
|
"onClick"
|
|
44504
|
-
], HK = { class: "create-
|
|
44505
|
-
"disabled",
|
|
44506
|
-
"aria-label",
|
|
44507
|
-
"onClick"
|
|
44508
|
-
], GK = { class: "fine-print create-hint" }, KK = { class: "create-expert-heading create-joined-heading" }, qK = {
|
|
44526
|
+
], HK = { class: "fine-print create-hint" }, UK = {
|
|
44509
44527
|
key: 0,
|
|
44510
44528
|
class: "create-experts",
|
|
44511
44529
|
role: "group",
|
|
44512
44530
|
"aria-label": "参与的 AI"
|
|
44513
|
-
},
|
|
44531
|
+
}, WK = {
|
|
44514
44532
|
key: 1,
|
|
44515
44533
|
class: "create-experts-empty"
|
|
44516
|
-
},
|
|
44517
|
-
|
|
44518
|
-
|
|
44519
|
-
|
|
44520
|
-
"aria-checked",
|
|
44521
|
-
"tabindex",
|
|
44534
|
+
}, GK = [
|
|
44535
|
+
"disabled",
|
|
44536
|
+
"title",
|
|
44537
|
+
"aria-label",
|
|
44522
44538
|
"onClick"
|
|
44523
|
-
],
|
|
44539
|
+
], KK = { class: "fine-print create-hint create-host-hint" }, qK = ["aria-pressed"], JK = {
|
|
44524
44540
|
key: 1,
|
|
44525
44541
|
class: "create-section"
|
|
44526
|
-
},
|
|
44542
|
+
}, YK = {
|
|
44527
44543
|
key: 0,
|
|
44528
44544
|
class: "form-two-columns"
|
|
44529
|
-
},
|
|
44545
|
+
}, XK = { class: "create-host" }, ZK = {
|
|
44530
44546
|
class: "create-chips",
|
|
44531
44547
|
role: "radiogroup",
|
|
44532
44548
|
"aria-label": "达到上限后"
|
|
44533
|
-
},
|
|
44549
|
+
}, QK = ["aria-checked", "onClick"], $K = {
|
|
44534
44550
|
class: "create-limit-rule",
|
|
44535
44551
|
"aria-live": "polite"
|
|
44536
|
-
},
|
|
44552
|
+
}, eq = {
|
|
44537
44553
|
key: 2,
|
|
44538
44554
|
class: "create-section"
|
|
44539
|
-
},
|
|
44555
|
+
}, tq = {
|
|
44540
44556
|
key: 0,
|
|
44541
44557
|
role: "alert",
|
|
44542
44558
|
class: "fine-print create-hint"
|
|
44543
|
-
},
|
|
44559
|
+
}, nq = { class: "form-two-columns" }, rq = { class: "create-launch-list" }, iq = { class: "create-footer" }, aq = {
|
|
44544
44560
|
key: 0,
|
|
44545
44561
|
role: "alert",
|
|
44546
44562
|
class: "create-error"
|
|
44547
|
-
},
|
|
44563
|
+
}, oq = { class: "create-footer-row" }, sq = ["title"], cq = "new-expert-modes", lq = /*#__PURE__*/ nH({
|
|
44548
44564
|
__name: "CreateDiscussion",
|
|
44549
44565
|
props: { targetFolder: {
|
|
44550
44566
|
type: Object,
|
|
@@ -44578,7 +44594,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44578
44594
|
icon: "i-lucide-copy",
|
|
44579
44595
|
title: "手动接入",
|
|
44580
44596
|
text: "首次复制指令,之后人工或定时触发"
|
|
44581
|
-
}], h = Z(() => r.value.experts[
|
|
44597
|
+
}], h = Z(() => r.value.experts[cq] || {}), g = Z(() => Object.keys(h.value).filter((e) => h.value[e]).sort((e, t) => s.indexOf(i.platform_of(e)) - s.indexOf(i.platform_of(t)) || e.localeCompare(t, "en", { numeric: !0 }))), _ = (e) => g.value.filter((t) => i.platform_of(t) === e).length, v = /* @__PURE__ */ F(null), y = Z(() => l("host")), b = Z(() => [...f.value ? ["用户"] : [], ...g.value.filter((e) => h.value[e] === "cli")]), x = /* @__PURE__ */ F(null), S = Z(() => [.../* @__PURE__ */ new Set([y.value, ...Object.keys(h.value)])].filter((e) => i.launch_clients[e])), C = (e) => {
|
|
44582
44598
|
let t = r.value.launch.profiles[e] || {};
|
|
44583
44599
|
return !!(t.adapter && (t.adapter === "antigravity" ? t.ipc_directory : t.executable));
|
|
44584
44600
|
}, w = Z(() => d.value && r.value.launch.available && (f.value || r.value.launch.create)), T = Z(() => g.value.length > 0 && (!d.value || g.value.every(C) && r.value.launch.available)), E = /* @__PURE__ */ F(!1);
|
|
@@ -44614,7 +44630,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44614
44630
|
i.focus(), i.click();
|
|
44615
44631
|
}
|
|
44616
44632
|
function k(e, t) {
|
|
44617
|
-
i.write_expert(
|
|
44633
|
+
i.write_expert(cq, e, t), D();
|
|
44618
44634
|
}
|
|
44619
44635
|
function ne(e) {
|
|
44620
44636
|
return h.value[e] === "online" ? {
|
|
@@ -44637,7 +44653,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44637
44653
|
function ie(e) {
|
|
44638
44654
|
if (d.value && !i.launch_clients[e]) return;
|
|
44639
44655
|
let t = i.launch_clients[e] ? "cli" : "online";
|
|
44640
|
-
_(e) ? i.add_instance(
|
|
44656
|
+
_(e) ? i.add_instance(cq, e, t) : k(e, t), D();
|
|
44641
44657
|
}
|
|
44642
44658
|
function ae(e) {
|
|
44643
44659
|
k(e, ""), Qn(() => v.value?.querySelector("button:not(:disabled)")?.focus({ preventScroll: !0 }));
|
|
@@ -44675,7 +44691,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44675
44691
|
}, [
|
|
44676
44692
|
e.targetFolder?.id ? (U(), W("p", FK, [q(_, { name: "i-lucide-folder" }), J(P(e.targetFolder.name), 1)])) : Y("", !0),
|
|
44677
44693
|
K("section", IK, [
|
|
44678
|
-
c[
|
|
44694
|
+
c[12] ||= K("h3", null, [K("span", null, "1"), J("这次做什么")], -1),
|
|
44679
44695
|
K("div", {
|
|
44680
44696
|
class: "create-modes",
|
|
44681
44697
|
role: "radiogroup",
|
|
@@ -44726,9 +44742,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44726
44742
|
}, 8, ["description"])
|
|
44727
44743
|
]),
|
|
44728
44744
|
K("section", zK, [
|
|
44729
|
-
c[
|
|
44730
|
-
|
|
44731
|
-
class: "create-modes",
|
|
44745
|
+
K("div", BK, [c[13] ||= K("h3", null, [K("span", null, "2"), J("谁来参与")], -1), K("div", {
|
|
44746
|
+
class: "create-segments",
|
|
44732
44747
|
role: "radiogroup",
|
|
44733
44748
|
"aria-label": "接入方式",
|
|
44734
44749
|
onKeydown: te
|
|
@@ -44736,87 +44751,86 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44736
44751
|
key: e.value,
|
|
44737
44752
|
type: "button",
|
|
44738
44753
|
role: "radio",
|
|
44739
|
-
|
|
44754
|
+
title: e.text,
|
|
44740
44755
|
"aria-checked": l("mode") === e.value,
|
|
44741
44756
|
tabindex: l("mode") === e.value ? 0 : -1,
|
|
44742
44757
|
onClick: (t) => ee(e.value)
|
|
44743
|
-
}, [q(_, { name: e.icon }, null, 8, ["name"]),
|
|
44744
|
-
K("
|
|
44745
|
-
|
|
44746
|
-
|
|
44747
|
-
|
|
44748
|
-
|
|
44749
|
-
|
|
44750
|
-
|
|
44751
|
-
|
|
44752
|
-
|
|
44753
|
-
|
|
44754
|
-
|
|
44755
|
-
|
|
44756
|
-
|
|
44757
|
-
|
|
44758
|
-
|
|
44759
|
-
|
|
44760
|
-
|
|
44761
|
-
|
|
44762
|
-
|
|
44763
|
-
|
|
44764
|
-
|
|
44765
|
-
|
|
44766
|
-
|
|
44767
|
-
|
|
44768
|
-
|
|
44769
|
-
|
|
44770
|
-
|
|
44771
|
-
|
|
44772
|
-
|
|
44773
|
-
|
|
44774
|
-
|
|
44775
|
-
|
|
44776
|
-
|
|
44777
|
-
|
|
44778
|
-
|
|
44779
|
-
|
|
44780
|
-
|
|
44781
|
-
|
|
44782
|
-
|
|
44783
|
-
|
|
44758
|
+
}, [q(_, { name: e.icon }, null, 8, ["name"]), J(P(e.title), 1)], 8, VK)), 64))], 32)]),
|
|
44759
|
+
K("p", HK, P(d.value ? "本机服务交付任务并自动接续会话;仅支持已适配的本地软件,网页 AI 请用手动接入。" : "首次复制指令,之后人工或定时触发;本地 AI 可自行提交,网页 AI 由你或授权主持人代发。"), 1),
|
|
44760
|
+
g.value.length ? (U(), W("div", UK, [(U(!0), W(H, null, B(g.value, (e) => (U(), G(NK, {
|
|
44761
|
+
key: e,
|
|
44762
|
+
name: e,
|
|
44763
|
+
mode: h.value[e],
|
|
44764
|
+
automatic: d.value,
|
|
44765
|
+
status: ne(e),
|
|
44766
|
+
host: y.value === e,
|
|
44767
|
+
hostable: b.value.includes(e),
|
|
44768
|
+
onHost: (t) => u("host", e),
|
|
44769
|
+
onRemove: (t) => ae(e),
|
|
44770
|
+
onMode: (t) => k(e, t)
|
|
44771
|
+
}, null, 8, [
|
|
44772
|
+
"name",
|
|
44773
|
+
"mode",
|
|
44774
|
+
"automatic",
|
|
44775
|
+
"status",
|
|
44776
|
+
"host",
|
|
44777
|
+
"hostable",
|
|
44778
|
+
"onHost",
|
|
44779
|
+
"onRemove",
|
|
44780
|
+
"onMode"
|
|
44781
|
+
]))), 128))])) : (U(), W("p", WK, "从下方添加 AI;同一平台可添加多位,各自独立会话。")),
|
|
44782
|
+
K("div", {
|
|
44783
|
+
ref_key: "library",
|
|
44784
|
+
ref: v,
|
|
44785
|
+
class: "create-roster-add",
|
|
44786
|
+
role: "group",
|
|
44787
|
+
"aria-label": "添加 AI"
|
|
44788
|
+
}, [c[14] ||= K("span", { class: "create-label" }, "添加", -1), (U(!0), W(H, null, B(I(s), (e) => (U(), W("button", {
|
|
44789
|
+
key: e,
|
|
44790
|
+
type: "button",
|
|
44791
|
+
disabled: d.value && !I(i).launch_clients[e],
|
|
44792
|
+
title: re(e),
|
|
44793
|
+
"aria-label": `添加 ${e} 实例`,
|
|
44794
|
+
onClick: (t) => ie(e)
|
|
44795
|
+
}, [
|
|
44796
|
+
q(ue, {
|
|
44797
|
+
src: I(i).identities[e]?.icon,
|
|
44798
|
+
text: I(i).identities[e]?.initials,
|
|
44799
|
+
alt: e,
|
|
44800
|
+
size: "3xs",
|
|
44801
|
+
class: M(["channel-avatar", I(i).identities[e]?.style])
|
|
44784
44802
|
}, null, 8, [
|
|
44785
|
-
"
|
|
44786
|
-
"
|
|
44787
|
-
"
|
|
44788
|
-
"
|
|
44789
|
-
|
|
44790
|
-
|
|
44791
|
-
|
|
44792
|
-
|
|
44793
|
-
|
|
44794
|
-
|
|
44795
|
-
|
|
44796
|
-
|
|
44797
|
-
|
|
44798
|
-
|
|
44799
|
-
|
|
44800
|
-
|
|
44801
|
-
|
|
44802
|
-
|
|
44803
|
-
tabindex: y.value === e ? 0 : -1,
|
|
44804
|
-
onClick: (t) => u("host", e)
|
|
44805
|
-
}, [c[15] ||= K("span", { "aria-hidden": "true" }, null, -1), J(P(e === "用户" ? "我来主持" : I(i).display_name(e)), 1)], 8, $K))), 128))], 32)) : (U(), W("span", QK, "先添加一位本地读写的 AI"))]), K("p", eq, P(f.value ? "默认由你点名和分配任务,也可指定一位本地 AI 协助主持。" : "主持人须为本地读写 AI,负责补全议题、安排发言与收束,也可同时作为专家。"), 1)])
|
|
44806
|
-
])
|
|
44803
|
+
"src",
|
|
44804
|
+
"text",
|
|
44805
|
+
"alt",
|
|
44806
|
+
"class"
|
|
44807
|
+
]),
|
|
44808
|
+
J(P(e), 1),
|
|
44809
|
+
q(_, { name: "i-lucide-plus" })
|
|
44810
|
+
], 8, GK))), 128))], 512),
|
|
44811
|
+
K("div", KK, [f.value ? (U(), W("button", {
|
|
44812
|
+
key: 0,
|
|
44813
|
+
type: "button",
|
|
44814
|
+
class: "create-host-self",
|
|
44815
|
+
"aria-pressed": y.value === "用户",
|
|
44816
|
+
onClick: c[2] ||= (e) => u("host", "用户")
|
|
44817
|
+
}, [q(_, { name: "i-lucide-crown" }), c[15] ||= J("我来主持", -1)], 8, qK)) : (U(), G(_, {
|
|
44818
|
+
key: 1,
|
|
44819
|
+
name: "i-lucide-crown"
|
|
44820
|
+
})), K("span", null, P(f.value ? "默认由你点名和分配任务;也可点卡片上的皇冠,由一位本地 AI 协助主持。" : b.value.length ? "点卡片上的皇冠指定主持人:须为本地读写 AI,负责补全议题、安排发言与收束,也可同时作为专家。" : "先添加一位本地读写的 AI 担任主持人。"), 1)])
|
|
44807
44821
|
]),
|
|
44808
|
-
f.value ? Y("", !0) : (U(), W("section",
|
|
44809
|
-
c[
|
|
44822
|
+
f.value ? Y("", !0) : (U(), W("section", JK, [
|
|
44823
|
+
c[18] ||= K("h3", null, [K("span", null, "3"), J("讨论多久")], -1),
|
|
44810
44824
|
q(YG, {
|
|
44811
44825
|
ref_key: "limit_picker",
|
|
44812
44826
|
ref: x,
|
|
44813
44827
|
rounds: Number(l("limit-max_rounds")),
|
|
44814
44828
|
minutes: Number(l("limit-max_minutes")),
|
|
44815
|
-
"onUpdate:rounds": c[
|
|
44816
|
-
"onUpdate:minutes": c[
|
|
44829
|
+
"onUpdate:rounds": c[3] ||= (e) => u("limit-max_rounds", String(e)),
|
|
44830
|
+
"onUpdate:minutes": c[4] ||= (e) => u("limit-max_minutes", String(e))
|
|
44817
44831
|
}, null, 8, ["rounds", "minutes"]),
|
|
44818
|
-
c[
|
|
44819
|
-
d.value ? (U(), W("div",
|
|
44832
|
+
c[19] ||= K("p", { class: "fine-print create-hint" }, "一轮指每位专家各完成一次观点;首次进入讨论或创建安排后计时,暂停期间不计时。", -1),
|
|
44833
|
+
d.value ? (U(), W("div", YK, [q(ce, {
|
|
44820
44834
|
label: "单次 AI 执行(分钟)",
|
|
44821
44835
|
description: "留空或 0 表示不限"
|
|
44822
44836
|
}, {
|
|
@@ -44828,13 +44842,13 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44828
44842
|
step: 1,
|
|
44829
44843
|
placeholder: "不限时长",
|
|
44830
44844
|
class: "w-full",
|
|
44831
|
-
"onUpdate:modelValue": c[
|
|
44845
|
+
"onUpdate:modelValue": c[5] ||= (e) => u("limit-execution_minutes", e)
|
|
44832
44846
|
}, null, 8, ["model-value"])]),
|
|
44833
44847
|
_: 1
|
|
44834
44848
|
})])) : Y("", !0),
|
|
44835
|
-
K("div",
|
|
44836
|
-
c[
|
|
44837
|
-
K("div",
|
|
44849
|
+
K("div", XK, [
|
|
44850
|
+
c[17] ||= K("span", { class: "create-label" }, "达到任一上限后", -1),
|
|
44851
|
+
K("div", ZK, [(U(), W(H, null, B([{
|
|
44838
44852
|
value: "pause",
|
|
44839
44853
|
label: "暂停保留现场"
|
|
44840
44854
|
}, {
|
|
@@ -44847,7 +44861,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44847
44861
|
"aria-checked": (l("limit-on_limit") || "pause") === e.value,
|
|
44848
44862
|
class: M({ "is-selected": (l("limit-on_limit") || "pause") === e.value }),
|
|
44849
44863
|
onClick: (t) => u("limit-on_limit", e.value)
|
|
44850
|
-
}, P(e.label), 11,
|
|
44864
|
+
}, P(e.label), 11, QK)), 64))]),
|
|
44851
44865
|
l("limit-on_limit") === "summarize" ? (U(), G(D, {
|
|
44852
44866
|
key: 0,
|
|
44853
44867
|
"model-value": l("limit-summary_minutes"),
|
|
@@ -44857,25 +44871,25 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44857
44871
|
step: 1,
|
|
44858
44872
|
"aria-label": "收束预留(分钟)",
|
|
44859
44873
|
class: "create-summary-minutes",
|
|
44860
|
-
"onUpdate:modelValue": c[
|
|
44874
|
+
"onUpdate:modelValue": c[6] ||= (e) => u("limit-summary_minutes", e)
|
|
44861
44875
|
}, {
|
|
44862
|
-
trailing: L(() => [...c[
|
|
44876
|
+
trailing: L(() => [...c[16] ||= [K("span", { class: "fine-print" }, "分钟收束", -1)]]),
|
|
44863
44877
|
_: 1
|
|
44864
44878
|
}, 8, ["model-value"])) : Y("", !0)
|
|
44865
44879
|
]),
|
|
44866
|
-
K("p",
|
|
44880
|
+
K("p", $K, [q(_, { name: "i-lucide-flag" }), J(P(oe.value), 1)])
|
|
44867
44881
|
])),
|
|
44868
|
-
d.value ? (U(), W("section",
|
|
44869
|
-
K("h3", null, [K("span", null, P(f.value ? 3 : 4), 1), c[
|
|
44870
|
-
f.value && !I(r).launch.available ? (U(), W("p",
|
|
44882
|
+
d.value ? (U(), W("section", eq, [
|
|
44883
|
+
K("h3", null, [K("span", null, P(f.value ? 3 : 4), 1), c[20] ||= J("启动本机软件", -1)]),
|
|
44884
|
+
f.value && !I(r).launch.available ? (U(), W("p", tq, "程序唤醒需要本机服务:请在运行 AI 的电脑打开本机网站,或先运行连接命令。")) : Y("", !0),
|
|
44871
44885
|
I(r).launch.available ? (U(), W(H, { key: 1 }, [f.value ? Y("", !0) : (U(), G(de, {
|
|
44872
44886
|
key: 0,
|
|
44873
44887
|
"model-value": I(r).launch.create,
|
|
44874
44888
|
label: "创建后立即启动 AI",
|
|
44875
44889
|
description: "由本机服务创建会话并交付首个主持任务;不勾选则只建房,稍后在「接入」页启动。",
|
|
44876
|
-
"onUpdate:modelValue": c[
|
|
44890
|
+
"onUpdate:modelValue": c[7] ||= (e) => I(i).write_launch("create", "", e)
|
|
44877
44891
|
}, null, 8, ["model-value"])), f.value || I(r).launch.create ? (U(), W(H, { key: 1 }, [
|
|
44878
|
-
K("div",
|
|
44892
|
+
K("div", nq, [q(ce, {
|
|
44879
44893
|
label: "项目目录(可选)",
|
|
44880
44894
|
help: "要一起查看的项目;留空时 AI 只在讨论私有目录工作"
|
|
44881
44895
|
}, {
|
|
@@ -44883,7 +44897,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44883
44897
|
"model-value": I(r).launch.workspace.cwd || "",
|
|
44884
44898
|
placeholder: "已有目录的完整路径",
|
|
44885
44899
|
class: "w-full",
|
|
44886
|
-
"onUpdate:modelValue": c[
|
|
44900
|
+
"onUpdate:modelValue": c[8] ||= (e) => I(i).write_launch("workspace", "cwd", e)
|
|
44887
44901
|
}, null, 8, ["model-value"])]),
|
|
44888
44902
|
_: 1
|
|
44889
44903
|
}), q(ce, {
|
|
@@ -44894,11 +44908,11 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44894
44908
|
"model-value": I(r).launch.workspace.project_access || "read",
|
|
44895
44909
|
items: o,
|
|
44896
44910
|
class: "w-full",
|
|
44897
|
-
"onUpdate:modelValue": c[
|
|
44911
|
+
"onUpdate:modelValue": c[9] ||= (e) => I(i).write_launch("workspace", "project_access", e)
|
|
44898
44912
|
}, null, 8, ["model-value"])]),
|
|
44899
44913
|
_: 1
|
|
44900
44914
|
}, 8, ["help"])]),
|
|
44901
|
-
K("ul",
|
|
44915
|
+
K("ul", rq, [(U(!0), W(H, null, B(S.value, (e) => (U(), W("li", { key: e }, [
|
|
44902
44916
|
q(_, {
|
|
44903
44917
|
name: C(e) ? "i-lucide-circle-check" : "i-lucide-circle-alert",
|
|
44904
44918
|
class: M(C(e) ? "is-ready" : "is-warn")
|
|
@@ -44908,7 +44922,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44908
44922
|
]))), 128))]),
|
|
44909
44923
|
q(pe, {
|
|
44910
44924
|
open: E.value,
|
|
44911
|
-
"onUpdate:open": c[
|
|
44925
|
+
"onUpdate:open": c[10] ||= (e) => E.value = e
|
|
44912
44926
|
}, {
|
|
44913
44927
|
content: L(() => [q(gW, {
|
|
44914
44928
|
participants: S.value,
|
|
@@ -44932,16 +44946,16 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44932
44946
|
"model-selection": !1
|
|
44933
44947
|
}, null, 8, ["participants"]))
|
|
44934
44948
|
])) : Y("", !0)
|
|
44935
|
-
], 32), K("footer",
|
|
44949
|
+
], 32), K("footer", iq, [w.value && I(r).launch.error ? (U(), W("p", aq, P(I(r).launch.error), 1)) : Y("", !0), K("div", oq, [
|
|
44936
44950
|
K("span", {
|
|
44937
44951
|
class: "create-summary",
|
|
44938
44952
|
title: se.value
|
|
44939
|
-
}, P(se.value), 9,
|
|
44953
|
+
}, P(se.value), 9, sq),
|
|
44940
44954
|
q(fe, {
|
|
44941
44955
|
label: "取消",
|
|
44942
44956
|
color: "neutral",
|
|
44943
44957
|
variant: "ghost",
|
|
44944
|
-
onClick: c[
|
|
44958
|
+
onClick: c[11] ||= (e) => n("cancel")
|
|
44945
44959
|
}),
|
|
44946
44960
|
q(fe, {
|
|
44947
44961
|
type: "submit",
|
|
@@ -44960,61 +44974,61 @@ var YG = /*#__PURE__*/ nH({
|
|
|
44960
44974
|
])])]);
|
|
44961
44975
|
};
|
|
44962
44976
|
}
|
|
44963
|
-
}, [["__scopeId", "data-v-
|
|
44977
|
+
}, [["__scopeId", "data-v-44ac648e"]]), uq = {
|
|
44964
44978
|
key: 0,
|
|
44965
44979
|
class: "channel-archive-manager"
|
|
44966
|
-
},
|
|
44980
|
+
}, dq = { class: "channel-archive-toolbar" }, fq = {
|
|
44967
44981
|
key: 0,
|
|
44968
44982
|
class: "channel-archive-confirm channel-archive-bulk",
|
|
44969
44983
|
role: "alert"
|
|
44970
|
-
},
|
|
44984
|
+
}, pq = {
|
|
44971
44985
|
key: 1,
|
|
44972
44986
|
role: "alert",
|
|
44973
44987
|
class: "channel-directory-error"
|
|
44974
|
-
},
|
|
44988
|
+
}, mq = { class: "channel-archive-results" }, hq = {
|
|
44975
44989
|
key: 0,
|
|
44976
44990
|
class: "channel-archive-list",
|
|
44977
44991
|
"aria-label": "已存档频道列表"
|
|
44978
|
-
},
|
|
44992
|
+
}, gq = { class: "channel-archive-row" }, _q = { class: "channel-archive-info" }, vq = [
|
|
44979
44993
|
"title",
|
|
44980
44994
|
"disabled",
|
|
44981
44995
|
"onClick"
|
|
44982
|
-
],
|
|
44996
|
+
], yq = { key: 0 }, bq = ["datetime"], xq = { class: "channel-archive-actions" }, Sq = {
|
|
44983
44997
|
key: 0,
|
|
44984
44998
|
class: "channel-archive-confirm channel-archive-bulk",
|
|
44985
44999
|
role: "alert"
|
|
44986
|
-
},
|
|
45000
|
+
}, Cq = {
|
|
44987
45001
|
key: 1,
|
|
44988
45002
|
class: "channel-archive-empty"
|
|
44989
|
-
},
|
|
45003
|
+
}, wq = { class: "fine-print" }, Tq = { class: "dialog-actions" }, Eq = { class: "dialog-actions" }, Dq = { class: "channel-management-target" }, Oq = {
|
|
44990
45004
|
key: 0,
|
|
44991
45005
|
class: "fine-print"
|
|
44992
|
-
},
|
|
45006
|
+
}, kq = {
|
|
44993
45007
|
key: 1,
|
|
44994
45008
|
class: "fine-print"
|
|
44995
|
-
},
|
|
45009
|
+
}, Aq = {
|
|
44996
45010
|
key: 2,
|
|
44997
45011
|
class: "fine-print"
|
|
44998
|
-
},
|
|
45012
|
+
}, jq = { class: "dialog-actions" }, Mq = { key: 4 }, Nq = { class: "theme-choices" }, Pq = ["aria-pressed", "onClick"], Fq = { class: "theme-check" }, Iq = { class: "channel-reading-setting" }, Lq = {
|
|
44999
45013
|
class: "channel-reading-options",
|
|
45000
45014
|
role: "group",
|
|
45001
45015
|
"aria-labelledby": "channel-reading-label"
|
|
45002
|
-
},
|
|
45016
|
+
}, Rq = { class: "form-two-columns" }, zq = { class: "advanced-content" }, Bq = { class: "form-two-columns" }, Vq = {
|
|
45003
45017
|
key: 0,
|
|
45004
45018
|
class: "fine-print"
|
|
45005
|
-
},
|
|
45019
|
+
}, Hq = { class: "advanced-content" }, Uq = { class: "expert-fields" }, Wq = { class: "dialog-actions" }, Gq = { class: "dialog-actions" }, Kq = {
|
|
45006
45020
|
key: 8,
|
|
45007
45021
|
class: "original-message"
|
|
45008
|
-
},
|
|
45022
|
+
}, qq = {
|
|
45009
45023
|
key: 0,
|
|
45010
45024
|
role: "alert"
|
|
45011
|
-
},
|
|
45025
|
+
}, Jq = { class: "original-meta" }, Yq = { class: "fine-print" }, Xq = {
|
|
45012
45026
|
key: 0,
|
|
45013
45027
|
class: "channel-answer-summary"
|
|
45014
|
-
},
|
|
45028
|
+
}, Zq = { class: "message-prose" }, Qq = { class: "message-prose" }, $q = ["innerHTML"], eJ = {
|
|
45015
45029
|
key: 2,
|
|
45016
45030
|
class: "fine-print"
|
|
45017
|
-
},
|
|
45031
|
+
}, tJ = "topic-expert-modes", nJ = {
|
|
45018
45032
|
__name: "WorkspaceDialogs",
|
|
45019
45033
|
props: /*@__PURE__*/ Fa({
|
|
45020
45034
|
detailId: {
|
|
@@ -45285,8 +45299,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45285
45299
|
},
|
|
45286
45300
|
"onAfter:leave": be
|
|
45287
45301
|
}, {
|
|
45288
|
-
body: L(() => [i.value === "archives" ? (U(), W("section",
|
|
45289
|
-
K("div",
|
|
45302
|
+
body: L(() => [i.value === "archives" ? (U(), W("section", uq, [
|
|
45303
|
+
K("div", dq, [
|
|
45290
45304
|
q(b, {
|
|
45291
45305
|
modelValue: m.value,
|
|
45292
45306
|
"onUpdate:modelValue": s[0] ||= (e) => m.value = e,
|
|
@@ -45315,7 +45329,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45315
45329
|
}
|
|
45316
45330
|
}, null, 8, ["label", "disabled"])
|
|
45317
45331
|
]),
|
|
45318
|
-
y.value && _.value.length ? (U(), W("div",
|
|
45332
|
+
y.value && _.value.length ? (U(), W("div", fq, [
|
|
45319
45333
|
K("span", null, "将永久删除当前列表中的 " + P(_.value.length) + " 个频道及其全部记录,无法撤销。", 1),
|
|
45320
45334
|
q(ce, {
|
|
45321
45335
|
label: "取消",
|
|
@@ -45331,20 +45345,20 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45331
45345
|
onClick: E
|
|
45332
45346
|
})
|
|
45333
45347
|
])) : Y("", !0),
|
|
45334
|
-
I(a).directory_error ? (U(), W("p",
|
|
45335
|
-
K("div",
|
|
45348
|
+
I(a).directory_error ? (U(), W("p", pq, P(I(a).directory_error), 1)) : Y("", !0),
|
|
45349
|
+
K("div", mq, [_.value.length ? (U(), W("ul", hq, [(U(!0), W(H, null, B(_.value, (e) => (U(), W("li", {
|
|
45336
45350
|
key: e.id,
|
|
45337
45351
|
class: "channel-archive-item"
|
|
45338
|
-
}, [K("div",
|
|
45352
|
+
}, [K("div", gq, [K("div", _q, [K("button", {
|
|
45339
45353
|
class: "channel-archive-title",
|
|
45340
45354
|
title: e.title,
|
|
45341
45355
|
disabled: !!I(l),
|
|
45342
45356
|
onClick: (t) => w(e)
|
|
45343
|
-
}, P(e.title), 9,
|
|
45357
|
+
}, P(e.title), 9, vq), K("small", null, [e.created_at ? (U(), W("span", yq, [
|
|
45344
45358
|
s[25] ||= J("创建于 ", -1),
|
|
45345
|
-
K("time", { datetime: e.created_at }, P(S(e.created_at)), 9,
|
|
45359
|
+
K("time", { datetime: e.created_at }, P(S(e.created_at)), 9, bq),
|
|
45346
45360
|
s[26] ||= J(" · ", -1)
|
|
45347
|
-
])) : Y("", !0), J(P(e.message_count) + " 条消息", 1)])]), K("div",
|
|
45361
|
+
])) : Y("", !0), J(P(e.message_count) + " 条消息", 1)])]), K("div", xq, [q(ce, {
|
|
45348
45362
|
"aria-label": `彻底删除 ${e.title}`,
|
|
45349
45363
|
title: "彻底删除",
|
|
45350
45364
|
icon: "i-lucide-trash-2",
|
|
@@ -45376,7 +45390,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45376
45390
|
"aria-label",
|
|
45377
45391
|
"disabled",
|
|
45378
45392
|
"onClick"
|
|
45379
|
-
])])]), v.value === e.id ? (U(), W("div",
|
|
45393
|
+
])])]), v.value === e.id ? (U(), W("div", Sq, [
|
|
45380
45394
|
K("span", null, "永久删除「" + P(e.title) + "」及其全部记录,无法撤销。", 1),
|
|
45381
45395
|
q(ce, {
|
|
45382
45396
|
label: "取消",
|
|
@@ -45392,12 +45406,12 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45392
45406
|
disabled: C(e),
|
|
45393
45407
|
onClick: T
|
|
45394
45408
|
}, null, 8, ["disabled"])
|
|
45395
|
-
])) : Y("", !0)]))), 128))])) : (U(), W("p",
|
|
45409
|
+
])) : Y("", !0)]))), 128))])) : (U(), W("p", Cq, P(p.value.length ? "没有匹配的存档频道" : "暂无已存档频道"), 1))])
|
|
45396
45410
|
])) : i.value === "delete-folder" ? (U(), W("form", {
|
|
45397
45411
|
key: 1,
|
|
45398
45412
|
class: "dialog-form",
|
|
45399
45413
|
onSubmit: uu(ne, ["prevent"])
|
|
45400
|
-
}, [K("p",
|
|
45414
|
+
}, [K("p", wq, "移除「" + P(e.targetFolder?.name) + "」后,频道不再归属文件夹,所有消息和存档状态都会保留。", 1), K("div", Tq, [q(ce, {
|
|
45401
45415
|
label: "取消",
|
|
45402
45416
|
color: "neutral",
|
|
45403
45417
|
variant: "ghost",
|
|
@@ -45428,7 +45442,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45428
45442
|
"modelValue",
|
|
45429
45443
|
"aria-label",
|
|
45430
45444
|
"readonly"
|
|
45431
|
-
]), K("div",
|
|
45445
|
+
]), K("div", Eq, [q(ce, {
|
|
45432
45446
|
label: "取消",
|
|
45433
45447
|
color: "neutral",
|
|
45434
45448
|
variant: "ghost",
|
|
@@ -45453,10 +45467,10 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45453
45467
|
class: "dialog-form",
|
|
45454
45468
|
onSubmit: uu(te, ["prevent"])
|
|
45455
45469
|
}, [
|
|
45456
|
-
K("p",
|
|
45457
|
-
i.value === "archive" ? (U(), W("p",
|
|
45458
|
-
i.value === "restore" ? (U(), W("p",
|
|
45459
|
-
i.value === "delete" ? (U(), W("p",
|
|
45470
|
+
K("p", Dq, [J(P(e.targetRoom?.title) + " ", 1), K("span", null, "· " + P(e.targetRoom?.message_count) + " 条消息", 1)]),
|
|
45471
|
+
i.value === "archive" ? (U(), W("p", Oq, "存档后可在侧栏「已存档」中查阅与恢复。已有发言安排会保留;专家需在下次检查时停止自己的定时任务。")) : Y("", !0),
|
|
45472
|
+
i.value === "restore" ? (U(), W("p", kq, "恢复不会自动继续讨论;需要继续时,在主持设置中调整阶段。")) : Y("", !0),
|
|
45473
|
+
i.value === "delete" ? (U(), W("p", Aq, "消息、共识和发言安排将一起删除,无法撤销。")) : Y("", !0),
|
|
45460
45474
|
i.value === "rename" ? (U(), G(ue, {
|
|
45461
45475
|
key: 3,
|
|
45462
45476
|
label: "频道名称",
|
|
@@ -45473,7 +45487,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45473
45487
|
}, null, 8, ["modelValue"])]),
|
|
45474
45488
|
_: 1
|
|
45475
45489
|
})) : Y("", !0),
|
|
45476
|
-
K("div",
|
|
45490
|
+
K("div", jq, [q(ce, {
|
|
45477
45491
|
label: "取消",
|
|
45478
45492
|
color: "neutral",
|
|
45479
45493
|
variant: "ghost",
|
|
@@ -45490,7 +45504,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45490
45504
|
"loading",
|
|
45491
45505
|
"disabled"
|
|
45492
45506
|
])])
|
|
45493
|
-
], 32)) : i.value === "settings" ? (U(), W("div",
|
|
45507
|
+
], 32)) : i.value === "settings" ? (U(), W("div", Mq, [K("div", Nq, [(U(), W(H, null, B(he, (e) => K("button", {
|
|
45494
45508
|
key: e.value,
|
|
45495
45509
|
class: M({ chosen: I(a).theme === e.value }),
|
|
45496
45510
|
"aria-pressed": I(a).theme === e.value,
|
|
@@ -45505,11 +45519,11 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45505
45519
|
K("b")
|
|
45506
45520
|
], -1)]], 2),
|
|
45507
45521
|
K("span", null, [K("strong", null, P(e.title), 1), K("small", null, P(e.description), 1)]),
|
|
45508
|
-
K("span",
|
|
45522
|
+
K("span", Fq, [I(a).theme === e.value ? (U(), G(de, {
|
|
45509
45523
|
key: 0,
|
|
45510
45524
|
name: "i-lucide-check"
|
|
45511
45525
|
})) : Y("", !0)])
|
|
45512
|
-
], 10,
|
|
45526
|
+
], 10, Pq)), 64))]), K("section", Iq, [s[28] ||= K("h3", { id: "channel-reading-label" }, "对话宽度", -1), K("div", Lq, [(U(!0), W(H, null, B(e.readingOptions, (e) => (U(), G(ce, {
|
|
45513
45527
|
key: e.value,
|
|
45514
45528
|
label: e.label,
|
|
45515
45529
|
color: "neutral",
|
|
@@ -45522,7 +45536,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45522
45536
|
"class",
|
|
45523
45537
|
"aria-pressed",
|
|
45524
45538
|
"onClick"
|
|
45525
|
-
]))), 128))])])])) : i.value === "create" ? (U(), G(
|
|
45539
|
+
]))), 128))])])])) : i.value === "create" ? (U(), G(lq, {
|
|
45526
45540
|
key: 5,
|
|
45527
45541
|
"target-folder": e.targetFolder,
|
|
45528
45542
|
onSubmit: N,
|
|
@@ -45557,7 +45571,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45557
45571
|
}, null, 8, ["model-value"])]),
|
|
45558
45572
|
_: 1
|
|
45559
45573
|
}),
|
|
45560
|
-
K("div",
|
|
45574
|
+
K("div", Rq, [q(ue, { label: "主持人" }, {
|
|
45561
45575
|
default: L(() => [q(x, {
|
|
45562
45576
|
"model-value": I(a).fields[ge("host")],
|
|
45563
45577
|
items: I(ie),
|
|
@@ -45591,9 +45605,9 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45591
45605
|
}, null, 8, ["model-value"])]),
|
|
45592
45606
|
_: 1
|
|
45593
45607
|
})) : Y("", !0),
|
|
45594
|
-
K("section",
|
|
45608
|
+
K("section", zq, [
|
|
45595
45609
|
s[29] ||= K("h3", null, "讨论上限", -1),
|
|
45596
|
-
K("div",
|
|
45610
|
+
K("div", Bq, [
|
|
45597
45611
|
(U(!0), W(H, null, B(le.value, (e) => (U(), G(ue, {
|
|
45598
45612
|
key: e.key,
|
|
45599
45613
|
label: e.label
|
|
@@ -45654,14 +45668,14 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45654
45668
|
})) : Y("", !0)
|
|
45655
45669
|
]),
|
|
45656
45670
|
s[30] ||= K("p", { class: "fine-print" }, "轮次、总时长、单次执行留空或 0 表示不限。一轮指每位专家各完成一次观点;首次进入讨论阶段或创建安排后计时,暂停期间不计时。收束预留计入总时长。", -1),
|
|
45657
|
-
se.value ? (U(), W("p",
|
|
45671
|
+
se.value ? (U(), W("p", Vq, "修改上限前,请先把阶段保存为“已暂停”。")) : Y("", !0)
|
|
45658
45672
|
]),
|
|
45659
45673
|
q(Se, {
|
|
45660
45674
|
open: oe.value,
|
|
45661
45675
|
"onUpdate:open": s[19] ||= (e) => oe.value = e,
|
|
45662
45676
|
class: "advanced-fields"
|
|
45663
45677
|
}, {
|
|
45664
|
-
content: L(() => [K("div",
|
|
45678
|
+
content: L(() => [K("div", Hq, [
|
|
45665
45679
|
(U(), W(H, null, B([
|
|
45666
45680
|
{
|
|
45667
45681
|
key: "user_request",
|
|
@@ -45688,11 +45702,11 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45688
45702
|
}, null, 8, ["model-value", "onUpdate:modelValue"])]),
|
|
45689
45703
|
_: 2
|
|
45690
45704
|
}, 1032, ["label"])), 64)),
|
|
45691
|
-
K("div",
|
|
45692
|
-
"model-value": I(a).experts[
|
|
45705
|
+
K("div", Uq, [(U(!0), W(H, null, B(I(re), (e) => (U(), W("div", { key: e }, [K("label", null, P(e), 1), q(x, {
|
|
45706
|
+
"model-value": I(a).experts[tJ]?.[e] || "none",
|
|
45693
45707
|
items: A,
|
|
45694
45708
|
"aria-label": `${e} 参与方式`,
|
|
45695
|
-
"onUpdate:modelValue": (t) => I(o).write_expert(
|
|
45709
|
+
"onUpdate:modelValue": (t) => I(o).write_expert(tJ, e, t === "none" ? "" : t)
|
|
45696
45710
|
}, null, 8, [
|
|
45697
45711
|
"model-value",
|
|
45698
45712
|
"aria-label",
|
|
@@ -45710,7 +45724,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45710
45724
|
}, null, 8, ["trailing-icon"])]),
|
|
45711
45725
|
_: 1
|
|
45712
45726
|
}, 8, ["open"]),
|
|
45713
|
-
K("div",
|
|
45727
|
+
K("div", Wq, [q(ce, {
|
|
45714
45728
|
label: "取消",
|
|
45715
45729
|
color: "neutral",
|
|
45716
45730
|
variant: "ghost",
|
|
@@ -45754,7 +45768,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45754
45768
|
_: 1
|
|
45755
45769
|
}),
|
|
45756
45770
|
s[32] ||= K("p", { class: "fine-print" }, "创建后为待通知状态;由主持人实际联系专家。", -1),
|
|
45757
|
-
K("div",
|
|
45771
|
+
K("div", Gq, [q(ce, {
|
|
45758
45772
|
label: "取消",
|
|
45759
45773
|
variant: "ghost",
|
|
45760
45774
|
color: "neutral",
|
|
@@ -45765,8 +45779,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45765
45779
|
label: "创建发言安排",
|
|
45766
45780
|
loading: I(l) === "schedule"
|
|
45767
45781
|
}, null, 8, ["loading"])])
|
|
45768
|
-
], 32)) : i.value === "message" ? (U(), W("div",
|
|
45769
|
-
K("div",
|
|
45782
|
+
], 32)) : i.value === "message" ? (U(), W("div", Kq, [fe.value ? (U(), W("p", qq, P(fe.value), 1)) : j.value ? (U(), W(H, { key: 1 }, [
|
|
45783
|
+
K("div", Jq, [
|
|
45770
45784
|
K("strong", null, P(I(o).display_name(j.value.author)), 1),
|
|
45771
45785
|
K("span", null, "#" + P(j.value.id), 1),
|
|
45772
45786
|
q(Ce, {
|
|
@@ -45777,14 +45791,14 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45777
45791
|
_: 1
|
|
45778
45792
|
})
|
|
45779
45793
|
]),
|
|
45780
|
-
K("p",
|
|
45781
|
-
j.value.summary ? (U(), W("section",
|
|
45782
|
-
K("p",
|
|
45794
|
+
K("p", Yq, P(I(o).provenance(j.value)) + " · " + P(new Date(j.value.created_at).toLocaleString("zh-CN")), 1),
|
|
45795
|
+
j.value.summary ? (U(), W("section", Xq, [K("small", null, "回答摘要 · " + P(I(o).display_name(j.value.summary_by)), 1), K("p", Zq, P(j.value.summary), 1)])) : Y("", !0),
|
|
45796
|
+
K("p", Qq, P(j.value.text), 1),
|
|
45783
45797
|
j.value.attachments?.length ? (U(), W("div", {
|
|
45784
45798
|
key: 1,
|
|
45785
45799
|
onClick: ye,
|
|
45786
45800
|
innerHTML: I(o).attachment_markup(j.value.attachments)
|
|
45787
|
-
}, null, 8,
|
|
45801
|
+
}, null, 8, $q)) : Y("", !0),
|
|
45788
45802
|
j.value.reply_to ? (U(), G(ce, {
|
|
45789
45803
|
key: 2,
|
|
45790
45804
|
label: `查看被回复的原文 #${j.value.reply_to}`,
|
|
@@ -45794,7 +45808,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45794
45808
|
class: "channel-surface-button",
|
|
45795
45809
|
onClick: xe
|
|
45796
45810
|
}, null, 8, ["label"])) : Y("", !0)
|
|
45797
|
-
], 64)) : (U(), W("p",
|
|
45811
|
+
], 64)) : (U(), W("p", eJ, "正在读取原文…"))])) : Y("", !0)]),
|
|
45798
45812
|
_: 1
|
|
45799
45813
|
}, 8, [
|
|
45800
45814
|
"open",
|
|
@@ -45804,7 +45818,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
45804
45818
|
]);
|
|
45805
45819
|
};
|
|
45806
45820
|
}
|
|
45807
|
-
},
|
|
45821
|
+
}, rJ = {
|
|
45808
45822
|
__name: "ContextMenuContent",
|
|
45809
45823
|
props: {
|
|
45810
45824
|
items: {
|
|
@@ -46099,7 +46113,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46099
46113
|
"disabled",
|
|
46100
46114
|
"text-value",
|
|
46101
46115
|
"class"
|
|
46102
|
-
]), q(
|
|
46116
|
+
]), q(rJ, X({
|
|
46103
46117
|
sub: "",
|
|
46104
46118
|
class: r.ui?.content,
|
|
46105
46119
|
ui: e.ui,
|
|
@@ -46210,7 +46224,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46210
46224
|
_: 3
|
|
46211
46225
|
}, 16)], 64));
|
|
46212
46226
|
}
|
|
46213
|
-
},
|
|
46227
|
+
}, iJ = {
|
|
46214
46228
|
slots: {
|
|
46215
46229
|
content: "min-w-32 max-h-(--reka-context-menu-content-available-height) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)] origin-(--reka-context-menu-content-transform-origin) flex flex-col",
|
|
46216
46230
|
viewport: "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
|
|
@@ -46398,7 +46412,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46398
46412
|
}
|
|
46399
46413
|
],
|
|
46400
46414
|
defaultVariants: { size: "md" }
|
|
46401
|
-
},
|
|
46415
|
+
}, aJ = {
|
|
46402
46416
|
__name: "ContextMenu",
|
|
46403
46417
|
props: {
|
|
46404
46418
|
size: {
|
|
@@ -46468,7 +46482,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46468
46482
|
emits: ["update:open"],
|
|
46469
46483
|
setup(e, { emit: t }) {
|
|
46470
46484
|
let n = e, r = t, i = Aa(), a = cE("contextMenu", n), o = Sm(), s = lE(am(a, "modal"), r), c = /* @__PURE__ */ Sn(() => a.content), l = () => Bm(i, ["default"]), u = Z(() => Rk({
|
|
46471
|
-
extend:
|
|
46485
|
+
extend: iJ,
|
|
46472
46486
|
...o.ui?.contextMenu || {}
|
|
46473
46487
|
})({ size: a.size }));
|
|
46474
46488
|
return (e, t) => (U(), G(I(GS), N(Ss(I(s))), {
|
|
@@ -46480,7 +46494,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46480
46494
|
}, {
|
|
46481
46495
|
default: L(() => [V(e.$slots, "default")]),
|
|
46482
46496
|
_: 3
|
|
46483
|
-
}, 8, ["disabled", "class"])) : Y("", !0), q(
|
|
46497
|
+
}, 8, ["disabled", "class"])) : Y("", !0), q(rJ, X({
|
|
46484
46498
|
class: u.value.content({ class: [!i.default && I(a).class, I(a).ui?.content] }),
|
|
46485
46499
|
ui: u.value,
|
|
46486
46500
|
"ui-override": I(a).ui
|
|
@@ -46510,43 +46524,43 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46510
46524
|
_: 3
|
|
46511
46525
|
}, 16));
|
|
46512
46526
|
}
|
|
46513
|
-
},
|
|
46527
|
+
}, oJ = { class: "channel-directory-manager" }, sJ = { class: "channel-directory-heading" }, cJ = ["aria-expanded"], lJ = { class: "channel-directory-actions" }, uJ = {
|
|
46514
46528
|
"aria-label": "讨论频道列表",
|
|
46515
46529
|
class: "channel-room-list",
|
|
46516
46530
|
"data-room-directory": ""
|
|
46517
|
-
},
|
|
46531
|
+
}, dJ = ["data-room-folder", "data-drag-folder"], fJ = {
|
|
46518
46532
|
key: 0,
|
|
46519
46533
|
class: "channel-folder-row"
|
|
46520
|
-
},
|
|
46534
|
+
}, pJ = [
|
|
46521
46535
|
"disabled",
|
|
46522
46536
|
"aria-label",
|
|
46523
46537
|
"aria-expanded",
|
|
46524
46538
|
"onKeydown",
|
|
46525
46539
|
"onClick"
|
|
46526
|
-
],
|
|
46540
|
+
], mJ = { class: "channel-folder-name" }, hJ = { class: "channel-folder-actions" }, gJ = {
|
|
46527
46541
|
class: "channel-directory-count",
|
|
46528
46542
|
"aria-hidden": "true"
|
|
46529
|
-
},
|
|
46543
|
+
}, _J = ["data-drop-folder"], vJ = {
|
|
46530
46544
|
key: 0,
|
|
46531
46545
|
class: "channel-directory-empty",
|
|
46532
46546
|
role: "status"
|
|
46533
|
-
},
|
|
46547
|
+
}, yJ = ["data-drag-room"], bJ = [
|
|
46534
46548
|
"aria-label",
|
|
46535
46549
|
"disabled",
|
|
46536
46550
|
"onKeydown"
|
|
46537
|
-
],
|
|
46551
|
+
], xJ = [
|
|
46538
46552
|
"title",
|
|
46539
46553
|
"aria-label",
|
|
46540
46554
|
"aria-current",
|
|
46541
46555
|
"onClick"
|
|
46542
|
-
],
|
|
46556
|
+
], SJ = { class: "channel-room-actions" }, CJ = {
|
|
46543
46557
|
key: 0,
|
|
46544
46558
|
class: "channel-directory-empty"
|
|
46545
|
-
},
|
|
46559
|
+
}, wJ = {
|
|
46546
46560
|
key: 0,
|
|
46547
46561
|
role: "alert",
|
|
46548
46562
|
class: "channel-directory-error"
|
|
46549
|
-
},
|
|
46563
|
+
}, TJ = {
|
|
46550
46564
|
__name: "ChannelDirectory",
|
|
46551
46565
|
emits: [
|
|
46552
46566
|
"select",
|
|
@@ -46723,8 +46737,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46723
46737
|
];
|
|
46724
46738
|
}
|
|
46725
46739
|
return (e, t) => {
|
|
46726
|
-
let u = uA, h = zk, v = EV, y = VV, b =
|
|
46727
|
-
return U(), W("div",
|
|
46740
|
+
let u = uA, h = zk, v = EV, y = VV, b = aJ;
|
|
46741
|
+
return U(), W("div", oJ, [
|
|
46728
46742
|
q(u, {
|
|
46729
46743
|
label: "新建对话",
|
|
46730
46744
|
icon: "i-lucide-square-pen",
|
|
@@ -46734,12 +46748,12 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46734
46748
|
disabled: I(r).directory_pending.includes("create-room"),
|
|
46735
46749
|
onClick: t[0] ||= (e) => n("create", null)
|
|
46736
46750
|
}, null, 8, ["disabled"]),
|
|
46737
|
-
K("div",
|
|
46751
|
+
K("div", sJ, [K("button", {
|
|
46738
46752
|
type: "button",
|
|
46739
46753
|
class: "channel-section-toggle",
|
|
46740
46754
|
"aria-expanded": f.value,
|
|
46741
46755
|
onClick: t[1] ||= (e) => f.value = !f.value
|
|
46742
|
-
}, [q(h, { name: f.value ? "i-lucide-chevron-down" : "i-lucide-chevron-right" }, null, 8, ["name"]), t[7] ||= J("讨论频道", -1)], 8,
|
|
46756
|
+
}, [q(h, { name: f.value ? "i-lucide-chevron-down" : "i-lucide-chevron-right" }, null, 8, ["name"]), t[7] ||= J("讨论频道", -1)], 8, cJ), K("div", lJ, [q(v, {
|
|
46743
46757
|
items: d.value,
|
|
46744
46758
|
content: {
|
|
46745
46759
|
align: "end",
|
|
@@ -46768,12 +46782,12 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46768
46782
|
}, null, 8, ["disabled"])]),
|
|
46769
46783
|
_: 1
|
|
46770
46784
|
})])]),
|
|
46771
|
-
vr(K("nav",
|
|
46785
|
+
vr(K("nav", uJ, [(U(!0), W(H, null, B(l.value, (e, s) => (U(), W("section", {
|
|
46772
46786
|
key: e.order_id,
|
|
46773
46787
|
class: "channel-folder-section",
|
|
46774
46788
|
"data-room-folder": e.id,
|
|
46775
46789
|
"data-drag-folder": e.order_id
|
|
46776
|
-
}, [e.id ? (U(), W("div",
|
|
46790
|
+
}, [e.id ? (U(), W("div", fJ, [
|
|
46777
46791
|
K("button", {
|
|
46778
46792
|
class: "channel-folder-heading",
|
|
46779
46793
|
"data-drop-folder": "",
|
|
@@ -46795,9 +46809,9 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46795
46809
|
}, [
|
|
46796
46810
|
q(h, { name: p.value.has(e.id) ? "i-lucide-chevron-right" : "i-lucide-chevron-down" }, null, 8, ["name"]),
|
|
46797
46811
|
q(h, { name: "i-lucide-folder" }),
|
|
46798
|
-
K("span",
|
|
46799
|
-
], 40,
|
|
46800
|
-
K("div",
|
|
46812
|
+
K("span", mJ, P(e.name), 1)
|
|
46813
|
+
], 40, pJ),
|
|
46814
|
+
K("div", hJ, [q(v, {
|
|
46801
46815
|
items: m(e, s),
|
|
46802
46816
|
content: {
|
|
46803
46817
|
align: "start",
|
|
@@ -46831,12 +46845,12 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46831
46845
|
])]),
|
|
46832
46846
|
_: 2
|
|
46833
46847
|
}, 1032, ["text"])]),
|
|
46834
|
-
K("small",
|
|
46848
|
+
K("small", gJ, P(e.pending ? "保存中" : e.rooms.length), 1)
|
|
46835
46849
|
])) : Y("", !0), !e.id || !p.value.has(e.id) ? (U(), W("div", {
|
|
46836
46850
|
key: 1,
|
|
46837
46851
|
class: M(e.id ? "channel-folder-rooms" : "channel-root-rooms"),
|
|
46838
46852
|
"data-drop-folder": e.id ? void 0 : ""
|
|
46839
|
-
}, [I(r).creating_room && (I(r).creating_room.folder_id || "") === e.id ? (U(), W("p",
|
|
46853
|
+
}, [I(r).creating_room && (I(r).creating_room.folder_id || "") === e.id ? (U(), W("p", vJ, "正在创建:" + P(I(r).creating_room.title), 1)) : Y("", !0), (U(!0), W(H, null, B(e.rooms, (s, c) => (U(), G(b, {
|
|
46840
46854
|
key: s.id,
|
|
46841
46855
|
items: _(s, c, s.folder_id || null, e.rooms.length),
|
|
46842
46856
|
ui: { content: "channel-menu channel-topic-menu" }
|
|
@@ -46861,7 +46875,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46861
46875
|
direction: 1,
|
|
46862
46876
|
folder_id: s.folder_id || null
|
|
46863
46877
|
}), ["prevent"]), ["down"])]
|
|
46864
|
-
}, [q(h, { name: "i-lucide-grip-vertical" })], 40,
|
|
46878
|
+
}, [q(h, { name: "i-lucide-grip-vertical" })], 40, bJ),
|
|
46865
46879
|
K("button", {
|
|
46866
46880
|
class: "channel-room-select",
|
|
46867
46881
|
"data-drag-title": "",
|
|
@@ -46870,8 +46884,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46870
46884
|
"aria-current": s.id === I(r).room?.id ? "page" : void 0,
|
|
46871
46885
|
onPointerdown: t[5] ||= (e) => !I(o) && I(i).start_drag(e),
|
|
46872
46886
|
onClick: (e) => n("select", s.id)
|
|
46873
|
-
}, [K("span", null, P(s.title), 1)], 40,
|
|
46874
|
-
K("div",
|
|
46887
|
+
}, [K("span", null, P(s.title), 1)], 40, xJ),
|
|
46888
|
+
K("div", SJ, [q(y, {
|
|
46875
46889
|
text: s.archived ? "恢复频道" : "存档频道",
|
|
46876
46890
|
ui: { content: "channel-topic-tooltip" }
|
|
46877
46891
|
}, {
|
|
@@ -46912,9 +46926,9 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46912
46926
|
}, null, 8, ["aria-label"])]),
|
|
46913
46927
|
_: 2
|
|
46914
46928
|
}, 1032, ["items"])])
|
|
46915
|
-
], 10,
|
|
46929
|
+
], 10, yJ)]),
|
|
46916
46930
|
_: 2
|
|
46917
|
-
}, 1032, ["items"]))), 128))], 10,
|
|
46931
|
+
}, 1032, ["items"]))), 128))], 10, _J)) : Y("", !0)], 8, dJ))), 128)), s.value.length ? Y("", !0) : (U(), W("p", CJ, "暂无讨论频道"))], 512), [[Vc, f.value]]),
|
|
46918
46932
|
vr(q(u, {
|
|
46919
46933
|
icon: "i-lucide-archive",
|
|
46920
46934
|
label: `已存档 · ${c.value}`,
|
|
@@ -46925,61 +46939,61 @@ var YG = /*#__PURE__*/ nH({
|
|
|
46925
46939
|
"aria-haspopup": "dialog",
|
|
46926
46940
|
onClick: t[6] ||= (e) => n("archives")
|
|
46927
46941
|
}, null, 8, ["label"]), [[Vc, f.value]]),
|
|
46928
|
-
I(r).directory_error ? (U(), W("p",
|
|
46942
|
+
I(r).directory_error ? (U(), W("p", wJ, P(I(r).directory_error), 1)) : Y("", !0)
|
|
46929
46943
|
]);
|
|
46930
46944
|
};
|
|
46931
46945
|
}
|
|
46932
|
-
},
|
|
46946
|
+
}, EJ = {
|
|
46933
46947
|
key: 0,
|
|
46934
46948
|
class: "pb-header"
|
|
46935
|
-
},
|
|
46949
|
+
}, DJ = { class: "pb-mode" }, OJ = { class: "pb-status-line" }, kJ = { role: "status" }, AJ = {
|
|
46936
46950
|
key: 0,
|
|
46937
46951
|
class: "pb-mode"
|
|
46938
|
-
},
|
|
46952
|
+
}, jJ = {
|
|
46939
46953
|
key: 0,
|
|
46940
46954
|
class: "pb-status-detail"
|
|
46941
|
-
},
|
|
46955
|
+
}, MJ = {
|
|
46942
46956
|
key: 1,
|
|
46943
46957
|
class: "pb-status-detail"
|
|
46944
|
-
},
|
|
46958
|
+
}, NJ = { class: "pb-error-detail" }, PJ = {
|
|
46945
46959
|
key: 2,
|
|
46946
46960
|
class: "pb-meters"
|
|
46947
|
-
},
|
|
46961
|
+
}, FJ = { class: "pb-meter-label" }, IJ = {
|
|
46948
46962
|
key: 0,
|
|
46949
46963
|
class: "pb-bar"
|
|
46950
|
-
},
|
|
46964
|
+
}, LJ = {
|
|
46951
46965
|
key: 1,
|
|
46952
46966
|
class: "pb-section",
|
|
46953
46967
|
"aria-label": "当前焦点"
|
|
46954
|
-
},
|
|
46968
|
+
}, RJ = {
|
|
46955
46969
|
class: "pb-section",
|
|
46956
46970
|
"aria-label": "参与者"
|
|
46957
|
-
},
|
|
46971
|
+
}, zJ = {
|
|
46958
46972
|
key: 0,
|
|
46959
46973
|
class: "pb-status-detail pb-held"
|
|
46960
|
-
},
|
|
46974
|
+
}, BJ = { class: "pb-members" }, VJ = { class: "pb-member-body" }, HJ = { class: "pb-member-name" }, UJ = {
|
|
46961
46975
|
class: "pb-member-model",
|
|
46962
46976
|
title: "本场启动配置;默认模型与默认强度由对应软件决定"
|
|
46963
|
-
},
|
|
46977
|
+
}, WJ = { key: 0 }, GJ = {
|
|
46964
46978
|
key: 2,
|
|
46965
46979
|
class: "pb-actions",
|
|
46966
46980
|
"aria-label": "操作"
|
|
46967
|
-
},
|
|
46981
|
+
}, KJ = {
|
|
46968
46982
|
key: 3,
|
|
46969
46983
|
class: "pb-section",
|
|
46970
46984
|
"aria-label": "阶段耗时"
|
|
46971
|
-
},
|
|
46985
|
+
}, qJ = { class: "pb-timing-heading" }, JJ = ["aria-label"], YJ = { class: "pb-timing-totals" }, XJ = ["title"], ZJ = { class: "pb-timings" }, QJ = { class: "pb-timing-who" }, $J = { class: "pb-timing-stages" }, eY = ["title"], tY = {
|
|
46972
46986
|
key: 0,
|
|
46973
46987
|
class: "pb-note"
|
|
46974
|
-
},
|
|
46988
|
+
}, nY = { class: "pb-connection" }, rY = { class: "fine-print" }, iY = {
|
|
46975
46989
|
key: 0,
|
|
46976
46990
|
role: "status",
|
|
46977
46991
|
class: "fine-print"
|
|
46978
|
-
},
|
|
46992
|
+
}, aY = {
|
|
46979
46993
|
key: 2,
|
|
46980
46994
|
role: "alert",
|
|
46981
46995
|
class: "fine-print"
|
|
46982
|
-
},
|
|
46996
|
+
}, oY = { key: 2 }, sY = { class: "progress-ending" }, cY = ["disabled"], lY = { key: 0 }, uY = ["disabled"], dY = 90, fY = 100, pY = /*#__PURE__*/ nH({
|
|
46983
46997
|
__name: "ProgressBoard",
|
|
46984
46998
|
props: { docked: {
|
|
46985
46999
|
type: Boolean,
|
|
@@ -47016,7 +47030,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47016
47030
|
"initial",
|
|
47017
47031
|
"discussing",
|
|
47018
47032
|
"reviewing"
|
|
47019
|
-
].includes(m.value.phase) && !m.value.archived), w = Z(() => (C.value || m.value.phase === "paused") && !m.value.archived), T = Z(() => C.value || S.value || w.value), E = Z(() => !y.value && m.value.phase !== "preparing" && !m.value.archived && !h.value.closing), D = Z(() => [m.value.host, ...Object.keys(m.value.experts || {}).filter((e) => e !== m.value.host)].filter((e) => e && e !== "用户").map(A)), O = Z(() => D.value.find((e) => e.result)), ee = Z(() => v.value?.question || m.value.focus || m.value.goal || ""), te = Z(() => ee.value.length >
|
|
47033
|
+
].includes(m.value.phase) && !m.value.archived), w = Z(() => (C.value || m.value.phase === "paused") && !m.value.archived), T = Z(() => C.value || S.value || w.value), E = Z(() => !y.value && m.value.phase !== "preparing" && !m.value.archived && !h.value.closing), D = Z(() => [m.value.host, ...Object.keys(m.value.experts || {}).filter((e) => e !== m.value.host)].filter((e) => e && e !== "用户").map(A)), O = Z(() => D.value.find((e) => e.result)), ee = Z(() => v.value?.question || m.value.focus || m.value.goal || ""), te = Z(() => ee.value.length > dY), k = Z(() => g.value.timings || {
|
|
47020
47034
|
items: [],
|
|
47021
47035
|
totals: {},
|
|
47022
47036
|
count: 0
|
|
@@ -47050,7 +47064,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47050
47064
|
if (e.phase === "paused") {
|
|
47051
47065
|
let e = O.value;
|
|
47052
47066
|
if (e) {
|
|
47053
|
-
let t = e.result.startsWith(e.name) ? e.result : `${r.display_name(e.name)} 执行失败:${e.result}`, n = t.split("\n")[0], i = n.length >
|
|
47067
|
+
let t = e.result.startsWith(e.name) ? e.result : `${r.display_name(e.name)} 执行失败:${e.result}`, n = t.split("\n")[0], i = n.length > fY ? `${n.slice(0, fY)}…` : n;
|
|
47054
47068
|
return {
|
|
47055
47069
|
tone: "error",
|
|
47056
47070
|
title: "已暂停",
|
|
@@ -47144,24 +47158,24 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47144
47158
|
return (e, l) => {
|
|
47145
47159
|
let u = Gk, d = zk, O = uA, A = EV, se = pV, j = MV, pe = EG;
|
|
47146
47160
|
return U(), W("div", { class: M(["progress-board", { "is-docked": t.docked }]) }, [
|
|
47147
|
-
t.docked ? (U(), W("header",
|
|
47161
|
+
t.docked ? (U(), W("header", EJ, [l[11] ||= K("strong", null, "讨论进度", -1), K("span", DJ, P(_.value ? "全自动" : "手动"), 1)])) : Y("", !0),
|
|
47148
47162
|
K("section", {
|
|
47149
47163
|
class: M(["pb-status", `is-${ie.value.tone}`]),
|
|
47150
47164
|
"aria-label": "讨论状态"
|
|
47151
47165
|
}, [
|
|
47152
|
-
K("div",
|
|
47166
|
+
K("div", OJ, [
|
|
47153
47167
|
l[12] ||= K("span", { class: "pb-dot" }, null, -1),
|
|
47154
|
-
K("strong",
|
|
47155
|
-
t.docked ? Y("", !0) : (U(), W("span",
|
|
47168
|
+
K("strong", kJ, P(ie.value.title), 1),
|
|
47169
|
+
t.docked ? Y("", !0) : (U(), W("span", AJ, P(_.value ? "全自动" : "手动"), 1))
|
|
47156
47170
|
]),
|
|
47157
|
-
ie.value.detail ? (U(), W("p",
|
|
47158
|
-
ie.value.full_detail ? (U(), W("details",
|
|
47159
|
-
ae.value.length ? (U(), W("div",
|
|
47171
|
+
ie.value.detail ? (U(), W("p", jJ, P(ie.value.detail), 1)) : Y("", !0),
|
|
47172
|
+
ie.value.full_detail ? (U(), W("details", MJ, [l[13] ||= K("summary", null, "查看错误详情", -1), K("pre", NJ, P(ie.value.full_detail), 1)])) : Y("", !0),
|
|
47173
|
+
ae.value.length ? (U(), W("div", PJ, [(U(!0), W(H, null, B(ae.value, (e) => (U(), W("div", {
|
|
47160
47174
|
key: e.label,
|
|
47161
47175
|
class: "pb-meter"
|
|
47162
|
-
}, [K("div",
|
|
47176
|
+
}, [K("div", FJ, [K("span", null, P(e.label), 1), K("b", null, P(e.text), 1)]), e.ratio === null ? Y("", !0) : (U(), W("div", IJ, [K("i", { style: fe({ width: `${Math.min(100, Math.round(e.ratio * 100))}%` }) }, null, 4)]))]))), 128))])) : Y("", !0)
|
|
47163
47177
|
], 2),
|
|
47164
|
-
ee.value ? (U(), W("section",
|
|
47178
|
+
ee.value ? (U(), W("section", LJ, [
|
|
47165
47179
|
l[14] ||= K("h4", null, "当前焦点", -1),
|
|
47166
47180
|
K("p", { class: M(["pb-focus", { "is-expanded": s.value }]) }, P(ee.value), 3),
|
|
47167
47181
|
te.value ? (U(), W("button", {
|
|
@@ -47171,10 +47185,10 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47171
47185
|
onClick: l[0] ||= (e) => s.value = !s.value
|
|
47172
47186
|
}, P(s.value ? "收起" : "展开"), 1)) : Y("", !0)
|
|
47173
47187
|
])) : Y("", !0),
|
|
47174
|
-
K("section",
|
|
47188
|
+
K("section", RJ, [
|
|
47175
47189
|
l[16] ||= K("h4", null, "参与者", -1),
|
|
47176
|
-
m.value.held_since && v.value && !y.value ? (U(), W("p",
|
|
47177
|
-
K("ul",
|
|
47190
|
+
m.value.held_since && v.value && !y.value ? (U(), W("p", zJ, "用户有新操作," + P(I(r).display_name(v.value.expert)) + " 说完后交给主持人", 1)) : Y("", !0),
|
|
47191
|
+
K("ul", BJ, [(U(!0), W(H, null, B(D.value, (e) => (U(), W("li", {
|
|
47178
47192
|
key: e.name,
|
|
47179
47193
|
class: "pb-member"
|
|
47180
47194
|
}, [
|
|
@@ -47190,8 +47204,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47190
47204
|
"alt",
|
|
47191
47205
|
"class"
|
|
47192
47206
|
]),
|
|
47193
|
-
K("div",
|
|
47194
|
-
K("div",
|
|
47207
|
+
K("div", VJ, [
|
|
47208
|
+
K("div", HJ, [
|
|
47195
47209
|
J(P(I(r).display_name(e.name)), 1),
|
|
47196
47210
|
e.is_host ? (U(), G(d, {
|
|
47197
47211
|
key: 0,
|
|
@@ -47200,14 +47214,14 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47200
47214
|
})) : Y("", !0),
|
|
47201
47215
|
K("small", null, P(e.is_host ? `主持 · ${e.mode}` : e.mode), 1)
|
|
47202
47216
|
]),
|
|
47203
|
-
K("div",
|
|
47217
|
+
K("div", UJ, P(e.model), 1),
|
|
47204
47218
|
x.value ? Y("", !0) : (U(), W("div", {
|
|
47205
47219
|
key: 0,
|
|
47206
47220
|
class: M(["pb-member-status", `is-${e.tone}`])
|
|
47207
47221
|
}, [
|
|
47208
47222
|
l[15] ||= K("span", { class: "pb-dot" }, null, -1),
|
|
47209
47223
|
J(P(e.text), 1),
|
|
47210
|
-
e.failures ? (U(), W("small",
|
|
47224
|
+
e.failures ? (U(), W("small", WJ, " · 失败 " + P(e.failures) + " 次", 1)) : Y("", !0)
|
|
47211
47225
|
], 2))
|
|
47212
47226
|
]),
|
|
47213
47227
|
e.session ? (U(), G(A, {
|
|
@@ -47228,7 +47242,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47228
47242
|
}, 1032, ["items"])) : Y("", !0)
|
|
47229
47243
|
]))), 128))])
|
|
47230
47244
|
]),
|
|
47231
|
-
T.value ? (U(), W("section",
|
|
47245
|
+
T.value ? (U(), W("section", GJ, [
|
|
47232
47246
|
S.value ? (U(), G(O, {
|
|
47233
47247
|
key: 0,
|
|
47234
47248
|
icon: "i-lucide-rotate-ccw",
|
|
@@ -47277,8 +47291,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47277
47291
|
onClick: l[4] ||= (e) => o.value = !0
|
|
47278
47292
|
})) : Y("", !0)
|
|
47279
47293
|
])) : Y("", !0),
|
|
47280
|
-
_.value && k.value.count ? (U(), W("section",
|
|
47281
|
-
K("div",
|
|
47294
|
+
_.value && k.value.count ? (U(), W("section", KJ, [
|
|
47295
|
+
K("div", qJ, [l[17] ||= K("h4", null, "耗时", -1), K("small", null, "共 " + P(k.value.count) + " 次执行", 1)]),
|
|
47282
47296
|
K("div", {
|
|
47283
47297
|
class: "pb-timing-bar",
|
|
47284
47298
|
role: "img",
|
|
@@ -47287,18 +47301,18 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47287
47301
|
key: e.key,
|
|
47288
47302
|
class: M(`is-${e.key}`),
|
|
47289
47303
|
style: fe({ width: `${e.percent}%` })
|
|
47290
|
-
}, null, 6))), 128))], 8,
|
|
47291
|
-
K("dl",
|
|
47304
|
+
}, null, 6))), 128))], 8, JJ),
|
|
47305
|
+
K("dl", YJ, [(U(!0), W(H, null, B(le.value, (e) => (U(), W("div", {
|
|
47292
47306
|
key: e.key,
|
|
47293
47307
|
title: e.hint
|
|
47294
|
-
}, [K("dt", null, [K("span", { class: M(`pb-timing-dot is-${e.key}`) }, null, 2), J(P(e.label), 1)]), K("dd", null, [J(P(ue(e.seconds)), 1), K("small", null, P(e.percent) + "%", 1)])], 8,
|
|
47295
|
-
K("details",
|
|
47308
|
+
}, [K("dt", null, [K("span", { class: M(`pb-timing-dot is-${e.key}`) }, null, 2), J(P(e.label), 1)]), K("dd", null, [J(P(ue(e.seconds)), 1), K("small", null, P(e.percent) + "%", 1)])], 8, XJ))), 128))]),
|
|
47309
|
+
K("details", ZJ, [
|
|
47296
47310
|
l[18] ||= K("summary", null, "查看每次执行", -1),
|
|
47297
|
-
K("ol", null, [(U(!0), W(H, null, B(k.value.items, (e) => (U(), W("li", { key: e.id }, [K("span",
|
|
47311
|
+
K("ol", null, [(U(!0), W(H, null, B(k.value.items, (e) => (U(), W("li", { key: e.id }, [K("span", QJ, [J("#" + P(e.id) + " " + P(I(r).display_name(e.participant)), 1), K("small", null, P(e.role === "host" ? "主持" : "专家") + " · " + P(p[e.status] || e.status), 1)]), K("span", $J, [(U(), W(H, null, B(f, (t) => K("span", {
|
|
47298
47312
|
key: t.key,
|
|
47299
47313
|
title: t.hint
|
|
47300
|
-
}, P(t.label) + " " + P(ue(e[t.key])), 9,
|
|
47301
|
-
k.value.count > k.value.items.length ? (U(), W("p",
|
|
47314
|
+
}, P(t.label) + " " + P(ue(e[t.key])), 9, eY)), 64))])]))), 128))]),
|
|
47315
|
+
k.value.count > k.value.items.length ? (U(), W("p", tY, "只列出最近 " + P(k.value.items.length) + " 次,共 " + P(k.value.count) + " 次执行。", 1)) : Y("", !0)
|
|
47302
47316
|
])
|
|
47303
47317
|
])) : Y("", !0),
|
|
47304
47318
|
q(pe, {
|
|
@@ -47311,7 +47325,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47311
47325
|
body: "dialog-body"
|
|
47312
47326
|
}
|
|
47313
47327
|
}, {
|
|
47314
|
-
body: L(() => [K("div",
|
|
47328
|
+
body: L(() => [K("div", nY, [g.value.status === "running" ? (U(), W(H, { key: 0 }, [l[19] ||= K("p", null, "切换前需要暂停讨论,当前执行会停止,原发言安排保留。", -1), q(O, {
|
|
47315
47329
|
label: "暂停并读取配置",
|
|
47316
47330
|
icon: "i-lucide-pause",
|
|
47317
47331
|
class: "channel-primary-button",
|
|
@@ -47334,7 +47348,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47334
47348
|
}, null, 8, ["model-value", "disabled"])]),
|
|
47335
47349
|
_: 1
|
|
47336
47350
|
}),
|
|
47337
|
-
K("p",
|
|
47351
|
+
K("p", rY, P(re.value.adapter === "codex" ? "App 需保持运行,模型与权限沿用原聊天设置。" : "切回 CLI 前,需让 App 释放原聊天;仍被占用时无法执行。"), 1),
|
|
47338
47352
|
q(O, {
|
|
47339
47353
|
label: "保存接入方式",
|
|
47340
47354
|
class: "channel-primary-button",
|
|
@@ -47342,7 +47356,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47342
47356
|
disabled: !!I(a),
|
|
47343
47357
|
onClick: l[6] ||= (e) => I(i)("save_room_configuration")
|
|
47344
47358
|
}, null, 8, ["loading", "disabled"]),
|
|
47345
|
-
I(n).launch.repair?.notice ? (U(), W("p",
|
|
47359
|
+
I(n).launch.repair?.notice ? (U(), W("p", iY, P(I(n).launch.repair.notice), 1)) : Y("", !0)
|
|
47346
47360
|
], 64)) : (U(), G(O, {
|
|
47347
47361
|
key: 1,
|
|
47348
47362
|
label: "读取本场配置",
|
|
@@ -47350,7 +47364,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47350
47364
|
color: "neutral",
|
|
47351
47365
|
loading: !!I(a),
|
|
47352
47366
|
onClick: ce
|
|
47353
|
-
}, null, 8, ["loading"])), I(n).launch.repair_error ? (U(), W("p",
|
|
47367
|
+
}, null, 8, ["loading"])), I(n).launch.repair_error ? (U(), W("p", aY, P(I(n).launch.repair_error), 1)) : Y("", !0)], 64)) : (U(), W("p", oY, "本场状态已变化,请关闭后重新核对。"))])]),
|
|
47354
47368
|
_: 1
|
|
47355
47369
|
}, 8, ["open"]),
|
|
47356
47370
|
q(pe, {
|
|
@@ -47363,7 +47377,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47363
47377
|
body: "dialog-body"
|
|
47364
47378
|
}
|
|
47365
47379
|
}, {
|
|
47366
|
-
body: L(() => [K("div",
|
|
47380
|
+
body: L(() => [K("div", sY, [K("button", {
|
|
47367
47381
|
type: "button",
|
|
47368
47382
|
class: "progress-ending-option",
|
|
47369
47383
|
disabled: !E.value || !!I(a),
|
|
@@ -47371,19 +47385,19 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47371
47385
|
}, [
|
|
47372
47386
|
l[20] ||= K("strong", null, "请主持人收尾", -1),
|
|
47373
47387
|
K("span", null, "立即进入收束,由 " + P(I(r).display_name(m.value.host)) + " 在 " + P(h.value.summary_minutes || 5) + " 分钟收束预留内根据已有材料总结。", 1),
|
|
47374
|
-
E.value ? Y("", !0) : (U(), W("small",
|
|
47375
|
-
], 8,
|
|
47388
|
+
E.value ? Y("", !0) : (U(), W("small", lY, P(h.value.closing ? "已在收尾中。" : "仅进行中的讨论可以收尾;暂停后可先重启再收尾,或直接结束并保留记录。"), 1))
|
|
47389
|
+
], 8, cY), K("button", {
|
|
47376
47390
|
type: "button",
|
|
47377
47391
|
class: "progress-ending-option",
|
|
47378
47392
|
disabled: b.value || !!I(a),
|
|
47379
47393
|
onClick: l[9] ||= (e) => de("conclude_discussion")
|
|
47380
|
-
}, [...l[21] ||= [K("strong", null, "直接结束(不总结)", -1), K("span", null, "保留全部记录,阶段设为“已收束”,自动运行随之停止。", -1)]], 8,
|
|
47394
|
+
}, [...l[21] ||= [K("strong", null, "直接结束(不总结)", -1), K("span", null, "保留全部记录,阶段设为“已收束”,自动运行随之停止。", -1)]], 8, uY)])]),
|
|
47381
47395
|
_: 1
|
|
47382
47396
|
}, 8, ["open"])
|
|
47383
47397
|
], 2);
|
|
47384
47398
|
};
|
|
47385
47399
|
}
|
|
47386
|
-
}, [["__scopeId", "data-v-9928cf63"]]),
|
|
47400
|
+
}, [["__scopeId", "data-v-9928cf63"]]), mY = { class: "progress-panel-anchor" }, hY = ["aria-expanded", "aria-label"], gY = { class: "progress-chip-text" }, _Y = { class: "progress-chip-rounds" }, vY = {
|
|
47387
47401
|
__name: "ProgressPanel",
|
|
47388
47402
|
setup(e) {
|
|
47389
47403
|
let { view: t, bridge: n } = xr("discussion"), r = /* @__PURE__ */ F(!1), i = Z(() => t.value.room), a = Z(() => i.value.limits || {}), o = Z(() => {
|
|
@@ -47413,7 +47427,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47413
47427
|
}), s = Z(() => a.value.max_rounds ? `${a.value.completed_rounds || 0}/${a.value.max_rounds} 轮` : n.progress_round(i.value)), c = Z(() => `${o.value.title} · ${s.value}`);
|
|
47414
47428
|
return (e, t) => {
|
|
47415
47429
|
let n = VV, a = dV;
|
|
47416
|
-
return U(), W("div",
|
|
47430
|
+
return U(), W("div", mY, [q(n, { text: "查看讨论进度" }, {
|
|
47417
47431
|
default: L(() => [K("button", {
|
|
47418
47432
|
type: "button",
|
|
47419
47433
|
class: M(["progress-chip", `is-${o.value.tone}`]),
|
|
@@ -47421,7 +47435,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47421
47435
|
"aria-expanded": r.value,
|
|
47422
47436
|
"aria-label": `查看讨论进度:${c.value}`,
|
|
47423
47437
|
onClick: t[0] ||= (e) => r.value = !0
|
|
47424
|
-
}, [t[2] ||= K("span", { class: "progress-dot" }, null, -1), K("span",
|
|
47438
|
+
}, [t[2] ||= K("span", { class: "progress-dot" }, null, -1), K("span", gY, [J(P(o.value.title), 1), K("span", _Y, " · " + P(s.value), 1)])], 10, hY)]),
|
|
47425
47439
|
_: 1
|
|
47426
47440
|
}), q(a, {
|
|
47427
47441
|
open: r.value,
|
|
@@ -47434,98 +47448,98 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47434
47448
|
body: "progress-drawer-body"
|
|
47435
47449
|
}
|
|
47436
47450
|
}, {
|
|
47437
|
-
body: L(() => [q(
|
|
47451
|
+
body: L(() => [q(pY)]),
|
|
47438
47452
|
_: 1
|
|
47439
47453
|
}, 8, ["open", "description"])]);
|
|
47440
47454
|
};
|
|
47441
47455
|
}
|
|
47442
|
-
},
|
|
47456
|
+
}, yY = {
|
|
47443
47457
|
id: "channel-sidebar",
|
|
47444
47458
|
class: "channel-sidebar",
|
|
47445
47459
|
"aria-label": "频道导航"
|
|
47446
|
-
},
|
|
47460
|
+
}, bY = { class: "channel-workspace-heading" }, xY = { class: "channel-brand-icon" }, SY = { class: "channel-sidebar-content" }, CY = { class: "channel-directory-heading channel-tools-heading" }, wY = ["aria-expanded"], TY = { class: "channel-sidebar-footer" }, EY = { class: "channel-self" }, DY = { class: "channel-connection" }, OY = [
|
|
47447
47461
|
"aria-valuemax",
|
|
47448
47462
|
"aria-valuenow",
|
|
47449
47463
|
"aria-valuetext"
|
|
47450
|
-
],
|
|
47464
|
+
], kY = { class: "channel-main" }, AY = { class: "channel-header" }, jY = { class: "channel-title-icon" }, MY = { class: "channel-title" }, NY = { class: "channel-title-copy" }, PY = ["title"], FY = ["title"], IY = {
|
|
47451
47465
|
key: 0,
|
|
47452
47466
|
class: "channel-header-context"
|
|
47453
|
-
},
|
|
47467
|
+
}, LY = { class: "channel-header-actions" }, RY = {
|
|
47454
47468
|
key: 0,
|
|
47455
47469
|
class: "channel-launch-recovery",
|
|
47456
47470
|
"aria-label": "未完成的创建或启动请求"
|
|
47457
|
-
},
|
|
47471
|
+
}, zY = { role: "status" }, BY = { class: "button-row" }, VY = {
|
|
47458
47472
|
key: 1,
|
|
47459
47473
|
class: "channel-tabbar"
|
|
47460
|
-
},
|
|
47474
|
+
}, HY = { class: "channel-brief-inner" }, UY = { class: "channel-brief-heading" }, WY = ["aria-label", "aria-expanded"], GY = {
|
|
47461
47475
|
key: 0,
|
|
47462
47476
|
class: "channel-brief-preview"
|
|
47463
|
-
},
|
|
47477
|
+
}, KY = {
|
|
47464
47478
|
id: "channel-brief-content",
|
|
47465
47479
|
class: "channel-brief-content"
|
|
47466
|
-
},
|
|
47480
|
+
}, qY = ["innerHTML"], JY = { class: "channel-brief-footer" }, YY = { class: "channel-brief-status" }, XY = { class: "channel-content" }, ZY = {
|
|
47467
47481
|
key: 0,
|
|
47468
47482
|
class: "content-page channel-summary",
|
|
47469
47483
|
role: "tabpanel",
|
|
47470
47484
|
"aria-label": "共识"
|
|
47471
|
-
},
|
|
47485
|
+
}, QY = { class: "page-heading" }, $Y = {
|
|
47472
47486
|
key: 0,
|
|
47473
47487
|
class: "info-section"
|
|
47474
|
-
},
|
|
47488
|
+
}, eX = { class: "button-row" }, tX = { class: "form-footer" }, nX = {
|
|
47475
47489
|
key: 4,
|
|
47476
47490
|
class: "channel-empty"
|
|
47477
|
-
},
|
|
47491
|
+
}, rX = ["aria-valuenow", "aria-valuetext"], iX = {
|
|
47478
47492
|
key: 2,
|
|
47479
47493
|
id: "channel-member-rail",
|
|
47480
47494
|
class: "channel-member-rail",
|
|
47481
47495
|
"aria-label": "当前焦点与讨论进度"
|
|
47482
|
-
},
|
|
47496
|
+
}, aX = { class: "channel-rail-board" }, oX = {
|
|
47483
47497
|
key: 0,
|
|
47484
47498
|
class: "progress-board is-docked"
|
|
47485
|
-
},
|
|
47499
|
+
}, sX = { class: "pb-header" }, cX = { class: "pb-mode" }, lX = {
|
|
47486
47500
|
class: "pb-section",
|
|
47487
47501
|
"aria-label": "成员"
|
|
47488
|
-
},
|
|
47502
|
+
}, uX = { class: "pb-members" }, dX = { class: "pb-member-body" }, fX = { class: "pb-member-name" }, pX = {
|
|
47489
47503
|
key: 0,
|
|
47490
47504
|
class: "pb-member-model",
|
|
47491
47505
|
title: "它工作时请不要在原窗口继续操作"
|
|
47492
|
-
},
|
|
47506
|
+
}, mX = {
|
|
47493
47507
|
key: 0,
|
|
47494
47508
|
class: "pb-section",
|
|
47495
47509
|
"aria-label": "提示"
|
|
47496
|
-
},
|
|
47510
|
+
}, hX = {
|
|
47497
47511
|
key: 0,
|
|
47498
47512
|
role: "alert",
|
|
47499
47513
|
class: "pb-free-note is-error"
|
|
47500
|
-
},
|
|
47514
|
+
}, gX = {
|
|
47501
47515
|
key: 1,
|
|
47502
47516
|
role: "status",
|
|
47503
47517
|
class: "pb-free-note"
|
|
47504
|
-
},
|
|
47518
|
+
}, _X = {
|
|
47505
47519
|
key: 2,
|
|
47506
47520
|
role: "alert",
|
|
47507
47521
|
class: "pb-free-note is-error"
|
|
47508
|
-
},
|
|
47522
|
+
}, vX = {
|
|
47509
47523
|
key: 3,
|
|
47510
47524
|
role: "status",
|
|
47511
47525
|
class: "pb-free-note"
|
|
47512
|
-
},
|
|
47526
|
+
}, yX = {
|
|
47513
47527
|
class: "pb-section",
|
|
47514
47528
|
"aria-label": "邀请"
|
|
47515
|
-
},
|
|
47529
|
+
}, bX = {
|
|
47516
47530
|
key: 0,
|
|
47517
47531
|
class: "pb-free-note"
|
|
47518
|
-
},
|
|
47532
|
+
}, xX = {
|
|
47519
47533
|
key: 1,
|
|
47520
47534
|
class: "pb-section",
|
|
47521
47535
|
"aria-label": "头脑风暴"
|
|
47522
|
-
},
|
|
47536
|
+
}, SX = ["onClick"], CX = {
|
|
47523
47537
|
class: "pb-actions",
|
|
47524
47538
|
"aria-label": "操作"
|
|
47525
|
-
},
|
|
47539
|
+
}, wX = {
|
|
47526
47540
|
key: 2,
|
|
47527
47541
|
class: "progress-board is-docked"
|
|
47528
|
-
},
|
|
47542
|
+
}, TX = { class: "channel-detail-title" }, EX = { class: "info-section" }, DX = "ai-codiscuss-channel-layout", OX = 220, kX = 440, AX = 280, jX = 16, MX = 180, NX = 400, PX = 248, FX = 16, IX = 480, LX = 1200, RX = 6, zX = {
|
|
47529
47543
|
__name: "ChannelWorkspace",
|
|
47530
47544
|
setup(e) {
|
|
47531
47545
|
let { view: t, bridge: n, field: r, act: i, pending: a } = xr("discussion"), o = Z(() => t.value.room), s = /* @__PURE__ */ F(""), c = /* @__PURE__ */ F(null), l = /* @__PURE__ */ F(null), u = /* @__PURE__ */ F(null), d = /* @__PURE__ */ F(!1), f = /* @__PURE__ */ F(!0), p = /* @__PURE__ */ F(!1), m = r("state-input"), h = r("brief-input"), g = r("search-input"), _ = r("author-select"), v = {
|
|
@@ -47541,13 +47555,13 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47541
47555
|
label: "宽",
|
|
47542
47556
|
width: 1240
|
|
47543
47557
|
}
|
|
47544
|
-
}, y = Oe(), b = /* @__PURE__ */ F(y.reading), x = /* @__PURE__ */ F(y.rail), S = /* @__PURE__ */ F(y.nav), C = /* @__PURE__ */ F(typeof window > "u" ? 734 : window.innerWidth), w = /* @__PURE__ */ F(y.collapsed), T = /* @__PURE__ */ F(!0), E = /* @__PURE__ */ F(y.rail_collapsed), D = Z(() => C.value >=
|
|
47558
|
+
}, y = Oe(), b = /* @__PURE__ */ F(y.reading), x = /* @__PURE__ */ F(y.rail), S = /* @__PURE__ */ F(y.nav), C = /* @__PURE__ */ F(typeof window > "u" ? 734 : window.innerWidth), w = /* @__PURE__ */ F(y.collapsed), T = /* @__PURE__ */ F(!0), E = /* @__PURE__ */ F(y.rail_collapsed), D = Z(() => C.value >= LX), O = Z(() => t.value.tab === "discussion" && !E.value), ee = Z(() => D.value && t.value.tab === "discussion" ? E.value ? "展开频道概览" : "收起频道概览" : "频道资料与参与者"), te = Z(() => {
|
|
47545
47559
|
let e = document.createElement("template");
|
|
47546
47560
|
return e.innerHTML = o.value?.rendered_brief || "", e.content.textContent.replace(/\s+/g, " ").trim();
|
|
47547
|
-
}), k = /* @__PURE__ */ F(null), ne = /* @__PURE__ */ F(null), re = Z(() => Math.min(
|
|
47561
|
+
}), k = /* @__PURE__ */ F(null), ne = /* @__PURE__ */ F(null), re = Z(() => Math.min(NX, Math.max(MX, C.value - IX - RX))), ie = Z(() => Math.min(S.value, re.value)), ae = Z(() => ({
|
|
47548
47562
|
"--channel-reading-width": `${v[b.value].width}px`,
|
|
47549
47563
|
"--channel-rail-width": `${x.value}px`,
|
|
47550
|
-
"--channel-main-columns": w.value ? "minmax(0, 1fr)" : `${ie.value}px ${
|
|
47564
|
+
"--channel-main-columns": w.value ? "minmax(0, 1fr)" : `${ie.value}px ${RX}px minmax(0, 1fr)`
|
|
47551
47565
|
})), A = Object.entries(v).map(([e, t]) => ({
|
|
47552
47566
|
value: e,
|
|
47553
47567
|
label: t.label
|
|
@@ -47681,11 +47695,11 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47681
47695
|
}
|
|
47682
47696
|
function Oe() {
|
|
47683
47697
|
try {
|
|
47684
|
-
let e = JSON.parse(localStorage.getItem(
|
|
47698
|
+
let e = JSON.parse(localStorage.getItem(DX)) || {};
|
|
47685
47699
|
return {
|
|
47686
47700
|
reading: Object.hasOwn(v, e.reading) ? e.reading : "default",
|
|
47687
|
-
rail: Number.isFinite(e.rail) ? Math.min(
|
|
47688
|
-
nav: Number.isFinite(e.nav) ? Math.min(
|
|
47701
|
+
rail: Number.isFinite(e.rail) ? Math.min(kX, Math.max(OX, e.rail)) : AX,
|
|
47702
|
+
nav: Number.isFinite(e.nav) ? Math.min(NX, Math.max(MX, e.nav)) : ke(),
|
|
47689
47703
|
collapsed: e.collapsed === !0,
|
|
47690
47704
|
brief_collapsed: e.brief_collapsed === !0,
|
|
47691
47705
|
rail_collapsed: e.rail_collapsed === !0
|
|
@@ -47693,7 +47707,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47693
47707
|
} catch {
|
|
47694
47708
|
return {
|
|
47695
47709
|
reading: "default",
|
|
47696
|
-
rail:
|
|
47710
|
+
rail: AX,
|
|
47697
47711
|
nav: ke(),
|
|
47698
47712
|
collapsed: !1,
|
|
47699
47713
|
brief_collapsed: !1,
|
|
@@ -47702,11 +47716,11 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47702
47716
|
}
|
|
47703
47717
|
}
|
|
47704
47718
|
function ke() {
|
|
47705
|
-
return typeof window > "u" ?
|
|
47719
|
+
return typeof window > "u" ? PX : window.innerWidth >= 1900 ? 280 : window.innerWidth <= 980 ? 220 : PX;
|
|
47706
47720
|
}
|
|
47707
47721
|
function Ae() {
|
|
47708
47722
|
try {
|
|
47709
|
-
localStorage.setItem(
|
|
47723
|
+
localStorage.setItem(DX, JSON.stringify({
|
|
47710
47724
|
reading: b.value,
|
|
47711
47725
|
rail: x.value,
|
|
47712
47726
|
nav: S.value,
|
|
@@ -47736,19 +47750,19 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47736
47750
|
}, e.currentTarget.setPointerCapture(e.pointerId));
|
|
47737
47751
|
}
|
|
47738
47752
|
function Ie(e) {
|
|
47739
|
-
k.value?.pointer === e.pointerId && (x.value = Math.round(Math.min(
|
|
47753
|
+
k.value?.pointer === e.pointerId && (x.value = Math.round(Math.min(kX, Math.max(OX, k.value.width + k.value.x - e.clientX))));
|
|
47740
47754
|
}
|
|
47741
47755
|
function Le(e) {
|
|
47742
47756
|
k.value?.pointer === e.pointerId && (k.value = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), Ae());
|
|
47743
47757
|
}
|
|
47744
47758
|
function Re(e) {
|
|
47745
47759
|
let t = {
|
|
47746
|
-
ArrowLeft: x.value +
|
|
47747
|
-
ArrowRight: x.value -
|
|
47748
|
-
Home:
|
|
47749
|
-
End:
|
|
47760
|
+
ArrowLeft: x.value + jX,
|
|
47761
|
+
ArrowRight: x.value - jX,
|
|
47762
|
+
Home: OX,
|
|
47763
|
+
End: kX
|
|
47750
47764
|
};
|
|
47751
|
-
Object.hasOwn(t, e.key) && (e.preventDefault(), x.value = Math.min(
|
|
47765
|
+
Object.hasOwn(t, e.key) && (e.preventDefault(), x.value = Math.min(kX, Math.max(OX, t[e.key])), Ae());
|
|
47752
47766
|
}
|
|
47753
47767
|
function ze(e) {
|
|
47754
47768
|
e.button === 0 && (e.preventDefault(), e.currentTarget.focus(), ne.value = {
|
|
@@ -47758,19 +47772,19 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47758
47772
|
}, e.currentTarget.setPointerCapture(e.pointerId));
|
|
47759
47773
|
}
|
|
47760
47774
|
function Be(e) {
|
|
47761
|
-
ne.value?.pointer === e.pointerId && (S.value = Math.round(Math.min(re.value, Math.max(
|
|
47775
|
+
ne.value?.pointer === e.pointerId && (S.value = Math.round(Math.min(re.value, Math.max(MX, ne.value.width + e.clientX - ne.value.x))));
|
|
47762
47776
|
}
|
|
47763
47777
|
function Ve(e) {
|
|
47764
47778
|
ne.value?.pointer === e.pointerId && (ne.value = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), Ae());
|
|
47765
47779
|
}
|
|
47766
47780
|
function He(e) {
|
|
47767
47781
|
let t = {
|
|
47768
|
-
ArrowLeft: ie.value -
|
|
47769
|
-
ArrowRight: ie.value +
|
|
47770
|
-
Home:
|
|
47782
|
+
ArrowLeft: ie.value - FX,
|
|
47783
|
+
ArrowRight: ie.value + FX,
|
|
47784
|
+
Home: MX,
|
|
47771
47785
|
End: re.value
|
|
47772
47786
|
};
|
|
47773
|
-
Object.hasOwn(t, e.key) && (e.preventDefault(), S.value = Math.min(re.value, Math.max(
|
|
47787
|
+
Object.hasOwn(t, e.key) && (e.preventDefault(), S.value = Math.min(re.value, Math.max(MX, t[e.key])), Ae());
|
|
47774
47788
|
}
|
|
47775
47789
|
return (e, r) => {
|
|
47776
47790
|
let v = zk, y = GV, S = Gk, C = uA, E = VV, se = LV, me = xV, Oe = zV, ke = FV, Ae = MV, Me = EV, Pe = pV, Ue = dV, We = cV;
|
|
@@ -47782,14 +47796,14 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47782
47796
|
}]),
|
|
47783
47797
|
style: fe(ae.value)
|
|
47784
47798
|
}, [
|
|
47785
|
-
K("aside",
|
|
47786
|
-
K("header",
|
|
47787
|
-
K("span",
|
|
47799
|
+
K("aside", yY, [
|
|
47800
|
+
K("header", bY, [
|
|
47801
|
+
K("span", xY, [q(v, { name: "i-lucide-messages-square" })]),
|
|
47788
47802
|
r[26] ||= K("strong", null, "共议", -1),
|
|
47789
47803
|
r[27] ||= K("span", null, "AI CoDiscuss", -1)
|
|
47790
47804
|
]),
|
|
47791
|
-
K("div",
|
|
47792
|
-
q(
|
|
47805
|
+
K("div", SY, [
|
|
47806
|
+
q(TJ, {
|
|
47793
47807
|
onSelect: Se,
|
|
47794
47808
|
onManage: be,
|
|
47795
47809
|
onCreate: we,
|
|
@@ -47798,12 +47812,12 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47798
47812
|
onDeleteFolder: De,
|
|
47799
47813
|
onArchives: xe
|
|
47800
47814
|
}),
|
|
47801
|
-
K("div",
|
|
47815
|
+
K("div", CY, [K("button", {
|
|
47802
47816
|
type: "button",
|
|
47803
47817
|
class: "channel-section-toggle",
|
|
47804
47818
|
"aria-expanded": f.value,
|
|
47805
47819
|
onClick: r[0] ||= (e) => f.value = !f.value
|
|
47806
|
-
}, [q(v, { name: f.value ? "i-lucide-chevron-down" : "i-lucide-chevron-right" }, null, 8, ["name"]), r[28] ||= J("频道工具", -1)], 8,
|
|
47820
|
+
}, [q(v, { name: f.value ? "i-lucide-chevron-down" : "i-lucide-chevron-right" }, null, 8, ["name"]), r[28] ||= J("频道工具", -1)], 8, wY)]),
|
|
47807
47821
|
f.value ? (U(), G(y, {
|
|
47808
47822
|
key: 0,
|
|
47809
47823
|
items: ve.value,
|
|
@@ -47819,7 +47833,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47819
47833
|
}
|
|
47820
47834
|
}, null, 8, ["items"])) : Y("", !0)
|
|
47821
47835
|
]),
|
|
47822
|
-
K("footer",
|
|
47836
|
+
K("footer", TY, [
|
|
47823
47837
|
q(S, {
|
|
47824
47838
|
src: I(n).identities[I(_)]?.icon,
|
|
47825
47839
|
text: I(n).identities[I(_)]?.initials,
|
|
@@ -47832,7 +47846,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47832
47846
|
"alt",
|
|
47833
47847
|
"class"
|
|
47834
47848
|
]),
|
|
47835
|
-
K("div",
|
|
47849
|
+
K("div", EY, [K("strong", null, P(I(n).display_name(I(_))), 1), K("div", DY, [K("span", { class: M({ connected: I(t).connected }) }, null, 2), J(P(I(t).connected ? "网站已连接" : "网站未连接"), 1)])]),
|
|
47836
47850
|
q(E, { text: "外观设置" }, {
|
|
47837
47851
|
default: L(() => [q(C, {
|
|
47838
47852
|
icon: "i-lucide-settings-2",
|
|
@@ -47855,7 +47869,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47855
47869
|
"aria-label": "调整频道栏宽度",
|
|
47856
47870
|
"aria-orientation": "vertical",
|
|
47857
47871
|
"aria-controls": "channel-sidebar",
|
|
47858
|
-
"aria-valuemin":
|
|
47872
|
+
"aria-valuemin": MX,
|
|
47859
47873
|
"aria-valuemax": re.value,
|
|
47860
47874
|
"aria-valuenow": ie.value,
|
|
47861
47875
|
"aria-valuetext": `${ie.value} 像素`,
|
|
@@ -47866,9 +47880,9 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47866
47880
|
onPointercancel: Ve,
|
|
47867
47881
|
onLostpointercapture: Ve,
|
|
47868
47882
|
onKeydown: He
|
|
47869
|
-
}, null, 40,
|
|
47870
|
-
K("main",
|
|
47871
|
-
K("header",
|
|
47883
|
+
}, null, 40, OY)),
|
|
47884
|
+
K("main", kY, [
|
|
47885
|
+
K("header", AY, [
|
|
47872
47886
|
q(E, { text: w.value ? "展开频道栏" : "收起频道栏" }, {
|
|
47873
47887
|
default: L(() => [q(C, {
|
|
47874
47888
|
icon: "i-lucide-panel-left",
|
|
@@ -47893,13 +47907,13 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47893
47907
|
"aria-expanded": d.value,
|
|
47894
47908
|
onClick: r[3] ||= (e) => d.value = !0
|
|
47895
47909
|
}, null, 8, ["aria-expanded"]),
|
|
47896
|
-
K("span",
|
|
47897
|
-
K("div",
|
|
47910
|
+
K("span", jY, [q(v, { name: "i-lucide-hash" })]),
|
|
47911
|
+
K("div", MY, [K("div", NY, [K("h1", { title: o.value?.title }, P(o.value?.title || "共议"), 9, PY), o.value?.floor && !ce.value ? (U(), W("div", {
|
|
47898
47912
|
key: 0,
|
|
47899
47913
|
class: M(["channel-floor-status", { "is-held": o.value.floor.holder }]),
|
|
47900
47914
|
role: "status",
|
|
47901
47915
|
title: `发言权:${I(n).floor_status(o.value)}`
|
|
47902
|
-
}, [q(v, { name: "i-lucide-mic" }), K("span", null, "发言权:" + P(I(n).floor_status(o.value)), 1)], 10,
|
|
47916
|
+
}, [q(v, { name: "i-lucide-mic" }), K("span", null, "发言权:" + P(I(n).floor_status(o.value)), 1)], 10, FY)) : Y("", !0)]), o.value?.archived ? (U(), G(se, {
|
|
47903
47917
|
key: 0,
|
|
47904
47918
|
color: "neutral",
|
|
47905
47919
|
variant: "subtle",
|
|
@@ -47908,12 +47922,12 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47908
47922
|
default: L(() => [...r[29] ||= [J("已存档", -1)]]),
|
|
47909
47923
|
_: 1
|
|
47910
47924
|
})) : Y("", !0)]),
|
|
47911
|
-
o.value ? (U(), W("span",
|
|
47925
|
+
o.value ? (U(), W("span", IY, [
|
|
47912
47926
|
J(P(le.value.find((e) => e.value === I(t).tab)?.label), 1),
|
|
47913
47927
|
r[30] ||= K("span", null, "·", -1),
|
|
47914
47928
|
J(P(o.value.message_count) + " 条记录", 1)
|
|
47915
47929
|
])) : Y("", !0),
|
|
47916
|
-
K("div",
|
|
47930
|
+
K("div", LY, [
|
|
47917
47931
|
I(t).tab === "discussion" ? (U(), W("form", {
|
|
47918
47932
|
key: 0,
|
|
47919
47933
|
class: "channel-search",
|
|
@@ -47971,7 +47985,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47971
47985
|
])]),
|
|
47972
47986
|
_: 1
|
|
47973
47987
|
})) : Y("", !0),
|
|
47974
|
-
o.value && !(O.value && D.value) ? (U(), G(
|
|
47988
|
+
o.value && !(O.value && D.value) ? (U(), G(vY, { key: 2 })) : Y("", !0)
|
|
47975
47989
|
]),
|
|
47976
47990
|
q(E, { text: ee.value }, {
|
|
47977
47991
|
default: L(() => [q(C, {
|
|
@@ -47992,12 +48006,12 @@ var YG = /*#__PURE__*/ nH({
|
|
|
47992
48006
|
_: 1
|
|
47993
48007
|
}, 8, ["text"])
|
|
47994
48008
|
]),
|
|
47995
|
-
I(t).launch.recoveries.length ? (U(), W("section",
|
|
48009
|
+
I(t).launch.recoveries.length ? (U(), W("section", RY, [
|
|
47996
48010
|
r[31] ||= K("h2", null, "继续未完成的请求", -1),
|
|
47997
48011
|
(U(!0), W(H, null, B(I(t).launch.recoveries, (e) => (U(), W("article", { key: e.id }, [
|
|
47998
48012
|
K("strong", null, P(e.title), 1),
|
|
47999
|
-
K("p",
|
|
48000
|
-
K("div",
|
|
48013
|
+
K("p", zY, P(e.error || "启动结果尚未确认;原请求已保存在此浏览器中。"), 1),
|
|
48014
|
+
K("div", BY, [
|
|
48001
48015
|
q(C, {
|
|
48002
48016
|
label: e.direct ? "继续创建房间" : "继续本次启动",
|
|
48003
48017
|
size: "sm",
|
|
@@ -48030,7 +48044,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48030
48044
|
]))), 128)),
|
|
48031
48045
|
r[32] ||= K("small", null, "移除待办不会删除房间或停止讨论。", -1)
|
|
48032
48046
|
])) : Y("", !0),
|
|
48033
|
-
o.value ? (U(), W("div",
|
|
48047
|
+
o.value ? (U(), W("div", VY, [q(Oe, {
|
|
48034
48048
|
modelValue: oe.value,
|
|
48035
48049
|
"onUpdate:modelValue": r[8] ||= (e) => oe.value = e,
|
|
48036
48050
|
items: le.value,
|
|
@@ -48045,7 +48059,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48045
48059
|
key: 2,
|
|
48046
48060
|
class: M(["channel-host-brief", { "is-collapsed": T.value }]),
|
|
48047
48061
|
"aria-label": "主持简报"
|
|
48048
|
-
}, [K("div",
|
|
48062
|
+
}, [K("div", HY, [K("div", UY, [K("button", {
|
|
48049
48063
|
type: "button",
|
|
48050
48064
|
class: "channel-brief-toggle",
|
|
48051
48065
|
"aria-label": T.value ? "展开主持简报" : "收起主持简报",
|
|
@@ -48055,8 +48069,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48055
48069
|
}, [
|
|
48056
48070
|
q(v, { name: T.value ? "i-lucide-chevron-right" : "i-lucide-chevron-down" }, null, 8, ["name"]),
|
|
48057
48071
|
K("strong", null, "主持简报" + P(T.value ? ":" : ""), 1),
|
|
48058
|
-
T.value ? (U(), W("span",
|
|
48059
|
-
], 8,
|
|
48072
|
+
T.value ? (U(), W("span", GY, P(te.value), 1)) : Y("", !0)
|
|
48073
|
+
], 8, WY), T.value ? Y("", !0) : (U(), G(C, {
|
|
48060
48074
|
key: 0,
|
|
48061
48075
|
label: "更新简报",
|
|
48062
48076
|
color: "neutral",
|
|
@@ -48064,30 +48078,30 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48064
48078
|
size: "xs",
|
|
48065
48079
|
class: "channel-brief-update",
|
|
48066
48080
|
onClick: r[9] ||= (e) => I(i)("tab", "context")
|
|
48067
|
-
}))]), vr(K("div",
|
|
48081
|
+
}))]), vr(K("div", KY, [K("div", {
|
|
48068
48082
|
class: "channel-brief-text markdown-body",
|
|
48069
48083
|
innerHTML: o.value.rendered_brief
|
|
48070
|
-
}, null, 8,
|
|
48084
|
+
}, null, 8, qY), K("div", JY, [K("span", YY, P(I(n).progress_speaker(o.value)), 1), K("small", null, P(I(n).brief_meta(o.value)), 1)])], 512), [[Vc, !T.value]])])], 2)) : Y("", !0),
|
|
48071
48085
|
o.value ? (U(), W("div", {
|
|
48072
48086
|
key: 3,
|
|
48073
48087
|
class: M(["channel-body", { "channel-body-discussion": I(t).tab === "discussion" }])
|
|
48074
|
-
}, [K("div",
|
|
48088
|
+
}, [K("div", XY, [
|
|
48075
48089
|
vr(q(aW, {
|
|
48076
48090
|
onDetail: Ce,
|
|
48077
48091
|
onEdit: r[10] ||= (e) => s.value = "edit"
|
|
48078
48092
|
}, null, 512), [[Vc, I(t).tab === "discussion"]]),
|
|
48079
|
-
I(t).tab === "context" ? (U(), W("section",
|
|
48080
|
-
K("div",
|
|
48093
|
+
I(t).tab === "context" ? (U(), W("section", ZY, [
|
|
48094
|
+
K("div", QY, [r[33] ||= K("div", null, [K("h2", null, "共识与分歧"), K("p", null, "整理讨论进展,用 #消息编号 保留依据。")], -1), q(se, {
|
|
48081
48095
|
color: "neutral",
|
|
48082
48096
|
variant: "outline"
|
|
48083
48097
|
}, {
|
|
48084
48098
|
default: L(() => [J("截止 #" + P(o.value.state_until), 1)]),
|
|
48085
48099
|
_: 1
|
|
48086
48100
|
})]),
|
|
48087
|
-
Array.isArray(o.value.latest_receipts) && o.value.latest_receipts.length ? (U(), W("section",
|
|
48101
|
+
Array.isArray(o.value.latest_receipts) && o.value.latest_receipts.length ? (U(), W("section", $Y, [
|
|
48088
48102
|
r[34] ||= K("h3", null, "最新运行回执", -1),
|
|
48089
48103
|
r[35] ||= K("p", { class: "fine-print" }, "以下回执独立于摘要更新;晚于摘要的回执可能尚未整理,实际运行结果请查看原文。", -1),
|
|
48090
|
-
K("div",
|
|
48104
|
+
K("div", eX, [(U(!0), W(H, null, B(o.value.latest_receipts, (e) => (U(), G(C, {
|
|
48091
48105
|
key: e.id,
|
|
48092
48106
|
label: `${I(n).display_name(e.author)} #${e.id} · ${new Date(e.created_at).toLocaleString("zh-CN")}${e.id > o.value.state_until ? " · 晚于摘要" : ""}`,
|
|
48093
48107
|
variant: "link",
|
|
@@ -48130,7 +48144,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48130
48144
|
}, null, 8, ["modelValue"])]),
|
|
48131
48145
|
_: 1
|
|
48132
48146
|
}),
|
|
48133
|
-
K("div",
|
|
48147
|
+
K("div", tX, [K("span", null, "依据消息截止 #" + P(I(t).snapshot_id), 1), q(C, {
|
|
48134
48148
|
type: "submit",
|
|
48135
48149
|
color: "neutral",
|
|
48136
48150
|
icon: "i-lucide-check",
|
|
@@ -48145,7 +48159,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48145
48159
|
onOpen: r[14] ||= (e) => s.value = e,
|
|
48146
48160
|
onDetail: Ce
|
|
48147
48161
|
})) : Y("", !0)
|
|
48148
|
-
])], 2)) : (U(), W("div",
|
|
48162
|
+
])], 2)) : (U(), W("div", nX, [
|
|
48149
48163
|
q(v, { name: "i-lucide-hash" }),
|
|
48150
48164
|
r[36] ||= K("h2", null, "新建一个讨论频道", -1),
|
|
48151
48165
|
r[37] ||= K("p", null, "每个频道围绕一个议题,保留所有人的观点。", -1),
|
|
@@ -48165,8 +48179,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48165
48179
|
"aria-label": "调整右侧栏宽度",
|
|
48166
48180
|
"aria-orientation": "vertical",
|
|
48167
48181
|
"aria-controls": "channel-member-rail",
|
|
48168
|
-
"aria-valuemin":
|
|
48169
|
-
"aria-valuemax":
|
|
48182
|
+
"aria-valuemin": OX,
|
|
48183
|
+
"aria-valuemax": kX,
|
|
48170
48184
|
"aria-valuenow": x.value,
|
|
48171
48185
|
"aria-valuetext": `${x.value} 像素`,
|
|
48172
48186
|
title: "拖动调整右侧栏宽度,也可使用左右方向键",
|
|
@@ -48176,10 +48190,10 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48176
48190
|
onPointercancel: Le,
|
|
48177
48191
|
onLostpointercapture: Le,
|
|
48178
48192
|
onKeydown: Re
|
|
48179
|
-
}, null, 40,
|
|
48180
|
-
O.value ? (U(), W("aside",
|
|
48181
|
-
K("header",
|
|
48182
|
-
K("section",
|
|
48193
|
+
}, null, 40, rX)) : Y("", !0),
|
|
48194
|
+
O.value ? (U(), W("aside", iX, [K("section", aX, [o.value && ce.value ? (U(), W("div", oX, [
|
|
48195
|
+
K("header", sX, [r[38] ||= K("strong", null, "自由协作", -1), K("span", cX, P(he.value ? `${I(n).display_name(he.value.name)} 协助主持` : "你来主持"), 1)]),
|
|
48196
|
+
K("section", lX, [r[40] ||= K("h4", null, "成员", -1), K("ul", uX, [(U(!0), W(H, null, B(o.value.free?.members || [], (e) => (U(), W("li", {
|
|
48183
48197
|
key: e.id,
|
|
48184
48198
|
class: "pb-member"
|
|
48185
48199
|
}, [
|
|
@@ -48195,8 +48209,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48195
48209
|
"alt",
|
|
48196
48210
|
"class"
|
|
48197
48211
|
]),
|
|
48198
|
-
K("div",
|
|
48199
|
-
K("div",
|
|
48212
|
+
K("div", dX, [
|
|
48213
|
+
K("div", fX, [
|
|
48200
48214
|
J(P(I(n).display_name(e.name)), 1),
|
|
48201
48215
|
e.role === "host" ? (U(), G(v, {
|
|
48202
48216
|
key: 0,
|
|
@@ -48209,7 +48223,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48209
48223
|
}[e.access] || "本机自动"), 1)
|
|
48210
48224
|
]),
|
|
48211
48225
|
K("div", { class: M(["pb-member-status", `is-${ge(e)}`]) }, [r[39] ||= K("span", { class: "pb-dot" }, null, -1), J(P(_e(e)), 1)], 2),
|
|
48212
|
-
e.session_mode === "borrowed" ? (U(), W("p",
|
|
48226
|
+
e.session_mode === "borrowed" ? (U(), W("p", pX, "借用你正在使用的会话")) : Y("", !0)
|
|
48213
48227
|
]),
|
|
48214
48228
|
q(Me, {
|
|
48215
48229
|
items: N(e),
|
|
@@ -48227,7 +48241,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48227
48241
|
_: 2
|
|
48228
48242
|
}, 1032, ["items"])
|
|
48229
48243
|
]))), 128))])]),
|
|
48230
|
-
o.value.free?.conflicts?.length || o.value.free?.halted_chains?.length || I(t).free_error || I(t).free_notice || I(t).access?.error || I(t).access?.notice ? (U(), W("section",
|
|
48244
|
+
o.value.free?.conflicts?.length || o.value.free?.halted_chains?.length || I(t).free_error || I(t).free_notice || I(t).access?.error || I(t).access?.notice ? (U(), W("section", mX, [
|
|
48231
48245
|
r[41] ||= K("h4", null, "提示", -1),
|
|
48232
48246
|
(U(!0), W(H, null, B(o.value.free?.conflicts || [], (e) => (U(), W("p", {
|
|
48233
48247
|
key: e.executions.join("-"),
|
|
@@ -48237,10 +48251,10 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48237
48251
|
key: e.chain_id,
|
|
48238
48252
|
class: "pb-free-note"
|
|
48239
48253
|
}, "#" + P(e.chain_id) + " 的任务链已停:" + P(e.reason === "budget" ? `达到 ${o.value.free.max_auto_hops} 次上限` : "派出的成员都失败了") + ";发新消息即重新开始", 1))), 128)),
|
|
48240
|
-
I(t).free_error ? (U(), W("p",
|
|
48241
|
-
I(t).access?.error ? (U(), W("p",
|
|
48254
|
+
I(t).free_error ? (U(), W("p", hX, P(I(t).free_error), 1)) : I(t).free_notice ? (U(), W("p", gX, P(I(t).free_notice), 1)) : Y("", !0),
|
|
48255
|
+
I(t).access?.error ? (U(), W("p", _X, P(I(t).access.error), 1)) : I(t).access?.notice ? (U(), W("p", vX, P(I(t).access.notice), 1)) : Y("", !0)
|
|
48242
48256
|
])) : Y("", !0),
|
|
48243
|
-
K("section",
|
|
48257
|
+
K("section", yX, [
|
|
48244
48258
|
r[42] ||= K("h4", null, "邀请 AI", -1),
|
|
48245
48259
|
K("form", {
|
|
48246
48260
|
class: "pb-free-invite",
|
|
@@ -48275,15 +48289,15 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48275
48289
|
size: "sm",
|
|
48276
48290
|
class: "w-26"
|
|
48277
48291
|
}, null, 8, ["modelValue"])], 32),
|
|
48278
|
-
de.value === "runner" && !I(t).launch.available ? (U(), W("p",
|
|
48292
|
+
de.value === "runner" && !I(t).launch.available ? (U(), W("p", bX, "程序唤醒需要本机服务,请在运行 AI 的电脑打开本机网站。")) : Y("", !0)
|
|
48279
48293
|
]),
|
|
48280
|
-
o.value.linked_rooms?.length ? (U(), W("section",
|
|
48294
|
+
o.value.linked_rooms?.length ? (U(), W("section", xX, [r[43] ||= K("h4", null, "头脑风暴", -1), (U(!0), W(H, null, B(o.value.linked_rooms, (e) => (U(), W("button", {
|
|
48281
48295
|
key: e.id,
|
|
48282
48296
|
type: "button",
|
|
48283
48297
|
class: "pb-link pb-free-linked",
|
|
48284
48298
|
onClick: (t) => I(i)("room", e.id)
|
|
48285
|
-
}, [J(P(e.title), 1), K("small", null, P(I(n).phases[e.phase] || e.phase), 1)], 8,
|
|
48286
|
-
K("section",
|
|
48299
|
+
}, [J(P(e.title), 1), K("small", null, P(I(n).phases[e.phase] || e.phase), 1)], 8, SX))), 128))])) : Y("", !0),
|
|
48300
|
+
K("section", CX, [q(C, {
|
|
48287
48301
|
icon: "i-lucide-user-plus",
|
|
48288
48302
|
label: "邀请",
|
|
48289
48303
|
size: "sm",
|
|
@@ -48305,10 +48319,10 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48305
48319
|
title: "用当前成员新建一场讨论房间,收束后可把结论发回这里",
|
|
48306
48320
|
onClick: j
|
|
48307
48321
|
})])
|
|
48308
|
-
])) : o.value ? (U(), G(
|
|
48322
|
+
])) : o.value ? (U(), G(pY, {
|
|
48309
48323
|
key: 1,
|
|
48310
48324
|
docked: ""
|
|
48311
|
-
})) : (U(), W("div",
|
|
48325
|
+
})) : (U(), W("div", wX, [...r[44] ||= [K("header", { class: "pb-header" }, [K("strong", null, "讨论进度")], -1), K("p", { class: "channel-rail-empty" }, "暂无频道,新建讨论后在这里查看进度与参与者。", -1)]]))])])) : Y("", !0),
|
|
48312
48326
|
q(Ue, {
|
|
48313
48327
|
open: d.value,
|
|
48314
48328
|
"onUpdate:open": r[21] ||= (e) => d.value = e,
|
|
@@ -48320,7 +48334,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48320
48334
|
body: "channel-drawer-body"
|
|
48321
48335
|
}
|
|
48322
48336
|
}, {
|
|
48323
|
-
body: L(() => [q(
|
|
48337
|
+
body: L(() => [q(TJ, {
|
|
48324
48338
|
onSelect: Se,
|
|
48325
48339
|
onManage: be,
|
|
48326
48340
|
onCreate: we,
|
|
@@ -48351,7 +48365,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48351
48365
|
}
|
|
48352
48366
|
}, {
|
|
48353
48367
|
body: L(() => [o.value ? (U(), W(H, { key: 0 }, [
|
|
48354
|
-
K("div",
|
|
48368
|
+
K("div", TX, [q(v, { name: "i-lucide-hash" }), K("h2", null, P(o.value.title), 1)]),
|
|
48355
48369
|
(U(), W(H, null, B([
|
|
48356
48370
|
{
|
|
48357
48371
|
key: "goal",
|
|
@@ -48378,7 +48392,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48378
48392
|
class: "info-section"
|
|
48379
48393
|
}, [K("h3", null, P(e.label), 1), K("p", null, P(o.value[e.key] || "尚未填写"), 1)])), 64)),
|
|
48380
48394
|
q(We),
|
|
48381
|
-
K("section",
|
|
48395
|
+
K("section", EX, [r[45] ||= K("h3", null, "参与身份", -1), (U(!0), W(H, null, B(ye.value, (e) => (U(), W("div", {
|
|
48382
48396
|
key: e.name,
|
|
48383
48397
|
class: "expert-row"
|
|
48384
48398
|
}, [
|
|
@@ -48411,7 +48425,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48411
48425
|
], 64)) : Y("", !0)]),
|
|
48412
48426
|
_: 1
|
|
48413
48427
|
}, 8, ["open"]),
|
|
48414
|
-
q(
|
|
48428
|
+
q(nJ, {
|
|
48415
48429
|
modelValue: s.value,
|
|
48416
48430
|
"onUpdate:modelValue": r[24] ||= (e) => s.value = e,
|
|
48417
48431
|
"reading-width": b.value,
|
|
@@ -48431,7 +48445,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48431
48445
|
], 6);
|
|
48432
48446
|
};
|
|
48433
48447
|
}
|
|
48434
|
-
},
|
|
48448
|
+
}, BX = {
|
|
48435
48449
|
__name: "App",
|
|
48436
48450
|
setup(e) {
|
|
48437
48451
|
return br("discussion", oV()), (e, t) => {
|
|
@@ -48442,7 +48456,7 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48442
48456
|
toaster: null
|
|
48443
48457
|
}, {
|
|
48444
48458
|
default: L(() => [q(I(Az), { "reduced-motion": "user" }, {
|
|
48445
|
-
default: L(() => [q(
|
|
48459
|
+
default: L(() => [q(zX)]),
|
|
48446
48460
|
_: 1
|
|
48447
48461
|
})]),
|
|
48448
48462
|
_: 1
|
|
@@ -48452,8 +48466,8 @@ var YG = /*#__PURE__*/ nH({
|
|
|
48452
48466
|
};
|
|
48453
48467
|
//#endregion
|
|
48454
48468
|
//#region frontend/main.js
|
|
48455
|
-
function
|
|
48456
|
-
bu(
|
|
48469
|
+
function VX() {
|
|
48470
|
+
bu(BX).use(fh).mount("#modern-root");
|
|
48457
48471
|
}
|
|
48458
|
-
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded",
|
|
48472
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", VX) : VX();
|
|
48459
48473
|
//#endregion
|