@anionex/dsh-eye-care 0.1.0 → 0.1.2

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 ADDED
@@ -0,0 +1,8 @@
1
+ # Changelog
2
+
3
+ ## 0.1.2 — 2026-10-01
4
+
5
+ - Adapt Settings Config projection, authenticated loopback RPC, client store bundling, and theme token layers for DSH `0.2.0-rc.2`. Keep the legacy Settings path and preserve the original Appearance preference across reloads.
6
+ - 适配新版 Settings 投影、带认证的本机 RPC、客户端状态库及主题 token 层;保留旧版 Settings 路径,并在刷新后保留原始外观恢复值。
7
+ - Verification: unit tests plus real packed Web installation, settings persistence, and a DSH `0.1.5-rc.1` regression profile. No stable DSH release existed at the 2026-10-01 verification time.
8
+ - 验证包含单元测试、真实压缩包 Web 安装和设置持久化,以及旧版 Profile 回归。2026-10-01 核实时官方尚无正式稳定版。
package/README.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write dsh-eye-care/README.md
5
- README.md: a1992d36826adbbf5be6abd43bcad4b5366b643c
6
- README.zh.md: 19f5bcd0d176715622aaaf6598606a3dc4bab44e
5
+ README.md: 9a757c05b4f3e31fe53a57b086f94cad7a857c99
6
+ README.zh.md: b1b1008d84fdb98acb443c1f32316c7f06ca9f3c
package/README.md CHANGED
@@ -53,12 +53,13 @@ Open **Settings → General → Eye care** and choose a mode and warmth.
53
53
 
54
54
  ## How it works
55
55
 
56
- The Host half registers the `eye-care` Settings namespace and exposes a loopback-only Connection RPC channel `/eye-care`. Writes are serialized and fenced by `expectedRevision`; a conflict re-reads the Host snapshot and retries the latest intent.
56
+ The Host half uses the legacy `eye-care` Settings namespace or the modern `dsh-eye-care` Config projection, and exposes the loopback-only `/eye-care` RPC route. Writes are serialized and fenced by `expectedRevision`; a conflict re-reads the Host snapshot and retries the latest intent.
57
57
 
58
- The browser half registers the six themes, injects the General-settings row, and owns the controller lifecycle. The controller subscribes to `theme/change` and `prefers-color-scheme`, restores the pre-eye-care theme on disable or unload, and unregisters every theme on dispose. Remote browsers do not inject the Host RPC and therefore stay process-local.
58
+ The browser half registers six palettes and injects the General-settings row. On newer hosts it uses the public theme token layer so ConfigForms refreshes cannot clear the warmth. The original built-in Appearance preference is retained across reloads and restored on disable. Legacy hosts continue using registered themes. The controller removes its listeners, themes, and token layer on disposal. Remote browsers keep preferences process-local.
59
59
 
60
60
  ## Compatibility and limitations
61
61
 
62
+ - Candidate 0.1.2 targets DSH `0.2.0-rc.2`; Web installation, loading, mode changes, and persistence were tested, with a `0.1.5-rc.1` regression profile. Publication is pending.
62
63
  - Requires a DeepSeek Harness Web profile with the standard `settings`, `connection`, `locale`, `slots`, and `theme` services.
63
64
  - A native Appearance change is treated as an explicit opt-out by design.
64
65
  - Remote browser sessions do not persist eye care back to the Host.
package/README.zh.md CHANGED
@@ -53,12 +53,13 @@ dsh web
53
53
 
54
54
  ## 工作原理
55
55
 
56
- Host 半区注册 `eye-care` Settings 命名空间,并暴露仅限 loopback 的 Connection RPC 通道 `/eye-care`。写入串行执行,并以 `expectedRevision` 做版本栅栏;发生冲突时重新读取 Host 快照,再重试最新意图。
56
+ Host 半区使用旧版 `eye-care` Settings 命名空间或新版 `dsh-eye-care` Config 投影,并提供仅限 loopback 的 `/eye-care` RPC 路由。写入串行执行,并以 `expectedRevision` 做版本栅栏;发生冲突时重新读取 Host 快照,再重试最新意图。
57
57
 
58
- Browser 半区注册六套主题,注入 General 设置行,并管理控制器生命周期。控制器订阅 `theme/change` 与 `prefers-color-scheme`,在关闭或卸载时恢复启用护眼前的主题,并在 dispose 时注销全部主题。远程浏览器不注入 Host RPC,因此选择保持进程本地。
58
+ Browser 半区注册六套配色,并注入 General 设置行。在新版宿主中使用公开的主题 token 层,避免 ConfigForms 刷新清除暖色;原始内置外观选择会跨刷新保留,并在关闭护眼时恢复。旧版宿主继续使用注册主题。控制器销毁时清除监听、主题和 token 层。远程浏览器的选择仅在当前浏览器生效。
59
59
 
60
60
  ## 兼容性与限制
61
61
 
62
+ - 候选版 0.1.2 面向 DSH `0.2.0-rc.2`;已实测 Web 安装、加载、模式切换和持久化,并用 `0.1.5-rc.1` Profile 回归。尚未发布。
62
63
  - 需要包含标准 `settings`、`connection`、`locale`、`slots` 和 `theme` 服务的 DeepSeek Harness Web Profile。
63
64
  - 原生外观切换按设计视为明确退出护眼模式。
64
65
  - 远程浏览器会话不会把护眼选择回写到 Host。