Jesse-njx/dsh-plugin-manager--packages-cli ↗★ 0
@dsh-pm/cli
@dsh-pm/cli — the `dsh pm` command group: search, install, remove, list, update, and doctor for dsh plugins, wiring the registry, installer, and core contract together
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Jesse-njx/dsh-plugin-manager#2da969ab638d8cef21e592e7a3159c6b784ae46b&path:packages/cli说明文档
阅读完整 README ↗dsh pm —— DSH 本该自带的插件管理器
dsh pm 是 DeepSeek Harness 的命令组,围绕官方
dsh plugin 流程补齐「发现 → 安装 → 管理」闭环:在 awesome 列表 / GitHub topic / npm keyword 中搜索,
一行命令从 npm 或 GitHub 安装,按 profile 查看已装内容,检查更新,并用 doctor 做全面审计。
它刻意是官方安装机制之上的薄而诚实的一层:绝不手改 profile 的 cordis.yml,而是通过 installer
驱动 dsh plugin --profile add|remove,并把自有的侧带状态(一个纯 JSON 文件)记录下来,从而能够
列表、更新与审计 —— 官方流程若变化,只需改一个适配层,而不是四个包。
dsh pm search memory → 发现
dsh pm install dsh-memory → 安装到配置的 profiles
dsh pm list → pm 装了什么,按 profile 展示
dsh pm update dsh-memory → 有新版就重装
dsh pm doctor → 审计 manifest、patch、来源、版本漂移
安装
本包就是 pm 命令组本身,把它装进你运行 dsh pm … 的 profile:
dsh plugin --profile default add @dsh-pm/cli # npm(发布后)
dsh plugin --profile default add github:Jesse-njx/dsh-plugin-manager # 或直接来自 monorepo
然后调用:
dsh --profile default pm search memory
dsh --profile default pm install dsh-memory
bundle patch 同时把 pm 注册为 Web UI 斜杠命令(/pm search memory),聊天输入框里也能用。
配置
配置块就是 PmConfig(规范 §5.1),由导出的 schemastery schema(Config)校验。所有字段都有默认值,
下面展示的是文档化取值:
# 在 profile 的 cordis.patch.yml 中
- id: dsh-plugin-manager
config:
registry:
awesomeUrl: https://raw.githubusercontent.com/awesome-dsh-plugin/awesome-dsh-plugin/main/README.md
npmKeyword: dsh
profiles: [default] # install 的目标 profiles
stateFile: ~/.dsh/pm/plugins.json
gitInstall: { depth: 1, build: true }
| 字段 | 默认值 | 含义 |
|---|---|---|
registry.awesomeUrl | awesome-dsh-plugin README 地址 | 发现源 1 |
registry.npmKeyword | dsh | npm 关键词搜索词 |
profiles | ['default'] | install 的目标 profiles |