@tangle-network/sandbox 1.0.219 → 1.0.220

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 (46) 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 +1 -1
  5. package/dist/{agent-run-outcome-DW_S8f-u.d.ts → agent-run-outcome-DAN_EtGZ.d.ts} +2 -2
  6. package/dist/{api-request-D2LC0l2F.js → api-request-BTdRjI3w.js} +1 -1
  7. package/dist/{browser-interactive-control-controller-s9d82qc9.d.ts → browser-interactive-control-controller-ow-Ebkd1.d.ts} +1 -1
  8. package/dist/{chunked-upload-BqjKs2uB.js → chunked-upload-CAzx8Ijy.js} +1 -1
  9. package/dist/{chunked-upload-file-CxKU6yTt.js → chunked-upload-file-WZPpuUE0.js} +1 -1
  10. package/dist/{client-CSMb6fHz.d.ts → client-CiFnarzL.d.ts} +9 -61
  11. package/dist/{client-CSUTe70Z.js → client-ronGvKYn.js} +74 -86
  12. package/dist/collaboration/index.js +1 -1
  13. package/dist/{collaboration-Bv22hvgZ.js → collaboration-BEGUYvm7.js} +1 -1
  14. package/dist/{core-B6Ma53O9.js → core-CmGAuOS3.js} +2 -2
  15. package/dist/core.d.ts +6 -6
  16. package/dist/core.js +5 -5
  17. package/dist/{errors-Bh1udpJ0.js → errors-Bprs6YnT.js} +1 -84
  18. package/dist/{file-download-B9UceD-P.js → file-download-DHpnw8of.js} +1 -1
  19. package/dist/{index-DB4MbfIb.d.ts → index-B1kH9ptD.d.ts} +5 -5
  20. package/dist/index.d.ts +10 -10
  21. package/dist/index.js +9 -9
  22. package/dist/intelligence/index.js +3 -3
  23. package/dist/interactive-control.d.ts +1 -1
  24. package/dist/{interactive-controller-D8QKEwjM.js → interactive-controller-YdvqdSm5.js} +2 -2
  25. package/dist/{interactive-controller-Cl9Ablmg.d.ts → interactive-controller-ZoRprm7c.d.ts} +3 -3
  26. package/dist/{lines-DvSNh5dD.js → lines-C06U-ma3.js} +1 -1
  27. package/dist/{lines-DXdAUnUf.d.ts → lines-stVnnbw8.d.ts} +1 -1
  28. package/dist/lines.d.ts +1 -1
  29. package/dist/lines.js +1 -1
  30. package/dist/{mcp-local-FNH3uRiu.js → mcp-local-Ck7jH01_.js} +2 -2
  31. package/dist/{preview-DhFcCERz.d.ts → preview-DTqp8fY5.d.ts} +3 -3
  32. package/dist/{public-templates-D0QpNlni.d.ts → public-templates-CaJoEbFK.d.ts} +2 -2
  33. package/dist/public-templates.d.ts +1 -1
  34. package/dist/public-templates.js +1 -1
  35. package/dist/{raw-evidence-archive-DCQgYdIF.js → raw-evidence-archive-DD9clPQd.js} +1 -1
  36. package/dist/runtime.d.ts +5 -5
  37. package/dist/runtime.js +4 -4
  38. package/dist/{sandbox-DAQl7rIK.js → sandbox-CSV_5JRt.js} +9 -9
  39. package/dist/select-seat-command.d.ts +1 -1
  40. package/dist/select-seat-command.js +1 -1
  41. package/dist/tangle/index.d.ts +1 -1
  42. package/dist/tangle/index.js +1 -1
  43. package/dist/{tangle-o6oHKdr-.js → tangle-D5604U4K.js} +2 -2
  44. package/dist/{terminal-stream-types-B74nb8jV.d.ts → terminal-stream-types-77ia9qZ8.d.ts} +1468 -407
  45. package/dist/{types-DzB-PS9p.d.ts → types-C0hvqGim.d.ts} +5 -1126
  46. package/package.json +5 -5
@@ -1,22 +1,22 @@
1
- import { A as normalizeRuntimeBackendConfig, C as encodeTextForWire, D as applyRequestedModel, F as withoutRuntimeSecrets, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, M as requestedSecretProfilePublicDigest, O as assertCurrentBackendType, S as encodePromptForWire, T as canUseNodeHttp2, W as normalizeEffectiveBackend, _ as isTraceId, a as assertScopedTokenActive, b as resolveDispatchRunIdentity, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as TRACE_ID_HEADER, h as isRetryableCredentialRefusal, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, k as mergeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as mintTraceId, w as runtimeFilesystemPath, x as validateAcceptedDispatchRunRef, y as resolveTraceId } from "./interactive-controller-D8QKEwjM.js";
1
+ import { A as normalizeRuntimeBackendConfig, C as encodeTextForWire, D as applyRequestedModel, F as withoutRuntimeSecrets, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, M as requestedSecretProfilePublicDigest, O as assertCurrentBackendType, S as encodePromptForWire, T as canUseNodeHttp2, W as normalizeEffectiveBackend, _ as isTraceId, a as assertScopedTokenActive, b as resolveDispatchRunIdentity, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as TRACE_ID_HEADER, h as isRetryableCredentialRefusal, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, k as mergeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as mintTraceId, w as runtimeFilesystemPath, x as validateAcceptedDispatchRunRef, y as resolveTraceId } from "./interactive-controller-YdvqdSm5.js";
2
2
  import { C as boundedIdentifierSchema$1, E as boundedStringSchema$1, g as sha256DigestSchema$1, o as canonicalCandidateDigest$1, s as canonicalCandidateJson$1, u as isCanonicalJsonValue$1 } from "./harness-DMaNgn0S.js";
3
3
  import { t as sha256$1 } from "./sha2-vu4U-x2L.js";
4
4
  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-BiP6TJFP.js";
5
5
  import { a as ProxySecretReceiptSchema$1, o as canonicalAgentProfileValue$1, r as agentProfileSchema$1 } from "./profile-schema-C1KpT-wS.js";
6
- import { C as ServerError, D as ValidationError, E as TimeoutError, S as SandboxError, T as StreamInterruptedError, _ as NotFoundError, a as readResponseJson, d as EdgeNotReadyError, g as NetworkError, i as parseResponseError, l as CapabilityError, n as isTransientWrite, o as retryWhen, r as parseErrorResponse, s as AuthError, t as TerminalStreamError, w as StateError, y as ProfileFileMountPathError } from "./errors-Bh1udpJ0.js";
6
+ import { C as ServerError, D as ValidationError, E as TimeoutError, S as SandboxError, T as StreamInterruptedError, _ as NotFoundError, a as readResponseJson, d as EdgeNotReadyError, g as NetworkError, i as parseResponseError, l as CapabilityError, n as isTransientWrite, o as retryWhen, r as parseErrorResponse, s as AuthError, t as TerminalStreamError, w as StateError, y as ProfileFileMountPathError } from "./errors-Bprs6YnT.js";
7
7
  import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BbJTt2QJ.js";
8
8
  import { a as backoffDelayMs, o as isUndelivered, r as abortableSleep } from "./retry-policy-Dh-VezcE.js";
9
9
  import { a as SANDBOX_PROXY_REQUEST_MAX_BYTES, c as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, d as isProfileFileMountOutsideRoots, f as profileFileMountOutsideRootsMessage, l as SANDBOX_AGENT_HOME, o as FILE_OPERATION_LIMITS, u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-BSe4ayU9.js";
10
- import { c as awaitSdkResend, l as countSdkRequest, s as uploadChunked, u as takeSdkTurn } from "./chunked-upload-BqjKs2uB.js";
11
- import { a as rewrapResponse, i as isReplayableBody, t as IDEMPOTENT_METHODS } from "./api-request-D2LC0l2F.js";
10
+ import { c as awaitSdkResend, l as countSdkRequest, s as uploadChunked, u as takeSdkTurn } from "./chunked-upload-CAzx8Ijy.js";
11
+ import { a as rewrapResponse, i as isReplayableBody, t as IDEMPOTENT_METHODS } from "./api-request-BTdRjI3w.js";
12
12
  import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-BIaDMUtu.js";
13
13
  import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-DpBLxIof.js";
14
14
  import { t as parseSSEStream } from "./sse-parser-DOCszo1K.js";
15
15
  import { t as runPreparedProcess } from "./prepared-process-CWf84BFt.js";
16
16
  import { a as isBackendType, r as cliAuthReferenceSchema } from "./cli-auth-bundle-C6DtK7GX-BbbiAn-Z.js";
17
17
  import "./cli-auth-bundle-CMJWI99l.js";
18
- import { n as SandboxLines } from "./lines-DvSNh5dD.js";
19
- import { t as downloadFile } from "./file-download-B9UceD-P.js";
18
+ import { n as SandboxLines } from "./lines-C06U-ma3.js";
19
+ import { t as downloadFile } from "./file-download-DHpnw8of.js";
20
20
  import { z } from "zod";
21
21
  import { createHash } from "node:crypto";
22
22
  import { constants } from "node:fs";
@@ -12045,7 +12045,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
12045
12045
  var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabilities {
12046
12046
  /** @internal — invoked before the sandbox is deleted. */
12047
12047
  async _sessionExportRawEvidence(id, destination, options) {
12048
- const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-DCQgYdIF.js");
12048
+ const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-DD9clPQd.js");
12049
12049
  await this.ensureRunning();
12050
12050
  await this.refresh();
12051
12051
  return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/raw-evidence/archive?${new URLSearchParams([
@@ -12076,7 +12076,7 @@ var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabil
12076
12076
  * and the byte and file bounds are verified before the directory appears.
12077
12077
  */
12078
12078
  async exportRawEvidence(destination, options) {
12079
- const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-DCQgYdIF.js");
12079
+ const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-DD9clPQd.js");
12080
12080
  await this.ensureRunning();
12081
12081
  await this.refresh();
12082
12082
  return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/raw-evidence/archive?${new URLSearchParams({
@@ -14208,7 +14208,7 @@ var SandboxFilesystemOperations = class extends DeclaredFilesystemOperations {
14208
14208
  totalBytes: size,
14209
14209
  percentage: 0
14210
14210
  });
14211
- const { uploadChunkedFromFile } = await import("./chunked-upload-file-CxKU6yTt.js");
14211
+ const { uploadChunkedFromFile } = await import("./chunked-upload-file-WZPpuUE0.js");
14212
14212
  await uploadChunkedFromFile({ fetch: (path, init) => this.host.runtimeFetch(path, init) }, remotePath, localPath, {
14213
14213
  mode: options?.permissions,
14214
14214
  onProgress: options?.onProgress ? (progress) => {
@@ -1,4 +1,4 @@
1
- import { mt as SeatOwnerTransport } from "./client-CSMb6fHz.js";
1
+ import { mt as SeatOwnerTransport } from "./client-CiFnarzL.js";
2
2
 
3
3
  //#region src/select-seat-command.d.ts
4
4
  /** Public reply bound; the owner prints one metadata object. */
@@ -1,4 +1,4 @@
1
- import { D as ValidationError, S as SandboxError } from "./errors-Bh1udpJ0.js";
1
+ import { D as ValidationError, S as SandboxError } from "./errors-Bprs6YnT.js";
2
2
  import { spawn } from "node:child_process";
3
3
  //#region src/select-seat-command.ts
4
4
  /**
@@ -1,2 +1,2 @@
1
- import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_CHAIN_ID, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as BlueprintSandboxClientConfig, h as BlueprintSandboxClient, 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 TANGLE_JOBS_CONTRACT, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-DB4MbfIb.js";
1
+ import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_CHAIN_ID, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as BlueprintSandboxClientConfig, h as BlueprintSandboxClient, 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 TANGLE_JOBS_CONTRACT, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-B1kH9ptD.js";
2
2
  export { AgentSandboxBlueprintAbi, BlueprintSandboxClient, BlueprintSandboxClientConfig, 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, 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 BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-o6oHKdr-.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 BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-D5604U4K.js";
2
2
  export { AgentSandboxBlueprintAbi, BlueprintSandboxClient, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
@@ -1,5 +1,5 @@
1
- import { L as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-DAQl7rIK.js";
2
- import { a as readResponseJson } from "./errors-Bh1udpJ0.js";
1
+ import { L as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-CSV_5JRt.js";
2
+ import { a as readResponseJson } from "./errors-Bprs6YnT.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-CK-x8vXj.js";
4
4
  //#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
5
5
  /**