@tangle-network/sandbox 1.0.428 → 1.0.429
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +4 -4
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +2 -2
- package/dist/{agent-execution-preparation-CemN5Bl6.js → agent-execution-preparation-C2KLuq0G.js} +3 -3
- package/dist/{agent-execution-preparation-receipt-ClBOzgJ_.js → agent-execution-preparation-receipt-NvWi9tgX.js} +5 -4
- package/dist/{agent-run-outcome-DVcPF3iI.d.ts → agent-run-outcome-DXctPOwJ.d.ts} +2 -2
- package/dist/{api-request-DOebNJob.js → api-request-ati_rM95.js} +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +2 -2
- package/dist/{browser-interactive-control-controller-BQRJCwkf.js → browser-interactive-control-controller-BnZd0wnt.js} +14 -14
- package/dist/{browser-interactive-control-controller-CHnMRFRF.d.ts → browser-interactive-control-controller-knQXEt0T.d.ts} +2 -2
- package/dist/cli-auth-bundle-COXkowvX.js +2 -0
- package/dist/{cli-auth-bundle-DuY2E2FD-7ByGEdOv.js → cli-auth-bundle-DuY2E2FD-BdPoU6zT.js} +1 -1
- package/dist/{cli-auth-bundle-CaNRN3Nc.d.ts → cli-auth-bundle-a7NYzsfF.d.ts} +1 -1
- package/dist/{client-hdyzJ8_a.d.ts → client-BfY4DQiD.d.ts} +66 -26
- package/dist/{client-D9zhB8iq.js → client-WbbvZtRX.js} +6 -6
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-D6t6vm1t.js → collaboration-CFuwyZbj.js} +1 -1
- package/dist/core.d.ts +6 -6
- package/dist/core.js +3 -3
- package/dist/gpu-lease/index.js +1 -1
- package/dist/{harness-Dq3XGyYd.js → harness-4D0kk6wY.js} +42 -18
- package/dist/{index-B4OJkmmC.d.ts → index--9j_Jlf_.d.ts} +38 -21
- package/dist/{index-DzGflA-b.d.ts → index-B3cGwaZF.d.ts} +7 -7
- package/dist/index.d.ts +10 -10
- package/dist/index.js +9 -9
- package/dist/intelligence/index.js +1 -1
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-Ch4SLGeF.d.ts → interactive-controller-D0uhx4eQ.d.ts} +4 -4
- package/dist/{interactive-controller-xKtZqua3.js → interactive-controller-lYjolooE.js} +5 -5
- package/dist/{lines-mOLUGPYs.d.ts → lines-Bi4Qt6Tn.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-TXcQXucY.js → local-cli-auth-B88ar8lp.js} +1 -1
- package/dist/{mcp-local-BrQix1EQ.js → mcp-local-CwEMrzKA.js} +2 -2
- package/dist/{preview-2zd6OZfJ.d.ts → preview-C-D4MroG.d.ts} +3 -3
- package/dist/{profile-schema-BuXg-MCu.js → profile-schema-B48XymtK.js} +19 -11
- package/dist/{public-templates-Bw4PJ99r.d.ts → public-templates-DeObgXZG.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-B-QXo3LK.js → sandbox-Cw7I8sgE.js} +11 -11
- package/dist/{select-seat-BbTGujaf.js → select-seat-Yn1FgzO8.js} +4 -4
- package/dist/select-seat-command.d.ts +2 -2
- package/dist/select-seat-command.js +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-BVrbZlD3.js → tangle-CsD0YyfD.js} +2 -2
- package/dist/{terminal-stream-types-iOZjIxLK.d.ts → terminal-stream-types-cEwFyagj.d.ts} +1 -1
- package/dist/{types-BYIgnmzV.d.ts → types-DKRvNtWx.d.ts} +3 -3
- package/package.json +8 -8
- package/dist/cli-auth-bundle-Vc_wO6gp.js +0 -2
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { A as requestedPublicProfileDigest, F as createAgentRunOutcomeTracker, G as parseBackendType, H as backendTypeSchema, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, U as isolationPrincipalSchema, V as ALL_BACKEND_TYPES, i as terminalUpgradeHeadersSupported, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./interactive-controller-
|
|
2
|
-
import { i as SANDBOX_SIZE_PRESET_NAMES, r as agentProfileSchema, t as agentProfileConfidentialSchema } from "./profile-schema-
|
|
3
|
-
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, tt as runtimeWorkspaceCwdSchema, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileFileMounts, y as getSandboxEventText } from "./sandbox-
|
|
4
|
-
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-
|
|
1
|
+
import { A as requestedPublicProfileDigest, F as createAgentRunOutcomeTracker, G as parseBackendType, H as backendTypeSchema, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, U as isolationPrincipalSchema, V as ALL_BACKEND_TYPES, i as terminalUpgradeHeadersSupported, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./interactive-controller-lYjolooE.js";
|
|
2
|
+
import { i as SANDBOX_SIZE_PRESET_NAMES, r as agentProfileSchema, t as agentProfileConfidentialSchema } from "./profile-schema-B48XymtK.js";
|
|
3
|
+
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, tt as runtimeWorkspaceCwdSchema, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileFileMounts, y as getSandboxEventText } from "./sandbox-Cw7I8sgE.js";
|
|
4
|
+
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-BnZd0wnt.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-DNmfKxwE.js";
|
|
6
|
-
import { _ as validateBatchRunRequest, a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, g as createBatchResultAccumulator, h as IntelligenceClient, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, n as RunsClient, o as SandboxFleetClient, p as parseBackendRegistryResponse, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryInteractionKindSchema } 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 validateBatchRunRequest, a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, g as createBatchResultAccumulator, h as IntelligenceClient, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, n as RunsClient, o as SandboxFleetClient, p as parseBackendRegistryResponse, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-WbbvZtRX.js";
|
|
7
|
+
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-ati_rM95.js";
|
|
8
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-CFuwyZbj.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-DjZMcB7V.js";
|
|
12
12
|
import { t as downloadFile } from "./file-download-I463VYUJ.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
|
-
import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-
|
|
16
|
-
import { s as BlueprintSandboxClient } from "./tangle-
|
|
15
|
+
import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-Yn1FgzO8.js";
|
|
16
|
+
import { s as BlueprintSandboxClient } from "./tangle-CsD0YyfD.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-DNmfKxwE.js";
|
|
2
|
-
import { i as fetchSandboxApi } from "../api-request-
|
|
2
|
+
import { i as fetchSandboxApi } from "../api-request-ati_rM95.js";
|
|
3
3
|
import { n as verifyDownload } from "../file-download-I463VYUJ.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 { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-
|
|
1
|
+
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-knQXEt0T.js";
|
|
2
2
|
export { BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, type InteractiveSessionIdentity, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
|
|
@@ -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-BnZd0wnt.js";
|
|
2
2
|
export { BrowserInteractiveSessionControlController, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-
|
|
2
|
-
import { u as AgentInteractiveSessionRef } from "./index
|
|
3
|
-
import { en as TerminalStream } from "./types-
|
|
4
|
-
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, g as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-
|
|
1
|
+
import { o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-cEwFyagj.js";
|
|
2
|
+
import { u as AgentInteractiveSessionRef } from "./index--9j_Jlf_.js";
|
|
3
|
+
import { en as TerminalStream } from "./types-DKRvNtWx.js";
|
|
4
|
+
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, g as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-knQXEt0T.js";
|
|
5
5
|
|
|
6
6
|
//#region src/interactive-controller.d.ts
|
|
7
7
|
/** The request fields supplied by an attach caller before control is claimed. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as agentProfileSchema } from "./profile-schema-
|
|
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-
|
|
1
|
+
import { E as boundedJsonSchema, o as canonicalCandidateDigest, w as boundedIdentifierSchema } from "./harness-4D0kk6wY.js";
|
|
2
|
+
import { r as agentProfileSchema } from "./profile-schema-B48XymtK.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-BnZd0wnt.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-DNmfKxwE.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-ati_rM95.js";
|
|
7
7
|
import { c as uploadChunked, l as awaitSdkResend } from "./chunked-upload-DuXDFxxJ.js";
|
|
8
8
|
import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
|
|
9
9
|
import { z } from "zod";
|
|
@@ -89,7 +89,7 @@ function normalizeEffectiveBackend(value) {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
92
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/runtime-attachments.js
|
|
93
93
|
const AgentRuntimeAttachmentsSchema = boundedJsonSchema.pipe(z.strictObject({ mcp: agentProfileSchema.shape.mcp.unwrap().superRefine((servers, context) => {
|
|
94
94
|
for (const alias of Object.keys(servers)) {
|
|
95
95
|
const result = boundedIdentifierSchema.safeParse(alias);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ha as BackendConfig, nn as CreateSandboxOptions } from "./types-
|
|
1
|
+
import { ha as BackendConfig, nn as CreateSandboxOptions } from "./types-DKRvNtWx.js";
|
|
2
2
|
|
|
3
3
|
//#region src/line-application.d.ts
|
|
4
4
|
/** Bounded callback request bytes after canonicalization, including JSON framing. */
|
package/dist/lines.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, I as LineSenderVerificationStart, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, V as LinesHttpClient, _ 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, 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-
|
|
1
|
+
import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, I as LineSenderVerificationStart, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, V as LinesHttpClient, _ 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, 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-Bi4Qt6Tn.js";
|
|
2
2
|
export { Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplicationAttachOptions, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineLimits, LineMember, LineMemberInstance, LineMemberPatch, LineMemberSpec, LineMessage, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineReplyGate, LineRespondAgent, LineRespondView, LineRole, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LineThread, LineTransport, LineVoice, LineVoiceOptions, LinesClient, LinesHttpClient, SandboxLines, lineInstanceKey, profileChannelReference };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-DuY2E2FD-
|
|
1
|
+
import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-DuY2E2FD-BdPoU6zT.js";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
import { basename, dirname, join } from "node:path";
|
|
4
4
|
import { homedir } from "node:os";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./api-request-
|
|
1
|
+
import "./api-request-ati_rM95.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.429"
|
|
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-
|
|
2
|
-
import { f as EnsureDevServerOptions, y as PreviewLinkInfo } from "./types-
|
|
3
|
-
import { t as Sandbox } from "./client-
|
|
1
|
+
import { O as SandboxInstance } from "./index-B3cGwaZF.js";
|
|
2
|
+
import { f as EnsureDevServerOptions, y as PreviewLinkInfo } from "./types-DKRvNtWx.js";
|
|
3
|
+
import { t as Sandbox } from "./client-BfY4DQiD.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/preview-operations.d.ts
|
|
6
6
|
type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as boundedStringSchema, _ as sha256DigestSchema, a as agentCandidateSecretRefSchema, c as environmentNameSchema, d as isSafeExecutable, f as isSafeRelativePath, g as relativePathSafetyIssues, i as trainedModelIdForArtifact, k as isBoundedJsonMaterial, l as headerNameSchema, m as looksLikeCredential, n as REASONING_EFFORTS, o as canonicalCandidateDigest, p as isWellFormedUnicode, s as canonicalCandidateJson, t as harnessTypeSchema, v as CONTRACT_MAX_ARRAY_LENGTH, w as boundedIdentifierSchema, y as CONTRACT_MAX_JSON_NODES } from "./harness-4D0kk6wY.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
3
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/deep-freeze.js
|
|
4
4
|
/**
|
|
5
5
|
* Make a validated value immutable before it is handed out.
|
|
6
6
|
*
|
|
@@ -20,7 +20,7 @@ function deepFreeze(value, seen = /* @__PURE__ */ new Set()) {
|
|
|
20
20
|
return Object.freeze(value);
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
23
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/profile-knowledge.js
|
|
24
24
|
/** Immutable Hub generation identities, never aliases such as latest or a caller's scope. */
|
|
25
25
|
const agentProfileKnowledgeRefSchema = z.strictObject({
|
|
26
26
|
sourceId: z.string().regex(/^[A-Za-z0-9_-]{1,128}$/),
|
|
@@ -38,7 +38,7 @@ const agentProfileKnowledgeRefsSchema = z.array(agentProfileKnowledgeRefSchema).
|
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
//#endregion
|
|
41
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
41
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/agent-profile-canonical.js
|
|
42
42
|
/** Why a value cannot be AgentProfile JSON, with the path of the offending entry. */
|
|
43
43
|
var AgentProfileValueError = class extends Error {
|
|
44
44
|
path;
|
|
@@ -114,7 +114,13 @@ function renderPath(path) {
|
|
|
114
114
|
return path.length === 0 ? "root" : path.join(".");
|
|
115
115
|
}
|
|
116
116
|
//#endregion
|
|
117
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
117
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/profile-file-output.js
|
|
118
|
+
const AgentFileOutputPolicySchema = z.strictObject({
|
|
119
|
+
name: boundedIdentifierSchema,
|
|
120
|
+
path: boundedStringSchema.refine((path) => path.length > 0 && relativePathSafetyIssues(path).length === 0 && path.split("/").every((part) => part.length > 0 && part !== "."), "File output must name one canonical relative managed-workspace path")
|
|
121
|
+
});
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/own-property-record.js
|
|
118
124
|
/**
|
|
119
125
|
* Zod records currently assign parsed values onto an ordinary object. The
|
|
120
126
|
* special own key `__proto__` therefore invokes the legacy prototype setter
|
|
@@ -197,7 +203,7 @@ function decodeRecordKey(value) {
|
|
|
197
203
|
return decoded;
|
|
198
204
|
}
|
|
199
205
|
//#endregion
|
|
200
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
206
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/proxy-secrets.js
|
|
201
207
|
/**
|
|
202
208
|
* Declarations request authority. The issuer intersects scope/expiry with authenticated tenant,
|
|
203
209
|
* issuer policy and lineage, without personal/team fallback, pinning immutable secret ID/revision.
|
|
@@ -363,7 +369,7 @@ z.strictObject({
|
|
|
363
369
|
requireInPlace: z.boolean().optional()
|
|
364
370
|
});
|
|
365
371
|
//#endregion
|
|
366
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
372
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/profile-kb/entry.js
|
|
367
373
|
function claim(text, source, basis = "documented", audience = "operator") {
|
|
368
374
|
return {
|
|
369
375
|
text,
|
|
@@ -385,7 +391,7 @@ function kbEntry(entry) {
|
|
|
385
391
|
};
|
|
386
392
|
}
|
|
387
393
|
//#endregion
|
|
388
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
394
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/profile-kb/models.js
|
|
389
395
|
const CHECKED = "2026-10-04";
|
|
390
396
|
const source = (url, locator) => ({
|
|
391
397
|
url,
|
|
@@ -693,7 +699,7 @@ const modelIndex = (() => {
|
|
|
693
699
|
/** Whether this exact spelling is a declared model id or alias. */
|
|
694
700
|
const profileKbNamesModel = (name) => modelIndex.has(name.trim().toLowerCase());
|
|
695
701
|
//#endregion
|
|
696
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
702
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/harness-capabilities.js
|
|
697
703
|
/** Canonical harness/model, effort and prompt controls. Model-specific capability comes from the serving catalog. */
|
|
698
704
|
/** low → high. `none` = thinking off; `ultracode` = max (claude-code mode). */
|
|
699
705
|
const reasoningLadder = REASONING_EFFORTS;
|
|
@@ -954,7 +960,7 @@ function harnessSystemPromptIntents(harness) {
|
|
|
954
960
|
return harnessSystemPromptControls[harness] ?? noSystemPromptControls;
|
|
955
961
|
}
|
|
956
962
|
//#endregion
|
|
957
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
963
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/sandbox-size.js
|
|
958
964
|
/**
|
|
959
965
|
* Portable sandbox size vocabulary.
|
|
960
966
|
*
|
|
@@ -977,7 +983,7 @@ const SANDBOX_SIZE_PRESET_NAMES = [
|
|
|
977
983
|
"large"
|
|
978
984
|
];
|
|
979
985
|
//#endregion
|
|
980
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
986
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/profile-schema.js
|
|
981
987
|
const profileOpaqueValueSchema = z.unknown().transform((value, context) => {
|
|
982
988
|
if (value === void 0 || isBoundedJsonMaterial(value, {
|
|
983
989
|
dataPropertiesOnly: true,
|
|
@@ -1222,6 +1228,7 @@ const agentProfileResourceRemovalSchema = z.strictObject({
|
|
|
1222
1228
|
failOnError: z.literal(true).optional()
|
|
1223
1229
|
});
|
|
1224
1230
|
const agentProfileDiffRemovalSchema = z.strictObject({
|
|
1231
|
+
outputFile: z.literal(true).optional(),
|
|
1225
1232
|
identity: z.literal(true).optional(),
|
|
1226
1233
|
tags: removeListSchema.optional(),
|
|
1227
1234
|
prompt: z.union([z.literal(true), agentProfilePromptRemovalSchema]).optional(),
|
|
@@ -1352,6 +1359,7 @@ const agentProfileMetadataSchema = ownPropertyRecordSchema(z.unknown(), { prepar
|
|
|
1352
1359
|
* with that interface by the compile-time guard at the bottom of this file.
|
|
1353
1360
|
*/
|
|
1354
1361
|
const agentProfileSchema = z.strictObject({
|
|
1362
|
+
outputFile: AgentFileOutputPolicySchema.optional(),
|
|
1355
1363
|
name: z.string().optional(),
|
|
1356
1364
|
description: z.string().optional(),
|
|
1357
1365
|
version: z.string().optional(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as SandboxError } from "./terminal-stream-types-
|
|
2
|
-
import { Qn as PublishPublicTemplateVersionOptions, Xn as PublicTemplateVersionInfo, Yn as PublicTemplateInfo, Zn as PublishPublicTemplateOptions, xr as HttpClient } from "./types-
|
|
1
|
+
import { R as SandboxError } from "./terminal-stream-types-cEwFyagj.js";
|
|
2
|
+
import { Qn as PublishPublicTemplateVersionOptions, Xn as PublicTemplateVersionInfo, Yn as PublicTemplateInfo, Zn as PublishPublicTemplateOptions, xr as HttpClient } from "./types-DKRvNtWx.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/public-templates.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
1
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-DeObgXZG.js";
|
|
2
2
|
export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
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, q as ValidationError, u as ScopedToken, w as CapabilityError, z as SandboxErrorJson } from "./terminal-stream-types-
|
|
2
|
-
import { An as FileRenameResult, Bi as CreateTaskSessionOptions, Bn as RenameOptions, Bt as SandboxRuntimeHealth, Dn as FileReadBatchResult, En as FileReadBatchOptions, Fn as FileUsageOptions, Gt as SandboxTerminalRequestOptions, Hn as UploadProgress, Ht as SandboxTerminalCreateOptions, In as FileUsageResult, Ji as SentSessionMessage, Ki as SendSessionMessageOptions, Ln as FileWriteResult, Lt as SandboxPortBinding, Nn as FileTreeOptions, Pi as CommitTaskSessionOptions, Pn as FileTreeResult, Qi as SessionExecutionStatus, Ti as SandboxEvent, Un as WriteFileOptions, Ut as SandboxTerminalInfo, Wi as ListMessagesOptions, Wt as SandboxTerminalManager, Xi as SessionEventStreamOptions, Zi as SessionExecutionInfo, aa as SessionMessageAdmission, bn as ChunkedUploadResult, ca as TaskSessionChanges, da as TaskSessionInfo, en as TerminalStream, ia as SessionMessage, la as TaskSessionCommitResult, qi as SendSessionMessageRequest, ta as SessionInfo, xr as HttpClient, yn as ChunkedUploadOptions, zi as CreateSessionOptions } from "./types-
|
|
3
|
-
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-
|
|
4
|
-
import { t as BrowserInteractiveSessionController } from "./interactive-controller-
|
|
5
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
1
|
+
import { 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, q as ValidationError, u as ScopedToken, w as CapabilityError, z as SandboxErrorJson } from "./terminal-stream-types-cEwFyagj.js";
|
|
2
|
+
import { An as FileRenameResult, Bi as CreateTaskSessionOptions, Bn as RenameOptions, Bt as SandboxRuntimeHealth, Dn as FileReadBatchResult, En as FileReadBatchOptions, Fn as FileUsageOptions, Gt as SandboxTerminalRequestOptions, Hn as UploadProgress, Ht as SandboxTerminalCreateOptions, In as FileUsageResult, Ji as SentSessionMessage, Ki as SendSessionMessageOptions, Ln as FileWriteResult, Lt as SandboxPortBinding, Nn as FileTreeOptions, Pi as CommitTaskSessionOptions, Pn as FileTreeResult, Qi as SessionExecutionStatus, Ti as SandboxEvent, Un as WriteFileOptions, Ut as SandboxTerminalInfo, Wi as ListMessagesOptions, Wt as SandboxTerminalManager, Xi as SessionEventStreamOptions, Zi as SessionExecutionInfo, aa as SessionMessageAdmission, bn as ChunkedUploadResult, ca as TaskSessionChanges, da as TaskSessionInfo, en as TerminalStream, ia as SessionMessage, la as TaskSessionCommitResult, qi as SendSessionMessageRequest, ta as SessionInfo, xr as HttpClient, yn as ChunkedUploadOptions, zi as CreateSessionOptions } from "./types-DKRvNtWx.js";
|
|
3
|
+
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-knQXEt0T.js";
|
|
4
|
+
import { t as BrowserInteractiveSessionController } from "./interactive-controller-D0uhx4eQ.js";
|
|
5
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-DXctPOwJ.js";
|
|
6
6
|
|
|
7
7
|
//#region src/lib/chunked-upload.d.ts
|
|
8
8
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
package/dist/runtime.js
CHANGED
|
@@ -1,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-lYjolooE.js";
|
|
2
|
+
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-BnZd0wnt.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-DNmfKxwE.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-ati_rM95.js";
|
|
5
5
|
import { c as uploadChunked } from "./chunked-upload-DuXDFxxJ.js";
|
|
6
6
|
//#region src/runtime-client.ts
|
|
7
7
|
function requireToken(token) {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { A as requestedPublicProfileDigest, B as AgentRuntimeAttachmentsSchema, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, W 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-
|
|
2
|
-
import {
|
|
3
|
-
import { a as ProxySecretReceiptSchema, r as agentProfileSchema } from "./profile-schema-
|
|
4
|
-
import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-
|
|
5
|
-
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-
|
|
1
|
+
import { A as requestedPublicProfileDigest, B as AgentRuntimeAttachmentsSchema, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, W 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-lYjolooE.js";
|
|
2
|
+
import { D as boundedStringSchema, _ as sha256DigestSchema, o as canonicalCandidateDigest, s as canonicalCandidateJson, w as boundedIdentifierSchema } from "./harness-4D0kk6wY.js";
|
|
3
|
+
import { a as ProxySecretReceiptSchema, r as agentProfileSchema } from "./profile-schema-B48XymtK.js";
|
|
4
|
+
import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-BnZd0wnt.js";
|
|
5
|
+
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-C2KLuq0G.js";
|
|
6
6
|
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-DNmfKxwE.js";
|
|
7
7
|
import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-BZbs5rig.js";
|
|
8
8
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
|
|
9
9
|
import { a as backoffDelayMs, o as isUndelivered, r as abortableSleep } from "./retry-policy-oW3_ljoc.js";
|
|
10
|
-
import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-
|
|
10
|
+
import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-ati_rM95.js";
|
|
11
11
|
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, t as isInsideReservedDir, u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-DOSTbUSR.js";
|
|
12
12
|
import { c as uploadChunked, l as awaitSdkResend, u as takeSdkTurn } from "./chunked-upload-DuXDFxxJ.js";
|
|
13
13
|
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-sGVP8skk.js";
|
|
14
14
|
import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-DTdbCbUM.js";
|
|
15
15
|
import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
|
|
16
16
|
import { t as runPreparedProcess } from "./prepared-process-DQ_68Ofg.js";
|
|
17
|
-
import { a as isBackendType, r as cliAuthReferenceSchema } from "./cli-auth-bundle-DuY2E2FD-
|
|
18
|
-
import "./cli-auth-bundle-
|
|
17
|
+
import { a as isBackendType, r as cliAuthReferenceSchema } from "./cli-auth-bundle-DuY2E2FD-BdPoU6zT.js";
|
|
18
|
+
import "./cli-auth-bundle-COXkowvX.js";
|
|
19
19
|
import { n as SandboxLines } from "./lines-DjZMcB7V.js";
|
|
20
20
|
import { t as downloadFile } from "./file-download-I463VYUJ.js";
|
|
21
21
|
import { z } from "zod";
|
|
@@ -27,7 +27,7 @@ import { PART_TEXT, PART_TEXT_SUFFIX, locatePart } from "@tangle-network/agent-c
|
|
|
27
27
|
import { readTokenUsage } from "@tangle-network/agent-core";
|
|
28
28
|
import "@tangle-network/agent-interface/environment-provider";
|
|
29
29
|
import { OTLP_SPAN_KIND, OTLP_STATUS_CODE, msToUnixNano, otlpTraceExport, toOtlpAttributes, toW3CSpanId, toW3CTraceId } from "@tangle-network/agent-trace-contract/otlp";
|
|
30
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
30
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/provider-config.js
|
|
31
31
|
const nativeWebSearchKeys = new Set(["websearch"]);
|
|
32
32
|
const nativeWebFetchKeys = new Set(["webfetch", "fetch"]);
|
|
33
33
|
function resolveNativeWebTools(tools) {
|
|
@@ -42,7 +42,7 @@ function resolveNativeWebTools(tools) {
|
|
|
42
42
|
return posture;
|
|
43
43
|
}
|
|
44
44
|
//#endregion
|
|
45
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
45
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/environment-interactive-start.js
|
|
46
46
|
const AgentInteractiveSessionRunCoordinatesSchema = z.strictObject({
|
|
47
47
|
provider: boundedIdentifierSchema,
|
|
48
48
|
environmentId: boundedIdentifierSchema,
|
|
@@ -119,7 +119,7 @@ function runCoordinates(run) {
|
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
//#endregion
|
|
122
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
122
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.27/node_modules/@tangle-network/agent-interface/dist/environment-terminal.js
|
|
123
123
|
const terminalDimensionSchema = z.number().int().positive().max(1e4);
|
|
124
124
|
/**
|
|
125
125
|
* Provider-neutral handle for one interactive terminal.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as agentProfileSchema } from "./profile-schema-
|
|
2
|
-
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-
|
|
1
|
+
import { r as agentProfileSchema } from "./profile-schema-B48XymtK.js";
|
|
2
|
+
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-C2KLuq0G.js";
|
|
3
3
|
import { C as SandboxError, O as ValidationError, u as CapabilityError } from "./errors-DNmfKxwE.js";
|
|
4
4
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
|
|
5
|
-
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-DuY2E2FD-
|
|
6
|
-
import "./cli-auth-bundle-
|
|
5
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-DuY2E2FD-BdPoU6zT.js";
|
|
6
|
+
import "./cli-auth-bundle-COXkowvX.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region ../../../packages/runtime-contracts/dist/seat-selection.js
|
|
9
9
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as SandboxError } from "./terminal-stream-types-
|
|
2
|
-
import { _t as SeatOwnerTransport, bt as SeatSelectionRequest, ft as SEAT_COMMAND_TIMEOUT_MS } from "./client-
|
|
1
|
+
import { R as SandboxError } from "./terminal-stream-types-cEwFyagj.js";
|
|
2
|
+
import { _t as SeatOwnerTransport, bt as SeatSelectionRequest, ft as SEAT_COMMAND_TIMEOUT_MS } from "./client-BfY4DQiD.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 { C as SandboxError, O as ValidationError } from "./errors-DNmfKxwE.js";
|
|
2
|
-
import { r as SEAT_OWNER_MAX_RESPONSE_BYTES, s as seatOwnerTimeoutMs, t as SEAT_COMMAND_TIMEOUT_MS } from "./select-seat-
|
|
2
|
+
import { r as SEAT_OWNER_MAX_RESPONSE_BYTES, s as seatOwnerTimeoutMs, t as SEAT_COMMAND_TIMEOUT_MS } from "./select-seat-Yn1FgzO8.js";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
4
|
//#region src/select-seat-command.ts
|
|
5
5
|
/**
|
|
@@ -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-ati_rM95.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-B3cGwaZF.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-CsD0YyfD.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-Cw7I8sgE.js";
|
|
2
2
|
import { a as readResponseJson } from "./errors-DNmfKxwE.js";
|
|
3
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
3
|
+
import { i as fetchSandboxApi } from "./api-request-ati_rM95.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as AgentProfile, a as AgentInteractiveSessionControlClaim, u as AgentInteractiveSessionRef } from "./index
|
|
1
|
+
import { T as AgentProfile, a as AgentInteractiveSessionControlClaim, u as AgentInteractiveSessionRef } from "./index--9j_Jlf_.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/batch-events.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as BatchBackendInput, B as SandboxErrorMetadata, Y as SandboxCreateReceipt, a as TerminalStreamOptions, g as TerminalReadyInfo, i as TerminalStreamHandlers, s as TerminalStreamToken, t as TerminalAttachTimings } from "./terminal-stream-types-
|
|
2
|
-
import { C as InteractionRequest, D as AgentProfileConfidential, E as AgentProfileCapabilities, F as ProxySecretReceipt, N as AgentProfileValidationResult, P as ReasoningEffort, R as PlanContinuation, T as AgentProfile, n as SandboxSizePreset, v as AgentExactRunControlRef, x as AgentRuntimeAttachments } from "./index
|
|
3
|
-
import { r as CliAuthReference } from "./cli-auth-bundle-
|
|
1
|
+
import { $ as BatchBackendInput, B as SandboxErrorMetadata, Y as SandboxCreateReceipt, a as TerminalStreamOptions, g as TerminalReadyInfo, i as TerminalStreamHandlers, s as TerminalStreamToken, t as TerminalAttachTimings } from "./terminal-stream-types-cEwFyagj.js";
|
|
2
|
+
import { C as InteractionRequest, D as AgentProfileConfidential, E as AgentProfileCapabilities, F as ProxySecretReceipt, N as AgentProfileValidationResult, P as ReasoningEffort, R as PlanContinuation, T as AgentProfile, n as SandboxSizePreset, v as AgentExactRunControlRef, x as AgentRuntimeAttachments } from "./index--9j_Jlf_.js";
|
|
3
|
+
import { r as CliAuthReference } from "./cli-auth-bundle-a7NYzsfF.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region ../../../packages/runtime-contracts/dist/backend-types.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.429",
|
|
4
4
|
"description": "TypeScript SDK for Tangle Sandbox: create cloud sandboxes and run commands and coding agents in them",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
},
|
|
110
110
|
"dependencies": {
|
|
111
111
|
"@tangle-network/agent-core": "^1.0.3",
|
|
112
|
-
"@tangle-network/agent-interface": "^5.10.
|
|
112
|
+
"@tangle-network/agent-interface": "^5.10.27",
|
|
113
113
|
"@tangle-network/agent-trace-contract": "^2.2.0",
|
|
114
114
|
"tar-stream": "3.2.2",
|
|
115
115
|
"zod": "^4.6.7"
|
|
@@ -153,15 +153,15 @@
|
|
|
153
153
|
"vitest": "^4.1.12",
|
|
154
154
|
"ws": "^8.22.0",
|
|
155
155
|
"yjs": "13.6.33",
|
|
156
|
-
"@products/sandbox-test-utils": "0.0.0",
|
|
157
|
-
"@repo/shared": "0.0.0",
|
|
158
|
-
"@tangle-network/runtime-contracts": "0.20.0",
|
|
159
156
|
"@tangle-network/agent-profile-materialize": "0.27.1",
|
|
160
|
-
"@tangle-network/cli-agent-registry": "0.15.0"
|
|
157
|
+
"@tangle-network/cli-agent-registry": "0.15.0",
|
|
158
|
+
"@tangle-network/runtime-contracts": "0.20.0",
|
|
159
|
+
"@repo/shared": "0.0.0",
|
|
160
|
+
"@products/sandbox-test-utils": "0.0.0"
|
|
161
161
|
},
|
|
162
162
|
"tangleRelease": {
|
|
163
|
-
"sourceSha": "
|
|
164
|
-
"mergedAt": "2026-11-
|
|
163
|
+
"sourceSha": "50f13b2b8a50016865e76b70e37eb345c0ccbefc",
|
|
164
|
+
"mergedAt": "2026-11-16T16:24:51-08:00"
|
|
165
165
|
},
|
|
166
166
|
"scripts": {
|
|
167
167
|
"build": "node scripts/build-dist.mjs && bash scripts/verify-dist.sh",
|