@michengai/dsh-codex-ui 1.1.31 → 1.1.33
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 +8 -0
- package/CHANGELOG.zh-CN.md +8 -0
- package/lib/client.js +52 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,14 @@ This changelog records recent releases of DSH Codex UI. Earlier changes remain a
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## 1.1.33 - 2026-10-08
|
|
10
|
+
|
|
11
|
+
- Discord and Slack groups in the sidebar now show their brand marks instead of a gray placeholder.
|
|
12
|
+
|
|
13
|
+
## 1.1.32 - 2026-10-08
|
|
14
|
+
|
|
15
|
+
- Creating a session from the sidebar returns to the Tasks tab first. This covers a new task, search, and adding a workspace, so Channels and Schedule no longer stay selected.
|
|
16
|
+
|
|
9
17
|
## 1.1.31 - 2026-10-08
|
|
10
18
|
|
|
11
19
|
- On macOS, the main sidebar stays below the traffic lights in a normal window, including the brand, search, collapse controls, and the compact rail (#38). Fullscreen, Windows, and the browser are unchanged.
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -6,6 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
## 未发布
|
|
8
8
|
|
|
9
|
+
## 1.1.33 - 2026-10-08
|
|
10
|
+
|
|
11
|
+
- 侧栏里的 Discord 和 Slack 分组现在显示品牌图标,不再用灰色占位圆。
|
|
12
|
+
|
|
13
|
+
## 1.1.32 - 2026-10-08
|
|
14
|
+
|
|
15
|
+
- 从侧栏新建会话时会先回到任务页签,包括新建任务、搜索和添加工作区。新建后不再停留在频道或日程页。
|
|
16
|
+
|
|
9
17
|
## 1.1.31 - 2026-10-08
|
|
10
18
|
|
|
11
19
|
- macOS 普通窗口里,主侧栏不再被红绿灯挡住,包括品牌、搜索、收起按钮和窄轨(#38)。全屏、Windows 和浏览器不受影响。
|
package/lib/client.js
CHANGED
|
@@ -1574,6 +1574,42 @@ window.__ModuleLoader__.load({
|
|
|
1574
1574
|
})
|
|
1575
1575
|
]
|
|
1576
1576
|
});
|
|
1577
|
+
if (brand === "discord") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
1578
|
+
className: "dcu-wb-brand",
|
|
1579
|
+
viewBox: "0 -8.5 65 65",
|
|
1580
|
+
width: 16,
|
|
1581
|
+
height: 16,
|
|
1582
|
+
"aria-hidden": "true",
|
|
1583
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
1584
|
+
fill: "#5865F2",
|
|
1585
|
+
d: "M41.2351 0C40.6164 1.09866 40.0607 2.2352 39.5556 3.397C34.7569 2.67719 29.8697 2.67719 25.0584 3.397C24.5658 2.2352 23.9976 1.09866 23.3788 0C18.8705 0.770324 14.4759 2.12155 10.3085 4.02841C2.04967 16.2652 -0.185531 28.1863 0.925755 39.9432C5.76238 43.517 11.1799 46.2447 16.951 47.9874C18.2517 46.2447 19.4009 44.3883 20.3859 42.4562C18.5169 41.7616 16.7111 40.8903 14.981 39.88C15.4356 39.5517 15.8776 39.2107 16.307 38.8824C26.4475 43.6559 38.1917 43.6559 48.3449 38.8824C48.7742 39.236 49.2162 39.577 49.6708 39.88C47.9408 40.9029 46.1349 41.7616 44.2533 42.4688C45.2383 44.4009 46.3875 46.2573 47.6882 48C53.4593 46.2573 58.8768 43.5422 63.7134 39.9684C65.0268 26.3299 61.4656 14.5099 54.3054 4.04104C50.1507 2.13418 45.7561 0.782952 41.2478 0.0252565L41.2351 0ZM21.8003 32.7072C18.6811 32.7072 16.0923 29.8785 16.0923 26.3804C16.0923 22.8824 18.5801 20.041 21.7876 20.041C24.9952 20.041 27.5461 22.895 27.4956 26.3804C27.4451 29.8658 24.9826 32.7072 21.8003 32.7072ZM42.8389 32.7072C39.7071 32.7072 37.1436 29.8785 37.1436 26.3804C37.1436 22.8824 39.6314 20.041 42.8389 20.041C46.0465 20.041 48.5848 22.895 48.5343 26.3804C48.4838 29.8658 46.0213 32.7072 42.8389 32.7072Z"
|
|
1586
|
+
})
|
|
1587
|
+
});
|
|
1588
|
+
if (brand === "slack") return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
1589
|
+
className: "dcu-wb-brand",
|
|
1590
|
+
viewBox: "0 0 127 127",
|
|
1591
|
+
width: 16,
|
|
1592
|
+
height: 16,
|
|
1593
|
+
"aria-hidden": "true",
|
|
1594
|
+
children: [
|
|
1595
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
1596
|
+
fill: "#E01E5A",
|
|
1597
|
+
d: "M27.2 80c0 7.3-5.9 13.2-13.2 13.2C6.7 93.2.8 87.3.8 80c0-7.3 5.9-13.2 13.2-13.2h13.2V80zm6.6 0c0-7.3 5.9-13.2 13.2-13.2 7.3 0 13.2 5.9 13.2 13.2v33c0 7.3-5.9 13.2-13.2 13.2-7.3 0-13.2-5.9-13.2-13.2V80z"
|
|
1598
|
+
}),
|
|
1599
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
1600
|
+
fill: "#36C5F0",
|
|
1601
|
+
d: "M47 27c-7.3 0-13.2-5.9-13.2-13.2C33.8 6.5 39.7.6 47 .6c7.3 0 13.2 5.9 13.2 13.2V27H47zm0 6.7c7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2H13.9C6.6 60.1.7 54.2.7 46.9c0-7.3 5.9-13.2 13.2-13.2H47z"
|
|
1602
|
+
}),
|
|
1603
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
1604
|
+
fill: "#2EB67D",
|
|
1605
|
+
d: "M99.9 46.9c0-7.3 5.9-13.2 13.2-13.2 7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2H99.9V46.9zm-6.6 0c0 7.3-5.9 13.2-13.2 13.2-7.3 0-13.2-5.9-13.2-13.2V13.8C66.9 6.5 72.8.6 80.1.6c7.3 0 13.2 5.9 13.2 13.2v33.1z"
|
|
1606
|
+
}),
|
|
1607
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
1608
|
+
fill: "#ECB22E",
|
|
1609
|
+
d: "M80.1 99.8c7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2-7.3 0-13.2-5.9-13.2-13.2V99.8h13.2zm0-6.6c-7.3 0-13.2-5.9-13.2-13.2 0-7.3 5.9-13.2 13.2-13.2h33.1c7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2H80.1z"
|
|
1610
|
+
})
|
|
1611
|
+
]
|
|
1612
|
+
});
|
|
1577
1613
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
1578
1614
|
className: "dcu-wb-brand",
|
|
1579
1615
|
viewBox: "0 0 16 16",
|
|
@@ -7116,6 +7152,14 @@ html[data-windows-titlebar][data-fullscreen] .dcu-desktop-navigation{display:non
|
|
|
7116
7152
|
});
|
|
7117
7153
|
}
|
|
7118
7154
|
//#endregion
|
|
7155
|
+
//#region src/client/sidebar-session.ts
|
|
7156
|
+
/** 先切回任务页签再创建,避免新建后仍停在频道或日程。 */
|
|
7157
|
+
function beginSidebarSession(setTab, startSession, workspaceId) {
|
|
7158
|
+
setTab("tasks");
|
|
7159
|
+
if (workspaceId === void 0) startSession();
|
|
7160
|
+
else startSession(workspaceId);
|
|
7161
|
+
}
|
|
7162
|
+
//#endregion
|
|
7119
7163
|
//#region src/client/WorkspaceShortcutBridge.tsx
|
|
7120
7164
|
function WorkspaceShortcutBridge({ source, openSearch, startSession, renderDirectoryFlow, t }) {
|
|
7121
7165
|
const { searchRequest, addRequested, bindings } = (0, react.useSyncExternalStore)(source.subscribe, source.getSnapshot, source.getSnapshot);
|
|
@@ -7814,6 +7858,9 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
7814
7858
|
}, []);
|
|
7815
7859
|
const [extensionsOpen, setExtensionsOpen] = (0, react.useState)(readExtensionsOpen);
|
|
7816
7860
|
const [imTab, setImTab] = (0, react.useState)("tasks");
|
|
7861
|
+
const beginSession = (0, react.useCallback)((workspaceId) => {
|
|
7862
|
+
beginSidebarSession(setImTab, startSession, workspaceId);
|
|
7863
|
+
}, [startSession]);
|
|
7817
7864
|
const companionTabs = (0, react.useSyncExternalStore)(companionSlots?.subscribe ?? subscribeEmptyCompanionTabs, companionSlots?.getSnapshot ?? getEmptyCompanionTabs, companionSlots?.getSnapshot ?? getEmptyCompanionTabs);
|
|
7818
7865
|
const showChannels = companionTabs.channels;
|
|
7819
7866
|
const showSchedule = companionTabs.schedule;
|
|
@@ -8006,7 +8053,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
8006
8053
|
className: "dcu-brand",
|
|
8007
8054
|
"aria-label": t("sidebar.newTask"),
|
|
8008
8055
|
onClick: () => {
|
|
8009
|
-
|
|
8056
|
+
beginSession();
|
|
8010
8057
|
},
|
|
8011
8058
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.BrandWordmark, { size: 24 })
|
|
8012
8059
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -8034,7 +8081,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
8034
8081
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
8035
8082
|
type: "button",
|
|
8036
8083
|
onClick: () => {
|
|
8037
|
-
|
|
8084
|
+
beginSession();
|
|
8038
8085
|
},
|
|
8039
8086
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuIcon, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconNewChatOutlineMedium, { size: 16 }) }), t("sidebar.newTask")]
|
|
8040
8087
|
}),
|
|
@@ -8221,7 +8268,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
8221
8268
|
className: "dcu-icon",
|
|
8222
8269
|
"aria-label": t("sidebar.newTask"),
|
|
8223
8270
|
onClick: () => {
|
|
8224
|
-
|
|
8271
|
+
beginSession();
|
|
8225
8272
|
},
|
|
8226
8273
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconNewChatOutlineMedium, { size: 16 })
|
|
8227
8274
|
}),
|
|
@@ -8304,7 +8351,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
8304
8351
|
openPlugins,
|
|
8305
8352
|
settingsSeat,
|
|
8306
8353
|
openSession,
|
|
8307
|
-
startSession,
|
|
8354
|
+
startSession: beginSession,
|
|
8308
8355
|
t,
|
|
8309
8356
|
useSessions,
|
|
8310
8357
|
useWorkspaces
|
|
@@ -8313,7 +8360,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
8313
8360
|
source: workspaceShortcuts,
|
|
8314
8361
|
openSearch,
|
|
8315
8362
|
startSession: (id) => {
|
|
8316
|
-
|
|
8363
|
+
beginSession(id);
|
|
8317
8364
|
},
|
|
8318
8365
|
renderDirectoryFlow: (owner) => renderSlot("sidebar.codex.directoryFlow", owner),
|
|
8319
8366
|
t
|
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.33",
|
|
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": {
|