ai_co_discuss 0.2.24 → 0.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web/modern.js CHANGED
@@ -41721,9 +41721,9 @@ var _H = {
41721
41721
  } : e.background?.trim() ? {
41722
41722
  label: "背景",
41723
41723
  text: e.background
41724
- } : null, n = Object.entries(e.experts || {}).map(([e, t]) => ({
41725
- name: e,
41726
- mode: t === "cli" ? "CLI" : "在线"
41724
+ } : null, n = Object.entries(e.experts || {}).map(([t]) => ({
41725
+ name: t,
41726
+ mode: s.participant_access(t, e)
41727
41727
  })), r = e.limits || {}, i = e.mode === "free" ? `自由协作 · 单次执行最多 ${e.free?.execution_minutes || 20} 分钟` : [
41728
41728
  r.max_rounds ? `${r.max_rounds} 轮` : "轮次不限",
41729
41729
  r.max_minutes ? `${r.max_minutes} 分钟` : "时长不限",
@@ -43079,7 +43079,7 @@ var _H = {
43079
43079
  ], 2);
43080
43080
  };
43081
43081
  }
43082
- }, [["__scopeId", "data-v-05c91cfd"]]), FW = {
43082
+ }, [["__scopeId", "data-v-cee427d4"]]), FW = {
43083
43083
  slots: {
43084
43084
  root: "relative inline-flex items-center",
43085
43085
  base: ["rounded-md", "transition-colors"],
@@ -47758,9 +47758,10 @@ var MK = /*#__PURE__*/ EH({
47758
47758
  pe.value = e.message;
47759
47759
  }
47760
47760
  }
47761
+ let Ce = (e) => e.preventDefault();
47761
47762
  return (t, c) => {
47762
- let x = YV, S = bH, le = MA, de = zV, fe = sA, ye = HV, Ce = dK, we = WV, Te = lK;
47763
- return U(), G(Te, {
47763
+ let x = YV, S = bH, le = MA, de = zV, fe = sA, ye = HV, we = dK, Te = WV, Ee = lK;
47764
+ return U(), G(Ee, {
47764
47765
  open: d.value,
47765
47766
  "onUpdate:open": c[24] ||= (e) => d.value = e,
47766
47767
  title: f[a.value] || "讨论",
@@ -47774,6 +47775,10 @@ var MK = /*#__PURE__*/ EH({
47774
47775
  ],
47775
47776
  body: "dialog-body"
47776
47777
  },
47778
+ content: a.value === "create" ? {
47779
+ onPointerDownOutside: Ce,
47780
+ onInteractOutside: Ce
47781
+ } : void 0,
47777
47782
  "onAfter:leave": xe
47778
47783
  }, {
47779
47784
  body: L(() => [a.value === "archives" ? (U(), W("section", $q, [
@@ -48168,7 +48173,7 @@ var MK = /*#__PURE__*/ EH({
48168
48173
  c[32] ||= K("p", { class: "fine-print" }, "轮次、总时长、单次执行留空或 0 表示不限。一轮指每位专家各完成一次观点;首次进入讨论阶段或创建安排后计时,暂停期间不计时。收束预留计入总时长。", -1),
48169
48174
  ce.value ? (U(), W("p", MJ, "修改上限前,请先把阶段保存为“已暂停”。")) : Y("", !0)
48170
48175
  ]),
48171
- q(Ce, {
48176
+ q(we, {
48172
48177
  open: se.value,
48173
48178
  "onUpdate:open": c[19] ||= (e) => se.value = e,
48174
48179
  class: "advanced-fields"
@@ -48281,7 +48286,7 @@ var MK = /*#__PURE__*/ EH({
48281
48286
  K("div", zJ, [
48282
48287
  K("strong", null, P(I(s).display_name(j.value.author)), 1),
48283
48288
  K("span", null, "#" + P(j.value.id), 1),
48284
- q(we, {
48289
+ q(Te, {
48285
48290
  color: "neutral",
48286
48291
  variant: "subtle"
48287
48292
  }, {
@@ -48312,7 +48317,8 @@ var MK = /*#__PURE__*/ EH({
48312
48317
  "open",
48313
48318
  "title",
48314
48319
  "description",
48315
- "ui"
48320
+ "ui",
48321
+ "content"
48316
48322
  ]);
48317
48323
  };
48318
48324
  }
@@ -49722,7 +49728,7 @@ var MK = /*#__PURE__*/ EH({
49722
49728
  result: t?.status === "failed" ? t.result : "",
49723
49729
  model: r.participant_model(e, m.value, n.value.launch.room_models),
49724
49730
  session: t?.session_id || "",
49725
- mode: m.value.experts?.[e] === "cli" ? "CLI" : "在线"
49731
+ mode: r.participant_access(e, m.value)
49726
49732
  };
49727
49733
  }
49728
49734
  function ye(e) {
@@ -50175,7 +50181,7 @@ var MK = /*#__PURE__*/ EH({
50175
50181
  ], 2);
50176
50182
  };
50177
50183
  }
50178
- }, [["__scopeId", "data-v-45999eda"]]), bX = { class: "progress-panel-anchor" }, xX = ["aria-expanded", "aria-label"], SX = { class: "progress-chip-text" }, CX = { class: "progress-chip-rounds" }, wX = {
50184
+ }, [["__scopeId", "data-v-6ae9a622"]]), bX = { class: "progress-panel-anchor" }, xX = ["aria-expanded", "aria-label"], SX = { class: "progress-chip-text" }, CX = { class: "progress-chip-rounds" }, wX = {
50179
50185
  __name: "ProgressPanel",
50180
50186
  setup(e) {
50181
50187
  let { view: t, bridge: n } = xr("discussion"), r = /* @__PURE__ */ F(!1), i = Z(() => t.value.room), a = Z(() => i.value.limits || {}), o = Z(() => {