@tangle-network/agent-app 0.46.18 → 0.46.19

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.
@@ -23,9 +23,10 @@ export declare function serializeSandboxProvisioningError(error: unknown, option
23
23
  export declare function formatSandboxProvisioningSupportDetails(diagnostics: SafeSandboxErrorDiagnostics): string;
24
24
  export declare function isSandboxAuthFailure(diagnostics: SafeSandboxErrorDiagnostics): boolean;
25
25
  export declare function isSandboxApiBearerAuthFailure(diagnostics: SafeSandboxErrorDiagnostics): boolean;
26
+ export declare function isSandboxBackingContainerMissingMessage(message: string): boolean;
26
27
  /**
27
- * True when the sandbox API answered 404 for a specific sandbox resource — the
28
- * box behind a persisted sandbox id no longer exists.
28
+ * True when the sandbox API cannot find a sandbox resource or its backing
29
+ * container. The latter arrives as a 500 from resume with a nested host 404.
29
30
  *
30
31
  * A sandbox id is a cache of where a workspace's box lives, not the workspace's
31
32
  * identity: the platform reaps, suspends, and loses boxes as ordinary lifecycle
@@ -223,11 +223,11 @@ export interface SandboxRuntimeConfig {
223
223
  replaceUnbringableBox?: boolean;
224
224
  recoverStoppedSandbox?: (failure: StoppedSandboxResumeFailure) => Promise<Outcome<StoppedSandboxResumeRecovery | null>>;
225
225
  /**
226
- * Replace a sandbox that disappears after the platform lists it.
226
+ * Replace a sandbox resource or backing container that disappears after listing.
227
227
  *
228
- * The shell calls this only for a sandbox API 404. It does not call this for
229
- * a runtime 404 or another reuse failure. Return a fresh key to create a
230
- * replacement without deleting the already-missing sandbox.
228
+ * The shell calls this for a sandbox resource 404 or an exact resume 500 that
229
+ * wraps a host-agent container 404. It excludes runtime 404 and unrelated
230
+ * reuse failures. Return a fresh key without deleting the stale sandbox record.
231
231
  */
232
232
  recoverMissingSandbox?: (failure: MissingSandboxFailure) => Promise<Outcome<StoppedSandboxResumeRecovery | null>>;
233
233
  backendModelAtCreate?: boolean;
@@ -91,7 +91,7 @@ import {
91
91
  workspaceSandboxRecoveryMessage,
92
92
  workspaceSandboxRecoveryRecommendedActions,
93
93
  writeProfileFilesToBox
94
- } from "../chunk-47LN6Q2U.js";
94
+ } from "../chunk-HDQWY5AY.js";
95
95
  import "../chunk-TH7L265V.js";
96
96
  import "../chunk-LWSJK546.js";
97
97
  import "../chunk-P5PIAQVS.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.46.18",
3
+ "version": "0.46.19",
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": [