@tangle-network/sandbox 0.9.2-develop.20260625211338.1a27fda → 0.9.2-develop.20260626004733.9a4748e
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-D3FqPlde.d.ts → client-B-OICQOB.d.ts} +1 -1
- package/dist/{client-BBZ7YLmq.js → client-BkalDYo-.js} +1 -1
- package/dist/core.d.ts +2 -2
- package/dist/core.js +2 -2
- package/dist/{index-Dy1fHLYz.d.ts → index-UDqxz3_K.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/{sandbox-B55j2q9K.d.ts → sandbox-D_1V6wPz.d.ts} +6 -1
- package/dist/{sandbox-joKtQ5y3.js → sandbox-dtnCiWl-.js} +55 -11
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-DM0o66lW.js → tangle-DvFLuD5y.js} +1 -1
- package/package.json +3 -3
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { J as CodeLanguage, K as CodeExecutionOptions, X as CodeResultPart, n as SandboxInstance, q as CodeExecutionResult } from "../sandbox-
|
|
2
|
-
import { i as SandboxClient } from "../client-
|
|
1
|
+
import { J as CodeLanguage, K as CodeExecutionOptions, X as CodeResultPart, n as SandboxInstance, q as CodeExecutionResult } from "../sandbox-D_1V6wPz.js";
|
|
2
|
+
import { i as SandboxClient } from "../client-B-OICQOB.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 CreateRequestOptions, $n as SandboxFleetToken, B as BatchResult, Bn as SandboxFleetDispatchResponse, Cn as PublishPublicTemplateOptions, Ct as FleetDispatchResultBufferOptions, Dn as ReconcileSandboxFleetsOptions, Dt as FleetMachineId, En as ReapExpiredSandboxFleetsResult, Et as FleetExecDispatchResult, Ht as IntelligenceReport, In as SandboxFleetArtifact, Kr as TokenRefreshHandler, Kt as IntelligenceReportWindow, Ln as SandboxFleetArtifactSpec, Mn as SandboxClientConfig, On as ReconcileSandboxFleetsResult, Ot as FleetPromptDispatchOptions, Pn as SandboxEnvironment, Pr as SshKeysManager, Q as CreateIntelligenceReportOptions, Qr as UsageInfo, R as BatchEvent, Rn as SandboxFleetCostEstimate, Rr as SubscriptionInfo, Sn as PublicTemplateVersionInfo, St as FleetDispatchResultBuffer, Tn as ReapExpiredSandboxFleetsOptions, Tr as SecretsManager, Tt as FleetExecDispatchOptions, Un as SandboxFleetInfo, Ut as IntelligenceReportBudget, V as BatchTask, Vn as SandboxFleetDriverCapability, Wt as IntelligenceReportCompareTo, Xt as ListSandboxOptions, Yn as SandboxFleetManifest, Yt as ListSandboxFleetOptions, Zn as SandboxFleetOperationsSummary, _t as ExecOptions, a as TraceExportSink, cr as SandboxFleetWorkspaceSnapshotResult, er as SandboxFleetTraceBundle, et as CreateSandboxFleetOptions, gn as PromptResult, hn as PromptOptions, i as TraceExportResult, ir as SandboxFleetUsage, j as AttachSandboxFleetMachineOptions, kt as FleetPromptDispatchResult, lr as SandboxInfo, mn as PromptInputPart, n as SandboxInstance, nt as CreateSandboxFleetWithCoordinatorOptions, or as SandboxFleetWorkspaceReconcileResult, qn as SandboxFleetMachineRecord, rr as SandboxFleetTraceOptions, rt as CreateSandboxOptions, sr as SandboxFleetWorkspaceRestoreResult, t as HttpClient, tt as CreateSandboxFleetTokenOptions, vt as ExecResult, wn as PublishPublicTemplateVersionOptions, wt as FleetDispatchStreamOptions, xn as PublicTemplateInfo, xt as FleetDispatchCancelResult, z as BatchOptions } from "./sandbox-
|
|
1
|
+
import { $ as CreateRequestOptions, $n as SandboxFleetToken, B as BatchResult, Bn as SandboxFleetDispatchResponse, Cn as PublishPublicTemplateOptions, Ct as FleetDispatchResultBufferOptions, Dn as ReconcileSandboxFleetsOptions, Dt as FleetMachineId, En as ReapExpiredSandboxFleetsResult, Et as FleetExecDispatchResult, Ht as IntelligenceReport, In as SandboxFleetArtifact, Kr as TokenRefreshHandler, Kt as IntelligenceReportWindow, Ln as SandboxFleetArtifactSpec, Mn as SandboxClientConfig, On as ReconcileSandboxFleetsResult, Ot as FleetPromptDispatchOptions, Pn as SandboxEnvironment, Pr as SshKeysManager, Q as CreateIntelligenceReportOptions, Qr as UsageInfo, R as BatchEvent, Rn as SandboxFleetCostEstimate, Rr as SubscriptionInfo, Sn as PublicTemplateVersionInfo, St as FleetDispatchResultBuffer, Tn as ReapExpiredSandboxFleetsOptions, Tr as SecretsManager, Tt as FleetExecDispatchOptions, Un as SandboxFleetInfo, Ut as IntelligenceReportBudget, V as BatchTask, Vn as SandboxFleetDriverCapability, Wt as IntelligenceReportCompareTo, Xt as ListSandboxOptions, Yn as SandboxFleetManifest, Yt as ListSandboxFleetOptions, Zn as SandboxFleetOperationsSummary, _t as ExecOptions, a as TraceExportSink, cr as SandboxFleetWorkspaceSnapshotResult, er as SandboxFleetTraceBundle, et as CreateSandboxFleetOptions, gn as PromptResult, hn as PromptOptions, i as TraceExportResult, ir as SandboxFleetUsage, j as AttachSandboxFleetMachineOptions, kt as FleetPromptDispatchResult, lr as SandboxInfo, mn as PromptInputPart, n as SandboxInstance, nt as CreateSandboxFleetWithCoordinatorOptions, or as SandboxFleetWorkspaceReconcileResult, qn as SandboxFleetMachineRecord, rr as SandboxFleetTraceOptions, rt as CreateSandboxOptions, sr as SandboxFleetWorkspaceRestoreResult, t as HttpClient, tt as CreateSandboxFleetTokenOptions, vt as ExecResult, wn as PublishPublicTemplateVersionOptions, wt as FleetDispatchStreamOptions, xn as PublicTemplateInfo, xt as FleetDispatchCancelResult, z as BatchOptions } from "./sandbox-D_1V6wPz.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-dtnCiWl-.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 { Mn as SandboxClientConfig, _t as ExecOptions, an as PreviewLinkInfo, en as NetworkConfig, lr as SandboxInfo, mr as SandboxStatus, n as SandboxInstance, on as PreviewLinkManager, rt as CreateSandboxOptions, vt as ExecResult } from "./sandbox-
|
|
2
|
-
import { i as SandboxClient } from "./client-
|
|
1
|
+
import { Mn as SandboxClientConfig, _t as ExecOptions, an as PreviewLinkInfo, en as NetworkConfig, lr as SandboxInfo, mr as SandboxStatus, n as SandboxInstance, on as PreviewLinkManager, rt as CreateSandboxOptions, vt as ExecResult } from "./sandbox-D_1V6wPz.js";
|
|
2
|
+
import { i as SandboxClient } from "./client-B-OICQOB.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-dtnCiWl-.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-BkalDYo-.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 { $n as SandboxFleetToken, $r as WaitForOptions, $t as MkdirOptions, A as AddUserOptions, An as SSHCommandDescriptor, Ar as SessionStatus, At as ForkOptions, B as BatchResult, Bn as SandboxFleetDispatchResponse, Br as TaskResult, Bt as HostAgentRuntimeBackend, C as SandboxMcpConfig, Cn as PublishPublicTemplateOptions, Cr as SearchOptions, Ct as FleetDispatchResultBufferOptions, D as buildSandboxMcpConfig, Dn as ReconcileSandboxFleetsOptions, Dr as SessionInfo, Dt as FleetMachineId, E as buildControlPlaneMcpConfig, En as ReapExpiredSandboxFleetsResult, Er as SessionEventStreamOptions, F as BackendManager, Fn as SandboxEvent, Fr as StartupDiagnostics, Ft as GitConfig, G as CheckpointResult, Gn as SandboxFleetMachine, Gr as TeePublicKeyResponse, Gt as IntelligenceReportSubjectType, H as BatchTaskResult, Hn as SandboxFleetDriverTimings, Hr as TeeAttestationReport, Ht as IntelligenceReport, I as BackendStatus, In as SandboxFleetArtifact, Ir as StartupOperation, It as GitDiff, Jn as SandboxFleetMachineSpec, Jr as TurnDriveResult, Jt as ListOptions, Kn as SandboxFleetMachineMeteredUsage, Kr as TokenRefreshHandler, Kt as IntelligenceReportWindow, L as BackendType, Ln as SandboxFleetArtifactSpec, Lr as StorageConfig, Lt as GitStatus, M as BackendCapabilities, Mn as SandboxClientConfig, Mr as SnapshotOptions, Mt as GitAuth, N as BackendConfig, Nn as SandboxConnection, Nr as SnapshotResult, Nt as GitBranch, O as AcceleratorKind, On as ReconcileSandboxFleetsResult, Or as SessionListOptions, Ot as FleetPromptDispatchOptions, P as BackendInfo, Pn as SandboxEnvironment, Pt as GitCommit, Q as CreateIntelligenceReportOptions, Qn as SandboxFleetPolicy, Qr as UsageInfo, Qt as MintScopedTokenOptions, R as BatchEvent, Rn as SandboxFleetCostEstimate, Rr as SubscriptionInfo, Rt as GpuType, S as SANDBOX_MCP_SERVER_NAME, Sn as PublicTemplateVersionInfo, Sr as SearchMatch, St as FleetDispatchResultBuffer, T as SandboxMcpServerEntry, Tn as ReapExpiredSandboxFleetsOptions, Tr as SecretsManager, Tt as FleetExecDispatchOptions, U as CheckpointInfo, Un as SandboxFleetInfo, Ur as TeeAttestationResponse, Ut as IntelligenceReportBudget, V as BatchTask, Vn as SandboxFleetDriverCapability, Vr as TeeAttestationOptions, Vt as InstalledTool, W as CheckpointOptions, Wn as SandboxFleetIntelligenceEnvelope, Wr as TeePublicKey, Wt as IntelligenceReportCompareTo, Xn as SandboxFleetManifestMachine, Xr as UploadOptions, Xt as ListSandboxOptions, Y as CodeResult, Yn as SandboxFleetManifest, Yr as UpdateUserOptions, Yt as ListSandboxFleetOptions, Z as CompletedTurnResult, Zn as SandboxFleetOperationsSummary, Zr as UploadProgress, Zt as McpServerConfig, _ as RespondToPermissionOptions, _i as defineGitHubResource, _n as ProvisionEvent, _r as SandboxTraceExport, _t as ExecOptions, a as TraceExportSink, ai as AgentProfileConnection, an as PreviewLinkInfo, ar as SandboxFleetWorkspace, at as DirectoryPermission, b as BuildSandboxMcpConfigOptions, bn as ProvisionStep, br as ScopedToken, bt as FileSystem, c as otelTraceIdForTangleTrace, ci as AgentProfileModelHints, cn as ProcessInfo, cr as SandboxFleetWorkspaceSnapshotResult, ct as DownloadOptions, d as InteractiveAuthFile, di as AgentProfileResourceRef, dn as ProcessSignal, dr as SandboxPermissionsConfig, dt as DriverConfig, ei as WriteManyFile, en as NetworkConfig, er as SandboxFleetTraceBundle, et as CreateSandboxFleetOptions, f as InteractiveSessionHandle, fi as AgentProfileResources, fn as ProcessSpawnOptions, fr as SandboxResourceUsage, ft as DriverInfo, g as PermissionResponseResult, gi as defineAgentProfile, gn as PromptResult, gr as SandboxTraceEvent, gt as EventStreamOptions, h as InterruptResult, hi as AgentSubagentProfile, hn as PromptOptions, hr as SandboxTraceBundle, ht as EgressPolicy, i as TraceExportResult, ii as AgentProfileConfidential, in as PermissionsManager, ir as SandboxFleetUsage, it as DeleteOptions, j as AttachSandboxFleetMachineOptions, jn as SSHCredentials, jr as SnapshotInfo, jt as ForkResult, k as AccessPolicyRule, kn as RunCodeOptions, kr as SessionMessage, l as toOtelJson, li as AgentProfilePermissionValue, ln as ProcessLogEntry, lr as SandboxInfo, lt as DownloadProgress, m as InteractiveSessionInfo, mi as AgentProfileValidationResult, mr as SandboxStatus, mt as EgressManager, n as SandboxInstance, ni as AgentProfile, nn as NonHostAgentDriverConfig, nr as SandboxFleetTraceExport, nt as CreateSandboxFleetWithCoordinatorOptions, o as buildTraceExportPayload, oi as AgentProfileFileMount, on as PreviewLinkManager, or as SandboxFleetWorkspaceReconcileResult, ot as DispatchPromptOptions, p as InteractiveSessionHost, pi as AgentProfileValidationIssue, pn as ProcessStatus, pr as SandboxResources, pt as DriverType, qn as SandboxFleetMachineRecord, qr as ToolsConfig, qt as ListMessagesOptions, r as TraceExportFormat, ri as AgentProfileCapabilities, rn as PermissionLevel, rr as SandboxFleetTraceOptions, rt as CreateSandboxOptions, s as exportTraceBundle, si as AgentProfileMcpServer, sn as Process, sr as SandboxFleetWorkspaceRestoreResult, st as DispatchedSession, ti as WriteManyOptions, tn as NetworkManager, tr as SandboxFleetTraceEvent, u as SandboxSession, ui as AgentProfilePrompt, un as ProcessManager, ur as SandboxIntelligenceEnvelope, ut as DriveTurnOptions, v as StartInteractiveOptions, vi as defineInlineResource, vn as ProvisionResult, vr as SandboxTraceOptions, vt as ExecResult, w as SandboxMcpEndpoint, wn as PublishPublicTemplateVersionOptions, wr as SecretInfo, wt as FleetDispatchStreamOptions, x as CONTROL_PLANE_MCP_SERVER_NAME, xn as PublicTemplateInfo, xr as ScopedTokenScope, xt as FleetDispatchCancelResult, y as BuildControlPlaneMcpConfigOptions, yi as mergeAgentProfiles, yn as ProvisionStatus, yr as SandboxUser, yt as FileInfo, z as BatchOptions, zn as SandboxFleetDispatchFailureClass, zr as TaskOptions, zt as HostAgentDriverConfig } 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 { $n as SandboxFleetToken, $r as WaitForOptions, $t as MkdirOptions, A as AddUserOptions, An as SSHCommandDescriptor, Ar as SessionStatus, At as ForkOptions, B as BatchResult, Bn as SandboxFleetDispatchResponse, Br as TaskResult, Bt as HostAgentRuntimeBackend, C as SandboxMcpConfig, Cn as PublishPublicTemplateOptions, Cr as SearchOptions, Ct as FleetDispatchResultBufferOptions, D as buildSandboxMcpConfig, Dn as ReconcileSandboxFleetsOptions, Dr as SessionInfo, Dt as FleetMachineId, E as buildControlPlaneMcpConfig, En as ReapExpiredSandboxFleetsResult, Er as SessionEventStreamOptions, F as BackendManager, Fn as SandboxEvent, Fr as StartupDiagnostics, Ft as GitConfig, G as CheckpointResult, Gn as SandboxFleetMachine, Gr as TeePublicKeyResponse, Gt as IntelligenceReportSubjectType, H as BatchTaskResult, Hn as SandboxFleetDriverTimings, Hr as TeeAttestationReport, Ht as IntelligenceReport, I as BackendStatus, In as SandboxFleetArtifact, Ir as StartupOperation, It as GitDiff, Jn as SandboxFleetMachineSpec, Jr as TurnDriveResult, Jt as ListOptions, Kn as SandboxFleetMachineMeteredUsage, Kr as TokenRefreshHandler, Kt as IntelligenceReportWindow, L as BackendType, Ln as SandboxFleetArtifactSpec, Lr as StorageConfig, Lt as GitStatus, M as BackendCapabilities, Mn as SandboxClientConfig, Mr as SnapshotOptions, Mt as GitAuth, N as BackendConfig, Nn as SandboxConnection, Nr as SnapshotResult, Nt as GitBranch, O as AcceleratorKind, On as ReconcileSandboxFleetsResult, Or as SessionListOptions, Ot as FleetPromptDispatchOptions, P as BackendInfo, Pn as SandboxEnvironment, Pt as GitCommit, Q as CreateIntelligenceReportOptions, Qn as SandboxFleetPolicy, Qr as UsageInfo, Qt as MintScopedTokenOptions, R as BatchEvent, Rn as SandboxFleetCostEstimate, Rr as SubscriptionInfo, Rt as GpuType, S as SANDBOX_MCP_SERVER_NAME, Sn as PublicTemplateVersionInfo, Sr as SearchMatch, St as FleetDispatchResultBuffer, T as SandboxMcpServerEntry, Tn as ReapExpiredSandboxFleetsOptions, Tr as SecretsManager, Tt as FleetExecDispatchOptions, U as CheckpointInfo, Un as SandboxFleetInfo, Ur as TeeAttestationResponse, Ut as IntelligenceReportBudget, V as BatchTask, Vn as SandboxFleetDriverCapability, Vr as TeeAttestationOptions, Vt as InstalledTool, W as CheckpointOptions, Wn as SandboxFleetIntelligenceEnvelope, Wr as TeePublicKey, Wt as IntelligenceReportCompareTo, Xn as SandboxFleetManifestMachine, Xr as UploadOptions, Xt as ListSandboxOptions, Y as CodeResult, Yn as SandboxFleetManifest, Yr as UpdateUserOptions, Yt as ListSandboxFleetOptions, Z as CompletedTurnResult, Zn as SandboxFleetOperationsSummary, Zr as UploadProgress, Zt as McpServerConfig, _ as RespondToPermissionOptions, _i as defineGitHubResource, _n as ProvisionEvent, _r as SandboxTraceExport, _t as ExecOptions, a as TraceExportSink, ai as AgentProfileConnection, an as PreviewLinkInfo, ar as SandboxFleetWorkspace, at as DirectoryPermission, b as BuildSandboxMcpConfigOptions, bn as ProvisionStep, br as ScopedToken, bt as FileSystem, c as otelTraceIdForTangleTrace, ci as AgentProfileModelHints, cn as ProcessInfo, cr as SandboxFleetWorkspaceSnapshotResult, ct as DownloadOptions, d as InteractiveAuthFile, di as AgentProfileResourceRef, dn as ProcessSignal, dr as SandboxPermissionsConfig, dt as DriverConfig, ei as WriteManyFile, en as NetworkConfig, er as SandboxFleetTraceBundle, et as CreateSandboxFleetOptions, f as InteractiveSessionHandle, fi as AgentProfileResources, fn as ProcessSpawnOptions, fr as SandboxResourceUsage, ft as DriverInfo, g as PermissionResponseResult, gi as defineAgentProfile, gn as PromptResult, gr as SandboxTraceEvent, gt as EventStreamOptions, h as InterruptResult, hi as AgentSubagentProfile, hn as PromptOptions, hr as SandboxTraceBundle, ht as EgressPolicy, i as TraceExportResult, ii as AgentProfileConfidential, in as PermissionsManager, ir as SandboxFleetUsage, it as DeleteOptions, j as AttachSandboxFleetMachineOptions, jn as SSHCredentials, jr as SnapshotInfo, jt as ForkResult, k as AccessPolicyRule, kn as RunCodeOptions, kr as SessionMessage, l as toOtelJson, li as AgentProfilePermissionValue, ln as ProcessLogEntry, lr as SandboxInfo, lt as DownloadProgress, m as InteractiveSessionInfo, mi as AgentProfileValidationResult, mr as SandboxStatus, mt as EgressManager, n as SandboxInstance, ni as AgentProfile, nn as NonHostAgentDriverConfig, nr as SandboxFleetTraceExport, nt as CreateSandboxFleetWithCoordinatorOptions, o as buildTraceExportPayload, oi as AgentProfileFileMount, on as PreviewLinkManager, or as SandboxFleetWorkspaceReconcileResult, ot as DispatchPromptOptions, p as InteractiveSessionHost, pi as AgentProfileValidationIssue, pn as ProcessStatus, pr as SandboxResources, pt as DriverType, qn as SandboxFleetMachineRecord, qr as ToolsConfig, qt as ListMessagesOptions, r as TraceExportFormat, ri as AgentProfileCapabilities, rn as PermissionLevel, rr as SandboxFleetTraceOptions, rt as CreateSandboxOptions, s as exportTraceBundle, si as AgentProfileMcpServer, sn as Process, sr as SandboxFleetWorkspaceRestoreResult, st as DispatchedSession, ti as WriteManyOptions, tn as NetworkManager, tr as SandboxFleetTraceEvent, u as SandboxSession, ui as AgentProfilePrompt, un as ProcessManager, ur as SandboxIntelligenceEnvelope, ut as DriveTurnOptions, v as StartInteractiveOptions, vi as defineInlineResource, vn as ProvisionResult, vr as SandboxTraceOptions, vt as ExecResult, w as SandboxMcpEndpoint, wn as PublishPublicTemplateVersionOptions, wr as SecretInfo, wt as FleetDispatchStreamOptions, x as CONTROL_PLANE_MCP_SERVER_NAME, xn as PublicTemplateInfo, xr as ScopedTokenScope, xt as FleetDispatchCancelResult, y as BuildControlPlaneMcpConfigOptions, yi as mergeAgentProfiles, yn as ProvisionStatus, yr as SandboxUser, yt as FileInfo, z as BatchOptions, zn as SandboxFleetDispatchFailureClass, zr as TaskOptions, zt as HostAgentDriverConfig } from "./sandbox-D_1V6wPz.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-B-OICQOB.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-UDqxz3_K.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-dtnCiWl-.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-BkalDYo-.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-DvFLuD5y.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) {
|
|
@@ -5519,7 +5519,12 @@ declare class SandboxInstance {
|
|
|
5519
5519
|
_respondToPermission(id: string, permissionID: string, options: RespondToPermissionOptions): Promise<PermissionResponseResult>;
|
|
5520
5520
|
/** @internal — invoked by SandboxSession.interrupt(). */
|
|
5521
5521
|
_interrupt(id: string): Promise<InterruptResult>;
|
|
5522
|
-
/**
|
|
5522
|
+
/**
|
|
5523
|
+
* @internal — invoked by SandboxSession.answer(). Resolves the session's
|
|
5524
|
+
* outstanding question interaction and posts the answer through the
|
|
5525
|
+
* interaction response route. The positional answer arrays map onto the
|
|
5526
|
+
* question's `answerSpec` fields in order.
|
|
5527
|
+
*/
|
|
5523
5528
|
_answerQuestion(id: string, answers: Record<string, string[]>): Promise<void>;
|
|
5524
5529
|
}
|
|
5525
5530
|
//#endregion
|
|
@@ -929,15 +929,26 @@ function detectHubApproval(toolInvocations) {
|
|
|
929
929
|
};
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
|
-
/** Read
|
|
932
|
+
/** Read an `interaction` event (kind `question`) into an awaiting-question requirement. */
|
|
933
933
|
function readQuestionEvent(data) {
|
|
934
|
-
const
|
|
935
|
-
if (
|
|
934
|
+
const request = data.request;
|
|
935
|
+
if (!request || request.kind !== "question" || typeof request.id !== "string") return;
|
|
936
936
|
return {
|
|
937
|
-
questionId,
|
|
938
|
-
questions:
|
|
937
|
+
questionId: request.id,
|
|
938
|
+
questions: questionsFromAnswerSpec(request)
|
|
939
939
|
};
|
|
940
940
|
}
|
|
941
|
+
/** Reconstruct the prompt/options shape from a question interaction's answerSpec. */
|
|
942
|
+
function questionsFromAnswerSpec(request) {
|
|
943
|
+
return request.answerSpec.fields.map((field) => field.type === "select" ? {
|
|
944
|
+
question: field.label,
|
|
945
|
+
options: field.options.map((o) => ({
|
|
946
|
+
label: o.label,
|
|
947
|
+
description: o.description
|
|
948
|
+
})),
|
|
949
|
+
multiSelect: field.multi === true
|
|
950
|
+
} : { question: field.label });
|
|
951
|
+
}
|
|
941
952
|
/**
|
|
942
953
|
* Convert a thrown error into an in-band `error` SandboxEvent so a streaming
|
|
943
954
|
* generator can surface a failure as an event followed by a terminal `done`
|
|
@@ -1468,7 +1479,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1468
1479
|
}
|
|
1469
1480
|
if (event.type === "result") toolInvocations = readToolInvocations(event.data) ?? toolInvocations;
|
|
1470
1481
|
if (event.type === "result" || event.type === "done") terminalReached = true;
|
|
1471
|
-
if (event.type === "
|
|
1482
|
+
if (event.type === "interaction") question = readQuestionEvent(event.data) ?? question;
|
|
1472
1483
|
if (event.type === "trace.id") traceId = event.data.traceId;
|
|
1473
1484
|
if (event.type === "error") runError = event.data.message;
|
|
1474
1485
|
}
|
|
@@ -1858,7 +1869,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1858
1869
|
}
|
|
1859
1870
|
if (event.type === "done" && costUsd === void 0) costUsd = readTokenCostUsd(event.data);
|
|
1860
1871
|
if (event.type === "result" || event.type === "done") terminalReached = true;
|
|
1861
|
-
if (event.type === "
|
|
1872
|
+
if (event.type === "interaction") question = readQuestionEvent(event.data) ?? question;
|
|
1862
1873
|
if (event.type === "trace.id") traceId = event.data.traceId;
|
|
1863
1874
|
if (event.type === "error") runError = event.data.message;
|
|
1864
1875
|
}
|
|
@@ -4225,7 +4236,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4225
4236
|
const data = event.data;
|
|
4226
4237
|
toolInvocations = readToolInvocations(data) ?? toolInvocations;
|
|
4227
4238
|
}
|
|
4228
|
-
if (event.type === "
|
|
4239
|
+
if (event.type === "interaction") question = readQuestionEvent(event.data) ?? question;
|
|
4229
4240
|
if (event.type === "trace.id") traceId = event.data.traceId;
|
|
4230
4241
|
if (event.type === "error") runError = event.data.message;
|
|
4231
4242
|
if (event.type === "done" || event.type === "result") {
|
|
@@ -4336,12 +4347,45 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4336
4347
|
}
|
|
4337
4348
|
return { cancelled: (await response.json()).data?.cancelled === true };
|
|
4338
4349
|
}
|
|
4339
|
-
/**
|
|
4350
|
+
/**
|
|
4351
|
+
* @internal — invoked by SandboxSession.answer(). Resolves the session's
|
|
4352
|
+
* outstanding question interaction and posts the answer through the
|
|
4353
|
+
* interaction response route. The positional answer arrays map onto the
|
|
4354
|
+
* question's `answerSpec` fields in order.
|
|
4355
|
+
*/
|
|
4340
4356
|
async _answerQuestion(id, answers) {
|
|
4341
4357
|
await this.ensureRunning();
|
|
4342
|
-
const
|
|
4358
|
+
const listResp = await this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/interactions`, { method: "GET" });
|
|
4359
|
+
if (!listResp.ok) {
|
|
4360
|
+
const body = await listResp.text();
|
|
4361
|
+
throw parseErrorResponse(listResp.status, body, void 0, listResp.headers);
|
|
4362
|
+
}
|
|
4363
|
+
const outstanding = ((await listResp.json()).data?.interactions ?? []).find((r) => r.kind === "question");
|
|
4364
|
+
if (!outstanding) throw new Error("No outstanding question to answer for this session");
|
|
4365
|
+
const positional = Object.values(answers);
|
|
4366
|
+
const data = {};
|
|
4367
|
+
outstanding.answerSpec.fields.forEach((field, index) => {
|
|
4368
|
+
const raw = answers[field.name] ?? answers[String(index)] ?? positional[index] ?? [];
|
|
4369
|
+
switch (field.type) {
|
|
4370
|
+
case "select":
|
|
4371
|
+
data[field.name] = raw;
|
|
4372
|
+
break;
|
|
4373
|
+
case "number":
|
|
4374
|
+
data[field.name] = Number(raw[0] ?? 0);
|
|
4375
|
+
break;
|
|
4376
|
+
case "boolean":
|
|
4377
|
+
data[field.name] = raw[0] === "true";
|
|
4378
|
+
break;
|
|
4379
|
+
default: data[field.name] = raw[0] ?? "";
|
|
4380
|
+
}
|
|
4381
|
+
});
|
|
4382
|
+
const response = await this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/interactions`, {
|
|
4343
4383
|
method: "POST",
|
|
4344
|
-
body: JSON.stringify({
|
|
4384
|
+
body: JSON.stringify({
|
|
4385
|
+
id: outstanding.id,
|
|
4386
|
+
outcome: "accepted",
|
|
4387
|
+
data
|
|
4388
|
+
})
|
|
4345
4389
|
});
|
|
4346
4390
|
if (!response.ok) {
|
|
4347
4391
|
const body = await response.text();
|
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-UDqxz3_K.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-DvFLuD5y.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.2-develop.
|
|
3
|
+
"version": "0.9.2-develop.20260626004733.9a4748e",
|
|
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",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"url": "https://github.com/tangle-network/agent-dev-container/issues"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@tangle-network/agent-core": "^0.3.
|
|
86
|
-
"@tangle-network/agent-interface": "^0.
|
|
85
|
+
"@tangle-network/agent-core": "^0.3.3",
|
|
86
|
+
"@tangle-network/agent-interface": "^0.13.0"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@mastra/core": "^1.36.0",
|