@michengai/dsh-codex-ui 1.1.38 → 1.1.40
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/CHANGELOG.md +10 -0
- package/CHANGELOG.zh-CN.md +10 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/lib/client.js +150 -147
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
This changelog records recent releases of DSH Codex UI. Earlier changes remain available in the [Git history](https://github.com/MichengAI/dsh-codex-ui/commits/main).
|
|
6
6
|
|
|
7
|
+
## 1.1.40 - 2026-10-15
|
|
8
|
+
|
|
9
|
+
- The Tasks tab shows workspace projects again. Channel conversations stay on the Channels tab.
|
|
10
|
+
- Settings keeps a stable section order: Account, General; Models, Agent presets, Built-in plugins, Plugin configuration, Experts, Skills, Pet, Connectors, Scheduled tasks, IM assistant; Archive, About. Unknown sections follow the known items in the same group.
|
|
11
|
+
|
|
12
|
+
## 1.1.39 - 2026-10-15
|
|
13
|
+
|
|
14
|
+
- Plugin sidebar panels now appear inside Extensions, after Experts, Skills, Plugins, Connectors, Scheduled tasks, and the IM assistant. They keep each plugin's own order, including on the compact rail. Unknown panels are no longer dropped, and they no longer sit above New task (#44).
|
|
15
|
+
- The footer still skips dsh-context's old `context-overview` button. The per-session Context tab is unchanged. The official Plugins panel stays hidden because Extensions already has Plugins. Context Insights from dsh-context 0.64.0 or newer shows up in Extensions.
|
|
16
|
+
|
|
7
17
|
## 1.1.38 - 2026-10-15
|
|
8
18
|
|
|
9
19
|
- Support DSH `0.2.1-alpha.3` while retaining all existing supported versions; pin development `@deepseek-ai/dsh*` dependencies to host `0.2.1-alpha.3` and Cordis to `4.0.5-alpha.2`.
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -4,6 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
本日志记录 DSH Codex UI 的最近发布;更早的变更可查看 [Git 提交历史](https://github.com/MichengAI/dsh-codex-ui/commits/main)。
|
|
6
6
|
|
|
7
|
+
## 1.1.40 - 2026-10-15
|
|
8
|
+
|
|
9
|
+
- 「任务」页签重新显示工作区项目。频道会话仍留在「频道」页签。
|
|
10
|
+
- 设置页分区顺序固定为:账号、常规;模型、Agent 预设、内置插件、插件配置、专家、技能、宠物、连接器、定时任务、IM 助理;归档、关于。同组里不认识的项排在已知项后面。
|
|
11
|
+
|
|
12
|
+
## 1.1.39 - 2026-10-15
|
|
13
|
+
|
|
14
|
+
- 插件注册的侧栏面板现在显示在「扩展」里,排在专家、技能、插件、连接器、定时任务和 IM 助理后面,并保留各插件自己的顺序。窄轨也有对应图标。未知面板不再被丢掉,也不再单独占在「新建任务」上面(#44)。
|
|
15
|
+
- 底部仍跳过 dsh-context 旧的 `context-overview` 按钮。会话里的上下文页没有变。官方插件面板仍不重复显示,因为扩展里已经有「插件」。dsh-context 0.64.0 及以上的「上下文洞察」会出现在扩展里。
|
|
16
|
+
|
|
7
17
|
## 1.1.38 - 2026-10-15
|
|
8
18
|
|
|
9
19
|
- 支持 DSH `0.2.1-alpha.3`,继续兼容既有已支持版本;开发依赖中的 `@deepseek-ai/dsh*` 钉到宿主 `0.2.1-alpha.3`,Cordis 钉到 `4.0.5-alpha.2`。
|
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Working across several projects and conversations in DSH Web? DSH Codex UI helps
|
|
|
24
24
|
|
|
25
25
|
## Host compatibility
|
|
26
26
|
|
|
27
|
-
Version `1.1.
|
|
27
|
+
Version `1.1.40` explicitly declares support for DSH `0.1.2-rc.1`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.7-rc.1`, `0.1.7-rc.2`, `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-alpha.2`, and `0.2.1-alpha.3`. Development dependencies are pinned to `0.2.1-alpha.3`. Compatibility declarations do not imply that every supported host received a fresh live test in this release.
|
|
28
28
|
|
|
29
29
|
**Do not enable Codex UI and `ds-bot` together.** Both redesign the sidebar and conversation interface, so their slot ownership and layout styles overlap. Disable or uninstall one before using the other.
|
|
30
30
|
|
package/README.zh-CN.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
## 宿主兼容性
|
|
26
26
|
|
|
27
|
-
`1.1.
|
|
27
|
+
`1.1.40` 已显式声明支持 DSH `0.1.2-rc.1`、`0.1.5-rc.1`、`0.1.5-rc.2`、`0.1.5-rc.3`、`0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-alpha.2` 和 `0.2.1-alpha.3`。开发依赖钉在 `0.2.1-alpha.3`。兼容范围声明不代表本次发布重新完成了所有宿主版本的实机测试。
|
|
28
28
|
|
|
29
29
|
**不要同时启用 Codex UI 与 `ds-bot`。** 两者都重绘侧栏与会话界面,插槽归属和布局样式高度重叠。使用其中一个前,请先停用或卸载另一个。
|
|
30
30
|
|
package/lib/client.js
CHANGED
|
@@ -531,23 +531,6 @@ window.__ModuleLoader__.load({
|
|
|
531
531
|
}
|
|
532
532
|
};
|
|
533
533
|
}
|
|
534
|
-
/** 展开和紧凑侧栏只列出宿主注册的全局面板,不额外插入返回会话的任务入口。 */
|
|
535
|
-
function GlobalPanelButtons({ panels, activeId, wide, selectPanel, renderIcon }) {
|
|
536
|
-
if (panels.length === 0) return null;
|
|
537
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: panels.map((panel) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
538
|
-
type: "button",
|
|
539
|
-
className: wide ? "dcu-global-panel" : "dcu-icon dcu-global-panel",
|
|
540
|
-
"aria-label": panel.label,
|
|
541
|
-
title: wide ? void 0 : panel.label,
|
|
542
|
-
"aria-current": activeId === panel.id ? "page" : void 0,
|
|
543
|
-
onClick: () => selectPanel(panel.id),
|
|
544
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
545
|
-
className: "dcu-menu-icon",
|
|
546
|
-
"aria-hidden": "true",
|
|
547
|
-
children: renderIcon(panel.id, activeId === panel.id)
|
|
548
|
-
}), wide && panel.label]
|
|
549
|
-
}, panel.id)) });
|
|
550
|
-
}
|
|
551
534
|
/** 按用户要求用最窄宽度替代宿主自适应默认;已有有效偏好不重置,拖拽起点沿用宿主存储。 */
|
|
552
535
|
function initializeComposerWidth(storage) {
|
|
553
536
|
const key = "dsh.conversation.contentWidth";
|
|
@@ -7494,7 +7477,6 @@ html[data-windows-titlebar][data-fullscreen] .dcu-desktop-navigation{display:non
|
|
|
7494
7477
|
const getEmptyPanels = () => emptyPanels;
|
|
7495
7478
|
const useLegacyPanelInfo = (selector) => selector({ activePanelId: null });
|
|
7496
7479
|
const stylesheet$3 = `
|
|
7497
|
-
.dcu-global-panel[aria-current=page]{background:var(--dcu-sidebar-hover);font-weight:600}
|
|
7498
7480
|
|
|
7499
7481
|
.dcu-root{--dcu-sidebar-background:#eef7f5;--dcu-sidebar-primary:#393d3e;--dcu-sidebar-secondary:#676b6c;--dcu-sidebar-tertiary:#9a9f9f;--dcu-sidebar-navigation:#4e5253;--dcu-sidebar-icon:#4e5253;--dcu-sidebar-hover:#dfe8e5;--dcu-sidebar-border:rgba(37,46,41,.10);--dcu-tip-bg:#ffffff;--dcu-tip-shadow:0 10px 32px rgba(31,39,36,.22);width:100%;height:100%;min-width:0;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;background:var(--dcu-sidebar-background);color:var(--dcu-sidebar-primary);font:14px/20px var(--dsw-font-family)}body[data-ds-dark-theme] .dcu-root{--dcu-sidebar-background:#1d2120;--dcu-sidebar-primary:#b9bab9;--dcu-sidebar-secondary:#909191;--dcu-sidebar-tertiary:#666867;--dcu-sidebar-navigation:#b9bab9;--dcu-sidebar-icon:#afafaf;--dcu-sidebar-hover:#303432;--dcu-sidebar-border:rgba(255,255,255,.08);--dcu-tip-bg:#2a2a2a;--dcu-tip-shadow:0 10px 30px rgba(0,0,0,.28)}
|
|
7500
7482
|
/* 滤镜只作用于背景,避免为设置和搜索等 fixed 后代创建侧栏包含块。 */
|
|
@@ -7876,22 +7858,10 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
7876
7858
|
});
|
|
7877
7859
|
/** Codex 风格的 DSH 侧栏,只替换导航外观,项目浏览和设置仍由 DSH 官方组件提供。 */
|
|
7878
7860
|
function CodexSidebar({ workspaceShortcuts, navigationHistory, globalPanels, footerActions, selectPanel, usePanelInfo = useLegacyPanelInfo, collapsed, width, openSession, startSession, toggleSidebar, archiveSession, canDeleteSession, deleteSession, forkSession, moveSession, renameSession, openPath, companionSlots, renderSlot, t, useSessions, useSessionPendingInteraction, useSessionStatus, useWorkspaces, prefillNewConversation, newConversationDraft }) {
|
|
7879
|
-
const
|
|
7880
|
-
const extensionPanels = panels.filter((panel) => panel.id === "schedules");
|
|
7881
|
-
const topPanels = panels.filter((panel) => panel.id !== "schedules");
|
|
7861
|
+
const extensionPanels = [...(0, react.useSyncExternalStore)(globalPanels?.subscribe ?? subscribeEmptyCompanionTabs, globalPanels?.getSnapshot ?? getEmptyPanels, globalPanels?.getSnapshot ?? getEmptyPanels)].sort((left, right) => left.order - right.order);
|
|
7882
7862
|
const visibleFooterActions = (0, react.useSyncExternalStore)(footerActions?.subscribe ?? subscribeEmptyCompanionTabs, footerActions?.getSnapshot ?? getEmptyFooterActions, footerActions?.getSnapshot ?? getEmptyFooterActions);
|
|
7883
7863
|
const activePanelId = usePanelInfo((info) => info.activePanelId);
|
|
7884
7864
|
const panelActive = activePanelId !== null && activePanelId !== "";
|
|
7885
|
-
const panelButtons = (wide) => selectPanel === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GlobalPanelButtons, {
|
|
7886
|
-
panels: topPanels,
|
|
7887
|
-
activeId: activePanelId,
|
|
7888
|
-
wide,
|
|
7889
|
-
selectPanel,
|
|
7890
|
-
renderIcon: (id, active) => renderSlot("sidebar.panellist", {
|
|
7891
|
-
size: 16,
|
|
7892
|
-
active
|
|
7893
|
-
}, { only: id })
|
|
7894
|
-
});
|
|
7895
7865
|
const compact = collapsed || width < 80;
|
|
7896
7866
|
const [visualCompact, setVisualCompact] = (0, react.useState)(compact);
|
|
7897
7867
|
const [collapsing, setCollapsing] = (0, react.useState)(false);
|
|
@@ -8126,110 +8096,106 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
8126
8096
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("nav", {
|
|
8127
8097
|
className: "dcu-menu",
|
|
8128
8098
|
"aria-label": t("sidebar.mainMenu"),
|
|
8129
|
-
children: [
|
|
8130
|
-
|
|
8131
|
-
|
|
8099
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
8100
|
+
type: "button",
|
|
8101
|
+
onClick: () => {
|
|
8102
|
+
beginSession();
|
|
8103
|
+
},
|
|
8104
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuIcon, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconNewChatOutlineMedium, { size: 16 }) }), t("sidebar.newTask")]
|
|
8105
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
8106
|
+
className: "dcu-extensions-group",
|
|
8107
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
8132
8108
|
type: "button",
|
|
8109
|
+
className: "dcu-extensions-toggle",
|
|
8110
|
+
"aria-expanded": extensionsOpen,
|
|
8111
|
+
"aria-controls": "dcu-extension-items",
|
|
8133
8112
|
onClick: () => {
|
|
8134
|
-
|
|
8113
|
+
setExtensionsOpen((open) => {
|
|
8114
|
+
const next = !open;
|
|
8115
|
+
writeExtensionsOpen(next);
|
|
8116
|
+
return next;
|
|
8117
|
+
});
|
|
8135
8118
|
},
|
|
8136
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuIcon, { children: /* @__PURE__ */ (0, react_jsx_runtime.
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
}, panel.id)),
|
|
8213
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
8214
|
-
type: "button",
|
|
8215
|
-
tabIndex: extensionsOpen ? 0 : -1,
|
|
8216
|
-
onClick: () => {
|
|
8217
|
-
selectExternalSection(t("sidebar.schedule"));
|
|
8218
|
-
},
|
|
8219
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuIcon, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ScheduleIcon, {}) }), t("sidebar.schedule")]
|
|
8220
|
-
}),
|
|
8221
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
8222
|
-
type: "button",
|
|
8223
|
-
tabIndex: extensionsOpen ? 0 : -1,
|
|
8224
|
-
onClick: openImSettings,
|
|
8225
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuIcon, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImAssistantIcon, {}) }), t("sidebar.assistant")]
|
|
8226
|
-
})
|
|
8227
|
-
]
|
|
8228
|
-
})
|
|
8119
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuIcon, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
8120
|
+
className: "dcu-extension-leading",
|
|
8121
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconEnhanceOutlineMedium, {
|
|
8122
|
+
className: "dcu-extension-default-icon",
|
|
8123
|
+
size: 16
|
|
8124
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconChevronRightOutlineMedium, { className: "dcu-extension-state-arrow" })]
|
|
8125
|
+
}) }), t("sidebar.extensions")]
|
|
8126
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
8127
|
+
id: "dcu-extension-items",
|
|
8128
|
+
className: "dcu-extension-panel",
|
|
8129
|
+
"data-open": extensionsOpen,
|
|
8130
|
+
"aria-hidden": !extensionsOpen,
|
|
8131
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
8132
|
+
className: "dcu-extension-panel-inner",
|
|
8133
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
8134
|
+
className: "dcu-extension-items",
|
|
8135
|
+
children: [
|
|
8136
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
8137
|
+
type: "button",
|
|
8138
|
+
tabIndex: extensionsOpen ? 0 : -1,
|
|
8139
|
+
onClick: () => {
|
|
8140
|
+
selectExternalSection(t("sidebar.experts"));
|
|
8141
|
+
},
|
|
8142
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuIcon, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconUserOutlineMedium, { size: 16 }) }), t("sidebar.experts")]
|
|
8143
|
+
}),
|
|
8144
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
8145
|
+
type: "button",
|
|
8146
|
+
tabIndex: extensionsOpen ? 0 : -1,
|
|
8147
|
+
onClick: () => {
|
|
8148
|
+
selectExternalSection(t("sidebar.skills"));
|
|
8149
|
+
},
|
|
8150
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuIcon, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSkillOutlineMedium, { size: 16 }) }), t("sidebar.skills")]
|
|
8151
|
+
}),
|
|
8152
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
8153
|
+
type: "button",
|
|
8154
|
+
tabIndex: extensionsOpen ? 0 : -1,
|
|
8155
|
+
onClick: () => {
|
|
8156
|
+
openPlugins();
|
|
8157
|
+
},
|
|
8158
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuIcon, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPersonalizationOutlineMedium, { size: 16 }) }), t("sidebar.plugins")]
|
|
8159
|
+
}),
|
|
8160
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
8161
|
+
type: "button",
|
|
8162
|
+
tabIndex: extensionsOpen ? 0 : -1,
|
|
8163
|
+
onClick: () => {
|
|
8164
|
+
selectSection(t("sidebar.connectors"));
|
|
8165
|
+
},
|
|
8166
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuIcon, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconLinkOutlineMedium, { size: 16 }) }), t("sidebar.connectors")]
|
|
8167
|
+
}),
|
|
8168
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
8169
|
+
type: "button",
|
|
8170
|
+
tabIndex: extensionsOpen ? 0 : -1,
|
|
8171
|
+
onClick: () => {
|
|
8172
|
+
selectExternalSection(t("sidebar.schedule"));
|
|
8173
|
+
},
|
|
8174
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuIcon, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ScheduleIcon, {}) }), t("sidebar.schedule")]
|
|
8175
|
+
}),
|
|
8176
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
8177
|
+
type: "button",
|
|
8178
|
+
tabIndex: extensionsOpen ? 0 : -1,
|
|
8179
|
+
onClick: openImSettings,
|
|
8180
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuIcon, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImAssistantIcon, {}) }), t("sidebar.assistant")]
|
|
8181
|
+
}),
|
|
8182
|
+
extensionPanels.map((panel) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
8183
|
+
type: "button",
|
|
8184
|
+
tabIndex: extensionsOpen ? 0 : -1,
|
|
8185
|
+
"aria-current": activePanelId === panel.id ? "page" : void 0,
|
|
8186
|
+
onClick: () => {
|
|
8187
|
+
selectPanel?.(panel.id);
|
|
8188
|
+
},
|
|
8189
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuIcon, { children: renderSlot("sidebar.panellist", {
|
|
8190
|
+
size: 16,
|
|
8191
|
+
active: activePanelId === panel.id
|
|
8192
|
+
}, { only: panel.id }) }), panel.label]
|
|
8193
|
+
}, panel.id))
|
|
8194
|
+
]
|
|
8229
8195
|
})
|
|
8230
|
-
})
|
|
8231
|
-
})
|
|
8232
|
-
]
|
|
8196
|
+
})
|
|
8197
|
+
})]
|
|
8198
|
+
})]
|
|
8233
8199
|
}),
|
|
8234
8200
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
8235
8201
|
className: showCompanionTabs ? "dcu-workspaces dcu-workspaces-tabs" : "dcu-workspaces",
|
|
@@ -8326,7 +8292,6 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
8326
8292
|
className: "dcu-compact-nav",
|
|
8327
8293
|
"aria-label": t("sidebar.mainMenu"),
|
|
8328
8294
|
children: [
|
|
8329
|
-
panelButtons(false),
|
|
8330
8295
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
8331
8296
|
type: "button",
|
|
8332
8297
|
className: "dcu-icon",
|
|
@@ -8379,19 +8344,6 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
8379
8344
|
},
|
|
8380
8345
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconLinkOutlineMedium, { size: 16 })
|
|
8381
8346
|
}),
|
|
8382
|
-
extensionPanels.map((panel) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
8383
|
-
type: "button",
|
|
8384
|
-
className: "dcu-icon",
|
|
8385
|
-
"aria-label": panel.label,
|
|
8386
|
-
title: panel.label,
|
|
8387
|
-
onClick: () => {
|
|
8388
|
-
selectPanel?.(panel.id);
|
|
8389
|
-
},
|
|
8390
|
-
children: renderSlot("sidebar.panellist", {
|
|
8391
|
-
size: 16,
|
|
8392
|
-
active: activePanelId === panel.id
|
|
8393
|
-
}, { only: panel.id })
|
|
8394
|
-
}, panel.id)),
|
|
8395
8347
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
8396
8348
|
type: "button",
|
|
8397
8349
|
className: "dcu-icon",
|
|
@@ -8407,7 +8359,20 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
8407
8359
|
"aria-label": t("sidebar.assistant"),
|
|
8408
8360
|
onClick: openImSettings,
|
|
8409
8361
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImAssistantIcon, {})
|
|
8410
|
-
})
|
|
8362
|
+
}),
|
|
8363
|
+
extensionPanels.map((panel) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
8364
|
+
type: "button",
|
|
8365
|
+
className: "dcu-icon",
|
|
8366
|
+
"aria-label": panel.label,
|
|
8367
|
+
title: panel.label,
|
|
8368
|
+
onClick: () => {
|
|
8369
|
+
selectPanel?.(panel.id);
|
|
8370
|
+
},
|
|
8371
|
+
children: renderSlot("sidebar.panellist", {
|
|
8372
|
+
size: 16,
|
|
8373
|
+
active: activePanelId === panel.id
|
|
8374
|
+
}, { only: panel.id })
|
|
8375
|
+
}, panel.id))
|
|
8411
8376
|
]
|
|
8412
8377
|
})]
|
|
8413
8378
|
}),
|
|
@@ -9723,6 +9688,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
9723
9688
|
...renderSlotChain && { renderSlotChain }
|
|
9724
9689
|
});
|
|
9725
9690
|
}
|
|
9691
|
+
SlotAliases.displayName = Component.displayName;
|
|
9726
9692
|
cached.set(signature, SlotAliases);
|
|
9727
9693
|
return SlotAliases;
|
|
9728
9694
|
}
|
|
@@ -10142,11 +10108,48 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
10142
10108
|
}
|
|
10143
10109
|
//#endregion
|
|
10144
10110
|
//#region src/client/settings-page-model.ts
|
|
10111
|
+
/** 已知分区的显示顺序由 UI 插件固定。各插件自带 order 只用于同组未知项之间。 */
|
|
10112
|
+
const SETTINGS_NAV = {
|
|
10113
|
+
personal: ["account", "general"],
|
|
10114
|
+
integrations: [
|
|
10115
|
+
"models",
|
|
10116
|
+
"agent-presets",
|
|
10117
|
+
"plugins",
|
|
10118
|
+
"plugin-config",
|
|
10119
|
+
"agency-agents",
|
|
10120
|
+
"skills-manager",
|
|
10121
|
+
"codex-pet",
|
|
10122
|
+
"connectors",
|
|
10123
|
+
"scheduled-tasks",
|
|
10124
|
+
"im-assistant"
|
|
10125
|
+
],
|
|
10126
|
+
records: ["archived-sessions", "about"]
|
|
10127
|
+
};
|
|
10128
|
+
const GROUP_INDEX = {
|
|
10129
|
+
personal: 0,
|
|
10130
|
+
integrations: 1,
|
|
10131
|
+
records: 2
|
|
10132
|
+
};
|
|
10145
10133
|
function settingsGroup(id) {
|
|
10134
|
+
for (const group of [
|
|
10135
|
+
"personal",
|
|
10136
|
+
"integrations",
|
|
10137
|
+
"records"
|
|
10138
|
+
]) if (SETTINGS_NAV[group].includes(id)) return group;
|
|
10146
10139
|
if (/archive|about/.test(id)) return "records";
|
|
10147
10140
|
if (/^(general|appearance|theme|language|shortcuts|voice|account)$/.test(id)) return "personal";
|
|
10148
10141
|
return "integrations";
|
|
10149
10142
|
}
|
|
10143
|
+
/** 先按 UI 插件的固定顺位,未知项跟在同组已知项之后,彼此仍保持原 order。 */
|
|
10144
|
+
function orderSettingsRows(rows) {
|
|
10145
|
+
const rank = (row) => {
|
|
10146
|
+
const group = settingsGroup(row.id);
|
|
10147
|
+
const known = SETTINGS_NAV[group].indexOf(row.id);
|
|
10148
|
+
const item = known >= 0 ? known : SETTINGS_NAV[group].length + Math.min(Math.max(row.order, 0), 1e6) / 1e9;
|
|
10149
|
+
return GROUP_INDEX[group] * 1e3 + item;
|
|
10150
|
+
};
|
|
10151
|
+
return [...rows].sort((left, right) => rank(left) - rank(right) || left.id.localeCompare(right.id));
|
|
10152
|
+
}
|
|
10150
10153
|
function filterSettingsRows(rows, query) {
|
|
10151
10154
|
const needle = query.trim().toLocaleLowerCase();
|
|
10152
10155
|
return needle === "" ? rows : rows.filter((row) => `${row.label} ${row.id}`.toLocaleLowerCase().includes(needle));
|
|
@@ -10501,7 +10504,7 @@ html[data-dsh-native-backdrop=mica] .dcu-settings-page,html[data-dsh-native-back
|
|
|
10501
10504
|
(0, react.useEffect)(() => {
|
|
10502
10505
|
if (main.current !== null) main.current.scrollTop = 0;
|
|
10503
10506
|
}, [active?.id]);
|
|
10504
|
-
const visible = filterSettingsRows(rows, query);
|
|
10507
|
+
const visible = orderSettingsRows(filterSettingsRows(rows, query));
|
|
10505
10508
|
const ownTitle = active?.id === "general" ? t("settings.general") : active?.id === "plugin-config" ? t("settings.pluginConfig") : void 0;
|
|
10506
10509
|
const connectionIndicator = connection === "disconnected" ? "disconnected" : connection === "connecting" ? "connecting" : recovered ? "recovered" : void 0;
|
|
10507
10510
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michengai/dsh-codex-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.40",
|
|
4
4
|
"description": "DSH Codex UI — 为 DeepSeek Harness Web 提供 Codex 风格侧栏、工作区会话树、全局搜索和轮次导航 · A Codex-style sidebar, workspace session tree, global search, and turn navigation for DSH Web",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|