@tangle-network/sandbox 1.0.120 → 1.0.122

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 (39) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +3 -3
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/agent/preview.js +1 -1
  5. package/dist/{agent-run-outcome-DwA5rn-P.d.ts → agent-run-outcome-BhT2OZoj.d.ts} +2 -2
  6. package/dist/auth/index.js +1 -1
  7. package/dist/{browser-interactive-control-controller-B3P192sF.d.ts → browser-interactive-control-controller-BWTn0voc.d.ts} +1 -1
  8. package/dist/{browser-interactive-control-controller-BvtNDWql.js → browser-interactive-control-controller-CI-G-lan.js} +15 -15
  9. package/dist/{cli-auth-bundle-BGZQl8pf.js → cli-auth-bundle-CuULmmzk.js} +1 -1
  10. package/dist/{client-CimQxH-A.d.ts → client-DBZiDNP6.d.ts} +5 -5
  11. package/dist/{client-O5_N175q.js → client-DFqifFgH.js} +5 -5
  12. package/dist/{core-yHfMbWMG.js → core-DodBo96T.js} +3 -3
  13. package/dist/core.d.ts +6 -6
  14. package/dist/core.js +3 -3
  15. package/dist/{harness-BnGz2Wng.js → harness-B63wL8RZ.js} +5 -5
  16. package/dist/{index-ChKSM_if.d.ts → index-Cc0IxE28.d.ts} +5 -5
  17. package/dist/index.d.ts +9 -9
  18. package/dist/index.js +15 -59
  19. package/dist/interactive-control.d.ts +1 -1
  20. package/dist/interactive-control.js +1 -1
  21. package/dist/{interactive-controller-BQzNEYZu.js → interactive-controller-DGnSVeCk.js} +4 -4
  22. package/dist/{interactive-controller-DFpM_UPj.d.ts → interactive-controller-DMTo87Kq.d.ts} +3 -3
  23. package/dist/{lines-B5m_Cz9t.d.ts → lines-BYBT4Izj.d.ts} +1 -1
  24. package/dist/lines.d.ts +1 -1
  25. package/dist/{local-cli-auth-BZMvbmFe.js → local-cli-auth-Cbg8DyY2.js} +1 -1
  26. package/dist/{preview-Cg38QkTD.d.ts → preview-CD7s4tvh.d.ts} +3 -3
  27. package/dist/{profile-schema--qCcNrz1.js → profile-schema-BD1nkqBw.js} +19 -22
  28. package/dist/{public-templates-B-t1QILX.d.ts → public-templates-BoQ-L5sG.d.ts} +2 -2
  29. package/dist/public-templates.d.ts +1 -1
  30. package/dist/runtime.d.ts +5 -5
  31. package/dist/runtime.js +2 -2
  32. package/dist/{sandbox-FrS60n3X.js → sandbox-CFSzBI2U.js} +138 -26
  33. package/dist/select-seat-command.d.ts +1 -1
  34. package/dist/tangle/index.d.ts +1 -1
  35. package/dist/tangle/index.js +1 -1
  36. package/dist/{tangle-DqvFn9wa.js → tangle-JtKIPVjl.js} +1 -1
  37. package/dist/{terminal-stream-types-DS0FCaXq.d.ts → terminal-stream-types-BV3-VCQn.d.ts} +20 -18
  38. package/dist/{types-UtRlYsxh.d.ts → types-CuVUB_M1.d.ts} +6 -34
  39. package/package.json +7 -9
@@ -1,7 +1,7 @@
1
- import { A as mergeRuntimeBackendConfig, C as encodePromptForWire, E as canUseNodeHttp2, G as normalizeEffectiveBackend, I as withoutRuntimeSecrets, L as createAgentRunOutcomeTracker, M as requestedPublicProfileDigest, N as requestedSecretProfilePublicDigest, O as applyRequestedModel, R as deriveAgentResultOutcome, S as validateAcceptedDispatchRunRef, T as runtimeFilesystemPath, _ as TRACE_ID_HEADER, a as assertScopedTokenActive, b as resolveTraceId, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as waitForRetryAfter, h as isRetryableCredentialRefusal, i as terminalUpgradeHeadersSupported, j as normalizeRuntimeBackendConfig, k as assertCurrentBackendType, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as isTraceId, w as encodeTextForWire, x as resolveDispatchRunIdentity, y as mintTraceId } from "./interactive-controller-BQzNEYZu.js";
2
- import { C as boundedIdentifierSchema, E as boundedStringSchema, g as sha256DigestSchema, o as canonicalCandidateDigest, s as canonicalCandidateJson, u as isCanonicalJsonValue } from "./harness-BnGz2Wng.js";
3
- import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-BvtNDWql.js";
4
- import { a as ProxySecretReceiptSchema, o as canonicalAgentProfileValue, r as agentProfileSchema } from "./profile-schema--qCcNrz1.js";
1
+ import { A as mergeRuntimeBackendConfig, C as encodePromptForWire, E as canUseNodeHttp2, G as normalizeEffectiveBackend, I as withoutRuntimeSecrets, L as createAgentRunOutcomeTracker, M as requestedPublicProfileDigest, N as requestedSecretProfilePublicDigest, O as applyRequestedModel, R as deriveAgentResultOutcome, S as validateAcceptedDispatchRunRef, T as runtimeFilesystemPath, _ as TRACE_ID_HEADER, a as assertScopedTokenActive, b as resolveTraceId, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as waitForRetryAfter, h as isRetryableCredentialRefusal, i as terminalUpgradeHeadersSupported, j as normalizeRuntimeBackendConfig, k as assertCurrentBackendType, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as isTraceId, w as encodeTextForWire, x as resolveDispatchRunIdentity, y as mintTraceId } from "./interactive-controller-DGnSVeCk.js";
2
+ import { D as boundedStringSchema, _ as sha256, g as sha256DigestSchema$1, o as canonicalCandidateDigest$1, s as canonicalCandidateJson$1, u as isCanonicalJsonValue$1, w as boundedIdentifierSchema } from "./harness-B63wL8RZ.js";
3
+ import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-CI-G-lan.js";
4
+ import { a as ProxySecretReceiptSchema, o as canonicalAgentProfileValue, r as agentProfileSchema } from "./profile-schema-BD1nkqBw.js";
5
5
  import { C as StateError, E as ValidationError, F as SANDBOX_AGENT_HOME, I as SANDBOX_FILE_API_ABSOLUTE_ROOTS, L as isProfileFileMountOutsideRoots, M as FILE_OPERATION_LIMITS, P as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, R as profileFileMountOutsideRootsMessage, S as ServerError, T as TimeoutError, a as AuthError, c as CompliancePlacementError, f as GpuProviderNotConfiguredError, g as NotFoundError, h as NetworkError, i as readResponseJson, j as SANDBOX_PROXY_REQUEST_MAX_BYTES, l as EdgeNotReadyError, m as NON_RETRYABLE_CREATE_QUOTA_REASONS, n as parseErrorResponse, r as parseResponseError, s as CapabilityError, t as TerminalStreamError, v as ProfileFileMountPathError, w as StreamInterruptedError, x as SandboxError, y as QuotaError } from "./errors-ystNl7Ae.js";
6
6
  import { n as combineAbortSignals, r as delayUntilAborted, t as awaitWithAbort } from "./abort-signal-JVaAyNMP.js";
7
7
  import { t as rewrapResponse } from "./response-rewrap-B75N59JT.js";
@@ -10,7 +10,7 @@ import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-DORW8_mD.
10
10
  import { t as parseSSEStream } from "./sse-parser-BUIKfYAd.js";
11
11
  import { s as uploadChunked } from "./chunked-upload-BHRGMfDz.js";
12
12
  import { t as runPreparedProcess } from "./prepared-process-GzQXVsX8.js";
13
- import { a as backendTypeSchema, r as cliAuthReferenceSchema } from "./cli-auth-bundle-BGZQl8pf.js";
13
+ import { a as backendTypeSchema, r as cliAuthReferenceSchema } from "./cli-auth-bundle-CuULmmzk.js";
14
14
  import { n as SandboxLines } from "./lines-DEg0cqSV.js";
15
15
  import { z } from "zod";
16
16
  import { createHash } from "node:crypto";
@@ -20,7 +20,7 @@ import "node:fs/promises";
20
20
  import { readTokenCostUsd, readTokenUsage } from "@tangle-network/agent-core";
21
21
  import "@tangle-network/agent-interface/environment-provider";
22
22
  import { OTLP_SPAN_KIND, OTLP_STATUS_CODE, msToUnixNano, otlpTraceExport, toOtlpAttributes, toW3CSpanId, toW3CTraceId } from "@tangle-network/agent-trace-contract/otlp";
23
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-execution-preparation.js
23
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/agent-execution-preparation.js
24
24
  /**
25
25
  * Canonical RFC 8785/SHA-256 identity for one validated, public AgentProfile.
26
26
  * Secret-capable MCP/hook fields are tagged. Other prompt, resource, metadata,
@@ -31,11 +31,11 @@ import { OTLP_SPAN_KIND, OTLP_STATUS_CODE, msToUnixNano, otlpTraceExport, toOtlp
31
31
  */
32
32
  function canonicalAgentProfileDigest(profile) {
33
33
  const material = canonicalAgentProfileValue(agentProfileSchema.parse(profile));
34
- if (material === void 0 || !isCanonicalJsonValue(material)) throw new Error("AgentProfile must contain finite, acyclic RFC 8785 JSON values");
35
- return canonicalCandidateDigest(material);
34
+ if (material === void 0 || !isCanonicalJsonValue$1(material)) throw new Error("AgentProfile must contain finite, acyclic RFC 8785 JSON values");
35
+ return canonicalCandidateDigest$1(material);
36
36
  }
37
37
  //#endregion
38
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/environment-interactive-start.js
38
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/environment-interactive-start.js
39
39
  const AgentInteractiveSessionRunCoordinatesSchema = z.strictObject({
40
40
  provider: boundedIdentifierSchema,
41
41
  environmentId: boundedIdentifierSchema,
@@ -52,7 +52,7 @@ const AgentInteractiveSessionRunCoordinatesSchema = z.strictObject({
52
52
  const AgentInteractiveSessionStartSchema = z.strictObject({
53
53
  run: AgentExactRunControlRefSchema,
54
54
  profile: agentProfileSchema,
55
- requestedProfileDigest: sha256DigestSchema,
55
+ requestedProfileDigest: sha256DigestSchema$1,
56
56
  authMode: z.literal("oauth").optional(),
57
57
  initialPrompt: boundedStringSchema.optional(),
58
58
  cwd: boundedStringSchema.min(1).optional(),
@@ -63,7 +63,7 @@ const AgentInteractiveSessionStartSchema = z.strictObject({
63
63
  function agentInteractiveSessionRequestDigest(coordinates, input) {
64
64
  const exactCoordinates = AgentInteractiveSessionRunCoordinatesSchema.parse(coordinates);
65
65
  const exactInput = AgentInteractiveSessionStartSchema.omit({ run: true }).parse(input);
66
- return canonicalCandidateDigest({
66
+ return canonicalCandidateDigest$1({
67
67
  kind: "agent-interactive-session-start.v1",
68
68
  run: exactCoordinates,
69
69
  requestedProfileDigest: exactInput.requestedProfileDigest,
@@ -112,7 +112,7 @@ function runCoordinates(run) {
112
112
  };
113
113
  }
114
114
  //#endregion
115
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/environment-terminal.js
115
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/environment-terminal.js
116
116
  const terminalDimensionSchema = z.number().int().positive().max(1e4);
117
117
  /**
118
118
  * Provider-neutral handle for one interactive terminal.
@@ -484,7 +484,7 @@ const PROFILE_IMPORT_PART_BYTES = 512 * 1024;
484
484
  const MANAGED_PROFILE_TRANSPORT = "managed-profile-reference-v1";
485
485
  /** Cache identity follows JSON wire semantics and RFC 8785 key ordering. */
486
486
  function profileCacheSha256(profile) {
487
- return canonicalCandidateDigest(JSON.parse(JSON.stringify(profile))).slice(7);
487
+ return canonicalCandidateDigest$1(JSON.parse(JSON.stringify(profile))).slice(7);
488
488
  }
489
489
  //#endregion
490
490
  //#region ../../../packages/runtime-contracts/dist/direct-read.js
@@ -759,7 +759,7 @@ async function responseNeedsProfileImport(response) {
759
759
  }
760
760
  /** Upload the public profile only. Runtime grants remain in the turn backend. */
761
761
  async function primeManagedProfile(profile, fetchRuntime) {
762
- const bytes = new TextEncoder().encode(canonicalCandidateJson(profile));
762
+ const bytes = new TextEncoder().encode(canonicalCandidateJson$1(profile));
763
763
  const sha256 = profileCacheSha256(profile);
764
764
  if (bytes.length > 8388608) throw new ValidationError("Managed profile exceeds the profile import bound");
765
765
  const post = async (body) => {
@@ -3127,6 +3127,118 @@ async function isRefusedBearer(response) {
3127
3127
  return false;
3128
3128
  }
3129
3129
  }
3130
+ //#endregion
3131
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-candidate-schema-common.js
3132
+ const sha256Pattern = /^sha256:[a-f0-9]{64}$/;
3133
+ const gitObjectPattern = /^(?:[a-f0-9]{40}|[a-f0-9]{64})$/;
3134
+ const environmentNamePattern = /^[A-Za-z_][A-Za-z0-9_]*$/;
3135
+ const headerNamePattern = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
3136
+ const mediaTypePattern = /^[a-z0-9][a-z0-9!#$&^_.+-]{0,126}\/[a-z0-9][a-z0-9!#$&^_.+-]{0,126}$/;
3137
+ const githubComponentPattern = /^[A-Za-z0-9][A-Za-z0-9_.-]{0,99}$/;
3138
+ const secretNamePattern = /(?:^|[_-])(?:api[_-]?key|access[_-]?key|private[_-]?key|token|secret|password|credentials?|authorization|cookie|database[_-]?url|dsn|pat)(?:[_-]|$)/i;
3139
+ 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+)/;
3140
+ const controlCharacterPattern = /[\u0000-\u001f\u007f]/;
3141
+ z.string().regex(sha256Pattern);
3142
+ z.string().regex(gitObjectPattern);
3143
+ const environmentNameSchema = z.string().regex(environmentNamePattern);
3144
+ z.string().regex(headerNamePattern);
3145
+ z.string().regex(mediaTypePattern);
3146
+ function sha256Bytes(value) {
3147
+ const bytes = sha256(value);
3148
+ return `sha256:${Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("")}`;
3149
+ }
3150
+ /** RFC 8785 serialization used by every candidate-producing package. */
3151
+ function canonicalCandidateJson(value) {
3152
+ if (!isCanonicalJsonValue(value)) throw new Error("candidate document must be finite, acyclic RFC 8785 JSON");
3153
+ return serializeCanonicalCandidate(value);
3154
+ }
3155
+ function canonicalCandidateBytes(value) {
3156
+ return new TextEncoder().encode(canonicalCandidateJson(value));
3157
+ }
3158
+ function canonicalCandidateDigest(value) {
3159
+ return sha256Bytes(canonicalCandidateBytes(value));
3160
+ }
3161
+ function serializeCanonicalCandidate(value) {
3162
+ if (value === null || typeof value === "boolean" || typeof value === "number") return JSON.stringify(value);
3163
+ if (typeof value === "string") return JSON.stringify(value);
3164
+ if (Array.isArray(value)) return `[${value.map(serializeCanonicalCandidate).join(",")}]`;
3165
+ return `{${Object.keys(value).sort().map((key) => `${JSON.stringify(key)}:${serializeCanonicalCandidate(value[key])}`).join(",")}}`;
3166
+ }
3167
+ function isWellFormedUnicode(value) {
3168
+ for (let index = 0; index < value.length; index++) {
3169
+ const code = value.charCodeAt(index);
3170
+ if (code >= 55296 && code <= 56319) {
3171
+ const next = value.charCodeAt(index + 1);
3172
+ if (!(next >= 56320 && next <= 57343)) return false;
3173
+ index++;
3174
+ } else if (code >= 56320 && code <= 57343) return false;
3175
+ }
3176
+ return true;
3177
+ }
3178
+ function isCanonicalJsonValue(value, ancestors = /* @__PURE__ */ new Set()) {
3179
+ if (value === null || typeof value === "boolean") return true;
3180
+ if (typeof value === "string") return isWellFormedUnicode(value);
3181
+ if (typeof value === "number") return Number.isFinite(value);
3182
+ if (typeof value !== "object" || ancestors.has(value)) return false;
3183
+ const prototype = Object.getPrototypeOf(value);
3184
+ if (!Array.isArray(value) && prototype !== Object.prototype && prototype !== null) return false;
3185
+ const nextAncestors = new Set(ancestors).add(value);
3186
+ if (Array.isArray(value)) {
3187
+ for (let index = 0; index < value.length; index += 1) {
3188
+ if (!(index in value)) return false;
3189
+ if (!isCanonicalJsonValue(value[index], nextAncestors)) return false;
3190
+ }
3191
+ return true;
3192
+ }
3193
+ return Object.entries(value).every(([key, entry]) => isWellFormedUnicode(key) && isCanonicalJsonValue(entry, nextAncestors));
3194
+ }
3195
+ function hasCredentialBearingUrl(value) {
3196
+ try {
3197
+ const url = new URL(value);
3198
+ if (url.username !== "" || url.password !== "") return true;
3199
+ return [...url.searchParams.keys()].some((key) => secretNamePattern.test(key));
3200
+ } catch {
3201
+ return false;
3202
+ }
3203
+ }
3204
+ /**
3205
+ * Whether a string holds an obvious credential: a provider key (`sk-`, `gh*_`,
3206
+ * `github_pat_`, `AKIA`), a PEM private key, a bearer token, or a URL with
3207
+ * userinfo or a credential-named query parameter. The agent-eval redaction
3208
+ * core calls it, so candidate validation and trace redaction agree.
3209
+ */
3210
+ function looksLikeCredential(value) {
3211
+ return obviousSecretValuePattern.test(value) || hasCredentialBearingUrl(value);
3212
+ }
3213
+ function isPublicConfigValue(value) {
3214
+ return !controlCharacterPattern.test(value) && isWellFormedUnicode(value) && !looksLikeCredential(value);
3215
+ }
3216
+ /** Shared public reference owner; resolution belongs to the trusted executor. */
3217
+ const agentCandidateSecretRefSchema = z.strictObject({
3218
+ kind: z.literal("secret-ref"),
3219
+ 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"),
3220
+ format: z.enum(["raw", "bearer"]).optional()
3221
+ });
3222
+ const agentCandidatePublicValueSchema = z.strictObject({
3223
+ kind: z.literal("public"),
3224
+ value: z.string().refine(isPublicConfigValue, "candidate config cannot carry credentials; the evaluator owns model authorization")
3225
+ });
3226
+ const agentCandidateConfigValueSchema = z.discriminatedUnion("kind", [agentCandidatePublicValueSchema, agentCandidateSecretRefSchema]);
3227
+ function configRecordSchema(keySchema) {
3228
+ return z.record(keySchema, agentCandidateConfigValueSchema).superRefine((config, ctx) => {
3229
+ for (const name of Object.keys(config)) if (secretNamePattern.test(name) && config[name]?.kind !== "secret-ref") ctx.addIssue({
3230
+ code: "custom",
3231
+ path: [name],
3232
+ message: "candidate config cannot declare credential-bearing names"
3233
+ });
3234
+ });
3235
+ }
3236
+ configRecordSchema(environmentNameSchema);
3237
+ z.object({
3238
+ kind: z.literal("github"),
3239
+ owner: z.string().regex(githubComponentPattern).refine((value) => value !== "." && value !== ".."),
3240
+ repo: z.string().regex(githubComponentPattern).refine((value) => value !== "." && value !== "..")
3241
+ }).strict();
3130
3242
  const CODEX_SYSTEM_PROMPT_FILE = ".codex/system-prompt.md";
3131
3243
  const OPENCODE_APPEND_SYSTEM_PROMPT_FILE = ".opencode/agent-system-prompt.md";
3132
3244
  const OPENCODE_CONFIG_FILE = "opencode.json";
@@ -6319,7 +6431,7 @@ var InteractiveSessionHandle = class {
6319
6431
  options?.signal?.throwIfAborted();
6320
6432
  const binding = this.requireBinding();
6321
6433
  const exactCommand = AgentInteractiveSessionPromptCommandSchema.parse(command);
6322
- if (canonicalCandidateDigest(exactCommand.ref) !== canonicalCandidateDigest(binding.ref) || canonicalCandidateDigest(exactCommand.control) !== canonicalCandidateDigest(binding.control)) throw new Error(`Interactive session ${this.sessionId} prompt is bound to a different exact ref`);
6434
+ if (canonicalCandidateDigest$1(exactCommand.ref) !== canonicalCandidateDigest$1(binding.ref) || canonicalCandidateDigest$1(exactCommand.control) !== canonicalCandidateDigest$1(binding.control)) throw new Error(`Interactive session ${this.sessionId} prompt is bound to a different exact ref`);
6323
6435
  return (options === void 0 ? this.host._sendInteractivePrompt(this.sessionId, exactCommand) : this.host._sendInteractivePrompt(this.sessionId, exactCommand, options)).then((acknowledgement) => {
6324
6436
  const exactAcknowledgement = AgentInteractiveSessionPromptAcknowledgementSchema.parse(acknowledgement);
6325
6437
  if (!agentInteractiveSessionPromptAcknowledgementMatchesCommand(exactCommand, exactAcknowledgement)) throw new Error(`Interactive session ${this.sessionId} prompt acknowledgement does not match the command`);
@@ -6397,8 +6509,8 @@ var InteractiveSessionHandle = class {
6397
6509
  options?.signal?.throwIfAborted();
6398
6510
  const binding = this.requireBinding();
6399
6511
  const exactRequest = AgentInteractiveSessionAttachSchema.parse(request);
6400
- if (!agentInteractiveSessionControlClaimMatchesRef(binding.ref, exactRequest.control) || canonicalCandidateDigest(exactRequest.control) !== canonicalCandidateDigest(binding.control)) throw new Error(`Interactive session ${this.sessionId} terminal attach is bound to a different active control claim`);
6401
- const requestDigest = canonicalCandidateDigest(exactRequest);
6512
+ if (!agentInteractiveSessionControlClaimMatchesRef(binding.ref, exactRequest.control) || canonicalCandidateDigest$1(exactRequest.control) !== canonicalCandidateDigest$1(binding.control)) throw new Error(`Interactive session ${this.sessionId} terminal attach is bound to a different active control claim`);
6513
+ const requestDigest = canonicalCandidateDigest$1(exactRequest);
6402
6514
  if (this.agentTerminalAttachInFlight !== void 0) {
6403
6515
  if (this.agentTerminalAttachDigest !== requestDigest) throw new Error(`Interactive session ${this.sessionId} cannot attach with a different terminal request while another attach is in flight`);
6404
6516
  return awaitWithAbort(this.agentTerminalAttachInFlight, options?.signal);
@@ -6451,7 +6563,7 @@ var InteractiveSessionHandle = class {
6451
6563
  options?.signal?.throwIfAborted();
6452
6564
  const ref = this.requireRef();
6453
6565
  const exactRequest = AgentInteractiveSessionControlClaimRequestSchema.parse(request);
6454
- if (canonicalCandidateDigest(exactRequest.ref) !== canonicalCandidateDigest(ref)) throw new Error(`Interactive session ${this.sessionId} control claim is bound to a different exact ref`);
6566
+ if (canonicalCandidateDigest$1(exactRequest.ref) !== canonicalCandidateDigest$1(ref)) throw new Error(`Interactive session ${this.sessionId} control claim is bound to a different exact ref`);
6455
6567
  return this.host._claimInteractiveControl(this.sessionId, exactRequest, options).then((acknowledgement) => {
6456
6568
  const exactAcknowledgement = AgentInteractiveSessionControlClaimAcknowledgementSchema.parse(acknowledgement);
6457
6569
  if (!agentInteractiveSessionControlClaimAcknowledgementMatchesRequest(exactRequest, exactAcknowledgement)) throw new Error(`Interactive session ${this.sessionId} control claim acknowledgement does not match the request`);
@@ -6466,7 +6578,7 @@ var InteractiveSessionHandle = class {
6466
6578
  options?.signal?.throwIfAborted();
6467
6579
  const binding = this.requireBinding();
6468
6580
  const exactCommand = AgentInteractiveSessionStopCommandSchema.parse(command);
6469
- if (canonicalCandidateDigest(exactCommand.ref) !== canonicalCandidateDigest(binding.ref) || canonicalCandidateDigest(exactCommand.control) !== canonicalCandidateDigest(binding.control)) throw new Error(`Interactive session ${this.sessionId} stop is bound to a different exact ref`);
6581
+ if (canonicalCandidateDigest$1(exactCommand.ref) !== canonicalCandidateDigest$1(binding.ref) || canonicalCandidateDigest$1(exactCommand.control) !== canonicalCandidateDigest$1(binding.control)) throw new Error(`Interactive session ${this.sessionId} stop is bound to a different exact ref`);
6470
6582
  return (options === void 0 ? this.host._stopInteractive(this.sessionId, exactCommand) : this.host._stopInteractive(this.sessionId, exactCommand, options)).then((acknowledgement) => {
6471
6583
  const exactAcknowledgement = AgentInteractiveSessionStopAcknowledgementSchema.parse(acknowledgement);
6472
6584
  if (!agentInteractiveSessionStopAcknowledgementMatchesCommand(exactCommand, exactAcknowledgement)) throw new Error(`Interactive session ${this.sessionId} stop acknowledgement does not match the command`);
@@ -6478,7 +6590,7 @@ var InteractiveSessionHandle = class {
6478
6590
  const ref = this.requireRef();
6479
6591
  return (options === void 0 ? this.host._stopInteractiveLifecycle(this.sessionId, ref) : this.host._stopInteractiveLifecycle(this.sessionId, ref, options)).then((acknowledgement) => {
6480
6592
  const exactAcknowledgement = AgentInteractiveSessionStopAcknowledgementSchema.parse(acknowledgement);
6481
- if (canonicalCandidateDigest(exactAcknowledgement.ref) !== canonicalCandidateDigest(ref)) throw new Error(`Interactive session ${this.sessionId} lifecycle stop acknowledgement does not match the exact ref`);
6593
+ if (canonicalCandidateDigest$1(exactAcknowledgement.ref) !== canonicalCandidateDigest$1(ref)) throw new Error(`Interactive session ${this.sessionId} lifecycle stop acknowledgement does not match the exact ref`);
6482
6594
  if (exactAcknowledgement.status !== "accepted" && exactAcknowledgement.status !== "replayed") throw new Error(`Interactive session ${this.sessionId} lifecycle stop was not confirmed (${exactAcknowledgement.status})`);
6483
6595
  if (exactAcknowledgement.effect === "unknown") throw new Error(`Interactive session ${this.sessionId} lifecycle stop returned an unknown outcome`);
6484
6596
  return exactAcknowledgement;
@@ -7536,7 +7648,7 @@ const interactionResolutionDeliveryStateSchema = z.enum([
7536
7648
  const interactionResolutionAcknowledgementSchema = z.strictObject({
7537
7649
  status: z.enum(["accepted", "already_resolved_same"]),
7538
7650
  operationId: z.string().min(1),
7539
- responseDigest: sha256DigestSchema,
7651
+ responseDigest: sha256DigestSchema$1,
7540
7652
  interactionId: z.string().min(1),
7541
7653
  sessionId: z.string().min(1),
7542
7654
  outcome: z.enum([
@@ -7564,7 +7676,7 @@ const InteractionConflictEnvelopeSchema = z.object({
7564
7676
  code: z.string().min(1),
7565
7677
  message: z.string().min(1),
7566
7678
  status: REFUSED_INTERACTION_STATUS,
7567
- existingResponseDigest: sha256DigestSchema.optional(),
7679
+ existingResponseDigest: sha256DigestSchema$1.optional(),
7568
7680
  existingOperationId: z.string().min(1).optional(),
7569
7681
  resolvedAt: z.string().min(1).optional()
7570
7682
  })
@@ -7592,7 +7704,7 @@ function bindingsEqual(left, right) {
7592
7704
  return left.requestDigest === right.requestDigest && left.runId === right.runId && left.provider === right.provider && left.environmentId === right.environmentId && left.sessionId === right.sessionId && left.executionId === right.executionId && left.interactionId === right.interactionId;
7593
7705
  }
7594
7706
  function assertResolutionMatches(resolution, sessionId, submitted, response, endpoint) {
7595
- const expectedDigest = canonicalCandidateDigest(submitted);
7707
+ const expectedDigest = canonicalCandidateDigest$1(submitted);
7596
7708
  if (resolution.sessionId !== sessionId || resolution.interactionId !== submitted.id || resolution.outcome !== submitted.outcome || resolution.responseDigest !== expectedDigest) throw invalidRuntimeResponse("Sidecar returned a resolution for another interaction response", response, endpoint);
7597
7709
  }
7598
7710
  /** Parse one interaction response without discarding replay information. */
@@ -8508,7 +8620,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
8508
8620
  origin: "runtime",
8509
8621
  endpoint: `/agents/sessions/${encodeURIComponent(id)}/interactive`
8510
8622
  });
8511
- if (canonicalCandidateDigest(status.ref) !== canonicalCandidateDigest(exactCommand.ref)) throw new ValidationError("Interactive prompt ref or control does not match the session");
8623
+ if (canonicalCandidateDigest$1(status.ref) !== canonicalCandidateDigest$1(exactCommand.ref)) throw new ValidationError("Interactive prompt ref or control does not match the session");
8512
8624
  const endpoint = `/agents/sessions/${encodeURIComponent(id)}/interactive/prompt`;
8513
8625
  const response = await this.runtimeFetch(endpoint, {
8514
8626
  method: "POST",
@@ -8686,7 +8798,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
8686
8798
  origin: "runtime"
8687
8799
  });
8688
8800
  const acknowledgement = parsed.data.data;
8689
- if (canonicalCandidateDigest(acknowledgement.ref) !== canonicalCandidateDigest(exactRef)) throw new ServerError("Interactive lifecycle stop acknowledgement does not match the exact ref", 502, {
8801
+ if (canonicalCandidateDigest$1(acknowledgement.ref) !== canonicalCandidateDigest$1(exactRef)) throw new ServerError("Interactive lifecycle stop acknowledgement does not match the exact ref", 502, {
8690
8802
  endpoint,
8691
8803
  origin: "runtime"
8692
8804
  });
@@ -11367,7 +11479,7 @@ var SandboxInteractiveTerminalOperations = class {
11367
11479
  origin: "runtime",
11368
11480
  endpoint: `/agents/sessions/${encodeURIComponent(id)}/interactive`
11369
11481
  }, "INTERACTIVE_SESSION_EXITED");
11370
- if (canonicalCandidateDigest(status.ref) !== canonicalCandidateDigest(exactRef)) throw new ValidationError("Interactive attach ref does not match the current session");
11482
+ if (canonicalCandidateDigest$1(status.ref) !== canonicalCandidateDigest$1(exactRef)) throw new ValidationError("Interactive attach ref does not match the current session");
11371
11483
  return exactRef;
11372
11484
  }
11373
11485
  /**
@@ -1,4 +1,4 @@
1
- import { ft as SeatOwnerTransport } from "./client-CimQxH-A.js";
1
+ import { ft as SeatOwnerTransport } from "./client-DBZiDNP6.js";
2
2
 
3
3
  //#region src/select-seat-command.d.ts
4
4
  /** Public reply bound; the owner prints one metadata object. */
@@ -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-ChKSM_if.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-Cc0IxE28.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-DqvFn9wa.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-JtKIPVjl.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-FrS60n3X.js";
1
+ import { n as createSandboxInstanceFromResponse } from "./sandbox-CFSzBI2U.js";
2
2
  import { i as readResponseJson } from "./errors-ystNl7Ae.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
@@ -410,7 +410,7 @@ declare class TerminalStreamError extends Error {
410
410
  });
411
411
  }
412
412
  //#endregion
413
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/plan.d.ts
413
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/plan.d.ts
414
414
  /**
415
415
  * Typed server-originated continuation. Adapters consume this instead of
416
416
  * inferring approval from a free-form user message.
@@ -446,7 +446,7 @@ declare const PlanContinuationSchema: z.ZodObject<{
446
446
  }, z.core.$strict>;
447
447
  type PlanContinuation = z.infer<typeof PlanContinuationSchema>;
448
448
  //#endregion
449
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/interaction-data.d.ts
449
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/interaction-data.d.ts
450
450
  declare const InteractionSecretReferenceSchema: z.ZodObject<{
451
451
  kind: z.ZodLiteral<"secret_handle">;
452
452
  handleId: z.ZodString;
@@ -467,7 +467,7 @@ declare const InteractionResolutionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
467
467
  }, z.core.$strict>], "outcome">;
468
468
  type InteractionResolution = z.infer<typeof InteractionResolutionSchema>;
469
469
  //#endregion
470
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/proxy-secrets.d.ts
470
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/proxy-secrets.d.ts
471
471
  declare const ProxySecretBindingSchema: z.ZodObject<{
472
472
  hosts: z.ZodReadonly<z.ZodArray<z.ZodString>>;
473
473
  methods: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
@@ -496,9 +496,8 @@ declare const ProxySecretBindingSchema: z.ZodObject<{
496
496
  ttlSeconds: z.ZodOptional<z.ZodNumber>;
497
497
  }, z.core.$strict>;
498
498
  type ProxySecretBinding = z.infer<typeof ProxySecretBindingSchema>;
499
- /** proxy-installed is a phase-two input, never dispatch authority. Only installed acknowledges
500
- * proxy and placeholder-only materialization. Revoked confirms binding revocation, not upstream
501
- * credential revocation. Receipts contain metadata only, never secret or placeholder bytes.
499
+ /** proxy-installed is phase-two input, not dispatch authority; installed acknowledges both phases.
500
+ * revoked confirms binding revocation, not upstream revocation. Receipts contain metadata only.
502
501
  */
503
502
  declare const ProxySecretReceiptSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
504
503
  status: z.ZodLiteral<"proxy-installed">;
@@ -672,13 +671,16 @@ declare const ProxySecretCapabilitiesSchema: z.ZodObject<{
672
671
  opaque: "opaque";
673
672
  }>>;
674
673
  enforcement: z.ZodLiteral<"exact">;
675
- transports: z.ZodTuple<[z.ZodLiteral<"https:443">], null>;
674
+ transports: z.ZodTuple<[z.ZodEnum<{
675
+ "https:443": "https:443";
676
+ https: "https";
677
+ }>], null>;
676
678
  lifecycle: z.ZodLiteral<true>;
677
679
  placementReceiptRequired: z.ZodLiteral<true>;
678
680
  }, z.core.$strict>;
679
681
  type ProxySecretCapabilities = z.infer<typeof ProxySecretCapabilitiesSchema>;
680
682
  //#endregion
681
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/harness.d.ts
683
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/harness.d.ts
682
684
  /**
683
685
  * Recognized execution identities, not a deployment's list of installed runners.
684
686
  * A profile's authored harness remains part of its canonical identity; execution
@@ -712,7 +714,7 @@ declare const harnessTypeSchema: z.ZodEnum<{
712
714
  /** One declaration owns runtime validation and the compile-time vocabulary. */
713
715
  type HarnessType = z.infer<typeof harnessTypeSchema>;
714
716
  //#endregion
715
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-profile.d.ts
717
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/agent-profile.d.ts
716
718
  /**
717
719
  * Permission policy value for a capability.
718
720
  */
@@ -1188,11 +1190,11 @@ interface AgentProfileValidationResult {
1188
1190
  normalizedProfile?: AgentProfile;
1189
1191
  }
1190
1192
  //#endregion
1191
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-candidate.d.ts
1193
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/agent-candidate.d.ts
1192
1194
  /** Full SHA-256 digest with an explicit algorithm prefix. */
1193
1195
  type Sha256Digest = `sha256:${string}`;
1194
1196
  //#endregion
1195
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/interaction-fields.d.ts
1197
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/interaction-fields.d.ts
1196
1198
  declare const InteractionAnswerSpecSchema: z.ZodObject<{
1197
1199
  fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1198
1200
  type: z.ZodLiteral<"text">;
@@ -1246,7 +1248,7 @@ declare const InteractionResponseScopeSchema: z.ZodEnum<{
1246
1248
  persistent: "persistent";
1247
1249
  }>;
1248
1250
  //#endregion
1249
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/interaction-envelope.d.ts
1251
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/interaction-envelope.d.ts
1250
1252
  declare const InteractionSubjectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1251
1253
  type: z.ZodLiteral<"tool">;
1252
1254
  toolName: z.ZodString;
@@ -1353,7 +1355,7 @@ declare const InteractionAcknowledgementSchema: z.ZodObject<{
1353
1355
  }, z.core.$strict>;
1354
1356
  type InteractionAcknowledgement = z.infer<typeof InteractionAcknowledgementSchema>;
1355
1357
  //#endregion
1356
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/runtime-control.d.ts
1358
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/runtime-control.d.ts
1357
1359
  /** Provider-neutral coordinates sufficient to recreate control of one run. */
1358
1360
  interface AgentRunControlRef {
1359
1361
  runId: string;
@@ -1390,7 +1392,7 @@ interface AgentRunCancellationAcknowledgement {
1390
1392
  existingRequestDigest?: Sha256Digest;
1391
1393
  }
1392
1394
  //#endregion
1393
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/environment-terminal.d.ts
1395
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/environment-terminal.d.ts
1394
1396
  /**
1395
1397
  * Provider-neutral handle for one interactive terminal.
1396
1398
  *
@@ -1509,7 +1511,7 @@ interface AgentTerminalSession {
1509
1511
  }): AsyncIterable<TerminalOutputEvent>;
1510
1512
  }
1511
1513
  //#endregion
1512
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/environment-interactive-control.d.ts
1514
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/environment-interactive-control.d.ts
1513
1515
  /**
1514
1516
  * Durable identity of one coding-agent TUI.
1515
1517
  *
@@ -2230,7 +2232,7 @@ interface AgentInteractiveSessionPromptAcknowledgement {
2230
2232
  existingRequestDigest?: `sha256:${string}`;
2231
2233
  }
2232
2234
  //#endregion
2233
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/environment-interactive-start.d.ts
2235
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/environment-interactive-start.d.ts
2234
2236
  /**
2235
2237
  * Start one native coding-agent TUI from caller-owned request material.
2236
2238
  *
@@ -2521,13 +2523,13 @@ declare const AgentInteractiveSessionStartSchema: z.ZodObject<{
2521
2523
  }, z.core.$strict>;
2522
2524
  type AgentInteractiveSessionStart = z.infer<typeof AgentInteractiveSessionStartSchema>;
2523
2525
  //#endregion
2524
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/runtime-attachments.d.ts
2526
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/runtime-attachments.d.ts
2525
2527
  /** Runtime-owned bindings do not alter the authored AgentProfile or candidate identity. */
2526
2528
  interface AgentRuntimeAttachments {
2527
2529
  mcp: Record<string, AgentProfileMcpServer>;
2528
2530
  }
2529
2531
  //#endregion
2530
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/sandbox-size.d.ts
2532
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/sandbox-size.d.ts
2531
2533
  /**
2532
2534
  * Portable sandbox size vocabulary.
2533
2535
  *
@@ -1,4 +1,4 @@
1
- import { $ as ProxySecretReceipt, At as SandboxCreateReceipt, G as AgentProfileConfidential, L as AgentExactRunControlRef, Q as ReasoningEffort, U as AgentProfile, V as InteractionRequest, W as AgentProfileCapabilities, Z as AgentProfileValidationResult, a as TerminalStreamOptions, b as SandboxSizePreset, g as TerminalReadyInfo, i as TerminalStreamHandlers, s as TerminalStreamToken, t as TerminalAttachTimings, tt as PlanContinuation, x as AgentRuntimeAttachments } from "./terminal-stream-types-DS0FCaXq.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-BV3-VCQn.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
@@ -1168,29 +1168,11 @@ interface BatchResult {
1168
1168
  }
1169
1169
  //#endregion
1170
1170
  //#region ../../../packages/runtime-contracts/dist/declared-secrets.d.ts
1171
- /**
1172
- * Bound stored values stay at the proxy; the box receives a salted placeholder.
1173
- * A stored value with no host binding is delivered into the box as-is.
1174
- *
1175
- * The declaration travels in the box env under {@link DECLARED_SECRET_HOSTS_ENV_VAR}
1176
- * as a JSON array of {@link DeclaredSecret}. It carries host and header names,
1177
- * never a value, so every path that rebuilds a sandbox's proxy rules from the
1178
- * box env (create, warm claim, re-key, restart) sees it without new plumbing.
1179
- * The env name avoids the words the at-rest env redaction matches (KEY, TOKEN,
1180
- * SECRET, PASSWORD, CREDENTIAL, AUTH), which would redact the declaration.
1181
- *
1182
- * The caller can set that env name itself, so every consumer validates it
1183
- * again. Nothing here trusts the Sandbox API's earlier check.
1184
- * The Worker and Node runtime share this validator without host-side imports.
1185
- */
1171
+ /** Bound values stay at the proxy. Legacy declarations contain metadata only
1172
+ * and are revalidated at every rebuild; unbound legacy names keep prior delivery. */
1186
1173
  /** Box env var holding a JSON array of {@link DeclaredSecret}. */
1187
1174
  declare const DECLARED_SECRET_HOSTS_ENV_VAR = "TANGLE_EGRESS_DECLARED_HOSTS";
1188
- /**
1189
- * One declaration. `header` names the request header the proxy looks in for
1190
- * the placeholder. `Authorization` covers bearer, token and basic auth: the
1191
- * proxy swaps the placeholder inside the header value and decodes basic auth
1192
- * before it swaps. Any other value is a named header such as `X-Api-Key`.
1193
- */
1175
+ /** Legacy header substitution preserves bearer/token/Basic semantics; Basic is decoded before replacement. Other headers are named-key delivery. */
1194
1176
  interface DeclaredSecret {
1195
1177
  name: string;
1196
1178
  host: string;
@@ -1203,21 +1185,11 @@ interface DeclaredSecretRequest {
1203
1185
  header?: string;
1204
1186
  }
1205
1187
  type SecretBinding = DeclaredSecretRequest;
1206
- /**
1207
- * The declarations in a box env value. Absent or empty is none. A malformed
1208
- * value throws, so a caller never treats a broken declaration as "no
1209
- * declaration" and lets a real value through into the box.
1210
- */
1188
+ /** Absent/empty env means no declarations; malformed declarations throw rather than allow a real value into the box. */
1211
1189
  declare function parseDeclaredSecretsEnv(raw: string | undefined): DeclaredSecret[];
1212
1190
  /** The base placeholder for the slot at `index`; the box holds it salted. */
1213
1191
  declare function declaredSecretBaseToken(index: number): string;
1214
- /**
1215
- * Refuse a box env that would hand a declared secret to the box as a real
1216
- * value. Call it on the env a container is created with, on every path that
1217
- * can run without the egress proxy holding the value: a declaration promises
1218
- * the box never reads the secret, and the proxy is the only thing that keeps
1219
- * it.
1220
- */
1192
+ /** Refuse real declared values on every path where the proxy cannot hold them; declarations promise the box only placeholders. */
1221
1193
  declare function assertDeclaredSecretsHeld(env: Readonly<Record<string, string>>): void;
1222
1194
  //#endregion
1223
1195
  //#region ../../../packages/runtime-contracts/dist/interaction-response.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "1.0.120",
3
+ "version": "1.0.122",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -109,7 +109,7 @@
109
109
  },
110
110
  "dependencies": {
111
111
  "@tangle-network/agent-core": "^1.0.0",
112
- "@tangle-network/agent-interface": "^5.10.2",
112
+ "@tangle-network/agent-interface": "^5.10.9",
113
113
  "@tangle-network/agent-trace-contract": "^2.2.0",
114
114
  "tar-stream": "3.2.1",
115
115
  "zod": "^4.6.6"
@@ -144,7 +144,6 @@
144
144
  "@types/node": "25.6.0",
145
145
  "@types/tar-stream": "3.1.4",
146
146
  "@types/ws": "^8.18.2",
147
- "@vitest/coverage-v8": "^4.1.12",
148
147
  "ai": "7.0.107",
149
148
  "openai": "^6.49.0",
150
149
  "proper-lockfile": "4.1.2",
@@ -153,15 +152,15 @@
153
152
  "vitest": "^4.1.12",
154
153
  "ws": "^8.22.0",
155
154
  "yjs": "13.6.33",
156
- "@tangle-network/agent-profile-materialize": "0.27.1",
157
- "@tangle-network/runtime-contracts": "0.20.0",
158
155
  "@products/sandbox-test-utils": "0.0.0",
156
+ "@repo/shared": "0.0.0",
157
+ "@tangle-network/runtime-contracts": "0.20.0",
159
158
  "@tangle-network/cli-agent-registry": "0.14.0",
160
- "@repo/shared": "0.0.0"
159
+ "@tangle-network/agent-profile-materialize": "0.27.1"
161
160
  },
162
161
  "tangleRelease": {
163
- "sourceSha": "25cc614af3adb89c47e245fe0900393211172e1a",
164
- "mergedAt": "2026-10-30T02:23:12-06:00"
162
+ "sourceSha": "fded906db26ae979d9756acfa9971743b3bd18eb",
163
+ "mergedAt": "2026-10-30T03:43:29-06:00"
165
164
  },
166
165
  "scripts": {
167
166
  "build": "node scripts/build-dist.mjs",
@@ -171,7 +170,6 @@
171
170
  "verify-dist": "bash scripts/verify-dist.sh",
172
171
  "test": "pnpm run build && vitest run",
173
172
  "test:watch": "vitest",
174
- "test:coverage": "vitest run --coverage",
175
173
  "test:e2e": "vitest run --config vitest.e2e.config.ts",
176
174
  "test:e2e:collaboration": "pnpm --dir ../../../apps/collaboration-server build && SKIP_ORCHESTRATOR=true vitest run --config vitest.e2e.config.ts tests/e2e/collaboration-lifecycle.test.ts",
177
175
  "test:e2e:snapshots": "vitest run --config vitest.e2e.config.ts tests/e2e/snapshot-lifecycle.test.ts",