StvLi/dsh-phoenix ↗★ 5

dsh-phoenix

提供平滑重启、重连与任务恢复 适合需要在插件更新后重启DSH、自动重连页面并恢复未完目标任务的用户。

包名
dsh-phoenix
兼容性
待验证
Harness 依赖范围
^0.1.1-rc.2
版本
0.2.6
许可证
MIT
最近更新
2026年9月2日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:StvLi/dsh-phoenix

⚙️ Configuration

All knobs are environment variables with safe defaults — no configuration file required.

EnvDefaultPurpose
DSH_PHOENIX_UNITdsh-websystemd user unit to restart
DSH_PHOENIX_DELAY8seconds between stop and start
DSH_PHOENIX_ARMING_MS5000ignore signals for N ms after load (prevents self-trigger)
DSH_PHOENIX_DEBOUNCE_MS3000collapse burst signals into one reboot
DSH_PHOENIX_DEFER_POLL_MS3000idle re-check interval while deferring
DSH_PHOENIX_DEFER_SOFT_MS300000soft safety deadline — log a warning at this point, keep waiting
DSH_PHOENIX_DEFER_HARD_MS900000hard safety deadline — force the restart (if policy is auto)
DSH_PHOENIX_DEFER_POLICYautoauto (force at hard deadline) or wait (never force; may defer indefinitely)
DSH_PHOENIX_HEALTH_MS4000browser heartbeat interval
DSH_PHOENIX_RESTART_CMD(empty)custom restart command override for non-systemd deployments (see the Requirements warning)
DSH_PHOENIX_REARM_MS8000boot delay before the lifecycle recovery/resume check
DSH_PHOENIX_MAX_RESUME_ATTEMPTS1resume attempts per restart (1 = one resume per restart; >1 retries; reaching it ends the continuation)
DSH_PHOENIX_STATE_FILE(empty)path to the durable lifecycle checkpoint; empty disables the lifecycle