@michengai/dsh-codex-ui 1.1.40 → 1.1.43
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 +23 -0
- package/CHANGELOG.zh-CN.md +23 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/lib/client.js +275 -119
- package/lib/index.mjs +1 -7
- package/lib/session-title-plugin.mjs +12 -8
- package/package.json +39 -39
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.43 (2026-10-19)
|
|
4
|
+
|
|
5
|
+
- Guard archived and released session references before opening, so clicking an archived conversation no longer blanks the renderer or triggers a reload loop. Archived deep links are cleaned up before they can be retried.
|
|
6
|
+
- Forward the official `plugins.tab` and `plugins.add.actions` slots so the plugin market's Discover page and add-plugin actions render in the copied Plugin manager section.
|
|
7
|
+
- Render settings navigation icons with standalone mask elements instead of rewriting the host svg, and only decorate buttons with a direct host icon.
|
|
8
|
+
- Add icons and shorter labels to the schedule view tabs.
|
|
9
|
+
- Remove the injected navigation icon stylesheet when the observer is disposed.
|
|
10
|
+
|
|
11
|
+
## 1.1.42 (2026-10-18)
|
|
12
|
+
|
|
13
|
+
- **Support DSH 0.2.1-rc.2**: Adapt to the latest official DeepSeek Harness host, pinning dev dependencies to `0.2.1-rc.2` and Cordis to `4.0.5`.
|
|
14
|
+
- **Drop obsolete pre-0.2.0 & alpha hosts**: Align with in-house plugin standards, dropping 0.1.x and alpha versions, focusing on DSH `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`, and `0.2.1-rc.2`.
|
|
15
|
+
- **Clean legacy compat shims**: Remove 0.1.5 onboarding settings schema fallbacks and `settingsScope` branches.
|
|
16
|
+
- **Plugin Manager navigation in sidebar**: Clicking the plugin entry in the sidebar now opens the official Plugin Management section in Settings directly instead of taking over the main workspace.
|
|
17
|
+
- **Sidebar SegmentedTabs unification**: Unify both primary (Tasks/Channels/Schedule) and secondary (Runs/Overview) tabs to official `SegmentedTabs` with transparent containers and subtle pill indicators; resolve tablist suppression bugs.
|
|
18
|
+
- **About page alignment**: Adopt standard trio actions (GitHub, Feedback, Check Updates) and aligned typography.
|
|
19
|
+
|
|
3
20
|
[简体中文](CHANGELOG.zh-CN.md)
|
|
4
21
|
|
|
5
22
|
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
23
|
|
|
24
|
+
## 1.1.41 - 2026-10-17
|
|
25
|
+
|
|
26
|
+
- Support DSH `0.2.1-rc.1` and `0.2.1-rc.2` while retaining all existing supported versions. Development dependencies are pinned to host `0.2.1-rc.2`.
|
|
27
|
+
- The sidebar Extensions plugin entry is now Plugin manager and opens the official plugin manager instead of the plugin market.
|
|
28
|
+
- The settings entry formerly called Plugin configuration is now Plugin manager. Built-in plugins remains the read-only list.
|
|
29
|
+
|
|
7
30
|
## 1.1.40 - 2026-10-15
|
|
8
31
|
|
|
9
32
|
- The Tasks tab shows workspace projects again. Channel conversations stay on the Channels tab.
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## 1.1.43 (2026-10-19)
|
|
4
|
+
|
|
5
|
+
- 打开已归档或已释放的会话引用前先拦截,点击已归档会话不再导致整页空白或重载循环;归档深链会在重试前清理。
|
|
6
|
+
- 转交官方 `plugins.tab` 与 `plugins.add.actions` 插槽,修复插件市场「发现」页和添加插件操作在插件管理副本中的空白。
|
|
7
|
+
- 设置导航图标改用独立 mask 元素,不再改写宿主 svg,并且只装饰宿主直出的图标。
|
|
8
|
+
- 定时任务二级页签补充图标与更短标签。
|
|
9
|
+
- 卸载设置导航观察时移除注入的样式表。
|
|
10
|
+
|
|
11
|
+
## 1.1.42 (2026-10-18)
|
|
12
|
+
|
|
13
|
+
- **支持 DSH 0.2.1-rc.2**:适配最新 DeepSeek Harness 官方版本,开发依赖钉至 `0.2.1-rc.2`,Cordis 钉至 `4.0.5`。
|
|
14
|
+
- **收紧宿主支持范围**:对齐技能管理等自研插件规范,彻底移除 0.2.0 以前(0.1.x)的历史版本及所有 alpha 版本,支持范围锁定为 DSH `0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1` 和 `0.2.1-rc.2`。
|
|
15
|
+
- **清理历史兼容代码**:清除针对 0.1.5 旧版设置命名空间与 settingsScope 等历史降级垫片。
|
|
16
|
+
- **侧边栏扩展「插件管理」交互优化**:点击扩展项里的插件管理改为直接唤出系统设置中的「插件管理」分区,不再在右侧工作区强行切出面板。
|
|
17
|
+
- **侧栏选项卡视觉重构**:侧栏一级(任务/频道/定时)与二级(执行记录/任务总览)统一换用官方原生 `SegmentedTabs`,采用全透明底色与精致紧凑的微透药丸滑块,并修复了宿主全局 tablist 抑制规则导致的二级切换栏遮挡问题。
|
|
18
|
+
- **关于页规范对齐**:顶部升级为「GitHub / 问题反馈 / 检查更新」三联按钮,排版规范与字体对齐自研标准。
|
|
19
|
+
|
|
3
20
|
[English](CHANGELOG.md)
|
|
4
21
|
|
|
5
22
|
本日志记录 DSH Codex UI 的最近发布;更早的变更可查看 [Git 提交历史](https://github.com/MichengAI/dsh-codex-ui/commits/main)。
|
|
6
23
|
|
|
24
|
+
## 1.1.41 - 2026-10-17
|
|
25
|
+
|
|
26
|
+
- 支持 DSH `0.2.1-rc.1` 和 `0.2.1-rc.2`,继续兼容既有已支持版本。开发依赖钉到宿主 `0.2.1-rc.2`。
|
|
27
|
+
- 侧栏「扩展管理」里的插件入口改叫「插件管理」,打开官方插件管理页,不再进入插件市场。
|
|
28
|
+
- 设置里的「插件配置」改叫「插件管理」。「内置插件」仍是只读列表。
|
|
29
|
+
|
|
7
30
|
## 1.1.40 - 2026-10-15
|
|
8
31
|
|
|
9
32
|
- 「任务」页签重新显示工作区项目。频道会话仍留在「频道」页签。
|
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.42` explicitly declares support for DSH `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`, and `0.2.1-rc.2` (dropping obsolete pre-0.2.0 hosts to align with in-house plugin standards). Development dependencies are pinned to `0.2.1-rc.2`. 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.42` 已对齐自研插件规范,彻底移除 `0.2.0` 以前的历史宿主支持,显式声明支持 DSH `0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1` 和 `0.2.1-rc.2`。开发依赖钉在 `0.2.1-rc.2`。兼容范围声明不代表本次发布重新完成了所有宿主版本的实机测试。
|
|
28
28
|
|
|
29
29
|
**不要同时启用 Codex UI 与 `ds-bot`。** 两者都重绘侧栏与会话界面,插槽归属和布局样式高度重叠。使用其中一个前,请先停用或卸载另一个。
|
|
30
30
|
|
package/lib/client.js
CHANGED
|
@@ -105,18 +105,34 @@ window.__ModuleLoader__.load({
|
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
+
function isSessionArchived(ctx, id) {
|
|
109
|
+
if (id === "") return false;
|
|
110
|
+
const access = hostAccess(ctx);
|
|
111
|
+
let store;
|
|
112
|
+
try {
|
|
113
|
+
store = probeService(access, "workspaces") ?? access.workspaces;
|
|
114
|
+
} catch {
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
return store?.list?.getSnapshot?.()?.archivedSessionIds?.includes(id) ?? false;
|
|
118
|
+
}
|
|
108
119
|
function openHostSession(ctx, id) {
|
|
109
120
|
if (id === "") return false;
|
|
121
|
+
if (isSessionArchived(ctx, id)) return false;
|
|
110
122
|
const access = hostAccess(ctx);
|
|
111
123
|
const uiWorkspace = probeService(access, "uiWorkspace");
|
|
112
|
-
if (typeof uiWorkspace?.openSession === "function") {
|
|
124
|
+
if (typeof uiWorkspace?.openSession === "function") try {
|
|
113
125
|
uiWorkspace.openSession(id);
|
|
114
126
|
return true;
|
|
127
|
+
} catch {
|
|
128
|
+
return false;
|
|
115
129
|
}
|
|
116
130
|
if (typeof access.sessions?.retain === "function") return false;
|
|
117
|
-
if (typeof access.sessions?.open === "function") {
|
|
131
|
+
if (typeof access.sessions?.open === "function") try {
|
|
118
132
|
access.sessions.open(id);
|
|
119
133
|
return true;
|
|
134
|
+
} catch {
|
|
135
|
+
return false;
|
|
120
136
|
}
|
|
121
137
|
return false;
|
|
122
138
|
}
|
|
@@ -185,6 +201,11 @@ window.__ModuleLoader__.load({
|
|
|
185
201
|
if (opened) selectGlobalPanel(layout, null);
|
|
186
202
|
return opened;
|
|
187
203
|
}
|
|
204
|
+
/** 归档判断必须先于 byId:已释放的归档会话不在 byId,直接 wait 会让深链永远清不掉。 */
|
|
205
|
+
function deepLinkAction(byId, archived, sessionId) {
|
|
206
|
+
if (archived) return "clean";
|
|
207
|
+
return byId[sessionId] === void 0 ? "wait" : "open";
|
|
208
|
+
}
|
|
188
209
|
/** 先打开再写草稿,避免 using 释放后 composer 换新 binding。 */
|
|
189
210
|
async function openConversationWithDraft(host, layout, sessions, sessionId, writeDraft) {
|
|
190
211
|
return withSessionBinding(sessions, sessionId, (binding) => {
|
|
@@ -210,7 +231,10 @@ window.__ModuleLoader__.load({
|
|
|
210
231
|
};
|
|
211
232
|
const listeners = /* @__PURE__ */ new Set();
|
|
212
233
|
const target = (direction) => {
|
|
213
|
-
for (let next = index + direction; next >= 0 && next < entries.length; next += direction)
|
|
234
|
+
for (let next = index + direction; next >= 0 && next < entries.length; next += direction) {
|
|
235
|
+
const id = entries[next];
|
|
236
|
+
if (store.getSnapshot().byId?.[id] !== void 0) return next;
|
|
237
|
+
}
|
|
214
238
|
};
|
|
215
239
|
const update = () => {
|
|
216
240
|
const current = currentSessionId(store.getSnapshot());
|
|
@@ -693,6 +717,7 @@ window.__ModuleLoader__.load({
|
|
|
693
717
|
const IconEditOutlineMedium = hostIcon("IconEditOutlineMedium", "IconEditOutline16");
|
|
694
718
|
const IconEllipsisOutlineMedium = hostIcon("IconEllipsisOutlineMedium", "IconEllipsisOutline16");
|
|
695
719
|
const IconEnhanceOutlineMedium = hostIcon("IconEnhanceOutlineMedium", "IconEnhanceOutline16");
|
|
720
|
+
const IconFlatListOutlineMedium = hostIcon("IconFlatListOutlineMedium", "IconFlatListOutline16");
|
|
696
721
|
const IconFolderCloseMedium = hostIcon("IconFolderCloseMedium", "IconFolderClose16");
|
|
697
722
|
const IconFolderOpenMedium = hostIcon("IconFolderOpenMedium", "IconFolderOpen16");
|
|
698
723
|
const IconFolderOpenOutlineMedium = hostIcon("IconFolderOpenOutlineMedium", "IconFolderOpenOutline16");
|
|
@@ -703,11 +728,13 @@ window.__ModuleLoader__.load({
|
|
|
703
728
|
const IconPanelLeftOutlineMedium = hostIcon("IconPanelLeftOutlineMedium", "IconPanelLeftOutline16");
|
|
704
729
|
const IconPersonalizationOutlineMedium = hostIcon("IconPersonalizationOutlineMedium", "IconPersonalizationOutline16");
|
|
705
730
|
const IconProjectAddOutlineMedium = hostIcon("IconProjectAddOutlineMedium", "IconProjectAddOutline16");
|
|
731
|
+
const IconRefreshOutlineMedium = hostIcon("IconRefreshOutlineMedium", "IconRefreshOutline16");
|
|
706
732
|
const IconSearchOutlineMedium = hostIcon("IconSearchOutlineMedium", "IconSearchOutline16");
|
|
707
733
|
const IconSettingsOutlineMedium = hostIcon("IconSettingsOutlineMedium", "IconSettingsOutline16");
|
|
708
734
|
const IconSkillOutlineMedium = hostIcon("IconSkillOutlineMedium", "IconSkillOutline16");
|
|
709
735
|
const IconTrashOutlineMedium = hostIcon("IconTrashOutlineMedium", "IconTrashOutline16");
|
|
710
736
|
const IconUserOutlineMedium = hostIcon("IconUserOutlineMedium", "IconUserOutline16");
|
|
737
|
+
const IconWorkspaceTreeOutlineMedium = hostIcon("IconWorkspaceTreeOutlineMedium", "IconWorkspaceTreeOutline16");
|
|
711
738
|
//#endregion
|
|
712
739
|
//#region src/client/sidebar-search.ts
|
|
713
740
|
/** 按用户可见名称和辅助关键词筛选侧栏搜索结果。 */
|
|
@@ -4639,8 +4666,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
|
|
|
4639
4666
|
if (beforeId !== null) run("session-order", () => insertSessionBefore(workspace.workspaceId, drag.sessionId, beforeId));
|
|
4640
4667
|
},
|
|
4641
4668
|
onClick: () => {
|
|
4642
|
-
setUnreadSessionIds((ids) => ids.filter((item) => item !== id));
|
|
4643
|
-
openSession(id);
|
|
4669
|
+
if (openSession(id) !== false) setUnreadSessionIds((ids) => ids.filter((item) => item !== id));
|
|
4644
4670
|
},
|
|
4645
4671
|
onContextMenu: (event) => {
|
|
4646
4672
|
event.preventDefault();
|
|
@@ -5484,8 +5510,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
|
|
|
5484
5510
|
y: menu.y
|
|
5485
5511
|
} : void 0,
|
|
5486
5512
|
onOpen: () => {
|
|
5487
|
-
setUnreadSessionIds((ids) => ids.filter((item) => item !== id));
|
|
5488
|
-
openSession(id);
|
|
5513
|
+
if (openSession(id) !== false) setUnreadSessionIds((ids) => ids.filter((item) => item !== id));
|
|
5489
5514
|
},
|
|
5490
5515
|
onMenuChange: (open) => {
|
|
5491
5516
|
setMenu(open ? {
|
|
@@ -6285,8 +6310,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
|
|
|
6285
6310
|
y: menu.y
|
|
6286
6311
|
} : void 0,
|
|
6287
6312
|
onOpen: () => {
|
|
6288
|
-
flags.setUnreadSessionIds((ids) => ids.filter((item) => item !== id));
|
|
6289
|
-
openSession(id);
|
|
6313
|
+
if (openSession(id) !== false) flags.setUnreadSessionIds((ids) => ids.filter((item) => item !== id));
|
|
6290
6314
|
},
|
|
6291
6315
|
onMenuChange: (open) => {
|
|
6292
6316
|
setMenu(open ? { id } : void 0);
|
|
@@ -6377,10 +6401,38 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
|
|
|
6377
6401
|
})]
|
|
6378
6402
|
});
|
|
6379
6403
|
}
|
|
6380
|
-
/** 定时树:数据来自会话快照,行/菜单/悬停与任务树共用。 */
|
|
6381
6404
|
function ScheduleBrowser(props) {
|
|
6382
6405
|
const [menu, setMenu] = (0, react.useState)();
|
|
6383
6406
|
const [view, setView] = (0, react.useState)("runs");
|
|
6407
|
+
const viewTabs = (0, react.useMemo)(() => [{
|
|
6408
|
+
value: "runs",
|
|
6409
|
+
id: "dcu-schedule-tab-runs",
|
|
6410
|
+
panelId: "dcu-schedule-panel-runs",
|
|
6411
|
+
label: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
6412
|
+
style: {
|
|
6413
|
+
display: "inline-flex",
|
|
6414
|
+
alignItems: "center",
|
|
6415
|
+
justifyContent: "center",
|
|
6416
|
+
gap: 5,
|
|
6417
|
+
whiteSpace: "nowrap"
|
|
6418
|
+
},
|
|
6419
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconFlatListOutlineMedium, { size: 14 }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: props.t("sidebar.runsTab") })]
|
|
6420
|
+
})
|
|
6421
|
+
}, {
|
|
6422
|
+
value: "overview",
|
|
6423
|
+
id: "dcu-schedule-tab-overview",
|
|
6424
|
+
panelId: "dcu-schedule-panel-overview",
|
|
6425
|
+
label: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
6426
|
+
style: {
|
|
6427
|
+
display: "inline-flex",
|
|
6428
|
+
alignItems: "center",
|
|
6429
|
+
justifyContent: "center",
|
|
6430
|
+
gap: 5,
|
|
6431
|
+
whiteSpace: "nowrap"
|
|
6432
|
+
},
|
|
6433
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconWorkspaceTreeOutlineMedium, { size: 14 }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: props.t("sidebar.overviewTab") })]
|
|
6434
|
+
})
|
|
6435
|
+
}], [props.t]);
|
|
6384
6436
|
if (props.overviewContent === void 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HoverShell, {
|
|
6385
6437
|
blocked: menu !== void 0,
|
|
6386
6438
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ScheduleBrowserTree, {
|
|
@@ -6391,29 +6443,18 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
|
|
|
6391
6443
|
});
|
|
6392
6444
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6393
6445
|
className: "dcu-schedule-browser",
|
|
6394
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
6446
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
6395
6447
|
className: "dcu-schedule-views",
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
"aria-selected": view === "runs",
|
|
6402
|
-
onClick: () => {
|
|
6448
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.SegmentedTabs, {
|
|
6449
|
+
className: "dcu-schedule-segmented-tabs",
|
|
6450
|
+
label: props.t("sidebar.scheduleTab"),
|
|
6451
|
+
value: view,
|
|
6452
|
+
onChange: (next) => {
|
|
6403
6453
|
setMenu(void 0);
|
|
6404
|
-
setView(
|
|
6454
|
+
setView(next);
|
|
6405
6455
|
},
|
|
6406
|
-
|
|
6407
|
-
})
|
|
6408
|
-
type: "button",
|
|
6409
|
-
role: "tab",
|
|
6410
|
-
"aria-selected": view === "overview",
|
|
6411
|
-
onClick: () => {
|
|
6412
|
-
setMenu(void 0);
|
|
6413
|
-
setView("overview");
|
|
6414
|
-
},
|
|
6415
|
-
children: props.t("sidebar.overviewTab")
|
|
6416
|
-
})]
|
|
6456
|
+
items: viewTabs
|
|
6457
|
+
})
|
|
6417
6458
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
6418
6459
|
className: "dcu-schedule-pane",
|
|
6419
6460
|
children: view === "runs" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HoverShell, {
|
|
@@ -6594,8 +6635,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
|
|
|
6594
6635
|
y: menu.y
|
|
6595
6636
|
} : void 0,
|
|
6596
6637
|
onOpen: () => {
|
|
6597
|
-
flags.setUnreadSessionIds((ids) => ids.filter((item) => item !== id));
|
|
6598
|
-
openSession(id);
|
|
6638
|
+
if (openSession(id) !== false) flags.setUnreadSessionIds((ids) => ids.filter((item) => item !== id));
|
|
6599
6639
|
},
|
|
6600
6640
|
onMenuChange: (open) => {
|
|
6601
6641
|
setMenu(open ? { id } : void 0);
|
|
@@ -7489,7 +7529,7 @@ body[data-we-sidebar-glass] .dcu-expanded-shell,body[data-we-sidebar-glass] .dcu
|
|
|
7489
7529
|
.dcu-menu{padding:0 6px 8px;display:grid;gap:2px}.dcu-menu button,.dcu-footer-link{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:8px;align-items:center;width:100%;min-height:36px;padding:0 4px;border-radius:8px;color:var(--dcu-sidebar-navigation);font-size:14px;line-height:20px;text-align:left;font-weight:400}
|
|
7490
7530
|
.dcu-menu-icon{display:grid;place-items:center start;width:20px;height:20px}.dcu-menu-icon svg,.dcu-footer-link svg{display:block;width:16px;height:16px;color:var(--dcu-sidebar-icon)}.dcu-menu button:disabled{color:var(--dcu-sidebar-secondary);cursor:default;opacity:1}.dcu-menu button:disabled svg{color:var(--dcu-sidebar-secondary)}
|
|
7491
7531
|
.dcu-extensions-group{display:grid}.dcu-extension-leading{position:relative;display:block;width:16px;height:16px}.dcu-extension-leading svg{position:absolute;inset:0;transition:opacity 140ms ease-out,transform 220ms cubic-bezier(.16,1,.3,1)}.dcu-extension-default-icon{opacity:1}.dcu-extension-state-arrow{opacity:0;transform:rotate(0)}.dcu-extensions-group:hover .dcu-extension-default-icon,.dcu-extensions-toggle:focus-visible .dcu-extension-default-icon{opacity:0}.dcu-extensions-group:hover .dcu-extension-state-arrow,.dcu-extensions-toggle:focus-visible .dcu-extension-state-arrow{opacity:1}.dcu-extensions-toggle[aria-expanded=true] .dcu-extension-state-arrow{transform:rotate(90deg)}.dcu-extension-panel{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows 220ms cubic-bezier(.16,1,.3,1),opacity 160ms ease-out}.dcu-extension-panel[data-open=false]{grid-template-rows:0fr;opacity:0;pointer-events:none}.dcu-extension-panel-inner{position:relative;min-height:0;overflow:hidden}.dcu-extension-items{position:relative;display:grid;gap:1px;margin:1px 0 4px 28px}.dcu-extension-items::before{content:"";position:absolute;left:-16px;top:0;bottom:4px;width:1px;background:var(--dcu-sidebar-border)}.dcu-extension-items button{grid-template-columns:20px minmax(0,1fr);min-height:32px;color:var(--dcu-sidebar-secondary);font-size:13px;font-weight:400}
|
|
7492
|
-
.dcu-workspaces{display:flex;min-height:0;flex:1;flex-direction:column;margin-top:2px;padding-top:8px;border-top:1px solid var(--dcu-sidebar-border)}.dcu-workspaces.dcu-workspaces-tabs{padding-top:0;border-top:0}.dcu-im-tabs{display:flex;
|
|
7532
|
+
.dcu-workspaces{display:flex;min-height:0;flex:1;flex-direction:column;margin-top:2px;padding-top:8px;border-top:1px solid var(--dcu-sidebar-border)}.dcu-workspaces.dcu-workspaces-tabs{padding-top:0;border-top:0}.dcu-im-tabs{display:flex;margin:2px 8px 8px;padding:0}.dcu-im-tabs .dcu-im-segmented-tabs{width:100%;background:color-mix(in srgb,var(--dcu-sidebar-primary) 3%,transparent)!important;border-radius:8px!important;border:0.5px solid var(--dcu-sidebar-border)!important;box-sizing:border-box;padding:2px!important}.dcu-im-tabs .dcu-im-segmented-tabs>span{inset:2px auto 2px 2px!important;border-radius:6px!important;border:0.5px solid color-mix(in srgb,var(--dcu-sidebar-primary) 12%,transparent)!important;background:color-mix(in srgb,var(--dcu-sidebar-primary) 8%,transparent)!important;box-shadow:none!important}.dcu-im-tabs .dcu-im-segmented-tabs [role=tab]{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:100%!important;height:26px!important;padding:0 6px!important;font-size:13px!important;line-height:18px!important;border-radius:6px!important;color:var(--dcu-sidebar-secondary);text-align:center!important}.dcu-im-tabs .dcu-im-segmented-tabs [role=tab]>*{display:inline-flex!important;align-items:center!important;justify-content:center!important}.dcu-im-tabs .dcu-im-segmented-tabs [role=tab]:hover{color:var(--dcu-sidebar-primary)}.dcu-im-tabs .dcu-im-segmented-tabs [role=tab][aria-selected=true]{color:var(--dcu-sidebar-primary)!important;font-weight:600}.dcu-native-workspaces{display:flex;min-height:0;flex:1}.dcu-native-workspaces>*{min-width:0;flex:1}.dcu-native-workspaces .ima-tabs,.dcu-native-workspaces [role=tablist]:not(.dcu-schedule-segmented-tabs){display:none!important}.dcu-schedule-browser{display:flex;min-height:0;flex:1;flex-direction:column}.dcu-native-workspaces .dcu-schedule-views{display:flex!important;flex:none;margin:2px 8px 8px;padding:0}.dcu-native-workspaces .dcu-schedule-views [role=tablist],.dcu-schedule-views .dcu-schedule-segmented-tabs{display:grid!important;width:100%;margin:0!important;padding:2px!important;background:color-mix(in srgb,var(--dcu-sidebar-primary) 3%,transparent)!important;border-radius:8px!important;border:0.5px solid var(--dcu-sidebar-border)!important;box-sizing:border-box}.dcu-schedule-views .dcu-schedule-segmented-tabs>span{inset:2px auto 2px 2px!important;border-radius:6px!important;border:0.5px solid color-mix(in srgb,var(--dcu-sidebar-primary) 12%,transparent)!important;background:color-mix(in srgb,var(--dcu-sidebar-primary) 8%,transparent)!important;box-shadow:none!important}.dcu-schedule-views .dcu-schedule-segmented-tabs [role=tab]{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:100%!important;height:26px!important;padding:0 6px!important;font-size:13px!important;line-height:18px!important;border-radius:6px!important;color:var(--dcu-sidebar-secondary);font-weight:500;text-align:center!important}.dcu-schedule-views .dcu-schedule-segmented-tabs [role=tab]>*{display:inline-flex!important;align-items:center!important;justify-content:center!important}.dcu-schedule-views .dcu-schedule-segmented-tabs [role=tab]:hover{color:var(--dcu-sidebar-primary)}.dcu-schedule-views .dcu-schedule-segmented-tabs [role=tab][aria-selected=true]{color:var(--dcu-sidebar-primary)!important;font-weight:600}.dcu-schedule-pane{display:flex;min-height:0;flex:1}.dcu-schedule-pane>*{min-width:0;flex:1}.dcu-schedule-pane>[data-slot="sidebar.schedule"]{display:flex!important;width:100%;min-width:0;flex:1}.dcu-schedule-pane .dsh-st-rail{width:100%;min-width:0;padding:0;scrollbar-gutter:auto}.dcu-schedule-pane .dsh-st-overview{padding:2px 8px 14px;scrollbar-gutter:auto}.dcu-foot{display:grid;width:100%;gap:4px;padding:8px 6px 12px;border-top:1px solid var(--dcu-sidebar-border);transition:opacity 500ms cubic-bezier(.16,1,.3,1),transform 500ms cubic-bezier(.16,1,.3,1)}.dcu-root.dcu-collapsing>.dcu-foot{opacity:0;transform:translateX(-4px);pointer-events:none}.dcu-footer-actions:empty,.dcu-settings-seat:empty{display:none}.dcu-settings-seat>[data-dcu-settings-trigger]{width:100%;min-height:36px;padding-left:4px!important;color:var(--dcu-sidebar-navigation);font:14px/20px var(--dsw-font-family);font-weight:400}.dcu-compact{width:100%;align-items:flex-start;overflow:hidden;padding:calc((var(--dcu-header-height,34px) - 28px)/2) 0 8px}.dcu-compact-nav{display:flex;flex:1;min-height:0;flex-direction:column;align-items:center;gap:2px;overflow:auto;padding:6px 0}.dcu-compact .dcu-icon{width:36px;height:36px;flex:none}.dcu-compact .dcu-foot{width:36px;margin-top:auto;margin-left:10px;padding:8px 0;border-top:0}.dcu-compact .dcu-settings-seat{width:36px;overflow:hidden}.dcu-compact .dcu-settings-seat>[data-dcu-settings-trigger]{display:grid;place-items:center;width:36px;min-height:36px;padding:0!important;font-size:0!important;line-height:0}.dcu-compact .dcu-settings-seat>[data-dcu-settings-trigger] svg{width:16px;height:16px}.dcu-compact .dcu-footer-link{display:flex;justify-content:center;width:36px;padding:0;font-size:0}.dcu-compact .dcu-footer-link svg{width:16px;height:16px}
|
|
7493
7533
|
.dcu-settings-seat [data-slot="settings.trigger"]{color:var(--dcu-sidebar-navigation)}
|
|
7494
7534
|
.dcu-settings-seat [data-slot="settings.trigger"]>svg{color:var(--dcu-sidebar-icon)}
|
|
7495
7535
|
/* 宿主列负责缩放,宽态内容保持展开宽度,避免中文竖排与工作区逐帧重排。 */
|
|
@@ -7885,11 +7925,77 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
7885
7925
|
const showChannels = companionTabs.channels;
|
|
7886
7926
|
const showSchedule = companionTabs.schedule;
|
|
7887
7927
|
const showCompanionTabs = showChannels || showSchedule;
|
|
7928
|
+
const imTabItems = (0, react.useMemo)(() => {
|
|
7929
|
+
const items = [{
|
|
7930
|
+
value: "tasks",
|
|
7931
|
+
id: "dcu-tab-tasks",
|
|
7932
|
+
panelId: "dcu-panel-tasks",
|
|
7933
|
+
label: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
7934
|
+
style: {
|
|
7935
|
+
display: "inline-flex",
|
|
7936
|
+
alignItems: "center",
|
|
7937
|
+
justifyContent: "center",
|
|
7938
|
+
gap: 5,
|
|
7939
|
+
whiteSpace: "nowrap"
|
|
7940
|
+
},
|
|
7941
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconFolderCloseMedium, { size: 14 }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("sidebar.tasksTab") })]
|
|
7942
|
+
})
|
|
7943
|
+
}];
|
|
7944
|
+
if (showChannels) items.push({
|
|
7945
|
+
value: "channels",
|
|
7946
|
+
id: "dcu-tab-channels",
|
|
7947
|
+
panelId: "dcu-panel-channels",
|
|
7948
|
+
label: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
7949
|
+
style: {
|
|
7950
|
+
display: "inline-flex",
|
|
7951
|
+
alignItems: "center",
|
|
7952
|
+
justifyContent: "center",
|
|
7953
|
+
gap: 5,
|
|
7954
|
+
whiteSpace: "nowrap"
|
|
7955
|
+
},
|
|
7956
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
7957
|
+
viewBox: "0 0 16 16",
|
|
7958
|
+
width: 14,
|
|
7959
|
+
height: 14,
|
|
7960
|
+
fill: "none",
|
|
7961
|
+
"aria-hidden": "true",
|
|
7962
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
7963
|
+
fill: "currentColor",
|
|
7964
|
+
d: "M2.15 2.9h11.7v8.2H6.42L2.15 13.85V2.9Zm1.4 1.4v6.62l1.78-1.12h7.12V4.3H3.55Z"
|
|
7965
|
+
})
|
|
7966
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("sidebar.channelsTab") })]
|
|
7967
|
+
})
|
|
7968
|
+
});
|
|
7969
|
+
if (showSchedule) items.push({
|
|
7970
|
+
value: "schedule",
|
|
7971
|
+
id: "dcu-tab-schedule",
|
|
7972
|
+
panelId: "dcu-panel-schedule",
|
|
7973
|
+
label: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
7974
|
+
style: {
|
|
7975
|
+
display: "inline-flex",
|
|
7976
|
+
alignItems: "center",
|
|
7977
|
+
justifyContent: "center",
|
|
7978
|
+
gap: 5,
|
|
7979
|
+
whiteSpace: "nowrap"
|
|
7980
|
+
},
|
|
7981
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ScheduleIcon, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("sidebar.scheduleTab") })]
|
|
7982
|
+
})
|
|
7983
|
+
});
|
|
7984
|
+
return items;
|
|
7985
|
+
}, [
|
|
7986
|
+
showChannels,
|
|
7987
|
+
showSchedule,
|
|
7988
|
+
t
|
|
7989
|
+
]);
|
|
7888
7990
|
const selectSection = (label) => {
|
|
7889
7991
|
openSettingsSection(settingsSeat.current, label);
|
|
7890
7992
|
};
|
|
7891
7993
|
const openPlugins = () => {
|
|
7892
|
-
|
|
7994
|
+
selectExternalSection([
|
|
7995
|
+
t("settings.pluginConfig"),
|
|
7996
|
+
t("sidebar.marketplace"),
|
|
7997
|
+
t("sidebar.builtinPlugins")
|
|
7998
|
+
]);
|
|
7893
7999
|
};
|
|
7894
8000
|
const selectExternalSection = (label) => {
|
|
7895
8001
|
openSettingsSection(settingsSeat.current, label, () => {
|
|
@@ -8199,37 +8305,17 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
8199
8305
|
}),
|
|
8200
8306
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
8201
8307
|
className: showCompanionTabs ? "dcu-workspaces dcu-workspaces-tabs" : "dcu-workspaces",
|
|
8202
|
-
children: [showCompanionTabs && /* @__PURE__ */ (0, react_jsx_runtime.
|
|
8308
|
+
children: [showCompanionTabs && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
8203
8309
|
className: "dcu-im-tabs",
|
|
8204
|
-
children:
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
}),
|
|
8214
|
-
showChannels && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
8215
|
-
type: "button",
|
|
8216
|
-
className: "dcu-im-tab",
|
|
8217
|
-
"data-on": imTab === "channels",
|
|
8218
|
-
onClick: () => {
|
|
8219
|
-
setImTab("channels");
|
|
8220
|
-
},
|
|
8221
|
-
children: t("sidebar.channelsTab")
|
|
8222
|
-
}),
|
|
8223
|
-
showSchedule && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
8224
|
-
type: "button",
|
|
8225
|
-
className: "dcu-im-tab",
|
|
8226
|
-
"data-on": imTab === "schedule",
|
|
8227
|
-
onClick: () => {
|
|
8228
|
-
setImTab("schedule");
|
|
8229
|
-
},
|
|
8230
|
-
children: t("sidebar.scheduleTab")
|
|
8231
|
-
})
|
|
8232
|
-
]
|
|
8310
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.SegmentedTabs, {
|
|
8311
|
+
className: "dcu-im-segmented-tabs",
|
|
8312
|
+
label: t("sidebar.tasksTab"),
|
|
8313
|
+
value: imTab,
|
|
8314
|
+
onChange: (next) => {
|
|
8315
|
+
setImTab(next);
|
|
8316
|
+
},
|
|
8317
|
+
items: imTabItems
|
|
8318
|
+
})
|
|
8233
8319
|
}), imTab === "channels" && showChannels ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
8234
8320
|
className: "dcu-native-workspaces",
|
|
8235
8321
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChannelBrowser, {
|
|
@@ -8466,6 +8552,9 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
8466
8552
|
//#endregion
|
|
8467
8553
|
//#region src/client/AboutSection.tsx
|
|
8468
8554
|
const PROJECT_HOMEPAGES = Object.fromEntries(MANAGED_DEPENDENCIES.map(({ id, packageName }) => [id, id === "market" ? "https://dshmarket.com" : `https://github.com/MichengAI/${packageName.split("/")[1]}`]));
|
|
8555
|
+
const openExternal = (url) => {
|
|
8556
|
+
window.open(url, "_blank", "noreferrer");
|
|
8557
|
+
};
|
|
8469
8558
|
const PROGRESS_PHASES = /* @__PURE__ */ new Set([
|
|
8470
8559
|
"resolving",
|
|
8471
8560
|
"downloading",
|
|
@@ -8474,8 +8563,8 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
8474
8563
|
]);
|
|
8475
8564
|
const endpoint = CODEX_UI_API_ENDPOINTS.dependencies;
|
|
8476
8565
|
const stylesheet$2 = `
|
|
8477
|
-
.dcu-about{color:var(--dsw-alias-label-primary)}.dcu-about h2{margin:0;font-size:
|
|
8478
|
-
.dcu-about-title-row{display:flex;align-items:center;gap:8px;min-width:0}.dcu-about-links{display:flex;align-items:center;gap:
|
|
8566
|
+
.dcu-about{color:var(--dsw-alias-label-primary);font-family:var(--dsw-font-family)}.dcu-about-head{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-bottom:12px}.dcu-about-title-block{min-width:0}.dcu-about h2,.dcu-about-title{margin:0;font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.4px;color:var(--dsw-alias-label-primary)}.dcu-about-intro,.dcu-about-desc{margin:12px 0 0;color:var(--dsw-alias-label-tertiary,#a0a0a0);font-size:14px;line-height:22px}.dcu-about h3{margin:24px 0 12px;font-size:16px;font-weight:600;line-height:24px;color:var(--dsw-alias-label-primary)}.dcu-about-features{margin:0;padding-left:20px;color:var(--dsw-alias-label-secondary);font-size:13px;line-height:24px}.dcu-about-dependencies-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px}.dcu-about-dependencies-heading h3{margin:0}.dcu-about-dependencies-heading+.dcu-about-intro,.dcu-about-dependencies-heading+.dcu-about-desc{margin-top:8px;margin-bottom:14px}.dcu-about-dependencies{overflow:hidden;border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md,10px)}.dcu-about-dependency{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px;border-bottom:1px solid var(--dsw-alias-border-l2)}.dcu-about-dependency:last-child{border-bottom:0}.dcu-about-copy{min-width:0;flex:1}.dcu-about-name{font-size:13px;line-height:20px;font-weight:600}.dcu-about-package{overflow:hidden;margin-top:2px;color:var(--dsw-alias-label-tertiary);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.dcu-about-status{display:flex;align-items:center;gap:5px;font-size:12px}.dcu-about-status[data-installed=true]{color:var(--dsw-alias-state-success-primary)}.dcu-about-status[data-installed=false]{color:var(--dsw-alias-state-error-primary)}.dcu-about-status[data-update=true]{color:var(--dsw-alias-state-warning-primary)}.dcu-about-install{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;border:1px solid var(--dsw-alias-border-l2);border-radius:7px;padding:6px 9px;background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:12px;cursor:pointer}.dcu-about-install:hover:not(:disabled){background:var(--dsw-specific-menu-item-hover)}.dcu-about-install:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.dcu-about-install:disabled{cursor:default;opacity:.4}.dcu-about-install[aria-busy=true]{pointer-events:none}.dcu-about-update-all{min-height:30px;padding:4px 10px;font-weight:500;border-color:var(--dsw-alias-border-l3)}.dcu-about-progress{position:relative;margin-top:16px;border:1px solid var(--dsw-alias-border-l2);border-radius:8px;padding:10px 14px 12px;background:var(--dsw-alias-bg-layer-2);display:flex;align-items:center;gap:10px;font-size:12px;overflow:hidden}.dcu-about-progress code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--dsw-alias-label-secondary)}.dcu-about-progress-pct{flex:none;color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;font-weight:500}.dcu-about-progress-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--dsw-alias-border-l2);overflow:hidden}.dcu-about-progress-fill{height:100%;background:var(--dsw-alias-state-business-primary);transition:width 200ms ease}.dcu-about-progress-fill[data-wave=true]{width:40%;animation:dcu-progress-wave 1.4s ease-in-out infinite}@keyframes dcu-progress-wave{0%{transform:translateX(-100%)}100%{transform:translateX(350%)}}.dcu-about-message{margin-top:16px;border-radius:8px;padding:10px 14px;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);font-size:13px;line-height:20px;border:1px solid var(--dsw-alias-border-l2)}.dcu-about-message[data-error=true]{background:color-mix(in srgb,var(--dsw-alias-state-error-primary) 12%,transparent);border-color:color-mix(in srgb,var(--dsw-alias-state-error-primary) 30%,transparent)}
|
|
8567
|
+
.dcu-about-title-row{display:flex;align-items:center;gap:8px 12px;min-width:0;flex-wrap:wrap}.dcu-about-feedback-links,.dcu-about-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dcu-about-external-link{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:0 8px;color:var(--dsw-alias-label-secondary);background:transparent;border:1px solid var(--dsw-alias-border-l2);border-radius:7px;font-size:12px;font-weight:500;line-height:18px;text-decoration:none;white-space:nowrap}.dcu-about-external-link:hover{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)}.dcu-about-external-link:focus-visible{outline:2px solid var(--dsw-alias-state-success-primary);outline-offset:2px}.dcu-about-external-link svg{flex:none}@media(max-width:720px){.dcu-about-title-row{flex-wrap:wrap}}
|
|
8479
8568
|
.dcu-about-version{margin-left:8px;color:var(--dsw-alias-label-tertiary);font-family:inherit;font-size:12px;font-weight:500;line-height:18px;letter-spacing:0;white-space:nowrap;vertical-align:baseline}
|
|
8480
8569
|
.dcu-about-project-link{color:inherit;text-decoration:none}.dcu-about-project-link:hover{text-decoration:underline;text-underline-offset:3px}.dcu-about-project-link:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px;border-radius:2px}
|
|
8481
8570
|
.dcu-about-name-row{display:flex;align-items:center;gap:10px;min-width:0}.dcu-about-name-row .dcu-about-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dcu-about-downloads{display:inline-flex;align-items:center;gap:4px;flex:none;color:var(--dsw-alias-label-secondary);font-size:11px;line-height:20px;font-weight:400;font-variant-numeric:tabular-nums;text-decoration:none;white-space:nowrap}.dcu-about-downloads svg{flex:none;opacity:.75}.dcu-about-downloads:hover{color:var(--dsw-alias-label-primary)}.dcu-about-downloads:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:3px;border-radius:2px}@media(max-width:480px){.dcu-about-dependency{flex-wrap:wrap;gap:8px}.dcu-about-copy{flex-basis:100%}}
|
|
@@ -8689,33 +8778,59 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
8689
8778
|
"aria-label": t("about.nav"),
|
|
8690
8779
|
children: [
|
|
8691
8780
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("style", { children: stylesheet$2 }),
|
|
8692
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
8693
|
-
className: "dcu-about-
|
|
8694
|
-
children:
|
|
8695
|
-
className: "dcu-about-
|
|
8696
|
-
children: ["
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8781
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
8782
|
+
className: "dcu-about-head",
|
|
8783
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
8784
|
+
className: "dcu-about-title-block",
|
|
8785
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
8786
|
+
className: "dcu-about-title-row",
|
|
8787
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("h2", {
|
|
8788
|
+
className: "dcu-about-title",
|
|
8789
|
+
children: [t("about.title"), selfVersion === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
8790
|
+
className: "dcu-about-version",
|
|
8791
|
+
children: ["v", selfVersion]
|
|
8792
|
+
})]
|
|
8793
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
8794
|
+
className: "dcu-about-feedback-links dcu-about-links",
|
|
8795
|
+
children: [
|
|
8796
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
8797
|
+
variant: "outline",
|
|
8798
|
+
size: "sm",
|
|
8799
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GithubMark16, {}),
|
|
8800
|
+
"aria-label": t("about.viewProject"),
|
|
8801
|
+
onClick: () => {
|
|
8802
|
+
openExternal("https://github.com/MichengAI/dsh-codex-ui");
|
|
8803
|
+
},
|
|
8804
|
+
children: t("about.viewProject")
|
|
8805
|
+
}),
|
|
8806
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
8807
|
+
variant: "outline",
|
|
8808
|
+
size: "sm",
|
|
8809
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconListPenOutlineMedium, { size: 14 }),
|
|
8810
|
+
"aria-label": t("about.feedback"),
|
|
8811
|
+
onClick: () => {
|
|
8812
|
+
openExternal("https://github.com/MichengAI/dsh-codex-ui/issues");
|
|
8813
|
+
},
|
|
8814
|
+
children: t("about.feedback")
|
|
8815
|
+
}),
|
|
8816
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
8817
|
+
variant: "outline",
|
|
8818
|
+
size: "sm",
|
|
8819
|
+
icon: state === "loading" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconLoadingOutlineMedium, { size: 14 }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconRefreshOutlineMedium, { size: 14 }),
|
|
8820
|
+
"aria-label": t("about.checkUpdate"),
|
|
8821
|
+
disabled: state === "loading" || installing !== void 0,
|
|
8822
|
+
onClick: () => {
|
|
8823
|
+
load();
|
|
8824
|
+
},
|
|
8825
|
+
children: state === "loading" ? t("about.checking") : t("about.checkUpdate")
|
|
8826
|
+
})
|
|
8827
|
+
]
|
|
8828
|
+
})]
|
|
8829
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
8830
|
+
className: "dcu-about-desc dcu-about-intro",
|
|
8831
|
+
children: t("about.description")
|
|
8713
8832
|
})]
|
|
8714
|
-
})
|
|
8715
|
-
}),
|
|
8716
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
8717
|
-
className: "dcu-about-intro",
|
|
8718
|
-
children: t("about.description")
|
|
8833
|
+
})
|
|
8719
8834
|
}),
|
|
8720
8835
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t("about.features") }),
|
|
8721
8836
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("ul", {
|
|
@@ -9096,7 +9211,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
9096
9211
|
"settings.search": "搜索设置…",
|
|
9097
9212
|
"settings.personal": "个人",
|
|
9098
9213
|
"settings.integrations": "集成",
|
|
9099
|
-
"settings.pluginConfig": "
|
|
9214
|
+
"settings.pluginConfig": "插件管理",
|
|
9100
9215
|
"settings.records": "记录与应用",
|
|
9101
9216
|
"settings.general": "常规",
|
|
9102
9217
|
"settings.permissions": "权限",
|
|
@@ -9117,7 +9232,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
9117
9232
|
"sidebar.extensions": "扩展管理",
|
|
9118
9233
|
"sidebar.experts": "专家",
|
|
9119
9234
|
"sidebar.skills": "技能",
|
|
9120
|
-
"sidebar.plugins": "
|
|
9235
|
+
"sidebar.plugins": "插件管理",
|
|
9121
9236
|
"sidebar.marketplace": "插件市场",
|
|
9122
9237
|
"sidebar.builtinPlugins": "内置插件",
|
|
9123
9238
|
"sidebar.connectors": "连接器",
|
|
@@ -9127,8 +9242,8 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
9127
9242
|
"sidebar.tasksTab": "任务",
|
|
9128
9243
|
"sidebar.channelsTab": "频道",
|
|
9129
9244
|
"sidebar.scheduleTab": "定时",
|
|
9130
|
-
"sidebar.runsTab": "
|
|
9131
|
-
"sidebar.overviewTab": "
|
|
9245
|
+
"sidebar.runsTab": "记录",
|
|
9246
|
+
"sidebar.overviewTab": "任务",
|
|
9132
9247
|
"channels.empty": "还没有频道会话。先在设置 → IM助理 里连接渠道。",
|
|
9133
9248
|
"channels.loadError": "无法读取频道会话。",
|
|
9134
9249
|
"channel.dingtalk": "钉钉",
|
|
@@ -9250,6 +9365,8 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
9250
9365
|
"about.title": "Codex UI",
|
|
9251
9366
|
"about.viewProject": "GitHub",
|
|
9252
9367
|
"about.feedback": "问题反馈",
|
|
9368
|
+
"about.checkUpdate": "检查更新",
|
|
9369
|
+
"about.checking": "正在检查更新…",
|
|
9253
9370
|
"about.description": "为 DSH 提供 Codex 风格的侧栏、工作区会话管理、搜索与会话轮次导航。",
|
|
9254
9371
|
"about.features": "基本功能",
|
|
9255
9372
|
"about.feature.sidebar": "Codex 风格侧栏、全局会话搜索与设置入口",
|
|
@@ -9389,7 +9506,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
9389
9506
|
"settings.search": "Search settings…",
|
|
9390
9507
|
"settings.personal": "Personal",
|
|
9391
9508
|
"settings.integrations": "Integrations",
|
|
9392
|
-
"settings.pluginConfig": "Plugin
|
|
9509
|
+
"settings.pluginConfig": "Plugin manager",
|
|
9393
9510
|
"settings.records": "Records and app",
|
|
9394
9511
|
"settings.general": "General",
|
|
9395
9512
|
"settings.permissions": "Permissions",
|
|
@@ -9410,7 +9527,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
9410
9527
|
"sidebar.extensions": "Extensions",
|
|
9411
9528
|
"sidebar.experts": "Experts",
|
|
9412
9529
|
"sidebar.skills": "Skills",
|
|
9413
|
-
"sidebar.plugins": "
|
|
9530
|
+
"sidebar.plugins": "Plugin manager",
|
|
9414
9531
|
"sidebar.marketplace": "Plugin Market",
|
|
9415
9532
|
"sidebar.builtinPlugins": "Built-in plugins",
|
|
9416
9533
|
"sidebar.connectors": "Connectors",
|
|
@@ -9420,8 +9537,8 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
9420
9537
|
"sidebar.tasksTab": "Tasks",
|
|
9421
9538
|
"sidebar.channelsTab": "Channels",
|
|
9422
9539
|
"sidebar.scheduleTab": "Schedule",
|
|
9423
|
-
"sidebar.runsTab": "
|
|
9424
|
-
"sidebar.overviewTab": "
|
|
9540
|
+
"sidebar.runsTab": "Records",
|
|
9541
|
+
"sidebar.overviewTab": "Tasks",
|
|
9425
9542
|
"channels.empty": "No channel conversations yet. Connect a channel in Settings → IM Assistant.",
|
|
9426
9543
|
"channels.loadError": "Could not load channel conversations.",
|
|
9427
9544
|
"channel.dingtalk": "DingTalk",
|
|
@@ -9543,6 +9660,8 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
9543
9660
|
"about.title": "Codex UI",
|
|
9544
9661
|
"about.viewProject": "GitHub",
|
|
9545
9662
|
"about.feedback": "Issues",
|
|
9663
|
+
"about.checkUpdate": "Check for updates",
|
|
9664
|
+
"about.checking": "Checking…",
|
|
9546
9665
|
"about.description": "Adds a Codex-style sidebar, workspace conversation management, search, and turn navigation to DSH.",
|
|
9547
9666
|
"about.features": "Core features",
|
|
9548
9667
|
"about.feature.sidebar": "Codex-style sidebar, global conversation search, and settings entry points",
|
|
@@ -9847,10 +9966,27 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
9847
9966
|
archive: "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"currentColor\" d=\"M15.8659 2.05975C17.2603 2.05995 18.3913 3.19096 18.3914 4.58527V5.4874C18.3914 6.02747 18.2192 6.52672 17.9303 6.93735C17.9336 6.96524 17.9388 6.99318 17.9388 7.02195V12.8884C17.9388 13.6345 17.9395 14.2379 17.8996 14.7254C17.8642 15.1593 17.7936 15.5499 17.6373 15.9141L17.5654 16.0685C17.278 16.6328 16.8405 17.1046 16.3038 17.434L16.0679 17.5661C15.66 17.7739 15.2196 17.8598 14.7237 17.9003C14.2362 17.9401 13.6327 17.9405 12.8867 17.9405H7.11122C6.36511 17.9405 5.76171 17.9401 5.27418 17.9003C4.84051 17.8649 4.44949 17.7952 4.08545 17.6391L3.93104 17.5661C3.36673 17.2785 2.89392 16.8414 2.56465 16.3044L2.43245 16.0685C2.22473 15.6608 2.13878 15.2211 2.09825 14.7254C2.05841 14.2379 2.05912 13.6345 2.05912 12.8884V7.02195C2.05912 6.99284 2.06422 6.96449 2.06758 6.93629C1.77931 6.52592 1.60858 6.02687 1.60858 5.4874V4.58527C1.60876 3.19084 2.73962 2.05975 4.1341 2.05975H15.8659ZM16.4984 7.92936C16.296 7.98169 16.0847 8.01288 15.8659 8.01291H4.1341C3.91478 8.01291 3.70246 7.98194 3.49955 7.92936V12.8884C3.49955 13.6582 3.50053 14.1927 3.53445 14.608C3.56769 15.0146 3.62923 15.244 3.71635 15.415L3.7925 15.5514C3.98339 15.8627 4.25749 16.1165 4.58464 16.2833L4.72529 16.3435C4.88095 16.3993 5.08638 16.4402 5.39158 16.4651C5.80685 16.4991 6.34138 16.5001 7.11122 16.5001H12.8867C13.6564 16.5001 14.1911 16.499 14.6063 16.4651C15.0128 16.432 15.2423 16.3703 15.4133 16.2833L15.5508 16.2061C15.8618 16.0152 16.116 15.7419 16.2827 15.415L16.3429 15.2732C16.3985 15.1177 16.4396 14.9128 16.4645 14.608C16.4985 14.1927 16.4984 13.6583 16.4984 12.8884V7.92936ZM4.1341 3.50019C3.53511 3.50019 3.0492 3.98631 3.04902 4.58527V5.4874C3.04902 6.08649 3.535 6.57248 4.1341 6.57248H15.8659C16.4648 6.57228 16.951 6.08638 16.951 5.4874V4.58527C16.9509 3.98644 16.4647 3.50038 15.8659 3.50019H4.1341Z\"/><path fill=\"currentColor\" d=\"M12.7962 12.5661V11.0832H7.20548V12.5661L12.7962 12.5661Z\"/>",
|
|
9848
9967
|
about: "<path fill=\"currentColor\" d=\"M12.5757 7.00012C12.5757 3.92085 10.0794 1.42463 7.00012 1.42456C3.9208 1.42456 1.42456 3.9208 1.42456 7.00012C1.42463 10.0794 3.92085 12.5757 7.00012 12.5757C10.0793 12.5756 12.5756 10.0793 12.5757 7.00012ZM13.8002 7.00012C13.8001 10.7559 10.7559 13.8001 7.00012 13.8002C3.2443 13.8002 0.199291 10.7559 0.199219 7.00012C0.199219 3.24426 3.24426 0.199219 7.00012 0.199219C10.7559 0.199291 13.8002 3.2443 13.8002 7.00012Z\"/><path fill=\"currentColor\" d=\"M6.18042 8.68184C6.18043 8.09153 6.32893 7.34655 6.92127 6.8481C7.28566 6.54148 7.76104 6.27318 8.0022 6.10811C8.28964 5.91137 8.42234 5.76562 8.48328 5.58944C8.57774 5.31609 8.53121 5.00904 8.34912 4.76741C8.17409 4.53522 7.83879 4.32222 7.28186 4.32222C5.99668 4.32225 5.46969 5.11832 5.46949 5.78939H4.24414C4.24436 4.39942 5.36327 3.09691 7.28186 3.09688C8.17773 3.09688 8.89489 3.45606 9.32752 4.02999C9.75287 4.59438 9.86938 5.32775 9.64026 5.99019C9.44847 6.5444 9.04722 6.87743 8.69434 7.11898C8.29506 7.39226 8.02318 7.52192 7.70996 7.78548C7.51943 7.94582 7.40577 8.24899 7.40577 8.68184V8.75533H6.18042V8.68184Z\"/><path fill=\"currentColor\" d=\"M7.39455 9.44026V10.8109H6.16921V9.44026H7.39455Z\"/>"
|
|
9849
9968
|
};
|
|
9969
|
+
const NAV_ICON_CLASS = "dcu-settings-nav-icon";
|
|
9970
|
+
const NAV_ICON_STYLE_ID = "dcu-settings-nav-icon-style";
|
|
9971
|
+
const NAV_ICON_CSS = `[data-dcu-nav-icon]>svg{display:none!important}.${NAV_ICON_CLASS}{display:inline-block;flex:none;width:16px;height:16px;background:currentColor;-webkit-mask:var(--dcu-settings-nav-icon-mask) center/contain no-repeat;mask:var(--dcu-settings-nav-icon-mask) center/contain no-repeat}`;
|
|
9972
|
+
/** mask 只取 alpha 通道,因此把 currentColor 固定为黑色即可 */
|
|
9973
|
+
function iconMask(id) {
|
|
9974
|
+
const viewBox = id === "archive" ? "0 0 20 20" : id === "about" ? "0 0 14 14" : "0 0 16 16";
|
|
9975
|
+
const paths = SETTINGS_NAV_ICON_HTML[id].replace(/fill="currentColor"/g, "fill=\"black\"");
|
|
9976
|
+
return `url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="${viewBox}">${paths}</svg>`)}")`;
|
|
9977
|
+
}
|
|
9978
|
+
/** 注入导航图标样式;重复安装时复用同一个 style 元素 */
|
|
9979
|
+
function ensureNavIconStyle(doc) {
|
|
9980
|
+
if (doc.getElementById(NAV_ICON_STYLE_ID) !== null) return;
|
|
9981
|
+
const style = doc.createElement("style");
|
|
9982
|
+
style.id = NAV_ICON_STYLE_ID;
|
|
9983
|
+
style.textContent = NAV_ICON_CSS;
|
|
9984
|
+
(doc.head ?? doc.documentElement).appendChild(style);
|
|
9985
|
+
}
|
|
9850
9986
|
const LABEL_ALIASES = [
|
|
9851
9987
|
[["插件市场", "Plugin Market"], "plugins"],
|
|
9852
9988
|
[["内置插件", "Built-in plugins"], "plugins"],
|
|
9853
|
-
[["
|
|
9989
|
+
[["插件管理", "Plugin manager"], "plugins"],
|
|
9854
9990
|
[["专家", "Experts"], "experts"],
|
|
9855
9991
|
[["技能", "Skills"], "skills"],
|
|
9856
9992
|
[["插件", "Plugins"], "plugins"],
|
|
@@ -9884,13 +10020,20 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
9884
10020
|
changed = true;
|
|
9885
10021
|
}
|
|
9886
10022
|
}
|
|
9887
|
-
|
|
9888
|
-
if (
|
|
9889
|
-
|
|
9890
|
-
|
|
9891
|
-
|
|
9892
|
-
|
|
9893
|
-
|
|
10023
|
+
if (button.querySelector(":scope > svg") === null) return changed;
|
|
10024
|
+
if (button.getAttribute("data-dcu-nav-icon") === id && button.querySelector(`.${NAV_ICON_CLASS}`) !== null) return changed;
|
|
10025
|
+
const doc = button.ownerDocument;
|
|
10026
|
+
if (doc === null) return changed;
|
|
10027
|
+
ensureNavIconStyle(doc);
|
|
10028
|
+
button.setAttribute("data-dcu-nav-icon", id);
|
|
10029
|
+
let icon = button.querySelector(`.${NAV_ICON_CLASS}`);
|
|
10030
|
+
if (icon === null) {
|
|
10031
|
+
icon = doc.createElement("span");
|
|
10032
|
+
icon.className = NAV_ICON_CLASS;
|
|
10033
|
+
icon.setAttribute("aria-hidden", "true");
|
|
10034
|
+
button.prepend(icon);
|
|
10035
|
+
}
|
|
10036
|
+
icon.style.setProperty("--dcu-settings-nav-icon-mask", iconMask(id));
|
|
9894
10037
|
return true;
|
|
9895
10038
|
}
|
|
9896
10039
|
function applySettingsNavIcons(root) {
|
|
@@ -9942,6 +10085,11 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
9942
10085
|
return () => {
|
|
9943
10086
|
observer.disconnect();
|
|
9944
10087
|
if (frame !== void 0) window.cancelAnimationFrame(frame);
|
|
10088
|
+
for (const button of document.querySelectorAll("[data-dcu-nav-icon]")) {
|
|
10089
|
+
button.removeAttribute("data-dcu-nav-icon");
|
|
10090
|
+
button.querySelector(`.${NAV_ICON_CLASS}`)?.remove();
|
|
10091
|
+
}
|
|
10092
|
+
if (document.querySelector("[data-dcu-nav-icon]") === null) document.getElementById(NAV_ICON_STYLE_ID)?.remove();
|
|
9945
10093
|
};
|
|
9946
10094
|
}
|
|
9947
10095
|
//#endregion
|
|
@@ -9957,6 +10105,8 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
9957
10105
|
};
|
|
9958
10106
|
}
|
|
9959
10107
|
const FORWARDED_CONFIG_SLOTS = /* @__PURE__ */ new Set([
|
|
10108
|
+
"plugins.tab",
|
|
10109
|
+
"plugins.add.actions",
|
|
9960
10110
|
"plugins.item",
|
|
9961
10111
|
"plugins.bundle.activation",
|
|
9962
10112
|
"plugins.bundle.config",
|
|
@@ -10994,9 +11144,6 @@ html[data-dsh-native-backdrop=mica] .dcu-settings-page,html[data-dsh-native-back
|
|
|
10994
11144
|
ctx.inject(["configForms", "remote.settings"], (settingsCtx) => {
|
|
10995
11145
|
return bindSettingsDocument(settingsCtx, settingsCtx.configForms);
|
|
10996
11146
|
});
|
|
10997
|
-
ctx.inject(["settingsScope", "remote.settings"], (settingsCtx) => {
|
|
10998
|
-
return bindSettingsDocument(settingsCtx, settingsCtx.settingsScope);
|
|
10999
|
-
});
|
|
11000
11147
|
ctx.inject(["configForms"], (configFormsCtx) => {
|
|
11001
11148
|
const configForms = configFormsCtx.configForms;
|
|
11002
11149
|
if (!configForms?.developerTools) return;
|
|
@@ -11866,9 +12013,7 @@ html[data-dsh-native-backdrop=mica] .dcu-settings-page,html[data-dsh-native-back
|
|
|
11866
12013
|
const binding = id === void 0 ? void 0 : ctx.sessions.binding(id);
|
|
11867
12014
|
return prefillNewConversation(binding === void 0 ? void 0 : ctx.conversation.input.for(binding.ctx), text);
|
|
11868
12015
|
},
|
|
11869
|
-
openSession: (sessionId) =>
|
|
11870
|
-
openConversation(ctx, ctx.layout, sessionId);
|
|
11871
|
-
},
|
|
12016
|
+
openSession: (sessionId) => openConversation(ctx, ctx.layout, sessionId),
|
|
11872
12017
|
startSession: (workspaceId) => {
|
|
11873
12018
|
startWorkspaceSession(ctx, workspaceId);
|
|
11874
12019
|
},
|
|
@@ -12005,9 +12150,7 @@ html[data-dsh-native-backdrop=mica] .dcu-settings-page,html[data-dsh-native-back
|
|
|
12005
12150
|
forkSession,
|
|
12006
12151
|
moveSession,
|
|
12007
12152
|
openPath,
|
|
12008
|
-
openSession: (sessionId) =>
|
|
12009
|
-
openConversation(ctx, ctx.layout, sessionId);
|
|
12010
|
-
},
|
|
12153
|
+
openSession: (sessionId) => openConversation(ctx, ctx.layout, sessionId),
|
|
12011
12154
|
renameSession,
|
|
12012
12155
|
renameWorkspace: (workspaceId, title) => ctx.workspaces.rename(workspaceId, title),
|
|
12013
12156
|
insertWorkspaceBefore: (workspaceId, beforeWorkspaceId) => ctx.workspaces.insertBefore(workspaceId, beforeWorkspaceId),
|
|
@@ -12022,11 +12165,24 @@ html[data-dsh-native-backdrop=mica] .dcu-settings-page,html[data-dsh-native-back
|
|
|
12022
12165
|
if (typeof window === "undefined") return () => {};
|
|
12023
12166
|
const sessionId = new URL(window.location.href).searchParams.get("session");
|
|
12024
12167
|
if (sessionId === null || sessionId === "") return () => {};
|
|
12168
|
+
const cleanSessionDeepLink = () => {
|
|
12169
|
+
try {
|
|
12170
|
+
const currentUrl = new URL(window.location.href);
|
|
12171
|
+
currentUrl.searchParams.delete("session");
|
|
12172
|
+
window.history.replaceState(null, "", currentUrl.pathname + currentUrl.search + currentUrl.hash);
|
|
12173
|
+
} catch {}
|
|
12174
|
+
};
|
|
12025
12175
|
let opened = false;
|
|
12026
12176
|
const openDeepLink = () => {
|
|
12027
|
-
if (opened
|
|
12177
|
+
if (opened) return;
|
|
12178
|
+
const decision = deepLinkAction(ctx.sessions.list.getSnapshot().byId, isSessionArchived(ctx, sessionId), sessionId);
|
|
12179
|
+
if (decision === "wait") return;
|
|
12028
12180
|
opened = true;
|
|
12029
|
-
|
|
12181
|
+
if (decision === "clean") {
|
|
12182
|
+
cleanSessionDeepLink();
|
|
12183
|
+
return;
|
|
12184
|
+
}
|
|
12185
|
+
if (!openConversation(ctx, ctx.layout, sessionId)) cleanSessionDeepLink();
|
|
12030
12186
|
};
|
|
12031
12187
|
openDeepLink();
|
|
12032
12188
|
return ctx.sessions.list.subscribe(openDeepLink);
|
package/lib/index.mjs
CHANGED
|
@@ -1896,8 +1896,6 @@ async function moveSessionToWorkspace(services, sessionId, targetWorkspaceId, op
|
|
|
1896
1896
|
}
|
|
1897
1897
|
//#endregion
|
|
1898
1898
|
//#region src/onboarding-settings.ts
|
|
1899
|
-
/** 0.1.5 及更早的设置服务用这个命名空间保存欢迎提示版本。 */
|
|
1900
|
-
const ONBOARDING_SETTINGS_NAMESPACE = "ui-onboarding";
|
|
1901
1899
|
/**
|
|
1902
1900
|
* 停用官方设置壳后,仍登记引导设置。
|
|
1903
1901
|
* 不能 import `@deepseek-ai/dsh-client-ui-settings-general`:裸模块名会向上解析到
|
|
@@ -1913,11 +1911,7 @@ function registerOnboardingSettings(ctx) {
|
|
|
1913
1911
|
const dispose = settings.configure({ auto: false }, ctx.fiber);
|
|
1914
1912
|
return typeof dispose === "function" ? dispose : () => {};
|
|
1915
1913
|
});
|
|
1916
|
-
|
|
1917
|
-
settings.register(ONBOARDING_SETTINGS_NAMESPACE, { welcomeNoticeVersion: { type: "string" } });
|
|
1918
|
-
return;
|
|
1919
|
-
}
|
|
1920
|
-
ctx.logger.warn("[michengai-codex-ui] 当前宿主没有设置 schema 接口,跳过引导设置注册。");
|
|
1914
|
+
ctx.logger.warn("[michengai-codex-ui] 当前宿主缺少 settings.configure 接口,跳过引导设置注册。");
|
|
1921
1915
|
} catch (error) {
|
|
1922
1916
|
ctx.logger.warn("[michengai-codex-ui] 引导设置注册已跳过:%s", error);
|
|
1923
1917
|
}
|
|
@@ -48,7 +48,7 @@ const zh = {
|
|
|
48
48
|
"settings.search": "搜索设置…",
|
|
49
49
|
"settings.personal": "个人",
|
|
50
50
|
"settings.integrations": "集成",
|
|
51
|
-
"settings.pluginConfig": "
|
|
51
|
+
"settings.pluginConfig": "插件管理",
|
|
52
52
|
"settings.records": "记录与应用",
|
|
53
53
|
"settings.general": "常规",
|
|
54
54
|
"settings.permissions": "权限",
|
|
@@ -69,7 +69,7 @@ const zh = {
|
|
|
69
69
|
"sidebar.extensions": "扩展管理",
|
|
70
70
|
"sidebar.experts": "专家",
|
|
71
71
|
"sidebar.skills": "技能",
|
|
72
|
-
"sidebar.plugins": "
|
|
72
|
+
"sidebar.plugins": "插件管理",
|
|
73
73
|
"sidebar.marketplace": "插件市场",
|
|
74
74
|
"sidebar.builtinPlugins": "内置插件",
|
|
75
75
|
"sidebar.connectors": "连接器",
|
|
@@ -79,8 +79,8 @@ const zh = {
|
|
|
79
79
|
"sidebar.tasksTab": "任务",
|
|
80
80
|
"sidebar.channelsTab": "频道",
|
|
81
81
|
"sidebar.scheduleTab": "定时",
|
|
82
|
-
"sidebar.runsTab": "
|
|
83
|
-
"sidebar.overviewTab": "
|
|
82
|
+
"sidebar.runsTab": "记录",
|
|
83
|
+
"sidebar.overviewTab": "任务",
|
|
84
84
|
"channels.empty": "还没有频道会话。先在设置 → IM助理 里连接渠道。",
|
|
85
85
|
"channels.loadError": "无法读取频道会话。",
|
|
86
86
|
"channel.dingtalk": "钉钉",
|
|
@@ -202,6 +202,8 @@ const zh = {
|
|
|
202
202
|
"about.title": "Codex UI",
|
|
203
203
|
"about.viewProject": "GitHub",
|
|
204
204
|
"about.feedback": "问题反馈",
|
|
205
|
+
"about.checkUpdate": "检查更新",
|
|
206
|
+
"about.checking": "正在检查更新…",
|
|
205
207
|
"about.description": "为 DSH 提供 Codex 风格的侧栏、工作区会话管理、搜索与会话轮次导航。",
|
|
206
208
|
"about.features": "基本功能",
|
|
207
209
|
"about.feature.sidebar": "Codex 风格侧栏、全局会话搜索与设置入口",
|
|
@@ -341,7 +343,7 @@ const en = {
|
|
|
341
343
|
"settings.search": "Search settings…",
|
|
342
344
|
"settings.personal": "Personal",
|
|
343
345
|
"settings.integrations": "Integrations",
|
|
344
|
-
"settings.pluginConfig": "Plugin
|
|
346
|
+
"settings.pluginConfig": "Plugin manager",
|
|
345
347
|
"settings.records": "Records and app",
|
|
346
348
|
"settings.general": "General",
|
|
347
349
|
"settings.permissions": "Permissions",
|
|
@@ -362,7 +364,7 @@ const en = {
|
|
|
362
364
|
"sidebar.extensions": "Extensions",
|
|
363
365
|
"sidebar.experts": "Experts",
|
|
364
366
|
"sidebar.skills": "Skills",
|
|
365
|
-
"sidebar.plugins": "
|
|
367
|
+
"sidebar.plugins": "Plugin manager",
|
|
366
368
|
"sidebar.marketplace": "Plugin Market",
|
|
367
369
|
"sidebar.builtinPlugins": "Built-in plugins",
|
|
368
370
|
"sidebar.connectors": "Connectors",
|
|
@@ -372,8 +374,8 @@ const en = {
|
|
|
372
374
|
"sidebar.tasksTab": "Tasks",
|
|
373
375
|
"sidebar.channelsTab": "Channels",
|
|
374
376
|
"sidebar.scheduleTab": "Schedule",
|
|
375
|
-
"sidebar.runsTab": "
|
|
376
|
-
"sidebar.overviewTab": "
|
|
377
|
+
"sidebar.runsTab": "Records",
|
|
378
|
+
"sidebar.overviewTab": "Tasks",
|
|
377
379
|
"channels.empty": "No channel conversations yet. Connect a channel in Settings → IM Assistant.",
|
|
378
380
|
"channels.loadError": "Could not load channel conversations.",
|
|
379
381
|
"channel.dingtalk": "DingTalk",
|
|
@@ -495,6 +497,8 @@ const en = {
|
|
|
495
497
|
"about.title": "Codex UI",
|
|
496
498
|
"about.viewProject": "GitHub",
|
|
497
499
|
"about.feedback": "Issues",
|
|
500
|
+
"about.checkUpdate": "Check for updates",
|
|
501
|
+
"about.checking": "Checking…",
|
|
498
502
|
"about.description": "Adds a Codex-style sidebar, workspace conversation management, search, and turn navigation to DSH.",
|
|
499
503
|
"about.features": "Core features",
|
|
500
504
|
"about.feature.sidebar": "Codex-style sidebar, global conversation search, and settings entry points",
|
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.43",
|
|
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": {
|
|
@@ -77,48 +77,48 @@
|
|
|
77
77
|
"test:fallback-host": "node scripts/verify-plugin-fallback-host.mjs"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
|
-
"@deepseek-ai/cordis": ">=4.0.2 <5.0.0
|
|
81
|
-
"@deepseek-ai/dsh-client-connection": "0.
|
|
82
|
-
"@deepseek-ai/dsh-client-locale": "0.
|
|
83
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.
|
|
84
|
-
"@deepseek-ai/dsh-client-ui-input-trigger": "0.
|
|
85
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.
|
|
86
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.
|
|
87
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.
|
|
88
|
-
"@deepseek-ai/dsh-client-ui-settings-general": "0.
|
|
89
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "0.
|
|
90
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.
|
|
91
|
-
"@deepseek-ai/dsh-client-ui-workspace": "0.
|
|
80
|
+
"@deepseek-ai/cordis": ">=4.0.2 <5.0.0",
|
|
81
|
+
"@deepseek-ai/dsh-client-connection": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
|
|
82
|
+
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
|
|
83
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
|
|
84
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
|
|
85
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
|
|
86
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
|
|
87
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
|
|
88
|
+
"@deepseek-ai/dsh-client-ui-settings-general": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
|
|
89
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
|
|
92
92
|
"react": "^18.2.0",
|
|
93
93
|
"react-dom": "^18.2.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@deepseek-ai/cordis": "4.0.5
|
|
97
|
-
"@deepseek-ai/dsh-api-session-controller": "0.2.1-
|
|
98
|
-
"@deepseek-ai/dsh-api-workspace-controller": "0.2.1-
|
|
99
|
-
"@deepseek-ai/dsh-attachment": "0.2.1-
|
|
100
|
-
"@deepseek-ai/dsh-client-connection": "0.2.1-
|
|
101
|
-
"@deepseek-ai/dsh-client-locale": "0.2.1-
|
|
102
|
-
"@deepseek-ai/dsh-client-store": "0.2.1-
|
|
103
|
-
"@deepseek-ai/dsh-client-test-runtime": "0.2.1-
|
|
104
|
-
"@deepseek-ai/dsh-client-ui-chat": "0.2.1-
|
|
105
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-
|
|
106
|
-
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.1-
|
|
107
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-
|
|
108
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-
|
|
109
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-
|
|
110
|
-
"@deepseek-ai/dsh-client-ui-session": "0.2.1-
|
|
111
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-
|
|
112
|
-
"@deepseek-ai/dsh-client-ui-settings-general": "0.2.1-
|
|
113
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-
|
|
114
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-
|
|
115
|
-
"@deepseek-ai/dsh-client-ui-workspace": "0.2.1-
|
|
116
|
-
"@deepseek-ai/dsh-scope": "0.2.1-
|
|
117
|
-
"@deepseek-ai/dsh-session": "0.2.1-
|
|
118
|
-
"@deepseek-ai/dsh-subagent": "0.2.1-
|
|
119
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.1-
|
|
120
|
-
"@deepseek-ai/dsh-util-workspace-path": "0.2.1-
|
|
121
|
-
"@deepseek-ai/dsh-workspace": "0.2.1-
|
|
96
|
+
"@deepseek-ai/cordis": "4.0.5",
|
|
97
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.2",
|
|
98
|
+
"@deepseek-ai/dsh-api-workspace-controller": "0.2.1-rc.2",
|
|
99
|
+
"@deepseek-ai/dsh-attachment": "0.2.1-rc.2",
|
|
100
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-rc.2",
|
|
101
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.2",
|
|
102
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.2",
|
|
103
|
+
"@deepseek-ai/dsh-client-test-runtime": "0.2.1-rc.2",
|
|
104
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.2.1-rc.2",
|
|
105
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.2",
|
|
106
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.1-rc.2",
|
|
107
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.2",
|
|
108
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.2",
|
|
109
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.2",
|
|
110
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.2",
|
|
111
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.2",
|
|
112
|
+
"@deepseek-ai/dsh-client-ui-settings-general": "0.2.1-rc.2",
|
|
113
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.2",
|
|
114
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.2",
|
|
115
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.2.1-rc.2",
|
|
116
|
+
"@deepseek-ai/dsh-scope": "0.2.1-rc.2",
|
|
117
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.2",
|
|
118
|
+
"@deepseek-ai/dsh-subagent": "0.2.1-rc.2",
|
|
119
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.2",
|
|
120
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.1-rc.2",
|
|
121
|
+
"@deepseek-ai/dsh-workspace": "0.2.1-rc.2",
|
|
122
122
|
"@types/jsdom": "^30.0.0",
|
|
123
123
|
"@types/node": "^26.0.0",
|
|
124
124
|
"@types/react": "~18.3.1",
|