@haakco/hostingctl 1.0.549 → 1.0.551
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/main.js +11 -9
- package/dist/main.js.map +1 -1
- package/package.json +6 -6
package/dist/main.js
CHANGED
|
@@ -44881,15 +44881,15 @@ var diagnostics = {
|
|
|
44881
44881
|
const doctor = report.doctor;
|
|
44882
44882
|
const log = doctor.logWritable ? "" : " (not writable)";
|
|
44883
44883
|
const profiles = report.incompleteProfiles;
|
|
44884
|
-
const captures = report.
|
|
44884
|
+
const captures = report.failingBackups;
|
|
44885
44885
|
const lines = [
|
|
44886
44886
|
`doctor: ${doctor.ok ? "ok" : "not ok"} ${doctor.environment} log ${doctor.logChannel}${log}`,
|
|
44887
44887
|
`unready: ${String(report.unready.total)} environment(s)`,
|
|
44888
44888
|
`incomplete profiles: ${String(profiles.environments.length)} of ${String(profiles.total)}`,
|
|
44889
44889
|
`failed stages: ${String(report.failedStages.length)} (source: ${report.failedStagesSource})`,
|
|
44890
|
-
`
|
|
44890
|
+
`backups not succeeding: ${String(captures.tracks.length)}`
|
|
44891
44891
|
];
|
|
44892
|
-
for (const capture of captures.
|
|
44892
|
+
for (const capture of captures.tracks) lines.push(` ${capture.name}: ${capture.track ?? "all backups"} ${capture.state} (last success ${capture.lastSuccessAt ?? "never"}) — ${capture.detail}`);
|
|
44893
44893
|
for (const profile of profiles.environments) {
|
|
44894
44894
|
const missing = profile.missing.map((one) => one.key).join(", ");
|
|
44895
44895
|
lines.push(` ${profile.name}: ${String(profile.present)} of ${String(profile.expected)} — missing ${missing}`);
|
|
@@ -57121,9 +57121,11 @@ var diagnosticsDoctorDataSchema = object({
|
|
|
57121
57121
|
callDetailExplanation: string(),
|
|
57122
57122
|
checks: array(diagnosticsCheckDataSchema)
|
|
57123
57123
|
});
|
|
57124
|
-
var
|
|
57124
|
+
var diagnosticsFailingBackupsDataSchema = object({ tracks: array(object({
|
|
57125
57125
|
environment: string(),
|
|
57126
|
-
name: string(),
|
|
57126
|
+
name: string().describe("The environment's own name, which is what an operator recognises."),
|
|
57127
|
+
track: string().nullable().describe("The track's name, or `null` when the cluster refused the read before any track was named."),
|
|
57128
|
+
kind: string().nullable().describe("`database` for one database's scheduled dump, `files` for the application trees, `null` when the read failed before a track was named."),
|
|
57127
57129
|
state: string().describe("`failed`, or `unreadable` when the cluster refused the read."),
|
|
57128
57130
|
lastSuccessAt: string().nullable(),
|
|
57129
57131
|
detail: string()
|
|
@@ -60597,7 +60599,7 @@ object({
|
|
|
60597
60599
|
doctor: diagnosticsDoctorDataSchema,
|
|
60598
60600
|
unready: diagnosticsUnreadyEnvironmentsDataSchema,
|
|
60599
60601
|
incompleteProfiles: diagnosticsIncompleteProfilesDataSchema,
|
|
60600
|
-
|
|
60602
|
+
failingBackups: diagnosticsFailingBackupsDataSchema.describe("The backup tracks that are not succeeding, and the environments this installation could not read. Beside readiness for the same reason `incompleteProfiles` is: a broken backup leaves its environment\nfully ready, so nothing in `unready` can see it — measured 2026-10-20, when every file backup on Home\nstaging failed for fifteen hours and the only surface that showed it was a panel nobody opened, and\n2026-10-29, when a database dump that stopped succeeding had no platform-level surface at all. Each row\nnames the track it is about and carries the failure's class, never its message, so an access problem is\ndistinguishable from a refused read without carrying a host, a path or a body."),
|
|
60601
60603
|
failedStages: array(string()),
|
|
60602
60604
|
failedStagesSource: string().describe("Where those lines came from, or why this installation has none to give.")
|
|
60603
60605
|
});
|
|
@@ -70808,7 +70810,7 @@ function writeUpdateState(state, env = process.env) {
|
|
|
70808
70810
|
}
|
|
70809
70811
|
//#endregion
|
|
70810
70812
|
//#region src/version.ts
|
|
70811
|
-
var VERSION = "1.0.
|
|
70813
|
+
var VERSION = "1.0.551";
|
|
70812
70814
|
//#endregion
|
|
70813
70815
|
//#region src/commands/update.ts
|
|
70814
70816
|
/**
|
|
@@ -70883,7 +70885,7 @@ var update = {
|
|
|
70883
70885
|
}, process.env);
|
|
70884
70886
|
return {
|
|
70885
70887
|
...known,
|
|
70886
|
-
current: after ?? "1.0.
|
|
70888
|
+
current: after ?? "1.0.551",
|
|
70887
70889
|
latest: after ?? latest,
|
|
70888
70890
|
upToDate: after !== null && (latest === null || !isNewerVersion(latest, after)),
|
|
70889
70891
|
action: "run",
|
|
@@ -71160,7 +71162,7 @@ async function printUpdateNotice(options) {
|
|
|
71160
71162
|
}, env, { waitMs: NOTICE_LOCK_WAIT_MS });
|
|
71161
71163
|
} catch {}
|
|
71162
71164
|
if (latest === null) return;
|
|
71163
|
-
if (!isNewerVersion(latest, "1.0.
|
|
71165
|
+
if (!isNewerVersion(latest, "1.0.551")) return;
|
|
71164
71166
|
process.stderr.write(`A newer hostingctl is published: ${latest} (this copy is ${VERSION}). Run \`hostingctl update\` to update.\n`);
|
|
71165
71167
|
}
|
|
71166
71168
|
/** Whether an environment variable is set to something, which is how CI and the opt-out are read. */
|