README来源: main@fd53d899
dsh-long-plugins
Merged plugin bundle for DeepSeek Harness (DSH) Web: upload manager, workspace 输出文件 section, 技能文档 (skill docs) browser, and DeepSeek account balance — all in one installable plugin.
一个插件整合 DSH Web 的常用增强:上传管理、工作区「输出文件」面板、技能文档浏览、账户余额显示。
Features / 功能
| Feature | 说明 |
|---|---|
| Upload manager | 输入框回形针按钮上传本地文件,待发送文件栏管理,设置面板「上传文件」(预览/下载/删除) |
| Workspace output files | 设置面板「输出文件」:按工作区文件夹分组、预览、编辑/保存、复制全部、放大窗口 |
| Skill docs | 设置面板「技能文档」:按技能目录浏览 SKILL.md、弹窗预览、编辑/保存、复制、放大窗口 |
| Account balance | 输入框下方显示 DeepSeek 账户余额(60s 自动刷新) |
| Mobile layout | 手机端布局优化(输入栏、设置面板、主题选择、模型选择器) |
Install / 安装
Clone anywhere, then run install.sh against a DSH profile:
git clone https://github.com/jackylong1987/dsh-long-plugins.git
cd dsh-long-plugins
./install.sh web /volume1/dsh # profile, DSH_HOME
install.sh adds the file: dependency and bundle entry to the profile's
package.json, then runs pnpm install.
Manual / 手动
Add to <DSH_HOME>/profiles/<profile>/package.json:
{
"dependencies": { "dsh-long-plugins": "file:/path/to/dsh-long-plugins" },
"dsh": { "profile": { "bundles": ["dsh-long-plugins"] } }
}
Then pnpm install.
Configuration / 配置
Add to the profile's cordis.patch.yml:
- id: dsh-long-plugins
config:
priority: -10
trustedHosts: !!js ctx.webRuntime.trustedHosts
skillsRoot: /volume1/homes/dsh/skills # override the default <DSH_HOME>/skills
trustedHosts— required for the browser trust fence (same as the built-in Web API).skillsRoot— root directory browsed by the「技能文档」section. Defaults to<DSH_HOME>/skills.
Server routes / 服务端路由
/api/dsh-uploads/workspace output files (grouped by folder)
/api/dsh-uploads/workspace-file preview / download
/api/dsh-uploads/workspace-file/delete delete (POST)
/api/dsh-uploads/workspace-file/save save edited content (POST)
/dsh-skill-docs/skill-docs skill docs list (grouped by skill)
/dsh-skill-docs/skill-doc preview / download
/dsh-skill-docs/skill-doc/save save (POST)
/dsh-token-usage/balance DeepSeek account balance proxy
Plus the upload manager's core routes (/api/dsh-uploads, download, preview).
Important / 注意
- The web server must be started with
--expose-internals(the bundledstart.shalready does) so the plugin can be resolved from the profile. - The bundle patch declares
inject: [webRuntime]sotrustedHostsis evaluated only after the web runtime mounts.
License
MIT
还没有评论,来写第一条。