@michengai/dsh-codex-ui 1.1.24 → 1.1.26
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 +15 -734
- package/CHANGELOG.zh-CN.md +15 -734
- package/lib/client.js +5 -2
- package/lib/index.mjs +30 -2
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -7021,8 +7021,11 @@ body[data-ds-dark-theme] [data-conversation-scroll]{--dcu-composer-bg:var(--dsw-
|
|
|
7021
7021
|
[data-conversation-scroll] [data-composer-card]>[data-input-scroll]+div>div{gap:4px}
|
|
7022
7022
|
[data-conversation-scroll] [data-composer-card]>[data-input-scroll]+div>div>div{gap:4px}
|
|
7023
7023
|
[data-conversation-scroll] [data-composer-card]>[data-input-scroll]+div :is(button,select):not([role]){min-height:28px;height:28px}
|
|
7024
|
-
|
|
7025
|
-
[data-conversation-scroll] [data-composer-card]>[data-input-scroll]+div button[class$=_primary]:
|
|
7024
|
+
/* 保留 Codex 黑白发送键;使用独立主题颜色,避免壁纸的透明表面令牌影响 currentColor 箭头。 */
|
|
7025
|
+
[data-conversation-scroll] [data-composer-card]>[data-input-scroll]+div button[class$=_primary]{width:28px;transform:none;background:#0f1115;color:#fff}
|
|
7026
|
+
[data-conversation-scroll] [data-composer-card]>[data-input-scroll]+div button[class$=_primary]:hover:not(:disabled){background:#40434a}
|
|
7027
|
+
body[data-ds-dark-theme] [data-conversation-scroll] [data-composer-card]>[data-input-scroll]+div button[class$=_primary]{background:#fff;color:#0f1115}
|
|
7028
|
+
body[data-ds-dark-theme] [data-conversation-scroll] [data-composer-card]>[data-input-scroll]+div button[class$=_primary]:hover:not(:disabled){background:#d5d7dc}
|
|
7026
7029
|
[data-conversation-scroll] [data-composer-card]>[data-input-scroll]+div :is(button,select):focus-visible{outline:2px solid var(--dsw-alias-label-secondary);outline-offset:2px}
|
|
7027
7030
|
@supports(corner-shape:superellipse(1.5)){[data-conversation-scroll] [data-composer-card]{border-radius:25px;corner-shape:superellipse(1.5)}}
|
|
7028
7031
|
@media(max-width:639px){[data-conversation-scroll]{--dcu-composer-shadow:0 0 0 1px #0000000a,0 2px 8px #0000000a,0 4px 40px 8px #00000006}}
|
package/lib/index.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { apply as apply$1 } from "@deepseek-ai/dsh-client-ui-settings-general";
|
|
2
1
|
import { spawn } from "node:child_process";
|
|
3
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
3
|
import { lstat, mkdir, open, readFile, readdir, realpath, rename, rm, unlink, writeFile } from "node:fs/promises";
|
|
@@ -1895,6 +1894,35 @@ async function moveSessionToWorkspace(services, sessionId, targetWorkspaceId, op
|
|
|
1895
1894
|
movingSessions.delete(sessionId);
|
|
1896
1895
|
}
|
|
1897
1896
|
}
|
|
1897
|
+
//#endregion
|
|
1898
|
+
//#region src/onboarding-settings.ts
|
|
1899
|
+
/** 0.1.5 及更早的设置服务用这个命名空间保存欢迎提示版本。 */
|
|
1900
|
+
const ONBOARDING_SETTINGS_NAMESPACE = "ui-onboarding";
|
|
1901
|
+
/**
|
|
1902
|
+
* 停用官方设置壳后,仍登记引导设置。
|
|
1903
|
+
* 不能 import `@deepseek-ai/dsh-client-ui-settings-general`:裸模块名会向上解析到
|
|
1904
|
+
* `~/.dsh/profiles/node_modules` 里的 0.1.2 残留,其 `settings.register` 在新宿主上不存在,
|
|
1905
|
+
* 会让整个渲染进程启动失败。
|
|
1906
|
+
*/
|
|
1907
|
+
function registerOnboardingSettings(ctx) {
|
|
1908
|
+
ctx.inject(["settings"], (settingsCtx) => {
|
|
1909
|
+
const bound = settingsCtx;
|
|
1910
|
+
const settings = bound.settings;
|
|
1911
|
+
try {
|
|
1912
|
+
if (typeof settings?.configure === "function") return bound.effect(() => {
|
|
1913
|
+
const dispose = settings.configure({ auto: false }, ctx.fiber);
|
|
1914
|
+
return typeof dispose === "function" ? dispose : () => {};
|
|
1915
|
+
});
|
|
1916
|
+
if (typeof settings?.register === "function") {
|
|
1917
|
+
settings.register(ONBOARDING_SETTINGS_NAMESPACE, { welcomeNoticeVersion: { type: "string" } });
|
|
1918
|
+
return;
|
|
1919
|
+
}
|
|
1920
|
+
ctx.logger.warn("[michengai-codex-ui] 当前宿主没有设置 schema 接口,跳过引导设置注册。");
|
|
1921
|
+
} catch (error) {
|
|
1922
|
+
ctx.logger.warn("[michengai-codex-ui] 引导设置注册已跳过:%s", error);
|
|
1923
|
+
}
|
|
1924
|
+
});
|
|
1925
|
+
}
|
|
1898
1926
|
/** 校验结构和归属;存储兼容模式保留旧 locale 下合法的大小写变体名称。 */
|
|
1899
1927
|
function parseGroups(value, preserveCaseVariants) {
|
|
1900
1928
|
if (!Array.isArray(value) || value.length > 100) return void 0;
|
|
@@ -2112,7 +2140,7 @@ function sessionMoveAuthenticationError(status, error) {
|
|
|
2112
2140
|
}
|
|
2113
2141
|
/** 提供不泄露地址、命令和凭证的连接器目录。 */
|
|
2114
2142
|
function apply(ctx) {
|
|
2115
|
-
|
|
2143
|
+
registerOnboardingSettings(ctx);
|
|
2116
2144
|
const host = hostServices(ctx);
|
|
2117
2145
|
ctx.effect(() => {
|
|
2118
2146
|
const foregroundExplorer = new ForegroundExplorer();
|
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.26",
|
|
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": {
|