已核实档案CONF. 80/100官方

Client UI Theme

dsh-client-ui-theme

Theme plugin: ThemeRuntime over the --dsw-* token base stylesheets (static scale + alias semantic layers).

AI 能力插件clientclientclient-ui-theme
类型
插件
client
版本
0.1.1-rc.2
能力包版本
分发
open_source
安装分发方式
资料置信度
80/100
达到公开展示门槛
01

先看结论

基于现有公开资料生成,最后决策仍应核对原始来源。

Theme plugin: ThemeRuntime over the --dsw-* token base stylesheets (static scale + alias semantic layers). The service owns the live theme preference (`light`/`dark`/`system`), resolves `system` through `prefers-color-scheme`, and publishes immutable `ThemeSnapshot`s on the `theme/change` event; it never touches the DOM — ui-layout's presenter applies the resolved snapshot (`html { color-scheme }`, `body[data-ds-dark-theme]`, and inline alias tokens). A loopback browser provides the service immediately with `system`, then loads `ui-theme.preference` in the background and writes each built-in selection through the Host settings API, whose local provider stores it in `$DSH_HOME/settings.yaml` by default; pushed settings changes and reconnects refetch it, rapid selections are serialized in gesture order with namespace revisions, and a rejected latest write reloads the durable value. A remote browser cannot access the privileged settings API, so its selection remains process-local. Third-party registered theme ids remain an in-process extension and do not cross the built-in settings schema; removing one never overwrites the last durable built-in preference. The [Host-backed preferences decision](../../../.agents/notes/implemented/bug-fix/2026-08-06-host-backed-web-preferences.md) owns the persistence boundary.

02

能力

它能让 Agent / 使用者做什么。

  • 适用 Agent:DeepSeek Harness
  • 适配模型:DeepSeek
03

安装与获取

可复现安装方式。

@deepseek-ai/dsh-client-ui-theme

04

来源与核实

保留来源、时间与置信度,供回溯。

来源
DeepSeek Harness 官方 npm @deepseek-ai/dsh(源码仓库 github.com/deepseek-ai/deepseek-harness)
核实日期
2026-09-04
许可证
MIT
05

实效证据

来源可信不等于任务有效。

暂无通过审核、可复现的同任务 A/B 运行证据;本档案仅证明来源可信,不代表实测有效。

Client UI Theme - 档案 - 效率派 · 效率派