DeepSHPlugins
dsh-plugin-diraud 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-plugin-diraud

生態與開發JavaScriptMIT

裝在 DSH 裡的外掛目錄:按來源(官方/自裝)分組展示已安裝外掛,可搜尋,支援啟用/停用、解除安裝和一鍵更新。已釋出 npm 包 dsh-plugin-diraud。

4 Starstttwh 更新時間 2026-08-28
訪問 GitHub 倉庫
dsh-plugin-diraud 專案預覽

專案介紹

中文

裝在 DSH 裡的外掛目錄:按來源(官方/自裝)分組展示已安裝外掛,可搜尋,支援啟用/停用、解除安裝和一鍵更新。已釋出 npm 包 dsh-plugin-diraud。

English

Installed-plugin catalog for DSH: group plugins by origin (official vs self-installed) in a searchable panel with enable/disable, uninstall, and one-click update. Published on npm as dsh-plugin-diraud.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
tttwh
倉庫
tttwh/dsh-plugin-diraud
GitHub Stars
4
Forks
0
開發語言
JavaScript
許可證
MIT
最近推送
2026-08-28
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

63/ 100
維護活躍
91
文件與實用資訊
100
生態關注度
20
安裝便捷訊號
100
專案宣告訊號
100

近 14 天仍在更新;README 含完整安裝與使用說明;關注度尚低(4)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add dsh-plugin-diraud

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-plugin-diraud

English | 中文

A DeepSeek Harness (DSH) plugin-management enhancement: group the plugin list by source so you can tell official plugins apart from the ones you installed yourself at a glance.

Features

  • /plugin-audit command: lists the currently loaded plugins grouped by

official / self-installed, with user / official / keyword filtering;

  • Self-installed plugin toggles (two surfaces):
  • Sidebar footer Plugin Catalog entry (icon button; click to open a

panel): an enable/disable button on every self-installed card;

  • Composer: /plugin-audit disable|enable <keyword>;
  • Both persist to the profile's cordis.patch.yml (kept across restarts,

reversible) and call ctx.loader.update for live effect (HMR-independent); official/builtin plugins are locked;

  • Plugin Catalog panel (sidebar footer entry, since v0.5):
  • Cards grouped by source with a source badge, installed version, entry id

and description; a search box filters by module name / entry id and every section shows a live count; a retry button appears if the list fails to load;

  • Bilingual descriptions (v0.6): a built-in module-name → {zh, en}

dictionary is consulted first so card descriptions follow the UI language, falling back to each package's own description;

  • GitHub link (v0.8): when a package's repository / homepage points

to GitHub, the card shows a GitHub button that opens its full feature documentation (independent of the built-in "Plugin list" page);

  • Self-installed plugin updates (v0.6):
  • The npm registry is checked automatically when the panel opens; the top

"Update" bar shows how many plugins are outdated, with Re-check and Update all buttons, and every registry-installed card has its own Update button plus a progress bar while running (pnpm add <pkg>@latest --config.minimumReleaseAge=0, corepack/npx fallback, live output);

  • GitHub plugin updates (v0.9): plugins installed from github: / git+

/ git:// / git@ specs can be updated even without an npm package — branch/default-branch refs compare the locally-locked commit against the remote HEAD via git ls-remote, tag refs list all tags to find a newer stable tag; updates re-run pnpm add <original spec> (or the new tag spec); refs pinned to a specific commit are marked not auto-updatable;

  • Rename detection (v0.9.1): when an update leaves the old package name

stale but a new package name now points to the same repository, the panel reports "repository renamed (old → new)" with the command to remove the old package, instead of a vague "actual version still not updated";

  • Updates are queued in a module-level store: clicks during a run merge into

the next batch, two pnpm processes are never started concurrently, and the task keeps running (and stays observable) even if you close the panel;

  • Source-aware labeling: desktop-managed link: deps show

"Updating with the desktop app" and local file: / workspace: deps show "Local plugin", so a pnpm exit code 0 is never misreported as an actual update; official/builtin plugins and this plugin itself (installed via link: to protect the dev chain) are locked;

  • Self-installed plugin uninstall (v0.6): every self-installed card has a

red Uninstall button (right-most); it asks for confirmation, runs pnpm remove, disables the button while running, and refreshes the list afterwards. Non-self-installed packages and this plugin itself are rejected;

Screenshot

Sidebar footer Plugin Catalog entry (since v0.5) — click to open the panel: self-installed plugins grouped by origin, each card with an enable/disable toggle:

The top bar shows the update area (可更新: 1 = 1 update available, 重新检查 = re-check, 全部更新 = update all), followed by the search box and the grouped cards. Every card carries the enable/disable toggle, version, GitHub button, update status and uninstall button:

Plugin Catalog

Quick start

Prerequisites: pnpm, the dsh CLI.

# Install (recommended: from npm)
dsh plugin --profile web add dsh-plugin-diraud

# Or from the GitHub main branch
dsh plugin --profile web add https://github.com/tttwh/dsh-plugin-diraud/archive/refs/heads/main.tar.gz

Restart dsh web, then:

  • Type /plugin-audit in the composer, or
  • Click the Plugin Catalog entry at the sidebar footer.

Commands

CommandPurpose
/plugin-auditOverview: self-installed one-by-one + official count
/plugin-audit userSelf-installed only
/plugin-audit officialOfficial only (full list)
/plugin-audit <keyword>Filter by package / entry keyword
/plugin-audit disable <keyword>Disable a matching self-installed plugin (persisted)
/plugin-audit enable <keyword>Enable a matching self-installed plugin (persisted)
dsh plugin --profile web remove dsh-plugin-diraudUninstall
How toggles persist: disable/enable writes a - id: <raw config id> +
disabled: true override into the profile's cordis.patch.yml (the user
config layer). dsh watches that file (watchUserPatches), so the change
applies live without a restart, survives restarts, and deleting the row
restores the default.
Why the raw id (fixed in v0.4): loader entries carry a path-prefixed full
id (include:ssh), but the patch layer matches each config row's own id
field (ssh). Older versions wrote the prefixed id into the patch file, so
the row was skipped at boot ("patch: entry not found") and the toggle was
silently lost on restart. v0.4 writes the raw id, keeps the full id for
ctx.loader.update, and cleans up legacy include:<id> rows.

Configuration

Origin is derived from the package scope by default; edge cases (e.g. a third-party package published under @deepseek-ai/) are overridden via extraUserPackages. Override this plugin's row in the profile's cordis.patch.yml:

- id: plugin-audit
  config:
    extraUserPackages:
      - '@deepseek-ai/dsh-my-fork'   # force-classify as self-installed

Repository layout

dsh-plugin-diraud/
  src/classify.ts        origin-classification pure function (single source of truth)
  src/patch.ts           cordis.patch.yml read/write (persist toggles)
  src/toggle.ts          shared toggle core (persist + ctx.loader.update)
  src/updates.ts         update core: semver compare, registry/git probe, pnpm exec (unit-testable)
  src/gitspec.ts         git-hosted dependency parsing + lockfile/ls-remote helpers (v0.9)
  src/metadata.ts        GitHub repository/homepage → canonical URL (v0.8)
  src/translations.ts    bilingual description dictionary (v0.6)
  src/render.ts          /plugin-audit output rendering (grouped view)
  src/contract.ts        typert wire contract (pluginAudit/toggle)
  src/typert.ts          host manifest registration
  src/runtime.ts         PluginAuditRuntime (@Remote toggle; executeToggle unit-tested)
  src/index.ts           host: /plugin-audit command + remote registration
  src/client/            Sidebar Plugin Catalog entry (React) + toggle buttons + client remote
  src/client/updateStore.ts  module-level update task store (queue + resume)
  build.mjs              esbuild build (host ESM + client bundle)
  cordis.patch.yml       profile bundle patch (inserts this plugin)
  demo/                  demo & verification scripts (real-profile output)

Docs

  • DESIGN.md — design rationale and source evidence (why a new tab

instead of modifying the official one; classification rules and edge cases)

Related

License

MIT · Copyright (c) 2025 tttwh

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案