@tangle-network/sandbox 1.0.83 → 1.0.85
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/agent/index.d.ts +4 -4
- package/dist/agent/index.js +3 -3
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +1 -1
- package/dist/{agent-run-outcome-CnHGo3Uz.d.ts → agent-run-outcome-C-spjmpO.d.ts} +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{browser-interactive-control-controller-WLzM_Lyq.js → browser-interactive-control-controller-BvtNDWql.js} +15 -15
- package/dist/{browser-interactive-control-controller-BelQQ9nb.d.ts → browser-interactive-control-controller-CMdlolu0.d.ts} +1 -1
- package/dist/{chunked-upload-tul4qbe5.js → chunked-upload--QnrxdO9.js} +43 -17
- package/dist/{chunked-upload-file-D9NvCQis.js → chunked-upload-file-an8AfIJx.js} +1 -1
- package/dist/{cli-auth-bundle-DspL04sN.js → cli-auth-bundle-BoK5wpru.js} +1 -1
- package/dist/{client-B-2_Po8s.d.ts → client-C9MO8LIK.d.ts} +5 -5
- package/dist/{client-DJVMPIqA.js → client-DbQhnheE.js} +5 -5
- package/dist/{core-NptHnlS8.js → core-hC1zr8YQ.js} +3 -3
- package/dist/core.d.ts +6 -6
- package/dist/core.js +3 -3
- package/dist/{harness-D2TXEUu-.js → harness-BnGz2Wng.js} +5 -5
- package/dist/{index-DVKTxbNc.d.ts → index-sQwAEhFX.d.ts} +17 -35
- package/dist/index.d.ts +9 -9
- package/dist/index.js +7 -7
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-h5lObChU.d.ts → interactive-controller-Bm3diCYK.d.ts} +3 -3
- package/dist/{interactive-controller-BdGvy0jq.js → interactive-controller-CkiJBT6m.js} +31 -6
- package/dist/{lines-CgePkUiD.d.ts → lines-Dr8YagSZ.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-xqJlVceZ.js → local-cli-auth-bw8Puox2.js} +1 -1
- package/dist/{preview-CU6CWrEU.d.ts → preview-Cp2U18Qf.d.ts} +3 -3
- package/dist/{profile-schema-D-XJLM1E.js → profile-schema-DFZTAn1S.js} +8 -8
- package/dist/{public-templates-CMXx_e0h.d.ts → public-templates-BtVRh-az.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-DTuiPoNU.js → sandbox-CzRLjpZn.js} +806 -335
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-h3zo20pc.js → tangle-CA-ADYF3.js} +32 -32
- package/dist/{terminal-stream-types-MjiApwNS.d.ts → terminal-stream-types-CqLXtP8e.d.ts} +14 -14
- package/dist/{types-DMGo9Vty.d.ts → types-B150etc6.d.ts} +71 -66
- package/package.json +4 -4
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-
|
|
1
|
+
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-sQwAEhFX.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JobQuoteDetails, JsonResponseParamTypes, OperatorChallenge, OperatorSession, OperatorSessionError, OperatorSessionToken, QuoteDomain, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, SignMessage, SignedQuote, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-CA-ADYF3.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
1
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-CzRLjpZn.js";
|
|
2
2
|
import { i as readResponseJson } from "./errors-BStusQVc.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-BXgE8UHJ.js";
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
|
|
@@ -1147,10 +1147,10 @@ var TangleSandboxClient = class {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
};
|
|
1149
1149
|
//#endregion
|
|
1150
|
-
//#region ../../../node_modules/.pnpm/viem@2.57.
|
|
1151
|
-
const version = "2.57.
|
|
1150
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.11";
|
|
1152
1152
|
//#endregion
|
|
1153
|
-
//#region ../../../node_modules/.pnpm/viem@2.57.
|
|
1153
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
1235
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
1245
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
1252
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
1264
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
1300
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
1312
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
1324
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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),
|
|
@@ -1388,7 +1388,7 @@ function hexToNumber(hex, opts = {}) {
|
|
|
1388
1388
|
return number;
|
|
1389
1389
|
}
|
|
1390
1390
|
//#endregion
|
|
1391
|
-
//#region ../../../node_modules/.pnpm/viem@2.57.
|
|
1391
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
1553
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
1912
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
1920
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
1956
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
1974
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
1994
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
2006
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
2049
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
2102
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
2122
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
2126
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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,20 +2360,20 @@ function isDynamicType(param) {
|
|
|
2360
2360
|
return false;
|
|
2361
2361
|
}
|
|
2362
2362
|
//#endregion
|
|
2363
|
-
//#region ../../../node_modules/.pnpm/viem@2.57.
|
|
2363
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
2369
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
2376
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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
2379
|
const { secp256k1 } = await import("./secp256k1-Xpte4Dwf.js");
|
|
@@ -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.57.
|
|
2399
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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.57.
|
|
2407
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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."] });
|
|
@@ -2436,7 +2436,7 @@ var InvalidTypedDataTypeError = class extends BaseError {
|
|
|
2436
2436
|
}
|
|
2437
2437
|
};
|
|
2438
2438
|
//#endregion
|
|
2439
|
-
//#region ../../../node_modules/.pnpm/viem@2.57.
|
|
2439
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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
|
|
2440
2440
|
function validateTypedData(parameters) {
|
|
2441
2441
|
const { domain, message, primaryType, types } = parameters;
|
|
2442
2442
|
const validateData = (struct, data) => {
|
|
@@ -2508,7 +2508,7 @@ function validateReference(type) {
|
|
|
2508
2508
|
if (type === "address" || type === "bool" || type === "string" || type.startsWith("bytes") || type.startsWith("uint") || type.startsWith("int")) throw new InvalidStructTypeError({ type });
|
|
2509
2509
|
}
|
|
2510
2510
|
//#endregion
|
|
2511
|
-
//#region ../../../node_modules/.pnpm/viem@2.57.
|
|
2511
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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
|
|
2512
2512
|
function hashTypedData(parameters) {
|
|
2513
2513
|
const { domain = {}, message, primaryType } = parameters;
|
|
2514
2514
|
const types = {
|
|
@@ -2613,7 +2613,7 @@ function encodeField({ types, name, type, value }) {
|
|
|
2613
2613
|
return [{ type }, value];
|
|
2614
2614
|
}
|
|
2615
2615
|
//#endregion
|
|
2616
|
-
//#region ../../../node_modules/.pnpm/viem@2.57.
|
|
2616
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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
|
|
2617
2617
|
async function recoverTypedDataAddress(parameters) {
|
|
2618
2618
|
const { domain, message, primaryType, signature, types } = parameters;
|
|
2619
2619
|
return recoverAddress({
|
|
@@ -2627,7 +2627,7 @@ async function recoverTypedDataAddress(parameters) {
|
|
|
2627
2627
|
});
|
|
2628
2628
|
}
|
|
2629
2629
|
//#endregion
|
|
2630
|
-
//#region ../../../node_modules/.pnpm/viem@2.57.
|
|
2630
|
+
//#region ../../../node_modules/.pnpm/viem@2.57.11_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
|
|
2631
2631
|
/**
|
|
2632
2632
|
* Verify that typed data was signed by the provided address.
|
|
2633
2633
|
*
|
|
@@ -402,7 +402,7 @@ declare class TerminalStreamError extends Error {
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
//#endregion
|
|
405
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
405
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/plan.d.ts
|
|
406
406
|
/**
|
|
407
407
|
* Typed server-originated continuation. Adapters consume this instead of
|
|
408
408
|
* inferring approval from a free-form user message.
|
|
@@ -438,7 +438,7 @@ declare const PlanContinuationSchema: z.ZodObject<{
|
|
|
438
438
|
}, z.core.$strict>;
|
|
439
439
|
type PlanContinuation = z.infer<typeof PlanContinuationSchema>;
|
|
440
440
|
//#endregion
|
|
441
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
441
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/interaction-data.d.ts
|
|
442
442
|
declare const InteractionSecretReferenceSchema: z.ZodObject<{
|
|
443
443
|
kind: z.ZodLiteral<"secret_handle">;
|
|
444
444
|
handleId: z.ZodString;
|
|
@@ -459,7 +459,7 @@ declare const InteractionResolutionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
459
459
|
}, z.core.$strict>], "outcome">;
|
|
460
460
|
type InteractionResolution = z.infer<typeof InteractionResolutionSchema>;
|
|
461
461
|
//#endregion
|
|
462
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
462
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/proxy-secrets.d.ts
|
|
463
463
|
declare const ProxySecretBindingSchema: z.ZodObject<{
|
|
464
464
|
hosts: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
465
465
|
methods: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
@@ -511,7 +511,7 @@ declare const ProxySecretCapabilitiesSchema: z.ZodObject<{
|
|
|
511
511
|
}, z.core.$strict>;
|
|
512
512
|
type ProxySecretCapabilities = z.infer<typeof ProxySecretCapabilitiesSchema>;
|
|
513
513
|
//#endregion
|
|
514
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
514
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/harness.d.ts
|
|
515
515
|
/**
|
|
516
516
|
* Recognized execution identities, not a deployment's list of installed runners.
|
|
517
517
|
* A profile's authored harness remains part of its canonical identity; execution
|
|
@@ -545,7 +545,7 @@ declare const harnessTypeSchema: z.ZodEnum<{
|
|
|
545
545
|
/** One declaration owns runtime validation and the compile-time vocabulary. */
|
|
546
546
|
type HarnessType = z.infer<typeof harnessTypeSchema>;
|
|
547
547
|
//#endregion
|
|
548
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
548
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-profile.d.ts
|
|
549
549
|
/**
|
|
550
550
|
* Permission policy value for a capability.
|
|
551
551
|
*/
|
|
@@ -1021,11 +1021,11 @@ interface AgentProfileValidationResult {
|
|
|
1021
1021
|
normalizedProfile?: AgentProfile;
|
|
1022
1022
|
}
|
|
1023
1023
|
//#endregion
|
|
1024
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1024
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-candidate.d.ts
|
|
1025
1025
|
/** Full SHA-256 digest with an explicit algorithm prefix. */
|
|
1026
1026
|
type Sha256Digest = `sha256:${string}`;
|
|
1027
1027
|
//#endregion
|
|
1028
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1028
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/interaction-fields.d.ts
|
|
1029
1029
|
declare const InteractionAnswerSpecSchema: z.ZodObject<{
|
|
1030
1030
|
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1031
1031
|
type: z.ZodLiteral<"text">;
|
|
@@ -1079,7 +1079,7 @@ declare const InteractionResponseScopeSchema: z.ZodEnum<{
|
|
|
1079
1079
|
persistent: "persistent";
|
|
1080
1080
|
}>;
|
|
1081
1081
|
//#endregion
|
|
1082
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1082
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/interaction-envelope.d.ts
|
|
1083
1083
|
declare const InteractionSubjectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1084
1084
|
type: z.ZodLiteral<"tool">;
|
|
1085
1085
|
toolName: z.ZodString;
|
|
@@ -1186,7 +1186,7 @@ declare const InteractionAcknowledgementSchema: z.ZodObject<{
|
|
|
1186
1186
|
}, z.core.$strict>;
|
|
1187
1187
|
type InteractionAcknowledgement = z.infer<typeof InteractionAcknowledgementSchema>;
|
|
1188
1188
|
//#endregion
|
|
1189
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1189
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/runtime-control.d.ts
|
|
1190
1190
|
/** Provider-neutral coordinates sufficient to recreate control of one run. */
|
|
1191
1191
|
interface AgentRunControlRef {
|
|
1192
1192
|
runId: string;
|
|
@@ -1223,7 +1223,7 @@ interface AgentRunCancellationAcknowledgement {
|
|
|
1223
1223
|
existingRequestDigest?: Sha256Digest;
|
|
1224
1224
|
}
|
|
1225
1225
|
//#endregion
|
|
1226
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1226
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/environment-terminal.d.ts
|
|
1227
1227
|
/**
|
|
1228
1228
|
* Provider-neutral handle for one interactive terminal.
|
|
1229
1229
|
*
|
|
@@ -1342,7 +1342,7 @@ interface AgentTerminalSession {
|
|
|
1342
1342
|
}): AsyncIterable<TerminalOutputEvent>;
|
|
1343
1343
|
}
|
|
1344
1344
|
//#endregion
|
|
1345
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1345
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/environment-interactive-control.d.ts
|
|
1346
1346
|
/**
|
|
1347
1347
|
* Durable identity of one coding-agent TUI.
|
|
1348
1348
|
*
|
|
@@ -2063,7 +2063,7 @@ interface AgentInteractiveSessionPromptAcknowledgement {
|
|
|
2063
2063
|
existingRequestDigest?: `sha256:${string}`;
|
|
2064
2064
|
}
|
|
2065
2065
|
//#endregion
|
|
2066
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
2066
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/environment-interactive-start.d.ts
|
|
2067
2067
|
/**
|
|
2068
2068
|
* Start one native coding-agent TUI from caller-owned request material.
|
|
2069
2069
|
*
|
|
@@ -2354,13 +2354,13 @@ declare const AgentInteractiveSessionStartSchema: z.ZodObject<{
|
|
|
2354
2354
|
}, z.core.$strict>;
|
|
2355
2355
|
type AgentInteractiveSessionStart = z.infer<typeof AgentInteractiveSessionStartSchema>;
|
|
2356
2356
|
//#endregion
|
|
2357
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
2357
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/runtime-attachments.d.ts
|
|
2358
2358
|
/** Runtime-owned bindings do not alter the authored AgentProfile or candidate identity. */
|
|
2359
2359
|
interface AgentRuntimeAttachments {
|
|
2360
2360
|
mcp: Record<string, AgentProfileMcpServer>;
|
|
2361
2361
|
}
|
|
2362
2362
|
//#endregion
|
|
2363
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
2363
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/sandbox-size.d.ts
|
|
2364
2364
|
/**
|
|
2365
2365
|
* Portable sandbox size vocabulary.
|
|
2366
2366
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as AgentProfileConfidential, L as AgentExactRunControlRef, Ot as SandboxCreateReceipt, Q as ReasoningEffort, U as AgentProfile, V as InteractionRequest, W as AgentProfileCapabilities, Z as AgentProfileValidationResult, a as TerminalStreamOptions, b as SandboxSizePreset, et as PlanContinuation, g as TerminalReadyInfo, i as TerminalStreamHandlers, s as TerminalStreamToken, t as TerminalAttachTimings, x as AgentRuntimeAttachments } from "./terminal-stream-types-
|
|
1
|
+
import { G as AgentProfileConfidential, L as AgentExactRunControlRef, Ot as SandboxCreateReceipt, Q as ReasoningEffort, U as AgentProfile, V as InteractionRequest, W as AgentProfileCapabilities, Z as AgentProfileValidationResult, a as TerminalStreamOptions, b as SandboxSizePreset, et as PlanContinuation, g as TerminalReadyInfo, i as TerminalStreamHandlers, s as TerminalStreamToken, t as TerminalAttachTimings, x as AgentRuntimeAttachments } from "./terminal-stream-types-CqLXtP8e.js";
|
|
2
2
|
import { t as CliAuthReference } from "./cli-auth-bundle-99-eo7R4.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/backend-types.d.ts
|
|
@@ -1727,6 +1727,67 @@ declare const ProcessStatusWireSchema: z.ZodObject<{
|
|
|
1727
1727
|
exitedAt: z.ZodOptional<z.ZodString>;
|
|
1728
1728
|
}, z.core.$strip>;
|
|
1729
1729
|
type ProcessStatusWire = z.infer<typeof ProcessStatusWireSchema>;
|
|
1730
|
+
declare const FileWriteResultSchema: z.ZodObject<{
|
|
1731
|
+
path: z.ZodString;
|
|
1732
|
+
hash: z.ZodString;
|
|
1733
|
+
size: z.ZodNumber;
|
|
1734
|
+
mtime: z.ZodNumber;
|
|
1735
|
+
preconditionsApplied: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1736
|
+
ifAbsent: "ifAbsent";
|
|
1737
|
+
ifHash: "ifHash";
|
|
1738
|
+
}>>>;
|
|
1739
|
+
}, z.core.$strip>;
|
|
1740
|
+
type FileWriteResult$1 = z.infer<typeof FileWriteResultSchema>;
|
|
1741
|
+
declare const FileReadResultSchema: z.ZodObject<{
|
|
1742
|
+
path: z.ZodString;
|
|
1743
|
+
content: z.ZodString;
|
|
1744
|
+
encoding: z.ZodEnum<{
|
|
1745
|
+
base64: "base64";
|
|
1746
|
+
utf8: "utf8";
|
|
1747
|
+
}>;
|
|
1748
|
+
hash: z.ZodString;
|
|
1749
|
+
size: z.ZodNumber;
|
|
1750
|
+
mtime: z.ZodNumber;
|
|
1751
|
+
}, z.core.$strip>;
|
|
1752
|
+
type FileReadResult$1 = z.infer<typeof FileReadResultSchema>;
|
|
1753
|
+
declare const FileTreeResponseSchema: z.ZodObject<{
|
|
1754
|
+
success: z.ZodLiteral<true>;
|
|
1755
|
+
data: z.ZodObject<{
|
|
1756
|
+
root: z.ZodString;
|
|
1757
|
+
directories: z.ZodArray<z.ZodString>;
|
|
1758
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1759
|
+
path: z.ZodString;
|
|
1760
|
+
size: z.ZodNumber;
|
|
1761
|
+
mtime: z.ZodNumber;
|
|
1762
|
+
}, z.core.$strip>>;
|
|
1763
|
+
stats: z.ZodObject<{
|
|
1764
|
+
totalDirectories: z.ZodNumber;
|
|
1765
|
+
totalFiles: z.ZodNumber;
|
|
1766
|
+
scanDurationMs: z.ZodNumber;
|
|
1767
|
+
truncated: z.ZodBoolean;
|
|
1768
|
+
}, z.core.$strip>;
|
|
1769
|
+
}, z.core.$strip>;
|
|
1770
|
+
}, z.core.$strip>;
|
|
1771
|
+
type FileTreeResponse = z.infer<typeof FileTreeResponseSchema>;
|
|
1772
|
+
declare const FileRenameResultSchema: z.ZodObject<{
|
|
1773
|
+
sourcePath: z.ZodString;
|
|
1774
|
+
destinationPath: z.ZodString;
|
|
1775
|
+
}, z.core.$strip>;
|
|
1776
|
+
type FileRenameResult$1 = z.infer<typeof FileRenameResultSchema>;
|
|
1777
|
+
declare const FsEntryInfoSchema: z.ZodObject<{
|
|
1778
|
+
name: z.ZodString;
|
|
1779
|
+
path: z.ZodString;
|
|
1780
|
+
size: z.ZodNumber;
|
|
1781
|
+
isDir: z.ZodBoolean;
|
|
1782
|
+
isFile: z.ZodBoolean;
|
|
1783
|
+
isSymlink: z.ZodBoolean;
|
|
1784
|
+
permissions: z.ZodNumber;
|
|
1785
|
+
owner: z.ZodString;
|
|
1786
|
+
group: z.ZodString;
|
|
1787
|
+
modTime: z.ZodString;
|
|
1788
|
+
accessTime: z.ZodString;
|
|
1789
|
+
}, z.core.$strip>;
|
|
1790
|
+
type FsEntryInfo = z.infer<typeof FsEntryInfoSchema>;
|
|
1730
1791
|
//#endregion
|
|
1731
1792
|
//#region ../../../packages/runtime-contracts/dist/sandbox-wire-types.d.ts
|
|
1732
1793
|
/** Lifecycle state of an agent session inside a sandbox. */
|
|
@@ -3452,54 +3513,19 @@ interface SearchMatch {
|
|
|
3452
3513
|
/**
|
|
3453
3514
|
* Detailed file/directory information.
|
|
3454
3515
|
*/
|
|
3455
|
-
|
|
3456
|
-
/**
|
|
3457
|
-
name: string;
|
|
3458
|
-
/** Full path relative to workspace */
|
|
3459
|
-
path: string;
|
|
3460
|
-
/** Size in bytes */
|
|
3461
|
-
size: number;
|
|
3462
|
-
/** Whether this is a directory */
|
|
3463
|
-
isDir: boolean;
|
|
3464
|
-
/** Whether this is a regular file */
|
|
3465
|
-
isFile: boolean;
|
|
3466
|
-
/** Whether this is a symbolic link */
|
|
3467
|
-
isSymlink: boolean;
|
|
3468
|
-
/** Unix permissions (e.g., 0o755) */
|
|
3469
|
-
permissions: number;
|
|
3470
|
-
/** Owner user ID/name */
|
|
3471
|
-
owner: string;
|
|
3472
|
-
/** Group ID/name */
|
|
3473
|
-
group: string;
|
|
3474
|
-
/** Last modification time */
|
|
3475
|
-
modTime: Date;
|
|
3476
|
-
/** Last access time */
|
|
3516
|
+
type FileInfo = Omit<FsEntryInfo, "modTime" | "accessTime"> & {
|
|
3517
|
+
/** Last modification time. */modTime: Date; /** Last access time. */
|
|
3477
3518
|
accessTime: Date;
|
|
3478
|
-
}
|
|
3519
|
+
};
|
|
3479
3520
|
/** File metadata returned by the recursive workspace tree endpoint. */
|
|
3480
|
-
|
|
3481
|
-
path: string;
|
|
3482
|
-
size: number;
|
|
3483
|
-
/** File modification time as Unix milliseconds. */
|
|
3484
|
-
mtime: number;
|
|
3485
|
-
}
|
|
3521
|
+
type FileTreeFile = FileTreeResponse["data"]["files"][number];
|
|
3486
3522
|
/** Options for recursively scanning a workspace tree. */
|
|
3487
3523
|
interface FileTreeOptions {
|
|
3488
3524
|
sessionId?: string;
|
|
3489
3525
|
maxDepth?: number;
|
|
3490
3526
|
}
|
|
3491
3527
|
/** Recursive workspace tree with scan statistics. */
|
|
3492
|
-
|
|
3493
|
-
root: string;
|
|
3494
|
-
directories: string[];
|
|
3495
|
-
files: FileTreeFile[];
|
|
3496
|
-
stats: {
|
|
3497
|
-
totalDirectories: number;
|
|
3498
|
-
totalFiles: number;
|
|
3499
|
-
scanDurationMs: number;
|
|
3500
|
-
truncated: boolean;
|
|
3501
|
-
};
|
|
3502
|
-
}
|
|
3528
|
+
type FileTreeResult = FileTreeResponse["data"];
|
|
3503
3529
|
/** Options for measuring aggregate workspace storage usage. */
|
|
3504
3530
|
interface FileUsageOptions {
|
|
3505
3531
|
/** Task session id for session-specific workspace isolation. */
|
|
@@ -3578,15 +3604,7 @@ interface FileUsageResult {
|
|
|
3578
3604
|
};
|
|
3579
3605
|
}
|
|
3580
3606
|
/** File content and metadata returned by a batch read. */
|
|
3581
|
-
|
|
3582
|
-
path: string;
|
|
3583
|
-
content: string;
|
|
3584
|
-
encoding: "utf8" | "base64";
|
|
3585
|
-
hash: string;
|
|
3586
|
-
size: number;
|
|
3587
|
-
/** File modification time as Unix milliseconds. */
|
|
3588
|
-
mtime: number;
|
|
3589
|
-
}
|
|
3607
|
+
type FileReadResult = FileReadResult$1;
|
|
3590
3608
|
/** One file that could not be read during a partial-success batch. */
|
|
3591
3609
|
interface FileReadError {
|
|
3592
3610
|
path: string;
|
|
@@ -3609,24 +3627,11 @@ interface FileReadBatchResult {
|
|
|
3609
3627
|
};
|
|
3610
3628
|
}
|
|
3611
3629
|
/** Metadata returned after a successful file write. */
|
|
3612
|
-
|
|
3613
|
-
path: string;
|
|
3614
|
-
hash: string;
|
|
3615
|
-
size: number;
|
|
3616
|
-
/** File modification time as Unix milliseconds. */
|
|
3617
|
-
mtime: number;
|
|
3618
|
-
/** Encoding echoed by runtimes that include it in write responses. */
|
|
3630
|
+
type FileWriteResult = FileWriteResult$1 & {
|
|
3619
3631
|
encoding?: "utf8" | "base64";
|
|
3620
|
-
|
|
3621
|
-
preconditionsApplied?: ("ifHash" | "ifAbsent")[];
|
|
3622
|
-
}
|
|
3632
|
+
};
|
|
3623
3633
|
/** Metadata returned after a successful file or directory rename. */
|
|
3624
|
-
|
|
3625
|
-
/** Previous path, relative to the workspace when applicable. */
|
|
3626
|
-
sourcePath: string;
|
|
3627
|
-
/** New path, relative to the workspace when applicable. */
|
|
3628
|
-
destinationPath: string;
|
|
3629
|
-
}
|
|
3634
|
+
type FileRenameResult = FileRenameResult$1;
|
|
3630
3635
|
/**
|
|
3631
3636
|
* Options for uploading files.
|
|
3632
3637
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.85",
|
|
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
|
-
"@repo/shared": "0.0.0",
|
|
158
157
|
"@tangle-network/agent-profile-materialize": "0.27.1",
|
|
158
|
+
"@repo/shared": "0.0.0",
|
|
159
159
|
"@tangle-network/cli-agent-registry": "0.14.0",
|
|
160
160
|
"@tangle-network/runtime-contracts": "0.20.0"
|
|
161
161
|
},
|
|
162
162
|
"tangleRelease": {
|
|
163
|
-
"sourceSha": "
|
|
164
|
-
"mergedAt": "2026-10-
|
|
163
|
+
"sourceSha": "6715fd7a07aa03c7494c65f19c75d07329fed580",
|
|
164
|
+
"mergedAt": "2026-10-29T04:29:46-06:00"
|
|
165
165
|
},
|
|
166
166
|
"scripts": {
|
|
167
167
|
"build": "node scripts/build-dist.mjs",
|