patchwork-os 1.2.0-beta.2.canary.693 → 1.2.0-beta.2.canary.700
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/bridge.js +16 -2
- package/dist/bridge.js.map +1 -1
- package/dist/butler/promoteShadowOutcomes.d.ts +16 -3
- package/dist/butler/promoteShadowOutcomes.js +13 -2
- package/dist/butler/promoteShadowOutcomes.js.map +1 -1
- package/dist/deploymentFreshness.d.ts +20 -0
- package/dist/deploymentFreshness.js +24 -2
- package/dist/deploymentFreshness.js.map +1 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/recipeOrchestration.js +2 -0
- package/dist/recipeOrchestration.js.map +1 -1
- package/dist/recipes/dataPolicyPlacement.d.ts +19 -0
- package/dist/recipes/dataPolicyPlacement.js +59 -0
- package/dist/recipes/dataPolicyPlacement.js.map +1 -1
- package/dist/recipes/scheduler.js +78 -52
- package/dist/recipes/scheduler.js.map +1 -1
- package/dist/recipes/validation.js +14 -1
- package/dist/recipes/validation.js.map +1 -1
- package/dist/runLog.d.ts +10 -1
- package/dist/runLog.js +1 -1
- package/dist/runLog.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4449,6 +4449,21 @@ if (process.argv[2] === "doctor") {
|
|
|
4449
4449
|
catch {
|
|
4450
4450
|
// No lock dir ⇒ no bridges ⇒ reported as "nothing running".
|
|
4451
4451
|
}
|
|
4452
|
+
// `--expect-running [N]` (#1481). Only the caller knows how many bridges
|
|
4453
|
+
// ought to be up — this command cannot discover it — so the expectation is
|
|
4454
|
+
// stated rather than inferred. Bare `--expect-running` means "at least one",
|
|
4455
|
+
// which is the assertion worth making right after a kickstart.
|
|
4456
|
+
const expectIdx = args.indexOf("--expect-running");
|
|
4457
|
+
let expectRunning;
|
|
4458
|
+
if (expectIdx !== -1) {
|
|
4459
|
+
const raw = args[expectIdx + 1];
|
|
4460
|
+
const parsed = raw !== undefined && !raw.startsWith("--") ? Number(raw) : 1;
|
|
4461
|
+
if (!Number.isInteger(parsed) || parsed < 0) {
|
|
4462
|
+
process.stderr.write("[deployment] --expect-running takes a non-negative integer\n");
|
|
4463
|
+
process.exit(2);
|
|
4464
|
+
}
|
|
4465
|
+
expectRunning = parsed;
|
|
4466
|
+
}
|
|
4452
4467
|
const report = assessDeploymentFreshness({
|
|
4453
4468
|
locks,
|
|
4454
4469
|
buildTimeMs,
|
|
@@ -4461,6 +4476,7 @@ if (process.argv[2] === "doctor") {
|
|
|
4461
4476
|
return false;
|
|
4462
4477
|
}
|
|
4463
4478
|
},
|
|
4479
|
+
...(expectRunning !== undefined ? { expectRunning } : {}),
|
|
4464
4480
|
});
|
|
4465
4481
|
if (args.includes("--json")) {
|
|
4466
4482
|
process.stdout.write(`${JSON.stringify({ buildTimeMs, ...report }, null, 2)}\n`);
|