@tangle-network/sandbox 0.60.78-develop.20261025161102.a5d8be1 → 0.60.78-develop.20261025204905.3c2273e

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 (67) hide show
  1. package/README.md +2 -2
  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 +2 -2
  6. package/dist/{agent-run-outcome-DdsouF9L.d.ts → agent-run-outcome-BZUuKIbL.d.ts} +1 -1
  7. package/dist/api-request-D8Mni27A.js +89 -0
  8. package/dist/auth/index.d.ts +2 -2
  9. package/dist/auth/index.js +1 -1
  10. package/dist/{browser-interactive-control-controller-DmuOTpD1.d.ts → browser-interactive-control-controller-CH7CLpmc.d.ts} +1 -1
  11. package/dist/{chunked-upload-D1DL0f88.js → chunked-upload-CbtLVV6-.js} +1 -1
  12. package/dist/{chunked-upload-file-BpfpPCsE.js → chunked-upload-file-CbbWlCFt.js} +2 -2
  13. package/dist/{client-CuRp6nJP.d.ts → client-BPcdRhgx.d.ts} +5 -5
  14. package/dist/{client-D7emKV41.js → client-CtpCYHJC.js} +53 -111
  15. package/dist/collaboration/index.d.ts +1 -1
  16. package/dist/collaboration/index.js +1 -1
  17. package/dist/{collaboration-Tn2ygatK.js → collaboration-Ox7K-TN6.js} +1 -1
  18. package/dist/{core-DnrLA0im.js → core-BKs0Yy2i.js} +2 -2
  19. package/dist/core.d.ts +6 -6
  20. package/dist/core.js +5 -5
  21. package/dist/{direct-http2-6fHIO7eF.js → direct-http2-BhGER8b8.js} +16 -4
  22. package/dist/{errors-CfQHPcLX.js → errors-Bs5G7JdV.js} +15 -1
  23. package/dist/{index-0eZStBT2.d.ts → index-Bk4Hsycj.d.ts} +6 -6
  24. package/dist/index.d.ts +12 -12
  25. package/dist/index.js +9 -9
  26. package/dist/intelligence/index.js +14 -32
  27. package/dist/interactive-control.d.ts +1 -1
  28. package/dist/{interactive-controller-CIHMF8C4.d.ts → interactive-controller-Db_8jnl7.d.ts} +3 -3
  29. package/dist/{interactive-controller-DoYo8Kq5.js → interactive-controller-ThIeP_oZ.js} +2 -2
  30. package/dist/lib/prepared-evidence.js +1 -1
  31. package/dist/lib/prepared-process.js +1 -1
  32. package/dist/{lines-DuELZcNj.d.ts → lines-D5XpPinb.d.ts} +1 -1
  33. package/dist/{lines-BdF6b46c.js → lines-DgRXUg5y.js} +1 -1
  34. package/dist/lines.d.ts +1 -1
  35. package/dist/lines.js +1 -1
  36. package/dist/{local-cli-auth--crCWGcG.js → local-cli-auth-fCKtTFG9.js} +1 -1
  37. package/dist/{mcp-local-CjcoVT7f.js → mcp-local-ClJ5TD-m.js} +1 -1
  38. package/dist/openai/index.js +23 -8
  39. package/dist/{preview-BRJcdA7Y.d.ts → preview-CGZfio1_.d.ts} +3 -3
  40. package/dist/{public-templates-DsozsQ0T.d.ts → public-templates-B5uA7KJv.d.ts} +2 -2
  41. package/dist/public-templates.d.ts +1 -1
  42. package/dist/public-templates.js +1 -1
  43. package/dist/{raw-evidence-archive-Dh6E0L0h.js → raw-evidence-archive-iDPF8eF_.js} +1 -1
  44. package/dist/response-rewrap-Bsj87BIq.js +28 -0
  45. package/dist/runtime.d.ts +5 -5
  46. package/dist/runtime.js +15 -23
  47. package/dist/{sandbox-C_DMDlO5.js → sandbox-DLbiLJjB.js} +38 -94
  48. package/dist/{secp256k1-_-uZfzOX.js → secp256k1-CoRKQn1k.js} +1 -1
  49. package/dist/select-seat-command.d.ts +1 -1
  50. package/dist/select-seat-command.js +1 -1
  51. package/dist/session-gateway/index.d.ts +10 -12
  52. package/dist/session-gateway/index.js +35 -11
  53. package/dist/tangle/index.d.ts +1 -1
  54. package/dist/tangle/index.js +1 -1
  55. package/dist/{tangle-CedA3iP4.js → tangle-DL5MgMwB.js} +48 -37
  56. package/dist/{terminal-stream-types-BTqOP3Zi.d.ts → terminal-stream-types-yAt76vk7.d.ts} +11 -1
  57. package/dist/{types-0pIxzm2k.d.ts → types-BVsCs_Mz.d.ts} +29 -7
  58. package/package.json +9 -10
  59. /package/dist/{cli-auth-bundle-DKp1d5dJ.d.ts → cli-auth-bundle-Can3oLKY.d.ts} +0 -0
  60. /package/dist/{cli-auth-bundle-Ymv99-5G.js → cli-auth-bundle-yr4ZESxY.js} +0 -0
  61. /package/dist/{index-BMbJOPfn.d.ts → index-B8xo7y26.d.ts} +0 -0
  62. /package/dist/{index-DcEJnM4x.d.ts → index-mz8_2rr2.d.ts} +0 -0
  63. /package/dist/{keep-alive-fetch-_KZcsAS_.js → keep-alive-fetch-C92u8Kce.js} +0 -0
  64. /package/dist/{prepared-evidence-Bqxb-qWc.js → prepared-evidence-Di89Tatw.js} +0 -0
  65. /package/dist/{prepared-process-DNX-AVJ3.js → prepared-process-DuWP6Kb7.js} +0 -0
  66. /package/dist/{preview-operations-D5hsnCHF.js → preview-operations-BL7YCkes.js} +0 -0
  67. /package/dist/{utils-Bl-H3KsQ.js → utils-C86i6t3C.js} +0 -0
@@ -1,6 +1,6 @@
1
- import { i as readResponseJson } from "./errors-CfQHPcLX.js";
2
- import { n as createSandboxInstanceFromResponse } from "./sandbox-C_DMDlO5.js";
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-Bl-H3KsQ.js";
1
+ import { i as readResponseJson } from "./errors-Bs5G7JdV.js";
2
+ import { n as createSandboxInstanceFromResponse } from "./sandbox-DLbiLJjB.js";
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-C86i6t3C.js";
4
4
  //#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
5
5
  /**
6
6
  * Tangle blueprint wire contract shared by the orchestrator's Tangle driver and
@@ -1147,10 +1147,10 @@ var TangleSandboxClient = class {
1147
1147
  }
1148
1148
  };
1149
1149
  //#endregion
1150
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/version.js
1151
- const version = "2.55.4";
1150
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/version.js
1151
+ const version = "2.57.10";
1152
1152
  //#endregion
1153
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/base.js
1153
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/base.js
1154
1154
  let errorConfig = {
1155
1155
  getDocsUrl: ({ docsBaseUrl, docsPath = "", docsSlug }) => docsPath ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
1156
1156
  version: `viem@${version}`
@@ -1232,7 +1232,7 @@ function walk(err, fn) {
1232
1232
  return fn ? null : err;
1233
1233
  }
1234
1234
  //#endregion
1235
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/address.js
1235
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/address.js
1236
1236
  var InvalidAddressError = class extends BaseError {
1237
1237
  constructor({ address }) {
1238
1238
  super(`Address "${address}" is invalid.`, {
@@ -1242,14 +1242,14 @@ var InvalidAddressError = class extends BaseError {
1242
1242
  }
1243
1243
  };
1244
1244
  //#endregion
1245
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/data/isHex.js
1245
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/data/isHex.js
1246
1246
  function isHex(value, { strict = true } = {}) {
1247
1247
  if (!value) return false;
1248
1248
  if (typeof value !== "string") return false;
1249
1249
  return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
1250
1250
  }
1251
1251
  //#endregion
1252
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/data.js
1252
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/data.js
1253
1253
  var SliceOffsetOutOfBoundsError = class extends BaseError {
1254
1254
  constructor({ offset, position, size }) {
1255
1255
  super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size}).`, { name: "SliceOffsetOutOfBoundsError" });
@@ -1261,7 +1261,7 @@ var SizeExceedsPaddingSizeError = class extends BaseError {
1261
1261
  }
1262
1262
  };
1263
1263
  //#endregion
1264
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/data/pad.js
1264
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/data/pad.js
1265
1265
  function pad(hexOrBytes, { dir, size = 32 } = {}) {
1266
1266
  if (typeof hexOrBytes === "string") return padHex(hexOrBytes, {
1267
1267
  dir,
@@ -1297,7 +1297,7 @@ function padBytes(bytes, { dir, size = 32 } = {}) {
1297
1297
  return paddedBytes;
1298
1298
  }
1299
1299
  //#endregion
1300
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/encoding.js
1300
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/encoding.js
1301
1301
  var IntegerOutOfRangeError = class extends BaseError {
1302
1302
  constructor({ max, min, signed, size, value }) {
1303
1303
  super(`Number "${value}" is not in safe ${size ? `${size * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
@@ -1309,7 +1309,7 @@ var SizeOverflowError = class extends BaseError {
1309
1309
  }
1310
1310
  };
1311
1311
  //#endregion
1312
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/data/size.js
1312
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/data/size.js
1313
1313
  /**
1314
1314
  * @description Retrieves the size of the value (in bytes).
1315
1315
  *
@@ -1321,7 +1321,7 @@ function size(value) {
1321
1321
  return value.length;
1322
1322
  }
1323
1323
  //#endregion
1324
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/encoding/fromHex.js
1324
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/encoding/fromHex.js
1325
1325
  function assertSize(hexOrBytes, { size: size$1 }) {
1326
1326
  if (size(hexOrBytes) > size$1) throw new SizeOverflowError({
1327
1327
  givenSize: size(hexOrBytes),
@@ -1352,7 +1352,7 @@ function hexToBigInt(hex, opts = {}) {
1352
1352
  if (opts.size) assertSize(hex, { size: opts.size });
1353
1353
  const value = BigInt(hex);
1354
1354
  if (!signed) return value;
1355
- const size = (hex.length - 2) / 2;
1355
+ const size = Math.ceil((hex.length - 2) / 2);
1356
1356
  if (value <= (1n << BigInt(size) * 8n - 1n) - 1n) return value;
1357
1357
  return value - BigInt(`0x${"f".padStart(size * 2, "f")}`) - 1n;
1358
1358
  }
@@ -1388,7 +1388,7 @@ function hexToNumber(hex, opts = {}) {
1388
1388
  return number;
1389
1389
  }
1390
1390
  //#endregion
1391
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/encoding/toHex.js
1391
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/encoding/toHex.js
1392
1392
  const hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
1393
1393
  /**
1394
1394
  * Encodes a string, number, bigint, or ByteArray into a hex string
@@ -1550,7 +1550,7 @@ function stringToHex(value_, opts = {}) {
1550
1550
  return bytesToHex(encoder$1.encode(value_), opts);
1551
1551
  }
1552
1552
  //#endregion
1553
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/encoding/toBytes.js
1553
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/encoding/toBytes.js
1554
1554
  const encoder = /* @__PURE__ */ new TextEncoder();
1555
1555
  /**
1556
1556
  * Encodes a UTF-8 string, hex value, bigint, number or boolean to a byte array.
@@ -1909,7 +1909,7 @@ const genShake = (suffix, blockLen, outputLen) => createXOFer((opts = {}) => new
1909
1909
  genShake(31, 168, 128 / 8);
1910
1910
  genShake(31, 136, 256 / 8);
1911
1911
  //#endregion
1912
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/hash/keccak256.js
1912
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/hash/keccak256.js
1913
1913
  function keccak256(value, to_) {
1914
1914
  const to = to_ || "hex";
1915
1915
  const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
@@ -1917,7 +1917,7 @@ function keccak256(value, to_) {
1917
1917
  return toHex(bytes);
1918
1918
  }
1919
1919
  //#endregion
1920
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/lru.js
1920
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/lru.js
1921
1921
  /**
1922
1922
  * Map with a LRU (Least recently used) policy.
1923
1923
  *
@@ -1953,7 +1953,7 @@ var LruMap = class extends Map {
1953
1953
  }
1954
1954
  };
1955
1955
  //#endregion
1956
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/address/isAddress.js
1956
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/address/isAddress.js
1957
1957
  const addressRegex = /^0x[a-fA-F0-9]{40}$/;
1958
1958
  /** @internal */
1959
1959
  const isAddressCache = /* @__PURE__ */ new LruMap(8192);
@@ -1971,7 +1971,7 @@ function isAddress(address, options) {
1971
1971
  return result;
1972
1972
  }
1973
1973
  //#endregion
1974
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/address/getAddress.js
1974
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/address/getAddress.js
1975
1975
  const checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
1976
1976
  function checksumAddress(address_, chainId) {
1977
1977
  if (checksumAddressCache.has(`${address_}.${chainId}`)) return checksumAddressCache.get(`${address_}.${chainId}`);
@@ -1991,7 +1991,7 @@ function getAddress(address, chainId) {
1991
1991
  return checksumAddress(address, chainId);
1992
1992
  }
1993
1993
  //#endregion
1994
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/accounts/utils/publicKeyToAddress.js
1994
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/accounts/utils/publicKeyToAddress.js
1995
1995
  /**
1996
1996
  * @description Converts an ECDSA public key to an address.
1997
1997
  *
@@ -2003,7 +2003,7 @@ function publicKeyToAddress(publicKey) {
2003
2003
  return checksumAddress(`0x${keccak256(`0x${publicKey.substring(4)}`).substring(26)}`);
2004
2004
  }
2005
2005
  //#endregion
2006
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/abi.js
2006
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/abi.js
2007
2007
  var AbiEncodingArrayLengthMismatchError = class extends BaseError {
2008
2008
  constructor({ expectedLength, givenLength, type }) {
2009
2009
  super([
@@ -2046,7 +2046,7 @@ var InvalidArrayError = class extends BaseError {
2046
2046
  }
2047
2047
  };
2048
2048
  //#endregion
2049
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/data/slice.js
2049
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/data/slice.js
2050
2050
  /**
2051
2051
  * @description Returns a section of the hex or byte array given a start/end bytes offset.
2052
2052
  *
@@ -2099,7 +2099,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
2099
2099
  return value;
2100
2100
  }
2101
2101
  //#endregion
2102
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/data/concat.js
2102
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/data/concat.js
2103
2103
  function concat(values) {
2104
2104
  if (typeof values[0] === "string") return concatHex(values);
2105
2105
  return concatBytes(values);
@@ -2119,11 +2119,11 @@ function concatHex(values) {
2119
2119
  return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
2120
2120
  }
2121
2121
  //#endregion
2122
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/regex.js
2122
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/regex.js
2123
2123
  const bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
2124
2124
  const integerRegex = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
2125
2125
  //#endregion
2126
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
2126
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
2127
2127
  /**
2128
2128
  * @description Encodes a list of primitive values into an ABI-encoded hex value.
2129
2129
  *
@@ -2360,23 +2360,23 @@ function isDynamicType(param) {
2360
2360
  return false;
2361
2361
  }
2362
2362
  //#endregion
2363
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/stringify.js
2363
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/stringify.js
2364
2364
  const stringify = (value, replacer, space) => JSON.stringify(value, (key, value_) => {
2365
2365
  const value = typeof value_ === "bigint" ? value_.toString() : value_;
2366
2366
  return typeof replacer === "function" ? replacer(key, value) : value;
2367
2367
  }, space);
2368
2368
  //#endregion
2369
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/address/isAddressEqual.js
2369
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/address/isAddressEqual.js
2370
2370
  function isAddressEqual(a, b) {
2371
2371
  if (!isAddress(a, { strict: false })) throw new InvalidAddressError({ address: a });
2372
2372
  if (!isAddress(b, { strict: false })) throw new InvalidAddressError({ address: b });
2373
2373
  return a.toLowerCase() === b.toLowerCase();
2374
2374
  }
2375
2375
  //#endregion
2376
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/recoverPublicKey.js
2376
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/recoverPublicKey.js
2377
2377
  async function recoverPublicKey({ hash, signature }) {
2378
2378
  const hashHex = isHex(hash) ? hash : toHex(hash);
2379
- const { secp256k1 } = await import("./secp256k1-_-uZfzOX.js");
2379
+ const { secp256k1 } = await import("./secp256k1-CoRKQn1k.js");
2380
2380
  return `0x${(() => {
2381
2381
  if (typeof signature === "object" && "r" in signature && "s" in signature) {
2382
2382
  const { r, s, v, yParity } = signature;
@@ -2396,7 +2396,7 @@ function toRecoveryBit(yParityOrV) {
2396
2396
  throw new Error("Invalid yParityOrV value");
2397
2397
  }
2398
2398
  //#endregion
2399
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/recoverAddress.js
2399
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/recoverAddress.js
2400
2400
  async function recoverAddress({ hash, signature }) {
2401
2401
  return publicKeyToAddress(await recoverPublicKey({
2402
2402
  hash,
@@ -2404,7 +2404,7 @@ async function recoverAddress({ hash, signature }) {
2404
2404
  }));
2405
2405
  }
2406
2406
  //#endregion
2407
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/typedData.js
2407
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/errors/typedData.js
2408
2408
  var InvalidDomainError = class extends BaseError {
2409
2409
  constructor({ domain }) {
2410
2410
  super(`Invalid domain "${stringify(domain)}".`, { metaMessages: ["Must be a valid EIP-712 domain."] });
@@ -2426,14 +2426,25 @@ var InvalidStructTypeError = class extends BaseError {
2426
2426
  });
2427
2427
  }
2428
2428
  };
2429
+ var InvalidTypedDataTypeError = class extends BaseError {
2430
+ constructor({ type }) {
2431
+ const canonicalType = type.replace(/^(u?int)/, "$&256");
2432
+ super(`Type "${type}" is not a valid EIP-712 type.`, {
2433
+ metaMessages: [`Use "${canonicalType}" instead.`],
2434
+ name: "InvalidTypedDataTypeError"
2435
+ });
2436
+ }
2437
+ };
2429
2438
  //#endregion
2430
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/typedData.js
2439
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/typedData.js
2431
2440
  function validateTypedData(parameters) {
2432
2441
  const { domain, message, primaryType, types } = parameters;
2433
2442
  const validateData = (struct, data) => {
2434
2443
  for (const param of struct) {
2435
2444
  const { name, type } = param;
2436
2445
  const value = data[name];
2446
+ const baseType = type.replace(/(\[[0-9]*\])+$/, "");
2447
+ if (baseType === "int" || baseType === "uint") throw new InvalidTypedDataTypeError({ type });
2437
2448
  const integerMatch = type.match(integerRegex);
2438
2449
  if (integerMatch && (typeof value === "number" || typeof value === "bigint")) {
2439
2450
  const [_type, base, size_] = integerMatch;
@@ -2474,7 +2485,7 @@ function getTypesForEIP712Domain({ domain }) {
2474
2485
  name: "name",
2475
2486
  type: "string"
2476
2487
  },
2477
- domain?.version && {
2488
+ typeof domain?.version === "string" && {
2478
2489
  name: "version",
2479
2490
  type: "string"
2480
2491
  },
@@ -2497,7 +2508,7 @@ function validateReference(type) {
2497
2508
  if (type === "address" || type === "bool" || type === "string" || type.startsWith("bytes") || type.startsWith("uint") || type.startsWith("int")) throw new InvalidStructTypeError({ type });
2498
2509
  }
2499
2510
  //#endregion
2500
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/hashTypedData.js
2511
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/hashTypedData.js
2501
2512
  function hashTypedData(parameters) {
2502
2513
  const { domain = {}, message, primaryType } = parameters;
2503
2514
  const types = {
@@ -2602,7 +2613,7 @@ function encodeField({ types, name, type, value }) {
2602
2613
  return [{ type }, value];
2603
2614
  }
2604
2615
  //#endregion
2605
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/recoverTypedDataAddress.js
2616
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/recoverTypedDataAddress.js
2606
2617
  async function recoverTypedDataAddress(parameters) {
2607
2618
  const { domain, message, primaryType, signature, types } = parameters;
2608
2619
  return recoverAddress({
@@ -2616,7 +2627,7 @@ async function recoverTypedDataAddress(parameters) {
2616
2627
  });
2617
2628
  }
2618
2629
  //#endregion
2619
- //#region ../../../node_modules/.pnpm/viem@2.55.4_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/verifyTypedData.js
2630
+ //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/verifyTypedData.js
2620
2631
  /**
2621
2632
  * Verify that typed data was signed by the provided address.
2622
2633
  *
@@ -161,6 +161,16 @@ declare class GpuProviderNotConfiguredError extends CapabilityError {
161
161
  readonly providers: GpuProviderRequirement[];
162
162
  constructor(message: string, providers?: GpuProviderRequirement[], status?: number, metadata?: SandboxErrorMetadata);
163
163
  }
164
+ /**
165
+ * A create that requires HIPAA placement was refused. `code` says why:
166
+ * `COMPLIANCE_NOT_ENTITLED` (403) when the credential carries no HIPAA
167
+ * entitlement, `COMPLIANCE_CELL_UNAVAILABLE` (503) when no HIPAA-designated
168
+ * cell can take the create now. Either way nothing was created, and the
169
+ * create was not placed in any other cell. The SDK does not retry it.
170
+ */
171
+ declare class CompliancePlacementError extends SandboxError {
172
+ constructor(message: string, code: "COMPLIANCE_NOT_ENTITLED" | "COMPLIANCE_CELL_UNAVAILABLE", status: number, metadata?: SandboxErrorMetadata);
173
+ }
164
174
  /**
165
175
  * A multi-resource operation failed for one or more branches.
166
176
  */
@@ -659,4 +669,4 @@ interface TerminalStreamOptions {
659
669
  mintMs?: number;
660
670
  }
661
671
  //#endregion
662
- export { NotFoundError as A, StreamInterruptedError as B, EdgeNotReadyError as C, GpuProviderRequirement as D, GpuProviderNotConfiguredError as E, SandboxError as F, SandboxCreateReceipt as G, TimeoutError as H, SandboxErrorJson as I, SandboxFailureDetail as L, ProfileFileMountPathError as M, QuotaError as N, KeyBudgetExhaustedError as O, ResumeEnvRequiredError as P, ServerError as R, CapabilityError as S, FileWriteConflictError as T, ValidationError as U, StreamInterruptionReason as V, SandboxCreateOutcome as W, TerminalReadyTimings as _, TerminalStreamOptions as a, AuthError as b, MintInteractiveSessionTokenOptions as c, ScopedTokenScope as d, TERMINAL_WS_ECHO_SUBPROTOCOL as f, TerminalReadyInfo as g, TerminalOutputMessage as h, TerminalStreamHandlers as i, PartialFailureError as j, NetworkError as k, MintScopedTokenOptions as l, TerminalInteractiveSessionIdentity as m, TerminalStreamApiKey as n, TerminalStreamReconnectAuthority as o, TerminalExitInfo as p, TerminalStreamBearerToken as r, TerminalStreamToken as s, TerminalAttachTimings as t, ScopedToken as u, TerminalStreamAuthFormat as v, EgressProxyRecoveryError as w, BranchFanoutExceedsHostError as x, TerminalStreamError as y, StateError as z };
672
+ export { NetworkError as A, StateError as B, CompliancePlacementError as C, GpuProviderNotConfiguredError as D, FileWriteConflictError as E, ResumeEnvRequiredError as F, SandboxCreateOutcome as G, StreamInterruptionReason as H, SandboxError as I, SandboxCreateReceipt as K, SandboxErrorJson as L, PartialFailureError as M, ProfileFileMountPathError as N, GpuProviderRequirement as O, QuotaError as P, SandboxFailureDetail as R, CapabilityError as S, EgressProxyRecoveryError as T, TimeoutError as U, StreamInterruptedError as V, ValidationError as W, TerminalReadyTimings as _, TerminalStreamOptions as a, AuthError as b, MintInteractiveSessionTokenOptions as c, ScopedTokenScope as d, TERMINAL_WS_ECHO_SUBPROTOCOL as f, TerminalReadyInfo as g, TerminalOutputMessage as h, TerminalStreamHandlers as i, NotFoundError as j, KeyBudgetExhaustedError as k, MintScopedTokenOptions as l, TerminalInteractiveSessionIdentity as m, TerminalStreamApiKey as n, TerminalStreamReconnectAuthority as o, TerminalExitInfo as p, TerminalStreamBearerToken as r, TerminalStreamToken as s, TerminalAttachTimings as t, ScopedToken as u, TerminalStreamAuthFormat as v, EdgeNotReadyError as w, BranchFanoutExceedsHostError as x, TerminalStreamError as y, ServerError as z };
@@ -1,5 +1,5 @@
1
- import { G as SandboxCreateReceipt, a as TerminalStreamOptions, g as TerminalReadyInfo, i as TerminalStreamHandlers, s as TerminalStreamToken, t as TerminalAttachTimings } from "./terminal-stream-types-BTqOP3Zi.js";
2
- import { t as CliAuthReference } from "./cli-auth-bundle-DKp1d5dJ.js";
1
+ import { K as SandboxCreateReceipt, a as TerminalStreamOptions, g as TerminalReadyInfo, i as TerminalStreamHandlers, s as TerminalStreamToken, t as TerminalAttachTimings } from "./terminal-stream-types-yAt76vk7.js";
2
+ import { t as CliAuthReference } from "./cli-auth-bundle-Can3oLKY.js";
3
3
  import { z } from "zod";
4
4
  import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
5
5
  import { AgentExactRunControlRef, AgentProfile, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileValidationResult, AgentRuntimeAttachments, PlanContinuation, ReasoningEffort, SandboxSizePreset } from "@tangle-network/agent-interface";
@@ -5439,6 +5439,21 @@ interface CreateSandboxOptions {
5439
5439
  egress?: "redact" | "block" | "off";
5440
5440
  logs?: "on" | "off";
5441
5441
  };
5442
+ /**
5443
+ * Require HIPAA placement: the sandbox is created only in a
5444
+ * HIPAA-designated cell. It can only narrow what the platform decides
5445
+ * from your verified credential. A team or app with an accepted BAA in
5446
+ * Platform is always placed in a HIPAA cell, with or without this; a
5447
+ * credential without that entitlement is refused with
5448
+ * {@link CompliancePlacementError} (`COMPLIANCE_NOT_ENTITLED`, 403). A
5449
+ * HIPAA create that no designated cell can take now is refused with
5450
+ * the same class (`COMPLIANCE_CELL_UNAVAILABLE`, 503) and is never
5451
+ * placed in another cell. The created sandbox's `compliance` echo stays
5452
+ * server-derived.
5453
+ */
5454
+ compliance?: {
5455
+ hipaa: true;
5456
+ };
5442
5457
  /**
5443
5458
  * Stable idempotency key for this logical create. Sent as the
5444
5459
  * `Idempotency-Key` header so the API derives a deterministic sandbox
@@ -5653,6 +5668,12 @@ interface SSHCommandDescriptor {
5653
5668
  * lower-level use cases such as custom protocol clients.
5654
5669
  */
5655
5670
  interface SandboxConnection {
5671
+ /**
5672
+ * The owning host's runtime origin (`https://<slot>.h.<zone>`). Every
5673
+ * runtime call can go here directly, at `/v1/sandboxes/<id>/runtime/*`, with
5674
+ * `authToken` in the `Authorization` header; the token names this host.
5675
+ */
5676
+ hostUrl?: string;
5656
5677
  /** Sandbox runtime API URL for programmatic access */
5657
5678
  runtimeUrl?: string;
5658
5679
  /** Cell exec origin. Direct requests select this sandbox by header. */
@@ -5750,11 +5771,12 @@ interface SandboxInfo {
5750
5771
  /**
5751
5772
  * Server-derived compliance echo (HIPAA), read-only: present only as the
5752
5773
  * positive claim `{ hipaa: true }`, pinned from verified Platform
5753
- * attribution at provision. There is deliberately NO create option for
5754
- * this — a caller-asserted compliance flag would let a tenant either
5755
- * dodge the observability gates or claim protection the platform never
5756
- * granted. Absent means the platform made no claim; `hipaa: false` is
5757
- * never emitted.
5774
+ * attribution at provision. No create option sets it: the create's
5775
+ * `compliance` option only narrows placement (a caller without the
5776
+ * entitlement is refused), so a tenant can neither dodge the
5777
+ * observability gates nor claim protection the platform never granted.
5778
+ * Absent means the platform made no claim; `hipaa: false` is never
5779
+ * emitted.
5758
5780
  */
5759
5781
  readonly compliance?: {
5760
5782
  readonly hipaa: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "0.60.78-develop.20261025161102.a5d8be1",
3
+ "version": "0.60.78-develop.20261025204905.3c2273e",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -150,27 +150,26 @@
150
150
  }
151
151
  },
152
152
  "devDependencies": {
153
- "@hocuspocus/provider": "^4.0.0",
153
+ "@hocuspocus/provider": "^4.7.1",
154
154
  "@mastra/core": "1.67.0",
155
155
  "@types/node": "25.6.0",
156
156
  "@types/tar-stream": "3.1.4",
157
- "@types/ws": "^8.18.1",
158
- "@vitest/coverage-v8": "^4.1.11",
157
+ "@types/ws": "^8.18.2",
158
+ "@vitest/coverage-v8": "^4.1.12",
159
159
  "ai": "7.0.107",
160
- "openai": "^6.36.0",
160
+ "openai": "^6.49.0",
161
161
  "proper-lockfile": "4.1.2",
162
162
  "tsdown": "0.21.10",
163
163
  "typescript": "^6.0.3",
164
- "vitest": "^4.1.11",
165
- "ws": "^8.20.0",
164
+ "vitest": "^4.1.12",
165
+ "ws": "^8.22.0",
166
166
  "yjs": "13.6.30",
167
167
  "@products/sandbox-test-utils": "0.0.0",
168
168
  "@repo/shared": "0.0.0",
169
169
  "@tangle-network/agent-profile-materialize": "0.26.0",
170
+ "@tangle-network/cli-agent-registry": "0.10.2",
170
171
  "@tangle-network/runtime-contracts": "0.19.0",
171
- "@tangle-network/sse-core": "0.0.0",
172
- "@tangle-network/sdk": "4.0.16",
173
- "@tangle-network/cli-agent-registry": "0.10.2"
172
+ "@tangle-network/sse-core": "0.0.0"
174
173
  },
175
174
  "scripts": {
176
175
  "build": "node scripts/build-dist.mjs",
File without changes