@tangle-network/sandbox 0.60.78-develop.20261026120024.8964ed6 → 0.60.78-develop.20261026135138.8f00ca5
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/README.md +5 -4
- package/dist/abort-signal-BKVZNJul.js +46 -0
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +4 -4
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +2 -2
- package/dist/{agent-run-outcome-Cp8hzV98.d.ts → agent-run-outcome-B5CzWxw4.d.ts} +1 -1
- package/dist/{api-request-D8Mni27A.js → api-request-D1UVNo16.js} +1 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{browser-interactive-control-controller-k1KkqDGF.js → browser-interactive-control-controller-CLHNi8rG.js} +2 -46
- package/dist/{browser-interactive-control-controller-CH7CLpmc.d.ts → browser-interactive-control-controller-SI9hV6r5.d.ts} +1 -1
- package/dist/{chunked-upload-file-CbbWlCFt.js → chunked-upload-file-CLwAeLrM.js} +1 -1
- package/dist/{cli-auth-bundle-DlQs_26j.js → cli-auth-bundle-Bq-5b0FT.js} +7 -7
- package/dist/{client-BtazNE4N.js → client-E6qmM8wZ.js} +9 -8
- package/dist/{client-aBXGR6bc.d.ts → client-XWxiuhwy.d.ts} +5 -5
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/{core-VOzQz1mc.js → core-KP6tmonl.js} +2 -2
- package/dist/core.d.ts +6 -6
- package/dist/core.js +4 -4
- package/dist/{direct-http2--35cHOv5.js → direct-http2-Pyj3Rvr1.js} +1 -1
- package/dist/{index-EebEqYqj.d.ts → index-nXob5TkM.d.ts} +14 -14
- package/dist/index.d.ts +11 -11
- package/dist/index.js +9 -8
- package/dist/intelligence/index.js +1 -1
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-ThIeP_oZ.js → interactive-controller-D5tWSSI1.js} +19 -237
- package/dist/{interactive-controller-Mh7Ud5DQ.d.ts → interactive-controller-FgmcS8_Y.d.ts} +3 -3
- package/dist/lib/prepared-evidence.js +1 -1
- package/dist/lib/prepared-process.js +1 -1
- package/dist/{lines-BTIFNxRO.d.ts → lines-BoVYnUCM.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{local-cli-auth-Dxti_D10.js → local-cli-auth-BdufYsAM.js} +1 -1
- package/dist/{mcp-local-ClJ5TD-m.js → mcp-local-Gz1Uygqk.js} +1 -1
- package/dist/{preview-D6tTCcmv.d.ts → preview-BBzfwVTy.d.ts} +3 -3
- package/dist/{public-templates-sZe-0Qvi.d.ts → public-templates-B6_uwnRZ.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/{raw-evidence-archive-iDPF8eF_.js → raw-evidence-archive-D60Yg1-5.js} +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +4 -4
- package/dist/{sandbox-q_kipPb5.js → sandbox-BQhQSXF6.js} +23 -43
- package/dist/{secp256k1-CoRKQn1k.js → secp256k1-DxHlUI6v.js} +1 -1
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/session-gateway/index.d.ts +132 -508
- package/dist/session-gateway/index.js +694 -946
- package/dist/sidecar-proxy-error-B2Hxt41g.js +24 -0
- package/dist/sse-parser-CUfurwcm.js +227 -0
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-xXC6cahI.js → tangle-DUKeaoj9.js} +3 -3
- package/dist/{terminal-stream-types-yAt76vk7.d.ts → terminal-stream-types-DuzvL1ge.d.ts} +13 -9
- package/dist/{types-DUNlmyED.d.ts → types-CkLWX7i5.d.ts} +10 -11
- package/package.json +5 -5
- /package/dist/{chunked-upload-CbtLVV6-.js → chunked-upload-l6b9AWFA.js} +0 -0
- /package/dist/{cli-auth-bundle-Can3oLKY.d.ts → cli-auth-bundle-CeNOYFje.d.ts} +0 -0
- /package/dist/{collaboration-Ox7K-TN6.js → collaboration-BwLNv6sy.js} +0 -0
- /package/dist/{index-B8xo7y26.d.ts → index-C0RkLba5.d.ts} +0 -0
- /package/dist/{index-mz8_2rr2.d.ts → index-DaIF4c9p.d.ts} +0 -0
- /package/dist/{keep-alive-fetch-C92u8Kce.js → keep-alive-fetch-Bi-zvHpN.js} +0 -0
- /package/dist/{lines-DgRXUg5y.js → lines-D_HDAcVt.js} +0 -0
- /package/dist/{prepared-evidence-Di89Tatw.js → prepared-evidence-DUmJSegi.js} +0 -0
- /package/dist/{prepared-process-DKgEUodb.js → prepared-process-Dlk_9JVJ.js} +0 -0
- /package/dist/{preview-operations-BL7YCkes.js → preview-operations-eTUlPen5.js} +0 -0
- /package/dist/{response-rewrap-Bsj87BIq.js → response-rewrap-BKkJ5hnn.js} +0 -0
- /package/dist/{utils-C86i6t3C.js → utils-DB8DnUCU.js} +0 -0
package/dist/runtime.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as NetworkError, B as StateError, E as FileWriteConflictError, I as SandboxError, L as SandboxErrorJson, M as PartialFailureError, N as ProfileFileMountPathError, P as QuotaError, R as SandboxFailureDetail, S as CapabilityError, U as TimeoutError, W as ValidationError, b as AuthError, j as NotFoundError, u as ScopedToken, z as ServerError } from "./terminal-stream-types-
|
|
2
|
-
import { Bn as SandboxPortBinding, Br as FileTreeResult, Ct as SessionMessageAdmission, Dt as TaskSessionCommitResult, Er as ChunkedUploadResult, Et as TaskSessionChanges, Gn as SandboxTerminalCreateOptions, Hr as FileUsageResult, Ir as FileRenameResult, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Kn as SandboxTerminalInfo, Kr as RenameOptions, Mr as FileReadBatchOptions, Nr as FileReadBatchResult, Q as CommitTaskSessionOptions, St as SessionMessage, Tr as ChunkedUploadOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Vr as FileUsageOptions, Yr as WriteFileOptions, ct as ListMessagesOptions, dt as SendSessionMessageRequest, fa as SandboxEvent, ft as SentSessionMessage, gt as SessionExecutionStatus, ht as SessionExecutionInfo, it as CreateTaskSessionOptions, kt as TaskSessionInfo, mt as SessionEventStreamOptions, qn as SandboxTerminalManager, rr as TerminalStream, rt as CreateSessionOptions, ut as SendSessionMessageOptions, yt as SessionInfo, zr as FileTreeOptions } from "./types-
|
|
3
|
-
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-
|
|
4
|
-
import { t as BrowserInteractiveSessionController } from "./interactive-controller-
|
|
5
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
1
|
+
import { A as NetworkError, B as StateError, E as FileWriteConflictError, I as SandboxError, L as SandboxErrorJson, M as PartialFailureError, N as ProfileFileMountPathError, P as QuotaError, R as SandboxFailureDetail, S as CapabilityError, U as TimeoutError, W as ValidationError, b as AuthError, j as NotFoundError, u as ScopedToken, z as ServerError } from "./terminal-stream-types-DuzvL1ge.js";
|
|
2
|
+
import { Bn as SandboxPortBinding, Br as FileTreeResult, Ct as SessionMessageAdmission, Dt as TaskSessionCommitResult, Er as ChunkedUploadResult, Et as TaskSessionChanges, Gn as SandboxTerminalCreateOptions, Hr as FileUsageResult, Ir as FileRenameResult, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Kn as SandboxTerminalInfo, Kr as RenameOptions, Mr as FileReadBatchOptions, Nr as FileReadBatchResult, Q as CommitTaskSessionOptions, St as SessionMessage, Tr as ChunkedUploadOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Vr as FileUsageOptions, Yr as WriteFileOptions, ct as ListMessagesOptions, dt as SendSessionMessageRequest, fa as SandboxEvent, ft as SentSessionMessage, gt as SessionExecutionStatus, ht as SessionExecutionInfo, it as CreateTaskSessionOptions, kt as TaskSessionInfo, mt as SessionEventStreamOptions, qn as SandboxTerminalManager, rr as TerminalStream, rt as CreateSessionOptions, ut as SendSessionMessageOptions, yt as SessionInfo, zr as FileTreeOptions } from "./types-CkLWX7i5.js";
|
|
3
|
+
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-SI9hV6r5.js";
|
|
4
|
+
import { t as BrowserInteractiveSessionController } from "./interactive-controller-FgmcS8_Y.js";
|
|
5
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-B5CzWxw4.js";
|
|
6
6
|
|
|
7
7
|
//#region src/lib/chunked-upload.d.ts
|
|
8
8
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
package/dist/runtime.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-D5tWSSI1.js";
|
|
2
2
|
import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-Bs5G7JdV.js";
|
|
3
|
-
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-
|
|
4
|
-
import { t as fetchSandboxApi } from "./api-request-
|
|
5
|
-
import { s as uploadChunked } from "./chunked-upload-
|
|
3
|
+
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-CLHNi8rG.js";
|
|
4
|
+
import { t as fetchSandboxApi } from "./api-request-D1UVNo16.js";
|
|
5
|
+
import { s as uploadChunked } from "./chunked-upload-l6b9AWFA.js";
|
|
6
6
|
//#region src/runtime-client.ts
|
|
7
7
|
const DEFAULT_RUNTIME_TIMEOUT_MS = 3e4;
|
|
8
8
|
function requireToken(token) {
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { a as normalizeEffectiveBackend, r as backendTypeSchema } from "./backend-types-CLvdSX8V.js";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as requestedPublicProfileDigest, C as encodeTextForWire, E as assertCurrentBackendType, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodePromptForWire, T as applyRequestedModel, _ as mintTraceId, a as assertScopedTokenActive, b as resolveDispatchRunIdentity, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as sessionHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as waitForRetryAfter, n as InteractiveSessionController, p as isRetryableCredentialRefusal, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as validateAcceptedDispatchRunRef, y as traceHeaders } from "./interactive-controller-D5tWSSI1.js";
|
|
3
3
|
import { A as SANDBOX_PROXY_REQUEST_MAX_BYTES, C as StateError, E as ValidationError, F as isProfileFileMountOutsideRoots, I as profileFileMountOutsideRootsMessage, M as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, N as SANDBOX_AGENT_HOME, P as SANDBOX_FILE_API_ABSOLUTE_ROOTS, S as ServerError, T as TimeoutError, a as AuthError, g as NotFoundError, h as NetworkError, i as readResponseJson, l as EdgeNotReadyError, 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-Bs5G7JdV.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
4
|
+
import { d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema } from "./browser-interactive-control-controller-CLHNi8rG.js";
|
|
5
|
+
import { n as combineAbortSignals, r as delayUntilAborted, t as awaitWithAbort } from "./abort-signal-BKVZNJul.js";
|
|
6
|
+
import { t as rewrapResponse } from "./response-rewrap-BKkJ5hnn.js";
|
|
7
|
+
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-Bi-zvHpN.js";
|
|
8
|
+
import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-B2Hxt41g.js";
|
|
9
|
+
import { t as parseSSEStream } from "./sse-parser-CUfurwcm.js";
|
|
10
|
+
import { s as uploadChunked } from "./chunked-upload-l6b9AWFA.js";
|
|
11
|
+
import { t as runPreparedProcess } from "./prepared-process-Dlk_9JVJ.js";
|
|
12
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-Bq-5b0FT.js";
|
|
13
|
+
import { n as SandboxLines } from "./lines-D_HDAcVt.js";
|
|
11
14
|
import { z } from "zod";
|
|
12
15
|
import { AgentExactRunControlRefSchema, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentRunCancellationAcknowledgementSchema, AgentRunCancellationRequestSchema, InteractionAcknowledgementSchema, InteractionBindingSchema, InteractionRequestSchema, InteractionResponseCommandSchema, InteractionResponseSchema, PlanContinuationSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionStatusMatchesRef, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentProfileSchema, agentRunCancellationAcknowledgementMatchesRequest, canonicalCandidateDigest, canonicalCandidateJson, exactAgentInteractiveSessionStart, sha256DigestSchema, terminalSessionUsable } from "@tangle-network/agent-interface";
|
|
13
16
|
import { AgentInteractiveSessionControlClaimSchema as AgentInteractiveSessionControlClaimSchema$1, AgentInteractiveSessionPromptAcknowledgementSchema as AgentInteractiveSessionPromptAcknowledgementSchema$1, AgentInteractiveSessionRefSchema as AgentInteractiveSessionRefSchema$1, AgentInteractiveSessionStatusSchema, AgentInteractiveSessionStopAcknowledgementSchema as AgentInteractiveSessionStopAcknowledgementSchema$1 } from "@tangle-network/agent-interface/environment-interactive-control";
|
|
@@ -1114,29 +1117,6 @@ function classifySidecarRequest(input, method, upgrade = false) {
|
|
|
1114
1117
|
};
|
|
1115
1118
|
}
|
|
1116
1119
|
//#endregion
|
|
1117
|
-
//#region ../../../packages/runtime-contracts/dist/sidecar-proxy-error.js
|
|
1118
|
-
/**
|
|
1119
|
-
* Response header that the host-agent sidecar proxy puts on each error it
|
|
1120
|
-
* writes itself. The value is the host-agent error code, for example
|
|
1121
|
-
* `NOT_MANAGED` or `ROUTE_LOOKUP_FAILED`.
|
|
1122
|
-
*
|
|
1123
|
-
* The orchestrator reaches a sidecar only through the host-agent sidecar
|
|
1124
|
-
* proxy. Thus two services write errors on that path. They use the same
|
|
1125
|
-
* statuses (404, 502, 503, 504) and the same `{error, code}` JSON body. This
|
|
1126
|
-
* header names the author of the response. If the header is present, the
|
|
1127
|
-
* host-agent wrote the response. If the header is absent, the sidecar wrote
|
|
1128
|
-
* the response.
|
|
1129
|
-
*
|
|
1130
|
-
* The orchestrator invalidates the endpoint and sends the request again only
|
|
1131
|
-
* for a host-agent error. A sidecar error is an ordinary answer, and a new
|
|
1132
|
-
* endpoint cannot change it.
|
|
1133
|
-
*
|
|
1134
|
-
* The host-agent deletes this header from an upstream response before it
|
|
1135
|
-
* returns that response. A sidecar must not be able to set the header. A
|
|
1136
|
-
* tenant preview app on an in-container port must not be able to set it.
|
|
1137
|
-
*/
|
|
1138
|
-
const SIDECAR_PROXY_ERROR_HEADER = "X-Tangle-Sidecar-Proxy-Error";
|
|
1139
|
-
//#endregion
|
|
1140
1120
|
//#region src/runtime-route-policy.ts
|
|
1141
1121
|
/**
|
|
1142
1122
|
* Where the default sandbox handle sends a runtime call, and whether a call
|
|
@@ -1455,7 +1435,7 @@ var DirectRuntimeHttpClient = class {
|
|
|
1455
1435
|
};
|
|
1456
1436
|
if (!route) throw new NetworkError("Direct runtime route was withdrawn");
|
|
1457
1437
|
if ((route.useHost || route.useExec) && canUseNodeHttp2()) {
|
|
1458
|
-
const { fetchDirectHttp2 } = await import("./direct-http2
|
|
1438
|
+
const { fetchDirectHttp2 } = await import("./direct-http2-Pyj3Rvr1.js");
|
|
1459
1439
|
return fetchDirectHttp2(route.url, request, timing);
|
|
1460
1440
|
}
|
|
1461
1441
|
return fetchWithKeepAlive(route.url, request, timing);
|
|
@@ -6380,14 +6360,14 @@ var SandboxSessionAdmissionCapabilities = class extends SandboxProfileCapabiliti
|
|
|
6380
6360
|
/**
|
|
6381
6361
|
* List messages for a session, including in-flight assistant content
|
|
6382
6362
|
* the agent is still streaming. Each entry's `metadata` carries the
|
|
6383
|
-
*
|
|
6384
|
-
* `completed/interrupted` booleans
|
|
6385
|
-
*
|
|
6363
|
+
* turn state — `status: "streaming" | "completed" | "interrupted"` and
|
|
6364
|
+
* the `completed/interrupted` booleans. See `SessionMessage` for the
|
|
6365
|
+
* full contract.
|
|
6386
6366
|
*
|
|
6387
6367
|
* Polling this is the right way to detect "did the sidecar die mid-
|
|
6388
|
-
* turn?" — a SIGKILL
|
|
6389
|
-
*
|
|
6390
|
-
*
|
|
6368
|
+
* turn?" — after a SIGKILL the restarted sidecar reports the turn
|
|
6369
|
+
* `interrupted` with `interruptReason: "runtime_restart"`, keeping the
|
|
6370
|
+
* parts it streamed.
|
|
6391
6371
|
*/
|
|
6392
6372
|
async messages(opts) {
|
|
6393
6373
|
const { sessionId, ...options } = opts;
|
|
@@ -7219,8 +7199,8 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
|
|
|
7219
7199
|
/**
|
|
7220
7200
|
* Mint a scoped, time-bounded JWT for browser access (Issue #913 Gap 1).
|
|
7221
7201
|
* Authority is the caller's `TANGLE_API_KEY` (sk-tan-*); signing secrets
|
|
7222
|
-
* stay server-side.
|
|
7223
|
-
*
|
|
7202
|
+
* stay server-side. Native session streams use read-only session-runtime;
|
|
7203
|
+
* session/project retain legacy gateway semantics.
|
|
7224
7204
|
*/
|
|
7225
7205
|
async mintScopedToken(opts) {
|
|
7226
7206
|
return requestScopedToken(state(this).client, this.id, opts);
|
|
@@ -7450,7 +7430,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
|
|
|
7450
7430
|
var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabilities {
|
|
7451
7431
|
/** @internal — invoked before the sandbox is deleted. */
|
|
7452
7432
|
async _sessionExportRawEvidence(id, destination, options) {
|
|
7453
|
-
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-
|
|
7433
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-D60Yg1-5.js");
|
|
7454
7434
|
await this.ensureRunning();
|
|
7455
7435
|
await this.refresh();
|
|
7456
7436
|
return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/raw-evidence/archive?${new URLSearchParams([
|
|
@@ -7481,7 +7461,7 @@ var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabil
|
|
|
7481
7461
|
* and the byte and file bounds are verified before the directory appears.
|
|
7482
7462
|
*/
|
|
7483
7463
|
async exportRawEvidence(destination, options) {
|
|
7484
|
-
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-
|
|
7464
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-D60Yg1-5.js");
|
|
7485
7465
|
await this.ensureRunning();
|
|
7486
7466
|
await this.refresh();
|
|
7487
7467
|
return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/raw-evidence/archive?${new URLSearchParams({
|
|
@@ -9794,7 +9774,7 @@ var SandboxFilesystemOperations = class {
|
|
|
9794
9774
|
totalBytes: size,
|
|
9795
9775
|
percentage: 0
|
|
9796
9776
|
});
|
|
9797
|
-
const { uploadChunkedFromFile } = await import("./chunked-upload-file-
|
|
9777
|
+
const { uploadChunkedFromFile } = await import("./chunked-upload-file-CLwAeLrM.js");
|
|
9798
9778
|
await uploadChunkedFromFile({ fetch: (path, init) => this.host.runtimeFetch(path, init) }, remotePath, localPath, {
|
|
9799
9779
|
mode: options?.permissions,
|
|
9800
9780
|
onProgress: options?.onProgress ? (progress) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as anumber, c as concatBytes$1, f as randomBytes, h as toBytes, i as ahash, l as createHasher$1, n as abytes$1, o as aoutput, p as rotr, r as aexists, s as clean, t as Hash, u as createView, x as split } from "./utils-
|
|
1
|
+
import { a as anumber, c as concatBytes$1, f as randomBytes, h as toBytes, i as ahash, l as createHasher$1, n as abytes$1, o as aoutput, p as rotr, r as aexists, s as clean, t as Hash, u as createView, x as split } from "./utils-DB8DnUCU.js";
|
|
2
2
|
//#region ../../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_md.js
|
|
3
3
|
/**
|
|
4
4
|
* Internal Merkle-Damgard hash utils.
|