@tangle-network/agent-app 0.46.18 → 0.46.20
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.
- package/dist/chat-routes/index.js +1 -1
- package/dist/{chunk-47LN6Q2U.js → chunk-G6A4BEZI.js} +36 -5
- package/dist/chunk-G6A4BEZI.js.map +1 -0
- package/dist/sandbox/diagnostics.d.ts +9 -2
- package/dist/sandbox/index.d.ts +5 -5
- package/dist/sandbox/index.js +3 -1
- package/package.json +1 -1
- package/dist/chunk-47LN6Q2U.js.map +0 -1
|
@@ -23,9 +23,16 @@ 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
|
+
/** Machine-readable code emitted when resume lost the physical box. */
|
|
27
|
+
export declare const SANDBOX_BACKING_CONTAINER_MISSING_CODE: 'BACKING_CONTAINER_MISSING';
|
|
26
28
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
+
* Legacy fallback for Sandbox API releases that only returned the nested host
|
|
30
|
+
* 404 text. New callers must use `SANDBOX_BACKING_CONTAINER_MISSING_CODE`.
|
|
31
|
+
*/
|
|
32
|
+
export declare function isLegacySandboxBackingContainerMissingMessage(message: string): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* True when the sandbox API cannot find a sandbox resource or its backing
|
|
35
|
+
* container. The latter arrives as a 500 from resume with a nested host 404.
|
|
29
36
|
*
|
|
30
37
|
* A sandbox id is a cache of where a workspace's box lives, not the workspace's
|
|
31
38
|
* identity: the platform reaps, suspends, and loses boxes as ordinary lifecycle
|
package/dist/sandbox/index.d.ts
CHANGED
|
@@ -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
|
|
226
|
+
* Replace a sandbox resource or backing container that disappears after listing.
|
|
227
227
|
*
|
|
228
|
-
* The shell calls this
|
|
229
|
-
* a
|
|
230
|
-
*
|
|
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;
|
|
@@ -445,7 +445,7 @@ export declare class SandboxEgressPolicyMismatchError extends Error {
|
|
|
445
445
|
constructor(stage: SandboxExistingBoxStage, boxName: string, currentPolicy: EgressPolicy, currentSource: SandboxEgressPolicySource, desiredPolicy: EgressPolicy);
|
|
446
446
|
}
|
|
447
447
|
export * from './recovery';
|
|
448
|
-
export { serializeSandboxProvisioningError, formatSandboxProvisioningSupportDetails, formatSandboxProvisioningUserMessage, isSandboxAuthFailure, isSandboxApiBearerAuthFailure, isSandboxApiSandboxMissingFailure, isSandboxHostCapacityFailure, type SafeSandboxErrorCause, type SafeSandboxErrorDiagnostics, } from './diagnostics';
|
|
448
|
+
export { serializeSandboxProvisioningError, formatSandboxProvisioningSupportDetails, formatSandboxProvisioningUserMessage, isSandboxAuthFailure, isSandboxApiBearerAuthFailure, isSandboxApiSandboxMissingFailure, SANDBOX_BACKING_CONTAINER_MISSING_CODE, isSandboxHostCapacityFailure, type SafeSandboxErrorCause, type SafeSandboxErrorDiagnostics, } from './diagnostics';
|
|
449
449
|
/** Represent an error thrown when sandbox runtime authentication refresh fails for a specific stage and name */
|
|
450
450
|
export declare class SandboxRuntimeAuthRefreshError extends Error {
|
|
451
451
|
constructor(stage: SandboxExistingBoxStage, name: string, detail: string, cause?: unknown);
|
package/dist/sandbox/index.js
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
PREWARM_CLAIM_TABLE_DDL,
|
|
11
11
|
PROVISION_PAYLOAD_MAX_BYTES,
|
|
12
12
|
PYPI_EGRESS_DOMAINS,
|
|
13
|
+
SANDBOX_BACKING_CONTAINER_MISSING_CODE,
|
|
13
14
|
SandboxEgressPolicyMismatchError,
|
|
14
15
|
SandboxModelResolutionError,
|
|
15
16
|
SandboxRecoveryFailedError,
|
|
@@ -91,7 +92,7 @@ import {
|
|
|
91
92
|
workspaceSandboxRecoveryMessage,
|
|
92
93
|
workspaceSandboxRecoveryRecommendedActions,
|
|
93
94
|
writeProfileFilesToBox
|
|
94
|
-
} from "../chunk-
|
|
95
|
+
} from "../chunk-G6A4BEZI.js";
|
|
95
96
|
import "../chunk-TH7L265V.js";
|
|
96
97
|
import "../chunk-LWSJK546.js";
|
|
97
98
|
import "../chunk-P5PIAQVS.js";
|
|
@@ -112,6 +113,7 @@ export {
|
|
|
112
113
|
PREWARM_CLAIM_TABLE_DDL,
|
|
113
114
|
PROVISION_PAYLOAD_MAX_BYTES,
|
|
114
115
|
PYPI_EGRESS_DOMAINS,
|
|
116
|
+
SANDBOX_BACKING_CONTAINER_MISSING_CODE,
|
|
115
117
|
SandboxEgressPolicyMismatchError,
|
|
116
118
|
SandboxModelResolutionError,
|
|
117
119
|
SandboxRecoveryFailedError,
|
package/package.json
CHANGED