@tangle-network/sandbox 1.0.196 → 1.0.198
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/README.md +6 -1
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +5 -5
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +1 -1
- package/dist/{agent-run-outcome-9Crbg1zl.d.ts → agent-run-outcome-D2Owom0h.d.ts} +2 -2
- package/dist/{api-request-CpMIaWDv.js → api-request-8D8_deoB.js} +1 -1
- package/dist/{browser-interactive-control-controller-F4fljkmB.d.ts → browser-interactive-control-controller-BgHKZaE7.d.ts} +1 -1
- package/dist/{chunked-upload-5JAqrDnT.js → chunked-upload-DCdc8Nly.js} +2 -2
- package/dist/{chunked-upload-file-MijVbmg2.js → chunked-upload-file-M4sFHf5n.js} +1 -1
- package/dist/{client-DZE5kmbS.js → client-DDEXfah8.js} +9 -9
- package/dist/{client-BZvv8K5i.d.ts → client-DtQu5U1z.d.ts} +5 -5
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-BudW_tuq.js → collaboration-9LAsWHvQ.js} +1 -1
- package/dist/{core-BIa-CuSj.js → core-DnM7jlJY.js} +3 -4
- package/dist/core.d.ts +6 -6
- package/dist/core.js +5 -5
- package/dist/{errors-D_kyWjb1.js → errors-DKIV20jZ.js} +37 -34
- package/dist/{file-download-CclrJZ6w.js → file-download-DnI_Z_Za.js} +1 -1
- package/dist/{index-CRURJxeK.d.ts → index-BZY242A9.d.ts} +5 -5
- package/dist/index.d.ts +9 -9
- package/dist/index.js +9 -9
- package/dist/intelligence/index.js +3 -3
- package/dist/interactive-control.d.ts +1 -1
- package/dist/{interactive-controller-Dlk3qIdd.js → interactive-controller-CbA-njUb.js} +3 -3
- package/dist/{interactive-controller-CS4ppPKD.d.ts → interactive-controller-DRUUUo4N.d.ts} +3 -3
- package/dist/{lines-0DF4MAoY.d.ts → lines-CmxWSizM.d.ts} +1 -1
- package/dist/{lines-Bj4jbNKO.js → lines-D3CdWX7Y.js} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{mcp-local-LfC9Qhyt.js → mcp-local-sY5ndk_e.js} +2 -2
- package/dist/{preview-Zu-XKRkA.d.ts → preview-DcjUC7Wh.d.ts} +3 -3
- package/dist/{public-templates-l8Xtonad.d.ts → public-templates-DV6L-Ndd.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/public-templates.js +1 -1
- package/dist/{raw-evidence-archive-gUL5fNkE.js → raw-evidence-archive-O1NFVYoU.js} +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +4 -4
- package/dist/{sandbox-C4L7OUsF.js → sandbox-DMCbx2hY.js} +36 -36
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/select-seat-command.js +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-BZELiaQ6.js → tangle-F0HlLqTM.js} +2 -2
- package/dist/{terminal-stream-types-HvjaJGBC.d.ts → terminal-stream-types-Dy12OgR4.d.ts} +32 -30
- package/dist/{types-By-d4a-y.d.ts → types-CmvYNLKn.d.ts} +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
-
import { a as readResponseJson } from "./errors-
|
|
1
|
+
import { M as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-DMCbx2hY.js";
|
|
2
|
+
import { a as readResponseJson } from "./errors-DKIV20jZ.js";
|
|
3
3
|
import { _ as rotlBH, a as anumber, b as rotlSL, d as createXOFer, g as u32, h as toBytes$1, l as createHasher, m as swap32IfBE, n as abytes, o as aoutput, r as aexists, s as clean, t as Hash, v as rotlBL, x as split, y as rotlSH } from "./utils-CK-x8vXj.js";
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
|
|
5
5
|
/**
|
|
@@ -185,7 +185,7 @@ interface GpuProviderRequirement {
|
|
|
185
185
|
type StreamInterruptionReason = /** The caller's reconnect window elapsed while the execution stayed unreachable. */"reconnect-window-elapsed" /** The sandbox is stopped, failed, expired or deleted; the run cannot resume. */ | "sandbox-not-running" /** The runtime kept answering that it has no such execution. */ | "execution-not-found";
|
|
186
186
|
/** Everything a failure carries besides its message. Every field is optional. */
|
|
187
187
|
interface SandboxErrorMetadata {
|
|
188
|
-
/** The wire code, or a code the SDK names; `SandboxError.
|
|
188
|
+
/** The wire code, or a code the SDK names; `SandboxError.catalogCode` is its catalog code. */
|
|
189
189
|
code?: string;
|
|
190
190
|
/** HTTP status the server answered; absent means the catalog's status. */
|
|
191
191
|
status?: number;
|
|
@@ -235,15 +235,15 @@ interface SandboxErrorMetadata {
|
|
|
235
235
|
beforeOpen?: boolean;
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
238
|
-
* The one SDK error. `code` is the
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
* retry can succeed, and `nextStep` is what the caller does
|
|
238
|
+
* The one SDK error. `code` is the code the server sent, or the SDK's own
|
|
239
|
+
* code for a client-side failure; `catalogCode` is its catalog code (equal
|
|
240
|
+
* when the catalog lists `code`). `retryable` is the catalog's verdict on
|
|
241
|
+
* whether a later retry can succeed, and `nextStep` is what the caller does.
|
|
242
242
|
*/
|
|
243
243
|
declare class SandboxError extends Error {
|
|
244
|
-
readonly code:
|
|
245
|
-
readonly
|
|
246
|
-
/** HTTP status the server answered, else the catalog status of `
|
|
244
|
+
readonly code: string;
|
|
245
|
+
readonly catalogCode: ErrorCode;
|
|
246
|
+
/** HTTP status the server answered, else the catalog status of `catalogCode`. */
|
|
247
247
|
readonly status: number;
|
|
248
248
|
readonly retryable: boolean;
|
|
249
249
|
readonly nextStep: string;
|
|
@@ -317,52 +317,54 @@ declare class SandboxError extends Error {
|
|
|
317
317
|
/** A terminal socket that never reached OPEN. */
|
|
318
318
|
readonly beforeOpen?: boolean;
|
|
319
319
|
constructor(message: string, metadata?: SandboxErrorMetadata);
|
|
320
|
+
/** @deprecated Shipped in 1.0.191–1.0.195; removed in 2.0.0. Read `code`. */
|
|
321
|
+
get wireCode(): string;
|
|
320
322
|
}
|
|
321
|
-
/** @deprecated Removed in 0.
|
|
323
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "UNAUTHORIZED"`. */
|
|
322
324
|
declare class AuthError extends SandboxError {}
|
|
323
|
-
/** @deprecated Removed in 0.
|
|
325
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "NOT_FOUND"`. */
|
|
324
326
|
declare class NotFoundError extends SandboxError {}
|
|
325
|
-
/** @deprecated Removed in 0.
|
|
327
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "QUOTA_EXCEEDED"` or `"RATE_LIMITED"`. */
|
|
326
328
|
declare class QuotaError extends SandboxError {}
|
|
327
|
-
/** @deprecated Removed in 0.
|
|
329
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "UNSUPPORTED"` or `"FEATURE_DISABLED"`. */
|
|
328
330
|
declare class CapabilityError extends SandboxError {}
|
|
329
|
-
/** @deprecated Removed in 0.
|
|
331
|
+
/** @deprecated Removed in 2.0.0; check `code === "GPU_PROVIDER_NOT_CONFIGURED"`. */
|
|
330
332
|
declare class GpuProviderNotConfiguredError extends CapabilityError {}
|
|
331
|
-
/** @deprecated Removed in 0.
|
|
333
|
+
/** @deprecated Removed in 2.0.0; check `code` for `COMPLIANCE_NOT_ENTITLED` or `COMPLIANCE_CELL_UNAVAILABLE`. */
|
|
332
334
|
declare class CompliancePlacementError extends SandboxError {}
|
|
333
|
-
/** @deprecated Removed in 0.
|
|
335
|
+
/** @deprecated Removed in 2.0.0; read `failures`. */
|
|
334
336
|
declare class PartialFailureError extends SandboxError {}
|
|
335
|
-
/** @deprecated Removed in 0.
|
|
337
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "VALIDATION_ERROR"`. */
|
|
336
338
|
declare class ValidationError extends SandboxError {}
|
|
337
|
-
/** @deprecated Removed in 0.
|
|
339
|
+
/** @deprecated Removed in 2.0.0; check `code` and read `path`. */
|
|
338
340
|
declare class ProfileFileMountPathError extends SandboxError {}
|
|
339
|
-
/** @deprecated Removed in 0.
|
|
341
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "INVALID_STATE"`. */
|
|
340
342
|
declare class StateError extends SandboxError {}
|
|
341
|
-
/** @deprecated Removed in 0.
|
|
343
|
+
/** @deprecated Removed in 2.0.0; check `code === "EDGE_NOT_READY"`. */
|
|
342
344
|
declare class EdgeNotReadyError extends SandboxError {}
|
|
343
|
-
/** @deprecated Removed in 0.
|
|
345
|
+
/** @deprecated Removed in 2.0.0; check `code === "FILE_WRITE_CONFLICT"`. */
|
|
344
346
|
declare class FileWriteConflictError extends SandboxError {}
|
|
345
|
-
/** @deprecated Removed in 0.
|
|
347
|
+
/** @deprecated Removed in 2.0.0; check `code === "KEY_BUDGET_EXHAUSTED"`. */
|
|
346
348
|
declare class KeyBudgetExhaustedError extends SandboxError {}
|
|
347
|
-
/** @deprecated Removed in 0.
|
|
349
|
+
/** @deprecated Removed in 2.0.0; check `code === "EGRESS_PROXY_RECOVERY_REQUIRED"`. */
|
|
348
350
|
declare class EgressProxyRecoveryError extends SandboxError {}
|
|
349
|
-
/** @deprecated Removed in 0.
|
|
351
|
+
/** @deprecated Removed in 2.0.0; check `code === "RESUME_ENV_REQUIRED"` and read `missingEnvKeys`. */
|
|
350
352
|
declare class ResumeEnvRequiredError extends SandboxError {}
|
|
351
|
-
/** @deprecated Removed in 0.
|
|
353
|
+
/** @deprecated Removed in 2.0.0; check `code === "BRANCH_FANOUT_EXCEEDS_HOST"` and read `maxChildren`. */
|
|
352
354
|
declare class BranchFanoutExceedsHostError extends SandboxError {}
|
|
353
|
-
/** @deprecated Removed in 0.
|
|
355
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "TIMEOUT"`. */
|
|
354
356
|
declare class TimeoutError extends SandboxError {}
|
|
355
|
-
/** @deprecated Removed in 0.
|
|
357
|
+
/** @deprecated Removed in 2.0.0; check `catalogCode === "NETWORK_ERROR"`. */
|
|
356
358
|
declare class NetworkError extends SandboxError {}
|
|
357
359
|
/**
|
|
358
360
|
* The stream of an admitted execution ended without its terminal event and
|
|
359
361
|
* the SDK could not rejoin it. The outcome is UNKNOWN, never a failure
|
|
360
362
|
* verdict: rejoin with `streamPrompt(message, { executionId, lastEventId,
|
|
361
363
|
* sessionId })`, or read the session status.
|
|
362
|
-
* @deprecated Removed in 0.
|
|
364
|
+
* @deprecated Removed in 2.0.0; check `code === "STREAM_INTERRUPTED"`.
|
|
363
365
|
*/
|
|
364
366
|
declare class StreamInterruptedError extends SandboxError {}
|
|
365
|
-
/** @deprecated Removed in 0.
|
|
367
|
+
/** @deprecated Removed in 2.0.0; check `status >= 500`. */
|
|
366
368
|
declare class ServerError extends SandboxError {}
|
|
367
369
|
//#endregion
|
|
368
370
|
//#region src/errors.d.ts
|
|
@@ -378,10 +380,10 @@ declare function parseErrorResponse(status: number, body: string, context?: {
|
|
|
378
380
|
allPreviousCreateAttemptsRefused?: boolean;
|
|
379
381
|
}, headers?: Headers): SandboxError;
|
|
380
382
|
/**
|
|
381
|
-
* A terminal protocol `error` frame (`
|
|
383
|
+
* A terminal protocol `error` frame (`code` is its protocol code, e.g.
|
|
382
384
|
* `INIT_FAILED`) or a socket fault (`TRANSPORT`). `beforeOpen` is true when
|
|
383
385
|
* the socket never reached OPEN, so no PTY work started on this dial.
|
|
384
|
-
* @deprecated Removed in 0.
|
|
386
|
+
* @deprecated Removed in 2.0.0; check `code`.
|
|
385
387
|
*/
|
|
386
388
|
declare class TerminalStreamError extends SandboxError {}
|
|
387
389
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ProxySecretReceipt, At as SandboxCreateReceipt, G as AgentProfileConfidential, L as AgentExactRunControlRef, Q as ReasoningEffort, U as AgentProfile, V as InteractionRequest, W as AgentProfileCapabilities, Z as AgentProfileValidationResult, a as TerminalStreamOptions, b as SandboxSizePreset, g as TerminalReadyInfo, i as TerminalStreamHandlers, s as TerminalStreamToken, t as TerminalAttachTimings, tt as PlanContinuation, x as AgentRuntimeAttachments } from "./terminal-stream-types-
|
|
1
|
+
import { $ as ProxySecretReceipt, At as SandboxCreateReceipt, G as AgentProfileConfidential, L as AgentExactRunControlRef, Q as ReasoningEffort, U as AgentProfile, V as InteractionRequest, W as AgentProfileCapabilities, Z as AgentProfileValidationResult, a as TerminalStreamOptions, b as SandboxSizePreset, g as TerminalReadyInfo, i as TerminalStreamHandlers, s as TerminalStreamToken, t as TerminalAttachTimings, tt as PlanContinuation, x as AgentRuntimeAttachments } from "./terminal-stream-types-Dy12OgR4.js";
|
|
2
2
|
import { t as CliAuthReference } from "./cli-auth-bundle-Wg3x2hd2.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/backend-types.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.198",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -154,14 +154,14 @@
|
|
|
154
154
|
"ws": "^8.22.0",
|
|
155
155
|
"yjs": "13.6.33",
|
|
156
156
|
"@products/sandbox-test-utils": "0.0.0",
|
|
157
|
-
"@tangle-network/agent-profile-materialize": "0.27.1",
|
|
158
157
|
"@repo/shared": "0.0.0",
|
|
158
|
+
"@tangle-network/agent-profile-materialize": "0.27.1",
|
|
159
159
|
"@tangle-network/cli-agent-registry": "0.15.0",
|
|
160
160
|
"@tangle-network/runtime-contracts": "0.20.0"
|
|
161
161
|
},
|
|
162
162
|
"tangleRelease": {
|
|
163
|
-
"sourceSha": "
|
|
164
|
-
"mergedAt": "2026-11-
|
|
163
|
+
"sourceSha": "77c8906ad7fc437be7f7677d2ae0103e11227dba",
|
|
164
|
+
"mergedAt": "2026-11-02T15:56:21-08:00"
|
|
165
165
|
},
|
|
166
166
|
"scripts": {
|
|
167
167
|
"build": "node scripts/build-dist.mjs",
|