patchrelay 0.81.0 → 0.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/build-info.json
CHANGED
|
@@ -52,9 +52,16 @@ export async function collectClusterHealth(config, db, runCommand) {
|
|
|
52
52
|
},
|
|
53
53
|
summarize: (payload) => {
|
|
54
54
|
const parsed = payload;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
if (parsed.health?.reachable === true && parsed.health?.ok === true) {
|
|
56
|
+
return "Healthy";
|
|
57
|
+
}
|
|
58
|
+
// The review-quill health body reports an active Codex capacity
|
|
59
|
+
// pause as runtime.codexLimitedUntil, which `review-quill service
|
|
60
|
+
// status --json` passes through as health.codexLimitedUntil.
|
|
61
|
+
if (parsed.health?.reachable === true && typeof parsed.health?.codexLimitedUntil === "string") {
|
|
62
|
+
return `review-quill degraded: Codex usage limit until ${parsed.health.codexLimitedUntil}`;
|
|
63
|
+
}
|
|
64
|
+
return `Unhealthy (${parsed.health?.reachable === false ? "service not reachable" : "service health unavailable"})`;
|
|
58
65
|
},
|
|
59
66
|
})
|
|
60
67
|
: undefined;
|