@tangle-network/sandbox 0.9.4-develop.20260708194108.6294bc2 → 0.9.4-develop.20260710091052.24dec02
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 +2 -2
- package/dist/{client-CUkiFKup.d.ts → client-BlHX4Cf0.d.ts} +1 -1
- package/dist/{client-13KFLnXC.js → client-CND_YEiQ.js} +1 -1
- package/dist/core.d.ts +2 -2
- package/dist/core.js +2 -2
- package/dist/{index-fVm_yNim.d.ts → index-CuwpLz65.d.ts} +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/{sandbox-YVuFaRGk.d.ts → sandbox-BEkgXuYK.d.ts} +28 -1
- package/dist/{sandbox-B6-5VUWS.js → sandbox-DMDtL1TH.js} +38 -2
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-CaIGtgCR.js → tangle-TMhO5qrf.js} +4 -4
- package/package.json +2 -2
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as CodeExecutionResult, J as CodeResultPart, K as CodeLanguage, W as CodeExecutionOptions, n as SandboxInstance } from "../sandbox-
|
|
2
|
-
import { i as SandboxClient } from "../client-
|
|
1
|
+
import { G as CodeExecutionResult, J as CodeResultPart, K as CodeLanguage, W as CodeExecutionOptions, n as SandboxInstance } from "../sandbox-BEkgXuYK.js";
|
|
2
|
+
import { i as SandboxClient } from "../client-BlHX4Cf0.js";
|
|
3
3
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/tools/_specs.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as CreateSandboxFleetOptions, $n as SandboxFleetMachineRecord, An as PublishPublicTemplateVersionOptions, B as BatchResult, Bn as SandboxEnvironment, Br as SshKeysManager, Ct as FleetDispatchStreamOptions, Dn as PublicTemplateInfo, Dt as FleetPromptDispatchOptions, Et as FleetMachineId, Hn as SandboxFleetArtifact, Jt as IntelligenceReport, Kn as SandboxFleetDispatchResponse, Mn as ReapExpiredSandboxFleetsResult, Nn as ReconcileSandboxFleetsOptions, On as PublicTemplateVersionInfo, Ot as FleetPromptDispatchResult, Pn as ReconcileSandboxFleetsResult, Q as CreateRequestOptions, Qr as TokenRefreshHandler, Qt as IntelligenceReportWindow, R as BatchEvent, Rn as SandboxClientConfig, Sn as PromptResult, St as FleetDispatchResultBufferOptions, Tt as FleetExecDispatchResult, Un as SandboxFleetArtifactSpec, V as BatchTask, Wn as SandboxFleetCostEstimate, Wr as SubscriptionInfo, Xt as IntelligenceReportCompareTo, Yn as SandboxFleetInfo, Yt as IntelligenceReportBudget, Z as CreateIntelligenceReportOptions, _t as ExecResult, a as TraceExportSink, ar as SandboxFleetToken, bn as PromptInputPart, bt as FleetDispatchCancelResult, et as CreateSandboxFleetTokenOptions, fr as SandboxFleetWorkspaceReconcileResult, gt as ExecOptions, hr as SandboxInfo, i as TraceExportResult, ii as UsageInfo, j as AttachSandboxFleetMachineOptions, jn as ReapExpiredSandboxFleetsOptions, jr as SecretsManager, kn as PublishPublicTemplateOptions, lr as SandboxFleetTraceOptions, mr as SandboxFleetWorkspaceSnapshotResult, n as SandboxInstance, nn as ListSandboxOptions, nt as CreateSandboxOptions, or as SandboxFleetTraceBundle, pr as SandboxFleetWorkspaceRestoreResult, qn as SandboxFleetDriverCapability, rr as SandboxFleetOperationsSummary, t as HttpClient, tn as ListSandboxFleetOptions, tr as SandboxFleetManifest, tt as CreateSandboxFleetWithCoordinatorOptions, ur as SandboxFleetUsage, wt as FleetExecDispatchOptions, xn as PromptOptions, xt as FleetDispatchResultBuffer, z as BatchOptions } from "./sandbox-
|
|
1
|
+
import { $ as CreateSandboxFleetOptions, $n as SandboxFleetMachineRecord, An as PublishPublicTemplateVersionOptions, B as BatchResult, Bn as SandboxEnvironment, Br as SshKeysManager, Ct as FleetDispatchStreamOptions, Dn as PublicTemplateInfo, Dt as FleetPromptDispatchOptions, Et as FleetMachineId, Hn as SandboxFleetArtifact, Jt as IntelligenceReport, Kn as SandboxFleetDispatchResponse, Mn as ReapExpiredSandboxFleetsResult, Nn as ReconcileSandboxFleetsOptions, On as PublicTemplateVersionInfo, Ot as FleetPromptDispatchResult, Pn as ReconcileSandboxFleetsResult, Q as CreateRequestOptions, Qr as TokenRefreshHandler, Qt as IntelligenceReportWindow, R as BatchEvent, Rn as SandboxClientConfig, Sn as PromptResult, St as FleetDispatchResultBufferOptions, Tt as FleetExecDispatchResult, Un as SandboxFleetArtifactSpec, V as BatchTask, Wn as SandboxFleetCostEstimate, Wr as SubscriptionInfo, Xt as IntelligenceReportCompareTo, Yn as SandboxFleetInfo, Yt as IntelligenceReportBudget, Z as CreateIntelligenceReportOptions, _t as ExecResult, a as TraceExportSink, ar as SandboxFleetToken, bn as PromptInputPart, bt as FleetDispatchCancelResult, et as CreateSandboxFleetTokenOptions, fr as SandboxFleetWorkspaceReconcileResult, gt as ExecOptions, hr as SandboxInfo, i as TraceExportResult, ii as UsageInfo, j as AttachSandboxFleetMachineOptions, jn as ReapExpiredSandboxFleetsOptions, jr as SecretsManager, kn as PublishPublicTemplateOptions, lr as SandboxFleetTraceOptions, mr as SandboxFleetWorkspaceSnapshotResult, n as SandboxInstance, nn as ListSandboxOptions, nt as CreateSandboxOptions, or as SandboxFleetTraceBundle, pr as SandboxFleetWorkspaceRestoreResult, qn as SandboxFleetDriverCapability, rr as SandboxFleetOperationsSummary, t as HttpClient, tn as ListSandboxFleetOptions, tr as SandboxFleetManifest, tt as CreateSandboxFleetWithCoordinatorOptions, ur as SandboxFleetUsage, wt as FleetExecDispatchOptions, xn as PromptOptions, xt as FleetDispatchResultBuffer, z as BatchOptions } from "./sandbox-BEkgXuYK.js";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/sse-parser.d.ts
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as normalizeConnection, h as parseSSEStream, n as normalizeStartupDiagnostics, p as encodePromptForWire, t as SandboxInstance, u as exportTraceBundle } from "./sandbox-
|
|
1
|
+
import { c as normalizeConnection, h as parseSSEStream, n as normalizeStartupDiagnostics, p as encodePromptForWire, t as SandboxInstance, u as exportTraceBundle } from "./sandbox-DMDtL1TH.js";
|
|
2
2
|
import { d as ValidationError, f as parseErrorResponse, i as NotFoundError, r as NetworkError, t as AuthError, u as TimeoutError } from "./errors-DZsfJUuc.js";
|
|
3
3
|
//#region src/resources.ts
|
|
4
4
|
/**
|
package/dist/core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rn as SandboxClientConfig, _t as ExecResult, br as SandboxStatus, dn as PreviewLinkInfo, fn as PreviewLinkManager, gt as ExecOptions, hr as SandboxInfo, n as SandboxInstance, nt as CreateSandboxOptions, on as NetworkConfig } from "./sandbox-
|
|
2
|
-
import { i as SandboxClient } from "./client-
|
|
1
|
+
import { Rn as SandboxClientConfig, _t as ExecResult, br as SandboxStatus, dn as PreviewLinkInfo, fn as PreviewLinkManager, gt as ExecOptions, hr as SandboxInfo, n as SandboxInstance, nt as CreateSandboxOptions, on as NetworkConfig } from "./sandbox-BEkgXuYK.js";
|
|
2
|
+
import { i as SandboxClient } from "./client-BlHX4Cf0.js";
|
|
3
3
|
import { a as PartialFailureError, c as SandboxErrorJson, d as StateError, f as TimeoutError, i as NotFoundError, l as SandboxFailureDetail, n as CapabilityError, o as QuotaError, p as ValidationError, r as NetworkError, s as SandboxError, t as AuthError, u as ServerError } from "./errors-1Se5ATyZ.js";
|
|
4
4
|
export { AuthError, CapabilityError, type CreateSandboxOptions, type ExecOptions, type ExecResult, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, QuotaError, SandboxClient as Sandbox, SandboxClient, type SandboxClientConfig, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, type SandboxInfo, SandboxInstance, type SandboxStatus, ServerError, StateError, TimeoutError, ValidationError };
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as SandboxInstance } from "./sandbox-
|
|
1
|
+
import { t as SandboxInstance } from "./sandbox-DMDtL1TH.js";
|
|
2
2
|
import { a as PartialFailureError, c as ServerError, d as ValidationError, i as NotFoundError, l as StateError, n as CapabilityError, o as QuotaError, r as NetworkError, s as SandboxError, t as AuthError, u as TimeoutError } from "./errors-DZsfJUuc.js";
|
|
3
|
-
import { n as SandboxClient } from "./client-
|
|
3
|
+
import { n as SandboxClient } from "./client-CND_YEiQ.js";
|
|
4
4
|
export { AuthError, CapabilityError, NetworkError, NotFoundError, PartialFailureError, QuotaError, SandboxClient as Sandbox, SandboxClient, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as SandboxInstance, nt as CreateSandboxOptions, t as HttpClient } from "./sandbox-
|
|
1
|
+
import { n as SandboxInstance, nt as CreateSandboxOptions, t as HttpClient } from "./sandbox-BEkgXuYK.js";
|
|
2
2
|
|
|
3
3
|
//#region src/tangle/abi.d.ts
|
|
4
4
|
/**
|
|
@@ -127,8 +127,8 @@ declare const SandboxCreateParamTypes: readonly [{
|
|
|
127
127
|
readonly name: "ssh_enabled";
|
|
128
128
|
readonly type: "bool";
|
|
129
129
|
}, {
|
|
130
|
-
readonly name: "
|
|
131
|
-
readonly type: "string
|
|
130
|
+
readonly name: "ssh_public_key";
|
|
131
|
+
readonly type: "string";
|
|
132
132
|
}, {
|
|
133
133
|
readonly name: "web_terminal_enabled";
|
|
134
134
|
readonly type: "bool";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $ as CreateSandboxFleetOptions, $n as SandboxFleetMachineRecord, $r as ToolsConfig, $t as ListMessagesOptions, A as AttachGpuLeaseOptions, An as PublishPublicTemplateVersionOptions, Ar as SecretInfo, At as GitAuth, B as BatchResult, Bn as SandboxEnvironment, Bt as GpuLeaseExecResult, C as SandboxMcpEndpoint, Ci as defineAgentProfile, Cn as ProvisionEvent, Cr as SandboxTraceExport, Ct as FleetDispatchStreamOptions, D as AcceleratorKind, Dn as PublicTemplateInfo, Dr as ScopedTokenScope, Dt as FleetPromptDispatchOptions, E as buildSandboxMcpConfig, Ei as mergeAgentProfiles, En as ProvisionStep, Er as ScopedToken, Et as FleetMachineId, F as BackendManager, Fn as RunCodeOptions, Fr as SessionMessage, Ft as GitStatus, Gn as SandboxFleetDispatchFailureClass, Gr as TaskOptions, Gt as HostAgentDriverConfig, H as BatchTaskResult, Hn as SandboxFleetArtifact, Hr as StartupOperation, Ht as GpuLeaseProviderName, I as BackendStatus, In as SSHCommandDescriptor, Ir as SessionStatus, It as GpuLease, Jn as SandboxFleetDriverTimings, Jr as TeeAttestationReport, Jt as IntelligenceReport, Kn as SandboxFleetDispatchResponse, Kr as TaskResult, Kt as HostAgentRuntimeBackend, L as BackendType, Ln as SSHCredentials, Lr as SnapshotInfo, Lt as GpuLeaseBilling, M as BackendCapabilities, Mn as ReapExpiredSandboxFleetsResult, Mr as SessionEventStreamOptions, Mt as GitCommit, N as BackendConfig, Nn as ReconcileSandboxFleetsOptions, Nr as SessionInfo, Nt as GitConfig, O as AccessPolicyRule, On as PublicTemplateVersionInfo, Or as SearchMatch, P as BackendInfo, Pn as ReconcileSandboxFleetsResult, Pr as SessionListOptions, Pt as GitDiff, Qn as SandboxFleetMachineMeteredUsage, Qr as TokenRefreshHandler, Qt as IntelligenceReportWindow, R as BatchEvent, Rn as SandboxClientConfig, Rr as SnapshotOptions, Rt as GpuLeaseCommandResult, S as SandboxMcpConfig, Si as AgentSubagentProfile, Sn as PromptResult, Sr as SandboxTraceEvent, St as FleetDispatchResultBufferOptions, T as buildControlPlaneMcpConfig, Ti as defineInlineResource, Tn as ProvisionStatus, Tr as SandboxUser, U as BranchOptions, Un as SandboxFleetArtifactSpec, Ur as StorageConfig, Ut as GpuLeaseStatus, V as BatchTask, Vn as SandboxEvent, Vr as StartupDiagnostics, Vt as GpuLeaseManager, Wn as SandboxFleetCostEstimate, Wr as SubscriptionInfo, Wt as GpuType, X as CreateGpuLeaseOptions, Xn as SandboxFleetIntelligenceEnvelope, Xr as TeePublicKey, Xt as IntelligenceReportCompareTo, Y as CompletedTurnResult, Yn as SandboxFleetInfo, Yr as TeeAttestationResponse, Yt as IntelligenceReportBudget, Z as CreateIntelligenceReportOptions, Zn as SandboxFleetMachine, Zr as TeePublicKeyResponse, Zt as IntelligenceReportSubjectType, _ as StartInteractiveOptions, _i as AgentProfilePrompt, _n as ProcessSignal, _r as SandboxPermissionsConfig, _t as ExecResult, a as TraceExportSink, ai as WaitForOptions, an as MkdirOptions, ar as SandboxFleetToken, at as DispatchPromptOptions, b as CONTROL_PLANE_MCP_SERVER_NAME, bi as AgentProfileValidationIssue, br as SandboxStatus, bt as FleetDispatchCancelResult, c as otelTraceIdForTangleTrace, ci as WriteManyOptions, cn as NonHostAgentDriverConfig, cr as SandboxFleetTraceExport, ct as DownloadProgress, d as InteractiveAuthFile, di as AgentProfileConfidential, dn as PreviewLinkInfo, dr as SandboxFleetWorkspace, dt as DriverInfo, ei as TurnDriveResult, en as ListOptions, er as SandboxFleetMachineSpec, f as InteractiveSessionHandle, fi as AgentProfileConnection, fn as PreviewLinkManager, fr as SandboxFleetWorkspaceReconcileResult, ft as DriverType, g as RespondToPermissionOptions, gi as AgentProfilePermissionValue, gn as ProcessManager, gr as SandboxIntelligenceEnvelope, gt as ExecOptions, h as InterruptResult, hi as AgentProfileModelHints, hn as ProcessLogEntry, hr as SandboxInfo, ht as EventStreamOptions, i as TraceExportResult, ii as UsageInfo, in as MintScopedTokenOptions, ir as SandboxFleetPolicy, it as DirectoryPermission, j as AttachSandboxFleetMachineOptions, jn as ReapExpiredSandboxFleetsOptions, jr as SecretsManager, jt as GitBranch, k as AddUserOptions, kn as PublishPublicTemplateOptions, kr as SearchOptions, kt as GPU_LEASE_PROVIDER_NAMES, l as toOtelJson, li as AgentProfile, ln as PermissionLevel, lr as SandboxFleetTraceOptions, lt as DriveTurnOptions, m as InteractiveSessionInfo, mi as AgentProfileMcpServer, mn as ProcessInfo, mr as SandboxFleetWorkspaceSnapshotResult, mt as EgressPolicy, n as SandboxInstance, ni as UploadOptions, nn as ListSandboxOptions, nr as SandboxFleetManifestMachine, nt as CreateSandboxOptions, o as buildTraceExportPayload, oi as WriteFileOptions, on as NetworkConfig, or as SandboxFleetTraceBundle, ot as DispatchedSession, p as InteractiveSessionHost, pi as AgentProfileFileMount, pn as Process, pr as SandboxFleetWorkspaceRestoreResult, pt as EgressManager, q as CodeResult, qn as SandboxFleetDriverCapability, qr as TeeAttestationOptions, qt as InstalledTool, r as TraceExportFormat, ri as UploadProgress, rn as McpServerConfig, rr as SandboxFleetOperationsSummary, rt as DeleteOptions, s as exportTraceBundle, si as WriteManyFile, sn as NetworkManager, sr as SandboxFleetTraceEvent, st as DownloadOptions, ti as UpdateUserOptions, tn as ListSandboxFleetOptions, tr as SandboxFleetManifest, tt as CreateSandboxFleetWithCoordinatorOptions, u as SandboxSession, ui as AgentProfileCapabilities, un as PermissionsManager, ur as SandboxFleetUsage, ut as DriverConfig, v as BuildControlPlaneMcpConfigOptions, vi as AgentProfileResourceRef, vn as ProcessSpawnOptions, vr as SandboxResourceUsage, vt as FileInfo, w as SandboxMcpServerEntry, wi as defineGitHubResource, wn as ProvisionResult, wr as SandboxTraceOptions, wt as FleetExecDispatchOptions, x as SANDBOX_MCP_SERVER_NAME, xi as AgentProfileValidationResult, xn as PromptOptions, xr as SandboxTraceBundle, xt as FleetDispatchResultBuffer, y as BuildSandboxMcpConfigOptions, yi as AgentProfileResources, yn as ProcessStatus, yr as SandboxResources, yt as FileSystem, z as BatchOptions, zn as SandboxConnection, zr as SnapshotResult, zt as GpuLeaseExecOptions } from "./sandbox-
|
|
2
|
-
import { a as Team, c as SandboxFleet, d as ParsedSSEEvent, f as parseSSEStream, i as SandboxClient, l as SandboxFleetClient, n as IntelligenceClient, o as TeamInvitation, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as ParseSSEStreamOptions } from "./client-
|
|
1
|
+
import { $ as CreateSandboxFleetOptions, $n as SandboxFleetMachineRecord, $r as ToolsConfig, $t as ListMessagesOptions, A as AttachGpuLeaseOptions, An as PublishPublicTemplateVersionOptions, Ar as SecretInfo, At as GitAuth, B as BatchResult, Bn as SandboxEnvironment, Bt as GpuLeaseExecResult, C as SandboxMcpEndpoint, Ci as defineAgentProfile, Cn as ProvisionEvent, Cr as SandboxTraceExport, Ct as FleetDispatchStreamOptions, D as AcceleratorKind, Dn as PublicTemplateInfo, Dr as ScopedTokenScope, Dt as FleetPromptDispatchOptions, E as buildSandboxMcpConfig, Ei as mergeAgentProfiles, En as ProvisionStep, Er as ScopedToken, Et as FleetMachineId, F as BackendManager, Fn as RunCodeOptions, Fr as SessionMessage, Ft as GitStatus, Gn as SandboxFleetDispatchFailureClass, Gr as TaskOptions, Gt as HostAgentDriverConfig, H as BatchTaskResult, Hn as SandboxFleetArtifact, Hr as StartupOperation, Ht as GpuLeaseProviderName, I as BackendStatus, In as SSHCommandDescriptor, Ir as SessionStatus, It as GpuLease, Jn as SandboxFleetDriverTimings, Jr as TeeAttestationReport, Jt as IntelligenceReport, Kn as SandboxFleetDispatchResponse, Kr as TaskResult, Kt as HostAgentRuntimeBackend, L as BackendType, Ln as SSHCredentials, Lr as SnapshotInfo, Lt as GpuLeaseBilling, M as BackendCapabilities, Mn as ReapExpiredSandboxFleetsResult, Mr as SessionEventStreamOptions, Mt as GitCommit, N as BackendConfig, Nn as ReconcileSandboxFleetsOptions, Nr as SessionInfo, Nt as GitConfig, O as AccessPolicyRule, On as PublicTemplateVersionInfo, Or as SearchMatch, P as BackendInfo, Pn as ReconcileSandboxFleetsResult, Pr as SessionListOptions, Pt as GitDiff, Qn as SandboxFleetMachineMeteredUsage, Qr as TokenRefreshHandler, Qt as IntelligenceReportWindow, R as BatchEvent, Rn as SandboxClientConfig, Rr as SnapshotOptions, Rt as GpuLeaseCommandResult, S as SandboxMcpConfig, Si as AgentSubagentProfile, Sn as PromptResult, Sr as SandboxTraceEvent, St as FleetDispatchResultBufferOptions, T as buildControlPlaneMcpConfig, Ti as defineInlineResource, Tn as ProvisionStatus, Tr as SandboxUser, U as BranchOptions, Un as SandboxFleetArtifactSpec, Ur as StorageConfig, Ut as GpuLeaseStatus, V as BatchTask, Vn as SandboxEvent, Vr as StartupDiagnostics, Vt as GpuLeaseManager, Wn as SandboxFleetCostEstimate, Wr as SubscriptionInfo, Wt as GpuType, X as CreateGpuLeaseOptions, Xn as SandboxFleetIntelligenceEnvelope, Xr as TeePublicKey, Xt as IntelligenceReportCompareTo, Y as CompletedTurnResult, Yn as SandboxFleetInfo, Yr as TeeAttestationResponse, Yt as IntelligenceReportBudget, Z as CreateIntelligenceReportOptions, Zn as SandboxFleetMachine, Zr as TeePublicKeyResponse, Zt as IntelligenceReportSubjectType, _ as StartInteractiveOptions, _i as AgentProfilePrompt, _n as ProcessSignal, _r as SandboxPermissionsConfig, _t as ExecResult, a as TraceExportSink, ai as WaitForOptions, an as MkdirOptions, ar as SandboxFleetToken, at as DispatchPromptOptions, b as CONTROL_PLANE_MCP_SERVER_NAME, bi as AgentProfileValidationIssue, br as SandboxStatus, bt as FleetDispatchCancelResult, c as otelTraceIdForTangleTrace, ci as WriteManyOptions, cn as NonHostAgentDriverConfig, cr as SandboxFleetTraceExport, ct as DownloadProgress, d as InteractiveAuthFile, di as AgentProfileConfidential, dn as PreviewLinkInfo, dr as SandboxFleetWorkspace, dt as DriverInfo, ei as TurnDriveResult, en as ListOptions, er as SandboxFleetMachineSpec, f as InteractiveSessionHandle, fi as AgentProfileConnection, fn as PreviewLinkManager, fr as SandboxFleetWorkspaceReconcileResult, ft as DriverType, g as RespondToPermissionOptions, gi as AgentProfilePermissionValue, gn as ProcessManager, gr as SandboxIntelligenceEnvelope, gt as ExecOptions, h as InterruptResult, hi as AgentProfileModelHints, hn as ProcessLogEntry, hr as SandboxInfo, ht as EventStreamOptions, i as TraceExportResult, ii as UsageInfo, in as MintScopedTokenOptions, ir as SandboxFleetPolicy, it as DirectoryPermission, j as AttachSandboxFleetMachineOptions, jn as ReapExpiredSandboxFleetsOptions, jr as SecretsManager, jt as GitBranch, k as AddUserOptions, kn as PublishPublicTemplateOptions, kr as SearchOptions, kt as GPU_LEASE_PROVIDER_NAMES, l as toOtelJson, li as AgentProfile, ln as PermissionLevel, lr as SandboxFleetTraceOptions, lt as DriveTurnOptions, m as InteractiveSessionInfo, mi as AgentProfileMcpServer, mn as ProcessInfo, mr as SandboxFleetWorkspaceSnapshotResult, mt as EgressPolicy, n as SandboxInstance, ni as UploadOptions, nn as ListSandboxOptions, nr as SandboxFleetManifestMachine, nt as CreateSandboxOptions, o as buildTraceExportPayload, oi as WriteFileOptions, on as NetworkConfig, or as SandboxFleetTraceBundle, ot as DispatchedSession, p as InteractiveSessionHost, pi as AgentProfileFileMount, pn as Process, pr as SandboxFleetWorkspaceRestoreResult, pt as EgressManager, q as CodeResult, qn as SandboxFleetDriverCapability, qr as TeeAttestationOptions, qt as InstalledTool, r as TraceExportFormat, ri as UploadProgress, rn as McpServerConfig, rr as SandboxFleetOperationsSummary, rt as DeleteOptions, s as exportTraceBundle, si as WriteManyFile, sn as NetworkManager, sr as SandboxFleetTraceEvent, st as DownloadOptions, ti as UpdateUserOptions, tn as ListSandboxFleetOptions, tr as SandboxFleetManifest, tt as CreateSandboxFleetWithCoordinatorOptions, u as SandboxSession, ui as AgentProfileCapabilities, un as PermissionsManager, ur as SandboxFleetUsage, ut as DriverConfig, v as BuildControlPlaneMcpConfigOptions, vi as AgentProfileResourceRef, vn as ProcessSpawnOptions, vr as SandboxResourceUsage, vt as FileInfo, w as SandboxMcpServerEntry, wi as defineGitHubResource, wn as ProvisionResult, wr as SandboxTraceOptions, wt as FleetExecDispatchOptions, x as SANDBOX_MCP_SERVER_NAME, xi as AgentProfileValidationResult, xn as PromptOptions, xr as SandboxTraceBundle, xt as FleetDispatchResultBuffer, y as BuildSandboxMcpConfigOptions, yi as AgentProfileResources, yn as ProcessStatus, yr as SandboxResources, yt as FileSystem, z as BatchOptions, zn as SandboxConnection, zr as SnapshotResult, zt as GpuLeaseExecOptions } from "./sandbox-BEkgXuYK.js";
|
|
2
|
+
import { a as Team, c as SandboxFleet, d as ParsedSSEEvent, f as parseSSEStream, i as SandboxClient, l as SandboxFleetClient, n as IntelligenceClient, o as TeamInvitation, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as ParseSSEStreamOptions } from "./client-BlHX4Cf0.js";
|
|
3
3
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-D-2pH_70.js";
|
|
4
4
|
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-D7bwmNs8.js";
|
|
5
5
|
import { a as PartialFailureError, c as SandboxErrorJson, d as StateError, f as TimeoutError, i as NotFoundError, l as SandboxFailureDetail, n as CapabilityError, o as QuotaError, p as ValidationError, r as NetworkError, s as SandboxError, t as AuthError, u as ServerError } from "./errors-1Se5ATyZ.js";
|
|
6
|
-
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-
|
|
6
|
+
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-CuwpLz65.js";
|
|
7
7
|
|
|
8
8
|
//#region src/attestation-heartbeat.d.ts
|
|
9
9
|
interface TeeAttestationHeartbeatSample {
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as serializeForSidecar, a as applySandboxEventText, d as otelTraceIdForTangleTrace, f as toOtelJson, g as normalizeRuntimeBackendConfig, h as parseSSEStream, i as InteractiveSessionHandle, l as buildTraceExportPayload, m as encodeTextForWire, o as collectAgentResponseText, r as SandboxSession, s as getSandboxEventText, t as SandboxInstance, u as exportTraceBundle } from "./sandbox-
|
|
1
|
+
import { _ as serializeForSidecar, a as applySandboxEventText, d as otelTraceIdForTangleTrace, f as toOtelJson, g as normalizeRuntimeBackendConfig, h as parseSSEStream, i as InteractiveSessionHandle, l as buildTraceExportPayload, m as encodeTextForWire, o as collectAgentResponseText, r as SandboxSession, s as getSandboxEventText, t as SandboxInstance, u as exportTraceBundle } from "./sandbox-DMDtL1TH.js";
|
|
2
2
|
import { a as PartialFailureError, c as ServerError, d as ValidationError, i as NotFoundError, l as StateError, n as CapabilityError, o as QuotaError, r as NetworkError, s as SandboxError, t as AuthError, u as TimeoutError } from "./errors-DZsfJUuc.js";
|
|
3
|
-
import { a as DEFAULT_SANDBOX_SIZE, c as resolveSandboxResources, i as SandboxFleetClient, l as sandboxResourcesForSize, n as SandboxClient, o as SANDBOX_SIZE_PRESETS, r as SandboxFleet, s as SANDBOX_SIZE_PRESET_NAMES, t as IntelligenceClient } from "./client-
|
|
3
|
+
import { a as DEFAULT_SANDBOX_SIZE, c as resolveSandboxResources, i as SandboxFleetClient, l as sandboxResourcesForSize, n as SandboxClient, o as SANDBOX_SIZE_PRESETS, r as SandboxFleet, s as SANDBOX_SIZE_PRESET_NAMES, t as IntelligenceClient } from "./client-CND_YEiQ.js";
|
|
4
4
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-BxlfZ2Uh.js";
|
|
5
|
-
import { t as TangleSandboxClient } from "./tangle-
|
|
5
|
+
import { t as TangleSandboxClient } from "./tangle-TMhO5qrf.js";
|
|
6
6
|
import { defineAgentProfile, defineGitHubResource, defineInlineResource, mergeAgentProfiles } from "@tangle-network/agent-interface";
|
|
7
7
|
//#region src/confidential.ts
|
|
8
8
|
function generateAttestationNonce(bytes = 32) {
|
|
@@ -4601,6 +4601,18 @@ declare function toOtelJson(bundle: TraceExportBundle, serviceName?: string): Js
|
|
|
4601
4601
|
declare function otelTraceIdForTangleTrace(traceId: string): string;
|
|
4602
4602
|
//#endregion
|
|
4603
4603
|
//#region src/sandbox.d.ts
|
|
4604
|
+
/**
|
|
4605
|
+
* Result of registering a sidecar session mapping. `reprovisionRequired` is
|
|
4606
|
+
* true when the server reports the mapped sidecar is stale (HTTP 410) and the
|
|
4607
|
+
* caller must reprovision the sandbox before retrying.
|
|
4608
|
+
*/
|
|
4609
|
+
interface SessionMappingResult {
|
|
4610
|
+
success: boolean;
|
|
4611
|
+
sessionId: string;
|
|
4612
|
+
sidecarSessionId?: string;
|
|
4613
|
+
reprovisionRequired: boolean;
|
|
4614
|
+
code?: string;
|
|
4615
|
+
}
|
|
4604
4616
|
/**
|
|
4605
4617
|
* HTTP client interface for making requests.
|
|
4606
4618
|
*/
|
|
@@ -5524,9 +5536,24 @@ declare class SandboxInstance {
|
|
|
5524
5536
|
* ```
|
|
5525
5537
|
*/
|
|
5526
5538
|
registerSessionMapping(opts: {
|
|
5539
|
+
sessionId: string;
|
|
5540
|
+
userId: string; /** The runtime (sidecar) session id this agent session routes to. */
|
|
5541
|
+
runtimeSessionId: string; /** Optional container id for direct routing. */
|
|
5542
|
+
sidecarId?: string; /** Optional projectRef so the server can detect a stale sidecar. */
|
|
5543
|
+
projectRef?: string;
|
|
5544
|
+
}): Promise<SessionMappingResult>;
|
|
5545
|
+
/**
|
|
5546
|
+
* Remove the sidecar session mapping for an agent session. Sandbox deletion
|
|
5547
|
+
* also cleans mappings, so this is only needed to release a mapping while the
|
|
5548
|
+
* sandbox stays alive.
|
|
5549
|
+
*/
|
|
5550
|
+
unregisterSessionMapping(opts: {
|
|
5527
5551
|
sessionId: string;
|
|
5528
5552
|
userId: string;
|
|
5529
|
-
}): Promise<
|
|
5553
|
+
}): Promise<{
|
|
5554
|
+
success: boolean;
|
|
5555
|
+
sessionId: string;
|
|
5556
|
+
}>;
|
|
5530
5557
|
private parseInfo;
|
|
5531
5558
|
private sleep;
|
|
5532
5559
|
/**
|
|
@@ -4059,15 +4059,51 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4059
4059
|
async registerSessionMapping(opts) {
|
|
4060
4060
|
const response = await this.client.fetch(`/v1/session/${encodeURIComponent(opts.sessionId)}/mapping`, {
|
|
4061
4061
|
method: "PUT",
|
|
4062
|
+
headers: { "x-user-id": opts.userId },
|
|
4062
4063
|
body: JSON.stringify({
|
|
4063
|
-
|
|
4064
|
-
|
|
4064
|
+
sidecarSessionId: opts.runtimeSessionId,
|
|
4065
|
+
...opts.sidecarId ? { sidecarId: opts.sidecarId } : {},
|
|
4066
|
+
...opts.projectRef ? { projectRef: opts.projectRef } : {}
|
|
4065
4067
|
})
|
|
4066
4068
|
});
|
|
4069
|
+
if (response.status === 410) return {
|
|
4070
|
+
success: false,
|
|
4071
|
+
sessionId: opts.sessionId,
|
|
4072
|
+
reprovisionRequired: true,
|
|
4073
|
+
code: "STALE_SIDECAR"
|
|
4074
|
+
};
|
|
4075
|
+
if (!response.ok) {
|
|
4076
|
+
const body = await response.text();
|
|
4077
|
+
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
4078
|
+
}
|
|
4079
|
+
const data = await response.json().catch(() => ({}));
|
|
4080
|
+
return {
|
|
4081
|
+
success: data.success ?? true,
|
|
4082
|
+
sessionId: data.sessionId ?? opts.sessionId,
|
|
4083
|
+
sidecarSessionId: data.sidecarSessionId,
|
|
4084
|
+
reprovisionRequired: data.reprovisionRequired ?? false,
|
|
4085
|
+
code: data.code
|
|
4086
|
+
};
|
|
4087
|
+
}
|
|
4088
|
+
/**
|
|
4089
|
+
* Remove the sidecar session mapping for an agent session. Sandbox deletion
|
|
4090
|
+
* also cleans mappings, so this is only needed to release a mapping while the
|
|
4091
|
+
* sandbox stays alive.
|
|
4092
|
+
*/
|
|
4093
|
+
async unregisterSessionMapping(opts) {
|
|
4094
|
+
const response = await this.client.fetch(`/v1/session/${encodeURIComponent(opts.sessionId)}/mapping`, {
|
|
4095
|
+
method: "DELETE",
|
|
4096
|
+
headers: { "x-user-id": opts.userId }
|
|
4097
|
+
});
|
|
4067
4098
|
if (!response.ok) {
|
|
4068
4099
|
const body = await response.text();
|
|
4069
4100
|
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
4070
4101
|
}
|
|
4102
|
+
const data = await response.json().catch(() => ({}));
|
|
4103
|
+
return {
|
|
4104
|
+
success: data.success ?? true,
|
|
4105
|
+
sessionId: data.sessionId ?? opts.sessionId
|
|
4106
|
+
};
|
|
4071
4107
|
}
|
|
4072
4108
|
parseInfo(data) {
|
|
4073
4109
|
return {
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as AgentSandboxBlueprintAbi, d as SandboxCreateParamTypes, f as SandboxCreateResponseParamTypes, i as TANGLE_CHAIN_ID, l as ITangleJobsAbi, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, p as SandboxIdParamTypes, r as JOB_SANDBOX_DELETE, s as TangleSandboxClientConfig, t as TangleSandboxClient, u as JsonResponseParamTypes } from "../index-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as AgentSandboxBlueprintAbi, d as SandboxCreateParamTypes, f as SandboxCreateResponseParamTypes, i as TANGLE_CHAIN_ID, l as ITangleJobsAbi, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, p as SandboxIdParamTypes, r as JOB_SANDBOX_DELETE, s as TangleSandboxClientConfig, t as TangleSandboxClient, u as JsonResponseParamTypes } from "../index-CuwpLz65.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TANGLE_MAINNET_RPC, TangleSandboxClient, TangleSandboxClientConfig };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../tangle-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../tangle-TMhO5qrf.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TANGLE_MAINNET_RPC, TangleSandboxClient };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as SandboxInstance } from "./sandbox-
|
|
1
|
+
import { t as SandboxInstance } from "./sandbox-DMDtL1TH.js";
|
|
2
2
|
import { f as parseErrorResponse } from "./errors-DZsfJUuc.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
@@ -162,8 +162,8 @@ const SandboxCreateParamTypes = [
|
|
|
162
162
|
type: "bool"
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
|
-
name: "
|
|
166
|
-
type: "string
|
|
165
|
+
name: "ssh_public_key",
|
|
166
|
+
type: "string"
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
name: "web_terminal_enabled",
|
|
@@ -457,7 +457,7 @@ var TangleChainClient = class {
|
|
|
457
457
|
options.env ? JSON.stringify(options.env) : "",
|
|
458
458
|
options.metadata ? JSON.stringify(options.metadata) : "",
|
|
459
459
|
options.sshEnabled ?? false,
|
|
460
|
-
options.
|
|
460
|
+
options.sshPublicKey ?? options.sshPublicKeys?.[0] ?? "",
|
|
461
461
|
options.webTerminalEnabled ?? false,
|
|
462
462
|
BigInt(options.maxLifetimeSeconds ?? 0),
|
|
463
463
|
BigInt(options.idleTimeoutSeconds ?? 0),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.9.4-develop.
|
|
3
|
+
"version": "0.9.4-develop.20260710091052.24dec02",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"@tangle-network/agent-core": "^0.4.0",
|
|
86
|
-
"@tangle-network/agent-interface": "^0.
|
|
86
|
+
"@tangle-network/agent-interface": "^0.21.0"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@mastra/core": "^1.36.0",
|