@wrongstack/core 0.8.4 → 0.8.5
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/coordination/index.js +8 -1
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +2 -2
- package/dist/defaults/index.js +41 -21
- package/dist/defaults/index.js.map +1 -1
- package/dist/execution/index.d.ts +1 -1
- package/dist/execution/index.js +22 -3
- package/dist/execution/index.js.map +1 -1
- package/dist/index.d.ts +84 -6
- package/dist/index.js +519 -143
- package/dist/index.js.map +1 -1
- package/dist/{plan-templates-BnlpEkX8.d.ts → plan-templates-D8zQgZzc.d.ts} +1 -1
- package/dist/sdd/index.d.ts +7 -7
- package/dist/sdd/index.js +10 -14
- package/dist/sdd/index.js.map +1 -1
- package/dist/security/index.js.map +1 -1
- package/dist/skills/index.js +7 -1
- package/dist/skills/index.js.map +1 -1
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/index.js +1 -3
- package/dist/storage/index.js.map +1 -1
- package/dist/types/index.js +22 -3
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +40 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/{wstack-paths-gCrJ631C.d.ts → wstack-paths-Bxik3CsK.d.ts} +2 -0
- package/package.json +1 -1
|
@@ -4242,7 +4242,7 @@ function makeSpawnTool(director, roster) {
|
|
|
4242
4242
|
catalog: roster
|
|
4243
4243
|
});
|
|
4244
4244
|
const dispatchRole = dispatchResult.role;
|
|
4245
|
-
if (roster
|
|
4245
|
+
if (roster?.[dispatchRole]) {
|
|
4246
4246
|
cfg = instantiateRosterConfig(dispatchRole, roster[dispatchRole]);
|
|
4247
4247
|
} else {
|
|
4248
4248
|
const def = dispatchResult.definition;
|
|
@@ -4732,6 +4732,13 @@ var Director = class {
|
|
|
4732
4732
|
extendCounts.delete(guardKey);
|
|
4733
4733
|
return;
|
|
4734
4734
|
}
|
|
4735
|
+
if (payload.kind === "cost" && this.maxFleetCostUsd < Number.POSITIVE_INFINITY) {
|
|
4736
|
+
const totalCost = this.usage.snapshot().total?.cost ?? 0;
|
|
4737
|
+
if (totalCost >= this.maxFleetCostUsd) {
|
|
4738
|
+
payload.deny();
|
|
4739
|
+
return;
|
|
4740
|
+
}
|
|
4741
|
+
}
|
|
4735
4742
|
extendCounts.set(guardKey, prior + 1);
|
|
4736
4743
|
setImmediate(() => {
|
|
4737
4744
|
const extra = {};
|