@tangle-network/agent-app 0.58.7 → 0.58.9

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-K7MN4RPX.js";
45
+ } from "../chunk-CJW24QMJ.js";
46
46
  import "../chunk-MCYJON3F.js";
47
47
  import "../chunk-LWSJK546.js";
48
48
  import "../chunk-W5VBZTNN.js";
@@ -511,8 +511,8 @@ function isSandboxApiBearerAuthFailure(diagnostics) {
511
511
  if (cause.origin !== "sandbox-api") return false;
512
512
  if (typeof cause.endpoint !== "string") return false;
513
513
  const endpointPath = sandboxApiEndpointPath(cause.endpoint);
514
- if (!endpointPath) return false;
515
- return /^\/v1\/sandboxes\/[^/?#]+(?:\/(?!runtime(?:[/?#]|$))[^?#]*)?(?:[?#].*)?$/.test(endpointPath);
514
+ if (!endpointPath || !/^\/v1(?:[/?#]|$)/.test(endpointPath)) return false;
515
+ return !/^\/v1\/sandboxes\/[^/?#]+\/runtime(?:[/?#]|$)/.test(endpointPath);
516
516
  });
517
517
  }
518
518
  var SANDBOX_BACKING_CONTAINER_MISSING_CODE = "BACKING_CONTAINER_MISSING";
@@ -2889,4 +2889,4 @@ export {
2889
2889
  isTerminalPromptEvent,
2890
2890
  detectInteractiveQuestion
2891
2891
  };
2892
- //# sourceMappingURL=chunk-K7MN4RPX.js.map
2892
+ //# sourceMappingURL=chunk-CJW24QMJ.js.map