0.3.6:预设改为可直接填写 ID,不再卡在读取预设列表
This commit is contained in:
parent
a7d47d5d84
commit
6943989b19
2
index.js
2
index.js
|
|
@ -1,5 +1,5 @@
|
|||
const PRESET_ID = 'sansheng-liubu'
|
||||
export const POLICY_VERSION = '0.3.5'
|
||||
export const POLICY_VERSION = '0.3.6'
|
||||
|
||||
/**
|
||||
* 默认不强制任何 provider/model:宿主未必注册了这些适配器,强行指定会让整轮请求
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "dsh-sansheng-liubu-mode",
|
||||
"version": "0.3.5",
|
||||
"version": "0.3.6",
|
||||
"private": true,
|
||||
"description": "上朝:丞相统筹的三省六部多 Agent 模式",
|
||||
"type": "module",
|
||||
|
|
|
|||
|
|
@ -297,10 +297,10 @@ window.__ModuleLoader__.load({
|
|||
.sl-detail-head small{color:var(--dsw-alias-label-tertiary,#8a8f98);font-size:11px}
|
||||
.sl-field{display:flex;flex-direction:column;gap:4px}
|
||||
.sl-field label{font-size:11px;color:var(--dsw-alias-label-tertiary,#8a8f98)}
|
||||
.sl-field select,.sl-field textarea{font:inherit;font-size:12px;color:inherit;background:var(--dsw-alias-bg-layer-2,rgba(127,127,127,.06));border:1px solid var(--dsw-alias-border-l2,rgba(127,127,127,.24));border-radius:7px;padding:5px 7px;min-width:0}
|
||||
.sl-field select,.sl-field textarea,.sl-field input[type=text]{font:inherit;font-size:12px;color:inherit;background:var(--dsw-alias-bg-layer-2,rgba(127,127,127,.06));border:1px solid var(--dsw-alias-border-l2,rgba(127,127,127,.24));border-radius:7px;padding:5px 7px;min-width:0}
|
||||
.sl-field textarea{resize:vertical;min-height:56px;line-height:18px}
|
||||
.sl-field-row{display:flex;gap:6px}
|
||||
.sl-field-row select{flex:1;min-width:0}
|
||||
.sl-field-row select,.sl-field-row input[type=text]{flex:1;min-width:0}
|
||||
.sl-hint{color:var(--dsw-alias-label-tertiary,#8a8f98);font-size:11px;line-height:17px}
|
||||
.sl-error{color:var(--dsw-alias-state-error-primary,#dc2626);font-size:11px;line-height:17px}
|
||||
.sl-ok{color:#15803d;font-size:11px;line-height:17px}
|
||||
|
|
@ -656,13 +656,16 @@ window.__ModuleLoader__.load({
|
|||
seat && seat.present ? h("div", { className: "sl-field" }, [
|
||||
h("label", { children: "Agent 预设" }),
|
||||
h("div", { className: "sl-field-row" }, [
|
||||
h("select", {
|
||||
h("input", {
|
||||
type: "text",
|
||||
value: draftPreset,
|
||||
placeholder: "sansheng-liubu",
|
||||
list: "sl-preset-options",
|
||||
onChange: (event) => setDraftPreset(event.target.value),
|
||||
children: [
|
||||
h("option", { value: "", children: presets.status === "loading" ? "读取中…" : "(未设置)" }),
|
||||
...presets.options.map((option) => h("option", { key: option.id, value: option.id, children: option.name })),
|
||||
],
|
||||
}),
|
||||
h("datalist", {
|
||||
id: "sl-preset-options",
|
||||
children: presets.options.map((option) => h("option", { key: option.id, value: option.id, children: option.name })),
|
||||
}),
|
||||
h("button", {
|
||||
type: "button",
|
||||
|
|
@ -672,7 +675,8 @@ window.__ModuleLoader__.load({
|
|||
children: "应用",
|
||||
}),
|
||||
]),
|
||||
presets.error ? h("div", { className: "sl-error", children: presets.error }) : null,
|
||||
h("div", { className: "sl-hint", children: presets.status === "loading" ? "正在读取预设列表… 也可以直接填 sansheng-liubu" : "预设 ID 可直接填写,默认 sansheng-liubu" }),
|
||||
presets.error ? h("div", { className: "sl-hint", children: presets.error }) : null,
|
||||
presets.error ? h("button", {
|
||||
type: "button",
|
||||
className: "sl-btn",
|
||||
|
|
@ -1409,7 +1413,7 @@ window.__ModuleLoader__.load({
|
|||
}, (props) => h("div", { className: "sl-main-shell", "data-sansheng-main": "1" }, [
|
||||
h("div", { key: "head", className: "sl-main-head" }, [
|
||||
h("strong", { key: "title", children: "三省六部 · 朝堂" }),
|
||||
h("span", { key: "hint", className: "sl-main-head-hint", children: "v0.3.5" }),
|
||||
h("span", { key: "hint", className: "sl-main-head-hint", children: "v0.3.6" }),
|
||||
h("span", { key: "spacer", className: "sl-main-head-spacer" }),
|
||||
h(DockButton, { key: "dock", host }),
|
||||
]),
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "dsh-sansheng-liubu-panel",
|
||||
"version": "0.3.5",
|
||||
"version": "0.3.6",
|
||||
"private": true,
|
||||
"description": "三省六部 Agent 面板:在 DSH Web GUI 中常驻显示并切换团队 Agent",
|
||||
"type": "module",
|
||||
|
|
|
|||
Loading…
Reference in New Issue