SparkElf/dsh-plugins-plus--packages-supervisor ↗★ 1
@sparkelf/dsh-plugin-supervisor
提供进程外Plus运行时守护及会话恢复 适合需要对Plus profile运行时进行状态监控、启动停止及重建重启的管理任务。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:SparkElf/dsh-plugins-plus#56011da86ed467eb65fdbe10c9f6e2d3acdf27e3&path:packages/supervisor说明文档
阅读完整 README ↗使用
Plus profile 挂载本软件包的 Host 入口,并提供 dsh-plus-supervisor 可执行文件。Supervisor 读取以下 manifest:
{
"dshHome": "/root/.dsh",
"port": 3080,
"supervisorPort": 3082,
"socketPath": "/root/.dsh/supervisor/runtime.sock",
"runtime": {
"command": "node",
"args": ["/path/to/apps/cli/lib/bin.js", "--profile", "plus", "--port", "3080", "--no-open"],
"cwd": "/path/to/materialized-dsh"
},
"build": {
"command": "pnpm",
"args": ["run", "build:official"],
"cwd": "/path/to/materialized-dsh"
}
}
使用 dsh-plus-supervisor --manifest 启动 Supervisor。同一可执行文件还接受放在 --manifest 前的 status、start、stop、restart 和 rebuild-and-restart。进度页监听配置的 supervisorPort,展示 process、build、capture 和 recovery 阶段。
一次重启依次执行:可选构建、捕获当前运行中的顶层 Session ID、停止旧进程、启动配置的命令、等待 Web 端口,然后排入恢复提示词。普通启动、停止、进程崩溃和网络重连不会发送恢复消息。
Usage
The Plus profile mounts the package's Host entry and provides the dsh-plus-supervisor executable. The Supervisor reads this manifest:
{
"dshHome": "/root/.dsh",
"port": 3080,
"supervisorPort": 3082,
"socketPath": "/root/.dsh/supervisor/runtime.sock",
"runtime": {
"command": "node",
"args": ["/path/to/apps/cli/lib/bin.js", "--profile", "plus", "--port", "3080", "--no-open"],
"cwd": "/path/to/materialized-dsh"
},
"build": {
"command": "pnpm",
"args": ["run", "build:official"],
"cwd": "/path/to/materialized-dsh"
}
}
Start the Supervisor with dsh-plus-supervisor --manifest . The same executable accepts status, start, stop, restart, and rebuild-and-restart before --manifest. The progress page listens on the configured supervisorPort and reports process, build, capture, and recovery phases.
A restart performs one ordered operation: optional build, capture the current running top-level Session IDs, stop the old process, start the configured command, wait for its Web port, and queue the recovery prompt. Ordinary start, stop, process crash, and network reconnect do not send recovery messages.