@tangle-network/sandbox 1.0.218 → 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.
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +5 -5
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +1 -1
- package/dist/{agent-run-outcome-DW_S8f-u.d.ts → agent-run-outcome-DAN_EtGZ.d.ts} +2 -2
- package/dist/{api-request-DQMcM1zv.js → api-request-BTdRjI3w.js} +1 -1
- package/dist/{browser-interactive-control-controller-s9d82qc9.d.ts → browser-interactive-control-controller-ow-Ebkd1.d.ts} +1 -1
- package/dist/{chunked-upload-BqjKs2uB.js → chunked-upload-CAzx8Ijy.js} +1 -1
- package/dist/{chunked-upload-file-CxKU6yTt.js → chunked-upload-file-WZPpuUE0.js} +1 -1
- package/dist/{client-CSMb6fHz.d.ts → client-CiFnarzL.d.ts} +9 -61
- package/dist/{client-DUJYpZv6.js → client-ronGvKYn.js} +74 -86
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-Bv22hvgZ.js → collaboration-BEGUYvm7.js} +1 -1
- package/dist/{core-CIV0sCjY.js → core-CmGAuOS3.js} +2 -2
- package/dist/core.d.ts +6 -6
- package/dist/core.js +5 -5
- package/dist/{errors-Bh1udpJ0.js → errors-Bprs6YnT.js} +1 -84
- package/dist/{file-download-B9UceD-P.js → file-download-DHpnw8of.js} +1 -1
- package/dist/{index-DB4MbfIb.d.ts → index-B1kH9ptD.d.ts} +5 -5
- package/dist/index.d.ts +10 -10
- package/dist/index.js +9 -9
- package/dist/intelligence/index.js +3 -3
- package/dist/interactive-control.d.ts +1 -1
- package/dist/{interactive-controller-D8QKEwjM.js → interactive-controller-YdvqdSm5.js} +2 -2
- package/dist/{interactive-controller-Cl9Ablmg.d.ts → interactive-controller-ZoRprm7c.d.ts} +3 -3
- package/dist/{lines-DvSNh5dD.js → lines-C06U-ma3.js} +1 -1
- package/dist/{lines-DXdAUnUf.d.ts → lines-stVnnbw8.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{mcp-local-pH5nJCGw.js → mcp-local-Ck7jH01_.js} +2 -2
- package/dist/{preview-DhFcCERz.d.ts → preview-DTqp8fY5.d.ts} +3 -3
- package/dist/{public-templates-D0QpNlni.d.ts → public-templates-CaJoEbFK.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/public-templates.js +1 -1
- package/dist/{raw-evidence-archive-DCQgYdIF.js → raw-evidence-archive-DD9clPQd.js} +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +4 -4
- package/dist/{sandbox-Dpdeoqhx.js → sandbox-CSV_5JRt.js} +9 -9
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/select-seat-command.js +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-D1hW4Guz.js → tangle-D5604U4K.js} +2 -2
- package/dist/{terminal-stream-types-B74nb8jV.d.ts → terminal-stream-types-77ia9qZ8.d.ts} +1468 -407
- package/dist/{types-DzB-PS9p.d.ts → types-C0hvqGim.d.ts} +5 -1126
- package/package.json +7 -7
|
@@ -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-
|
|
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-
|
|
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-
|
|
11
|
-
import { a as rewrapResponse, i as isReplayableBody, t as IDEMPOTENT_METHODS } from "./api-request-
|
|
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-
|
|
19
|
-
import { t as downloadFile } from "./file-download-
|
|
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-
|
|
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-
|
|
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-
|
|
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) => {
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_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-
|
|
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 };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as 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-
|
|
2
|
-
import { a as readResponseJson } from "./errors-
|
|
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
|
/**
|