跳到主要内容

DSH 0.1.3-alpha.1

先发现,获得授权后再安装

复制一项简短的 #NNNN 任务。Agent 会解析目录记录;缺少精确安装权威时停止,只有获得授权的安装才会在修改 DSH 前完成验证。

推荐方式 · 一条指令

复制通用 #NNNN 任务

只要把严格格式的 #NNNN 告诉 Agent。固定 Skill 可以发现每条记录,但只有明确授权的条目才会继续安装。

请帮我安装 DSH Themes 的 #NNNN,目标是从官方提交 d347e703908d0406b7a7ef80e3a0e594d86b2215 构建的 DeepSeek Harness 0.1.3-alpha.1。 使用这个固定 Skill:https://github.com/LvvUP/dsh-themes-skills/blob/de956d98c80cf5ab60a78df0a534f9f29f348651/skills/dsh-theme-finder/SKILL.md 按编号找到条目,检查我当前的版本及已验证安装包,再完成安装。说明必要配置、确认加载,并保留卸载或恢复方法。如果编号已退选或安装包尚未验证,请停止并清楚说明原因。
高级手动安装与回滚查看四个阶段的命令、Developer Preview 边界、验证流程和精确的回滚步骤。

Developer Preview 边界

DeepSeek Harness 当前只持久化 light、dark 和 system。第三方 Cordis 主题需要重启 DSH,上游发生变化后也可能需要重新验证。

  1. 01

    检查 web profile

    修改前必须确认精确的 DSH 版本,并检查当前是否存在零个或一个 @dsh-themes/* 直接依赖。

    RUNNER=/absolute/path/to/dsh-theme-manager/scripts/run-dsh.mjs
    node "$RUNNER" --version
    node "$RUNNER" --profile web --dump-config
    node "$RUNNER" plugin --profile web list --json
  2. 02

    验证并安装

    使用目录中的完整制品摘要,将验证后的包保存到新的本地绝对路径。仅在当前主题存在时移除它,然后添加已验证的 .tgz 文件。

    node <skill-dir>/scripts/fetch-and-verify.mjs --source <https-or-absolute-local-tgz> --sha256 <whole-artifact-sha256> --output <absolute-new-verified-tgz>
    
    node <skill-dir>/scripts/run-dsh.mjs plugin --profile web remove "@dsh-themes/<current-slug>"
    node <skill-dir>/scripts/run-dsh.mjs plugin --profile web add "<absolute-new-verified-tgz>" --save-exact
  3. 03

    导出配置并重启

    重启前确认目标 Cordis bundle entry 存在,且只有一个 @dsh-themes/* 直接依赖。重启后再验证浏览器插件目录和计算得到的 Token 数值。不要输出 dump-config 中无关的敏感值。

    node <skill-dir>/scripts/run-dsh.mjs --profile web --dump-config
    node <skill-dir>/scripts/run-dsh.mjs plugin --profile web list --json
  4. 04

    按精确版本回滚

    移除当前主题前重新验证记录中的上一制品。如果上一状态是内置配色,则移除当前主题且不安装任何插件包。

    node <skill-dir>/scripts/fetch-and-verify.mjs --source <absolute-previous-theme.tgz> --sha256 <previous-whole-artifact-sha256> --output <absolute-new-rollback-copy.tgz>
    
    node <skill-dir>/scripts/run-dsh.mjs plugin --profile web remove "@dsh-themes/<current-slug>"
    node <skill-dir>/scripts/run-dsh.mjs plugin --profile web add "<absolute-new-rollback-copy.tgz>" --save-exact
    node <skill-dir>/scripts/run-dsh.mjs --profile web --dump-config

为什么主题是 Cordis 插件

DSH Web UI 将 ThemeRuntime 作为客户端服务提供。生成的客户端模块通过 Harness module loader 注册并注入 theme,同时在 ctx.effect 中限定覆盖范围,以便 Cordis 执行 disposer 并恢复状态。

已测试 DSH 版本
0.1.3-alpha.1
Token 目录哈希
fe38fdb18dae76f3cc93e3ca3a37bb1916f207180781b1aa8321ee2ddadcb926

Agent Skill 安全契约

项目提供的 Skill 不会直接编辑 ~/.dsh。它会检查 web profile、验证下载 hash、移除旧的 @dsh-themes/* 插件、安装唯一的精确版本、导出配置,并记录回滚状态。

保留恢复的方法

需要时重启 Harness 并检查效果。安装任务会保留移除条目或恢复之前配置的方法。