DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

HuaGyuu /

HuaGyuu/dsh-runner

Verified

This plugin has no description yet.

★ 1 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@68b8999f

dsh-runner

DeepSeek Harness 左侧栏的「运行项」面板:为每个项指定一个目录和一条命令,点运行就像在该目录打开 cmd 执行;输出实时可见,随时可终止。

功能

  • 多个运行项:每项各自绑定工作目录与命令,互不干扰。
  • 一键运行 / 停止 / 重启:停止时结束整棵进程树,不留孤儿进程。
  • 实时日志:按字节偏移增量拉取,长输出不卡界面。
  • 命令历史与状态持久化:保存在 $DSH_HOME/dsh-runner/(运行项、历史、logs/<runId>.log)。
  • 中英文界面:随界面语言自动切换。

安装

需要 DeepSeek Harness >= 0.2.0-rc.1。把示例里的 web 换成你实际使用的 profile 名。

方式一 · 直接从 GitHub 安装:

dsh plugin --profile web add github:HuaGyuu/dsh-runner

方式二 · 克隆到本地再安装:

git clone https://github.com/HuaGyuu/dsh-runner.git
dsh plugin --profile web add ./dsh-runner

安装后在左侧栏即可看到「运行项」面板。

使用

  1. 在面板中新建运行项:填写名称、工作目录、命令(例如 pnpm dev)。
  2. 点「运行」,日志实时滚动;点「停止」结束整个进程树,点「重启」重新拉起。
  3. 命令按原样交给 PowerShell 执行,支持 npm run build && node serve.js 这类组合命令。

开发与测试

harness/ 内是冒烟测试,直接跑:

pwsh -File ./harness/run-smoke.ps1

目录结构

index.js            宿主半侧入口(注册 webServer 路由)
server/index.js     HTTP 路由与请求校验
server/runner.js    运行项与进程管理(不依赖 Cordis)
client.js           浏览器半侧(侧栏面板)
runner.ps1          Windows 命令垫片(统一退出码)
cordis.patch.yml    插件补丁层
locale/             中英文文案
harness/            冒烟测试

许可证

MIT

—/ 5

No ratings yet

Verified DSH bundle

Commit 68b8999f1020

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout