跳至主要內容

DSH 0.1.0-rc.8

用一項簡單的 Agent 任務完成安裝

先複製一項簡短任務。它會告訴 Agent 需要詢問什麼、何時停止,以及安裝前必須透過哪些檢查。

推薦方式 · 一條指令

複製通用安裝任務

Agent 必須先收集精確的主題輸入,再開始操作。如果無法使用 Skills,Agent 會停止並提示你檢視高階手動方式。

請用這個固定 Skill 對一個選定目錄記錄進行分類: https://github.com/LvvUP/dsh-themes-skills/blob/feb600b636cd0cd46494b649666b7325a1b6b449/skills/dsh-theme-finder/SKILL.md Skill:$dsh-theme-finder 只有 hosted-verified-artifact 才使用 $dsh-theme-manager: https://github.com/LvvUP/dsh-themes-skills/blob/feb600b636cd0cd46494b649666b7325a1b6b449/skills/dsh-theme-manager/SKILL.md 只有 external-runtime-verified 才使用 $dsh-community-skin-installer: https://github.com/LvvUP/dsh-themes-skills/blob/feb600b636cd0cd46494b649666b7325a1b6b449/skills/dsh-community-skin-installer/SKILL.md 所選條目沒有可用安裝器或仍待驗證時立即停止。 向我索取精確目錄 URL、包名/版本、製品 URL 或 .tgz 絕對路徑,以及完整 .tgz SHA-256。 驗證後僅透過符合條件的 Skill 安裝,並完成 loopback 驗收和可恢復回滾。 任何不一致或無法讀取 Skill 都要停止;不要手改 DSH 配置。
高階手動安裝與回滾檢視四個階段的命令、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.0-rc.8
Token 目錄雜湊
fe38fdb18dae76f3cc93e3ca3a37bb1916f207180781b1aa8321ee2ddadcb926

Agent Skill 安全契約

專案提供的 Skill 不會直接編輯 ~/.dsh。它會檢查 web profile、驗證下載 hash、移除舊的 @dsh-themes/* 外掛、安裝唯一的精確版本、匯出配置,並記錄回滾狀態。

設計為宣告式

作者提交聲明性值和經過審查的圖像,而不是任意節點程式碼、瀏覽器程式碼、生命週期腳本或依賴項。