dsh-web-plugin-explain

by 2710165659

1 工具与能力github收录于 08-23

dsh Web 插件:在 设置→插件 的「插件列表」里展示每个插件的 package.json 描述,第三方插件带「第三方」标签,支持按描述搜索

安装

dsh plugin --profile web add github:2710165659/dsh-web-plugin-explain

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

Web 设置 → 插件 里的"插件列表"标签页增强:每个插件卡片展开后显示插件包自身 package.json 的 description 原文,第三方插件在名字后面带一个小标签,搜索框支持按描述搜索。

它做什么

功能

  • 统一描述来源:内置插件与第三方插件一视同仁,展开卡片都只显示该插件模块 package.json 的 description 原文(解析不到时显示 —)。
  • 第三方标签:不属于 DeepSeek / Cordis 的插件(模块名不以 @deepseek-ai/、cordis: 开头)在卡片名字后面显示「第三方」小标签;@deepseek-ai/* 与 cordis:* 内置行即使字典未覆盖也绝不误标。
  • 按描述搜索:搜索框匹配 id、模块名、描述(第三方行还匹配「第三方」标签文本)。
  • 尽力而为:描述解析失败(如 Remote 不可用)只影响描述行,插件列表本身始终正常渲染。

安装(一行搞定)

插件已发布到 npm,无需克隆仓库或本地构建:

dsh plugin --profile web add dsh-web-plugin-explain

装完重启 dsh web(typert-loader 会在启动时注册本插件的 strict 端点),打开 设置 → 插件 → 「插件列表」,展开任意插件卡片即可看到描述。

dsh plugin add 会自动识别包里的 dsh.bundle 声明,把它追加为 web profile 的一层;zod 与 @deepseek-ai/dsh-client-* 等依赖由 pnpm 自动安装。

从源码安装(开发 / 改代码时)

git clone https://github.com/2710165659/dsh-web-plugin-explain.git
cd dsh-web-plugin-explain
npm install
npm run build          # 构建 lib/(index.js + client.js + typert.host.js)

dsh plugin --profile web add ./dsh-web-plugin-explain

同样重启 dsh web 生效。

卸载

dsh plugin --profile web remove dsh-web-plugin-explain

重启 dsh web 后恢复内置的插件列表。

License

MIT

原始 README: https://github.com/2710165659/dsh-web-plugin-explain/blob/main/README.md ↗