dsh-superagent-monitor:在 DSH Web GUI 中管理獨立 dsh-superagent

前言

在 DeepSeek Harness(DSH)裏跑桌面 profile 時,若你還單獨維護一套 dsh-superagent 倉庫,常見做法是手工看 launchd 任務、翻本地日誌、再另開終端用控制腳本啓停。對話入口也常常和「服務是否在跑、插件是否裝到 superagent profile」脫節。dingmac/dsh-superagent-monitor 把上述操作收進 DSH Web GUI:側邊欄多一頁 Superagent Monitor,並增加 Superagent 對話標籤,作爲獨立 superagent 實例的控制台與桌面會話入口。

這是什麼

該插件由維護者 dingmac 發佈,分類屬於 客戶端。它是一個 DSH bundle:在支持 plugin-bundle 的 DSH Web GUI 上掛載監控頁和 Superagent 會話標籤,對接本機 standalone dsh-superagent 的 launchd 作業、管理 API、日誌與控制腳本,並支持把當前 desktop profile 裏選中的儀表盤插件同步到 superagent 所用 profile。社區目錄頁見 SkillHub 條目,源碼與說明在 GitHub。

核心功能

下面介紹 README 中寫明、且與實現定位一致的能力。

服務概覽

插件讀取 launchd 作業、本機管理 API(路徑前綴爲 /orchestrator/api/*),以及進程日誌尾部,在頁面上彙總服務狀態,便於確認 superagent 是否按預期運行。

顯式啓停

Start、Stop、Restart 通過 dsh-superagent 倉庫自帶的 scripts/dsh-superagent 控制腳本完成,不直接向 PID 發信號。操作前應在頁面上覈對目標服務與 checkout 路徑,避免誤操作錯誤目錄下的實例。

插件同步與狀態

插件同步區會列出當前 DSH profile 中已安裝的插件,用戶勾選後通過 dsh plugin add 複製到 superagent profile。界面還會展示依賴、bundle、已安裝內容及運行中的 superagent 是否已加載對應插件。可選 Auto sync:在下次輪詢時,把新安裝的 dashboard 插件自動複製到 superagent。

Superagent 對話標籤

Superagent 標籤提供桌面會話入口,中繼到 superagent desktop source,並聚合 Feishu / GitHub 反饋(能力描述來自項目 README)。

安全邊界

管理 API 僅接受 loopback 地址;非 loopback 的 URL 會被拒絕而不是發起請求。服務變更依賴同源顯式 POST。插件只讀本地服務狀態與日誌,不上傳;僅在用戶觸發(或開啓 auto-sync)時對 superagent profile 執行 dsh plugin add。

環境與依賴

使用前需滿足 README 列出的條件:

  1. 帶 plugin-bundle 支持的 DSH Web GUI。
  2. macOS 與 launchd(用於服務監管)。
  3. 獨立的 dsh-superagent checkout,默認路徑 ~/src/dsh-superagent,且存在 scripts/dsh-superagent 控制腳本。
  4. DSH 可用的 Node.js。

安裝與啓用

官方從 GitHub 安裝命令如下;安裝後需重啓 DSH 或重載插件,bundle 補丁會在 profile 中增加 superagent-monitor 行。

dsh plugin --profile desktop add github:dingmac/dsh-superagent-monitor

若使用本地 checkout,先將倉庫放到本機目錄,再用絕對路徑添加(README 示例含 git clone,本文安裝步驟以你本機已有源碼爲準):

dsh plugin --profile desktop add /absolute/path/to/dsh-superagent-monitor

同樣需要在安裝後重啓 DSH。當前 bundle 版本爲 1.4.0,許可證 MIT。

配置項

默認值在 normalizeConfig / cordis.patch.yml 中解析;路徑或端口與默認不一致時,可在 bundle 行配置中覆蓋:

字段 默認值 作用
root ~/src/dsh-superagent standalone superagent 倉庫路徑
profile superagent superagent 使用的 DSH profile
url http://127.0.0.1:3082 本機管理 API(僅 loopback)
stateDir ~/.dsh-superagent superagent 狀態目錄
launchAgentsDir ~/Library/LaunchAgents launchd 作業發現路徑
stateFile ~/.dsh/state/superagent-monitor/state.json 儀表盤狀態文件

典型用法

  1. 打開 DSH Web GUI。
  2. 在側邊欄進入 Superagent Monitor。
  3. 查看服務、launchd、API 與日誌各區段。
  4. 確認目標無誤後,再使用 Start / Stop / Restart。
  5. 在插件同步區將需要的 dashboard 插件複製到 superagent profile。
  6. 打開 Superagent 標籤使用桌面會話入口。

適用場景與注意

適合誰: 已在 macOS 上用 launchd 跑獨立 dsh-superagent,並希望從 DSH Web 統一看盤、啓停和插件對齊的開發者。

權限與審閱: 插件以當前 DSH 進程權限運行,可讀取本機 launchd、日誌與狀態,並可按你的操作改寫 superagent 側插件與通過控制腳本影響服務。安裝前應閱讀 源碼與 LICENSE,確認路徑、端口與 auto-sync 行爲符合你的環境。DSH 生態強調「一切皆插件」;SkillHub 等社區目錄爲獨立站點,與 DeepSeek / 幻方無官方從屬關係。

結尾

dsh-superagent-monitor 把 standalone superagent 的狀態、控制、插件同步和桌面會話入口收到 DSH GUI 一側,減少在終端與多個界面之間切換。更多元數據與分類見 SkillHub 插件頁,實現細節與/issue 見 GitHub 倉庫。

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

小夜