feat(t103): daemon 偵測雲端過舊+托盤更新入口——連動閉環

每輪 GET /health 取 bundle_version(5s timeout 失敗靜默);空或日期<minCloudBuilt
→ 托盤「⚠ 知識庫需要更新(點我)」開 install.arcrun.dev;結果進 status.json。
兩模組 go test 全綠(總管親跑)。leo:「daemon 和雲端是連動的」——自此用戶只看托盤。
(實作=子 CC;驗證+commit=總管)
This commit is contained in:
2026-07-28 16:15:12 +08:00
parent ef74c69023
commit f8450815d3
5 changed files with 139 additions and 0 deletions
+3
View File
@@ -17,6 +17,9 @@ type SyncStatus struct {
Failures []ExtractFail `json:"failures,omitempty"` // 失敗清單(路徑+白話原因)
ExtractorOK bool `json:"extractor_ok"` // 萃取器本身是否就緒(預檢)
ExtractorError string `json:"extractor_error,omitempty"` // 未就緒的白話原因
// t103:雲端版本偵測(每輪 GET /health
CloudVersion string `json:"cloud_version,omitempty"` // bundle_version 回傳值(空=老實例)
CloudCheckOK bool `json:"cloud_check_ok"` // /health 可達才為 truefalse 代表網路失敗,不判定過舊
}
// ExtractFail 記一筆萃取失敗(路徑+白話原因)。