@michengai/dsh-codex-ui 2.4.3 → 2.4.4
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/lib/client.js +5 -1
- package/lib/composer-plugin.mjs +4 -0
- package/lib/desktop-menu-plugin.mjs +1 -0
- package/lib/index.mjs +21 -8
- package/lib/settings-skin-plugin.mjs +1 -0
- package/lib/sidebar-plugin.mjs +1 -0
- package/lib/theme-plugin.mjs +1 -0
- package/package.json +28 -28
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.4.4] - 2026-11-24
|
|
4
|
+
|
|
5
|
+
- **Full Compatibility with DeepSeek Harness 0.2.3 Series**:
|
|
6
|
+
- Upgraded core compatibility baseline to seamlessly support DeepSeek Harness 0.2.3 and Cordis 4.2.0 runtime;
|
|
7
|
+
- Fixed an issue where custom dragged input width on new conversations did not consistently inherit across session transitions, ensuring width preferences stay seamlessly applied;
|
|
8
|
+
- Fixed an issue where background status probes and composer prediction completions could be blocked under strict host network admission policies, ensuring instant ghost suggestions.
|
|
9
|
+
- **Enhanced Modular Sidebar and Menu Compatibility**:
|
|
10
|
+
- Fully adapted to the latest modular sidebar accordion expansion, ensuring additional panel items open and switch cleanly;
|
|
11
|
+
- Refined input suggestion menu padding and attachment thumbnail spacing across light/dark themes and responsive viewports for consistent visual aesthetics.
|
|
12
|
+
|
|
3
13
|
## [2.4.3] - 2026-11-22
|
|
4
14
|
|
|
5
15
|
- **Improve Prediction Ghost Text Visibility and Layering (Issue #110)**:
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## [2.4.4] - 2026-11-24
|
|
4
|
+
|
|
5
|
+
- **全面适配 DeepSeek Harness 0.2.3 最新版本**:
|
|
6
|
+
- 深度兼容 DeepSeek Harness 0.2.3(含 Cordis 4.2.0)最新版本,全面支持最新宿主的生命周期与路由架构,保障界面各项功能稳定流畅;
|
|
7
|
+
- 解决最新宿主下新建对话时输入框拖拽宽度可能无法正确继承的问题,确保左右拖拽调整的宽度在新建页与已有会话中无缝同步生效;
|
|
8
|
+
- 解决最新宿主网络安全鉴权策略更新后,插件探活与智能预测请求可能遭遇未授权拦截的问题,保证输入补全提示稳定即时响应。
|
|
9
|
+
- **优化侧边栏新版本兼容与交互体验**:
|
|
10
|
+
- 全面兼容最新宿主侧边栏的折叠收纳手风琴机制,支持在侧边栏扩展更多面板时平滑展开与切换;
|
|
11
|
+
- 优化深浅主题及移动端视口下建议菜单与附件缩略图的排版间距,保证视觉呼吸感与一致性。
|
|
12
|
+
|
|
3
13
|
## [2.4.3] - 2026-11-22
|
|
4
14
|
|
|
5
15
|
- **提升输入预测幽灵建议文本的层级显示效果(Issue #110)**:
|
package/lib/client.js
CHANGED
|
@@ -10787,13 +10787,15 @@ html[data-dcu-mobile-web] [data-shortcut-modal="settings"][role="dialog"] {
|
|
|
10787
10787
|
}
|
|
10788
10788
|
for (const root of document.querySelectorAll("[data-phase=hero]")) {
|
|
10789
10789
|
if (mounted.has(root) || !root.querySelector("[data-conversation-scroll]")) continue;
|
|
10790
|
+
const body = root.querySelector("[class*=\"_body\"]");
|
|
10790
10791
|
const clamp = (value) => Math.min(Math.max(640, value), Math.max(640, root.clientWidth - 176));
|
|
10791
10792
|
const current = () => {
|
|
10792
|
-
const raw = getComputedStyle(root).getPropertyValue("--dsh-chat-user-width") || getComputedStyle(root).getPropertyValue("--dsh-chat-content-width");
|
|
10793
|
+
const raw = body?.style.getPropertyValue("--dsh-chat-user-width") || getComputedStyle(root).getPropertyValue("--dsh-chat-user-width") || getComputedStyle(root).getPropertyValue("--dsh-chat-content-width");
|
|
10793
10794
|
return clamp(parseFloat(raw) || 640);
|
|
10794
10795
|
};
|
|
10795
10796
|
const publish = (width, save) => {
|
|
10796
10797
|
const value = clamp(width);
|
|
10798
|
+
body?.style.setProperty("--dsh-chat-user-width", `${value}px`);
|
|
10797
10799
|
root.style.setProperty("--dsh-chat-user-width", `${value}px`);
|
|
10798
10800
|
root.style.setProperty("--dsh-chat-content-width", `${value}px`);
|
|
10799
10801
|
if (save) try {
|
|
@@ -10803,6 +10805,7 @@ html[data-dcu-mobile-web] [data-shortcut-modal="settings"][role="dialog"] {
|
|
|
10803
10805
|
}
|
|
10804
10806
|
};
|
|
10805
10807
|
const initialWidth = current();
|
|
10808
|
+
body?.style.setProperty("--dsh-chat-user-width", `${initialWidth}px`);
|
|
10806
10809
|
root.style.setProperty("--dsh-chat-user-width", `${initialWidth}px`);
|
|
10807
10810
|
root.style.setProperty("--dsh-chat-content-width", `${initialWidth}px`);
|
|
10808
10811
|
const handles = ["left", "right"].map((side) => {
|
|
@@ -11763,6 +11766,7 @@ html[data-dcu-mobile-web] [data-shortcut-modal="settings"][role="dialog"] {
|
|
|
11763
11766
|
/** 新建页底部输入布局;保留宿主节点、插槽与 active 会话底部信息。 */
|
|
11764
11767
|
const NEW_CONVERSATION_STYLE = `
|
|
11765
11768
|
[data-phase=hero]:has([data-conversation-scroll]){container:dcu-new-conversation / inline-size}
|
|
11769
|
+
[data-phase=hero] [class*="_body"]{--dsh-chat-user-width:inherit}
|
|
11766
11770
|
[data-phase=hero] [data-conversation-scroll][class]{--dsh-composer-side-clearance:16px;justify-content:flex-start;scrollbar-gutter:stable both-edges}
|
|
11767
11771
|
[data-phase=hero] [data-composer-seat]{flex:1 0 auto;min-height:100%}
|
|
11768
11772
|
[data-phase=hero] [data-composer-seat]>:has([class*="_composerHero"]){display:flex;flex:1;flex-direction:column}
|
package/lib/composer-plugin.mjs
CHANGED
|
@@ -95,6 +95,7 @@ function apply$1(ctx, config) {
|
|
|
95
95
|
return ws.register({
|
|
96
96
|
kind: "exact",
|
|
97
97
|
path: ENDPOINT,
|
|
98
|
+
auth: "anonymous",
|
|
98
99
|
handler: (request, response) => serveJson(ctx, options, cache, inflight, request, response)
|
|
99
100
|
});
|
|
100
101
|
});
|
|
@@ -104,6 +105,7 @@ function apply$1(ctx, config) {
|
|
|
104
105
|
return ws.register({
|
|
105
106
|
kind: "exact",
|
|
106
107
|
path: STREAM_ENDPOINT,
|
|
108
|
+
auth: "anonymous",
|
|
107
109
|
handler: (request, response) => serveStream(ctx, options, cache, inflight, request, response)
|
|
108
110
|
});
|
|
109
111
|
});
|
|
@@ -885,6 +887,7 @@ function apply(ctx, config) {
|
|
|
885
887
|
const disposeStatus = webServer.register({
|
|
886
888
|
kind: "exact",
|
|
887
889
|
path: statusEndpoint,
|
|
890
|
+
auth: "anonymous",
|
|
888
891
|
handler: (_request, response) => {
|
|
889
892
|
const disabled = isSubPluginDisabledOnDisk("codex-ui-composer", void 0, ctx);
|
|
890
893
|
response.writeHead(200, {
|
|
@@ -900,6 +903,7 @@ function apply(ctx, config) {
|
|
|
900
903
|
const disposeModels = webServer.register({
|
|
901
904
|
kind: "exact",
|
|
902
905
|
path: CODEX_UI_API_ENDPOINTS.composerModels,
|
|
906
|
+
auth: "anonymous",
|
|
903
907
|
handler: async (_request, response) => {
|
|
904
908
|
try {
|
|
905
909
|
const providers = await collectModelCatalog(ctx);
|
package/lib/index.mjs
CHANGED
|
@@ -674,6 +674,7 @@ function registerComposerStatusFallback(ctx) {
|
|
|
674
674
|
return hostServices(ctx).webServer.register({
|
|
675
675
|
kind: "exact",
|
|
676
676
|
path: CODEX_UI_API_ENDPOINTS.composer,
|
|
677
|
+
auth: "anonymous",
|
|
677
678
|
handler: async (request, response) => {
|
|
678
679
|
if (request.method && request.method !== "GET") {
|
|
679
680
|
response.writeHead(405, {
|
|
@@ -726,7 +727,8 @@ async function readRequestBody(request, maxBytes = 32768) {
|
|
|
726
727
|
* 必须在读取请求体及执行副作用前调用;不得将 undefined 以外的拒绝结果当作放行。
|
|
727
728
|
* 发布包信任边界由 tests/business-rest-auth.assert.ts 的真实宿主契约用例验证。
|
|
728
729
|
*/
|
|
729
|
-
function authenticateBusinessRequest(ctx, request, response, errorBody = (_status, message) => ({ error: message })) {
|
|
730
|
+
function authenticateBusinessRequest(ctx, request, response, errorBody = (_status, message) => ({ error: message }), peer) {
|
|
731
|
+
if (peer) return true;
|
|
730
732
|
const reject = (status, message) => {
|
|
731
733
|
response.writeHead(status, {
|
|
732
734
|
"content-type": "application/json; charset=utf-8",
|
|
@@ -737,11 +739,20 @@ function authenticateBusinessRequest(ctx, request, response, errorBody = (_statu
|
|
|
737
739
|
};
|
|
738
740
|
try {
|
|
739
741
|
const connection = ctx.get("connection");
|
|
740
|
-
if (typeof connection
|
|
741
|
-
ctx.logger.warn("Codex UI 业务 REST 认证不可用:缺少 connection
|
|
742
|
+
if (!connection || typeof connection.requestRejection !== "function" && typeof connection.admit !== "function") {
|
|
743
|
+
ctx.logger.warn("Codex UI 业务 REST 认证不可用:缺少 connection 认证接口。");
|
|
742
744
|
return reject(503, "宿主认证服务暂不可用。");
|
|
743
745
|
}
|
|
744
|
-
|
|
746
|
+
let rejection;
|
|
747
|
+
if (typeof connection.admit === "function") {
|
|
748
|
+
const admission = connection.admit(request);
|
|
749
|
+
if (admission && typeof admission === "object") {
|
|
750
|
+
if ("rejection" in admission) {
|
|
751
|
+
const status = admission.rejection;
|
|
752
|
+
rejection = status === 503 ? 403 : status;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
} else if (typeof connection.requestRejection === "function") rejection = connection.requestRejection(request);
|
|
745
756
|
if (rejection !== void 0) return reject(rejection, rejection === 401 ? "请先登录 DSH。" : "已拒绝不可信或跨站请求。");
|
|
746
757
|
return true;
|
|
747
758
|
} catch (error) {
|
|
@@ -774,8 +785,9 @@ function apply(ctx) {
|
|
|
774
785
|
const disposeDependencies = host.webServer.register({
|
|
775
786
|
kind: "exact",
|
|
776
787
|
path: dependenciesEndpoint,
|
|
777
|
-
|
|
778
|
-
|
|
788
|
+
auth: "anonymous",
|
|
789
|
+
handler: async (request, response, peer) => {
|
|
790
|
+
if (!authenticateBusinessRequest(ctx, request, response, void 0, peer)) return;
|
|
779
791
|
const url = new URL(request.url ?? "/", "http://localhost");
|
|
780
792
|
try {
|
|
781
793
|
if (request.method === "GET") {
|
|
@@ -852,8 +864,9 @@ function apply(ctx) {
|
|
|
852
864
|
const disposeSections = host.webServer.register({
|
|
853
865
|
kind: "exact",
|
|
854
866
|
path: CODEX_UI_API_ENDPOINTS.sections,
|
|
855
|
-
|
|
856
|
-
|
|
867
|
+
auth: "anonymous",
|
|
868
|
+
handler: async (request, response, peer) => {
|
|
869
|
+
if (!authenticateBusinessRequest(ctx, request, response, void 0, peer)) return;
|
|
857
870
|
const json = (status, body) => {
|
|
858
871
|
response.writeHead(status, {
|
|
859
872
|
"content-type": "application/json; charset=utf-8",
|
|
@@ -15,6 +15,7 @@ function apply(ctx) {
|
|
|
15
15
|
const dispose = webServer.register({
|
|
16
16
|
kind: "exact",
|
|
17
17
|
path: endpoint,
|
|
18
|
+
auth: "anonymous",
|
|
18
19
|
handler: (_request, response) => {
|
|
19
20
|
const disabled = isSubPluginDisabledOnDisk("codex-ui-settings-skin", void 0, ctx);
|
|
20
21
|
response.writeHead(200, {
|
package/lib/sidebar-plugin.mjs
CHANGED
|
@@ -24,6 +24,7 @@ function apply(ctx) {
|
|
|
24
24
|
const dispose = webServer.register({
|
|
25
25
|
kind: "exact",
|
|
26
26
|
path: endpoint,
|
|
27
|
+
auth: "anonymous",
|
|
27
28
|
handler: (_request, response) => {
|
|
28
29
|
const disabled = isSubPluginDisabledOnDisk(SUB_PLUGIN_ID, void 0, ctx);
|
|
29
30
|
response.writeHead(200, {
|
package/lib/theme-plugin.mjs
CHANGED
|
@@ -24,6 +24,7 @@ function apply(ctx) {
|
|
|
24
24
|
const dispose = webServer.register({
|
|
25
25
|
kind: "exact",
|
|
26
26
|
path: endpoint,
|
|
27
|
+
auth: "anonymous",
|
|
27
28
|
handler: (_request, response) => {
|
|
28
29
|
const disabled = isSubPluginDisabledOnDisk(SUB_PLUGIN_ID, void 0, ctx);
|
|
29
30
|
response.writeHead(200, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michengai/dsh-codex-ui",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.4",
|
|
4
4
|
"description": "DSH Codex UI — 为 DeepSeek Harness 提供极速历史召回、全屏设置皮肤、原生物理毛玻璃换肤、模块化侧栏与桌面原生窗口菜单 · Input enhancement, settings skin, native glass theme, modular sidebar, and desktop titlebar menu for DSH",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -153,33 +153,33 @@
|
|
|
153
153
|
"react-dom": "^18.2.0"
|
|
154
154
|
},
|
|
155
155
|
"devDependencies": {
|
|
156
|
-
"@deepseek-ai/cordis": "4.
|
|
157
|
-
"@deepseek-ai/dsh-api-session-controller": "0.2.
|
|
158
|
-
"@deepseek-ai/dsh-api-workspace-controller": "0.2.
|
|
159
|
-
"@deepseek-ai/dsh-attachment": "0.2.
|
|
160
|
-
"@deepseek-ai/dsh-client-connection": "0.2.
|
|
161
|
-
"@deepseek-ai/dsh-client-locale": "0.2.
|
|
162
|
-
"@deepseek-ai/dsh-client-store": "0.2.
|
|
163
|
-
"@deepseek-ai/dsh-client-test-runtime": "0.2.
|
|
164
|
-
"@deepseek-ai/dsh-client-ui-chat": "0.2.
|
|
165
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.
|
|
166
|
-
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.
|
|
167
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.2.
|
|
168
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.
|
|
169
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.
|
|
170
|
-
"@deepseek-ai/dsh-client-ui-session": "0.2.
|
|
171
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.
|
|
172
|
-
"@deepseek-ai/dsh-client-ui-settings-general": "0.2.
|
|
173
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.
|
|
174
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.
|
|
175
|
-
"@deepseek-ai/dsh-client-ui-theme": "0.2.
|
|
176
|
-
"@deepseek-ai/dsh-client-ui-workspace": "0.2.
|
|
177
|
-
"@deepseek-ai/dsh-scope": "0.2.
|
|
178
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
179
|
-
"@deepseek-ai/dsh-subagent": "0.2.
|
|
180
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.
|
|
181
|
-
"@deepseek-ai/dsh-util-workspace-path": "0.2.
|
|
182
|
-
"@deepseek-ai/dsh-workspace": "0.2.
|
|
156
|
+
"@deepseek-ai/cordis": "4.2.0-alpha.1",
|
|
157
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.3-alpha.2",
|
|
158
|
+
"@deepseek-ai/dsh-api-workspace-controller": "0.2.3-alpha.2",
|
|
159
|
+
"@deepseek-ai/dsh-attachment": "0.2.3-alpha.2",
|
|
160
|
+
"@deepseek-ai/dsh-client-connection": "0.2.3-alpha.2",
|
|
161
|
+
"@deepseek-ai/dsh-client-locale": "0.2.3-alpha.2",
|
|
162
|
+
"@deepseek-ai/dsh-client-store": "0.2.3-alpha.2",
|
|
163
|
+
"@deepseek-ai/dsh-client-test-runtime": "0.2.3-alpha.2",
|
|
164
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.2.3-alpha.2",
|
|
165
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.3-alpha.2",
|
|
166
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.3-alpha.2",
|
|
167
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.3-alpha.2",
|
|
168
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.3-alpha.2",
|
|
169
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.3-alpha.2",
|
|
170
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.3-alpha.2",
|
|
171
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.3-alpha.2",
|
|
172
|
+
"@deepseek-ai/dsh-client-ui-settings-general": "0.2.3-alpha.2",
|
|
173
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.3-alpha.2",
|
|
174
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.3-alpha.2",
|
|
175
|
+
"@deepseek-ai/dsh-client-ui-theme": "0.2.3-alpha.2",
|
|
176
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.2.3-alpha.2",
|
|
177
|
+
"@deepseek-ai/dsh-scope": "0.2.3-alpha.2",
|
|
178
|
+
"@deepseek-ai/dsh-session": "0.2.3-alpha.2",
|
|
179
|
+
"@deepseek-ai/dsh-subagent": "0.2.3-alpha.2",
|
|
180
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.3-alpha.2",
|
|
181
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.3-alpha.2",
|
|
182
|
+
"@deepseek-ai/dsh-workspace": "0.2.3-alpha.2",
|
|
183
183
|
"@types/jsdom": "^30.0.0",
|
|
184
184
|
"@types/node": "^26.0.0",
|
|
185
185
|
"@types/react": "~18.3.1",
|