dsh-service-hub:在 DSH 側欄啓停本機服務

dsh-service-hub 是 liuhuan007 維護的 DSH 客戶端插件(MIT 協議),把本機服務、一次性腳本和終端工具登記成列表,在 DSH 側欄提供啓動、停止、重啓、日誌、刷新操作。插件自帶零依賴控制台守護進程(console/,僅用 Node 標準庫),激活時在 127.0.0.1:3999 啓動,卸載時停止,註冊數據與日誌存於 ~/.dsh-service-hub/。側欄 Service 選項卡顯示實時狀態、健康、端口和快捷訪問 URL,並提供 LAN 地址。Scan 會掃描未登記可執行文件和監聽端口並給出 app/service/terminal/script 建議類型,可覆蓋,系統目錄跳過。客戶端只對 localhost 發起 fetch,守護進程只綁定 127.0.0.1,無遙測,只啓停用戶登記的命令;/healthz 僅暴露 ok/version/pid 和 X-LC-Daemon 頭,迴歸測試用 npm test 運行。安裝命令爲 dsh plugin --profile desktop add dsh-service-hub,需要 DSH 0.2.1+、dsh-better-sidebar、Node 18+、Windows,端口 3999 需空閒。已知限制:面板文本僅中文,控制台 URL 固定,安裝 dsh-better-sidebar 才能獲得左側欄選項卡。

閱讀全文