ai_co_discuss 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/README.zh-CN.md +3 -1
- package/package.json +1 -1
- package/web/modern.css +1 -1
- package/web/modern.js +17 -21
package/web/modern.js
CHANGED
|
@@ -48523,13 +48523,13 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48523
48523
|
], 10, XJ)], 64))), 128))], 8, YJ);
|
|
48524
48524
|
};
|
|
48525
48525
|
}
|
|
48526
|
-
}, [["__scopeId", "data-v-b682fa87"]]), QJ = { class: "scheduler-settings" }, $J = { class: "scheduler-title" }, eY = { class: "scheduler-description" }, tY = {
|
|
48526
|
+
}, [["__scopeId", "data-v-b682fa87"]]), QJ = { class: "scheduler-settings" }, $J = { class: "scheduler-title" }, eY = { class: "scheduler-description" }, tY = {
|
|
48527
48527
|
key: 0,
|
|
48528
|
-
class: "scheduler-
|
|
48529
|
-
},
|
|
48528
|
+
class: "scheduler-empty"
|
|
48529
|
+
}, nY = {
|
|
48530
48530
|
key: 1,
|
|
48531
|
-
class: "scheduler-
|
|
48532
|
-
}, iY = { class: "scheduler-identity" }, aY = { class: "scheduler-facts" }, oY = ["title"], sY = { class: "scheduler-flip" }, cY = { class: "scheduler-tools" }, lY = ["aria-label"], uY = { class: "scheduler-back" }, dY = { class: "scheduler-heading" }, fY = { class: "scheduler-field" }, pY = { class: "scheduler-field" }, mY = {
|
|
48531
|
+
class: "scheduler-cards"
|
|
48532
|
+
}, rY = { class: "scheduler-slot" }, iY = { class: "scheduler-identity" }, aY = { class: "scheduler-facts" }, oY = ["title"], sY = { class: "scheduler-flip" }, cY = { class: "scheduler-tools" }, lY = ["aria-label"], uY = { class: "scheduler-back" }, dY = { class: "scheduler-heading" }, fY = { class: "scheduler-field" }, pY = { class: "scheduler-field" }, mY = {
|
|
48533
48533
|
key: 0,
|
|
48534
48534
|
role: "alert",
|
|
48535
48535
|
class: "scheduler-error"
|
|
@@ -48648,7 +48648,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48648
48648
|
}
|
|
48649
48649
|
}
|
|
48650
48650
|
return (t, a) => {
|
|
48651
|
-
let g = WV, ee =
|
|
48651
|
+
let g = WV, ee = pA, D = sA, O = MA, te = oq, ne = YV;
|
|
48652
48652
|
return U(), W("div", QJ, [
|
|
48653
48653
|
K("div", null, [K("p", $J, [
|
|
48654
48654
|
a[5] ||= J("智能调度", -1),
|
|
@@ -48669,8 +48669,8 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48669
48669
|
items: u.value,
|
|
48670
48670
|
onAdd: y
|
|
48671
48671
|
}, null, 8, ["items"]),
|
|
48672
|
-
|
|
48673
|
-
K("div", dY, [K("strong", null, [J(P(x.value), 1), a[
|
|
48672
|
+
c.value ? (U(), W("div", nY, [K("div", rY, [K("div", { class: j(["scheduler-card", { "is-editing": h.value }]) }, [h.value ? (U(), W(H, { key: 1 }, [K("div", uY, [
|
|
48673
|
+
K("div", dY, [K("strong", null, [J(P(x.value), 1), a[11] ||= K("span", null, "设置", -1)]), q(O, {
|
|
48674
48674
|
icon: "i-lucide-zap",
|
|
48675
48675
|
"aria-label": "检查智能调度配置",
|
|
48676
48676
|
title: "检查配置:向决策模型发送一道极短的是非题,核对供应商、模型与密钥",
|
|
@@ -48685,7 +48685,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48685
48685
|
"loading",
|
|
48686
48686
|
"disabled"
|
|
48687
48687
|
])]),
|
|
48688
|
-
K("div", fY, [a[
|
|
48688
|
+
K("div", fY, [a[12] ||= K("span", null, "模型", -1), q(te, {
|
|
48689
48689
|
mode: "autocomplete",
|
|
48690
48690
|
"ignore-filter": "",
|
|
48691
48691
|
"model-value": i.value.model || "",
|
|
@@ -48697,7 +48697,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48697
48697
|
class: "w-full",
|
|
48698
48698
|
"onUpdate:modelValue": a[0] ||= (e) => I(r).write_scheduler("model", e)
|
|
48699
48699
|
}, null, 8, ["model-value", "items"])]),
|
|
48700
|
-
K("div", pY, [a[
|
|
48700
|
+
K("div", pY, [a[13] ||= K("span", null, "密钥", -1), q(ne, {
|
|
48701
48701
|
modelValue: d.value,
|
|
48702
48702
|
"onUpdate:modelValue": a[2] ||= (e) => d.value = e,
|
|
48703
48703
|
type: "text",
|
|
@@ -48746,7 +48746,7 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48746
48746
|
role: C.value.state === "error" ? "alert" : "status",
|
|
48747
48747
|
class: j(C.value.state === "error" ? "scheduler-error" : "scheduler-ok")
|
|
48748
48748
|
}, P(C.value.message), 11, hY)) : Y("", !0),
|
|
48749
|
-
a[
|
|
48749
|
+
a[14] ||= K("p", { class: "scheduler-note" }, "决策模型只做选择、不生成文本,只按输入计费。判断时会把房间标题和最近 10~20 条消息发给所选供应商;密钥只存本机。", -1)
|
|
48750
48750
|
]), K("span", gY, [K("button", {
|
|
48751
48751
|
type: "button",
|
|
48752
48752
|
class: "scheduler-flip is-cancel",
|
|
@@ -48757,14 +48757,14 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48757
48757
|
class: "scheduler-flip is-done",
|
|
48758
48758
|
"aria-label": "完成并返回决策模型卡片",
|
|
48759
48759
|
onClick: a[3] ||= (e) => h.value = !1
|
|
48760
|
-
}, [q(
|
|
48760
|
+
}, [q(D, { name: "i-lucide-check" }), a[15] ||= J("完成", -1)])])], 64)) : (U(), W(H, { key: 0 }, [K("button", {
|
|
48761
48761
|
type: "button",
|
|
48762
48762
|
class: "scheduler-open",
|
|
48763
48763
|
"aria-label": "设置智能调度的决策模型",
|
|
48764
48764
|
title: "点击设置",
|
|
48765
48765
|
onClick: _
|
|
48766
48766
|
}, [
|
|
48767
|
-
K("span", iY, [q(
|
|
48767
|
+
K("span", iY, [q(ee, {
|
|
48768
48768
|
src: s[i.value.provider]?.icon,
|
|
48769
48769
|
text: x.value.slice(0, 2),
|
|
48770
48770
|
alt: x.value,
|
|
@@ -48776,22 +48776,18 @@ var Rq = ["data-identity", "data-face"], zq = ["inert", "aria-hidden"], Bq = { c
|
|
|
48776
48776
|
"alt",
|
|
48777
48777
|
"class"
|
|
48778
48778
|
]), K("strong", null, P(x.value), 1)]),
|
|
48779
|
-
K("dl", aY, [K("div", null, [a[
|
|
48780
|
-
K("span", sY, [q(
|
|
48779
|
+
K("dl", aY, [K("div", null, [a[8] ||= K("dt", null, "状态", -1), K("dd", { class: j(`is-${S.value.tone}`) }, [a[7] ||= K("i", { "aria-hidden": "true" }, null, -1), J(P(S.value.text), 1)], 2)]), K("div", null, [a[9] ||= K("dt", null, "模型", -1), K("dd", { title: i.value.model }, P(i.value.model || "未选择"), 9, oY)])]),
|
|
48780
|
+
K("span", sY, [q(D, { name: "i-lucide-settings-2" }), a[10] ||= J("设置", -1)])
|
|
48781
48781
|
]), K("span", cY, [K("button", {
|
|
48782
48782
|
type: "button",
|
|
48783
48783
|
"aria-label": `移出决策模型 ${x.value}`,
|
|
48784
48784
|
title: "移出",
|
|
48785
48785
|
onClick: b
|
|
48786
|
-
}, [q(
|
|
48787
|
-
q(ee, { name: "i-lucide-zap" }),
|
|
48788
|
-
a[7] ||= K("strong", null, "决策模型槽位", -1),
|
|
48789
|
-
a[8] ||= K("span", null, "只能放一个;从上方添加,再点其他会替换", -1)
|
|
48790
|
-
]))])
|
|
48786
|
+
}, [q(D, { name: "i-lucide-x" })], 8, lY)])], 64))], 2)])])) : (U(), W("p", tY, "未添加决策模型。只能放一个,点其他供应商会替换。"))
|
|
48791
48787
|
]);
|
|
48792
48788
|
};
|
|
48793
48789
|
}
|
|
48794
|
-
}, [["__scopeId", "data-v-
|
|
48790
|
+
}, [["__scopeId", "data-v-d4d373f5"]]), yY = { class: "create-discussion" }, bY = {
|
|
48795
48791
|
key: 0,
|
|
48796
48792
|
class: "create-connect",
|
|
48797
48793
|
role: "status"
|