omp-conductor 0.16.2 → 0.17.1
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/README.md +38 -4
- package/REFERENCE.md +18 -12
- package/package.json +2 -1
- package/schema/config.schema.json +16 -0
- package/src/admission.ts +159 -43
- package/src/availability.ts +27 -1
- package/src/briefs/worker.md +2 -0
- package/src/clack-ui.ts +83 -0
- package/src/command-manifest.ts +16 -7
- package/src/commands/arm.ts +11 -3
- package/src/commands/decision.ts +17 -7
- package/src/commands/doctor.ts +18 -1
- package/src/commands/hold.ts +9 -7
- package/src/commands/ledger.ts +25 -4
- package/src/commands/message.ts +32 -4
- package/src/commands/setup.ts +61 -10
- package/src/commands/stats.ts +9 -5
- package/src/commands/status.ts +32 -5
- package/src/commands/tail.ts +13 -1
- package/src/commands/watch.ts +16 -7
- package/src/config-schema.ts +20 -0
- package/src/config.ts +37 -0
- package/src/daemon.ts +1240 -18
- package/src/doctor.ts +310 -22
- package/src/escalate.ts +560 -57
- package/src/failure-class.ts +56 -13
- package/src/fleet.ts +224 -47
- package/src/gitops.ts +103 -24
- package/src/lifecycle.ts +7 -2
- package/src/orchestrator-tick.ts +372 -157
- package/src/privileged.ts +3 -0
- package/src/release-policy.ts +177 -5
- package/src/setup-answers.ts +135 -0
- package/src/setup-host.ts +193 -4
- package/src/setup-install.ts +2 -0
- package/src/setup-probe.ts +1 -0
- package/src/setup-wizard.ts +1296 -101
- package/src/setup.ts +60 -3
- package/src/status-render.ts +11 -1
- package/src/store.ts +333 -12
- package/src/tracker/github.ts +562 -13
- package/src/types.ts +204 -2
- package/src/ui/progress.ts +32 -0
- package/src/ui/style.ts +11 -0
- package/src/upgrade.ts +50 -19
- package/src/verbs/actions.ts +66 -18
- package/src/verbs/protocol.ts +45 -0
- package/src/verbs/server.ts +212 -11
- package/src/wizard-ui.ts +14 -5
- package/src/worker.ts +26 -0
- package/systemd/omp-conductor-recover.sh +73 -0
- package/systemd/recover-unit-test.sh +61 -0
package/src/lifecycle.ts
CHANGED
|
@@ -94,7 +94,7 @@ export interface DaemonRecord {
|
|
|
94
94
|
logFile: string;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
function recordPath(): string {
|
|
97
|
+
export function recordPath(): string {
|
|
98
98
|
return join(runtimeDir(), "daemon.json");
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -357,7 +357,12 @@ export async function healthCheck(port: number): Promise<{ ok: boolean; body?: s
|
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
-
|
|
360
|
+
/** Whether a `/healthz` body names `project` as served: the daemon's health
|
|
361
|
+
* endpoint lists every project it loaded, as bare strings or `{ project }`
|
|
362
|
+
* entries, so callers can prove a runtime generation serves a project —
|
|
363
|
+
* the setup rollback's prior-set proof and the restart's owned proof both
|
|
364
|
+
* build on it (#650). An unparseable body is a served-nothing answer. */
|
|
365
|
+
export function healthServesProject(body: string | undefined, project: string | undefined): boolean {
|
|
361
366
|
if (project === undefined) return true;
|
|
362
367
|
if (body === undefined) return false;
|
|
363
368
|
try {
|