@tangle-network/sandbox 1.0.195 → 1.0.197

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.
Files changed (47) hide show
  1. package/README.md +6 -1
  2. package/dist/agent/index.d.ts +4 -4
  3. package/dist/agent/index.js +5 -5
  4. package/dist/agent/preview.d.ts +1 -1
  5. package/dist/agent/preview.js +1 -1
  6. package/dist/{agent-run-outcome-BO5paRhX.d.ts → agent-run-outcome-D2Owom0h.d.ts} +2 -2
  7. package/dist/{api-request-DmLZ1RdX.js → api-request-S6doJ_UF.js} +1 -1
  8. package/dist/{browser-interactive-control-controller-KOK6qn2s.d.ts → browser-interactive-control-controller-BgHKZaE7.d.ts} +1 -1
  9. package/dist/{chunked-upload-D1sTCeLr.js → chunked-upload-DCdc8Nly.js} +2 -2
  10. package/dist/{chunked-upload-file-BM3k_ol3.js → chunked-upload-file-M4sFHf5n.js} +1 -1
  11. package/dist/{client-BC3csszv.js → client-CUm9KHI8.js} +9 -9
  12. package/dist/{client-yWdLuj_P.d.ts → client-DtQu5U1z.d.ts} +5 -5
  13. package/dist/collaboration/index.js +1 -1
  14. package/dist/{collaboration-DZIcyGoF.js → collaboration-9LAsWHvQ.js} +1 -1
  15. package/dist/{core-BKU1_Pbj.js → core-Cqb0csUL.js} +3 -4
  16. package/dist/core.d.ts +6 -6
  17. package/dist/core.js +5 -5
  18. package/dist/{errors-DYrRgCHB.js → errors-DKIV20jZ.js} +38 -35
  19. package/dist/{file-download-CUIMLK3J.js → file-download-DnI_Z_Za.js} +1 -1
  20. package/dist/{index-DKsOu5sq.d.ts → index-BZY242A9.d.ts} +5 -5
  21. package/dist/index.d.ts +9 -9
  22. package/dist/index.js +9 -9
  23. package/dist/intelligence/index.js +3 -3
  24. package/dist/interactive-control.d.ts +1 -1
  25. package/dist/{interactive-controller-DqlIWA_z.js → interactive-controller-CbA-njUb.js} +3 -3
  26. package/dist/{interactive-controller-YyZEsoB0.d.ts → interactive-controller-DRUUUo4N.d.ts} +3 -3
  27. package/dist/{lines-CCHDUfQg.d.ts → lines-CmxWSizM.d.ts} +1 -1
  28. package/dist/{lines-gn8FqF3c.js → lines-D3CdWX7Y.js} +1 -1
  29. package/dist/lines.d.ts +1 -1
  30. package/dist/lines.js +1 -1
  31. package/dist/{mcp-local-BkxybFme.js → mcp-local-DrQMU1lu.js} +2 -2
  32. package/dist/{preview-I1z42VGY.d.ts → preview-DcjUC7Wh.d.ts} +3 -3
  33. package/dist/{public-templates-Cw6gmWJD.d.ts → public-templates-DV6L-Ndd.d.ts} +2 -2
  34. package/dist/public-templates.d.ts +1 -1
  35. package/dist/public-templates.js +1 -1
  36. package/dist/{raw-evidence-archive-DOrr7af7.js → raw-evidence-archive-O1NFVYoU.js} +1 -1
  37. package/dist/runtime.d.ts +5 -5
  38. package/dist/runtime.js +4 -4
  39. package/dist/{sandbox-Djgwuf3R.js → sandbox-BApEp_7n.js} +17 -17
  40. package/dist/select-seat-command.d.ts +1 -1
  41. package/dist/select-seat-command.js +1 -1
  42. package/dist/tangle/index.d.ts +1 -1
  43. package/dist/tangle/index.js +1 -1
  44. package/dist/{tangle-cfvm_9z5.js → tangle-NAHKN48l.js} +2 -2
  45. package/dist/{terminal-stream-types-BqNv5EuG.d.ts → terminal-stream-types-Dy12OgR4.d.ts} +33 -31
  46. package/dist/{types-CiuGb4lZ.d.ts → types-CmvYNLKn.d.ts} +1 -1
  47. package/package.json +7 -7
@@ -6,7 +6,7 @@ declare const ERROR_CATALOG: {
6
6
  readonly INVALID_REQUEST: "400 final | The request is malformed or a field is invalid. | Fix the field the message names and send the request again.";
7
7
  readonly INVALID_TEXT_PART: "400 final | A text part is missing its text or is not base64-encoded UTF-8. | Base64-encode every text part, then send the request again.";
8
8
  readonly UNAUTHORIZED: "401 final | The credential is missing, invalid or expired. | Sign in again or send a valid API key.";
9
- readonly PAYMENT_REQUIRED: "402 final | The account has no balance, credit or plan for this request. | Add credit or upgrade the plan, then retry.";
9
+ readonly PAYMENT_REQUIRED: "402 final | The account has no balance, credit or plan for this request. | Add credit or a paid seat at https://id.tangle.tools/app/billing, then retry.";
10
10
  readonly FORBIDDEN: "403 final | The caller is authenticated but not allowed to do this. | Use a credential with the role or scope the message names.";
11
11
  readonly FEATURE_DISABLED: "403 final | This capability is switched off for this deployment or account. | Ask the operator to enable it.";
12
12
  readonly NOT_FOUND: "404 final | The resource does not exist or this account cannot see it. | Check the id and the account or team that owns it.";
@@ -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.code` is its catalog code. */
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 catalog code callers branch on; `wireCode`
239
- * is the code the server sent (it differs while servers still send
240
- * pre-catalog codes). `retryable` is the catalog's verdict on whether a later
241
- * retry can succeed, and `nextStep` is what the caller does about it.
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: ErrorCode;
245
- readonly wireCode: string;
246
- /** HTTP status the server answered, else the catalog status of `code`. */
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.62; check `code === "UNAUTHORIZED"`. */
323
+ /** @deprecated Removed in 2.0.0; check `catalogCode === "UNAUTHORIZED"`. */
322
324
  declare class AuthError extends SandboxError {}
323
- /** @deprecated Removed in 0.62; check `code === "NOT_FOUND"`. */
325
+ /** @deprecated Removed in 2.0.0; check `catalogCode === "NOT_FOUND"`. */
324
326
  declare class NotFoundError extends SandboxError {}
325
- /** @deprecated Removed in 0.62; check `code === "QUOTA_EXCEEDED"` or `"RATE_LIMITED"`. */
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.62; check `code === "UNSUPPORTED"` or `"FEATURE_DISABLED"`. */
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.62; check `wireCode === "GPU_PROVIDER_NOT_CONFIGURED"`. */
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.62; check `wireCode` for `COMPLIANCE_NOT_ENTITLED` or `COMPLIANCE_CELL_UNAVAILABLE`. */
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.62; read `failures`. */
335
+ /** @deprecated Removed in 2.0.0; read `failures`. */
334
336
  declare class PartialFailureError extends SandboxError {}
335
- /** @deprecated Removed in 0.62; check `code === "VALIDATION_ERROR"`. */
337
+ /** @deprecated Removed in 2.0.0; check `catalogCode === "VALIDATION_ERROR"`. */
336
338
  declare class ValidationError extends SandboxError {}
337
- /** @deprecated Removed in 0.62; check `wireCode` and read `path`. */
339
+ /** @deprecated Removed in 2.0.0; check `code` and read `path`. */
338
340
  declare class ProfileFileMountPathError extends SandboxError {}
339
- /** @deprecated Removed in 0.62; check `code === "INVALID_STATE"`. */
341
+ /** @deprecated Removed in 2.0.0; check `catalogCode === "INVALID_STATE"`. */
340
342
  declare class StateError extends SandboxError {}
341
- /** @deprecated Removed in 0.62; check `wireCode === "EDGE_NOT_READY"`. */
343
+ /** @deprecated Removed in 2.0.0; check `code === "EDGE_NOT_READY"`. */
342
344
  declare class EdgeNotReadyError extends SandboxError {}
343
- /** @deprecated Removed in 0.62; check `wireCode === "FILE_WRITE_CONFLICT"`. */
345
+ /** @deprecated Removed in 2.0.0; check `code === "FILE_WRITE_CONFLICT"`. */
344
346
  declare class FileWriteConflictError extends SandboxError {}
345
- /** @deprecated Removed in 0.62; check `wireCode === "KEY_BUDGET_EXHAUSTED"`. */
347
+ /** @deprecated Removed in 2.0.0; check `code === "KEY_BUDGET_EXHAUSTED"`. */
346
348
  declare class KeyBudgetExhaustedError extends SandboxError {}
347
- /** @deprecated Removed in 0.62; check `code === "EGRESS_PROXY_RECOVERY_REQUIRED"`. */
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.62; check `wireCode === "RESUME_ENV_REQUIRED"` and read `missingEnvKeys`. */
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.62; check `wireCode === "BRANCH_FANOUT_EXCEEDS_HOST"` and read `maxChildren`. */
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.62; check `code === "TIMEOUT"`. */
355
+ /** @deprecated Removed in 2.0.0; check `catalogCode === "TIMEOUT"`. */
354
356
  declare class TimeoutError extends SandboxError {}
355
- /** @deprecated Removed in 0.62; check `code === "NETWORK_ERROR"`. */
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.62; check `code === "STREAM_INTERRUPTED"`.
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.62; check `status >= 500`. */
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 (`wireCode` is its protocol code, e.g.
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.62; check `code`.
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-BqNv5EuG.js";
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.195",
3
+ "version": "1.0.197",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -153,15 +153,15 @@
153
153
  "vitest": "^4.1.12",
154
154
  "ws": "^8.22.0",
155
155
  "yjs": "13.6.33",
156
- "@repo/shared": "0.0.0",
157
- "@tangle-network/agent-profile-materialize": "0.27.1",
158
156
  "@products/sandbox-test-utils": "0.0.0",
159
- "@tangle-network/runtime-contracts": "0.20.0",
160
- "@tangle-network/cli-agent-registry": "0.15.0"
157
+ "@tangle-network/cli-agent-registry": "0.15.0",
158
+ "@tangle-network/agent-profile-materialize": "0.27.1",
159
+ "@repo/shared": "0.0.0",
160
+ "@tangle-network/runtime-contracts": "0.20.0"
161
161
  },
162
162
  "tangleRelease": {
163
- "sourceSha": "fcc4ccab93268867518d3ab9f0cb30a54865d39f",
164
- "mergedAt": "2026-11-02T09:49:03-08:00"
163
+ "sourceSha": "442b2885f2e63af2dd28e3c33ab9dcb54dd15a80",
164
+ "mergedAt": "2026-11-02T10:41:56-08:00"
165
165
  },
166
166
  "scripts": {
167
167
  "build": "node scripts/build-dist.mjs",