@lemoncat7/dsh-theme-xiaohei 0.3.5 → 0.4.1
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/README.md +3 -1
- package/docs/releases/0.4.1.md +14 -0
- package/lib/bloub-heixiu/signals.js +3 -1
- package/lib/client-entry.d.ts +3 -0
- package/lib/client-entry.js +3 -0
- package/lib/client.js +53 -4604
- package/lib/current-session.d.ts +6 -0
- package/lib/current-session.js +5 -0
- package/lib/state.js +3 -2
- package/package.json +14 -12
package/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# Xiaohei Night for DSH
|
|
2
2
|
|
|
3
|
+
> 当前正式版 **0.4.1**,适配并验证 **DSH 0.1.7-rc.2**。插件为正式版,宿主仍为 RC;不支持直接用于旧宿主。Node.js **^22.19.0 或 >=24.0.0**。旧版源码保留于 `pre-dsh-0.1.7-rc.2`;详见 [0.4.1 发布说明](docs/releases/0.4.1.md)。
|
|
4
|
+
|
|
3
5
|
`Xiaohei Night` 是一个基于 DeepSeek Harness 官方主题注册接口开发的非官方粉丝主题插件。主题以低饱和天空、日夜光线和坐在小平台上的人形小黑表达陪伴感,保留原生工作台布局。
|
|
4
6
|
|
|
5
7
|
## 兼容性
|
|
6
8
|
|
|
7
|
-
正式版 `0.
|
|
9
|
+
正式版 `0.4.1` 适配并验证 DeepSeek Harness `0.1.7-rc.2`,开发依赖锁定该宿主版本,需要 Node.js `^22.19.0` 或 `>=24.0.0`。旧宿主请保留 `0.3.5`。保留侧栏操作与仅思考消息显示修复,不修改官方核心代码。“跟随系统”读取当前设备/浏览器配色偏好,不按服务器时间切换。
|
|
8
10
|
|
|
9
11
|
## 当前范围
|
|
10
12
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# 0.4.1 · 适配 DSH 0.1.7-rc.2
|
|
2
|
+
|
|
3
|
+
插件正式版,已验证宿主 **DSH 0.1.7-rc.2**;Node.js **^22.19.0 或 >=24.0.0**。宿主仍为 RC,不声明兼容未经测试的版本。
|
|
4
|
+
|
|
5
|
+
## 更新
|
|
6
|
+
|
|
7
|
+
精简浏览器入口导出并压缩打包;保留角色资产,不包含挂饰初始化优化。
|
|
8
|
+
|
|
9
|
+
## 验证与升级
|
|
10
|
+
|
|
11
|
+
- 本地构建及相关测试通过,代码已在正式容器完成页面/API 检查。
|
|
12
|
+
- 设置样式已由用户验收;未穷举 Windows/macOS 桌面环境。
|
|
13
|
+
- 不修改数据库结构或用户配置;升级前建议备份,回退可安装 0.4.0。
|
|
14
|
+
- 安装:`npm install @lemoncat7/dsh-theme-xiaohei@0.4.1`。
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { currentSession } from '../current-session.js';
|
|
1
2
|
/** Small local read model. No messages, RPCs, history scans or persisted state. */
|
|
2
3
|
export function createHeixiuSignals() {
|
|
3
4
|
let value = { running: false, notice: null, revision: 0 };
|
|
@@ -32,7 +33,8 @@ export function bindHeixiuSessions(sessions, signals) {
|
|
|
32
33
|
previous = next;
|
|
33
34
|
};
|
|
34
35
|
const select = () => {
|
|
35
|
-
const
|
|
36
|
+
const snapshot = sessions.list.getSnapshot();
|
|
37
|
+
const id = currentSession(snapshot);
|
|
36
38
|
const next = id ? sessions.binding(id)?.session : undefined;
|
|
37
39
|
if (next === face)
|
|
38
40
|
return;
|