@tangle-network/agent-app 0.45.10 → 0.45.11

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.
@@ -100,7 +100,7 @@ import {
100
100
  flattenHistory,
101
101
  readSandboxBinaryBytes,
102
102
  statSandboxFileSize
103
- } from "../chunk-EPOPI77J.js";
103
+ } from "../chunk-WVY5UAXB.js";
104
104
  import "../chunk-73F3CKVK.js";
105
105
  import "../chunk-LWSJK546.js";
106
106
  import "../chunk-C5OIABSB.js";
@@ -529,6 +529,13 @@ function isSandboxHostCapacityFailure(diagnostics) {
529
529
  return /host has no available slot|host capacity reservation failed/i.test(cause.message);
530
530
  });
531
531
  }
532
+ function isSandboxBoxConfigFailure(diagnostics) {
533
+ return diagnostics.causes.some((cause) => {
534
+ if (cause.origin !== "sandbox-api") return false;
535
+ if (typeof cause.message !== "string") return false;
536
+ return /has no recorded egress policy|cannot rebuild the proxy config/i.test(cause.message);
537
+ });
538
+ }
532
539
  function sandboxApiEndpointPath(endpoint) {
533
540
  if (endpoint.startsWith("/")) return endpoint;
534
541
  try {
@@ -1661,7 +1668,8 @@ async function ensureWorkspaceSandbox(shell, options) {
1661
1668
  }
1662
1669
  function isUnbringableBoxError(error) {
1663
1670
  if (error instanceof SandboxRecoveryFailedError) return true;
1664
- return isSandboxHostCapacityFailure(serializeSandboxProvisioningError(error));
1671
+ const diagnostics = serializeSandboxProvisioningError(error);
1672
+ return isSandboxHostCapacityFailure(diagnostics) || isSandboxBoxConfigFailure(diagnostics);
1665
1673
  }
1666
1674
  async function provisionWorkspaceSandbox(shell, options) {
1667
1675
  const { workspaceId, userId, harness, forceNew, onProgress, billingOwnerId } = options;
@@ -2224,4 +2232,4 @@ export {
2224
2232
  isTerminalPromptEvent,
2225
2233
  detectInteractiveQuestion
2226
2234
  };
2227
- //# sourceMappingURL=chunk-EPOPI77J.js.map
2235
+ //# sourceMappingURL=chunk-WVY5UAXB.js.map