@tangle-network/sandbox 0.9.4 → 0.9.6
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-QRSrhhlr.d.ts → client-DUY6Pdwf.d.ts} +1 -1
- package/dist/{client-B8iqCNnm.js → client-vBERsxhj.js} +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-C2x9Yumw.d.ts → sandbox-DcOyvnIy.d.ts} +8 -3
- package/dist/{sandbox-DgWaRMlI.js → sandbox-UQrmff8d.js} +31 -6
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-C2uTDxJ0.js → tangle-DRzRB6z1.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 { $ 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
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as encodePromptForWire, l as exportTraceBundle, p as parseSSEStream, s as normalizeConnection, t as SandboxInstance } from "./sandbox-
|
|
1
|
+
import { f as encodePromptForWire, l as exportTraceBundle, p as parseSSEStream, s as normalizeConnection, t as SandboxInstance } from "./sandbox-UQrmff8d.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 { $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-UQrmff8d.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-vBERsxhj.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, h as serializeForSidecar, i as applySandboxEventText, l as exportTraceBundle, m as normalizeRuntimeBackendConfig, n as SandboxSession, o as getSandboxEventText, p as parseSSEStream, r as InteractiveSessionHandle, t as SandboxInstance, u as otelTraceIdForTangleTrace } from "./sandbox-
|
|
1
|
+
import { a as collectAgentResponseText, c as buildTraceExportPayload, d as toOtelJson, h as serializeForSidecar, i as applySandboxEventText, l as exportTraceBundle, m as normalizeRuntimeBackendConfig, n as SandboxSession, o as getSandboxEventText, p as parseSSEStream, r as InteractiveSessionHandle, t as SandboxInstance, u as otelTraceIdForTangleTrace } from "./sandbox-UQrmff8d.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-vBERsxhj.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-DRzRB6z1.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) {
|
|
@@ -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
|
/**
|
|
@@ -21,6 +21,10 @@ function normalizeRuntimeBackendConfig(backend, options = {}) {
|
|
|
21
21
|
const inlineProfile = portableProfile ? toBackendProfile(portableProfile) : void 0;
|
|
22
22
|
const callerInlineProfile = backend?.inlineProfile;
|
|
23
23
|
if (callerInlineProfile && !inlineProfile) console.warn("[sandbox-sdk] backend.inlineProfile is deprecated. Use backend.profile (AgentPortableProfile) instead.");
|
|
24
|
+
if (inlineProfile && portableProfile) {
|
|
25
|
+
const reasoningEffort = portableProfile.model?.reasoningEffort ?? portableProfile.extensions?.[backend?.type ?? ""]?.reasoningEffort;
|
|
26
|
+
if (typeof reasoningEffort === "string" && reasoningEffort !== "auto" && reasoningEffort !== "none") inlineProfile.reasoningEffort = reasoningEffort;
|
|
27
|
+
}
|
|
24
28
|
return {
|
|
25
29
|
...backend?.type ? { type: backend.type } : {},
|
|
26
30
|
...typeof backend?.profile === "string" ? { profile: backend.profile } : {},
|
|
@@ -825,8 +829,8 @@ function isTransientSnapshotVisibilityError(error) {
|
|
|
825
829
|
* `prompt`/`task`/`_sessionResult`/turn settling. A run succeeds only when it
|
|
826
830
|
* reached a terminal event, raised no run-level error, hit no approval gate,
|
|
827
831
|
* left no unanswered question, and recorded no failed (`isError`) tool. A
|
|
828
|
-
* tool-only turn with no text succeeds
|
|
829
|
-
* narrated around) fails.
|
|
832
|
+
* tool-only turn with no text succeeds unless the server enforces visible-output
|
|
833
|
+
* requirements; a turn whose tool failed (even if narrated around) fails.
|
|
830
834
|
*/
|
|
831
835
|
function deriveOutcome(inputs) {
|
|
832
836
|
if (inputs.question) return {
|
|
@@ -842,7 +846,8 @@ function deriveOutcome(inputs) {
|
|
|
842
846
|
if (inputs.runError) return {
|
|
843
847
|
status: "failed",
|
|
844
848
|
success: false,
|
|
845
|
-
error: inputs.runError
|
|
849
|
+
error: inputs.runError,
|
|
850
|
+
errorCode: inputs.runErrorCode
|
|
846
851
|
};
|
|
847
852
|
const failedTool = inputs.toolInvocations?.find((t) => t.isError === true);
|
|
848
853
|
if (failedTool) return {
|
|
@@ -1460,6 +1465,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1460
1465
|
const startTime = Date.now();
|
|
1461
1466
|
let responseText;
|
|
1462
1467
|
let runError;
|
|
1468
|
+
let runErrorCode;
|
|
1463
1469
|
let traceId;
|
|
1464
1470
|
let usage;
|
|
1465
1471
|
let costUsd;
|
|
@@ -1482,12 +1488,16 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1482
1488
|
if (event.type === "result" || event.type === "done") terminalReached = true;
|
|
1483
1489
|
if (event.type === "interaction") question = readQuestionEvent(event.data) ?? question;
|
|
1484
1490
|
if (event.type === "trace.id") traceId = event.data.traceId;
|
|
1485
|
-
if (event.type === "error")
|
|
1491
|
+
if (event.type === "error") {
|
|
1492
|
+
runError = event.data.message;
|
|
1493
|
+
runErrorCode = event.data.code;
|
|
1494
|
+
}
|
|
1486
1495
|
}
|
|
1487
1496
|
const approval = detectHubApproval(toolInvocations);
|
|
1488
1497
|
const outcome = deriveOutcome({
|
|
1489
1498
|
terminalReached,
|
|
1490
1499
|
runError,
|
|
1500
|
+
runErrorCode,
|
|
1491
1501
|
toolInvocations,
|
|
1492
1502
|
approval,
|
|
1493
1503
|
question
|
|
@@ -1497,6 +1507,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1497
1507
|
status: outcome.status,
|
|
1498
1508
|
response: responseText,
|
|
1499
1509
|
error: outcome.error,
|
|
1510
|
+
errorCode: outcome.errorCode,
|
|
1500
1511
|
toolInvocations,
|
|
1501
1512
|
approval,
|
|
1502
1513
|
question,
|
|
@@ -1594,6 +1605,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1594
1605
|
sessionId: options?.sessionId,
|
|
1595
1606
|
turnId: options?.turnId,
|
|
1596
1607
|
metadata: options?.context,
|
|
1608
|
+
requireVisibleAssistantOutput: options?.requireVisibleAssistantOutput,
|
|
1597
1609
|
...options?.detach ? { detach: true } : {},
|
|
1598
1610
|
backend: normalizeRuntimeBackendConfig(options?.backend ?? this.defaultRuntimeBackend, { model: options?.model })
|
|
1599
1611
|
})
|
|
@@ -1849,6 +1861,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1849
1861
|
const sessionId = options?.sessionId ?? `task-${crypto.randomUUID()}`;
|
|
1850
1862
|
let responseText;
|
|
1851
1863
|
let runError;
|
|
1864
|
+
let runErrorCode;
|
|
1852
1865
|
let traceId;
|
|
1853
1866
|
let usage;
|
|
1854
1867
|
let costUsd;
|
|
@@ -1872,12 +1885,16 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1872
1885
|
if (event.type === "result" || event.type === "done") terminalReached = true;
|
|
1873
1886
|
if (event.type === "interaction") question = readQuestionEvent(event.data) ?? question;
|
|
1874
1887
|
if (event.type === "trace.id") traceId = event.data.traceId;
|
|
1875
|
-
if (event.type === "error")
|
|
1888
|
+
if (event.type === "error") {
|
|
1889
|
+
runError = event.data.message;
|
|
1890
|
+
runErrorCode = event.data.code;
|
|
1891
|
+
}
|
|
1876
1892
|
}
|
|
1877
1893
|
const approval = detectHubApproval(toolInvocations);
|
|
1878
1894
|
const outcome = deriveOutcome({
|
|
1879
1895
|
terminalReached,
|
|
1880
1896
|
runError,
|
|
1897
|
+
runErrorCode,
|
|
1881
1898
|
toolInvocations,
|
|
1882
1899
|
approval,
|
|
1883
1900
|
question
|
|
@@ -1887,6 +1904,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1887
1904
|
status: outcome.status,
|
|
1888
1905
|
response: responseText,
|
|
1889
1906
|
error: outcome.error,
|
|
1907
|
+
errorCode: outcome.errorCode,
|
|
1890
1908
|
toolInvocations,
|
|
1891
1909
|
approval,
|
|
1892
1910
|
question,
|
|
@@ -4222,6 +4240,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4222
4240
|
const startTime = Date.now();
|
|
4223
4241
|
let response;
|
|
4224
4242
|
let runError;
|
|
4243
|
+
let runErrorCode;
|
|
4225
4244
|
let traceId;
|
|
4226
4245
|
let usage;
|
|
4227
4246
|
let costUsd;
|
|
@@ -4241,7 +4260,11 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4241
4260
|
}
|
|
4242
4261
|
if (event.type === "interaction") question = readQuestionEvent(event.data) ?? question;
|
|
4243
4262
|
if (event.type === "trace.id") traceId = event.data.traceId;
|
|
4244
|
-
if (event.type === "error")
|
|
4263
|
+
if (event.type === "error") {
|
|
4264
|
+
const data = event.data;
|
|
4265
|
+
runError = data.message;
|
|
4266
|
+
runErrorCode = data.code;
|
|
4267
|
+
}
|
|
4245
4268
|
if (event.type === "done" || event.type === "result") {
|
|
4246
4269
|
terminalReached = true;
|
|
4247
4270
|
break;
|
|
@@ -4251,6 +4274,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4251
4274
|
const outcome = deriveOutcome({
|
|
4252
4275
|
terminalReached,
|
|
4253
4276
|
runError,
|
|
4277
|
+
runErrorCode,
|
|
4254
4278
|
toolInvocations,
|
|
4255
4279
|
approval,
|
|
4256
4280
|
question
|
|
@@ -4260,6 +4284,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4260
4284
|
status: outcome.status,
|
|
4261
4285
|
response,
|
|
4262
4286
|
error: outcome.error,
|
|
4287
|
+
errorCode: outcome.errorCode,
|
|
4263
4288
|
toolInvocations,
|
|
4264
4289
|
approval,
|
|
4265
4290
|
question,
|
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-DRzRB6z1.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