@michengai/dsh-codex-ui 1.1.47 → 1.1.48
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 +4 -0
- package/CHANGELOG.zh-CN.md +4 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/lib/client.js +29 -13
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.48 (2026-10-24)
|
|
4
|
+
|
|
5
|
+
- Support DeepSeek Harness `0.2.1-rc.3` while retaining all existing supported versions.
|
|
6
|
+
|
|
3
7
|
## 1.1.47 (2026-10-22)
|
|
4
8
|
|
|
5
9
|
- Prevent interaction lockup during sidebar collapse by removing blocking `pointer-events: none` and settling state on `transitionend` with a timeout fallback (#57).
|
package/CHANGELOG.zh-CN.md
CHANGED
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.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.
|
|
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`, `0.2.1-rc.2`, and `0.2.1-rc.3` (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.42` 已对齐自研插件规范,彻底移除 `0.2.0` 以前的历史宿主支持,显式声明支持 DSH `0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1` 和 `0.2.1-rc.
|
|
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.3`。开发依赖钉在 `0.2.1-rc.2`。兼容范围声明不代表本次发布重新完成了所有宿主版本的实机测试。
|
|
28
28
|
|
|
29
29
|
**不要同时启用 Codex UI 与 `ds-bot`。** 两者都重绘侧栏与会话界面,插槽归属和布局样式高度重叠。使用其中一个前,请先停用或卸载另一个。
|
|
30
30
|
|
package/lib/client.js
CHANGED
|
@@ -10026,9 +10026,25 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
10026
10026
|
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\"/>",
|
|
10027
10027
|
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\"/>"
|
|
10028
10028
|
};
|
|
10029
|
-
const NAV_ICON_CLASS = "dcu-settings-nav-icon";
|
|
10030
10029
|
const NAV_ICON_STYLE_ID = "dcu-settings-nav-icon-style";
|
|
10031
|
-
const NAV_ICON_CSS =
|
|
10030
|
+
const NAV_ICON_CSS = [
|
|
10031
|
+
"[data-dcu-nav-icon] > svg { display: none !important; }",
|
|
10032
|
+
"[data-dcu-nav-icon]::before {",
|
|
10033
|
+
" content: '';",
|
|
10034
|
+
" flex: none;",
|
|
10035
|
+
" width: 16px;",
|
|
10036
|
+
" height: 16px;",
|
|
10037
|
+
" background-color: currentColor;",
|
|
10038
|
+
" -webkit-mask: var(--dcu-settings-nav-icon-mask) center / contain no-repeat;",
|
|
10039
|
+
" mask: var(--dcu-settings-nav-icon-mask) center / contain no-repeat;",
|
|
10040
|
+
" -webkit-mask-repeat: no-repeat;",
|
|
10041
|
+
" mask-repeat: no-repeat;",
|
|
10042
|
+
" -webkit-mask-position: center;",
|
|
10043
|
+
" mask-position: center;",
|
|
10044
|
+
" -webkit-mask-size: 16px 16px;",
|
|
10045
|
+
" mask-size: 16px 16px;",
|
|
10046
|
+
"}"
|
|
10047
|
+
].join("\n");
|
|
10032
10048
|
/** mask 只取 alpha 通道,因此把 currentColor 固定为黑色即可 */
|
|
10033
10049
|
function iconMask(id) {
|
|
10034
10050
|
const viewBox = id === "archive" ? "0 0 20 20" : id === "about" ? "0 0 14 14" : "0 0 16 16";
|
|
@@ -10068,7 +10084,14 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
10068
10084
|
}
|
|
10069
10085
|
function applySettingsNavIcon(button) {
|
|
10070
10086
|
const id = settingsNavIconId(button.textContent ?? "");
|
|
10071
|
-
if (id === void 0)
|
|
10087
|
+
if (id === void 0) {
|
|
10088
|
+
if (button.hasAttribute("data-dcu-nav-icon")) {
|
|
10089
|
+
button.removeAttribute("data-dcu-nav-icon");
|
|
10090
|
+
button.style.removeProperty("--dcu-settings-nav-icon-mask");
|
|
10091
|
+
return true;
|
|
10092
|
+
}
|
|
10093
|
+
return false;
|
|
10094
|
+
}
|
|
10072
10095
|
let changed = false;
|
|
10073
10096
|
if (id === "about") {
|
|
10074
10097
|
if (!button.hasAttribute("data-dcu-settings-about-last")) {
|
|
@@ -10081,19 +10104,12 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
10081
10104
|
}
|
|
10082
10105
|
}
|
|
10083
10106
|
if (button.querySelector(":scope > svg") === null) return changed;
|
|
10084
|
-
if (button.getAttribute("data-dcu-nav-icon") === id
|
|
10107
|
+
if (button.getAttribute("data-dcu-nav-icon") === id) return changed;
|
|
10085
10108
|
const doc = button.ownerDocument;
|
|
10086
10109
|
if (doc === null) return changed;
|
|
10087
10110
|
ensureNavIconStyle(doc);
|
|
10088
10111
|
button.setAttribute("data-dcu-nav-icon", id);
|
|
10089
|
-
|
|
10090
|
-
if (icon === null) {
|
|
10091
|
-
icon = doc.createElement("span");
|
|
10092
|
-
icon.className = NAV_ICON_CLASS;
|
|
10093
|
-
icon.setAttribute("aria-hidden", "true");
|
|
10094
|
-
button.prepend(icon);
|
|
10095
|
-
}
|
|
10096
|
-
icon.style.setProperty("--dcu-settings-nav-icon-mask", iconMask(id));
|
|
10112
|
+
button.style.setProperty("--dcu-settings-nav-icon-mask", iconMask(id));
|
|
10097
10113
|
return true;
|
|
10098
10114
|
}
|
|
10099
10115
|
function applySettingsNavIcons(root) {
|
|
@@ -10147,7 +10163,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
10147
10163
|
if (frame !== void 0) window.cancelAnimationFrame(frame);
|
|
10148
10164
|
for (const button of document.querySelectorAll("[data-dcu-nav-icon]")) {
|
|
10149
10165
|
button.removeAttribute("data-dcu-nav-icon");
|
|
10150
|
-
button.
|
|
10166
|
+
button.style.removeProperty("--dcu-settings-nav-icon-mask");
|
|
10151
10167
|
}
|
|
10152
10168
|
if (document.querySelector("[data-dcu-nav-icon]") === null) document.getElementById(NAV_ICON_STYLE_ID)?.remove();
|
|
10153
10169
|
};
|
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.48",
|
|
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": {
|
|
@@ -78,17 +78,17 @@
|
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
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",
|
|
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 || 0.2.1-rc.3",
|
|
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 || 0.2.1-rc.3",
|
|
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 || 0.2.1-rc.3",
|
|
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 || 0.2.1-rc.3",
|
|
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 || 0.2.1-rc.3",
|
|
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 || 0.2.1-rc.3",
|
|
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 || 0.2.1-rc.3",
|
|
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 || 0.2.1-rc.3",
|
|
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 || 0.2.1-rc.3",
|
|
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 || 0.2.1-rc.3",
|
|
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 || 0.2.1-rc.3",
|
|
92
92
|
"react": "^18.2.0",
|
|
93
93
|
"react-dom": "^18.2.0"
|
|
94
94
|
},
|