@tangle-network/sandbox 0.9.4-develop.20260628204341.d400617 → 0.9.4-develop.20260629071229.145161
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-vx9ze5bL.js → client-BHEh7X6F.js} +1 -1
- package/dist/{client-QRSrhhlr.d.ts → client-DUY6Pdwf.d.ts} +1 -1
- package/dist/core.d.ts +2 -2
- package/dist/core.js +2 -2
- package/dist/{index-DXa7OlnO.d.ts → index-CAay0NFR.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/{sandbox-C4TLW3Ue.js → sandbox-BTBbZupV.js} +27 -6
- package/dist/{sandbox-C2x9Yumw.d.ts → sandbox-DcOyvnIy.d.ts} +8 -3
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-BNRnUKEO.js → tangle-D1c-2Jr2.js} +1 -1
- package/package.json +1 -1
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as CodeExecutionOptions, K as CodeExecutionResult, Y as CodeResultPart, n as SandboxInstance, q as CodeLanguage } from "../sandbox-
|
|
2
|
-
import { i as SandboxClient } from "../client-
|
|
1
|
+
import { G as CodeExecutionOptions, K as CodeExecutionResult, Y as CodeResultPart, n as SandboxInstance, q as CodeLanguage } from "../sandbox-DcOyvnIy.js";
|
|
2
|
+
import { i as SandboxClient } from "../client-DUY6Pdwf.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 { f as encodePromptForWire, l as exportTraceBundle, m as parseSSEStream, s as normalizeConnection, t as SandboxInstance } from "./sandbox-
|
|
1
|
+
import { f as encodePromptForWire, l as exportTraceBundle, m as parseSSEStream, s as normalizeConnection, t as SandboxInstance } from "./sandbox-BTBbZupV.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
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as CreateSandboxFleetOptions, $n as SandboxFleetTraceBundle, A as AttachSandboxFleetMachineOptions, B as BatchTask, Bn as SandboxFleetDriverCapability, Cn as PublishPublicTemplateVersionOptions, Ct as FleetDispatchStreamOptions, Dn as ReconcileSandboxFleetsResult, Dt as FleetPromptDispatchOptions, En as ReconcileSandboxFleetsOptions, Et as FleetMachineId, Fn as SandboxFleetArtifact, Gr as TokenRefreshHandler, Gt as IntelligenceReportWindow, Hn as SandboxFleetInfo, Ht as IntelligenceReportBudget, In as SandboxFleetArtifactSpec, Jn as SandboxFleetManifest, Jt as ListSandboxFleetOptions, Kn as SandboxFleetMachineRecord, L as BatchEvent, Ln as SandboxFleetCostEstimate, Lr as SubscriptionInfo, Nn as SandboxEnvironment, Nr as SshKeysManager, Ot as FleetPromptDispatchResult, Q as CreateRequestOptions, Qn as SandboxFleetToken, R as BatchOptions, Sn as PublishPublicTemplateOptions, St as FleetDispatchResultBufferOptions, Tn as ReapExpiredSandboxFleetsResult, Tt as FleetExecDispatchResult, Ut as IntelligenceReportCompareTo, Vt as IntelligenceReport, Xn as SandboxFleetOperationsSummary, Yt as ListSandboxOptions, Z as CreateIntelligenceReportOptions, Zr as UsageInfo, _t as ExecResult, a as TraceExportSink, ar as SandboxFleetWorkspaceReconcileResult, bn as PublicTemplateInfo, bt as FleetDispatchCancelResult, cr as SandboxInfo, et as CreateSandboxFleetTokenOptions, gt as ExecOptions, hn as PromptResult, i as TraceExportResult, jn as SandboxClientConfig, mn as PromptOptions, n as SandboxInstance, nr as SandboxFleetTraceOptions, nt as CreateSandboxOptions, or as SandboxFleetWorkspaceRestoreResult, pn as PromptInputPart, rr as SandboxFleetUsage, sr as SandboxFleetWorkspaceSnapshotResult, t as HttpClient, tt as CreateSandboxFleetWithCoordinatorOptions, wn as ReapExpiredSandboxFleetsOptions, wr as SecretsManager, wt as FleetExecDispatchOptions, xn as PublicTemplateVersionInfo, xt as FleetDispatchResultBuffer, z as BatchResult, zn as SandboxFleetDispatchResponse } from "./sandbox-
|
|
1
|
+
import { $ as CreateSandboxFleetOptions, $n as SandboxFleetTraceBundle, A as AttachSandboxFleetMachineOptions, B as BatchTask, Bn as SandboxFleetDriverCapability, Cn as PublishPublicTemplateVersionOptions, Ct as FleetDispatchStreamOptions, Dn as ReconcileSandboxFleetsResult, Dt as FleetPromptDispatchOptions, En as ReconcileSandboxFleetsOptions, Et as FleetMachineId, Fn as SandboxFleetArtifact, Gr as TokenRefreshHandler, Gt as IntelligenceReportWindow, Hn as SandboxFleetInfo, Ht as IntelligenceReportBudget, In as SandboxFleetArtifactSpec, Jn as SandboxFleetManifest, Jt as ListSandboxFleetOptions, Kn as SandboxFleetMachineRecord, L as BatchEvent, Ln as SandboxFleetCostEstimate, Lr as SubscriptionInfo, Nn as SandboxEnvironment, Nr as SshKeysManager, Ot as FleetPromptDispatchResult, Q as CreateRequestOptions, Qn as SandboxFleetToken, R as BatchOptions, Sn as PublishPublicTemplateOptions, St as FleetDispatchResultBufferOptions, Tn as ReapExpiredSandboxFleetsResult, Tt as FleetExecDispatchResult, Ut as IntelligenceReportCompareTo, Vt as IntelligenceReport, Xn as SandboxFleetOperationsSummary, Yt as ListSandboxOptions, Z as CreateIntelligenceReportOptions, Zr as UsageInfo, _t as ExecResult, a as TraceExportSink, ar as SandboxFleetWorkspaceReconcileResult, bn as PublicTemplateInfo, bt as FleetDispatchCancelResult, cr as SandboxInfo, et as CreateSandboxFleetTokenOptions, gt as ExecOptions, hn as PromptResult, i as TraceExportResult, jn as SandboxClientConfig, mn as PromptOptions, n as SandboxInstance, nr as SandboxFleetTraceOptions, nt as CreateSandboxOptions, or as SandboxFleetWorkspaceRestoreResult, pn as PromptInputPart, rr as SandboxFleetUsage, sr as SandboxFleetWorkspaceSnapshotResult, t as HttpClient, tt as CreateSandboxFleetWithCoordinatorOptions, wn as ReapExpiredSandboxFleetsOptions, wr as SecretsManager, wt as FleetExecDispatchOptions, xn as PublicTemplateVersionInfo, xt as FleetDispatchResultBuffer, z as BatchResult, zn as SandboxFleetDispatchResponse } from "./sandbox-DcOyvnIy.js";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/sse-parser.d.ts
|
|
4
4
|
/**
|
package/dist/core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as NetworkConfig, _t as ExecResult, an as PreviewLinkManager, cr as SandboxInfo, gt as ExecOptions, in as PreviewLinkInfo, jn as SandboxClientConfig, n as SandboxInstance, nt as CreateSandboxOptions, pr as SandboxStatus } from "./sandbox-
|
|
2
|
-
import { i as SandboxClient } from "./client-
|
|
1
|
+
import { $t as NetworkConfig, _t as ExecResult, an as PreviewLinkManager, cr as SandboxInfo, gt as ExecOptions, in as PreviewLinkInfo, jn as SandboxClientConfig, n as SandboxInstance, nt as CreateSandboxOptions, pr as SandboxStatus } from "./sandbox-DcOyvnIy.js";
|
|
2
|
+
import { i as SandboxClient } from "./client-DUY6Pdwf.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-BTBbZupV.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-BHEh7X6F.js";
|
|
4
4
|
export { AuthError, CapabilityError, NetworkError, NotFoundError, PartialFailureError, QuotaError, SandboxClient as Sandbox, SandboxClient, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $ as CreateSandboxFleetOptions, $n as SandboxFleetTraceBundle, $r as WriteFileOptions, $t as NetworkConfig, A as AttachSandboxFleetMachineOptions, An as SSHCredentials, Ar as SnapshotInfo, At as ForkResult, B as BatchTask, Bn as SandboxFleetDriverCapability, Br as TeeAttestationOptions, Bt as InstalledTool, C as SandboxMcpEndpoint, Cn as PublishPublicTemplateVersionOptions, Cr as SecretInfo, Ct as FleetDispatchStreamOptions, D as AcceleratorKind, Dn as ReconcileSandboxFleetsResult, Dr as SessionListOptions, Dt as FleetPromptDispatchOptions, E as buildSandboxMcpConfig, En as ReconcileSandboxFleetsOptions, Er as SessionInfo, Et as FleetMachineId, F as BackendStatus, Fn as SandboxFleetArtifact, Fr as StartupOperation, Ft as GitDiff, Gn as SandboxFleetMachineMeteredUsage, Gr as TokenRefreshHandler, Gt as IntelligenceReportWindow, H as CheckpointInfo, Hn as SandboxFleetInfo, Hr as TeeAttestationResponse, Ht as IntelligenceReportBudget, I as BackendType, In as SandboxFleetArtifactSpec, Ir as StorageConfig, It as GitStatus, J as CodeResult, Jn as SandboxFleetManifest, Jr as UpdateUserOptions, Jt as ListSandboxFleetOptions, Kn as SandboxFleetMachineRecord, Kr as ToolsConfig, Kt as ListMessagesOptions, L as BatchEvent, Ln as SandboxFleetCostEstimate, Lr as SubscriptionInfo, Lt as GpuType, M as BackendConfig, Mn as SandboxConnection, Mr as SnapshotResult, Mt as GitBranch, N as BackendInfo, Nn as SandboxEnvironment, Nt as GitCommit, O as AccessPolicyRule, On as RunCodeOptions, Or as SessionMessage, P as BackendManager, Pn as SandboxEvent, Pr as StartupDiagnostics, Pt as GitConfig, Qn as SandboxFleetToken, Qr as WaitForOptions, Qt as MkdirOptions, R as BatchOptions, Rn as SandboxFleetDispatchFailureClass, Rr as TaskOptions, Rt as HostAgentDriverConfig, S as SandboxMcpConfig, Sn as PublishPublicTemplateOptions, Sr as SearchOptions, St as FleetDispatchResultBufferOptions, T as buildControlPlaneMcpConfig, Tn as ReapExpiredSandboxFleetsResult, Tr as SessionEventStreamOptions, U as CheckpointOptions, Un as SandboxFleetIntelligenceEnvelope, Ur as TeePublicKey, Ut as IntelligenceReportCompareTo, V as BatchTaskResult, Vn as SandboxFleetDriverTimings, Vr as TeeAttestationReport, Vt as IntelligenceReport, W as CheckpointResult, Wn as SandboxFleetMachine, Wr as TeePublicKeyResponse, Wt as IntelligenceReportSubjectType, X as CompletedTurnResult, Xn as SandboxFleetOperationsSummary, Xr as UploadProgress, Xt as McpServerConfig, Yn as SandboxFleetManifestMachine, Yr as UploadOptions, Yt as ListSandboxOptions, Z as CreateIntelligenceReportOptions, Zn as SandboxFleetPolicy, Zr as UsageInfo, Zt as MintScopedTokenOptions, _ as StartInteractiveOptions, _i as defineGitHubResource, _n as ProvisionResult, _r as SandboxTraceOptions, _t as ExecResult, a as TraceExportSink, ai as AgentProfileConnection, an as PreviewLinkManager, ar as SandboxFleetWorkspaceReconcileResult, at as DispatchPromptOptions, b as CONTROL_PLANE_MCP_SERVER_NAME, bn as PublicTemplateInfo, br as ScopedTokenScope, bt as FleetDispatchCancelResult, c as otelTraceIdForTangleTrace, ci as AgentProfileModelHints, cn as ProcessLogEntry, cr as SandboxInfo, ct as DownloadProgress, d as InteractiveAuthFile, di as AgentProfileResourceRef, dn as ProcessSpawnOptions, dr as SandboxResourceUsage, dt as DriverInfo, ei as WriteManyFile, en as NetworkManager, er as SandboxFleetTraceEvent, f as InteractiveSessionHandle, fi as AgentProfileResources, fn as ProcessStatus, fr as SandboxResources, ft as DriverType, g as RespondToPermissionOptions, gi as defineAgentProfile, gn as ProvisionEvent, gr as SandboxTraceExport, gt as ExecOptions, h as InterruptResult, hi as AgentSubagentProfile, hn as PromptResult, hr as SandboxTraceEvent, ht as EventStreamOptions, i as TraceExportResult, ii as AgentProfileConfidential, in as PreviewLinkInfo, ir as SandboxFleetWorkspace, it as DirectoryPermission, j as BackendCapabilities, jn as SandboxClientConfig, jr as SnapshotOptions, jt as GitAuth, k as AddUserOptions, kn as SSHCommandDescriptor, kr as SessionStatus, kt as ForkOptions, l as toOtelJson, li as AgentProfilePermissionValue, ln as ProcessManager, lr as SandboxIntelligenceEnvelope, lt as DriveTurnOptions, m as InteractiveSessionInfo, mi as AgentProfileValidationResult, mn as PromptOptions, mr as SandboxTraceBundle, mt as EgressPolicy, n as SandboxInstance, ni as AgentProfile, nn as PermissionLevel, nr as SandboxFleetTraceOptions, nt as CreateSandboxOptions, o as buildTraceExportPayload, oi as AgentProfileFileMount, on as Process, or as SandboxFleetWorkspaceRestoreResult, ot as DispatchedSession, p as InteractiveSessionHost, pi as AgentProfileValidationIssue, pr as SandboxStatus, pt as EgressManager, qn as SandboxFleetMachineSpec, qr as TurnDriveResult, qt as ListOptions, r as TraceExportFormat, ri as AgentProfileCapabilities, rn as PermissionsManager, rr as SandboxFleetUsage, rt as DeleteOptions, s as exportTraceBundle, si as AgentProfileMcpServer, sn as ProcessInfo, sr as SandboxFleetWorkspaceSnapshotResult, st as DownloadOptions, ti as WriteManyOptions, tn as NonHostAgentDriverConfig, tr as SandboxFleetTraceExport, tt as CreateSandboxFleetWithCoordinatorOptions, u as SandboxSession, ui as AgentProfilePrompt, un as ProcessSignal, ur as SandboxPermissionsConfig, ut as DriverConfig, v as BuildControlPlaneMcpConfigOptions, vi as defineInlineResource, vn as ProvisionStatus, vr as SandboxUser, vt as FileInfo, w as SandboxMcpServerEntry, wn as ReapExpiredSandboxFleetsOptions, wr as SecretsManager, wt as FleetExecDispatchOptions, x as SANDBOX_MCP_SERVER_NAME, xn as PublicTemplateVersionInfo, xr as SearchMatch, xt as FleetDispatchResultBuffer, y as BuildSandboxMcpConfigOptions, yi as mergeAgentProfiles, yn as ProvisionStep, yr as ScopedToken, yt as FileSystem, z as BatchResult, zn as SandboxFleetDispatchResponse, zr as TaskResult, zt as HostAgentRuntimeBackend } 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 SandboxFleetTraceBundle, $r as WriteFileOptions, $t as NetworkConfig, A as AttachSandboxFleetMachineOptions, An as SSHCredentials, Ar as SnapshotInfo, At as ForkResult, B as BatchTask, Bn as SandboxFleetDriverCapability, Br as TeeAttestationOptions, Bt as InstalledTool, C as SandboxMcpEndpoint, Cn as PublishPublicTemplateVersionOptions, Cr as SecretInfo, Ct as FleetDispatchStreamOptions, D as AcceleratorKind, Dn as ReconcileSandboxFleetsResult, Dr as SessionListOptions, Dt as FleetPromptDispatchOptions, E as buildSandboxMcpConfig, En as ReconcileSandboxFleetsOptions, Er as SessionInfo, Et as FleetMachineId, F as BackendStatus, Fn as SandboxFleetArtifact, Fr as StartupOperation, Ft as GitDiff, Gn as SandboxFleetMachineMeteredUsage, Gr as TokenRefreshHandler, Gt as IntelligenceReportWindow, H as CheckpointInfo, Hn as SandboxFleetInfo, Hr as TeeAttestationResponse, Ht as IntelligenceReportBudget, I as BackendType, In as SandboxFleetArtifactSpec, Ir as StorageConfig, It as GitStatus, J as CodeResult, Jn as SandboxFleetManifest, Jr as UpdateUserOptions, Jt as ListSandboxFleetOptions, Kn as SandboxFleetMachineRecord, Kr as ToolsConfig, Kt as ListMessagesOptions, L as BatchEvent, Ln as SandboxFleetCostEstimate, Lr as SubscriptionInfo, Lt as GpuType, M as BackendConfig, Mn as SandboxConnection, Mr as SnapshotResult, Mt as GitBranch, N as BackendInfo, Nn as SandboxEnvironment, Nt as GitCommit, O as AccessPolicyRule, On as RunCodeOptions, Or as SessionMessage, P as BackendManager, Pn as SandboxEvent, Pr as StartupDiagnostics, Pt as GitConfig, Qn as SandboxFleetToken, Qr as WaitForOptions, Qt as MkdirOptions, R as BatchOptions, Rn as SandboxFleetDispatchFailureClass, Rr as TaskOptions, Rt as HostAgentDriverConfig, S as SandboxMcpConfig, Sn as PublishPublicTemplateOptions, Sr as SearchOptions, St as FleetDispatchResultBufferOptions, T as buildControlPlaneMcpConfig, Tn as ReapExpiredSandboxFleetsResult, Tr as SessionEventStreamOptions, U as CheckpointOptions, Un as SandboxFleetIntelligenceEnvelope, Ur as TeePublicKey, Ut as IntelligenceReportCompareTo, V as BatchTaskResult, Vn as SandboxFleetDriverTimings, Vr as TeeAttestationReport, Vt as IntelligenceReport, W as CheckpointResult, Wn as SandboxFleetMachine, Wr as TeePublicKeyResponse, Wt as IntelligenceReportSubjectType, X as CompletedTurnResult, Xn as SandboxFleetOperationsSummary, Xr as UploadProgress, Xt as McpServerConfig, Yn as SandboxFleetManifestMachine, Yr as UploadOptions, Yt as ListSandboxOptions, Z as CreateIntelligenceReportOptions, Zn as SandboxFleetPolicy, Zr as UsageInfo, Zt as MintScopedTokenOptions, _ as StartInteractiveOptions, _i as defineGitHubResource, _n as ProvisionResult, _r as SandboxTraceOptions, _t as ExecResult, a as TraceExportSink, ai as AgentProfileConnection, an as PreviewLinkManager, ar as SandboxFleetWorkspaceReconcileResult, at as DispatchPromptOptions, b as CONTROL_PLANE_MCP_SERVER_NAME, bn as PublicTemplateInfo, br as ScopedTokenScope, bt as FleetDispatchCancelResult, c as otelTraceIdForTangleTrace, ci as AgentProfileModelHints, cn as ProcessLogEntry, cr as SandboxInfo, ct as DownloadProgress, d as InteractiveAuthFile, di as AgentProfileResourceRef, dn as ProcessSpawnOptions, dr as SandboxResourceUsage, dt as DriverInfo, ei as WriteManyFile, en as NetworkManager, er as SandboxFleetTraceEvent, f as InteractiveSessionHandle, fi as AgentProfileResources, fn as ProcessStatus, fr as SandboxResources, ft as DriverType, g as RespondToPermissionOptions, gi as defineAgentProfile, gn as ProvisionEvent, gr as SandboxTraceExport, gt as ExecOptions, h as InterruptResult, hi as AgentSubagentProfile, hn as PromptResult, hr as SandboxTraceEvent, ht as EventStreamOptions, i as TraceExportResult, ii as AgentProfileConfidential, in as PreviewLinkInfo, ir as SandboxFleetWorkspace, it as DirectoryPermission, j as BackendCapabilities, jn as SandboxClientConfig, jr as SnapshotOptions, jt as GitAuth, k as AddUserOptions, kn as SSHCommandDescriptor, kr as SessionStatus, kt as ForkOptions, l as toOtelJson, li as AgentProfilePermissionValue, ln as ProcessManager, lr as SandboxIntelligenceEnvelope, lt as DriveTurnOptions, m as InteractiveSessionInfo, mi as AgentProfileValidationResult, mn as PromptOptions, mr as SandboxTraceBundle, mt as EgressPolicy, n as SandboxInstance, ni as AgentProfile, nn as PermissionLevel, nr as SandboxFleetTraceOptions, nt as CreateSandboxOptions, o as buildTraceExportPayload, oi as AgentProfileFileMount, on as Process, or as SandboxFleetWorkspaceRestoreResult, ot as DispatchedSession, p as InteractiveSessionHost, pi as AgentProfileValidationIssue, pr as SandboxStatus, pt as EgressManager, qn as SandboxFleetMachineSpec, qr as TurnDriveResult, qt as ListOptions, r as TraceExportFormat, ri as AgentProfileCapabilities, rn as PermissionsManager, rr as SandboxFleetUsage, rt as DeleteOptions, s as exportTraceBundle, si as AgentProfileMcpServer, sn as ProcessInfo, sr as SandboxFleetWorkspaceSnapshotResult, st as DownloadOptions, ti as WriteManyOptions, tn as NonHostAgentDriverConfig, tr as SandboxFleetTraceExport, tt as CreateSandboxFleetWithCoordinatorOptions, u as SandboxSession, ui as AgentProfilePrompt, un as ProcessSignal, ur as SandboxPermissionsConfig, ut as DriverConfig, v as BuildControlPlaneMcpConfigOptions, vi as defineInlineResource, vn as ProvisionStatus, vr as SandboxUser, vt as FileInfo, w as SandboxMcpServerEntry, wn as ReapExpiredSandboxFleetsOptions, wr as SecretsManager, wt as FleetExecDispatchOptions, x as SANDBOX_MCP_SERVER_NAME, xn as PublicTemplateVersionInfo, xr as SearchMatch, xt as FleetDispatchResultBuffer, y as BuildSandboxMcpConfigOptions, yi as mergeAgentProfiles, yn as ProvisionStep, yr as ScopedToken, yt as FileSystem, z as BatchResult, zn as SandboxFleetDispatchResponse, zr as TaskResult, zt as HostAgentRuntimeBackend } from "./sandbox-DcOyvnIy.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-DUY6Pdwf.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-CAay0NFR.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 { a as collectAgentResponseText, c as buildTraceExportPayload, d as toOtelJson, g as serializeForSidecar, h as normalizeRuntimeBackendConfig, i as applySandboxEventText, l as exportTraceBundle, m as parseSSEStream, n as SandboxSession, o as getSandboxEventText, p as encodeTextForWire, r as InteractiveSessionHandle, t as SandboxInstance, u as otelTraceIdForTangleTrace } from "./sandbox-
|
|
1
|
+
import { a as collectAgentResponseText, c as buildTraceExportPayload, d as toOtelJson, g as serializeForSidecar, h as normalizeRuntimeBackendConfig, i as applySandboxEventText, l as exportTraceBundle, m as parseSSEStream, n as SandboxSession, o as getSandboxEventText, p as encodeTextForWire, r as InteractiveSessionHandle, t as SandboxInstance, u as otelTraceIdForTangleTrace } from "./sandbox-BTBbZupV.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-BHEh7X6F.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-D1c-2Jr2.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) {
|
|
@@ -825,8 +825,8 @@ function isTransientSnapshotVisibilityError(error) {
|
|
|
825
825
|
* `prompt`/`task`/`_sessionResult`/turn settling. A run succeeds only when it
|
|
826
826
|
* reached a terminal event, raised no run-level error, hit no approval gate,
|
|
827
827
|
* left no unanswered question, and recorded no failed (`isError`) tool. A
|
|
828
|
-
* tool-only turn with no text succeeds
|
|
829
|
-
* narrated around) fails.
|
|
828
|
+
* tool-only turn with no text succeeds unless the server enforces visible-output
|
|
829
|
+
* requirements; a turn whose tool failed (even if narrated around) fails.
|
|
830
830
|
*/
|
|
831
831
|
function deriveOutcome(inputs) {
|
|
832
832
|
if (inputs.question) return {
|
|
@@ -842,7 +842,8 @@ function deriveOutcome(inputs) {
|
|
|
842
842
|
if (inputs.runError) return {
|
|
843
843
|
status: "failed",
|
|
844
844
|
success: false,
|
|
845
|
-
error: inputs.runError
|
|
845
|
+
error: inputs.runError,
|
|
846
|
+
errorCode: inputs.runErrorCode
|
|
846
847
|
};
|
|
847
848
|
const failedTool = inputs.toolInvocations?.find((t) => t.isError === true);
|
|
848
849
|
if (failedTool) return {
|
|
@@ -1460,6 +1461,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1460
1461
|
const startTime = Date.now();
|
|
1461
1462
|
let responseText;
|
|
1462
1463
|
let runError;
|
|
1464
|
+
let runErrorCode;
|
|
1463
1465
|
let traceId;
|
|
1464
1466
|
let usage;
|
|
1465
1467
|
let costUsd;
|
|
@@ -1482,12 +1484,16 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1482
1484
|
if (event.type === "result" || event.type === "done") terminalReached = true;
|
|
1483
1485
|
if (event.type === "interaction") question = readQuestionEvent(event.data) ?? question;
|
|
1484
1486
|
if (event.type === "trace.id") traceId = event.data.traceId;
|
|
1485
|
-
if (event.type === "error")
|
|
1487
|
+
if (event.type === "error") {
|
|
1488
|
+
runError = event.data.message;
|
|
1489
|
+
runErrorCode = event.data.code;
|
|
1490
|
+
}
|
|
1486
1491
|
}
|
|
1487
1492
|
const approval = detectHubApproval(toolInvocations);
|
|
1488
1493
|
const outcome = deriveOutcome({
|
|
1489
1494
|
terminalReached,
|
|
1490
1495
|
runError,
|
|
1496
|
+
runErrorCode,
|
|
1491
1497
|
toolInvocations,
|
|
1492
1498
|
approval,
|
|
1493
1499
|
question
|
|
@@ -1497,6 +1503,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1497
1503
|
status: outcome.status,
|
|
1498
1504
|
response: responseText,
|
|
1499
1505
|
error: outcome.error,
|
|
1506
|
+
errorCode: outcome.errorCode,
|
|
1500
1507
|
toolInvocations,
|
|
1501
1508
|
approval,
|
|
1502
1509
|
question,
|
|
@@ -1594,6 +1601,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1594
1601
|
sessionId: options?.sessionId,
|
|
1595
1602
|
turnId: options?.turnId,
|
|
1596
1603
|
metadata: options?.context,
|
|
1604
|
+
requireVisibleAssistantOutput: options?.requireVisibleAssistantOutput,
|
|
1597
1605
|
...options?.detach ? { detach: true } : {},
|
|
1598
1606
|
backend: normalizeRuntimeBackendConfig(options?.backend ?? this.defaultRuntimeBackend, { model: options?.model })
|
|
1599
1607
|
})
|
|
@@ -1849,6 +1857,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1849
1857
|
const sessionId = options?.sessionId ?? `task-${crypto.randomUUID()}`;
|
|
1850
1858
|
let responseText;
|
|
1851
1859
|
let runError;
|
|
1860
|
+
let runErrorCode;
|
|
1852
1861
|
let traceId;
|
|
1853
1862
|
let usage;
|
|
1854
1863
|
let costUsd;
|
|
@@ -1872,12 +1881,16 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1872
1881
|
if (event.type === "result" || event.type === "done") terminalReached = true;
|
|
1873
1882
|
if (event.type === "interaction") question = readQuestionEvent(event.data) ?? question;
|
|
1874
1883
|
if (event.type === "trace.id") traceId = event.data.traceId;
|
|
1875
|
-
if (event.type === "error")
|
|
1884
|
+
if (event.type === "error") {
|
|
1885
|
+
runError = event.data.message;
|
|
1886
|
+
runErrorCode = event.data.code;
|
|
1887
|
+
}
|
|
1876
1888
|
}
|
|
1877
1889
|
const approval = detectHubApproval(toolInvocations);
|
|
1878
1890
|
const outcome = deriveOutcome({
|
|
1879
1891
|
terminalReached,
|
|
1880
1892
|
runError,
|
|
1893
|
+
runErrorCode,
|
|
1881
1894
|
toolInvocations,
|
|
1882
1895
|
approval,
|
|
1883
1896
|
question
|
|
@@ -1887,6 +1900,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1887
1900
|
status: outcome.status,
|
|
1888
1901
|
response: responseText,
|
|
1889
1902
|
error: outcome.error,
|
|
1903
|
+
errorCode: outcome.errorCode,
|
|
1890
1904
|
toolInvocations,
|
|
1891
1905
|
approval,
|
|
1892
1906
|
question,
|
|
@@ -4222,6 +4236,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4222
4236
|
const startTime = Date.now();
|
|
4223
4237
|
let response;
|
|
4224
4238
|
let runError;
|
|
4239
|
+
let runErrorCode;
|
|
4225
4240
|
let traceId;
|
|
4226
4241
|
let usage;
|
|
4227
4242
|
let costUsd;
|
|
@@ -4241,7 +4256,11 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4241
4256
|
}
|
|
4242
4257
|
if (event.type === "interaction") question = readQuestionEvent(event.data) ?? question;
|
|
4243
4258
|
if (event.type === "trace.id") traceId = event.data.traceId;
|
|
4244
|
-
if (event.type === "error")
|
|
4259
|
+
if (event.type === "error") {
|
|
4260
|
+
const data = event.data;
|
|
4261
|
+
runError = data.message;
|
|
4262
|
+
runErrorCode = data.code;
|
|
4263
|
+
}
|
|
4245
4264
|
if (event.type === "done" || event.type === "result") {
|
|
4246
4265
|
terminalReached = true;
|
|
4247
4266
|
break;
|
|
@@ -4251,6 +4270,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4251
4270
|
const outcome = deriveOutcome({
|
|
4252
4271
|
terminalReached,
|
|
4253
4272
|
runError,
|
|
4273
|
+
runErrorCode,
|
|
4254
4274
|
toolInvocations,
|
|
4255
4275
|
approval,
|
|
4256
4276
|
question
|
|
@@ -4260,6 +4280,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4260
4280
|
status: outcome.status,
|
|
4261
4281
|
response,
|
|
4262
4282
|
error: outcome.error,
|
|
4283
|
+
errorCode: outcome.errorCode,
|
|
4263
4284
|
toolInvocations,
|
|
4264
4285
|
approval,
|
|
4265
4286
|
question,
|
|
@@ -986,7 +986,8 @@ interface InstalledTool {
|
|
|
986
986
|
/**
|
|
987
987
|
* Granular outcome of an agent run.
|
|
988
988
|
* - `success` — reached a terminal event with no run-level error and no failed
|
|
989
|
-
* tool. A tool-only turn
|
|
989
|
+
* tool. A tool-only turn succeeds unless the caller opts into visible-output
|
|
990
|
+
* enforcement.
|
|
990
991
|
* - `failed` — a run-level error event, or any failed (`isError`) tool, or the
|
|
991
992
|
* stream ended with no terminal event.
|
|
992
993
|
* - `blocked_on_approval` — a tool hit a hub approval gate; resolve it, then
|
|
@@ -1038,8 +1039,8 @@ interface PromptResult {
|
|
|
1038
1039
|
/**
|
|
1039
1040
|
* Whether the run succeeded. Shorthand for `status === "success"`: true only
|
|
1040
1041
|
* when the run reached a terminal event with no run-level error and no failed
|
|
1041
|
-
* tool.
|
|
1042
|
-
*
|
|
1042
|
+
* tool. Text presence is not required unless `requireVisibleAssistantOutput`
|
|
1043
|
+
* is set and no visible output was produced.
|
|
1043
1044
|
*/
|
|
1044
1045
|
success: boolean;
|
|
1045
1046
|
/** Granular run outcome. */
|
|
@@ -1048,6 +1049,8 @@ interface PromptResult {
|
|
|
1048
1049
|
response?: string;
|
|
1049
1050
|
/** Error message when the run did not succeed */
|
|
1050
1051
|
error?: string;
|
|
1052
|
+
/** Machine-readable error code from the runtime, e.g. `empty_visible_output`. */
|
|
1053
|
+
errorCode?: string;
|
|
1051
1054
|
/** Tool calls the agent made this run, including failures (`isError`). */
|
|
1052
1055
|
toolInvocations?: AgentToolInvocation[];
|
|
1053
1056
|
/** Set when `status === "blocked_on_approval"`. */
|
|
@@ -1102,6 +1105,8 @@ interface PromptOptions {
|
|
|
1102
1105
|
timeoutMs?: number;
|
|
1103
1106
|
/** Additional context */
|
|
1104
1107
|
context?: Record<string, unknown>;
|
|
1108
|
+
/** Fail chat-like runs that finish with no text or renderable interaction. */
|
|
1109
|
+
requireVisibleAssistantOutput?: boolean;
|
|
1105
1110
|
/** AbortSignal for cancellation */
|
|
1106
1111
|
signal?: AbortSignal;
|
|
1107
1112
|
/**
|
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-CAay0NFR.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-D1c-2Jr2.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 };
|
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.20260629071229.0145161",
|
|
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",
|