@tangle-network/sandbox 0.15.0 → 0.15.1-develop.20260728075224.6d03540
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-Dj9pI8pq.js → client-BxbTIXY2.js} +1 -1
- package/dist/{client-Cf4yrjD6.d.ts → client-DSe6n831.d.ts} +1 -1
- package/dist/core.d.ts +2 -2
- package/dist/core.js +2 -2
- package/dist/{index-COEAR283.d.ts → index-uSJUX_Qv.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/openai/index.js +1 -1
- package/dist/{sandbox-Dcrcg3A1.d.ts → sandbox-BN0sQinm.d.ts} +7 -1
- package/dist/{sandbox-ClU3H3WT.js → sandbox-DRBiIkU7.js} +12 -4
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-Co7xFRJm.js → tangle-Dc4ELMi_.js} +1 -1
- package/package.json +4 -4
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as CodeResultPart, S as CodeLanguage, b as CodeExecutionOptions, x as CodeExecutionResult } from "../types-Qj4sIfZE.js";
|
|
2
|
-
import { n as SandboxInstance } from "../sandbox-
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
2
|
+
import { n as SandboxInstance } from "../sandbox-BN0sQinm.js";
|
|
3
|
+
import { i as Sandbox } from "../client-DSe6n831.js";
|
|
4
4
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
5
5
|
|
|
6
6
|
//#region src/agent/tools/_specs.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as encodeTextForWire, d as normalizeRuntimeBackendConfig, f as backendTypeSchema, i as SANDBOX_PROXY_REQUEST_MAX_BYTES, l as applyRequestedModel, o as combineAbortSignals, s as encodePromptForWire, u as assertCurrentBackendType } from "./runtime-api-CCvDLhAW.js";
|
|
2
2
|
import { a as NotFoundError, c as SandboxError, d as TimeoutError, f as ValidationError, i as NetworkError, l as ServerError, o as PartialFailureError, p as parseErrorResponse, t as AuthError } from "./errors-D9fFOWX9.js";
|
|
3
|
-
import { g as exportTraceBundle, m as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeStartupDiagnostics, y as parseSSEStream } from "./sandbox-
|
|
3
|
+
import { g as exportTraceBundle, m as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeStartupDiagnostics, y as parseSSEStream } from "./sandbox-DRBiIkU7.js";
|
|
4
4
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../../../packages/runtime-contracts/dist/git-policy.js
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as ExecResult, A as CreateSandboxFleetTokenOptions, An as ReconcileSandboxFleetsResult, Cn as PublicTemplateInfo, Ct as FleetPromptDispatchResult, D as CreateIntelligenceReportOptions, Di as UsageInfo, Dn as ReapExpiredSandboxFleetsOptions, En as PublishPublicTemplateVersionOptions, Gn as SandboxEnvironment, Gr as SecretsManager, Ht as IntelligenceReport, Jn as SandboxFleetArtifactSpec, Kt as IntelligenceReportWindow, M as CreateSandboxOptions, O as CreateRequestOptions, On as ReapExpiredSandboxFleetsResult, Q as ExecOptions, Qn as SandboxFleetDriverCapability, St as FleetPromptDispatchOptions, Tn as PublishPublicTemplateOptions, Ui as BatchEvent, Un as SandboxConfig, Ut as IntelligenceReportBudget, Wt as IntelligenceReportCompareTo, Xt as ListSandboxFleetOptions, Yn as SandboxFleetCostEstimate, Zn as SandboxFleetDispatchResponse, Zt as ListSandboxOptions, _n as PromptOptions, _r as SandboxFleetWorkspaceReconcileResult, _t as FleetDriveTurnOutcome, a as AttachSandboxFleetMachineOptions, br as SandboxIdentity, bt as FleetExecDispatchResult, cr as SandboxFleetOperationsSummary, dr as SandboxFleetTraceBundle, er as SandboxFleetInfo, f as BatchResult, gn as PromptInputPart, gt as FleetDispatchStreamOptions, hr as SandboxFleetUsage, ht as FleetDispatchResultBufferOptions, ir as SandboxFleetMachineRecord, j as CreateSandboxFleetWithCoordinatorOptions, k as CreateSandboxFleetOptions, kn as ReconcileSandboxFleetsOptions, m as BatchRunRequest, mr as SandboxFleetTraceOptions, mt as FleetDispatchResultBuffer, oi as SshKeysManager, or as SandboxFleetManifest, p as BatchRunOptions, pt as FleetDispatchCancelResult, qn as SandboxFleetArtifact, ui as SubscriptionInfo, ur as SandboxFleetToken, vn as PromptResult, vr as SandboxFleetWorkspaceRestoreResult, vt as FleetDriveTurnRequest, wn as PublicTemplateVersionInfo, xi as TokenRefreshHandler, xr as SandboxInfo, xt as FleetMachineId, yr as SandboxFleetWorkspaceSnapshotResult, yt as FleetExecDispatchOptions } from "./types-Qj4sIfZE.js";
|
|
2
|
-
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-
|
|
2
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-BN0sQinm.js";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/sse-parser.d.ts
|
|
5
5
|
/**
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as ExecResult, M as CreateSandboxOptions, Or as SandboxStatus, Q as ExecOptions, Un as SandboxConfig, gn as PromptInputPart, on as PreviewLinkInfo, sn as PreviewLinkManager, tn as NetworkConfig, xr as SandboxInfo } from "./types-Qj4sIfZE.js";
|
|
2
|
-
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-
|
|
3
|
-
import { i as Sandbox } from "./client-
|
|
2
|
+
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-BN0sQinm.js";
|
|
3
|
+
import { i as Sandbox } from "./client-DSe6n831.js";
|
|
4
4
|
import { a as NotFoundError, c as SandboxError, d as ServerError, f as StateError, i as NetworkError, l as SandboxErrorJson, m as ValidationError, n as CapabilityError, o as PartialFailureError, p as TimeoutError, s as QuotaError, t as AuthError, u as SandboxFailureDetail } from "./errors-BzMmpmqU.js";
|
|
5
5
|
export { AuthError, CapabilityError, type CreateSandboxOptions, type ExecOptions, type ExecResult, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, type PromptInputPart, QuotaError, Sandbox, type SandboxConfig, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, type SandboxInfo, SandboxInstance, type SandboxStatus, ServerError, StateError, TimeoutError, ValidationError, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages };
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as NotFoundError, c as SandboxError, d as TimeoutError, f as ValidationError, i as NetworkError, l as ServerError, n as CapabilityError, o as PartialFailureError, s as QuotaError, t as AuthError, u as StateError } from "./errors-D9fFOWX9.js";
|
|
2
|
-
import { n as Sandbox } from "./client-
|
|
3
|
-
import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
2
|
+
import { n as Sandbox } from "./client-BxbTIXY2.js";
|
|
3
|
+
import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-DRBiIkU7.js";
|
|
4
4
|
export { AuthError, CapabilityError, NetworkError, NotFoundError, PartialFailureError, QuotaError, Sandbox, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { $ as ExecResult, $n as SandboxFleetDriverTimings, $r as SessionListOptions, $t as MintScopedTokenOptions, Ai as WriteFileOptions, An as ReconcileSandboxFleetsResult, Ar as SandboxTerminalCreateOptions, At as GitStatus, B as DownloadOptions, Bi as TerminalStreamOptions, Bn as RolloutTurnPart, Br as ScopedToken, Bt as HostAgentRuntimeBackend, Ci as TurnDriveResult, Cn as PublicTemplateInfo, Cr as SandboxPortBinding, D as CreateIntelligenceReportOptions, Di as UsageInfo, Dn as ReapExpiredSandboxFleetsOptions, Dr as SandboxRuntimeHealth, Dt as GitCommit, E as CreateGpuLeaseOptions, Ei as UploadProgress, En as PublishPublicTemplateVersionOptions, Er as SandboxResources, Et as GitBranch, F as DeleteOptions, Fi as TerminalReadyInfo, Fn as RolloutChildResult, Fr as SandboxTraceBundle, Ft as GpuLeaseExecResult, G as DriverType, Gi as BatchSidecarGroup, Gn as SandboxEnvironment, Gr as SecretsManager, Gt as IntelligenceReportSubjectType, H as DriveTurnOptions, Hi as BatchBackendStats, Hn as SSHCredentials, Hr as SearchMatch, Ht as IntelligenceReport, I as DevServerInfo, Ii as TerminalStream, In as RolloutOptions, Ir as SandboxTraceEvent, It as GpuLeaseManager, J as EgressPolicy, Ji as BackendType, Jn as SandboxFleetArtifactSpec, Jr as SentSessionMessage, Jt as ListMessagesOptions, Ki as BatchTaskUsage, Kn as SandboxEvent, Kr as SendSessionMessageOptions, Kt as IntelligenceReportWindow, L as DirectoryPermission, Li as TerminalStreamAuthFormat, Ln as RolloutScorer, Lr as SandboxTraceExport, Lt as GpuLeaseProviderName, M as CreateSandboxOptions, Mi as WriteManyOptions, Mr as SandboxTerminalManager, Mt as GpuLeaseBilling, N as CreateSessionOptions, Ni as TERMINAL_WS_ECHO_SUBPROTOCOL, Nr as SandboxTerminalRequestOptions, Nt as GpuLeaseCommandResult, O as CreateRequestOptions, Oi as WaitForOptions, On as ReapExpiredSandboxFleetsResult, Or as SandboxStatus, Ot as GitConfig, P as CreateTaskSessionOptions, Pi as TerminalExitInfo, Pn as Rollout, Pr as SandboxTerminals, Pt as GpuLeaseExecOptions, Q as ExecOptions, Qn as SandboxFleetDriverCapability, Qr as SessionInfo, Qt as McpServerConfig, R as DispatchPromptOptions, Ri as TerminalStreamError, Rn as RolloutStartResult, Rr as SandboxTraceOptions, Rt as GpuLeaseStatus, Si as TokenUsage, Sn as ProvisionStep, Sr as SandboxIntelligenceEnvelope, St as FleetPromptDispatchOptions, T as CompletedTurnResult, Ti as UploadOptions, Tn as PublishPublicTemplateOptions, Tr as SandboxResourceUsage, Tt as GitAuth, U as DriverConfig, Ui as BatchEvent, Un as SandboxConfig, Ur as SearchOptions, Ut as IntelligenceReportBudget, V as DownloadProgress, Vi as TerminalStreamToken, Vn as SSHCommandDescriptor, Vr as ScopedTokenScope, Vt as InstalledTool, W as DriverInfo, Wi as BatchEventDataMap, Wn as SandboxConnection, Wr as SecretInfo, Wt as IntelligenceReportCompareTo, X as EventStreamOptions, Xn as SandboxFleetDispatchFailureClass, Xr as SessionEventStreamOptions, Xt as ListSandboxFleetOptions, Y as EnsureDevServerOptions, Yn as SandboxFleetCostEstimate, Yr as SessionBackendCredentials, Yt as ListOptions, Z as ExactProcessSpawnOptions, Zn as SandboxFleetDispatchResponse, Zr as SessionForkOptions, Zt as ListSandboxOptions, _ as BranchOptions, _i as TeeAttestationReport, _n as PromptOptions, _r as SandboxFleetWorkspaceReconcileResult, _t as FleetDriveTurnOutcome, a as AttachSandboxFleetMachineOptions, ai as SnapshotResult, an as PermissionsManager, ar as SandboxFleetMachineSpec, at as FileRenameResult, bi as TeePublicKeyResponse, bn as ProvisionResult, br as SandboxIdentity, c as BackendInfo, ci as StartupOperation, cn as Process, cr as SandboxFleetOperationsSummary, ct as FileTreeOptions, d as BatchBackend, di as TaskSessionChanges, dn as ProcessLogEntry, dr as SandboxFleetTraceBundle, dt as FileUsageResult, ei as SessionMessage, en as MkdirOptions, er as SandboxFleetInfo, et as FileInfo, f as BatchResult, fi as TaskSessionCommitResult, fn as ProcessManager, fr as SandboxFleetTraceEvent, ft as FileWriteResult, g as BatchTaskResult, gi as TeeAttestationOptions, gn as PromptInputPart, gr as SandboxFleetWorkspace, gt as FleetDispatchStreamOptions, h as BatchTask, hi as TaskSessionProfile, hn as ProcessStatus, hr as SandboxFleetUsage, ht as FleetDispatchResultBufferOptions, i as AttachGpuLeaseOptions, ii as SnapshotOptions, in as PermissionLevel, ir as SandboxFleetMachineRecord, it as FileReadResult, j as CreateSandboxFleetWithCoordinatorOptions, ji as WriteManyFile, jn as RenameOptions, jr as SandboxTerminalInfo, jt as GpuLease, k as CreateSandboxFleetOptions, ki as WaitForRolloutOptions, kn as ReconcileSandboxFleetsOptions, kr as SandboxTerminalAttachOptions, kt as GitDiff, l as BackendManager, li as StorageConfig, ln as ProcessInfo, lr as SandboxFleetPolicy, lt as FileTreeResult, m as BatchRunRequest, mi as TaskSessionInfo, mn as ProcessSpawnOptions, mr as SandboxFleetTraceOptions, mt as FleetDispatchResultBuffer, n as AccessPolicyRule, ni as SessionStatus, nn as NetworkManager, nr as SandboxFleetMachine, nt as FileReadBatchResult, o as BackendCapabilities, on as PreviewLinkInfo, or as SandboxFleetManifest, ot as FileSystem, p as BatchRunOptions, pi as TaskSessionFileChange, pn as ProcessSignal, pr as SandboxFleetTraceExport, pt as FleetDispatchCancelResult, q as EgressManager, qi as PublicBatchRunRequest, qn as SandboxFleetArtifact, qr as SendSessionMessageRequest, r as AddUserOptions, ri as SnapshotInfo, rn as NonHostAgentDriverConfig, rr as SandboxFleetMachineMeteredUsage, rt as FileReadError, s as BackendConfig, si as StartupDiagnostics, sn as PreviewLinkManager, sr as SandboxFleetManifestMachine, st as FileTreeFile, t as AcceleratorKind, ti as SessionMessageInputPart, tn as NetworkConfig, tr as SandboxFleetIntelligenceEnvelope, tt as FileReadBatchOptions, u as BackendStatus, ui as SubscriptionInfo, un as ProcessListOptions, ur as SandboxFleetToken, ut as FileUsageOptions, v as ChunkedUploadOptions, vi as TeeAttestationResponse, vn as PromptResult, vr as SandboxFleetWorkspaceRestoreResult, vt as FleetDriveTurnRequest, w as CommitTaskSessionOptions, wi as UpdateUserOptions, wn as PublicTemplateVersionInfo, wr as SandboxPortPreviewLink, wt as GPU_LEASE_PROVIDER_NAMES, xi as TokenRefreshHandler, xn as ProvisionStatus, xr as SandboxInfo, xt as FleetMachineId, y as ChunkedUploadResult, yi as TeePublicKey, yn as ProvisionEvent, yr as SandboxFleetWorkspaceSnapshotResult, yt as FleetExecDispatchOptions, z as DispatchedSession, zi as TerminalStreamHandlers, zn as RolloutStatus, zr as SandboxUser, zt as HostAgentDriverConfig } from "./types-Qj4sIfZE.js";
|
|
2
|
-
import { A as SandboxMcpEndpoint, C as RespondToPermissionOptions, D as CONTROL_PLANE_MCP_SERVER_NAME, E as BuildSandboxMcpConfigOptions, M as buildControlPlaneMcpConfig, N as buildSandboxMcpConfig, O as SANDBOX_MCP_SERVER_NAME, S as InterruptResult, T as BuildControlPlaneMcpConfigOptions, _ as InteractiveAuthFile, a as WorkspaceImagePublishResult, b as InteractiveSessionInfo, c as TraceExportResult, d as exportTraceBundle, f as otelTraceIdForTangleTrace, g as InteractiveAttachOptions, h as SandboxSession, i as WorkspaceImagePublishRequestOptions, j as SandboxMcpServerEntry, k as SandboxMcpConfig, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, o as WorkspaceImages, p as toOtelJson, r as WorkspaceImagePublishInput, s as TraceExportFormat, u as buildTraceExportPayload, v as InteractiveSessionHandle, w as StartInteractiveOptions, x as InteractiveSessionStatus, y as InteractiveSessionHost } from "./sandbox-
|
|
3
|
-
import { a as Team, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, i as Sandbox, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet } from "./client-
|
|
2
|
+
import { A as SandboxMcpEndpoint, C as RespondToPermissionOptions, D as CONTROL_PLANE_MCP_SERVER_NAME, E as BuildSandboxMcpConfigOptions, M as buildControlPlaneMcpConfig, N as buildSandboxMcpConfig, O as SANDBOX_MCP_SERVER_NAME, S as InterruptResult, T as BuildControlPlaneMcpConfigOptions, _ as InteractiveAuthFile, a as WorkspaceImagePublishResult, b as InteractiveSessionInfo, c as TraceExportResult, d as exportTraceBundle, f as otelTraceIdForTangleTrace, g as InteractiveAttachOptions, h as SandboxSession, i as WorkspaceImagePublishRequestOptions, j as SandboxMcpServerEntry, k as SandboxMcpConfig, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, o as WorkspaceImages, p as toOtelJson, r as WorkspaceImagePublishInput, s as TraceExportFormat, u as buildTraceExportPayload, v as InteractiveSessionHandle, w as StartInteractiveOptions, x as InteractiveSessionStatus, y as InteractiveSessionHost } from "./sandbox-BN0sQinm.js";
|
|
3
|
+
import { a as Team, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, i as Sandbox, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet } from "./client-DSe6n831.js";
|
|
4
4
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-DtRFVx5U.js";
|
|
5
5
|
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-Cp1KYanB.js";
|
|
6
6
|
import { a as NotFoundError, c as SandboxError, d as ServerError, f as StateError, i as NetworkError, l as SandboxErrorJson, m as ValidationError, n as CapabilityError, o as PartialFailureError, p as TimeoutError, r as EgressProxyRecoveryError, s as QuotaError, t as AuthError, u as SandboxFailureDetail } from "./errors-BzMmpmqU.js";
|
|
7
|
-
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-
|
|
7
|
+
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-uSJUX_Qv.js";
|
|
8
8
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
9
9
|
import { AgentProfile, AgentProfileConfidential, AgentProfileFileMount, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
10
10
|
import { z } from "zod";
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { d as normalizeRuntimeBackendConfig, f as backendTypeSchema } from "./runtime-api-CCvDLhAW.js";
|
|
2
2
|
import { a as NotFoundError, c as SandboxError, d as TimeoutError, f as ValidationError, i as NetworkError, l as ServerError, n as CapabilityError, o as PartialFailureError, r as EgressProxyRecoveryError, s as QuotaError, t as AuthError, u as StateError } from "./errors-D9fFOWX9.js";
|
|
3
|
-
import { a as splitInlineProfileSkills, c as SandboxFleetClient, i as splitInlineProfileFileMounts, l as createBatchResultAccumulator, n as Sandbox, o as validateDeferredProfileFileMounts, r as materializeProfileFileMounts, s as SandboxFleet, t as IntelligenceClient, u as validateBatchRunRequest } from "./client-
|
|
4
|
-
import { _ as otelTraceIdForTangleTrace, a as TERMINAL_WS_ECHO_SUBPROTOCOL, c as SandboxTaskSession, d as applySandboxEventText, f as collectAgentResponseText, g as exportTraceBundle, h as buildTraceExportPayload, i as WorkspaceImages, l as SandboxSession, o as TerminalStream, p as getSandboxEventText, s as TerminalStreamError, t as SandboxInstance, u as InteractiveSessionHandle, v as toOtelJson, y as parseSSEStream } from "./sandbox-
|
|
3
|
+
import { a as splitInlineProfileSkills, c as SandboxFleetClient, i as splitInlineProfileFileMounts, l as createBatchResultAccumulator, n as Sandbox, o as validateDeferredProfileFileMounts, r as materializeProfileFileMounts, s as SandboxFleet, t as IntelligenceClient, u as validateBatchRunRequest } from "./client-BxbTIXY2.js";
|
|
4
|
+
import { _ as otelTraceIdForTangleTrace, a as TERMINAL_WS_ECHO_SUBPROTOCOL, c as SandboxTaskSession, d as applySandboxEventText, f as collectAgentResponseText, g as exportTraceBundle, h as buildTraceExportPayload, i as WorkspaceImages, l as SandboxSession, o as TerminalStream, p as getSandboxEventText, s as TerminalStreamError, t as SandboxInstance, u as InteractiveSessionHandle, v as toOtelJson, y as parseSSEStream } from "./sandbox-DRBiIkU7.js";
|
|
5
5
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DdD_rFZQ.js";
|
|
6
|
-
import { t as TangleSandboxClient } from "./tangle-
|
|
6
|
+
import { t as TangleSandboxClient } from "./tangle-Dc4ELMi_.js";
|
|
7
7
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
//#region src/confidential.ts
|
package/dist/openai/index.js
CHANGED
|
@@ -1431,7 +1431,7 @@ function openaiMessagesToSandboxInput(messages, tools, model) {
|
|
|
1431
1431
|
if (!attached) throw new Error(`openaiMessagesToSandboxInput: tool message references unknown tool_call_id ${msg.tool_call_id}`);
|
|
1432
1432
|
break;
|
|
1433
1433
|
}
|
|
1434
|
-
case "function":
|
|
1434
|
+
case "function": throw new Error("openaiMessagesToSandboxInput: the `function` message role is not supported. Convert function-call results to `tool` messages with a tool_call_id (the OpenAI tools API shape).");
|
|
1435
1435
|
}
|
|
1436
1436
|
if (i === lastUserIndex) flushPending();
|
|
1437
1437
|
}
|
|
@@ -978,7 +978,13 @@ declare class SandboxInstance {
|
|
|
978
978
|
search(pattern: string, options?: SearchOptions): AsyncGenerator<SearchMatch>;
|
|
979
979
|
/** Basic health reported by the runtime inside this sandbox. */
|
|
980
980
|
runtimeHealth(): Promise<SandboxRuntimeHealth>;
|
|
981
|
-
/**
|
|
981
|
+
/**
|
|
982
|
+
* Return the runtime's current listening-port snapshot.
|
|
983
|
+
*
|
|
984
|
+
* An empty array means the runtime scanned and found no listeners. A runtime
|
|
985
|
+
* whose port watcher is switched off throws (503 `PORT_WATCHER_DISABLED`)
|
|
986
|
+
* rather than reporting an empty snapshot it never collected.
|
|
987
|
+
*/
|
|
982
988
|
ports(): Promise<SandboxPortBinding[]>;
|
|
983
989
|
/**
|
|
984
990
|
* Interactive terminal operations for this runtime: the REST manager
|
|
@@ -359,8 +359,9 @@ function normalizeSshCredentials(raw) {
|
|
|
359
359
|
* - `token` — an incremental token; text under `value`/`delta`/`text`/
|
|
360
360
|
* `content`.
|
|
361
361
|
* - `message.part.updated` — a streamed assistant message part; the text part
|
|
362
|
-
* lives at `data.part.text`
|
|
363
|
-
* `part.
|
|
362
|
+
* lives at `data.part.text` on direct run streams, or at
|
|
363
|
+
* `data.properties.part.text` when replayed by the session
|
|
364
|
+
* endpoint.
|
|
364
365
|
*/
|
|
365
366
|
function isRecord$1(v) {
|
|
366
367
|
return typeof v === "object" && v !== null;
|
|
@@ -377,7 +378,8 @@ function getSandboxEventText(event) {
|
|
|
377
378
|
if (event.type === "result") return firstString(data.finalText, data.response, data.output, data.content, data.text);
|
|
378
379
|
if (event.type === "token") return firstString(data.value, data.delta, data.text, data.content);
|
|
379
380
|
if (event.type !== "message.part.updated") return;
|
|
380
|
-
const
|
|
381
|
+
const properties = isRecord$1(data.properties) ? data.properties : void 0;
|
|
382
|
+
const part = isRecord$1(data.part) ? data.part : isRecord$1(properties?.part) ? properties.part : void 0;
|
|
381
383
|
if (part?.type !== "text") return;
|
|
382
384
|
return firstString(part.text, part.content);
|
|
383
385
|
}
|
|
@@ -2761,7 +2763,13 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2761
2763
|
async runtimeHealth() {
|
|
2762
2764
|
return this.runtime.health();
|
|
2763
2765
|
}
|
|
2764
|
-
/**
|
|
2766
|
+
/**
|
|
2767
|
+
* Return the runtime's current listening-port snapshot.
|
|
2768
|
+
*
|
|
2769
|
+
* An empty array means the runtime scanned and found no listeners. A runtime
|
|
2770
|
+
* whose port watcher is switched off throws (503 `PORT_WATCHER_DISABLED`)
|
|
2771
|
+
* rather than reporting an empty snapshot it never collected.
|
|
2772
|
+
*/
|
|
2765
2773
|
async ports() {
|
|
2766
2774
|
return this.runtime.ports();
|
|
2767
2775
|
}
|
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-uSJUX_Qv.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-Dc4ELMi_.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TANGLE_MAINNET_RPC, TangleSandboxClient };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as parseErrorResponse } from "./errors-D9fFOWX9.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-DRBiIkU7.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1-develop.20260728075224.6d03540",
|
|
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",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"url": "https://github.com/tangle-network/agent-dev-container/issues"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@tangle-network/agent-core": "0.4.
|
|
91
|
-
"@tangle-network/agent-interface": "0.
|
|
90
|
+
"@tangle-network/agent-core": "0.4.25",
|
|
91
|
+
"@tangle-network/agent-interface": "0.36.0",
|
|
92
92
|
"zod": "4.4.3"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
@@ -127,8 +127,8 @@
|
|
|
127
127
|
"vitest": "^4.1.5",
|
|
128
128
|
"ws": "^8.20.0",
|
|
129
129
|
"yjs": "13.6.30",
|
|
130
|
-
"@tangle-network/cli-agent-registry": "0.3.1",
|
|
131
130
|
"@repo/shared": "0.0.0",
|
|
131
|
+
"@tangle-network/cli-agent-registry": "0.3.1",
|
|
132
132
|
"@tangle-network/runtime-contracts": "0.3.1"
|
|
133
133
|
},
|
|
134
134
|
"scripts": {
|