@tangle-network/sandbox 1.0.311 → 1.0.313
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 +3 -3
- package/dist/agent/index.js +4 -4
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +1 -1
- package/dist/{api-request-CYcdLXBX.js → api-request-ZCIlsSDI.js} +1 -1
- package/dist/{browser-interactive-control-controller-DwQcrSt1.js → browser-interactive-control-controller-C2tNFL_f.js} +1 -1
- package/dist/{client-DXlwl7-h.d.ts → client-C_e3dHcZ.d.ts} +1 -1
- package/dist/{client-1gjTeC2Z.js → client-CeS134HP.js} +3 -3
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-DCIMDF2l.js → collaboration-DGgH7tAW.js} +1 -1
- package/dist/core.d.ts +2 -2
- package/dist/core.js +2 -2
- package/dist/gpu-lease/index.js +1 -1
- package/dist/{index-DGro_koc.d.ts → index-CtOabBjl.d.ts} +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/intelligence/index.js +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-BDqjt_-a.js → interactive-controller-CYQnjXGG.js} +2 -2
- package/dist/{mcp-local-C8pBjliZ.js → mcp-local-CRUuEJ4C.js} +2 -2
- package/dist/{preview-B5s4w0i4.d.ts → preview-DCBYG9r_.d.ts} +2 -2
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-DahTxLZ9.js → sandbox-BUMjAOwQ.js} +36 -101
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/session-gateway/index.js +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-CisRal-m.js → tangle-Ne0cgwBK.js} +2 -2
- package/package.json +5 -5
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-
|
|
1
|
+
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-CtOabBjl.js";
|
|
2
2
|
import { Ba as CodeExecutionResult, Ha as CodeResultPart, Qi as SessionInfo, Va as CodeLanguage, _t as SandboxFleetParent, ea as SessionListOptions, eo as BackendType, fa as BackendConfig, pr as CodeExecutionOptions } from "../types-CJP4O3xL.js";
|
|
3
|
-
import { t as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
3
|
+
import { t as Sandbox } from "../client-C_e3dHcZ.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-DCBYG9r_.js";
|
|
5
5
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
6
6
|
import { JSONSchema } from "zod/v4/core";
|
|
7
7
|
import { ToolSet } from "ai";
|
package/dist/agent/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-
|
|
2
|
-
import { D as assertCurrentBackendType } from "../interactive-controller-
|
|
3
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
1
|
+
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-CRUuEJ4C.js";
|
|
2
|
+
import { D as assertCurrentBackendType } from "../interactive-controller-CYQnjXGG.js";
|
|
3
|
+
import { t as SandboxInstance } from "../sandbox-BUMjAOwQ.js";
|
|
4
4
|
import { O as ValidationError, T as StateError, v as NotFoundError } from "../errors-D44qyFpy.js";
|
|
5
|
-
import { t as Sandbox } from "../client-
|
|
5
|
+
import { t as Sandbox } from "../client-CeS134HP.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/agent/instances.ts
|
|
8
8
|
const managers = /* @__PURE__ */ new WeakMap();
|
package/dist/agent/preview.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-
|
|
1
|
+
import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-DCBYG9r_.js";
|
|
2
2
|
export { AgentPreviewError, AgentPreviewOptions, PREVIEW_MCP_ALIAS, PREVIEW_TOOLS, PreviewAuthorizationRequest, PreviewAuthorizer, PreviewExecutionContext, PreviewTool, PublishAgentPreviewOptions, assertPreviewId, ensureAgentPreview, getAgentPreview, listAgentPreviews, previewOperationTool, previewToolsForProfile, publishAgentPreview, removeAgentPreview, resolveSelfSandbox, servePreviewMcp };
|
package/dist/agent/preview.js
CHANGED
|
@@ -66,7 +66,7 @@ async function servePreviewMcp(request, config) {
|
|
|
66
66
|
if (typeof config.authorize !== "function") throw new Error("Preview MCP requires a host authorization callback");
|
|
67
67
|
const tools = config.tools ?? PREVIEW_TOOLS;
|
|
68
68
|
if (!tools.length || tools.some((tool) => !PREVIEW_TOOLS.includes(tool))) throw new Error("Preview MCP requires an explicit nonempty preview-only tool grant");
|
|
69
|
-
const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-
|
|
69
|
+
const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-CRUuEJ4C.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
|
|
70
70
|
const handle = await createMcpServer(config.box, {
|
|
71
71
|
name: "tangle-previews",
|
|
72
72
|
sessionId: config.sessionId,
|
|
@@ -30,7 +30,7 @@ function rewrapResponse(original, headers, body = original.body) {
|
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region src/lib/api-request.mjs
|
|
32
32
|
/** The package version tsdown.config.ts defines; unbuilt source reports 0.0.0. */
|
|
33
|
-
const SDK_VERSION = "1.0.
|
|
33
|
+
const SDK_VERSION = "1.0.313";
|
|
34
34
|
function withRequestContextHeaders(response, path, method, body = response.body) {
|
|
35
35
|
const headers = new Headers(response.headers);
|
|
36
36
|
headers.set("x-tangle-request-path", path);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as boundedIdentifierSchema, D as isBoundedEventContentJson, E as boundedStringSchema, S as boundedEventContentStringSchema, T as boundedJsonSchema, _ as CONTRACT_MAX_ARRAY_LENGTH, b as boundedEventContentJsonSchema, g as sha256DigestSchema, o as canonicalCandidateDigest, w as boundedJsonRecordSchema, x as boundedEventContentRecordSchema, y as CONTRACT_MAX_STRING_LENGTH } from "./harness-DW2I_kp7.js";
|
|
2
2
|
import { t as agentExecutionPreparationReceiptSchema } from "./agent-execution-preparation-receipt-BFGr2nAM.js";
|
|
3
3
|
import { t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
|
|
4
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
4
|
+
import { i as fetchSandboxApi } from "./api-request-ZCIlsSDI.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.21/node_modules/@tangle-network/agent-interface/dist/native-session-event.js
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink, yt as SandboxOperation } from "./index-
|
|
1
|
+
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink, yt as SandboxOperation } from "./index-CtOabBjl.js";
|
|
2
2
|
import { R as SandboxError, X as BatchCustody, Z as BatchResult, c as MintInteractiveSessionTokenOptions, it as BatchEvent, nt as PublicBatchRunRequestInput, tt as PublicBatchRunRequest, u as ScopedToken } from "./terminal-stream-types-BMGTVpuf.js";
|
|
3
3
|
import { A as AgentProfileMcpServer, D as AgentProfileConfidential, F as HarnessType, M as AgentProfileSeat, O as AgentProfileConfigValue, T as AgentProfile, j as AgentProfileMetadata, k as AgentProfileFileMount, n as SandboxSizePreset, u as AgentInteractiveSessionRef, x as AgentRuntimeAttachments } from "./index-Dxxq7J79.js";
|
|
4
4
|
import { $ as SandboxFleetAgent, A as CreateSandboxFleetOptions, Aa as GpuLeaseProviderName, Ai as TurnBackendConfig, At as SandboxFleetWorkspaceRestoreResult, B as FleetDispatchStreamOptions, Ci as SandboxEvent, Cn as DownloadResult, Ct as SandboxFleetTraceBundle, D as FleetDriveTurnRequest, Dt as SandboxFleetUsage, E as FleetDriveTurnOutcome, Et as SandboxFleetTraceOptions, F as FleetAgentResult, Fi as ConversationTurnResult, G as FleetPromptDispatchResult, H as FleetExecDispatchResult, Ir as SandboxDeleteAcknowledgement, It as SandboxInfo, J as ListSandboxFleetOptions, K as FleetRunEvent, L as FleetDispatchCancelResult, Lr as SandboxDeleteOptions, M as CreateSandboxFleetWithCoordinatorOptions, Mr as DeleteMatchingSandboxesFilter, Mt as ListSandboxOptions, N as FleetAgentId, Nr as DeleteMatchingSandboxesOptions, O as TokenRefreshHandler, Pi as ConversationTurnOptions, Pr as DeleteMatchingSandboxesResult, Q as ReconcileSandboxFleetsResult, Qn as SandboxEnvironment, R as FleetDispatchResultBuffer, Si as PromptResult, St as SandboxFleetToken, U as FleetMachineId, Ua as ExecResult, V as FleetExecDispatchOptions, W as FleetPromptDispatchOptions, X as ReapExpiredSandboxFleetsResult, Xt as TeeAttestationReport, Y as ReapExpiredSandboxFleetsOptions, Z as ReconcileSandboxFleetsOptions, Zt as TeeAttestationResponse, _i as IntelligenceReportCompareTo, _t as SandboxFleetParent, an as SandboxShapesInfo, at as SandboxFleetDispatchResponse, ba as SecretBindingOptions, bi as PromptInputPart, br as HttpClient, c as SubscriptionInfo, ci as CreateIntelligenceReportOptions, cn as SandboxShapePreset, ct as SandboxFleetInfo, fa as BackendConfig, ft as SandboxFleetMachineRecord, gi as IntelligenceReportBudget, gr as ManagedProcessResumeOptions, gt as SandboxFleetOperationsSummary, hi as IntelligenceReport, hr as ManagedProcessOptions, in as SandboxResources, j as CreateSandboxFleetTokenOptions, jt as SandboxFleetWorkspaceSnapshotResult, k as AttachSandboxFleetMachineOptions, kt as SandboxFleetWorkspaceReconcileResult, l as UsageInfo, mr as ManagedProcessJobs, mt as SandboxFleetManifest, n as SshKeysManager, nn as CreateSandboxOptions, nt as SandboxFleetArtifactSpec, ot as SandboxFleetDriverCapability, pt as SandboxFleetMachineSpec, q as FleetRunOptions, qn as ExecOptions, ri as BatchRunOptions, rn as SandboxConfig, rt as SandboxFleetCostEstimate, s as SandboxIdentity, t as SecretsManager, tn as CreateRequestOptions, tt as SandboxFleetArtifact, ut as SandboxFleetMachine, vr as ManagedProcessRecord, xi as PromptOptions, xn as DownloadOptions, xr as SdkTimingHook, xt as SandboxFleetSpend, yi as IntelligenceReportWindow, yr as ManagedProcessSpec, yt as SandboxFleetPolicy, z as FleetDispatchResultBufferOptions, zt as SandboxRunGeneration } from "./types-CJP4O3xL.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as assertCurrentBackendType, E as applyRequestedModel, M as withProfileHarness, N as withoutCreateOnlyModelFields, T as isBrowserRuntime, V as backendTypeSchema, k as normalizeRuntimeBackendConfig, o as requestInteractiveSessionToken, x as encodePromptForWire } from "./interactive-controller-
|
|
1
|
+
import { D as assertCurrentBackendType, E as applyRequestedModel, M as withProfileHarness, N as withoutCreateOnlyModelFields, T as isBrowserRuntime, V as backendTypeSchema, k as normalizeRuntimeBackendConfig, o as requestInteractiveSessionToken, x as encodePromptForWire } from "./interactive-controller-CYQnjXGG.js";
|
|
2
2
|
import { r as agentProfileSchema } from "./profile-schema-C_MbI9mE.js";
|
|
3
|
-
import { $ as isRateLimitCreateError, B as normalizeConnection, E as validateDeferredProfileFileMounts, F as normalizeSandboxCreateReceipt, G as CAPACITY_ETA_WAIT_MAX_MS, H as normalizeProxySecretReceipt, I as normalizeStartupDiagnostics, J as createRetryDelayMs, K as DEPLOY_WINDOW_RETRY_MS, P as normalizeCaptureProof, Q as isDeployWindowCreateError, R as dateOf, T as splitInlineProfileSkills, U as normalizeSandboxShape, V as normalizeEgressPolicyFields, W as CAPACITY_ETA_MARGIN_MS, X as generateIdempotencyKey, Y as extendableDeadline, Z as isCapacityShortageCreateError, d as sandboxLedgerUsd, et as isRetryableCreateError, n as createSandboxInstanceFromResponse, o as exportTraceBundle, q as awaitCreateResend, w as splitInlineProfileFileMounts, x as deleteSandbox, z as parseLifecycleTimes } from "./sandbox-
|
|
3
|
+
import { $ as isRateLimitCreateError, B as normalizeConnection, E as validateDeferredProfileFileMounts, F as normalizeSandboxCreateReceipt, G as CAPACITY_ETA_WAIT_MAX_MS, H as normalizeProxySecretReceipt, I as normalizeStartupDiagnostics, J as createRetryDelayMs, K as DEPLOY_WINDOW_RETRY_MS, P as normalizeCaptureProof, Q as isDeployWindowCreateError, R as dateOf, T as splitInlineProfileSkills, U as normalizeSandboxShape, V as normalizeEgressPolicyFields, W as CAPACITY_ETA_MARGIN_MS, X as generateIdempotencyKey, Y as extendableDeadline, Z as isCapacityShortageCreateError, d as sandboxLedgerUsd, et as isRetryableCreateError, n as createSandboxInstanceFromResponse, o as exportTraceBundle, q as awaitCreateResend, w as splitInlineProfileFileMounts, x as deleteSandbox, z as parseLifecycleTimes } from "./sandbox-BUMjAOwQ.js";
|
|
4
4
|
import { C as SandboxError, D as TimeoutError, O as ValidationError, _ as NetworkError, a as readResponseJson, c as AuthError, i as parseResponseError, r as parseErrorResponse, v as NotFoundError, w as ServerError, y as PartialFailureError } from "./errors-D44qyFpy.js";
|
|
5
5
|
import { n as combineAbortSignals } from "./abort-signal-BsriwJ8L.js";
|
|
6
6
|
import { r as abortableSleep, t as RETRY_POLICY } from "./retry-policy-oW3_ljoc.js";
|
|
7
|
-
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-
|
|
7
|
+
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-ZCIlsSDI.js";
|
|
8
8
|
import { l as SANDBOX_AGENT_HOME, t as isInsideReservedDir } from "./file-transfer-DOSTbUSR.js";
|
|
9
9
|
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-sGVP8skk.js";
|
|
10
10
|
import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-
|
|
1
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-DGgH7tAW.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse } from "./errors-D44qyFpy.js";
|
|
2
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
2
|
+
import { i as fetchSandboxApi } from "./api-request-ZCIlsSDI.js";
|
|
3
3
|
//#region src/collaboration/client.ts
|
|
4
4
|
function normalizeBaseUrl(url) {
|
|
5
5
|
return url.replace(/\/+$/, "");
|
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-
|
|
1
|
+
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-CtOabBjl.js";
|
|
2
2
|
import { F as ProfileFileMountPathError, H as ServerError, I as QuotaError, K as TimeoutError, M as NetworkError, N as NotFoundError, O as FileWriteConflictError, P as PartialFailureError, R as SandboxError, S as AuthError, U as StateError, V as SandboxFailureDetail, b as parseErrorResponse, q as ValidationError, w as CapabilityError, x as responseMetadata, z as SandboxErrorJson } from "./terminal-stream-types-BMGTVpuf.js";
|
|
3
3
|
import { Fa as WorkspaceImagePublishResult, Fi as ConversationTurnResult, Ga as SandboxEnvRecovery, It as SandboxInfo, Ka as SandboxEnvRecoveryView, Pa as WorkspaceImagePublishInput, Pi as ConversationTurnOptions, Ua as ExecResult, _r as ManagedProcessState, b as PreviewLinkManager, bi as PromptInputPart, gr as ManagedProcessResumeOptions, hr as ManagedProcessOptions, mr as ManagedProcessJobs, na as SessionMessageAdmission, nn as CreateSandboxOptions, on as SandboxStatus, qn as ExecOptions, rn as SandboxConfig, un as NetworkConfig, vr as ManagedProcessRecord, x as PreviewLinkWaitOptions, y as PreviewLinkInfo, yr as ManagedProcessSpec } from "./types-CJP4O3xL.js";
|
|
4
4
|
import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-BniGLMGB.js";
|
|
5
|
-
import { At as InstancesClient, Ct as ManagedProcessClient, Dt as InstanceRecord, Et as InstanceProfile, Mt as sandboxFailureKind, Ot as InstanceRestartingError, St as gatewaySeatTransport, Tt as HostedInstance, _t as SeatOwnerTransport, an as BackendRegistryCapabilities, bt as SeatSelectionRequest, cn as BackendRegistryResponse, dn as backendRegistryInteractionKindSchema, dt as GatewaySeatTransportOptions, fn as backendRegistryResponseSchema, gt as SeatOwnerReply, hn as parseBackendRegistryResponseBody, ht as SandboxSeatSelectionInput, jt as SandboxFailureKind, ln as backendRegistryCapabilitiesSchema, lt as ISOLATED_CREATION_ATTESTATION_VERSION, mn as parseBackendRegistryResponse, mt as SandboxSeatCredentials, on as BackendRegistryEntry, pn as isBackendRegistryInteractionKind, pt as SandboxResolvedSeat, sn as BackendRegistryInteractionKind, t as Sandbox, un as backendRegistryEntrySchema, ut as CreateSelectSeatOptions, vt as SeatResolutionObservation, wt as EnsureInstanceOptions, xt as createSelectSeat, yt as SeatSelectionError } from "./client-
|
|
5
|
+
import { At as InstancesClient, Ct as ManagedProcessClient, Dt as InstanceRecord, Et as InstanceProfile, Mt as sandboxFailureKind, Ot as InstanceRestartingError, St as gatewaySeatTransport, Tt as HostedInstance, _t as SeatOwnerTransport, an as BackendRegistryCapabilities, bt as SeatSelectionRequest, cn as BackendRegistryResponse, dn as backendRegistryInteractionKindSchema, dt as GatewaySeatTransportOptions, fn as backendRegistryResponseSchema, gt as SeatOwnerReply, hn as parseBackendRegistryResponseBody, ht as SandboxSeatSelectionInput, jt as SandboxFailureKind, ln as backendRegistryCapabilitiesSchema, lt as ISOLATED_CREATION_ATTESTATION_VERSION, mn as parseBackendRegistryResponse, mt as SandboxSeatCredentials, on as BackendRegistryEntry, pn as isBackendRegistryInteractionKind, pt as SandboxResolvedSeat, sn as BackendRegistryInteractionKind, t as Sandbox, un as backendRegistryEntrySchema, ut as CreateSelectSeatOptions, vt as SeatResolutionObservation, wt as EnsureInstanceOptions, xt as createSelectSeat, yt as SeatSelectionError } from "./client-C_e3dHcZ.js";
|
|
6
6
|
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-C0qrfRXs.js";
|
|
7
7
|
export { AuthError, BackendRegistryCapabilities, BackendRegistryEntry, BackendRegistryInteractionKind, BackendRegistryResponse, CapabilityError, ConversationTurnOptions, ConversationTurnResult, CreateSandboxOptions, CreateSelectSeatOptions, EnsureInstanceOptions, ExecOptions, ExecResult, FileWriteConflictError, GatewaySeatTransportOptions, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceProfile, InstanceRecord, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, Line, LineAgentRolePolicy, LineApplication, LineApplicationAttachOptions, LineApplicationRequest, LineApplicationResult, LineApplicationState, LineApplicationView, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineMember, LineMemberInstance, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LinesClient, ManagedProcessClient, ManagedProcessJobs, ManagedProcessOptions, ManagedProcessRecord, ManagedProcessResumeOptions, ManagedProcessSpec, ManagedProcessState, NetworkConfig, NetworkError, NotFoundError, PartialFailureError, PreviewLinkInfo, PreviewLinkManager, PreviewLinkWaitOptions, ProfileFileDeliveryReport, ProfileFileMountPathError, PromptInputPart, PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient, QuotaError, Sandbox, SandboxConfig, SandboxEnvRecovery, SandboxEnvRecoveryView, SandboxError, SandboxErrorJson, SandboxFailureDetail, SandboxFailureKind, SandboxInfo, SandboxInstance, SandboxResolvedSeat, SandboxSeatCredentials, SandboxSeatSelectionInput, SandboxStatus, SeatOwnerReply, SeatOwnerTransport, SeatResolutionObservation, SeatSelectionError, SeatSelectionRequest, ServerError, SessionMessageAdmission, StateError, TimeoutError, ValidationError, WorkspaceImagePublishInput, WorkspaceImagePublishRequestOptions, WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, responseMetadata, sandboxFailureKind };
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
1
|
+
import { S as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-BUMjAOwQ.js";
|
|
2
2
|
import { C as SandboxError, D as TimeoutError, O as ValidationError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, m as FileWriteConflictError, o as responseMetadata, r as parseErrorResponse, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-D44qyFpy.js";
|
|
3
|
-
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-
|
|
3
|
+
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-CeS134HP.js";
|
|
4
4
|
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-DwJ7AKx7.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
6
|
import { a as parseLineApplicationResult, i as parseLineApplicationRequest, n as LINE_APPLICATION_REPLY_MAX_CHARS, o as sandboxFailureKind, r as LINE_APPLICATION_REQUEST_MAX_BYTES, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-CBWUEURz.js";
|
package/dist/gpu-lease/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as fetchSandboxApi } from "../api-request-
|
|
1
|
+
import { i as fetchSandboxApi } from "../api-request-ZCIlsSDI.js";
|
|
2
2
|
import { t as ITangleJobsAbi } from "../abi-pcDt2Adp.js";
|
|
3
3
|
import { createPublicClient, createWalletClient, decodeAbiParameters, encodeAbiParameters, encodeFunctionData, hexToBytes, http, keccak256, parseAbi, parseAbiParameters, parseEventLogs, recoverMessageAddress, stringToHex } from "viem";
|
|
4
4
|
import { privateKeyToAccount } from "viem/accounts";
|
|
@@ -1632,8 +1632,8 @@ declare abstract class SandboxSessionCapabilities extends SandboxSessionEvidence
|
|
|
1632
1632
|
* `running` or `queued` with a `latestExecutionId` (one run per session).
|
|
1633
1633
|
* A never-run `queued` session and a terminal one (a new turn) dispatch.
|
|
1634
1634
|
* Retry safety needs `turnId`; read `dispatched`, not `alreadyExisted`.
|
|
1635
|
-
*
|
|
1636
|
-
* the reads run only after its refusal
|
|
1635
|
+
* Once its sidecar announced `dispatchGuard`, a box answers both checks in
|
|
1636
|
+
* the POST, the reads run only after its refusal and `alreadyExisted` is unread.
|
|
1637
1637
|
*/
|
|
1638
1638
|
dispatchPrompt(message: string | PromptInputPart[], opts?: DispatchPromptOptions): Promise<DispatchedSession>;
|
|
1639
1639
|
private dispatchOnce;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as SandboxInteractionResult, A as TraceExportResult, B as WorkspaceImages, Ct as CONTROL_PLANE_MCP_SERVER_NAME, D as ForkAcknowledgement, Dt as SandboxMcpServerEntry, Et as SandboxMcpEndpoint, F as toOtelJson, G as SplitInlineProfileFileMountsResult, H as MaterializeProfileFileMountsOptions, I as SandboxTaskSession, J as splitInlineProfileSkills, K as SplitInlineProfileSkillsResult, L as RawEvidenceExport, M as buildTraceExportPayload, N as exportTraceBundle, O as SandboxInstance, Ot as buildControlPlaneMcpConfig, P as otelTraceIdForTangleTrace, Q as SandboxInteractionResolution, R as SandboxSession, St as BuildSandboxMcpConfigOptions, Tt as SandboxMcpConfig, U as MaterializeProfileFileMountsResult, V as ProfileFileDeliveryReport, X as SandboxInteractionCommandResult, Y as validateDeferredProfileFileMounts, Z as SandboxInteractionConflict, _t as createInteractiveTerminalCapture, at as InteractiveSessionHost, bt as SandboxOperationFailedError, ct as InteractiveSessionRef, dt as InteractiveStopCommand, et as InteractiveControlClaimRequest, ft as InterruptResult, g as BlueprintSandboxClientConfig, gt as InteractiveTerminalMetadata, h as BlueprintSandboxClient, ht as InteractiveTerminalFrameLog, it as InteractiveSessionHandleOptions, j as TraceExportSink, k as TraceExportFormat, kt as buildSandboxMcpConfig, lt as InteractiveSessionStartOptions, mt as InteractiveTerminalCapture, nt as InteractiveSessionControlClaim, ot as InteractiveSessionIncarnationId, pt as RespondToPermissionOptions, q as splitInlineProfileFileMounts, rt as InteractiveSessionHandle, st as InteractiveSessionInfo, tt as InteractivePromptCommand, ut as InteractiveSessionStartResult, vt as createInteractiveTerminalSession, wt as SANDBOX_MCP_SERVER_NAME, xt as BuildControlPlaneMcpConfigOptions, yt as SandboxOperation, z as WorkspaceImagePublishRequestOptions } from "./index-
|
|
1
|
+
import { $ as SandboxInteractionResult, A as TraceExportResult, B as WorkspaceImages, Ct as CONTROL_PLANE_MCP_SERVER_NAME, D as ForkAcknowledgement, Dt as SandboxMcpServerEntry, Et as SandboxMcpEndpoint, F as toOtelJson, G as SplitInlineProfileFileMountsResult, H as MaterializeProfileFileMountsOptions, I as SandboxTaskSession, J as splitInlineProfileSkills, K as SplitInlineProfileSkillsResult, L as RawEvidenceExport, M as buildTraceExportPayload, N as exportTraceBundle, O as SandboxInstance, Ot as buildControlPlaneMcpConfig, P as otelTraceIdForTangleTrace, Q as SandboxInteractionResolution, R as SandboxSession, St as BuildSandboxMcpConfigOptions, Tt as SandboxMcpConfig, U as MaterializeProfileFileMountsResult, V as ProfileFileDeliveryReport, X as SandboxInteractionCommandResult, Y as validateDeferredProfileFileMounts, Z as SandboxInteractionConflict, _t as createInteractiveTerminalCapture, at as InteractiveSessionHost, bt as SandboxOperationFailedError, ct as InteractiveSessionRef, dt as InteractiveStopCommand, et as InteractiveControlClaimRequest, ft as InterruptResult, g as BlueprintSandboxClientConfig, gt as InteractiveTerminalMetadata, h as BlueprintSandboxClient, ht as InteractiveTerminalFrameLog, it as InteractiveSessionHandleOptions, j as TraceExportSink, k as TraceExportFormat, kt as buildSandboxMcpConfig, lt as InteractiveSessionStartOptions, mt as InteractiveTerminalCapture, nt as InteractiveSessionControlClaim, ot as InteractiveSessionIncarnationId, pt as RespondToPermissionOptions, q as splitInlineProfileFileMounts, rt as InteractiveSessionHandle, st as InteractiveSessionInfo, tt as InteractivePromptCommand, ut as InteractiveSessionStartResult, vt as createInteractiveTerminalSession, wt as SANDBOX_MCP_SERVER_NAME, xt as BuildControlPlaneMcpConfigOptions, yt as SandboxOperation, z as WorkspaceImagePublishRequestOptions } from "./index-CtOabBjl.js";
|
|
2
2
|
import { A as GpuProviderRequirement, C as BranchFanoutExceedsHostError, D as EgressProxyRecoveryError, E as EdgeNotReadyError, F as ProfileFileMountPathError, G as StreamInterruptionReason, H as ServerError, I as QuotaError, J as SandboxCreateOutcome, K as TimeoutError, L as ResumeEnvRequiredError, M as NetworkError, N as NotFoundError, O as FileWriteConflictError, P as PartialFailureError, Q as BatchTaskResult, R as SandboxError, S as AuthError, T as CompliancePlacementError, U as StateError, V as SandboxFailureDetail, W as StreamInterruptedError, X as BatchCustody, Y as SandboxCreateReceipt, Z as BatchResult, _ as TerminalReadyTimings, a as TerminalStreamOptions, at as BatchEventDataMap, b as parseErrorResponse, c as MintInteractiveSessionTokenOptions, d as ScopedTokenScope, et as BatchTaskInput, f as TERMINAL_WS_ECHO_SUBPROTOCOL, g as TerminalReadyInfo, h as TerminalOutputMessage, i as TerminalStreamHandlers, it as BatchEvent, j as KeyBudgetExhaustedError, k as GpuProviderNotConfiguredError, l as MintScopedTokenOptions, m as TerminalInteractiveSessionIdentity, n as TerminalStreamApiKey, nt as PublicBatchRunRequestInput, ot as BatchSidecarGroup, p as TerminalExitInfo, q as ValidationError, r as TerminalStreamBearerToken, rt as BatchBackendStats, s as TerminalStreamToken, st as BatchTaskUsage, t as TerminalAttachTimings, u as ScopedToken, v as TerminalStreamAuthFormat, w as CapabilityError, x as responseMetadata, y as TerminalStreamError, z as SandboxErrorJson } from "./terminal-stream-types-BMGTVpuf.js";
|
|
3
3
|
import { h as agentInteractiveSessionPromptRequestDigest, m as AgentInteractiveTerminalSession, n as SandboxSizePreset, t as SANDBOX_SIZE_PRESET_NAMES } from "./index-Dxxq7J79.js";
|
|
4
4
|
import { $ as SandboxFleetAgent, $a as ALL_BACKEND_TYPES, $i as SessionInterruptOptions, $n as AcceleratorKind, $r as SandboxResourceUsage, $t as TeePublicKeyResponse, A as CreateSandboxFleetOptions, Aa as GpuLeaseProviderName, Ai as TurnBackendConfig, An as FileSystem, Ar as DeleteMatchingSandboxOutcome, At as SandboxFleetWorkspaceRestoreResult, B as FleetDispatchStreamOptions, Bi as DriveTurnOptions, Bn as UploadOptions, Br as SandboxOperationKind, Bt as SandboxRuntimeHealth, C as GitCommit, Ca as SandboxRuntime, Ci as SandboxEvent, Cn as DownloadResult, Cr as ForkCounts, Ct as SandboxFleetTraceBundle, D as FleetDriveTurnRequest, Da as RolloutTurnPart, Di as SandboxTraceExport, Dn as FileReadError, Dr as RolloutOptions, Dt as SandboxFleetUsage, E as FleetDriveTurnOutcome, Ea as RolloutStatus, Ei as SandboxTraceEvent, En as FileReadBatchResult, Er as Rollout, Et as SandboxFleetTraceOptions, F as FleetAgentResult, Fa as WorkspaceImagePublishResult, Fi as ConversationTurnResult, Fn as FileUsageResult, Ft as SandboxConnection, G as FleetPromptDispatchResult, Ga as SandboxEnvRecovery, Gi as SentSessionMessage, Gn as SearchMatch, Gr as SnapshotIdempotency, Gt as SandboxTerminalRequestOptions, Hi as PublicProfileConflict, Hn as WriteFileOptions, Hr as SandboxRemovalState, Ht as SandboxTerminalCreateOptions, I as FleetAgentRunStatus, Ia as ProcessInfo, Ii as CreateSessionOptions, In as FileWriteResult, Ir as SandboxDeleteAcknowledgement, It as SandboxInfo, J as ListSandboxFleetOptions, Ji as SessionExecutionInfo, Jn as PublicTemplateInfo, Jt as StartupOperation, K as FleetRunEvent, Ka as SandboxEnvRecoveryView, Ki as SessionBackendCredentials, Kn as SearchOptions, Kr as SnapshotInfo, Kt as SandboxTerminals, L as FleetDispatchCancelResult, La as ProcessListOptions, Li as CreateTaskSessionOptions, Ln as ListOptions, Lr as SandboxDeleteOptions, Lt as SandboxPortBinding, M as CreateSandboxFleetWithCoordinatorOptions, Ma as GpuLeaseProviderStatus, Mi as CompletedTurnPayload, Mn as FileTreeOptions, Mr as DeleteMatchingSandboxesFilter, Mt as ListSandboxOptions, N as FleetAgentId, Na as GpuLeaseStatus, Ni as CompletedTurnResult, Nn as FileTreeResult, Nr as DeleteMatchingSandboxesOptions, Nt as SSHCommandDescriptor, O as TokenRefreshHandler, Oa as ProvisionStatus, Oi as SandboxTraceOptions, On as FileReadResult, Or as RolloutStartResult, Ot as SandboxFleetWorkspace, P as FleetAgentPlacement, Pa as WorkspaceImagePublishInput, Pi as ConversationTurnOptions, Pn as FileUsageOptions, Pr as DeleteMatchingSandboxesResult, Pt as SSHCredentials, Q as ReconcileSandboxFleetsResult, Qa as parseDeclaredSecretsEnv, Qi as SessionInfo, Qn as SandboxEnvironment, Qr as WorkspaceOperationLookup, Qt as TeePublicKey, R as FleetDispatchResultBuffer, Ra as ProcessStatus, Ri as DispatchPromptOptions, Rn as MkdirOptions, Rr as SandboxDeleteOutcome, Rt as SandboxPortPreviewLink, S as GitBranch, Sa as SANDBOX_RUNTIMES, Si as PromptResult, Sn as DownloadProgress, Sr as BranchOptions, St as SandboxFleetToken, T as GitStatus, Ta as RolloutScorer, Ti as SandboxTraceBundle, Tn as FileReadBatchOptions, Tr as ForkLookupOptions, Tt as SandboxFleetTraceExport, U as FleetMachineId, Ua as ExecResult, Ui as SendSessionMessageOptions, Un as WriteManyFile, Ur as SnapshotDeleteAcknowledgement, Ut as SandboxTerminalInfo, V as FleetExecDispatchOptions, Vi as ListMessagesOptions, Vn as UploadProgress, Vr as SandboxOperationState, Vt as SandboxTerminalAttachOptions, W as FleetPromptDispatchOptions, Wi as SendSessionMessageRequest, Wn as WriteManyOptions, Wr as SnapshotDeleteOutcome, Wt as SandboxTerminalManager, X as ReapExpiredSandboxFleetsResult, Xa as assertDeclaredSecretsHeld, Xi as SessionFailureReason, Xn as PublishPublicTemplateOptions, Xr as SnapshotResult, Xt as TeeAttestationReport, Y as ReapExpiredSandboxFleetsOptions, Ya as DECLARED_SECRET_HOSTS_ENV_VAR, Yi as SessionExecutionStatus, Yn as PublicTemplateVersionInfo, Yr as SnapshotRemoteSync, Yt as TeeAttestationOptions, Z as ReconcileSandboxFleetsOptions, Za as declaredSecretBaseToken, Zi as SessionForkOptions, Zn as PublishPublicTemplateVersionOptions, Zr as StopOptions, Zt as TeeAttestationResponse, _ as ProcessSignal, _a as BackendStatus, _i as IntelligenceReportCompareTo, _n as GitConfig, _r as ManagedProcessState, _t as SandboxFleetParent, a as ProvisionStep, aa as TaskSessionChanges, an as SandboxShapesInfo, ar as GpuLease, at as SandboxFleetDispatchResponse, b as PreviewLinkManager, ba as SecretBindingOptions, bi as PromptInputPart, bn as DeleteOptions, bt as SandboxFleetProfileRef, c as SubscriptionInfo, ca as TaskSessionInfo, ci as CreateIntelligenceReportOptions, cn as SandboxShapePreset, cr as GpuLeaseExecOptions, ct as SandboxFleetInfo, d as DevServerInfo, da as BackendCapabilities, di as DurablePlanDecisionResult, dn as NetworkManager, dr as GpuLeaseProviders, dt as SandboxFleetMachineMeteredUsage, ea as SessionListOptions, ei as SandboxRuntimeCapabilities, en as TerminalStream, eo as BackendType, er as AttachGpuLeaseOptions, et as SandboxFleetAgentSpec, f as EnsureDevServerOptions, fa as BackendConfig, fi as DurablePlanFollowUpResume, fn as SandboxEgressUsage, fr as GpuLeaseProvidersOptions, ft as SandboxFleetMachineRecord, g as ProcessManager, ga as BackendRuntimeConfigUpdate, gi as IntelligenceReportBudget, gn as GitAuth, gr as ManagedProcessResumeOptions, gt as SandboxFleetOperationsSummary, h as ProcessLogEntry, ha as BackendMcpServerStatus, hi as IntelligenceReport, hn as MAX_EGRESS_DENIALS_LIMIT, hr as ManagedProcessOptions, ht as SandboxFleetManifestMachine, i as ProvisionResult, ia as SessionResultOptions, in as SandboxResources, io as parseBackendType, ir as DriverType, it as SandboxFleetDispatchFailureClass, ja as GpuLeaseProviderState, ji as CommitTaskSessionOptions, jn as FileTreeFile, jr as DeleteMatchingSandboxResult, jt as SandboxFleetWorkspaceSnapshotResult, k as AttachSandboxFleetMachineOptions, ka as GPU_LEASE_PROVIDER_NAMES, ki as TokenUsage, kn as FileRenameResult, kr as WaitForRolloutOptions, kt as SandboxFleetWorkspaceReconcileResult, l as UsageInfo, la as TaskSessionProfile, li as DurablePlan, ln as EgressManager, lr as GpuLeaseExecResult, lt as SandboxFleetIntelligenceEnvelope, m as Process, ma as BackendManager, mi as EventStreamOptions, mn as EgressDenial, mr as ManagedProcessJobs, mt as SandboxFleetManifest, na as SessionMessageAdmission, ni as BatchBackend, nn as CreateSandboxOptions, no as EffectiveBackendProfile, nr as DriverConfig, nt as SandboxFleetArtifactSpec, oa as TaskSessionCommitResult, on as SandboxStatus, or as GpuLeaseBilling, ot as SandboxFleetDriverCapability, p as ExactProcessSpawnOptions, pa as BackendInfo, pn as EgressPolicy, pt as SandboxFleetMachineSpec, q as FleetRunOptions, qa as baseProxyToken, qi as SessionEventStreamOptions, qn as ExecOptions, qr as SnapshotOptions, qt as StartupDiagnostics, r as ProvisionEvent, ra as SessionMessageInputPart, ri as BatchRunOptions, rn as SandboxConfig, ro as EffectiveBackendSource, rr as DriverInfo, rt as SandboxFleetCostEstimate, s as SandboxIdentity, sa as TaskSessionFileChange, sn as SandboxShape, sr as GpuLeaseCommandResult, st as SandboxFleetDriverTimings, t as SecretsManager, ta as SessionMessage, ti as StorageConfig, tn as CreateRequestOptions, to as EffectiveBackend, tr as CreateGpuLeaseOptions, tt as SandboxFleetArtifact, u as WaitForOptions, ua as TurnDriveResult, ui as DurablePlanDecisionOptions, un as NetworkConfig, ur as GpuLeaseManager, ut as SandboxFleetMachine, v as ProcessSpawnOptions, va as McpServerConfig, vi as IntelligenceReportSubjectType, vn as ChunkedUploadOptions, vr as ManagedProcessRecord, vt as SandboxFleetPlacement, w as GitDiff, wa as RolloutChildResult, wi as SandboxIntelligenceEnvelope, wn as FileInfo, wr as ForkIdempotency, wt as SandboxFleetTraceEvent, x as PreviewLinkWaitOptions, xa as SecretInfo, xi as PromptOptions, xn as DownloadOptions, xt as SandboxFleetSpend, y as PreviewLinkInfo, ya as RouterRoutingOptions, yi as IntelligenceReportWindow, yn as ChunkedUploadResult, yr as ManagedProcessSpec, yt as SandboxFleetPolicy, z as FleetDispatchResultBufferOptions, za as SessionStatus, zi as DispatchedSession, zn as RenameOptions, zr as SandboxOperationInfo, zt as SandboxRunGeneration } from "./types-CJP4O3xL.js";
|
|
@@ -6,7 +6,7 @@ import { a as RawEvidenceBoxArchiveManifest, c as RawEvidenceDirectoryExport, d
|
|
|
6
6
|
import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-BniGLMGB.js";
|
|
7
7
|
import { _ as InteractiveSessionStatus, a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as interactiveSessionIdentityDigest, f as InteractiveAttachOptions, g as InteractiveRequestOptions, h as InteractiveObserveOptions, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as InteractiveSessionNotRunningError, m as InteractiveControlClaimOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimAcknowledgement, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as createInteractiveControlHolderId } from "./browser-interactive-control-controller-BCk4F3KE.js";
|
|
8
8
|
import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-BdGiwuUs.js";
|
|
9
|
-
import { $ as getSandboxEventText, $t as CreateTeamOptions, A as buildTangleRouterResponsesWebSearchRequest, At as InstancesClient, B as validateProfileForCreate, Bt as validateBatchRunRequest, C as RunTangleRouterEvalMatrixInSandboxOptions, Ct as ManagedProcessClient, D as RouterSearchConfigOptions, Dt as InstanceRecord, E as RouterSearchConfig, Et as InstanceProfile, F as SANDBOX_SIZE_PRESETS, Ft as CreateConfidentialSandboxOptions, G as ManageSandboxesToolOptions, Gt as TeeAttestationHeartbeatSample, H as MANAGE_SANDBOXES_TOOL_NAME, Ht as requestedPublicProfileDigest, I as resolveSandboxResources, It as createConfidentialSandbox, J as downloadFile, Jt as ImageSpec, K as createManageSandboxesTool, Kt as startTeeAttestationHeartbeat, L as sandboxResourcesForSize, Lt as generateAttestationNonce, M as buildTangleRouterSearchProfile, Mt as sandboxFailureKind, N as fetchTangleRouterSearchConfig, Nt as ConfidentialSandboxResult, O as TangleSearchProvider, Ot as InstanceRestartingError, P as DEFAULT_SANDBOX_SIZE, Pt as ConfidentialTeeType, Q as collectAgentResponseText, Qt as parseSSEStream, R as materializeProfileFileMounts, Rt as BatchResultAccumulator, S as RouterImportedRunResponse, St as gatewaySeatTransport, T as runTangleRouterEvalMatrixInSandbox, Tt as HostedInstance, U as ManageSandboxesInput, Ut as TeeAttestationHeartbeat, V as MANAGE_SANDBOXES_PARAMETERS, Vt as normalizeRuntimeBackendConfig, W as ManageSandboxesTool, Wt as TeeAttestationHeartbeatOptions, X as applySandboxEventText, Xt as ParseSSEStreamOptions, Y as SDK_TIMEOUTS, Yt as DEFAULT_MAX_EXECUTION_TTL_MS, Z as collectAgentFinalMessageText, Zt as ParsedSSEEvent, _ as RouterEvalMatrixPayload, _t as SeatOwnerTransport, a as SessionBroadcastEvent, an as BackendRegistryCapabilities, at as ImageBuildOptions, b as RouterEvalMatrixScenario, bt as SeatSelectionRequest, c as RunPlacement, cn as BackendRegistryResponse, ct as generateDockerfile, d as RunWaitOptions, dn as backendRegistryInteractionKindSchema, dt as GatewaySeatTransportOptions, en as InviteTeamMemberOptions, et as isToolBearingEvent, f as RunsClient, fn as backendRegistryResponseSchema, g as RouterEvalMatrixHarness, gt as SeatOwnerReply, h as RouterEvalMatrixCaseResult, hn as parseBackendRegistryResponseBody, ht as SandboxSeatSelectionInput, i as terminalUpgradeHeadersSupported, in as IntelligenceClient, it as ImageBuildFetchClient, j as buildTangleRouterSearchBackend, jt as SandboxFailureKind, k as buildTangleRouterEvalMatrixRequest, kt as InstanceStart, l as RunPlacementRecord, ln as backendRegistryCapabilitiesSchema, lt as ISOLATED_CREATION_ATTESTATION_VERSION, m as RouterEvalMatrixAgentProfile, mn as parseBackendRegistryResponse, mt as SandboxSeatCredentials, n as SandboxFleetClient, nn as TeamInvitation, nt as ImageBuildClient, o as SessionBroadcastResult, on as BackendRegistryEntry, ot as ImageBuildResult, p as RunsHttpClient, pn as isBackendRegistryInteractionKind, pt as SandboxResolvedSeat, q as manageSandboxesInputSchema, qt as BuildProgressEvent, r as SandboxFleet, rn as TeamMember, rt as ImageBuildClientConfig, s as RunOptions, sn as BackendRegistryInteractionKind, st as ImageBuilder, t as Sandbox, tn as Team, tt as Image, u as RunRecord, un as backendRegistryEntrySchema, ut as CreateSelectSeatOptions, v as RouterEvalMatrixSandboxBox, vt as SeatResolutionObservation, w as RunTangleRouterEvalMatrixInSandboxResult, wt as EnsureInstanceOptions, x as RouterEvalMatrixSuiteResponse, xt as createSelectSeat, y as RouterEvalMatrixSandboxClient, yt as SeatSelectionError, z as ProfileCreateVerdict, zt as createBatchResultAccumulator } from "./client-
|
|
9
|
+
import { $ as getSandboxEventText, $t as CreateTeamOptions, A as buildTangleRouterResponsesWebSearchRequest, At as InstancesClient, B as validateProfileForCreate, Bt as validateBatchRunRequest, C as RunTangleRouterEvalMatrixInSandboxOptions, Ct as ManagedProcessClient, D as RouterSearchConfigOptions, Dt as InstanceRecord, E as RouterSearchConfig, Et as InstanceProfile, F as SANDBOX_SIZE_PRESETS, Ft as CreateConfidentialSandboxOptions, G as ManageSandboxesToolOptions, Gt as TeeAttestationHeartbeatSample, H as MANAGE_SANDBOXES_TOOL_NAME, Ht as requestedPublicProfileDigest, I as resolveSandboxResources, It as createConfidentialSandbox, J as downloadFile, Jt as ImageSpec, K as createManageSandboxesTool, Kt as startTeeAttestationHeartbeat, L as sandboxResourcesForSize, Lt as generateAttestationNonce, M as buildTangleRouterSearchProfile, Mt as sandboxFailureKind, N as fetchTangleRouterSearchConfig, Nt as ConfidentialSandboxResult, O as TangleSearchProvider, Ot as InstanceRestartingError, P as DEFAULT_SANDBOX_SIZE, Pt as ConfidentialTeeType, Q as collectAgentResponseText, Qt as parseSSEStream, R as materializeProfileFileMounts, Rt as BatchResultAccumulator, S as RouterImportedRunResponse, St as gatewaySeatTransport, T as runTangleRouterEvalMatrixInSandbox, Tt as HostedInstance, U as ManageSandboxesInput, Ut as TeeAttestationHeartbeat, V as MANAGE_SANDBOXES_PARAMETERS, Vt as normalizeRuntimeBackendConfig, W as ManageSandboxesTool, Wt as TeeAttestationHeartbeatOptions, X as applySandboxEventText, Xt as ParseSSEStreamOptions, Y as SDK_TIMEOUTS, Yt as DEFAULT_MAX_EXECUTION_TTL_MS, Z as collectAgentFinalMessageText, Zt as ParsedSSEEvent, _ as RouterEvalMatrixPayload, _t as SeatOwnerTransport, a as SessionBroadcastEvent, an as BackendRegistryCapabilities, at as ImageBuildOptions, b as RouterEvalMatrixScenario, bt as SeatSelectionRequest, c as RunPlacement, cn as BackendRegistryResponse, ct as generateDockerfile, d as RunWaitOptions, dn as backendRegistryInteractionKindSchema, dt as GatewaySeatTransportOptions, en as InviteTeamMemberOptions, et as isToolBearingEvent, f as RunsClient, fn as backendRegistryResponseSchema, g as RouterEvalMatrixHarness, gt as SeatOwnerReply, h as RouterEvalMatrixCaseResult, hn as parseBackendRegistryResponseBody, ht as SandboxSeatSelectionInput, i as terminalUpgradeHeadersSupported, in as IntelligenceClient, it as ImageBuildFetchClient, j as buildTangleRouterSearchBackend, jt as SandboxFailureKind, k as buildTangleRouterEvalMatrixRequest, kt as InstanceStart, l as RunPlacementRecord, ln as backendRegistryCapabilitiesSchema, lt as ISOLATED_CREATION_ATTESTATION_VERSION, m as RouterEvalMatrixAgentProfile, mn as parseBackendRegistryResponse, mt as SandboxSeatCredentials, n as SandboxFleetClient, nn as TeamInvitation, nt as ImageBuildClient, o as SessionBroadcastResult, on as BackendRegistryEntry, ot as ImageBuildResult, p as RunsHttpClient, pn as isBackendRegistryInteractionKind, pt as SandboxResolvedSeat, q as manageSandboxesInputSchema, qt as BuildProgressEvent, r as SandboxFleet, rn as TeamMember, rt as ImageBuildClientConfig, s as RunOptions, sn as BackendRegistryInteractionKind, st as ImageBuilder, t as Sandbox, tn as Team, tt as Image, u as RunRecord, un as backendRegistryEntrySchema, ut as CreateSelectSeatOptions, v as RouterEvalMatrixSandboxBox, vt as SeatResolutionObservation, w as RunTangleRouterEvalMatrixInSandboxResult, wt as EnsureInstanceOptions, x as RouterEvalMatrixSuiteResponse, xt as createSelectSeat, y as RouterEvalMatrixSandboxClient, yt as SeatSelectionError, z as ProfileCreateVerdict, zt as createBatchResultAccumulator } from "./client-C_e3dHcZ.js";
|
|
10
10
|
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-Dt9GKYcK.js";
|
|
11
11
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-DreKipF6.js";
|
|
12
12
|
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-zu3yijbl.js";
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as requestedPublicProfileDigest, B as ALL_BACKEND_TYPES, F as createAgentRunOutcomeTracker, H as isolationPrincipalSchema, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, V as backendTypeSchema, W as parseBackendType, i as terminalUpgradeHeadersSupported, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./interactive-controller-
|
|
1
|
+
import { A as requestedPublicProfileDigest, B as ALL_BACKEND_TYPES, F as createAgentRunOutcomeTracker, H as isolationPrincipalSchema, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, V as backendTypeSchema, W as parseBackendType, i as terminalUpgradeHeadersSupported, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./interactive-controller-CYQnjXGG.js";
|
|
2
2
|
import { i as SANDBOX_SIZE_PRESET_NAMES, r as agentProfileSchema, t as agentProfileConfidentialSchema } from "./profile-schema-C_MbI9mE.js";
|
|
3
|
-
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, k as agentInteractiveSessionPromptRequestDigest, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-
|
|
4
|
-
import { A as isMaterializerHarness, C as materializeProfileFileMounts, D as HARNESS_LAUNCH_MATERIALIZE_OPTIONS, E as validateDeferredProfileFileMounts, M as SandboxOperation, N as SandboxOperationFailedError, O as ProfileUnsupportedError, S as ManagedProcessClient, T as splitInlineProfileSkills, _ as collectAgentFinalMessageText, a as buildTraceExportPayload, b as isToolBearingEvent, c as toOtelJson, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as MAX_EGRESS_DENIALS_LIMIT, j as materializeProfile, k as enforceWorkspacePlanSupport, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileFileMounts, y as getSandboxEventText } from "./sandbox-
|
|
3
|
+
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, k as agentInteractiveSessionPromptRequestDigest, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-C2tNFL_f.js";
|
|
4
|
+
import { A as isMaterializerHarness, C as materializeProfileFileMounts, D as HARNESS_LAUNCH_MATERIALIZE_OPTIONS, E as validateDeferredProfileFileMounts, M as SandboxOperation, N as SandboxOperationFailedError, O as ProfileUnsupportedError, S as ManagedProcessClient, T as splitInlineProfileSkills, _ as collectAgentFinalMessageText, a as buildTraceExportPayload, b as isToolBearingEvent, c as toOtelJson, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as MAX_EGRESS_DENIALS_LIMIT, j as materializeProfile, k as enforceWorkspacePlanSupport, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileFileMounts, y as getSandboxEventText } from "./sandbox-BUMjAOwQ.js";
|
|
5
5
|
import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, S as ResumeEnvRequiredError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, d as CompliancePlacementError, f as EdgeNotReadyError, g as KeyBudgetExhaustedError, h as GpuProviderNotConfiguredError, l as BranchFanoutExceedsHostError, m as FileWriteConflictError, o as responseMetadata, p as EgressProxyRecoveryError, r as parseErrorResponse, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-D44qyFpy.js";
|
|
6
|
-
import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-
|
|
7
|
-
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-
|
|
8
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-
|
|
6
|
+
import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-CeS134HP.js";
|
|
7
|
+
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-ZCIlsSDI.js";
|
|
8
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DGgH7tAW.js";
|
|
9
9
|
import "./file-transfer-DOSTbUSR.js";
|
|
10
10
|
import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
|
|
11
11
|
import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-DwJ7AKx7.js";
|
|
@@ -13,7 +13,7 @@ import { t as downloadFile } from "./file-download-BO-Hmn3x.js";
|
|
|
13
13
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
14
14
|
import { a as parseLineApplicationResult, i as parseLineApplicationRequest, n as LINE_APPLICATION_REPLY_MAX_CHARS, o as sandboxFailureKind, r as LINE_APPLICATION_REQUEST_MAX_BYTES, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-CBWUEURz.js";
|
|
15
15
|
import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-V4GysL74.js";
|
|
16
|
-
import { s as BlueprintSandboxClient } from "./tangle-
|
|
16
|
+
import { s as BlueprintSandboxClient } from "./tangle-Ne0cgwBK.js";
|
|
17
17
|
import { z } from "zod";
|
|
18
18
|
//#region ../../../packages/runtime-contracts/dist/model-key-proxy.js
|
|
19
19
|
const MANAGED_MODEL_KEY_SENTINEL = "proxy-managed-per-request";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse, u as CapabilityError } from "../errors-D44qyFpy.js";
|
|
2
|
-
import { i as fetchSandboxApi } from "../api-request-
|
|
2
|
+
import { i as fetchSandboxApi } from "../api-request-ZCIlsSDI.js";
|
|
3
3
|
import { n as verifyDownload } from "../file-download-BO-Hmn3x.js";
|
|
4
4
|
import { t as rawEvidenceArchiveAttemptSchema } from "../raw-evidence-export-Dog7W5zP.js";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-
|
|
1
|
+
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-C2tNFL_f.js";
|
|
2
2
|
export { BrowserInteractiveSessionControlController, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { C as boundedIdentifierSchema, T as boundedJsonSchema, o as canonicalCandidateDigest } from "./harness-DW2I_kp7.js";
|
|
2
2
|
import { r as agentProfileSchema } from "./profile-schema-C_MbI9mE.js";
|
|
3
|
-
import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMatchesRef, P as AgentExactRunControlRefSchema, R as AgentExecutionOutcomeSchema, U as InteractionRequestSchema, c as assertInteractiveSessionRef, h as AgentInteractiveSessionAttachSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint, v as AgentInteractiveSessionControlClaimSchema, x as AgentInteractiveSessionRefSchema, z as DurablePlanSchema } from "./browser-interactive-control-controller-
|
|
3
|
+
import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMatchesRef, P as AgentExactRunControlRefSchema, R as AgentExecutionOutcomeSchema, U as InteractionRequestSchema, c as assertInteractiveSessionRef, h as AgentInteractiveSessionAttachSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint, v as AgentInteractiveSessionControlClaimSchema, x as AgentInteractiveSessionRefSchema, z as DurablePlanSchema } from "./browser-interactive-control-controller-C2tNFL_f.js";
|
|
4
4
|
import { O as ValidationError, _ as NetworkError, i as parseResponseError, s as retryWhen, t as TerminalStreamError, u as CapabilityError, w as ServerError } from "./errors-D44qyFpy.js";
|
|
5
5
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
|
|
6
|
-
import { n as SDK_TIMEOUTS } from "./api-request-
|
|
6
|
+
import { n as SDK_TIMEOUTS } from "./api-request-ZCIlsSDI.js";
|
|
7
7
|
import { c as awaitSdkResend, s as uploadChunked } from "./chunked-upload-ChZB-dYE.js";
|
|
8
8
|
import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
|
|
9
9
|
import { z } from "zod";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./api-request-
|
|
1
|
+
import "./api-request-ZCIlsSDI.js";
|
|
2
2
|
import { u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-DOSTbUSR.js";
|
|
3
3
|
import { a as listAgentPreviews, i as getAgentPreview, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "./preview-operations-BTHZR1w2.js";
|
|
4
4
|
//#region \0rolldown/runtime.js
|
|
@@ -396,7 +396,7 @@ async function createMcpServer(box, options = {}) {
|
|
|
396
396
|
const { bindings, handlers } = bindToolSpecs(box, options);
|
|
397
397
|
const server = new serverModule.Server({
|
|
398
398
|
name: options.name ?? "tangle-sandbox",
|
|
399
|
-
version: options.version ?? "1.0.
|
|
399
|
+
version: options.version ?? "1.0.313"
|
|
400
400
|
}, { capabilities: { tools: {} } });
|
|
401
401
|
server.setRequestHandler(typesModule.ListToolsRequestSchema, async () => ({ tools: bindings.map(({ spec: s }) => ({
|
|
402
402
|
name: s.name,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as SandboxInstance } from "./index-
|
|
1
|
+
import { O as SandboxInstance } from "./index-CtOabBjl.js";
|
|
2
2
|
import { f as EnsureDevServerOptions, y as PreviewLinkInfo } from "./types-CJP4O3xL.js";
|
|
3
|
-
import { t as Sandbox } from "./client-
|
|
3
|
+
import { t as Sandbox } from "./client-C_e3dHcZ.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/preview-operations.d.ts
|
|
6
6
|
type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
|
package/dist/runtime.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-
|
|
2
|
-
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-
|
|
1
|
+
import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-CYQnjXGG.js";
|
|
2
|
+
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-C2tNFL_f.js";
|
|
3
3
|
import { C as SandboxError, D as TimeoutError, O as ValidationError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, m as FileWriteConflictError, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-D44qyFpy.js";
|
|
4
|
-
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-
|
|
4
|
+
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-ZCIlsSDI.js";
|
|
5
5
|
import { s as uploadChunked } from "./chunked-upload-ChZB-dYE.js";
|
|
6
6
|
//#region src/runtime-client.ts
|
|
7
7
|
function requireToken(token) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as requestedPublicProfileDigest, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, U as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as validateAcceptedDispatchRunRef, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as encodePromptForWire, y as resolveDispatchRunIdentity } from "./interactive-controller-
|
|
1
|
+
import { A as requestedPublicProfileDigest, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, U as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as validateAcceptedDispatchRunRef, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as encodePromptForWire, y as resolveDispatchRunIdentity } from "./interactive-controller-CYQnjXGG.js";
|
|
2
2
|
import { C as boundedIdentifierSchema$1, E as boundedStringSchema$1, g as sha256DigestSchema$1, o as canonicalCandidateDigest$1, s as canonicalCandidateJson$1 } from "./harness-DW2I_kp7.js";
|
|
3
3
|
import { a as ProxySecretReceiptSchema$1, r as agentProfileSchema$1 } from "./profile-schema-C_MbI9mE.js";
|
|
4
4
|
import { t as sha256$1 } from "./sha2-BIoWepwn.js";
|
|
5
|
-
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-
|
|
5
|
+
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-C2tNFL_f.js";
|
|
6
6
|
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-CatenlMs.js";
|
|
7
7
|
import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, T as StateError, _ as NetworkError, a as readResponseJson, b as ProfileFileMountPathError, c as AuthError, f as EdgeNotReadyError, i as parseResponseError, n as isTransientWrite, o as responseMetadata, r as parseErrorResponse, s as retryWhen, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError, y as PartialFailureError } from "./errors-D44qyFpy.js";
|
|
8
8
|
import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-BZbs5rig.js";
|
|
9
9
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
|
|
10
10
|
import { a as backoffDelayMs, o as isUndelivered, r as abortableSleep } from "./retry-policy-oW3_ljoc.js";
|
|
11
|
-
import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-
|
|
11
|
+
import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-ZCIlsSDI.js";
|
|
12
12
|
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-DOSTbUSR.js";
|
|
13
13
|
import { c as awaitSdkResend, l as takeSdkTurn, s as uploadChunked } from "./chunked-upload-ChZB-dYE.js";
|
|
14
14
|
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-sGVP8skk.js";
|
|
@@ -4903,13 +4903,7 @@ function harnessAutoLoadsAgentContextFile(harness) {
|
|
|
4903
4903
|
assertMaterializerHarness(harness);
|
|
4904
4904
|
return harness === "pi";
|
|
4905
4905
|
}
|
|
4906
|
-
/**
|
|
4907
|
-
* Why a harness refuses a system-prompt REPLACEMENT.
|
|
4908
|
-
*
|
|
4909
|
-
* The reason names the control that does exist, so the refusal is actionable
|
|
4910
|
-
* without a capability-matrix lookup — a bare "unsupported" sends the caller
|
|
4911
|
-
* looking for a flag that was never there.
|
|
4912
|
-
*/
|
|
4906
|
+
/** Why a harness refuses a system-prompt REPLACEMENT, naming any control that does exist. */
|
|
4913
4907
|
function systemPromptRefusal(harness) {
|
|
4914
4908
|
switch (harness) {
|
|
4915
4909
|
case "opencode": return "opencode: the only system-prompt replacement is per-agent (`agent.<name>.prompt`), which binds to the agent selected at launch and a workspace plan cannot guarantee; an executor that applies the plan's \"--agent\" flag to its own spawn declares binds: [\"systemPrompt\"], and one that composes opencode's config itself declares binds: [\"opencode.agent-prompt\"]";
|
|
@@ -4917,15 +4911,9 @@ function systemPromptRefusal(harness) {
|
|
|
4917
4911
|
}
|
|
4918
4912
|
}
|
|
4919
4913
|
/**
|
|
4920
|
-
* Why a harness refuses an ADDITION to the system prompt.
|
|
4921
|
-
*
|
|
4922
|
-
*
|
|
4923
|
-
* is to lower an addition there. That is refused because GEMINI.md is the ONE
|
|
4924
|
-
* file it auto-loads: an addition written there is byte-identical to the same
|
|
4925
|
-
* text under `prompt.instructions`, and no consumer could tell which intent the
|
|
4926
|
-
* caller expressed. opencode is not refused for the same situation, because it
|
|
4927
|
-
* loads exactly the files its config names and can therefore carry the two
|
|
4928
|
-
* intents in separate, separately-ordered files.
|
|
4914
|
+
* Why a harness refuses an ADDITION to the system prompt. gemini's one
|
|
4915
|
+
* auto-loaded GEMINI.md would make an addition indistinguishable from
|
|
4916
|
+
* `prompt.instructions`; opencode can keep the two in separate files.
|
|
4929
4917
|
*/
|
|
4930
4918
|
function appendSystemPromptRefusal(harness) {
|
|
4931
4919
|
switch (harness) {
|
|
@@ -4948,20 +4936,9 @@ const CONTEXT_FILE = {
|
|
|
4948
4936
|
openclaw: "AGENTS.md"
|
|
4949
4937
|
};
|
|
4950
4938
|
/**
|
|
4951
|
-
* The paths a profile resource may never mount
|
|
4952
|
-
*
|
|
4953
|
-
*
|
|
4954
|
-
* takes whatever path it is given — and opencode names none either, since it
|
|
4955
|
-
* reads exactly the files its config lists. All three names below were chosen
|
|
4956
|
-
* here, so a file already at one of them is this materializer's own output from
|
|
4957
|
-
* an earlier application into the same workspace, and a mount there could not
|
|
4958
|
-
* survive the next application.
|
|
4959
|
-
*
|
|
4960
|
-
* That is an inference from the path name, not verified provenance: nothing
|
|
4961
|
-
* checks the existing bytes are prior materializer output, so a workspace that
|
|
4962
|
-
* carried a foreign file at one of these invented names is overwritten on the
|
|
4963
|
-
* first application. Accepted cost of stateless multi-turn re-application,
|
|
4964
|
-
* bounded by the names being ones no harness or user convention uses.
|
|
4939
|
+
* The paths a profile resource may never mount: names this package invented,
|
|
4940
|
+
* which no harness or user convention uses, so a file at one counts as earlier
|
|
4941
|
+
* output by name alone and is overwritten without checking its bytes.
|
|
4965
4942
|
*/
|
|
4966
4943
|
const MATERIALIZER_RESERVED_PATHS = new Set([
|
|
4967
4944
|
CODEX_SYSTEM_PROMPT_FILE,
|
|
@@ -4971,40 +4948,18 @@ const MATERIALIZER_RESERVED_PATHS = new Set([
|
|
|
4971
4948
|
/** Every path any harness reads as its project context file. */
|
|
4972
4949
|
const CONTEXT_FILE_PATHS = new Set(Object.values(CONTEXT_FILE));
|
|
4973
4950
|
/**
|
|
4974
|
-
* The context files
|
|
4975
|
-
* `
|
|
4976
|
-
*
|
|
4977
|
-
* Each is a documented name a repository can already carry, so the name proves
|
|
4978
|
-
* nothing. A generated one carries the line {@link markMaterializerContextFile}
|
|
4979
|
-
* writes, and only that line lets the next materialization replace it.
|
|
4980
|
-
*
|
|
4981
|
-
* opencode's context file is absent because it is a RESERVED name this package
|
|
4982
|
-
* invented, already owned by the name alone.
|
|
4951
|
+
* The context files owned by MARKER, not name (`AGENTS.md`, `CLAUDE.md`,
|
|
4952
|
+
* `GEMINI.md`, `HERMES.md`): a repository can carry these names, so only the
|
|
4953
|
+
* {@link markMaterializerContextFile} line lets a materialization replace one.
|
|
4983
4954
|
*/
|
|
4984
4955
|
const MATERIALIZER_CONTEXT_PATHS = new Set([...CONTEXT_FILE_PATHS].filter((path) => !MATERIALIZER_RESERVED_PATHS.has(path)));
|
|
4985
4956
|
/**
|
|
4986
4957
|
* The paths whose generated content is wholly this package's output, per
|
|
4987
|
-
* {@link PlanFile.ownership}: the reserved names, the context files
|
|
4988
|
-
* `opencode.json
|
|
4989
|
-
*
|
|
4990
|
-
*
|
|
4991
|
-
*
|
|
4992
|
-
* can carry, so the name alone proves nothing and a profile resource may still
|
|
4993
|
-
* mount one. An existing file there is replaced only when
|
|
4994
|
-
* {@link materializerReplacement} recognizes its bytes as this package's own
|
|
4995
|
-
* earlier output.
|
|
4996
|
-
*
|
|
4997
|
-
* Deliberately absent: `.gemini/system.md`, the file `prompt.systemPrompt`
|
|
4998
|
-
* lowers to. The line a marker would have to add is the reason. A REPLACEMENT
|
|
4999
|
-
* is the caller's exact bytes and this package may add none of its own, so that
|
|
5000
|
-
* path keeps refusing. A context file carries `prompt.instructions`, which this
|
|
5001
|
-
* package already composes — it joins the blocks and appends the final newline
|
|
5002
|
-
* — so one more composed line is inside the same authority.
|
|
5003
|
-
*
|
|
5004
|
-
* That line, not "which channel the harness reads it on", is what separates the
|
|
5005
|
-
* two. `GEMINI.md` is owned even though gemini lowers its context file into the
|
|
5006
|
-
* system-prompt position as an ADDITION ({@link appendSystemPromptRefusal}),
|
|
5007
|
-
* because the intent it carries is still instructions this package composed.
|
|
4958
|
+
* {@link PlanFile.ownership}: the reserved names, the context files and
|
|
4959
|
+
* `opencode.json`. A user repository can carry the last two, so an existing file
|
|
4960
|
+
* there is replaced only when {@link materializerReplacement} recognizes its
|
|
4961
|
+
* bytes. `.gemini/system.md` is absent: a system-prompt REPLACEMENT is the
|
|
4962
|
+
* caller's exact bytes, so it can carry no marker and keeps refusing.
|
|
5008
4963
|
*/
|
|
5009
4964
|
const MATERIALIZER_OWNED_PATHS = new Set([
|
|
5010
4965
|
...MATERIALIZER_RESERVED_PATHS,
|
|
@@ -5032,29 +4987,12 @@ function materializerContextMarker(body) {
|
|
|
5032
4987
|
}
|
|
5033
4988
|
/**
|
|
5034
4989
|
* Mark one generated context file so the NEXT materialization can prove this
|
|
5035
|
-
* package wrote the bytes it
|
|
5036
|
-
*
|
|
5037
|
-
*
|
|
5038
|
-
*
|
|
5039
|
-
*
|
|
5040
|
-
*
|
|
5041
|
-
* a context file, which carries `prompt.instructions`, and NEVER on a
|
|
5042
|
-
* system-prompt REPLACEMENT, whose bytes are the caller's exact text
|
|
5043
|
-
* (`.gemini/system.md`; `.codex/system-prompt.md` is a reserved name this
|
|
5044
|
-
* package invented and needs no marker to be owned).
|
|
5045
|
-
*
|
|
5046
|
-
* It carries the digest of the generated body below it, which the subagent
|
|
5047
|
-
* marker does not need. `CLAUDE.md` is claude-code's own memory file and the
|
|
5048
|
-
* agent appends to it mid-session, so a bare marker would still sit on line 1
|
|
5049
|
-
* of a file the agent has since rewritten. The digest tells which leading bytes
|
|
5050
|
-
* are still this package's own: the next materialization replaces exactly
|
|
5051
|
-
* those and keeps what the agent appended below them
|
|
5052
|
-
* ({@link generatedContextAppendix}). The marker's wording is part of every
|
|
5053
|
-
* marker already written into live workspaces, so it stays as it is.
|
|
5054
|
-
*
|
|
5055
|
-
* A reserved context path — opencode's invented instruction file — is returned
|
|
5056
|
-
* unchanged: its NAME already proves the provenance, and nothing else may mount
|
|
5057
|
-
* there.
|
|
4990
|
+
* package wrote the bytes it replaces. The line-1 HTML comment leaves every
|
|
4991
|
+
* instruction below it parsing unchanged. It carries the generated body's
|
|
4992
|
+
* digest because claude-code appends memory to `CLAUDE.md`: the next
|
|
4993
|
+
* materialization replaces exactly the digested bytes and keeps the appendix
|
|
4994
|
+
* ({@link generatedContextAppendix}). Live workspaces hold this wording, so it
|
|
4995
|
+
* stays. opencode's reserved context file is returned unchanged.
|
|
5058
4996
|
*/
|
|
5059
4997
|
function markMaterializerContextFile(relPath, content) {
|
|
5060
4998
|
if (!CONTEXT_FILE_PATHS.has(relPath)) throw new Error(`Not a harness context file: ${relPath}`);
|
|
@@ -5078,12 +5016,9 @@ function isMaterializerOwnedPath(relPath) {
|
|
|
5078
5016
|
return MATERIALIZER_OWNED_PATHS.has(relPath) || MATERIALIZER_SUBAGENT_PATH.test(relPath);
|
|
5079
5017
|
}
|
|
5080
5018
|
/**
|
|
5081
|
-
* cwd-relative native skill dir per harness, or null
|
|
5082
|
-
*
|
|
5083
|
-
*
|
|
5084
|
-
* exact path the platform will mount a skill at into their prompts instead
|
|
5085
|
-
* of hardcoding `~/.claude/skills/...`, and (b) branch on skill support
|
|
5086
|
-
* ahead of materialization instead of catching the materialize-time throw.
|
|
5019
|
+
* cwd-relative native skill dir per harness, or null when skills live only in a
|
|
5020
|
+
* user/global dir the workspace plan cannot reach. Public so a profile can name
|
|
5021
|
+
* the mount path in its prompt and branch on skill support before materializing.
|
|
5087
5022
|
*/
|
|
5088
5023
|
const HARNESS_SKILL_DIRS = {
|
|
5089
5024
|
"claude-code": ".claude/skills",
|
|
@@ -12518,8 +12453,8 @@ var SandboxTaskSession = class extends SandboxSession {
|
|
|
12518
12453
|
};
|
|
12519
12454
|
//#endregion
|
|
12520
12455
|
//#region src/sandbox-sessions.ts
|
|
12521
|
-
/**
|
|
12522
|
-
const
|
|
12456
|
+
/** Sandboxes whose sidecar announced `dispatchGuard` on an admission: they skip the reads. */
|
|
12457
|
+
const guarded = /* @__PURE__ */ new Set();
|
|
12523
12458
|
/** Refusals a guarded POST answers in place of the pre-dispatch reads. */
|
|
12524
12459
|
const GUARD_SKIPS = new Set(["TURN_COMPLETED", "SESSION_BUSY"]);
|
|
12525
12460
|
function handOver(read, stream, ctrl, signal) {
|
|
@@ -12666,11 +12601,11 @@ var SandboxSessionCapabilities = class extends SandboxSessionEvidenceCapabilitie
|
|
|
12666
12601
|
* `running` or `queued` with a `latestExecutionId` (one run per session).
|
|
12667
12602
|
* A never-run `queued` session and a terminal one (a new turn) dispatch.
|
|
12668
12603
|
* Retry safety needs `turnId`; read `dispatched`, not `alreadyExisted`.
|
|
12669
|
-
*
|
|
12670
|
-
* the reads run only after its refusal
|
|
12604
|
+
* Once its sidecar announced `dispatchGuard`, a box answers both checks in
|
|
12605
|
+
* the POST, the reads run only after its refusal and `alreadyExisted` is unread.
|
|
12671
12606
|
*/
|
|
12672
12607
|
async dispatchPrompt(message, opts) {
|
|
12673
|
-
const guard = Boolean(opts?.sessionId) &&
|
|
12608
|
+
const guard = Boolean(opts?.sessionId) && guarded.has(this.id);
|
|
12674
12609
|
return this.dispatchOnce(message, opts, guard);
|
|
12675
12610
|
}
|
|
12676
12611
|
async dispatchOnce(message, opts, guard) {
|
|
@@ -12729,6 +12664,7 @@ var SandboxSessionCapabilities = class extends SandboxSessionEvidenceCapabilitie
|
|
|
12729
12664
|
if (typeof executionId === "string" && executionId.length > 0) resolvedExecutionId = executionId;
|
|
12730
12665
|
if (typeof id === "string" && id.length > 0) resolvedSessionId = id;
|
|
12731
12666
|
admissionObserved = Boolean(resolvedSessionId && resolvedExecutionId);
|
|
12667
|
+
if (data?.dispatchGuard === true) guarded.add(this.id);
|
|
12732
12668
|
if (data?.runControlRef !== void 0) resolvedRunControlRef = validateAcceptedDispatchRunRef(data.runControlRef, identity.runControlRef, this.id, resolvedSessionId ?? identity.sessionId, resolvedExecutionId ?? identity.executionId);
|
|
12733
12669
|
}
|
|
12734
12670
|
if (admissionObserved || event.type === "result" || event.type === "done") break;
|
|
@@ -12740,10 +12676,9 @@ var SandboxSessionCapabilities = class extends SandboxSessionEvidenceCapabilitie
|
|
|
12740
12676
|
await stream.return(void 0).catch(() => void 0);
|
|
12741
12677
|
}
|
|
12742
12678
|
}
|
|
12743
|
-
if (guard && !admissionObserved
|
|
12744
|
-
|
|
12745
|
-
|
|
12746
|
-
if (refused || GUARD_SKIPS.has(dispatchError.code)) return this.dispatchOnce(message, opts, false);
|
|
12679
|
+
if (guard && !admissionObserved) {
|
|
12680
|
+
if (GUARD_SKIPS.has(`${dispatchError?.code}`)) return this.dispatchOnce(message, opts, false);
|
|
12681
|
+
guarded.delete(this.id);
|
|
12747
12682
|
}
|
|
12748
12683
|
if (!admissionObserved || !resolvedSessionId || !resolvedExecutionId) throw dispatchError ?? new ServerError("dispatchPrompt did not receive an execution admission from the sandbox");
|
|
12749
12684
|
if (!resolvedRunControlRef) throw new ServerError("Sandbox admission did not return the exact run reference", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { R as SandboxError } from "./terminal-stream-types-BMGTVpuf.js";
|
|
2
|
-
import { _t as SeatOwnerTransport, bt as SeatSelectionRequest, ft as SEAT_COMMAND_TIMEOUT_MS } from "./client-
|
|
2
|
+
import { _t as SeatOwnerTransport, bt as SeatSelectionRequest, ft as SEAT_COMMAND_TIMEOUT_MS } from "./client-C_e3dHcZ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/select-seat-command.d.ts
|
|
5
5
|
/** Public reply bound; the owner prints one metadata object. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as combineAbortSignals } from "../abort-signal-BsriwJ8L.js";
|
|
2
|
-
import { i as fetchSandboxApi } from "../api-request-
|
|
2
|
+
import { i as fetchSandboxApi } from "../api-request-ZCIlsSDI.js";
|
|
3
3
|
import "../sidecar-proxy-error-DTdbCbUM.js";
|
|
4
4
|
import { t as parseSSEStream } from "../sse-parser-BCG3iL9j.js";
|
|
5
5
|
import { PART_TEXT, PART_TEXT_SUFFIX } from "@tangle-network/agent-core/sse";
|
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-CtOabBjl.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,3 +1,3 @@
|
|
|
1
|
-
import { _ as SandboxCreateResponseParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as AgentSandboxBlueprintAbi, g as SandboxCreateParamTypes, h as JsonResponseParamTypes, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_DELETE, n as fetchQuote, o as validateQuote, p as JOB_SANDBOX_CREATE, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateResponseParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as AgentSandboxBlueprintAbi, g as SandboxCreateParamTypes, h as JsonResponseParamTypes, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_DELETE, n as fetchQuote, o as validateQuote, p as JOB_SANDBOX_CREATE, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxIdParamTypes } from "../tangle-Ne0cgwBK.js";
|
|
2
2
|
import { t as ITangleJobsAbi } from "../abi-pcDt2Adp.js";
|
|
3
3
|
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,6 +1,6 @@
|
|
|
1
|
-
import { L as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
1
|
+
import { L as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-BUMjAOwQ.js";
|
|
2
2
|
import { a as readResponseJson } from "./errors-D44qyFpy.js";
|
|
3
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
3
|
+
import { i as fetchSandboxApi } from "./api-request-ZCIlsSDI.js";
|
|
4
4
|
import { t as ITangleJobsAbi } from "./abi-pcDt2Adp.js";
|
|
5
5
|
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-BvN0Mk3j.js";
|
|
6
6
|
//#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.313",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -154,14 +154,14 @@
|
|
|
154
154
|
"ws": "^8.22.0",
|
|
155
155
|
"yjs": "13.6.33",
|
|
156
156
|
"@products/sandbox-test-utils": "0.0.0",
|
|
157
|
+
"@tangle-network/agent-profile-materialize": "0.27.1",
|
|
157
158
|
"@repo/shared": "0.0.0",
|
|
158
|
-
"@tangle-network/cli-agent-registry": "0.15.0",
|
|
159
159
|
"@tangle-network/runtime-contracts": "0.20.0",
|
|
160
|
-
"@tangle-network/agent-
|
|
160
|
+
"@tangle-network/cli-agent-registry": "0.15.0"
|
|
161
161
|
},
|
|
162
162
|
"tangleRelease": {
|
|
163
|
-
"sourceSha": "
|
|
164
|
-
"mergedAt": "2026-11-
|
|
163
|
+
"sourceSha": "b75fcac3c89caedd17bdf7c80ab33b5f43994fec",
|
|
164
|
+
"mergedAt": "2026-11-08T09:43:04-08:00"
|
|
165
165
|
},
|
|
166
166
|
"scripts": {
|
|
167
167
|
"build": "node scripts/build-dist.mjs && bash scripts/verify-dist.sh",
|