dsh-smart-restart:DSH 重啓後自動喚醒主 agent

DSH 插件 `edusrez/dsh-smart-restart`(v0.5.1,MIT 協議)旨在解決服務重啓後主 agent 不知情導致工作中斷的問題。它通過檢測進程 PID 變化識別重啓,並在啓動時向 agent 發送 Smart-restart 通知以恢復任務。 核心功能包括: 1. **重啓檢測與通知**:通過 `marker.json` 比較 PID,計算宕機時間,並利用 `agent/session-start` 鉤子發送通知。 2. **智能投遞優先級**:按 `pending-notice.json` > `shutdown-notice.json` > 默認目標的順序處理

閱讀全文