@tangle-network/agent-app 0.60.41 → 0.60.43

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-E7CDDDFW.js";
45
+ } from "../chunk-WMCROSA4.js";
46
46
  import "../chunk-4LBCTFBP.js";
47
47
  import "../chunk-MCYJON3F.js";
48
48
  import "../chunk-LWSJK546.js";
@@ -1378,12 +1378,21 @@ function stoppedBoxResumeError(box, cause) {
1378
1378
  });
1379
1379
  }
1380
1380
  async function resumeStoppedBox(box, timeoutMs, runtimeEnv, onProgress) {
1381
+ const report = (status, message) => {
1382
+ try {
1383
+ onProgress?.({ step: "container-start", status, message, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
1384
+ } catch {
1385
+ }
1386
+ };
1381
1387
  try {
1382
1388
  livenessVerifiedAt.delete(box.id);
1389
+ report("started", "Resuming the stopped sandbox");
1383
1390
  await resumeWithRequiredRuntimeEnv(box, timeoutMs, runtimeEnv);
1384
1391
  await box.waitFor("running", { timeoutMs, ...onProgress ? { onProgress } : {} });
1392
+ report("completed", "The stopped sandbox is running again");
1385
1393
  return ok(box);
1386
1394
  } catch (cause) {
1395
+ report("error", "The stopped sandbox could not be resumed");
1387
1396
  return fail(stoppedBoxResumeError(box, cause));
1388
1397
  }
1389
1398
  }
@@ -2504,4 +2513,4 @@ export {
2504
2513
  isTerminalPromptEvent,
2505
2514
  detectInteractiveQuestion
2506
2515
  };
2507
- //# sourceMappingURL=chunk-E7CDDDFW.js.map
2516
+ //# sourceMappingURL=chunk-WMCROSA4.js.map