@tangle-network/agent-app 0.60.107 → 0.60.109

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.
@@ -42,7 +42,7 @@ import {
42
42
  flattenHistory,
43
43
  readSandboxBinaryBytes,
44
44
  statSandboxFileSize
45
- } from "../chunk-BTBDJNHK.js";
45
+ } from "../chunk-OGDEUCNW.js";
46
46
  import "../chunk-4LBCTFBP.js";
47
47
  import "../chunk-WVESWAJJ.js";
48
48
  import "../chunk-LWSJK546.js";
@@ -758,8 +758,7 @@ function createWarmLeases(options) {
758
758
  const spentToday = (row, at) => (row && row.day === utcDay(at) ? row.dayWarmMs : 0) + (row && row.pendingWarmAt > 0 && utcDay(row.pendingWarmAt) === utcDay(at) ? row.pendingMs : 0);
759
759
  function chargeOf(row) {
760
760
  if (!row.resumed || row.usedAt > 0 || row.warmAt <= 0) return 0;
761
- const lastActivity = Math.max(row.warmAt, row.pingAt);
762
- return Math.max(row.holdUntil, lastActivity + boxIdleMs) - row.warmAt;
761
+ return Math.max(row.warmAt, row.pingAt) + boxIdleMs - row.warmAt;
763
762
  }
764
763
  async function signal(key, reason) {
765
764
  const at = now();
@@ -3131,4 +3130,4 @@ export {
3131
3130
  isTerminalPromptEvent,
3132
3131
  detectInteractiveQuestion
3133
3132
  };
3134
- //# sourceMappingURL=chunk-BTBDJNHK.js.map
3133
+ //# sourceMappingURL=chunk-OGDEUCNW.js.map