jonah791/dsh-agent-guardian0

dsh-agent-guardian

守卫插件(从 dsh-agent-watch 拆分):web 保活——启动时端口空闲拉起 web、崩溃自愈(快速退出计数+落盘事故)、收养外部 dsh web(零互踢)。崩溃自愈/拉起前也调用沙盒预检(ctx.preflight.run quick 模式,消费 dsh-agent-preflight)——预检不过不拉起(fail-closed)。不负责哨兵监听与重启协调(归 dsh-agent-sentinel)。

AI Analysis

核心用途是保障 DSH Web 服务的稳定性。适合需要自动处理进程崩溃、端口占用及启动前强制安全预检的无人值守场景。

Package
dsh-agent-guardian
Version
0.1.1
Last updated
Sep 12, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

使用

  • 守护进程模式:挂载到 watch profile 后自动运行——无需人工干预
  • 依赖服务ctx.preflight.run(dsh-agent-preflight)用于预检门控;ctx.runtime(dsh-agent-runtime)用于环境发现

配置

字段默认说明
quickExitCount配置值快速退出计数阈值(崩溃判定)