@tangle-network/agent-app 0.60.1 → 0.60.2

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.
@@ -81,4 +81,15 @@ export declare function isSandboxHostCapacityFailure(diagnostics: SafeSandboxErr
81
81
  * Matched on the specific unrecoverable phrasing, and only from `sandbox-api`.
82
82
  */
83
83
  export declare function isSandboxBoxConfigFailure(diagnostics: SafeSandboxErrorDiagnostics): boolean;
84
+ /**
85
+ * True when the Sandbox API answered a control-plane call with a server error
86
+ * (500, 502, 503 or 504), such as `A sandbox backend did not answer` or
87
+ * `Failed to resume project: fetch failed`. These clear within seconds, so a
88
+ * caller may retry once before surfacing them.
89
+ *
90
+ * Runtime routes are excluded (the box answers those), and so are the narrow
91
+ * failures that need a different action: a missing box, a box whose creation
92
+ * facts no longer hold, and host capacity.
93
+ */
94
+ export declare function isSandboxApiTransientFailure(diagnostics: SafeSandboxErrorDiagnostics): boolean;
84
95
  export declare function formatSandboxProvisioningUserMessage(diagnostics: SafeSandboxErrorDiagnostics): string;
@@ -447,7 +447,7 @@ export declare class SandboxEgressPolicyMismatchError extends Error {
447
447
  constructor(stage: SandboxExistingBoxStage, boxName: string, currentPolicy: EgressPolicy, currentSource: SandboxEgressPolicySource, desiredPolicy: EgressPolicy);
448
448
  }
449
449
  export * from './recovery';
450
- export { serializeSandboxProvisioningError, formatSandboxProvisioningSupportDetails, formatSandboxProvisioningUserMessage, isSandboxAuthFailure, isSandboxApiBearerAuthFailure, isSandboxApiSandboxMissingFailure, SANDBOX_BACKING_CONTAINER_MISSING_CODE, isSandboxHostCapacityFailure, type SafeSandboxErrorCause, type SafeSandboxErrorDiagnostics, } from './diagnostics';
450
+ export { serializeSandboxProvisioningError, formatSandboxProvisioningSupportDetails, formatSandboxProvisioningUserMessage, isSandboxAuthFailure, isSandboxApiBearerAuthFailure, isSandboxApiSandboxMissingFailure, isSandboxApiTransientFailure, SANDBOX_BACKING_CONTAINER_MISSING_CODE, isSandboxHostCapacityFailure, type SafeSandboxErrorCause, type SafeSandboxErrorDiagnostics, } from './diagnostics';
451
451
  /** Represent an error thrown when sandbox runtime authentication refresh fails for a specific stage and name */
452
452
  export declare class SandboxRuntimeAuthRefreshError extends Error {
453
453
  constructor(stage: SandboxExistingBoxStage, name: string, detail: string, cause?: unknown);
@@ -58,6 +58,7 @@ import {
58
58
  isEgressProxyRecoveryRequiredError,
59
59
  isSandboxApiBearerAuthFailure,
60
60
  isSandboxApiSandboxMissingFailure,
61
+ isSandboxApiTransientFailure,
61
62
  isSandboxAuthFailure,
62
63
  isSandboxHostCapacityFailure,
63
64
  isTerminalPromptEvent,
@@ -100,7 +101,7 @@ import {
100
101
  workspaceSandboxRecoveryMessage,
101
102
  workspaceSandboxRecoveryRecommendedActions,
102
103
  writeProfileFilesToBox
103
- } from "../chunk-SUIHWGQT.js";
104
+ } from "../chunk-B6HZZ2Z3.js";
104
105
  import "../chunk-MCYJON3F.js";
105
106
  import "../chunk-LWSJK546.js";
106
107
  import "../chunk-ZYK3A2FR.js";
@@ -171,6 +172,7 @@ export {
171
172
  isEgressProxyRecoveryRequiredError,
172
173
  isSandboxApiBearerAuthFailure,
173
174
  isSandboxApiSandboxMissingFailure,
175
+ isSandboxApiTransientFailure,
174
176
  isSandboxAuthFailure,
175
177
  isSandboxHostCapacityFailure,
176
178
  isTerminalPromptEvent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.60.1",
3
+ "version": "0.60.2",
4
4
  "packageManager": "pnpm@11.24.0",
5
5
  "description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
6
6
  "keywords": [