Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

55 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

dshplugin · 自研 DSH 插件仓库

收集我做的所有 DeepSeek Harness(DSH)插件。一个插件一个顶层目录,目录名即插件名,直接放在仓库根,每个插件自带 README、安装脚本与适配基线说明。

仓库有两个副本:GitHub https://github.com/kingcuty/dsh-plugin(公开,可匿名 clone、raw 链接可直接下载);Gitee https://gitee.com/rhtcai/dshplugin(私有,需有访问权限的账号)。两边内容同步。

插件清单

插件 做什么 形态 适配基线 目录
dsh-mobile-ui DSH Web 移动端 UI 优化(iOS / Android / 鸿蒙 UA 生效):侧栏改悬浮抽屉、底部输入区可收缩成圆点、设置面板整屏化、手机下隐藏滚动条 标准 DSH profile 插件包(dsh plugin add,不动 DSH 源码) DSH 0.1.5-rc 系 dsh-mobile-ui/
dsh-access-management 设置页新增「访问」分区:命名登录令牌 + 一次性登录链接 + 设备列表 / 重命名 / 登出 / 整批吊销 DSH 源码补丁包(目标机需是 DSH 源码检出) DSH 0.1.5-rc.2(c291e79) dsh-access-management/

安装:两类插件方式不同

1)profile 插件包(推荐,可干净卸载)

不动 DSH 源码,只写用户级 profile(~/.dsh/profiles/<name>/),升级 DSH 不受影响。

# 一行(GitHub 公开副本,无需任何凭据;把插件名换掉即可装任意插件)
tmp=$(mktemp -d) && git clone --depth 1 https://github.com/kingcuty/dsh-plugin.git "$tmp/dsh-plugin" \
  && bash "$tmp/dsh-plugin/dsh-mobile-ui/install.sh"

# Gitee 私有副本(需已配好 Gitee SSH key),路径换成 $tmp/dshplugin 同理
tmp=$(mktemp -d) && git clone --depth 1 git@gitee.com:rhtcai/dshplugin.git "$tmp/dshplugin" \
  && bash "$tmp/dshplugin/dsh-mobile-ui/install.sh"

# 或者分两步:先 clone,再按插件跑各自的 install.sh
git clone --depth 1 https://github.com/kingcuty/dsh-plugin.git
bash dsh-plugin/dsh-mobile-ui/install.sh        # 一键:备份 profile → dsh plugin add → 自查提示

# 等价的纯手工方式:
dsh plugin --profile web add ./dsh-plugin/dsh-mobile-ui
systemctl --user restart dsh-web                        # bundles 层栈在进程启动时组装,装完重启一次

2)源码补丁包(给 DSH 源码检出用)

git clone --depth 1 https://github.com/kingcuty/dsh-plugin.git   # 公开副本,无需凭据
cd /path/to/deepseek-harness
bash ../dsh-plugin/dsh-access-management/install.sh --repo .   # git am 补丁 → pnpm install → pnpm run build
bash ../dsh-plugin/dsh-access-management/verify.sh  --repo .   # 自检

细节见该目录下的 交付说明.md(含前置条件、页面验证清单、回滚与排障)。

公开副本:把一条链接发出去就能装

GitHub 副本是公开的,raw 链接稳定且无需任何凭据——把下面这段直接发给对方即可:

curl -fL -o /tmp/dsh-mobile-ui.tgz \
  https://raw.githubusercontent.com/kingcuty/dsh-plugin/main/dsh-mobile-ui/dist/dsh-mobile-ui-0.3.12.tgz
dsh plugin --profile web add /tmp/dsh-mobile-ui.tgz
systemctl --user restart dsh-web        # 首次装完重启一次

(浏览器打开 https://github.com/kingcuty/dsh-plugin 即可匿名浏览与下载,无需登录。)

新版发布流程:在插件目录 `npm pack --pack-destination dist`,把新 tarball 一起提交,然后把上面链接里的版本号换掉。

目录约定

<插件名>/
├── README.md        插件说明:功能、适配基线、安装、排障
├── install.sh       一键安装(支持 --dry-run / --help)
├── DEPLOY.md        部署手册(部分插件有)
└── ...              插件自身产物(client.js / patches / dist/ 等)

新增插件时:目录名取插件名;README 写清「适配基线 / 安装 / 卸载 / 排障」;安装脚本支持 --dry-run 与 --help;不要把插件文件放在仓库根。

历史

  • 2026-09-21:仓库只有 dsh-mobile-ui 一个插件,文件直接放在仓库根。
  • 2026-09-21:规整为「一插件一目录」,插件移入 plugins/<插件名>/(随后短暂更名为 dsh-plugins/<插件名>/);新增访问管理功能包。
  • 2026-09-21(本次):拍平目录层级——两个插件目录直接放在仓库根(dsh-mobile-ui/、dsh-access-management/);本地检出名由 dsh-mobile-ui 改为 dsh-plugins;README / DEPLOY.md / install.sh 路径同步更新。旧根路径的 git+https://gitee.com/rhtcai/dshplugin.git 安装方式作废——git 依赖只认仓库根的 package.json。
  • 2026-09-21(本次):GitHub 公开副本上线 https://github.com/kingcuty/dsh-plugin;README 与 DEPLOY.md 补「匿名 raw tarball 一条链接安装」与双副本说明。

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages