@botbuddy/cli 1.5.3 → 1.5.4
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/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schema_version":1,"source_version":"1.5.1","source_identity":"
|
|
1
|
+
{"schema_version":1,"source_version":"1.5.1","source_identity":"56890dbd45a92364dc2a57ed8f09710d3e3d53c5af8999680ef1d19552e19c94"}
|
package/src/docker-hygiene.mjs
CHANGED
|
@@ -556,6 +556,7 @@ export function evaluatePressure({
|
|
|
556
556
|
}) {
|
|
557
557
|
const current = Number(bridgeNetworks) + (2 * Number(attachedEndpoints));
|
|
558
558
|
const projected = current + 1 + (2 * Number(projectedEndpoints));
|
|
559
|
+
const status = projected >= fail ? "fail" : projected >= warn ? "warn" : "ok";
|
|
559
560
|
return {
|
|
560
561
|
metric: "conservative_network_pressure_units",
|
|
561
562
|
formula: "bridge_networks + (2 * attached_endpoints)",
|
|
@@ -564,7 +565,18 @@ export function evaluatePressure({
|
|
|
564
565
|
projected_endpoints: Number(projectedEndpoints),
|
|
565
566
|
warn_pressure: Number(warn),
|
|
566
567
|
fail_pressure: Number(fail),
|
|
567
|
-
status
|
|
568
|
+
status,
|
|
569
|
+
// BOT-1412: a host-wide interface-pressure refusal is not a per-stack
|
|
570
|
+
// `supabase_local` lock wait. Emit the relay's capacity condition in the
|
|
571
|
+
// machine receipt so callers park on the global policy and receive the
|
|
572
|
+
// eventual capacity signal, rather than retrying Docker locally.
|
|
573
|
+
...(status === "fail" ? {
|
|
574
|
+
wait: {
|
|
575
|
+
kind: "global_capacity",
|
|
576
|
+
condition: "capacity:policy=host_docker_pressure_v1,slots>=1",
|
|
577
|
+
command: "bb-wait 'capacity:policy=host_docker_pressure_v1,slots>=1'",
|
|
578
|
+
},
|
|
579
|
+
} : {}),
|
|
568
580
|
note: "Conservative pressure proxy; OrbStack does not expose a kernel interface ceiling through the Docker API.",
|
|
569
581
|
};
|
|
570
582
|
}
|