@tangle-network/sandbox 1.0.132 → 1.0.133

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 (77) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +5 -5
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/agent/preview.js +3 -3
  5. package/dist/{agent-run-outcome-6RpFdvyP.d.ts → agent-run-outcome-DSW47DnU.d.ts} +2 -2
  6. package/dist/{api-request-B7cnX489.js → api-request-DNrodWdz.js} +1 -1
  7. package/dist/auth/index.d.ts +2 -2
  8. package/dist/auth/index.js +2 -2
  9. package/dist/{browser-interactive-control-controller-BRz2PPTQ.d.ts → browser-interactive-control-controller-CLxkpYNV.d.ts} +1 -1
  10. package/dist/{browser-interactive-control-controller-CI-G-lan.js → browser-interactive-control-controller-l4Yqgoug.js} +2 -2
  11. package/dist/{chunked-upload-BHRGMfDz.js → chunked-upload-CyP-FOeZ.js} +1 -1
  12. package/dist/{chunked-upload-file-BMeDaILU.js → chunked-upload-file-Dr6i6G5b.js} +2 -2
  13. package/dist/{cli-auth-bundle-BDGLGvMu-BM8TG3ms.js → cli-auth-bundle-BDGLGvMu-BXdVAPNF.js} +1 -1
  14. package/dist/cli-auth-bundle-nPm8yuKO.js +2 -0
  15. package/dist/{client-CDz5Wgc0.js → client-BSK8I_4r.js} +11 -11
  16. package/dist/{client-uV-nZY3y.d.ts → client-BdoEjuk9.d.ts} +6 -5
  17. package/dist/collaboration/index.d.ts +1 -1
  18. package/dist/collaboration/index.js +1 -1
  19. package/dist/{collaboration-C1jO3_Pp.js → collaboration-CX_XvFZZ.js} +1 -1
  20. package/dist/{core-CpQI6Yqe.js → core-DEFF0nLW.js} +6 -6
  21. package/dist/core.d.ts +6 -6
  22. package/dist/core.js +5 -5
  23. package/dist/{direct-http2-B0ztwG7m.js → direct-http2-Bojg02xf.js} +1 -1
  24. package/dist/{errors-ystNl7Ae.js → errors-BfR-fBvN.js} +1 -1
  25. package/dist/file-download-CICuFwGb.js +178 -0
  26. package/dist/harness-Cgp9jduT.js +363 -0
  27. package/dist/{index-BejHM6F8.d.ts → index-CE4JMgzA.d.ts} +6 -6
  28. package/dist/index.d.ts +11 -11
  29. package/dist/index.js +12 -11
  30. package/dist/intelligence/index.d.ts +3 -1
  31. package/dist/intelligence/index.js +25 -23
  32. package/dist/interactive-control.d.ts +1 -1
  33. package/dist/interactive-control.js +1 -1
  34. package/dist/{interactive-controller-CM1FJ0gp.d.ts → interactive-controller-B8mGHsJz.d.ts} +3 -3
  35. package/dist/{interactive-controller-BzY0se5n.js → interactive-controller-DRWdHdgK.js} +7 -7
  36. package/dist/lib/prepared-evidence.js +1 -1
  37. package/dist/lib/prepared-process.js +1 -1
  38. package/dist/{lines-Dh-39kUV.d.ts → lines-Dc42Gr39.d.ts} +1 -1
  39. package/dist/{lines-DF4g3X3I.js → lines-DlLR4pHq.js} +1 -1
  40. package/dist/lines.d.ts +1 -1
  41. package/dist/lines.js +1 -1
  42. package/dist/{local-cli-auth-D-r9JSUk.js → local-cli-auth-CI2d1Pdh.js} +1 -1
  43. package/dist/{mcp-local-B7o_k_Ll.js → mcp-local-tBlLJqTb.js} +1 -1
  44. package/dist/{prepared-evidence-DBSU--pB.js → prepared-evidence-r46MdJM9.js} +1 -1
  45. package/dist/{prepared-process-GzQXVsX8.js → prepared-process-C-rwZPIZ.js} +1 -1
  46. package/dist/{preview-BtbrzU_4.d.ts → preview-C7nHXam2.d.ts} +3 -3
  47. package/dist/{profile-schema-BD1nkqBw.js → profile-schema-nys6Qejd.js} +1 -1
  48. package/dist/{public-templates-Zec8CB3Y.d.ts → public-templates-DA4_Hn6B.d.ts} +2 -2
  49. package/dist/public-templates.d.ts +1 -1
  50. package/dist/public-templates.js +1 -1
  51. package/dist/{raw-evidence-archive-OHRixF4L.js → raw-evidence-archive-BOXTejc2.js} +11 -31
  52. package/dist/runtime.d.ts +5 -5
  53. package/dist/runtime.js +5 -5
  54. package/dist/{sandbox-NSVkjLQo.js → sandbox-CIfbsytC.js} +22 -205
  55. package/dist/{secp256k1-BGtA1PsN.js → secp256k1-CZWrpqxW.js} +1 -1
  56. package/dist/select-seat-command.d.ts +1 -1
  57. package/dist/select-seat-command.js +1 -1
  58. package/dist/session-gateway/index.js +3 -3
  59. package/dist/{harness-B63wL8RZ.js → sha2-vu4U-x2L.js} +23 -363
  60. package/dist/tangle/index.d.ts +1 -1
  61. package/dist/tangle/index.js +1 -1
  62. package/dist/{tangle-QjuaxjRc.js → tangle-bYg24n7e.js} +4 -4
  63. package/dist/{types-BA5GRheq.d.ts → types-BVyyOVyf.d.ts} +2 -2
  64. package/package.json +7 -6
  65. package/dist/cli-auth-bundle-DdAKxGZF.js +0 -2
  66. /package/dist/{abort-signal-JVaAyNMP.js → abort-signal-CDxyloxz.js} +0 -0
  67. /package/dist/{cli-auth-bundle-DMbZ1E7W.d.ts → cli-auth-bundle-COQ25k3d.d.ts} +0 -0
  68. /package/dist/{index-DnZdhFs2.d.ts → index-Dqcr9p97.d.ts} +0 -0
  69. /package/dist/{index-rbeL2Rct.d.ts → index-Dslyq85a.d.ts} +0 -0
  70. /package/dist/{keep-alive-fetch--8twRp99.js → keep-alive-fetch-BbSFbRCd.js} +0 -0
  71. /package/dist/{preview-operations-D2fXB_dc.js → preview-operations-BvgwYaoL.js} +0 -0
  72. /package/dist/{response-rewrap-B75N59JT.js → response-rewrap-CpNkboDX.js} +0 -0
  73. /package/dist/{retry-after-header-DrbSlyKY.js → retry-after-header-DUdCC0KJ.js} +0 -0
  74. /package/dist/{sidecar-proxy-error-DORW8_mD.js → sidecar-proxy-error-5DpLmHeN.js} +0 -0
  75. /package/dist/{sse-parser-BUIKfYAd.js → sse-parser-DrI47LyG.js} +0 -0
  76. /package/dist/{terminal-stream-types-CIgaXUM7.d.ts → terminal-stream-types-8-sAl2J0.d.ts} +0 -0
  77. /package/dist/{utils-CoawKwX_.js → utils-vaFoyyiO.js} +0 -0
@@ -1,148 +1,3 @@
1
- import { z } from "zod";
2
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/contract-limits.js
3
- /** Limits applied before a value is hashed, copied, or sent to a provider. */
4
- const CONTRACT_MAX_STRING_LENGTH = 16384;
5
- /** Maximum length of one canonical confidential-attestation quote. */
6
- const CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH = 32768;
7
- const CONTRACT_MAX_ARRAY_LENGTH = 1024;
8
- const CONTRACT_MAX_JSON_NODES = 8192;
9
- const boundedStringSchema = z.string().max(CONTRACT_MAX_STRING_LENGTH);
10
- z.string().max(CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH);
11
- const boundedIdentifierSchema = boundedStringSchema.min(1).max(512).refine((value) => value.trim() === value, "identifier cannot have outer whitespace");
12
- /** Admit ordinary JSON before recursive parsing, copying or hashing. */
13
- function isBoundedJsonValue(value) {
14
- return boundedJson(value);
15
- }
16
- /** Exact serialized JSON UTF-8 byte count for one string scalar. */
17
- function serializedJsonStringBytes(value) {
18
- let bytes = 2;
19
- for (let index = 0; index < value.length; index += 1) {
20
- const code = value.charCodeAt(index);
21
- if (code === 34 || code === 92 || code === 8 || code === 12 || code === 10 || code === 13 || code === 9) bytes += 2;
22
- else if (code < 32) bytes += 6;
23
- else if (code >= 55296 && code <= 56319 && index + 1 < value.length) {
24
- const next = value.charCodeAt(index + 1);
25
- if (next >= 56320 && next <= 57343) {
26
- bytes += 4;
27
- index += 1;
28
- } else bytes += 6;
29
- } else if (code >= 55296 && code <= 57343) bytes += 6;
30
- else if (code < 128) bytes += 1;
31
- else if (code < 2048) bytes += 2;
32
- else bytes += 3;
33
- if (bytes > 1048576) return bytes;
34
- }
35
- return bytes;
36
- }
37
- /** Event content permits large strings within the exact serialized UTF-8 budget. */
38
- function isBoundedEventContentJson(value, { omitUndefinedObjectFields = false } = {}) {
39
- return boundedJson(value, {
40
- content: true,
41
- omitUndefinedObjectFields
42
- });
43
- }
44
- /**
45
- * Digest material omits undefined object fields; portable profile values require data properties.
46
- * `content` bounds strings by the serialized UTF-8 budget instead of each string's length, for
47
- * opaque values that may legitimately copy unbounded typed fields such as inline file content.
48
- */
49
- function isBoundedJsonMaterial(value, { dataPropertiesOnly = false, content = false } = {}) {
50
- return boundedJson(value, {
51
- material: true,
52
- omitUndefinedObjectFields: true,
53
- dataPropertiesOnly,
54
- content
55
- });
56
- }
57
- /** One iterative walker owns structural admission; typed domains keep their own schema limits. */
58
- function boundedJson(value, options = {}) {
59
- const pending = [{
60
- value,
61
- depth: 0
62
- }];
63
- const ancestors = /* @__PURE__ */ new Set();
64
- let nodes = 0;
65
- let bytes = 0;
66
- const addBytes = (count) => !options.content || (bytes += count) <= 1048576;
67
- while (pending.length) {
68
- const item = pending.pop();
69
- const current = item.value;
70
- if ((!item.leave || !options.material) && ++nodes > 8192) return false;
71
- if (current === void 0 && item.omitUndefined) continue;
72
- if (item.leave) {
73
- ancestors.delete(current);
74
- continue;
75
- }
76
- if (current === null || typeof current === "boolean") {
77
- if (!addBytes(current === null ? 4 : current ? 4 : 5)) return false;
78
- continue;
79
- }
80
- if (typeof current === "string") {
81
- if (options.content ? !addBytes(serializedJsonStringBytes(current)) : current.length > 16384) return false;
82
- continue;
83
- }
84
- if (typeof current === "number") {
85
- if (!Number.isFinite(current) || !addBytes(JSON.stringify(current).length)) return false;
86
- continue;
87
- }
88
- if (typeof current !== "object" || item.depth >= 16 || ancestors.has(current)) return false;
89
- ancestors.add(current);
90
- pending.push({
91
- value: current,
92
- depth: item.depth,
93
- leave: true
94
- });
95
- const array = Array.isArray(current);
96
- if (array && current.length > 1024) return false;
97
- const prototype = Object.getPrototypeOf(current);
98
- if (!array && prototype !== Object.prototype && prototype !== null || array && options.content && prototype !== Array.prototype && prototype !== null) return false;
99
- if (options.content || options.dataPropertiesOnly) {
100
- const keys = Reflect.ownKeys(current).filter((key) => !array || key !== "length");
101
- if (array ? keys.length !== current.length : keys.length > 256) return false;
102
- let entries = 0;
103
- for (const key of keys) {
104
- if (typeof key !== "string" || !array && key.length > 512) return false;
105
- if (array && (!/^(?:0|[1-9][0-9]*)$/u.test(key) || Number(key) >= current.length || Number(key) >= 4294967295)) return false;
106
- const descriptor = Object.getOwnPropertyDescriptor(current, key);
107
- if (!descriptor?.enumerable || !("value" in descriptor)) return false;
108
- if (!array && descriptor.value === void 0 && options.omitUndefinedObjectFields) {
109
- if (++nodes > 8192) return false;
110
- continue;
111
- }
112
- if (++entries > (array ? 1024 : 256)) return false;
113
- if (!array && !addBytes(serializedJsonStringBytes(key) + 1)) return false;
114
- pending.push({
115
- value: descriptor.value,
116
- depth: item.depth + 1
117
- });
118
- }
119
- if (!addBytes(2 + Math.max(entries - 1, 0))) return false;
120
- } else if (array) for (const entry of current) pending.push({
121
- value: entry,
122
- depth: item.depth + 1
123
- });
124
- else {
125
- const keys = Object.keys(current);
126
- if (keys.length > 256) return false;
127
- for (const key of keys) {
128
- if (key.length > 512) return false;
129
- pending.push({
130
- value: current[key],
131
- depth: item.depth + 1,
132
- omitUndefined: options.omitUndefinedObjectFields
133
- });
134
- }
135
- }
136
- }
137
- return true;
138
- }
139
- const boundedJsonSchema = z.custom(isBoundedJsonValue, { message: "value exceeds the contract bounds or is not finite JSON" });
140
- const boundedJsonRecordSchema = z.custom((value) => typeof value === "object" && value !== null && !Array.isArray(value) && isBoundedJsonValue(value), { message: "metadata exceeds the contract bounds or is not a JSON object" });
141
- /** One provider event payload or terminal response, bounded as serialized UTF-8 JSON. */
142
- const boundedEventContentJsonSchema = z.custom(isBoundedEventContentJson, { message: "event content exceeds its serialized byte bound or is not finite JSON" });
143
- const boundedEventContentRecordSchema = z.custom((value) => typeof value === "object" && value !== null && !Array.isArray(value) && isBoundedEventContentJson(value), { message: "event content exceeds its serialized byte bound or is not a JSON object" });
144
- const boundedEventContentStringSchema = z.custom((value) => typeof value === "string" && isBoundedEventContentJson(value), { message: "event content exceeds its serialized byte bound or is not a string" });
145
- //#endregion
146
1
  //#region ../../../node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/_u64.js
147
2
  const U32_MASK64 = BigInt(2 ** 32 - 1);
148
3
  const _32n = /* @__PURE__ */ BigInt(32);
@@ -320,7 +175,28 @@ function rotr(word, shift) {
320
175
  return word << 32 - shift | word >>> shift;
321
176
  }
322
177
  new Uint8Array(new Uint32Array([287454020]).buffer)[0];
323
- typeof Uint8Array.from([]).toHex === "function" && Uint8Array.fromHex;
178
+ const hasHexBuiltin = typeof Uint8Array.from([]).toHex === "function" && typeof Uint8Array.fromHex === "function";
179
+ const hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
180
+ /**
181
+ * Convert byte array to hex string.
182
+ * Uses the built-in function when available and assumes it matches the tested
183
+ * fallback semantics.
184
+ * @param bytes - bytes to encode
185
+ * @returns Lowercase hexadecimal string.
186
+ * @throws On wrong argument types. {@link TypeError}
187
+ * @example
188
+ * Convert bytes to lowercase hexadecimal.
189
+ * ```ts
190
+ * bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])); // 'cafe0123'
191
+ * ```
192
+ */
193
+ function bytesToHex(bytes) {
194
+ abytes(bytes);
195
+ if (hasHexBuiltin) return bytes.toHex();
196
+ let hex = "";
197
+ for (let i = 0; i < bytes.length; i++) hex += hexes[bytes[i]];
198
+ return hex;
199
+ }
324
200
  /**
325
201
  * Merges default options and passed options.
326
202
  * @param defaults - base option object
@@ -836,220 +712,4 @@ K512[1];
836
712
  */
837
713
  const sha256 = /* @__PURE__ */ createHasher(() => new _SHA256(), /* @__PURE__ */ oidNist(1));
838
714
  //#endregion
839
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/agent-candidate-schema-common.js
840
- const sha256Pattern = /^sha256:[a-f0-9]{64}$/;
841
- const gitObjectPattern = /^(?:[a-f0-9]{40}|[a-f0-9]{64})$/;
842
- const environmentNamePattern = /^[A-Za-z_][A-Za-z0-9_]*$/;
843
- const headerNamePattern = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
844
- const mediaTypePattern = /^[a-z0-9][a-z0-9!#$&^_.+-]{0,126}\/[a-z0-9][a-z0-9!#$&^_.+-]{0,126}$/;
845
- const githubComponentPattern = /^[A-Za-z0-9][A-Za-z0-9_.-]{0,99}$/;
846
- const secretNamePattern = /(?:^|[_-])(?:api[_-]?key|access[_-]?key|private[_-]?key|token|secret|password|credentials?|authorization|cookie|database[_-]?url|dsn|pat)(?:[_-]|$)/i;
847
- const obviousSecretValuePattern = /(?:\bsk[-_][-_A-Za-z0-9]{10,}\b|\bgh[pousr]_[A-Za-z0-9]{12,}\b|\bgithub_pat_[A-Za-z0-9_]{12,}\b|\bAKIA[A-Z0-9]{12,}\b|-----BEGIN [A-Z ]*PRIVATE KEY-----|\bBearer\s+\S+)/;
848
- const controlCharacterPattern = /[\u0000-\u001f\u007f]/;
849
- const reservedWorkspaceRoots = new Set([".git", ".sidecar"]);
850
- const shellNames = new Set([
851
- "sh",
852
- "bash",
853
- "zsh",
854
- "fish",
855
- "cmd",
856
- "cmd.exe",
857
- "powershell",
858
- "pwsh"
859
- ]);
860
- const sha256DigestSchema = z.string().regex(sha256Pattern);
861
- z.string().regex(gitObjectPattern);
862
- const environmentNameSchema = z.string().regex(environmentNamePattern);
863
- const headerNameSchema = z.string().regex(headerNamePattern);
864
- z.string().regex(mediaTypePattern);
865
- function sha256Bytes(value) {
866
- const bytes = sha256(value);
867
- return `sha256:${Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("")}`;
868
- }
869
- /** RFC 8785 serialization used by every candidate-producing package. */
870
- function canonicalCandidateJson(value) {
871
- if (!isCanonicalJsonValue(value)) throw new Error("candidate document must be finite, acyclic RFC 8785 JSON");
872
- return serializeCanonicalCandidate(value);
873
- }
874
- function canonicalCandidateBytes(value) {
875
- return new TextEncoder().encode(canonicalCandidateJson(value));
876
- }
877
- function canonicalCandidateDigest(value) {
878
- return sha256Bytes(canonicalCandidateBytes(value));
879
- }
880
- function omitTopLevelDigest(value) {
881
- const { digest: _digest, ...material } = value;
882
- return material;
883
- }
884
- function serializeCanonicalCandidate(value) {
885
- if (value === null || typeof value === "boolean" || typeof value === "number") return JSON.stringify(value);
886
- if (typeof value === "string") return JSON.stringify(value);
887
- if (Array.isArray(value)) return `[${value.map(serializeCanonicalCandidate).join(",")}]`;
888
- return `{${Object.keys(value).sort().map((key) => `${JSON.stringify(key)}:${serializeCanonicalCandidate(value[key])}`).join(",")}}`;
889
- }
890
- function isWellFormedUnicode(value) {
891
- for (let index = 0; index < value.length; index++) {
892
- const code = value.charCodeAt(index);
893
- if (code >= 55296 && code <= 56319) {
894
- const next = value.charCodeAt(index + 1);
895
- if (!(next >= 56320 && next <= 57343)) return false;
896
- index++;
897
- } else if (code >= 56320 && code <= 57343) return false;
898
- }
899
- return true;
900
- }
901
- /** Return shared boundary violations for path strings. */
902
- function pathSafetyIssues(value) {
903
- const issues = [];
904
- if (controlCharacterPattern.test(value)) issues.push("control-character");
905
- if (!isWellFormedUnicode(value)) issues.push("malformed-unicode");
906
- return issues;
907
- }
908
- /** Return shared boundary violations for paths that must stay inside a workspace. */
909
- function relativePathSafetyIssues(value) {
910
- const issues = [...pathSafetyIssues(value)];
911
- if (value.length === 0) issues.push("empty");
912
- if (value.startsWith("/") || /^[A-Za-z]:/.test(value)) issues.push("absolute");
913
- if (value.includes("\\")) issues.push("backslash");
914
- if (value.split("/").includes("..")) issues.push("parent-traversal");
915
- return issues;
916
- }
917
- function isSafeRelativePath(value, allowDot) {
918
- if (relativePathSafetyIssues(value).length > 0) return false;
919
- if (value === ".") return allowDot;
920
- const parts = value.split("/");
921
- return parts.every((part) => part.length > 0 && part !== ".") && !parts.some((part) => reservedWorkspaceRoots.has(part));
922
- }
923
- function isSafeExecutable(value) {
924
- if (value.length === 0 || controlCharacterPattern.test(value) || !isWellFormedUnicode(value) || /\s/.test(value) || value.includes("\\") || !/^[A-Za-z0-9._+/-]+$/.test(value)) return false;
925
- const parts = value.split("/");
926
- if (value.startsWith("/")) parts.shift();
927
- if (parts.length === 0 || parts.some((part) => part.length === 0 || part === "." || part === "..")) return false;
928
- return !shellNames.has(parts.at(-1)?.toLowerCase() ?? "");
929
- }
930
- function isCanonicalJsonValue(value, ancestors = /* @__PURE__ */ new Set()) {
931
- if (value === null || typeof value === "boolean") return true;
932
- if (typeof value === "string") return isWellFormedUnicode(value);
933
- if (typeof value === "number") return Number.isFinite(value);
934
- if (typeof value !== "object" || ancestors.has(value)) return false;
935
- const prototype = Object.getPrototypeOf(value);
936
- if (!Array.isArray(value) && prototype !== Object.prototype && prototype !== null) return false;
937
- const nextAncestors = new Set(ancestors).add(value);
938
- if (Array.isArray(value)) {
939
- for (let index = 0; index < value.length; index += 1) {
940
- if (!(index in value)) return false;
941
- if (!isCanonicalJsonValue(value[index], nextAncestors)) return false;
942
- }
943
- return true;
944
- }
945
- return Object.entries(value).every(([key, entry]) => isWellFormedUnicode(key) && isCanonicalJsonValue(entry, nextAncestors));
946
- }
947
- function hasCredentialBearingUrl(value) {
948
- try {
949
- const url = new URL(value);
950
- if (url.username !== "" || url.password !== "") return true;
951
- return [...url.searchParams.keys()].some((key) => secretNamePattern.test(key));
952
- } catch {
953
- return false;
954
- }
955
- }
956
- /**
957
- * Whether a string holds an obvious credential: a provider key (`sk-`, `gh*_`,
958
- * `github_pat_`, `AKIA`), a PEM private key, a bearer token, or a URL with
959
- * userinfo or a credential-named query parameter. The agent-eval redaction
960
- * core calls it, so candidate validation and trace redaction agree.
961
- */
962
- function looksLikeCredential(value) {
963
- return obviousSecretValuePattern.test(value) || hasCredentialBearingUrl(value);
964
- }
965
- function isPublicConfigValue(value) {
966
- return !controlCharacterPattern.test(value) && isWellFormedUnicode(value) && !looksLikeCredential(value);
967
- }
968
- /** Shared public reference owner; resolution belongs to the trusted executor. */
969
- const agentCandidateSecretRefSchema = z.strictObject({
970
- kind: z.literal("secret-ref"),
971
- key: z.string().min(1).max(500).refine((value) => value.trim().length > 0 && isPublicConfigValue(value), "secret reference key must be a public non-credential identity"),
972
- format: z.enum(["raw", "bearer"]).optional()
973
- });
974
- const agentCandidatePublicValueSchema = z.strictObject({
975
- kind: z.literal("public"),
976
- value: z.string().refine(isPublicConfigValue, "candidate config cannot carry credentials; the evaluator owns model authorization")
977
- });
978
- const agentCandidateConfigValueSchema = z.discriminatedUnion("kind", [agentCandidatePublicValueSchema, agentCandidateSecretRefSchema]);
979
- function configRecordSchema(keySchema) {
980
- return z.record(keySchema, agentCandidateConfigValueSchema).superRefine((config, ctx) => {
981
- for (const name of Object.keys(config)) if (secretNamePattern.test(name) && config[name]?.kind !== "secret-ref") ctx.addIssue({
982
- code: "custom",
983
- path: [name],
984
- message: "candidate config cannot declare credential-bearing names"
985
- });
986
- });
987
- }
988
- configRecordSchema(environmentNameSchema);
989
- z.object({
990
- kind: z.literal("github"),
991
- owner: z.string().regex(githubComponentPattern).refine((value) => value !== "." && value !== ".."),
992
- repo: z.string().regex(githubComponentPattern).refine((value) => value !== "." && value !== "..")
993
- }).strict();
994
- //#endregion
995
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/agent-profile.js
996
- /**
997
- * Portable reasoning/thinking effort. Backends map it to their native control at materialization:
998
- * codex `model_reasoning_effort`, kimi `--thinking`/`--no-thinking`, claude thinking budget.
999
- * Ordered low→high:
1000
- * - `none` — extended thinking OFF (no reasoning budget at all)
1001
- * - `minimal` — thinking ON, the lowest budget (distinct from `none`)
1002
- * - `low` / `medium` / `high` / `xhigh`
1003
- * - `ultracode` — maximum (Claude Code's `max` and Codex's `ultra` reconcile here).
1004
- * A backend without a matching native tier may clamp down to its strongest supported level, but it
1005
- * must never turn reasoning on for `none` or silently increase a requested effort.
1006
- */
1007
- const REASONING_EFFORTS = Object.freeze([
1008
- "none",
1009
- "minimal",
1010
- "low",
1011
- "medium",
1012
- "high",
1013
- "xhigh",
1014
- "ultracode"
1015
- ]);
1016
- /** Router namespace reserved for checkpoint-backed models. Receipt-free profiles cannot use it. */
1017
- const TRAINED_MODEL_PREFIX = "tangle-trained/";
1018
- /** An immutable Router alias; serving must independently attest this artifact-to-route binding. */
1019
- function trainedModelIdForArtifact(digest) {
1020
- return `${TRAINED_MODEL_PREFIX}${digest.slice(7)}`;
1021
- }
1022
- //#endregion
1023
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/harness.js
1024
- /**
1025
- * Recognized execution identities, not a deployment's list of installed runners.
1026
- * A profile's authored harness remains part of its canonical identity; execution
1027
- * receipts record authored identity, effective identity and selected harness
1028
- * separately. Retiring an executable must not invalidate historical profiles,
1029
- * sessions or receipts. Availability is admitted against the selected deployment.
1030
- *
1031
- * `cli-base` names router-backed execution without a full coding-agent harness.
1032
- * `prime` is a distinct Pi-line fork with a different native wire protocol; its
1033
- * sessions are not interchangeable with Pi sessions. A shared identity does not
1034
- * assert protocol, model, profile-control or native-resume compatibility.
1035
- */
1036
- const harnessTypeSchema = z.enum([
1037
- "claude-code",
1038
- "nanoclaw",
1039
- "codex",
1040
- "opencode",
1041
- "kimi-code",
1042
- "pi",
1043
- "prime",
1044
- "gemini",
1045
- "hermes",
1046
- "openclaw",
1047
- "amp",
1048
- "factory-droids",
1049
- "forge",
1050
- "cursor",
1051
- "acp",
1052
- "cli-base"
1053
- ]);
1054
- //#endregion
1055
- export { boundedEventContentStringSchema as C, boundedStringSchema as D, boundedJsonSchema as E, isBoundedEventContentJson as O, boundedEventContentRecordSchema as S, boundedJsonRecordSchema as T, sha256 as _, agentCandidateSecretRefSchema as a, CONTRACT_MAX_STRING_LENGTH as b, environmentNameSchema as c, isSafeExecutable as d, isSafeRelativePath as f, sha256DigestSchema as g, omitTopLevelDigest as h, trainedModelIdForArtifact as i, isBoundedJsonMaterial as k, headerNameSchema as l, looksLikeCredential as m, REASONING_EFFORTS as n, canonicalCandidateDigest as o, isWellFormedUnicode as p, TRAINED_MODEL_PREFIX as r, canonicalCandidateJson as s, harnessTypeSchema as t, isCanonicalJsonValue as u, CONTRACT_MAX_ARRAY_LENGTH as v, boundedIdentifierSchema as w, boundedEventContentJsonSchema as x, CONTRACT_MAX_JSON_NODES as y };
715
+ export { bytesToHex as n, sha256 as t };
@@ -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-BejHM6F8.js";
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-CE4JMgzA.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 };
@@ -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-QjuaxjRc.js";
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-bYg24n7e.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,6 +1,6 @@
1
- import { n as createSandboxInstanceFromResponse } from "./sandbox-NSVkjLQo.js";
2
- import { i as readResponseJson } from "./errors-ystNl7Ae.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-CoawKwX_.js";
1
+ import { n as createSandboxInstanceFromResponse } from "./sandbox-CIfbsytC.js";
2
+ import { i as readResponseJson } from "./errors-BfR-fBvN.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-vaFoyyiO.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
@@ -2371,7 +2371,7 @@ function isAddressEqual(a, b) {
2371
2371
  //#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
2372
2372
  async function recoverPublicKey({ hash, signature }) {
2373
2373
  const hashHex = isHex(hash) ? hash : toHex(hash);
2374
- const { secp256k1 } = await import("./secp256k1-BGtA1PsN.js");
2374
+ const { secp256k1 } = await import("./secp256k1-CZWrpqxW.js");
2375
2375
  return `0x${(() => {
2376
2376
  if (typeof signature === "object" && "r" in signature && "s" in signature) {
2377
2377
  const { r, s, v, yParity } = signature;
@@ -1,5 +1,5 @@
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-CIgaXUM7.js";
2
- import { t as CliAuthReference } from "./cli-auth-bundle-DMbZ1E7W.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-8-sAl2J0.js";
2
+ import { t as CliAuthReference } from "./cli-auth-bundle-COQ25k3d.js";
3
3
  import { z } from "zod";
4
4
  //#region ../../../packages/runtime-contracts/dist/backend-types.d.ts
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "1.0.132",
3
+ "version": "1.0.133",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -141,6 +141,7 @@
141
141
  "devDependencies": {
142
142
  "@hocuspocus/provider": "^4.7.1",
143
143
  "@mastra/core": "1.67.0",
144
+ "@noble/hashes": "2.4.0",
144
145
  "@types/node": "25.6.0",
145
146
  "@types/tar-stream": "3.1.4",
146
147
  "@types/ws": "^8.18.2",
@@ -152,15 +153,15 @@
152
153
  "vitest": "^4.1.12",
153
154
  "ws": "^8.22.0",
154
155
  "yjs": "13.6.33",
155
- "@repo/shared": "0.0.0",
156
- "@tangle-network/agent-profile-materialize": "0.27.1",
157
156
  "@products/sandbox-test-utils": "0.0.0",
157
+ "@repo/shared": "0.0.0",
158
+ "@tangle-network/cli-agent-registry": "0.14.0",
158
159
  "@tangle-network/runtime-contracts": "0.20.0",
159
- "@tangle-network/cli-agent-registry": "0.14.0"
160
+ "@tangle-network/agent-profile-materialize": "0.27.1"
160
161
  },
161
162
  "tangleRelease": {
162
- "sourceSha": "b3b6cee3f5a4843246d0b8f610736bfd20fbb47e",
163
- "mergedAt": "2026-10-30T16:05:08-06:00"
163
+ "sourceSha": "04b6131209ee0980a4af46abc7cbf343c2088802",
164
+ "mergedAt": "2026-10-30T16:46:01-06:00"
164
165
  },
165
166
  "scripts": {
166
167
  "build": "node scripts/build-dist.mjs",
@@ -1,2 +0,0 @@
1
- import "./cli-auth-bundle-BDGLGvMu-BM8TG3ms.js";
2
- export {};
File without changes