@tangle-network/sandbox 0.15.2 → 0.15.3-develop.20260729104309.c4a5aa8
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 +3 -3
- package/dist/{client-BxbTIXY2.js → client-BiZ9-TqN.js} +2 -2
- package/dist/{client-DSe6n831.d.ts → client-TMvNZgyy.d.ts} +2 -2
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-uSJUX_Qv.d.ts → index-BdPCuaZM.d.ts} +2 -2
- package/dist/index.d.ts +15 -15
- package/dist/index.js +4 -4
- package/dist/{runtime-api-CCvDLhAW.js → runtime-api-Bage44Xd.js} +72 -19
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-DRBiIkU7.js → sandbox-hSaxYyWo.js} +20 -23
- package/dist/{sandbox-BN0sQinm.d.ts → sandbox-sQlgHNQu.d.ts} +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-Dc4ELMi_.js → tangle-DsQLgyfb.js} +1 -1
- package/dist/{types-Qj4sIfZE.d.ts → types-Bj2gAOtW.d.ts} +74 -11
- package/package.json +3 -3
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CodeResultPart, S as CodeLanguage, b as CodeExecutionOptions, x as CodeExecutionResult } from "../types-
|
|
2
|
-
import { n as SandboxInstance } from "../sandbox-
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
1
|
+
import { C as CodeResultPart, S as CodeLanguage, b as CodeExecutionOptions, x as CodeExecutionResult } from "../types-Bj2gAOtW.js";
|
|
2
|
+
import { n as SandboxInstance } from "../sandbox-sQlgHNQu.js";
|
|
3
|
+
import { i as Sandbox } from "../client-TMvNZgyy.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
|
-
import { c as
|
|
1
|
+
import { c as combineAbortSignals, d as applyRequestedModel, f as assertCurrentBackendType, l as encodePromptForWire, m as backendTypeSchema, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, p as normalizeRuntimeBackendConfig, u as encodeTextForWire } from "./runtime-api-Bage44Xd.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-hSaxYyWo.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
|
-
import { $ as
|
|
2
|
-
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-
|
|
1
|
+
import { $t as ListSandboxFleetOptions, A as CreateSandboxFleetTokenOptions, An as ReapExpiredSandboxFleetsOptions, Cr as SandboxIdentity, Ct as FleetExecDispatchResult, D as CreateIntelligenceReportOptions, Dn as PublicTemplateVersionInfo, Ei as TokenRefreshHandler, En as PublicTemplateInfo, Et as FleetPromptDispatchResult, Gt as IntelligenceReport, Ji as BatchEvent, Jn as SandboxEnvironment, Jr as SecretsManager, Kn as SandboxConfig, Kt as IntelligenceReportBudget, M as CreateSandboxOptions, Mi as UsageInfo, Mn as ReconcileSandboxFleetsOptions, Nn as ReconcileSandboxFleetsResult, O as CreateRequestOptions, On as PublishPublicTemplateOptions, Qn as SandboxFleetCostEstimate, Sr as SandboxFleetWorkspaceSnapshotResult, St as FleetExecDispatchOptions, Tt as FleetPromptDispatchOptions, Xn as SandboxFleetArtifact, Yt as IntelligenceReportWindow, Zn as SandboxFleetArtifactSpec, _r as SandboxFleetTraceOptions, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, bn as PromptOptions, br as SandboxFleetWorkspaceReconcileResult, bt as FleetDriveTurnOutcome, dr as SandboxFleetOperationsSummary, en as ListSandboxOptions, er as SandboxFleetDispatchResponse, f as BatchResult, gt as FleetDispatchCancelResult, j as CreateSandboxFleetWithCoordinatorOptions, jn as ReapExpiredSandboxFleetsResult, k as CreateSandboxFleetOptions, kn as PublishPublicTemplateVersionOptions, li as SshKeysManager, lr as SandboxFleetManifest, m as BatchRunRequest, mr as SandboxFleetTraceBundle, nt as ExecResult, p as BatchRunOptions, pi as SubscriptionInfo, pr as SandboxFleetToken, qt as IntelligenceReportCompareTo, rr as SandboxFleetInfo, sr as SandboxFleetMachineRecord, tr as SandboxFleetDriverCapability, tt as ExecOptions, vr as SandboxFleetUsage, vt as FleetDispatchResultBufferOptions, wr as SandboxInfo, wt as FleetMachineId, xn as PromptResult, xr as SandboxFleetWorkspaceRestoreResult, xt as FleetDriveTurnRequest, yn as PromptInputPart, yt as FleetDispatchStreamOptions } from "./types-Bj2gAOtW.js";
|
|
2
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-sQlgHNQu.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
|
-
import {
|
|
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-
|
|
1
|
+
import { Kn as SandboxConfig, M as CreateSandboxOptions, in as NetworkConfig, jr as SandboxStatus, ln as PreviewLinkInfo, nt as ExecResult, tt as ExecOptions, un as PreviewLinkManager, wr as SandboxInfo, yn as PromptInputPart } from "./types-Bj2gAOtW.js";
|
|
2
|
+
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-sQlgHNQu.js";
|
|
3
|
+
import { i as Sandbox } from "./client-TMvNZgyy.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-BiZ9-TqN.js";
|
|
3
|
+
import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-hSaxYyWo.js";
|
|
4
4
|
export { AuthError, CapabilityError, NetworkError, NotFoundError, PartialFailureError, QuotaError, Sandbox, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as CreateSandboxOptions } from "./types-
|
|
2
|
-
import { n as SandboxInstance, t as HttpClient } from "./sandbox-
|
|
1
|
+
import { M as CreateSandboxOptions } from "./types-Bj2gAOtW.js";
|
|
2
|
+
import { n as SandboxInstance, t as HttpClient } from "./sandbox-sQlgHNQu.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tangle/abi.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { $ as
|
|
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-
|
|
1
|
+
import { $ as EventStreamOptions, $i as BackendType, $n as SandboxFleetDispatchFailureClass, $r as SessionEventStreamOptions, $t as ListSandboxFleetOptions, Ai as UploadOptions, An as ReapExpiredSandboxFleetsOptions, Ar as SandboxRuntimeHealth, At as GitCommit, B as DownloadOptions, Bi as TerminalReadyInfo, Bn as RolloutScorer, Br as SandboxTraceExport, Bt as GpuLeaseProviderName, Ci as TeeAttestationResponse, Cn as ProvisionResult, Cr as SandboxIdentity, D as CreateIntelligenceReportOptions, Di as TokenUsage, Dn as PublicTemplateVersionInfo, Dr as SandboxPortPreviewLink, Dt as GPU_LEASE_PROVIDER_NAMES, E as CreateGpuLeaseOptions, Ei as TokenRefreshHandler, En as PublicTemplateInfo, Er as SandboxPortBinding, F as DeleteOptions, Fi as WriteFileOptions, Fr as SandboxTerminalManager, Ft as GpuLeaseBilling, G as DriverType, Gi as TerminalStreamOptions, Gn as SSHCredentials, Gr as SearchMatch, Gt as IntelligenceReport, H as DriveTurnOptions, Hi as TerminalStreamAuthFormat, Hn as RolloutStatus, Hr as SandboxUser, Ht as HostAgentDriverConfig, I as DevServerInfo, Ii as WriteManyFile, Ir as SandboxTerminalRequestOptions, It as GpuLeaseCommandResult, J as EffectiveBackendProfile, Ji as BatchEvent, Jn as SandboxEnvironment, Jr as SecretsManager, Jt as IntelligenceReportSubjectType, Ki as TerminalStreamToken, Kn as SandboxConfig, Kr as SearchOptions, Kt as IntelligenceReportBudget, L as DirectoryPermission, Li as WriteManyOptions, Ln as Rollout, Lr as SandboxTerminals, Lt as GpuLeaseExecOptions, M as CreateSandboxOptions, Mi as UsageInfo, Mn as ReconcileSandboxFleetsOptions, Mr as SandboxTerminalAttachOptions, Mt as GitDiff, N as CreateSessionOptions, Ni as WaitForOptions, Nn as ReconcileSandboxFleetsResult, Nr as SandboxTerminalCreateOptions, Nt as GitStatus, O as CreateRequestOptions, Oi as TurnDriveResult, On as PublishPublicTemplateOptions, Or as SandboxResourceUsage, Ot as GitAuth, P as CreateTaskSessionOptions, Pi as WaitForRolloutOptions, Pn as RenameOptions, Pr as SandboxTerminalInfo, Pt as GpuLease, Q as EnsureDevServerOptions, Qi as PublicBatchRunRequest, Qn as SandboxFleetCostEstimate, Qr as SessionBackendCredentials, Qt as ListOptions, R as DispatchPromptOptions, Ri as TERMINAL_WS_ECHO_SUBPROTOCOL, Rn as RolloutChildResult, Rr as SandboxTraceBundle, Rt as GpuLeaseExecResult, Si as TeeAttestationReport, Sn as ProvisionEvent, Sr as SandboxFleetWorkspaceSnapshotResult, St as FleetExecDispatchOptions, T as CompletedTurnResult, Ti as TeePublicKeyResponse, Tn as ProvisionStep, Tr as SandboxIntelligenceEnvelope, Tt as FleetPromptDispatchOptions, U as DriverConfig, Ui as TerminalStreamError, Un as RolloutTurnPart, Ur as ScopedToken, Ut as HostAgentRuntimeBackend, V as DownloadProgress, Vi as TerminalStream, Vn as RolloutStartResult, Vr as SandboxTraceOptions, Vt as GpuLeaseStatus, W as DriverInfo, Wi as TerminalStreamHandlers, Wn as SSHCommandDescriptor, Wr as ScopedTokenScope, Wt as InstalledTool, X as EgressManager, Xi as BatchSidecarGroup, Xn as SandboxFleetArtifact, Xr as SendSessionMessageRequest, Y as EffectiveBackendSource, Yi as BatchEventDataMap, Yn as SandboxEvent, Yr as SendSessionMessageOptions, Yt as IntelligenceReportWindow, Z as EgressPolicy, Zi as BatchTaskUsage, Zn as SandboxFleetArtifactSpec, Zr as SentSessionMessage, Zt as ListMessagesOptions, _ as BranchOptions, _i as TaskSessionCommitResult, _n as ProcessSpawnOptions, _r as SandboxFleetTraceOptions, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, ai as SessionStatus, an as NetworkManager, ar as SandboxFleetMachine, at as FileReadBatchResult, bi as TaskSessionProfile, bn as PromptOptions, br as SandboxFleetWorkspaceReconcileResult, bt as FleetDriveTurnOutcome, c as BackendInfo, ci as SnapshotResult, cn as PermissionsManager, cr as SandboxFleetMachineSpec, ct as FileRenameResult, d as BatchBackend, di as StartupOperation, dn as Process, dr as SandboxFleetOperationsSummary, dt as FileTreeOptions, ei as SessionForkOptions, en as ListSandboxOptions, er as SandboxFleetDispatchResponse, et as ExactProcessSpawnOptions, f as BatchResult, fi as StorageConfig, fn as ProcessInfo, fr as SandboxFleetPolicy, ft as FileTreeResult, g as BatchTaskResult, gi as TaskSessionChanges, gn as ProcessSignal, gr as SandboxFleetTraceExport, gt as FleetDispatchCancelResult, h as BatchTask, hi as TaskResult, hn as ProcessManager, hr as SandboxFleetTraceEvent, ht as FileWriteResult, i as AttachGpuLeaseOptions, ii as SessionMessageInputPart, in as NetworkConfig, ir as SandboxFleetIntelligenceEnvelope, it as FileReadBatchOptions, j as CreateSandboxFleetWithCoordinatorOptions, ji as UploadProgress, jn as ReapExpiredSandboxFleetsResult, jr as SandboxStatus, jt as GitConfig, k as CreateSandboxFleetOptions, ki as UpdateUserOptions, kn as PublishPublicTemplateVersionOptions, kr as SandboxResources, kt as GitBranch, l as BackendManager, ln as PreviewLinkInfo, lr as SandboxFleetManifest, lt as FileSystem, m as BatchRunRequest, mi as TaskOptions, mn as ProcessLogEntry, mr as SandboxFleetTraceBundle, mt as FileUsageResult, n as AccessPolicyRule, ni as SessionListOptions, nn as MintScopedTokenOptions, nr as SandboxFleetDriverTimings, nt as ExecResult, o as BackendCapabilities, oi as SnapshotInfo, on as NonHostAgentDriverConfig, or as SandboxFleetMachineMeteredUsage, ot as FileReadError, p as BatchRunOptions, pi as SubscriptionInfo, pn as ProcessListOptions, pr as SandboxFleetToken, pt as FileUsageOptions, q as EffectiveBackend, qi as BatchBackendStats, qn as SandboxConnection, qr as SecretInfo, qt as IntelligenceReportCompareTo, r as AddUserOptions, ri as SessionMessage, rn as MkdirOptions, rr as SandboxFleetInfo, rt as FileInfo, s as BackendConfig, si as SnapshotOptions, sn as PermissionLevel, sr as SandboxFleetMachineRecord, st as FileReadResult, t as AcceleratorKind, ti as SessionInfo, tn as McpServerConfig, tr as SandboxFleetDriverCapability, tt as ExecOptions, u as BackendStatus, ui as StartupDiagnostics, un as PreviewLinkManager, ur as SandboxFleetManifestMachine, ut as FileTreeFile, v as ChunkedUploadOptions, vi as TaskSessionFileChange, vn as ProcessStatus, vr as SandboxFleetUsage, vt as FleetDispatchResultBufferOptions, w as CommitTaskSessionOptions, wi as TeePublicKey, wn as ProvisionStatus, wr as SandboxInfo, wt as FleetMachineId, xi as TeeAttestationOptions, xn as PromptResult, xr as SandboxFleetWorkspaceRestoreResult, xt as FleetDriveTurnRequest, y as ChunkedUploadResult, yi as TaskSessionInfo, yn as PromptInputPart, yr as SandboxFleetWorkspace, yt as FleetDispatchStreamOptions, z as DispatchedSession, zi as TerminalExitInfo, zn as RolloutOptions, zr as SandboxTraceEvent, zt as GpuLeaseManager } from "./types-Bj2gAOtW.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-sQlgHNQu.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-TMvNZgyy.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-BdPCuaZM.js";
|
|
8
8
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
9
|
-
import { AgentProfile, AgentProfileConfidential, AgentProfileFileMount, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
9
|
+
import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/attestation-heartbeat.d.ts
|
|
@@ -3842,8 +3842,8 @@ declare function createManageSandboxesTool(client: Sandbox, options?: ManageSand
|
|
|
3842
3842
|
//#endregion
|
|
3843
3843
|
//#region src/profile-file-mounts.d.ts
|
|
3844
3844
|
interface SplitInlineProfileFileMountsResult {
|
|
3845
|
-
leanProfile: AgentProfile;
|
|
3846
|
-
deferredFiles: AgentProfileFileMount[];
|
|
3845
|
+
leanProfile: AgentProfile$1;
|
|
3846
|
+
deferredFiles: AgentProfileFileMount$1[];
|
|
3847
3847
|
}
|
|
3848
3848
|
interface MaterializeProfileFileMountsOptions extends WriteManyOptions {
|
|
3849
3849
|
/** Hard timeout per exec fallback command. */
|
|
@@ -3882,12 +3882,12 @@ type ProfileFileMountBox = Pick<SandboxInstance, "exec"> & {
|
|
|
3882
3882
|
* non-string content) fails without paying for a sandbox that would only be
|
|
3883
3883
|
* orphaned by the post-provision throw.
|
|
3884
3884
|
*/
|
|
3885
|
-
declare function validateDeferredProfileFileMounts(files: readonly AgentProfileFileMount[]): void;
|
|
3885
|
+
declare function validateDeferredProfileFileMounts(files: readonly AgentProfileFileMount$1[]): void;
|
|
3886
3886
|
interface SplitInlineProfileSkillsResult {
|
|
3887
3887
|
/** Profile with inline skill refs removed (github refs kept — they resolve
|
|
3888
3888
|
* server-side). Suitable for the create body, whose wire cap the full skill
|
|
3889
3889
|
* corpus would exceed. */
|
|
3890
|
-
leanProfile: AgentProfile;
|
|
3890
|
+
leanProfile: AgentProfile$1;
|
|
3891
3891
|
/** How many inline skill refs were stripped. Zero means nothing to defer. */
|
|
3892
3892
|
deferredSkillCount: number;
|
|
3893
3893
|
}
|
|
@@ -3900,9 +3900,9 @@ interface SplitInlineProfileSkillsResult {
|
|
|
3900
3900
|
* per-turn profile. The full profile is delivered once (create-time priming)
|
|
3901
3901
|
* and referenced by hash thereafter.
|
|
3902
3902
|
*/
|
|
3903
|
-
declare function splitInlineProfileSkills(profile: AgentProfile): SplitInlineProfileSkillsResult;
|
|
3904
|
-
declare function splitInlineProfileFileMounts(profile: AgentProfile): SplitInlineProfileFileMountsResult;
|
|
3905
|
-
declare function materializeProfileFileMounts(box: ProfileFileMountBox, files: readonly AgentProfileFileMount[], options?: MaterializeProfileFileMountsOptions): Promise<MaterializeProfileFileMountsResult>;
|
|
3903
|
+
declare function splitInlineProfileSkills(profile: AgentProfile$1): SplitInlineProfileSkillsResult;
|
|
3904
|
+
declare function splitInlineProfileFileMounts(profile: AgentProfile$1): SplitInlineProfileFileMountsResult;
|
|
3905
|
+
declare function materializeProfileFileMounts(box: ProfileFileMountBox, files: readonly AgentProfileFileMount$1[], options?: MaterializeProfileFileMountsOptions): Promise<MaterializeProfileFileMountsResult>;
|
|
3906
3906
|
//#endregion
|
|
3907
3907
|
//#region src/resources.d.ts
|
|
3908
3908
|
/** The concrete cpu/memory/disk for each named tier. */
|
|
@@ -3994,11 +3994,11 @@ declare function fetchTangleRouterSearchConfig(options?: RouterSearchConfigOptio
|
|
|
3994
3994
|
declare function buildTangleRouterSearchProfile(config: RouterSearchConfig, options?: {
|
|
3995
3995
|
name?: string;
|
|
3996
3996
|
model?: string;
|
|
3997
|
-
}): AgentProfile;
|
|
3997
|
+
}): AgentProfile$1;
|
|
3998
3998
|
declare function buildTangleRouterSearchBackend(config: RouterSearchConfig, options?: {
|
|
3999
3999
|
type?: BackendConfig["type"];
|
|
4000
4000
|
apiKey?: string;
|
|
4001
|
-
profile?: AgentProfile;
|
|
4001
|
+
profile?: AgentProfile$1;
|
|
4002
4002
|
}): BackendConfig;
|
|
4003
4003
|
declare function buildTangleRouterEvalMatrixRequest(config: RouterSearchConfig, overrides?: Record<string, unknown>): {
|
|
4004
4004
|
url: string;
|
|
@@ -4192,4 +4192,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
4192
4192
|
}
|
|
4193
4193
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
4194
4194
|
//#endregion
|
|
4195
|
-
export { type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchResult, type BatchResultAccumulator, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type HostAgentDriverConfig, type HostAgentRuntimeBackend, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAuthFile, InteractiveSessionHandle, type InteractiveSessionHost, type InteractiveSessionInfo, type InteractiveSessionStatus, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeHealth, SandboxSession, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionForkOptions, type SessionInfo, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionStatus, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartInteractiveOptions, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createBatchResultAccumulator, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
4195
|
+
export { type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentProfile, type AgentProfileCapabilities, type AgentProfileConnection, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileSecurityPolicy, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchResult, type BatchResultAccumulator, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, type Capability, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type HostAgentDriverConfig, type HostAgentRuntimeBackend, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAuthFile, InteractiveSessionHandle, type InteractiveSessionHost, type InteractiveSessionInfo, type InteractiveSessionStatus, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeHealth, SandboxSession, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionForkOptions, type SessionInfo, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionStatus, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartInteractiveOptions, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskOptions, type TaskResult, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createBatchResultAccumulator, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as backendTypeSchema, p as normalizeRuntimeBackendConfig } from "./runtime-api-Bage44Xd.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-BiZ9-TqN.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-hSaxYyWo.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-DsQLgyfb.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
|
|
@@ -394,6 +394,23 @@ async function uploadChunked(transport, remotePath, data, options = {}) {
|
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
//#endregion
|
|
397
|
+
//#region src/lib/session-id.ts
|
|
398
|
+
const SESSION_ID_PATTERN = /^[a-zA-Z0-9_-]+$/;
|
|
399
|
+
function assertValidSessionId(value) {
|
|
400
|
+
if (typeof value !== "string" || !SESSION_ID_PATTERN.test(value)) throw new ValidationError(`Invalid sessionId ${typeof value === "string" ? JSON.stringify(value) : `of type ${typeof value}`}: must match ${SESSION_ID_PATTERN.source}`);
|
|
401
|
+
}
|
|
402
|
+
function sessionHeaders(sessionId) {
|
|
403
|
+
if (sessionId === void 0) return void 0;
|
|
404
|
+
assertValidSessionId(sessionId);
|
|
405
|
+
return { "X-Session-Id": sessionId };
|
|
406
|
+
}
|
|
407
|
+
function appendSessionIdQuery(params, sessionId) {
|
|
408
|
+
if (sessionId === void 0) return false;
|
|
409
|
+
assertValidSessionId(sessionId);
|
|
410
|
+
params.set("sessionId", sessionId);
|
|
411
|
+
return true;
|
|
412
|
+
}
|
|
413
|
+
//#endregion
|
|
397
414
|
//#region src/runtime-api.ts
|
|
398
415
|
/** Internal typed client for routes served by a sandbox runtime. */
|
|
399
416
|
var SandboxRuntimeApi = class {
|
|
@@ -416,6 +433,8 @@ var SandboxRuntimeApi = class {
|
|
|
416
433
|
return (await this.json("/ports", { method: "GET" })).data?.ports ?? [];
|
|
417
434
|
}
|
|
418
435
|
async readFiles(paths, options = {}) {
|
|
436
|
+
const params = new URLSearchParams();
|
|
437
|
+
appendSessionIdQuery(params, options.sessionId);
|
|
419
438
|
if (paths.length === 0) return {
|
|
420
439
|
files: [],
|
|
421
440
|
errors: [],
|
|
@@ -425,6 +444,7 @@ var SandboxRuntimeApi = class {
|
|
|
425
444
|
failed: 0
|
|
426
445
|
}
|
|
427
446
|
};
|
|
447
|
+
const query = params.toString();
|
|
428
448
|
await this.transport.ensureRunning();
|
|
429
449
|
const files = [];
|
|
430
450
|
const errors = [];
|
|
@@ -433,9 +453,6 @@ var SandboxRuntimeApi = class {
|
|
|
433
453
|
let failed = 0;
|
|
434
454
|
for (let offset = 0; offset < paths.length; offset += 100) {
|
|
435
455
|
const chunk = paths.slice(offset, offset + 100);
|
|
436
|
-
const params = new URLSearchParams();
|
|
437
|
-
if (options.sessionId) params.set("sessionId", options.sessionId);
|
|
438
|
-
const query = params.toString();
|
|
439
456
|
const payload = await this.json(`/files/read-batch${query ? `?${query}` : ""}`, {
|
|
440
457
|
method: "POST",
|
|
441
458
|
body: JSON.stringify({
|
|
@@ -472,10 +489,10 @@ var SandboxRuntimeApi = class {
|
|
|
472
489
|
};
|
|
473
490
|
}
|
|
474
491
|
async writeFile(path, content, options = {}) {
|
|
475
|
-
await this.transport.ensureRunning();
|
|
476
492
|
const params = new URLSearchParams();
|
|
477
|
-
|
|
493
|
+
appendSessionIdQuery(params, options.sessionId);
|
|
478
494
|
const query = params.toString();
|
|
495
|
+
await this.transport.ensureRunning();
|
|
479
496
|
return (await this.json(`/files/write${query ? `?${query}` : ""}`, {
|
|
480
497
|
method: "POST",
|
|
481
498
|
body: JSON.stringify({
|
|
@@ -506,20 +523,20 @@ var SandboxRuntimeApi = class {
|
|
|
506
523
|
return uploadChunked({ fetch: (path, init) => this.transport.fetch(path, init) }, remotePath, data, options);
|
|
507
524
|
}
|
|
508
525
|
async deleteFile(path, options = {}) {
|
|
509
|
-
await this.transport.ensureRunning();
|
|
510
526
|
const params = new URLSearchParams();
|
|
511
|
-
|
|
527
|
+
appendSessionIdQuery(params, options.sessionId);
|
|
512
528
|
const query = params.toString();
|
|
529
|
+
await this.transport.ensureRunning();
|
|
513
530
|
await this.request(`/files/delete${query ? `?${query}` : ""}`, {
|
|
514
531
|
method: "POST",
|
|
515
532
|
body: JSON.stringify({ path })
|
|
516
533
|
});
|
|
517
534
|
}
|
|
518
535
|
async renameFile(sourcePath, destinationPath, options = {}) {
|
|
519
|
-
await this.transport.ensureRunning();
|
|
520
536
|
const params = new URLSearchParams();
|
|
521
|
-
|
|
537
|
+
appendSessionIdQuery(params, options.sessionId);
|
|
522
538
|
const query = params.toString();
|
|
539
|
+
await this.transport.ensureRunning();
|
|
523
540
|
return (await this.json(`/files/rename${query ? `?${query}` : ""}`, {
|
|
524
541
|
method: "POST",
|
|
525
542
|
body: JSON.stringify({
|
|
@@ -530,16 +547,16 @@ var SandboxRuntimeApi = class {
|
|
|
530
547
|
}
|
|
531
548
|
async fileTree(path, options = {}) {
|
|
532
549
|
if (options.maxDepth !== void 0 && (!Number.isInteger(options.maxDepth) || options.maxDepth < 1 || options.maxDepth > 20)) throw new ValidationError("maxDepth must be an integer between 1 and 20");
|
|
533
|
-
await this.transport.ensureRunning();
|
|
534
550
|
const params = new URLSearchParams({ path });
|
|
535
551
|
if (options.maxDepth !== void 0) params.set("maxDepth", String(options.maxDepth));
|
|
536
|
-
|
|
552
|
+
appendSessionIdQuery(params, options.sessionId);
|
|
553
|
+
await this.transport.ensureRunning();
|
|
537
554
|
return (await this.json(`/files/tree?${params}`, { method: "GET" })).data;
|
|
538
555
|
}
|
|
539
556
|
async fileUsage(path, options = {}) {
|
|
540
|
-
await this.transport.ensureRunning();
|
|
541
557
|
const params = new URLSearchParams({ path });
|
|
542
|
-
|
|
558
|
+
appendSessionIdQuery(params, options.sessionId);
|
|
559
|
+
await this.transport.ensureRunning();
|
|
543
560
|
return (await this.json(`/files/usage?${params}`, { method: "GET" })).data;
|
|
544
561
|
}
|
|
545
562
|
async createSession(options) {
|
|
@@ -642,20 +659,20 @@ var SandboxRuntimeApi = class {
|
|
|
642
659
|
});
|
|
643
660
|
}
|
|
644
661
|
async createTerminal(options = {}, request = {}) {
|
|
645
|
-
await this.transport.ensureRunning();
|
|
646
662
|
const params = new URLSearchParams();
|
|
647
|
-
|
|
663
|
+
appendSessionIdQuery(params, request.sessionId);
|
|
648
664
|
const query = params.toString();
|
|
665
|
+
await this.transport.ensureRunning();
|
|
649
666
|
return (await this.json(`/terminals${query ? `?${query}` : ""}`, {
|
|
650
667
|
method: "POST",
|
|
651
668
|
body: JSON.stringify(options)
|
|
652
669
|
})).data;
|
|
653
670
|
}
|
|
654
671
|
async writeTerminal(terminalId, data, request = {}) {
|
|
655
|
-
await this.transport.ensureRunning();
|
|
656
672
|
const params = new URLSearchParams();
|
|
657
|
-
|
|
673
|
+
appendSessionIdQuery(params, request.sessionId);
|
|
658
674
|
const query = params.toString();
|
|
675
|
+
await this.transport.ensureRunning();
|
|
659
676
|
await this.request(`/terminals/${encodeURIComponent(terminalId)}/input${query ? `?${query}` : ""}`, {
|
|
660
677
|
method: "POST",
|
|
661
678
|
body: JSON.stringify({ data })
|
|
@@ -686,10 +703,45 @@ var SandboxRuntimeApi = class {
|
|
|
686
703
|
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
687
704
|
}
|
|
688
705
|
};
|
|
706
|
+
const EFFECTIVE_BACKEND_SOURCES = [
|
|
707
|
+
"request",
|
|
708
|
+
"environment",
|
|
709
|
+
"profile"
|
|
710
|
+
];
|
|
711
|
+
function nonEmptyField(value) {
|
|
712
|
+
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
713
|
+
}
|
|
714
|
+
function normalizeEffectiveBackendProfile(value) {
|
|
715
|
+
if (!value || typeof value !== "object") return void 0;
|
|
716
|
+
const raw = value;
|
|
717
|
+
const digest = nonEmptyField(raw.digest);
|
|
718
|
+
if (!digest) return void 0;
|
|
719
|
+
const name = nonEmptyField(raw.name);
|
|
720
|
+
return {
|
|
721
|
+
...name ? { name } : {},
|
|
722
|
+
digest
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
function normalizeEffectiveBackend(value) {
|
|
726
|
+
if (!value || typeof value !== "object") return void 0;
|
|
727
|
+
const raw = value;
|
|
728
|
+
const provider = nonEmptyField(raw.provider);
|
|
729
|
+
const model = nonEmptyField(raw.model);
|
|
730
|
+
const profile = normalizeEffectiveBackendProfile(raw.profile);
|
|
731
|
+
if (!provider && !model && !profile) return void 0;
|
|
732
|
+
const source = nonEmptyField(raw.source);
|
|
733
|
+
return {
|
|
734
|
+
...provider ? { provider } : {},
|
|
735
|
+
...model ? { model } : {},
|
|
736
|
+
...source && EFFECTIVE_BACKEND_SOURCES.includes(source) ? { source } : {},
|
|
737
|
+
...profile ? { profile } : {}
|
|
738
|
+
};
|
|
739
|
+
}
|
|
689
740
|
function normalizeSessionInfo(raw) {
|
|
690
741
|
const id = raw.id;
|
|
691
742
|
if (typeof id !== "string") return null;
|
|
692
743
|
const status = raw.status || "running";
|
|
744
|
+
const effectiveBackend = normalizeEffectiveBackend(raw.effectiveBackend);
|
|
693
745
|
return {
|
|
694
746
|
id,
|
|
695
747
|
parentId: typeof raw.parentID === "string" ? raw.parentID : typeof raw.parentId === "string" ? raw.parentId : void 0,
|
|
@@ -702,7 +754,8 @@ function normalizeSessionInfo(raw) {
|
|
|
702
754
|
].includes(status) ? status : "running",
|
|
703
755
|
latestExecutionId: typeof raw.latestExecutionId === "string" && raw.latestExecutionId.length > 0 ? raw.latestExecutionId : void 0,
|
|
704
756
|
backend: typeof raw.backendType === "string" ? raw.backendType : typeof raw.backend === "string" ? raw.backend : void 0,
|
|
705
|
-
|
|
757
|
+
effectiveBackend,
|
|
758
|
+
model: typeof raw.model === "string" ? raw.model : effectiveBackend?.model,
|
|
706
759
|
promptCount: typeof raw.promptCount === "number" ? raw.promptCount : void 0,
|
|
707
760
|
createdAt: raw.createdAt ? new Date(raw.createdAt) : void 0,
|
|
708
761
|
startedAt: raw.startedAt ? new Date(raw.startedAt) : void 0,
|
|
@@ -711,4 +764,4 @@ function normalizeSessionInfo(raw) {
|
|
|
711
764
|
};
|
|
712
765
|
}
|
|
713
766
|
//#endregion
|
|
714
|
-
export {
|
|
767
|
+
export { uploadChunked as a, combineAbortSignals as c, applyRequestedModel as d, assertCurrentBackendType as f, sessionHeaders as i, encodePromptForWire as l, backendTypeSchema as m, normalizeSessionInfo as n, SANDBOX_PROXY_REQUEST_MAX_BYTES as o, normalizeRuntimeBackendConfig as p, appendSessionIdQuery as r, FILE_DECODED_WRITE_MAX_BYTES as s, SandboxRuntimeApi as t, encodeTextForWire as u };
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as SandboxRuntimeHealth, Er as SandboxPortBinding, Fi as WriteFileOptions, Fr as SandboxTerminalManager, Ir as SandboxTerminalRequestOptions, N as CreateSessionOptions, Nr as SandboxTerminalCreateOptions, P as CreateTaskSessionOptions, Pn as RenameOptions, Pr as SandboxTerminalInfo, Xr as SendSessionMessageRequest, Yr as SendSessionMessageOptions, Zr as SentSessionMessage, Zt as ListMessagesOptions, _i as TaskSessionCommitResult, at as FileReadBatchResult, ct as FileRenameResult, dt as FileTreeOptions, ft as FileTreeResult, gi as TaskSessionChanges, ht as FileWriteResult, it as FileReadBatchOptions, ji as UploadProgress, mt as FileUsageResult, pt as FileUsageOptions, ri as SessionMessage, ti as SessionInfo, v as ChunkedUploadOptions, w as CommitTaskSessionOptions, y as ChunkedUploadResult, yi as TaskSessionInfo } from "./types-Bj2gAOtW.js";
|
|
2
2
|
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";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/chunked-upload.d.ts
|
package/dist/runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as uploadChunked, c as combineAbortSignals, t as SandboxRuntimeApi } from "./runtime-api-Bage44Xd.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, s as QuotaError, t as AuthError, u as StateError } from "./errors-D9fFOWX9.js";
|
|
3
3
|
//#region src/runtime-client.ts
|
|
4
4
|
const DEFAULT_RUNTIME_TIMEOUT_MS = 3e4;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as uploadChunked, c as combineAbortSignals, d as applyRequestedModel, f as assertCurrentBackendType, i as sessionHeaders, l as encodePromptForWire, n as normalizeSessionInfo, p as normalizeRuntimeBackendConfig, r as appendSessionIdQuery, t as SandboxRuntimeApi } from "./runtime-api-Bage44Xd.js";
|
|
2
2
|
import { a as NotFoundError, c as SandboxError, d as TimeoutError, f as ValidationError, i as NetworkError, l as ServerError, p as parseErrorResponse, s as QuotaError, t as AuthError, u as StateError } from "./errors-D9fFOWX9.js";
|
|
3
3
|
import { readTokenCostUsd, readTokenUsage } from "@tangle-network/agent-core";
|
|
4
4
|
//#region src/lib/sse-parser.ts
|
|
@@ -1272,10 +1272,6 @@ function normalizeStartupDiagnostics(raw) {
|
|
|
1272
1272
|
phases
|
|
1273
1273
|
};
|
|
1274
1274
|
}
|
|
1275
|
-
const SESSION_ID_PATTERN = /^[a-zA-Z0-9_-]+$/;
|
|
1276
|
-
function assertValidSessionId(value) {
|
|
1277
|
-
if (!SESSION_ID_PATTERN.test(value)) throw new ValidationError(`Invalid sessionId ${JSON.stringify(value)}: must match ${SESSION_ID_PATTERN.source}`);
|
|
1278
|
-
}
|
|
1279
1275
|
/**
|
|
1280
1276
|
* Replace bearer-secret fields on a `SandboxConnection` with a sentinel
|
|
1281
1277
|
* before serialization. The serialized shape is preserved (so external
|
|
@@ -1938,11 +1934,10 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1938
1934
|
* Execute a command in the sandbox.
|
|
1939
1935
|
*/
|
|
1940
1936
|
async exec(command, options) {
|
|
1937
|
+
const headers = sessionHeaders(options?.sessionId);
|
|
1941
1938
|
await this.ensureRunning();
|
|
1942
1939
|
const timeoutMs = options?.timeoutMs ?? EXEC_DEFAULT_TIMEOUT_MS;
|
|
1943
1940
|
if (!Number.isInteger(timeoutMs) || timeoutMs < EXEC_MIN_TIMEOUT_MS || timeoutMs > EXEC_MAX_TIMEOUT_MS) throw new ValidationError(`exec timeoutMs must be an integer between ${EXEC_MIN_TIMEOUT_MS} and ${EXEC_MAX_TIMEOUT_MS}`);
|
|
1944
|
-
const headers = {};
|
|
1945
|
-
if (options?.sessionId) headers["X-Session-Id"] = options.sessionId;
|
|
1946
1941
|
const response = await this.runtimeFetch("/process/spawn", {
|
|
1947
1942
|
method: "POST",
|
|
1948
1943
|
headers,
|
|
@@ -1995,10 +1990,8 @@ var SandboxInstance = class SandboxInstance {
|
|
|
1995
1990
|
* ```
|
|
1996
1991
|
*/
|
|
1997
1992
|
async runCode(language, source, options) {
|
|
1998
|
-
|
|
1993
|
+
const headers = sessionHeaders(options?.sessionId) ?? {};
|
|
1999
1994
|
await this.ensureRunning();
|
|
2000
|
-
const headers = {};
|
|
2001
|
-
if (options?.sessionId) headers["X-Session-Id"] = options.sessionId;
|
|
2002
1995
|
if (options?.idempotencyKey) headers["X-Idempotency-Key"] = options.idempotencyKey;
|
|
2003
1996
|
const response = await this.runtimeFetch("/code/exec", {
|
|
2004
1997
|
method: "POST",
|
|
@@ -2033,8 +2026,8 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2033
2026
|
* ```
|
|
2034
2027
|
*/
|
|
2035
2028
|
async read(path, options) {
|
|
2029
|
+
const headers = sessionHeaders(options?.sessionId);
|
|
2036
2030
|
await this.ensureRunning();
|
|
2037
|
-
const headers = options?.sessionId ? { "X-Session-Id": options.sessionId } : void 0;
|
|
2038
2031
|
const response = await this.runtimeFetch("/files/read", {
|
|
2039
2032
|
method: "POST",
|
|
2040
2033
|
headers,
|
|
@@ -2063,9 +2056,9 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2063
2056
|
* ```
|
|
2064
2057
|
*/
|
|
2065
2058
|
async write(path, content, options) {
|
|
2066
|
-
await this.ensureRunning();
|
|
2067
2059
|
const params = new URLSearchParams();
|
|
2068
|
-
|
|
2060
|
+
appendSessionIdQuery(params, options?.sessionId);
|
|
2061
|
+
await this.ensureRunning();
|
|
2069
2062
|
const query = params.toString();
|
|
2070
2063
|
const response = await this.runtimeFetch(`/files/write${query ? `?${query}` : ""}`, {
|
|
2071
2064
|
method: "POST",
|
|
@@ -2851,8 +2844,10 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2851
2844
|
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
2852
2845
|
}
|
|
2853
2846
|
const data = await response.json();
|
|
2847
|
+
const isRepo = data.isRepo ?? true;
|
|
2854
2848
|
return {
|
|
2855
|
-
|
|
2849
|
+
isRepo,
|
|
2850
|
+
branch: isRepo ? data.branch ?? null : null,
|
|
2856
2851
|
head: data.head ?? "",
|
|
2857
2852
|
isDirty: data.isDirty ?? false,
|
|
2858
2853
|
ahead: data.ahead ?? 0,
|
|
@@ -3164,11 +3159,11 @@ var SandboxInstance = class SandboxInstance {
|
|
|
3164
3159
|
}
|
|
3165
3160
|
}
|
|
3166
3161
|
async fsList(path, options) {
|
|
3167
|
-
await this.ensureRunning();
|
|
3168
3162
|
const params = new URLSearchParams();
|
|
3169
3163
|
if (options?.all) params.set("all", "true");
|
|
3170
3164
|
if (options?.long) params.set("long", "true");
|
|
3171
|
-
|
|
3165
|
+
appendSessionIdQuery(params, options?.sessionId);
|
|
3166
|
+
await this.ensureRunning();
|
|
3172
3167
|
const query = params.toString();
|
|
3173
3168
|
const basePath = runtimeFilesystemPath("/fs/list", path);
|
|
3174
3169
|
const url = query ? `${basePath}?${query}` : basePath;
|
|
@@ -3214,9 +3209,11 @@ var SandboxInstance = class SandboxInstance {
|
|
|
3214
3209
|
};
|
|
3215
3210
|
}
|
|
3216
3211
|
async fsDelete(path, options) {
|
|
3212
|
+
const params = new URLSearchParams();
|
|
3213
|
+
if (options?.recursive) params.set("recursive", "true");
|
|
3214
|
+
const hasSessionScope = appendSessionIdQuery(params, options?.sessionId);
|
|
3217
3215
|
await this.ensureRunning();
|
|
3218
|
-
if (
|
|
3219
|
-
const params = new URLSearchParams({ sessionId: options.sessionId });
|
|
3216
|
+
if (hasSessionScope && !options?.recursive) {
|
|
3220
3217
|
const response = await this.runtimeFetch(`/files/delete?${params}`, {
|
|
3221
3218
|
method: "POST",
|
|
3222
3219
|
body: JSON.stringify({ path })
|
|
@@ -3227,9 +3224,6 @@ var SandboxInstance = class SandboxInstance {
|
|
|
3227
3224
|
}
|
|
3228
3225
|
return;
|
|
3229
3226
|
}
|
|
3230
|
-
const params = new URLSearchParams();
|
|
3231
|
-
if (options?.recursive) params.set("recursive", "true");
|
|
3232
|
-
if (options?.sessionId) params.set("sessionId", options.sessionId);
|
|
3233
3227
|
const query = params.toString();
|
|
3234
3228
|
const basePath = runtimeFilesystemPath("/fs", path);
|
|
3235
3229
|
const url = query ? `${basePath}?${query}` : basePath;
|
|
@@ -3652,10 +3646,9 @@ var SandboxInstance = class SandboxInstance {
|
|
|
3652
3646
|
};
|
|
3653
3647
|
}
|
|
3654
3648
|
async processEnsureDevServer(options) {
|
|
3655
|
-
|
|
3649
|
+
const headers = sessionHeaders(options?.sessionId);
|
|
3656
3650
|
if (options?.cwd !== void 0 && (typeof options.cwd !== "string" || options.cwd.trim().length === 0)) throw new ValidationError("Dev server cwd must be a non-empty string");
|
|
3657
3651
|
await this.ensureRunning();
|
|
3658
|
-
const headers = options?.sessionId ? { "X-Session-Id": options.sessionId } : void 0;
|
|
3659
3652
|
const response = await this.runtimeFetch("/process/ensure-dev-server", {
|
|
3660
3653
|
method: "POST",
|
|
3661
3654
|
headers,
|
|
@@ -3672,9 +3665,11 @@ var SandboxInstance = class SandboxInstance {
|
|
|
3672
3665
|
};
|
|
3673
3666
|
}
|
|
3674
3667
|
async processSpawn(command, options) {
|
|
3668
|
+
const headers = sessionHeaders(options?.sessionId);
|
|
3675
3669
|
await this.ensureRunning();
|
|
3676
3670
|
const response = await this.runtimeFetch("/process/spawn", {
|
|
3677
3671
|
method: "POST",
|
|
3672
|
+
headers,
|
|
3678
3673
|
body: JSON.stringify({
|
|
3679
3674
|
executable: "/bin/sh",
|
|
3680
3675
|
args: ["-lc", command],
|
|
@@ -3692,9 +3687,11 @@ var SandboxInstance = class SandboxInstance {
|
|
|
3692
3687
|
return this.createProcessHandle(data.data.pid, command);
|
|
3693
3688
|
}
|
|
3694
3689
|
async processSpawnExact(executable, args, options) {
|
|
3690
|
+
const headers = sessionHeaders(options?.sessionId);
|
|
3695
3691
|
await this.ensureRunning();
|
|
3696
3692
|
const response = await this.runtimeFetch("/process/spawn", {
|
|
3697
3693
|
method: "POST",
|
|
3694
|
+
headers,
|
|
3698
3695
|
body: JSON.stringify({
|
|
3699
3696
|
executable,
|
|
3700
3697
|
args,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as EventStreamOptions, $i as BackendType, $r as SessionEventStreamOptions, Ar as SandboxRuntimeHealth, At as GitCommit, Ci as TeeAttestationResponse, Cn as ProvisionResult, Er as SandboxPortBinding, Fi as WriteFileOptions, Fn as RestoreSnapshotOptions, Gn as SSHCredentials, Gr as SearchMatch, Gt as IntelligenceReport, H as DriveTurnOptions, Ii as WriteManyFile, In as ResumeOptions, K as DurablePlan, Kr as SearchOptions, Kt as IntelligenceReportBudget, Li as WriteManyOptions, Ln as Rollout, Lr as SandboxTerminals, Mr as SandboxTerminalAttachOptions, Mt as GitDiff, N as CreateSessionOptions, Ni as WaitForOptions, Nt as GitStatus, Oi as TurnDriveResult, Or as SandboxResourceUsage, P as CreateTaskSessionOptions, Pi as WaitForRolloutOptions, Pt as GpuLease, R as DispatchPromptOptions, Rr as SandboxTraceBundle, S as CodeLanguage, Sn as ProvisionEvent, T as CompletedTurnResult, Ti as TeePublicKeyResponse, Ur as ScopedToken, Vi as TerminalStream, Vn as RolloutStartResult, Vr as SandboxTraceOptions, W as DriverInfo, Wi as TerminalStreamHandlers, Wn as SSHCommandDescriptor, Wt as InstalledTool, X as EgressManager, Xr as SendSessionMessageRequest, Xt as JsonValue, Yn as SandboxEvent, Yr as SendSessionMessageOptions, Yt as IntelligenceReportWindow, Zr as SentSessionMessage, Zt as ListMessagesOptions, _ as BranchOptions, _i as TaskSessionCommitResult, an as NetworkManager, b as CodeExecutionOptions, bn as PromptOptions, ci as SnapshotResult, cn as PermissionsManager, ei as SessionForkOptions, gi as TaskSessionChanges, hn as ProcessManager, ht as FileWriteResult, jr as SandboxStatus, kt as GitBranch, l as BackendManager, lt as FileSystem, mr as SandboxFleetTraceBundle, ni as SessionListOptions, nn as MintScopedTokenOptions, nt as ExecResult, oi as SnapshotInfo, qn as SandboxConnection, qt as IntelligenceReportCompareTo, ri as SessionMessage, s as BackendConfig, si as SnapshotOptions, ti as SessionInfo, tt as ExecOptions, ui as StartupDiagnostics, un as PreviewLinkManager, w as CommitTaskSessionOptions, wr as SandboxInfo, x as CodeExecutionResult, xi as TeeAttestationOptions, xn as PromptResult, yi as TaskSessionInfo, yn as PromptInputPart, z as DispatchedSession, zn as RolloutOptions, zt as GpuLeaseManager } from "./types-Bj2gAOtW.js";
|
|
2
2
|
import { AgentProfile } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/mcp.d.ts
|
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-BdPCuaZM.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-DsQLgyfb.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-hSaxYyWo.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|
|
@@ -1670,15 +1670,36 @@ interface CreateSandboxOptions {
|
|
|
1670
1670
|
/** Environment variables injected into the sandbox */
|
|
1671
1671
|
env?: Record<string, string>;
|
|
1672
1672
|
/**
|
|
1673
|
-
* Maximum lifetime in seconds.
|
|
1674
|
-
*
|
|
1675
|
-
*
|
|
1673
|
+
* Maximum sandbox lifetime in seconds.
|
|
1674
|
+
*
|
|
1675
|
+
* On expiry the sandbox is SUSPENDED, not deleted: the container stops and
|
|
1676
|
+
* the workspace is preserved, with a best-effort pre-suspend snapshot when
|
|
1677
|
+
* the platform has snapshots enabled. It can be resumed for as long as it
|
|
1678
|
+
* stays suspended; once the cold window also elapses (6 hours by default)
|
|
1679
|
+
* the container is reclaimed, and bringing the preserved workspace back is
|
|
1680
|
+
* a re-provision against the same ref rather than a resume. Drivers with a
|
|
1681
|
+
* create/delete-only lifecycle (`driver: "tangle"`) skip the suspend
|
|
1682
|
+
* entirely and keep running.
|
|
1683
|
+
*
|
|
1684
|
+
* `create()` substitutes no default: omit the field and it is not sent, so
|
|
1685
|
+
* the sandbox falls back to the platform's global hard TTL — 365 days
|
|
1686
|
+
* unless an operator changed it. Omitting this therefore leaves the sandbox
|
|
1687
|
+
* effectively uncapped on age; it does not impose a short cap. Other entry
|
|
1688
|
+
* points do supply a value of their own — the `tangle sandbox create` CLI
|
|
1689
|
+
* and fleet machines both default to 3600 — so those paths never reach the
|
|
1690
|
+
* global fallback.
|
|
1676
1691
|
*/
|
|
1677
1692
|
maxLifetimeSeconds?: number;
|
|
1678
1693
|
/**
|
|
1679
1694
|
* Idle timeout in seconds.
|
|
1680
|
-
*
|
|
1681
|
-
*
|
|
1695
|
+
*
|
|
1696
|
+
* After this much inactivity the sandbox is suspended, with the same
|
|
1697
|
+
* suspend semantics and the same driver caveat as `maxLifetimeSeconds`.
|
|
1698
|
+
*
|
|
1699
|
+
* `create()` substitutes no default: omit the field and it is not sent, so
|
|
1700
|
+
* the sandbox falls back to the platform's global idle timeout — 30 minutes
|
|
1701
|
+
* unless an operator changed it. The `tangle sandbox create` CLI supplies
|
|
1702
|
+
* its own default of 900.
|
|
1682
1703
|
*/
|
|
1683
1704
|
idleTimeoutSeconds?: number;
|
|
1684
1705
|
/**
|
|
@@ -2309,9 +2330,11 @@ interface SearchMatch {
|
|
|
2309
2330
|
* Git repository status.
|
|
2310
2331
|
*/
|
|
2311
2332
|
interface GitStatus {
|
|
2312
|
-
/**
|
|
2313
|
-
|
|
2314
|
-
/**
|
|
2333
|
+
/** Whether the workspace contains a git repository at all */
|
|
2334
|
+
isRepo: boolean;
|
|
2335
|
+
/** Current branch name; `HEAD` when detached, null when there is no repository */
|
|
2336
|
+
branch: string | null;
|
|
2337
|
+
/** Commit SHA of HEAD; empty before the first commit */
|
|
2315
2338
|
head: string;
|
|
2316
2339
|
/** Whether there are uncommitted changes */
|
|
2317
2340
|
isDirty: boolean;
|
|
@@ -2601,6 +2624,20 @@ interface PromptOptions {
|
|
|
2601
2624
|
*/
|
|
2602
2625
|
detach?: boolean;
|
|
2603
2626
|
}
|
|
2627
|
+
/** @deprecated Legacy multi-turn task surface — agent-runtime ≤0.105's
|
|
2628
|
+
* declarations reference it; the current execution contract lives in
|
|
2629
|
+
* `prompt`/`dispatchPrompt`. */
|
|
2630
|
+
interface TaskOptions extends PromptOptions {
|
|
2631
|
+
/** Maximum number of agent turns (default: 10, 0 = unlimited) */
|
|
2632
|
+
maxTurns?: number;
|
|
2633
|
+
}
|
|
2634
|
+
/** @deprecated See {@link TaskOptions}. */
|
|
2635
|
+
interface TaskResult extends PromptResult {
|
|
2636
|
+
/** Number of agent turns used */
|
|
2637
|
+
turnsUsed: number;
|
|
2638
|
+
/** Session ID for the task (can be used to continue) */
|
|
2639
|
+
sessionId: string;
|
|
2640
|
+
}
|
|
2604
2641
|
/**
|
|
2605
2642
|
* SSE event from sandbox streaming.
|
|
2606
2643
|
*/
|
|
@@ -2608,7 +2645,9 @@ interface SandboxEvent {
|
|
|
2608
2645
|
/** Event type */
|
|
2609
2646
|
type: string;
|
|
2610
2647
|
/** Event data */
|
|
2611
|
-
data: Record<string, unknown
|
|
2648
|
+
data: Record<string, unknown> & {
|
|
2649
|
+
effectiveBackend?: EffectiveBackend;
|
|
2650
|
+
};
|
|
2612
2651
|
/** Event ID */
|
|
2613
2652
|
id?: string;
|
|
2614
2653
|
}
|
|
@@ -2996,6 +3035,26 @@ interface SandboxResourceUsage {
|
|
|
2996
3035
|
* Lifecycle state of an agent session inside a sandbox.
|
|
2997
3036
|
*/
|
|
2998
3037
|
type SessionStatus = "queued" | "running" | "completed" | "failed" | "cancelled";
|
|
3038
|
+
/** Secret-free model tuple selected by the sandbox runtime. */
|
|
3039
|
+
/**
|
|
3040
|
+
* Which layer supplied the model id that executed. `request` means the model
|
|
3041
|
+
* you sent survived transport; anything else means it did not, and a record
|
|
3042
|
+
* that attributes the turn to your requested model is wrong.
|
|
3043
|
+
*/
|
|
3044
|
+
type EffectiveBackendSource = "request" | "environment" | "profile";
|
|
3045
|
+
interface EffectiveBackendProfile {
|
|
3046
|
+
/** Profile name, when the profile declared one. */
|
|
3047
|
+
name?: string;
|
|
3048
|
+
/** Stable hash of the materialized profile; equal digests ran the same profile. */
|
|
3049
|
+
digest: string;
|
|
3050
|
+
}
|
|
3051
|
+
interface EffectiveBackend {
|
|
3052
|
+
provider?: string;
|
|
3053
|
+
model?: string;
|
|
3054
|
+
source?: EffectiveBackendSource;
|
|
3055
|
+
/** Identity of the agent profile bound to the turn. */
|
|
3056
|
+
profile?: EffectiveBackendProfile;
|
|
3057
|
+
}
|
|
2999
3058
|
/**
|
|
3000
3059
|
* Snapshot of a session's state at the moment it was queried. Returned
|
|
3001
3060
|
* by `box.session(id).status()` and `box.sessions()`.
|
|
@@ -3011,6 +3070,8 @@ interface SessionInfo {
|
|
|
3011
3070
|
latestExecutionId?: string;
|
|
3012
3071
|
/** Backend identifier (e.g. provider name). */
|
|
3013
3072
|
backend?: string;
|
|
3073
|
+
/** Provider/model selected after request normalization and environment fallback. */
|
|
3074
|
+
effectiveBackend?: EffectiveBackend;
|
|
3014
3075
|
/** Model id the session was created with. */
|
|
3015
3076
|
model?: string;
|
|
3016
3077
|
/** Number of prompts the session has processed. */
|
|
@@ -4986,6 +5047,8 @@ interface BackendManager {
|
|
|
4986
5047
|
* ```
|
|
4987
5048
|
*/
|
|
4988
5049
|
interface ProcessSpawnOptions {
|
|
5050
|
+
/** Agent session whose workspace the process should use. */
|
|
5051
|
+
sessionId?: string;
|
|
4989
5052
|
/** Working directory for the process */
|
|
4990
5053
|
cwd?: string;
|
|
4991
5054
|
/** Environment variables to set */
|
|
@@ -5210,7 +5273,7 @@ interface ProcessManager {
|
|
|
5210
5273
|
* Returns immediately with a Process handle.
|
|
5211
5274
|
*
|
|
5212
5275
|
* @param command - Shell command to execute
|
|
5213
|
-
* @param options - Spawn options (cwd, env, timeout)
|
|
5276
|
+
* @param options - Spawn options (sessionId, cwd, env, timeout)
|
|
5214
5277
|
* @returns Process handle for control and monitoring
|
|
5215
5278
|
*/
|
|
5216
5279
|
spawn(command: string, options?: ProcessSpawnOptions): Promise<Process>;
|
|
@@ -6011,4 +6074,4 @@ interface CodeExecutionOptions {
|
|
|
6011
6074
|
idempotencyKey?: string;
|
|
6012
6075
|
}
|
|
6013
6076
|
//#endregion
|
|
6014
|
-
export {
|
|
6077
|
+
export { EventStreamOptions as $, BackendType as $i, SandboxFleetDispatchFailureClass as $n, SessionEventStreamOptions as $r, ListSandboxFleetOptions as $t, CreateSandboxFleetTokenOptions as A, UploadOptions as Ai, ReapExpiredSandboxFleetsOptions as An, SandboxRuntimeHealth as Ar, GitCommit as At, DownloadOptions as B, TerminalReadyInfo as Bi, RolloutScorer as Bn, SandboxTraceExport as Br, GpuLeaseProviderName as Bt, CodeResultPart as C, TeeAttestationResponse as Ci, ProvisionResult as Cn, SandboxIdentity as Cr, FleetExecDispatchResult as Ct, CreateIntelligenceReportOptions as D, TokenUsage as Di, PublicTemplateVersionInfo as Dn, SandboxPortPreviewLink as Dr, GPU_LEASE_PROVIDER_NAMES as Dt, CreateGpuLeaseOptions as E, TokenRefreshHandler as Ei, PublicTemplateInfo as En, SandboxPortBinding as Er, FleetPromptDispatchResult as Et, DeleteOptions as F, WriteFileOptions as Fi, RestoreSnapshotOptions as Fn, SandboxTerminalManager as Fr, GpuLeaseBilling as Ft, DriverType as G, TerminalStreamOptions as Gi, SSHCredentials as Gn, SearchMatch as Gr, IntelligenceReport as Gt, DriveTurnOptions as H, TerminalStreamAuthFormat as Hi, RolloutStatus as Hn, SandboxUser as Hr, HostAgentDriverConfig as Ht, DevServerInfo as I, WriteManyFile as Ii, ResumeOptions as In, SandboxTerminalRequestOptions as Ir, GpuLeaseCommandResult as It, EffectiveBackendProfile as J, BatchEvent as Ji, SandboxEnvironment as Jn, SecretsManager as Jr, IntelligenceReportSubjectType as Jt, DurablePlan as K, TerminalStreamToken as Ki, SandboxConfig as Kn, SearchOptions as Kr, IntelligenceReportBudget as Kt, DirectoryPermission as L, WriteManyOptions as Li, Rollout as Ln, SandboxTerminals as Lr, GpuLeaseExecOptions as Lt, CreateSandboxOptions as M, UsageInfo as Mi, ReconcileSandboxFleetsOptions as Mn, SandboxTerminalAttachOptions as Mr, GitDiff as Mt, CreateSessionOptions as N, WaitForOptions as Ni, ReconcileSandboxFleetsResult as Nn, SandboxTerminalCreateOptions as Nr, GitStatus as Nt, CreateRequestOptions as O, TurnDriveResult as Oi, PublishPublicTemplateOptions as On, SandboxResourceUsage as Or, GitAuth as Ot, CreateTaskSessionOptions as P, WaitForRolloutOptions as Pi, RenameOptions as Pn, SandboxTerminalInfo as Pr, GpuLease as Pt, EnsureDevServerOptions as Q, PublicBatchRunRequest as Qi, SandboxFleetCostEstimate as Qn, SessionBackendCredentials as Qr, ListOptions as Qt, DispatchPromptOptions as R, TERMINAL_WS_ECHO_SUBPROTOCOL as Ri, RolloutChildResult as Rn, SandboxTraceBundle as Rr, GpuLeaseExecResult as Rt, CodeLanguage as S, TeeAttestationReport as Si, ProvisionEvent as Sn, SandboxFleetWorkspaceSnapshotResult as Sr, FleetExecDispatchOptions as St, CompletedTurnResult as T, TeePublicKeyResponse as Ti, ProvisionStep as Tn, SandboxIntelligenceEnvelope as Tr, FleetPromptDispatchOptions as Tt, DriverConfig as U, TerminalStreamError as Ui, RolloutTurnPart as Un, ScopedToken as Ur, HostAgentRuntimeBackend as Ut, DownloadProgress as V, TerminalStream as Vi, RolloutStartResult as Vn, SandboxTraceOptions as Vr, GpuLeaseStatus as Vt, DriverInfo as W, TerminalStreamHandlers as Wi, SSHCommandDescriptor as Wn, ScopedTokenScope as Wr, InstalledTool as Wt, EgressManager as X, BatchSidecarGroup as Xi, SandboxFleetArtifact as Xn, SendSessionMessageRequest as Xr, JsonValue as Xt, EffectiveBackendSource as Y, BatchEventDataMap as Yi, SandboxEvent as Yn, SendSessionMessageOptions as Yr, IntelligenceReportWindow as Yt, EgressPolicy as Z, BatchTaskUsage as Zi, SandboxFleetArtifactSpec as Zn, SentSessionMessage as Zr, ListMessagesOptions as Zt, BranchOptions as _, TaskSessionCommitResult as _i, ProcessSpawnOptions as _n, SandboxFleetTraceOptions as _r, FleetDispatchResultBuffer as _t, AttachSandboxFleetMachineOptions as a, SessionStatus as ai, NetworkManager as an, SandboxFleetMachine as ar, FileReadBatchResult as at, CodeExecutionOptions as b, TaskSessionProfile as bi, PromptOptions as bn, SandboxFleetWorkspaceReconcileResult as br, FleetDriveTurnOutcome as bt, BackendInfo as c, SnapshotResult as ci, PermissionsManager as cn, SandboxFleetMachineSpec as cr, FileRenameResult as ct, BatchBackend as d, StartupOperation as di, Process as dn, SandboxFleetOperationsSummary as dr, FileTreeOptions as dt, SessionForkOptions as ei, ListSandboxOptions as en, SandboxFleetDispatchResponse as er, ExactProcessSpawnOptions as et, BatchResult as f, StorageConfig as fi, ProcessInfo as fn, SandboxFleetPolicy as fr, FileTreeResult as ft, BatchTaskResult as g, TaskSessionChanges as gi, ProcessSignal as gn, SandboxFleetTraceExport as gr, FleetDispatchCancelResult as gt, BatchTask as h, TaskResult as hi, ProcessManager as hn, SandboxFleetTraceEvent as hr, FileWriteResult as ht, AttachGpuLeaseOptions as i, SessionMessageInputPart as ii, NetworkConfig as in, SandboxFleetIntelligenceEnvelope as ir, FileReadBatchOptions as it, CreateSandboxFleetWithCoordinatorOptions as j, UploadProgress as ji, ReapExpiredSandboxFleetsResult as jn, SandboxStatus as jr, GitConfig as jt, CreateSandboxFleetOptions as k, UpdateUserOptions as ki, PublishPublicTemplateVersionOptions as kn, SandboxResources as kr, GitBranch as kt, BackendManager as l, SshKeysManager as li, PreviewLinkInfo as ln, SandboxFleetManifest as lr, FileSystem as lt, BatchRunRequest as m, TaskOptions as mi, ProcessLogEntry as mn, SandboxFleetTraceBundle as mr, FileUsageResult as mt, AccessPolicyRule as n, SessionListOptions as ni, MintScopedTokenOptions as nn, SandboxFleetDriverTimings as nr, ExecResult as nt, BackendCapabilities as o, SnapshotInfo as oi, NonHostAgentDriverConfig as on, SandboxFleetMachineMeteredUsage as or, FileReadError as ot, BatchRunOptions as p, SubscriptionInfo as pi, ProcessListOptions as pn, SandboxFleetToken as pr, FileUsageOptions as pt, EffectiveBackend as q, BatchBackendStats as qi, SandboxConnection as qn, SecretInfo as qr, IntelligenceReportCompareTo as qt, AddUserOptions as r, SessionMessage as ri, MkdirOptions as rn, SandboxFleetInfo as rr, FileInfo as rt, BackendConfig as s, SnapshotOptions as si, PermissionLevel as sn, SandboxFleetMachineRecord as sr, FileReadResult as st, AcceleratorKind as t, SessionInfo as ti, McpServerConfig as tn, SandboxFleetDriverCapability as tr, ExecOptions as tt, BackendStatus as u, StartupDiagnostics as ui, PreviewLinkManager as un, SandboxFleetManifestMachine as ur, FileTreeFile as ut, ChunkedUploadOptions as v, TaskSessionFileChange as vi, ProcessStatus as vn, SandboxFleetUsage as vr, FleetDispatchResultBufferOptions as vt, CommitTaskSessionOptions as w, TeePublicKey as wi, ProvisionStatus as wn, SandboxInfo as wr, FleetMachineId as wt, CodeExecutionResult as x, TeeAttestationOptions as xi, PromptResult as xn, SandboxFleetWorkspaceRestoreResult as xr, FleetDriveTurnRequest as xt, ChunkedUploadResult as y, TaskSessionInfo as yi, PromptInputPart as yn, SandboxFleetWorkspace as yr, FleetDispatchStreamOptions as yt, DispatchedSession as z, TerminalExitInfo as zi, RolloutOptions as zn, SandboxTraceEvent as zr, GpuLeaseManager as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.3-develop.20260729104309.c4a5aa8",
|
|
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.23",
|
|
91
|
+
"@tangle-network/agent-interface": "0.34.0",
|
|
92
92
|
"zod": "4.4.3"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|