@tangle-network/sandbox 1.0.325 → 1.0.327
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 +4 -4
- package/dist/agent/index.js +4 -4
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +1 -1
- package/dist/{agent-run-outcome-Dt9GKYcK.d.ts → agent-run-outcome-qMD5AsOn.d.ts} +1 -1
- package/dist/{api-request-CVFPw3cX.js → api-request-LQ-focnQ.js} +1 -1
- package/dist/{browser-interactive-control-controller-BDHKhlmc.js → browser-interactive-control-controller-Djsp-PI4.js} +1 -1
- package/dist/{client-RC45URnn.js → client-BqQeg2OP.js} +3 -3
- package/dist/{client-C_e3dHcZ.d.ts → client-DQZP6WU9.d.ts} +4 -4
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-BJED6dKz.js → collaboration-C-hBHI84.js} +1 -1
- package/dist/core.d.ts +5 -5
- package/dist/core.js +2 -2
- package/dist/gpu-lease/index.js +1 -1
- package/dist/{index-CtOabBjl.d.ts → index-CBhRTzYs.d.ts} +43 -4
- package/dist/index.d.ts +8 -8
- package/dist/index.js +145 -7
- package/dist/intelligence/index.js +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-1i5dZGh-.js → interactive-controller-O3TwIgdk.js} +2 -2
- package/dist/{interactive-controller-BdGiwuUs.d.ts → interactive-controller-p8hogRIV.d.ts} +1 -1
- package/dist/{lines-BniGLMGB.d.ts → lines-DA3pwKuT.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{mcp-local-BLjZG6Vz.js → mcp-local-Ct5mL39x.js} +2 -2
- package/dist/{preview-DCBYG9r_.d.ts → preview-DQ6lBsP-.d.ts} +3 -3
- package/dist/{public-templates-C0qrfRXs.d.ts → public-templates-Ba5iV17u.d.ts} +1 -1
- package/dist/public-templates.d.ts +1 -1
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-BpcC4J5z.js → sandbox-frry1UAz.js} +4 -142
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/session-gateway/index.js +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-CCt1LaNf.js → tangle-eaGYb1xF.js} +2 -2
- package/dist/{types-CJP4O3xL.d.ts → types-DMTiHZW_.d.ts} +38 -41
- package/package.json +6 -6
|
@@ -2,6 +2,7 @@ import { $ as BatchBackendInput, B as SandboxErrorMetadata, Y as SandboxCreateRe
|
|
|
2
2
|
import { C as InteractionRequest, D as AgentProfileConfidential, E as AgentProfileCapabilities, I as ProxySecretReceipt, N as AgentProfileValidationResult, P as ReasoningEffort, T as AgentProfile, n as SandboxSizePreset, v as AgentExactRunControlRef, x as AgentRuntimeAttachments, z as PlanContinuation } from "./index-Dxxq7J79.js";
|
|
3
3
|
import { r as CliAuthReference } from "./cli-auth-bundle-DTAVpYLy.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
|
|
5
6
|
//#region ../../../packages/runtime-contracts/dist/backend-types.d.ts
|
|
6
7
|
/** This distribution's backend vocabulary. Gemini is only a backing transport, not a direct backend. */
|
|
7
8
|
declare const BACKEND_TYPE: {
|
|
@@ -129,6 +130,32 @@ declare const sandboxEnvRecoveryViewSchema: z.ZodObject<{
|
|
|
129
130
|
}, z.core.$strict>;
|
|
130
131
|
type SandboxEnvRecoveryView = z.infer<typeof sandboxEnvRecoveryViewSchema>;
|
|
131
132
|
//#endregion
|
|
133
|
+
//#region ../../../packages/runtime-contracts/dist/sandbox-oom.d.ts
|
|
134
|
+
/**
|
|
135
|
+
* An OOM kill the sandbox's memory cgroup landed, as the tenant learns it: on
|
|
136
|
+
* a process inside a sandbox that keeps running (a bare SIGKILL to the
|
|
137
|
+
* customer), or on PID 1, which ends and restarts the sandbox (Docker's
|
|
138
|
+
* `State.OOMKilled`, exit 137) and otherwise reads as a generic crash. The
|
|
139
|
+
* numbers live only on the host, which accepts no operator SSH when
|
|
140
|
+
* autoscaled. Each is null when its source (host-agent
|
|
141
|
+
* container-oom-diagnostics) could not be read, never guessed; a dead
|
|
142
|
+
* sandbox's cgroup is gone, so its peak is null.
|
|
143
|
+
*/
|
|
144
|
+
interface SandboxOomKill {
|
|
145
|
+
/** The kill ended the sandbox's main process, so the sandbox restarts. */
|
|
146
|
+
sandboxKilled: boolean;
|
|
147
|
+
/** The cgroup's memory ceiling (`memory.max`, else Docker's limit), bytes. */
|
|
148
|
+
memoryLimitBytes: number | null;
|
|
149
|
+
/** Lifetime high-water mark (`memory.peak`, Linux 5.19+), bytes. */
|
|
150
|
+
memoryPeakBytes: number | null;
|
|
151
|
+
/** Kills the cgroup has counted over this container's life. */
|
|
152
|
+
oomKillCount: number | null;
|
|
153
|
+
/** Name of the process the kernel chose, from its OOM record. */
|
|
154
|
+
killedProcessName: string | null;
|
|
155
|
+
/** Resident memory of that process when it was killed, bytes. */
|
|
156
|
+
killedProcessRssBytes: number | null;
|
|
157
|
+
}
|
|
158
|
+
//#endregion
|
|
132
159
|
//#region ../../../packages/runtime-contracts/dist/file-request.d.ts
|
|
133
160
|
declare const writeFileRequestSchema: z.ZodObject<{
|
|
134
161
|
path: z.ZodString;
|
|
@@ -460,45 +487,6 @@ interface ProcessInfo extends ProcessStatus {
|
|
|
460
487
|
env?: Record<string, string>;
|
|
461
488
|
}
|
|
462
489
|
//#endregion
|
|
463
|
-
//#region ../../../packages/runtime-contracts/dist/workspace-image-types.d.ts
|
|
464
|
-
/** A port declared by the published OCI image. */
|
|
465
|
-
interface WorkspaceImageExposedPort {
|
|
466
|
-
port: number;
|
|
467
|
-
protocol: "tcp" | "udp" | "sctp";
|
|
468
|
-
}
|
|
469
|
-
/** Successful workspace image publication returned by the Sandbox API. */
|
|
470
|
-
interface WorkspaceImagePublishResult {
|
|
471
|
-
/** Immutable registry reference. */
|
|
472
|
-
image: string;
|
|
473
|
-
/** Operation-stable tag used during publication. */
|
|
474
|
-
taggedImage: string;
|
|
475
|
-
digest: string;
|
|
476
|
-
imageId: string;
|
|
477
|
-
sizeBytes: number;
|
|
478
|
-
contextBytes: number;
|
|
479
|
-
contextEntries: number;
|
|
480
|
-
buildDurationMs: number;
|
|
481
|
-
pushDurationMs: number;
|
|
482
|
-
/** Network ports from the final image configuration, not source inspection. */
|
|
483
|
-
exposedPorts: WorkspaceImageExposedPort[];
|
|
484
|
-
}
|
|
485
|
-
//#endregion
|
|
486
|
-
//#region ../../../packages/runtime-contracts/dist/workspace-image.d.ts
|
|
487
|
-
declare const workspaceImagePublishInputSchema: z.ZodObject<{
|
|
488
|
-
contextPath: z.ZodDefault<z.ZodString>;
|
|
489
|
-
dockerfilePath: z.ZodDefault<z.ZodString>;
|
|
490
|
-
repository: z.ZodString;
|
|
491
|
-
auth: z.ZodObject<{
|
|
492
|
-
username: z.ZodString;
|
|
493
|
-
password: z.ZodString;
|
|
494
|
-
}, z.core.$strict>;
|
|
495
|
-
platform: z.ZodOptional<z.ZodEnum<{
|
|
496
|
-
"linux/amd64": "linux/amd64";
|
|
497
|
-
"linux/arm64": "linux/arm64";
|
|
498
|
-
}>>;
|
|
499
|
-
}, z.core.$strict>;
|
|
500
|
-
type WorkspaceImagePublishInput = z.input<typeof workspaceImagePublishInputSchema>;
|
|
501
|
-
//#endregion
|
|
502
490
|
//#region ../../../packages/runtime-contracts/dist/gpu-lease.d.ts
|
|
503
491
|
declare const GPU_LEASE_PROVIDER_NAMES: readonly ["runpod", "vast-ai", "lambda-labs", "modal"];
|
|
504
492
|
declare const gpuLeaseProviderSchema: z.ZodString;
|
|
@@ -2042,6 +2030,15 @@ interface SandboxEvent {
|
|
|
2042
2030
|
/** Event ID */
|
|
2043
2031
|
id?: string;
|
|
2044
2032
|
}
|
|
2033
|
+
/** `sandbox_oom_kill` from `events()`. `sandboxKilled`: the limit killed the
|
|
2034
|
+
* main process (OOMKilled); `box.error` names it until the box is ready. */
|
|
2035
|
+
interface SandboxOomKillEvent extends SandboxEvent {
|
|
2036
|
+
type: "sandbox_oom_kill";
|
|
2037
|
+
data: SandboxEvent["data"] & SandboxOomKill & {
|
|
2038
|
+
message: string;
|
|
2039
|
+
timestamp: string;
|
|
2040
|
+
};
|
|
2041
|
+
}
|
|
2045
2042
|
interface SandboxTraceEvent {
|
|
2046
2043
|
type: "sandbox.lifecycle.snapshot" | "sandbox.runtime.snapshot" | "sandbox.usage.snapshot" | "sandbox.insight.summary";
|
|
2047
2044
|
timestamp: string;
|
|
@@ -2747,8 +2744,8 @@ declare const managedProcessRecordSchema: z.ZodObject<{
|
|
|
2747
2744
|
state: z.ZodEnum<{
|
|
2748
2745
|
failed: "failed";
|
|
2749
2746
|
cancelled: "cancelled";
|
|
2750
|
-
running: "running";
|
|
2751
2747
|
succeeded: "succeeded";
|
|
2748
|
+
running: "running";
|
|
2752
2749
|
queued: "queued";
|
|
2753
2750
|
retrying: "retrying";
|
|
2754
2751
|
stopping: "stopping";
|
|
@@ -5677,4 +5674,4 @@ interface SecretsManager {
|
|
|
5677
5674
|
}): Promise<void>;
|
|
5678
5675
|
}
|
|
5679
5676
|
//#endregion
|
|
5680
|
-
export { SandboxFleetAgent as $,
|
|
5677
|
+
export { SandboxFleetAgent as $, BackendType as $a, SessionInfo as $i, AcceleratorKind as $n, SandboxResourceUsage as $r, TeePublicKeyResponse as $t, CreateSandboxFleetOptions as A, GPU_LEASE_PROVIDER_NAMES as Aa, TokenUsage as Ai, FileSystem as An, DeleteMatchingSandboxOutcome as Ar, SandboxFleetWorkspaceRestoreResult as At, FleetDispatchStreamOptions as B, CodeLanguage as Ba, DispatchedSession as Bi, UploadOptions as Bn, SandboxOperationKind as Br, SandboxRuntimeHealth as Bt, GitCommit as C, SANDBOX_RUNTIMES as Ca, SandboxEvent as Ci, DownloadResult as Cn, ForkCounts as Cr, SandboxFleetTraceBundle as Ct, FleetDriveTurnRequest as D, RolloutStatus as Da, SandboxTraceEvent as Di, FileReadError as Dn, RolloutOptions as Dr, SandboxFleetUsage as Dt, FleetDriveTurnOutcome as E, RolloutScorer as Ea, SandboxTraceBundle as Ei, FileReadBatchResult as En, Rollout as Er, SandboxFleetTraceOptions as Et, FleetAgentResult as F, ProcessInfo as Fa, ConversationTurnOptions as Fi, FileUsageResult as Fn, RestoreSnapshotOptions as Fr, SandboxConnection as Ft, FleetPromptDispatchResult as G, SandboxEnvRecoveryView as Ga, SendSessionMessageRequest as Gi, SearchMatch as Gn, SnapshotIdempotency as Gr, SandboxTerminalRequestOptions as Gt, FleetExecDispatchResult as H, ExecResult as Ha, ListMessagesOptions as Hi, WriteFileOptions as Hn, SandboxRemovalState as Hr, SandboxTerminalCreateOptions as Ht, FleetAgentRunStatus as I, ProcessListOptions as Ia, ConversationTurnResult as Ii, FileWriteResult as In, SandboxDeleteAcknowledgement as Ir, SandboxInfo as It, ListSandboxFleetOptions as J, DECLARED_SECRET_HOSTS_ENV_VAR as Ja, SessionEventStreamOptions as Ji, PublicTemplateInfo as Jn, SnapshotProvenance as Jr, StartupOperation as Jt, FleetRunEvent as K, baseProxyToken as Ka, SentSessionMessage as Ki, SearchOptions as Kn, SnapshotInfo as Kr, SandboxTerminals as Kt, FleetDispatchCancelResult as L, ProcessStatus as La, CreateSessionOptions as Li, ListOptions as Ln, SandboxDeleteOptions as Lr, SandboxPortBinding as Lt, CreateSandboxFleetWithCoordinatorOptions as M, GpuLeaseProviderState as Ma, CommitTaskSessionOptions as Mi, FileTreeOptions as Mn, DeleteMatchingSandboxesFilter as Mr, ListSandboxOptions as Mt, FleetAgentId as N, GpuLeaseProviderStatus as Na, CompletedTurnPayload as Ni, FileTreeResult as Nn, DeleteMatchingSandboxesOptions as Nr, SSHCommandDescriptor as Nt, TokenRefreshHandler as O, RolloutTurnPart as Oa, SandboxTraceExport as Oi, FileReadResult as On, RolloutStartResult as Or, SandboxFleetWorkspace as Ot, FleetAgentPlacement as P, GpuLeaseStatus as Pa, CompletedTurnResult as Pi, FileUsageOptions as Pn, DeleteMatchingSandboxesResult as Pr, SSHCredentials as Pt, ReconcileSandboxFleetsResult as Q, ALL_BACKEND_TYPES as Qa, SessionForkOptions as Qi, SandboxEnvironment as Qn, WorkspaceOperationLookup as Qr, TeePublicKey as Qt, FleetDispatchResultBuffer as R, SessionStatus as Ra, CreateTaskSessionOptions as Ri, MkdirOptions as Rn, SandboxDeleteOutcome as Rr, SandboxPortPreviewLink as Rt, GitBranch as S, SecretInfo as Sa, PromptResult as Si, DownloadProgress as Sn, BranchOptions as Sr, SandboxFleetToken as St, GitStatus as T, RolloutChildResult as Ta, SandboxOomKillEvent as Ti, FileReadBatchOptions as Tn, ForkLookupOptions as Tr, SandboxFleetTraceExport as Tt, FleetMachineId as U, WriteFileRequest as Ua, PublicProfileConflict as Ui, WriteManyFile as Un, SnapshotDeleteAcknowledgement as Ur, SandboxTerminalInfo as Ut, FleetExecDispatchOptions as V, CodeResultPart as Va, DriveTurnOptions as Vi, UploadProgress as Vn, SandboxOperationState as Vr, SandboxTerminalAttachOptions as Vt, FleetPromptDispatchOptions as W, SandboxEnvRecovery as Wa, SendSessionMessageOptions as Wi, WriteManyOptions as Wn, SnapshotDeleteOutcome as Wr, SandboxTerminalManager as Wt, ReapExpiredSandboxFleetsResult as X, declaredSecretBaseToken as Xa, SessionExecutionStatus as Xi, PublishPublicTemplateOptions as Xn, SnapshotResult as Xr, TeeAttestationReport as Xt, ReapExpiredSandboxFleetsOptions as Y, assertDeclaredSecretsHeld as Ya, SessionExecutionInfo as Yi, PublicTemplateVersionInfo as Yn, SnapshotRemoteSync as Yr, TeeAttestationOptions as Yt, ReconcileSandboxFleetsOptions as Z, parseDeclaredSecretsEnv as Za, SessionFailureReason as Zi, PublishPublicTemplateVersionOptions as Zn, StopOptions as Zr, TeeAttestationResponse as Zt, ProcessSignal as _, BackendRuntimeConfigUpdate as _a, IntelligenceReportCompareTo as _i, GitConfig as _n, ManagedProcessState as _r, SandboxFleetParent as _t, ProvisionStep as a, SessionResultOptions as aa, AgentQuestionRequest as ai, SandboxShapesInfo as an, GpuLease as ar, SandboxFleetDispatchResponse as at, PreviewLinkManager as b, RouterRoutingOptions as ba, PromptInputPart as bi, DeleteOptions as bn, HttpClient as br, SandboxFleetProfileRef as bt, SubscriptionInfo as c, TaskSessionFileChange as ca, CreateIntelligenceReportOptions as ci, SandboxShapePreset as cn, GpuLeaseExecOptions as cr, SandboxFleetInfo as ct, DevServerInfo as d, TurnDriveResult as da, DurablePlanDecisionResult as di, NetworkManager as dn, GpuLeaseProviders as dr, SandboxFleetMachineMeteredUsage as dt, SessionInterruptOptions as ea, SandboxRuntimeCapabilities as ei, TerminalStream as en, EffectiveBackend as eo, AttachGpuLeaseOptions as er, SandboxFleetAgentSpec as et, EnsureDevServerOptions as f, BackendCapabilities as fa, DurablePlanFollowUpResume as fi, SandboxEgressUsage as fn, GpuLeaseProvidersOptions as fr, SandboxFleetMachineRecord as ft, ProcessManager as g, BackendMcpServerStatus as ga, IntelligenceReportBudget as gi, GitAuth as gn, ManagedProcessResumeOptions as gr, SandboxFleetOperationsSummary as gt, ProcessLogEntry as h, BackendManager as ha, IntelligenceReport as hi, MAX_EGRESS_DENIALS_LIMIT as hn, ManagedProcessOptions as hr, SandboxFleetManifestMachine as ht, ProvisionResult as i, SessionMessageInputPart as ia, AgentApprovalRequirement as ii, SandboxResources as in, DriverType as ir, SandboxFleetDispatchFailureClass as it, CreateSandboxFleetTokenOptions as j, GpuLeaseProviderName as ja, TurnBackendConfig as ji, FileTreeFile as jn, DeleteMatchingSandboxResult as jr, SandboxFleetWorkspaceSnapshotResult as jt, AttachSandboxFleetMachineOptions as k, ProvisionStatus as ka, SandboxTraceOptions as ki, FileRenameResult as kn, WaitForRolloutOptions as kr, SandboxFleetWorkspaceReconcileResult as kt, UsageInfo as l, TaskSessionInfo as la, DurablePlan as li, EgressManager as ln, GpuLeaseExecResult as lr, SandboxFleetIntelligenceEnvelope as lt, Process as m, BackendInfo as ma, EventStreamOptions as mi, EgressDenial as mn, ManagedProcessJobs as mr, SandboxFleetManifest as mt, SshKeysManager as n, SessionMessage as na, BatchBackend as ni, CreateSandboxOptions as nn, EffectiveBackendSource as no, DriverConfig as nr, SandboxFleetArtifactSpec as nt, ResumeOptions as o, TaskSessionChanges as oa, AgentRunStatus as oi, SandboxStatus as on, GpuLeaseBilling as or, SandboxFleetDriverCapability as ot, ExactProcessSpawnOptions as p, BackendConfig as pa, DurablePlanSnapshot as pi, EgressPolicy as pn, CodeExecutionOptions as pr, SandboxFleetMachineSpec as pt, FleetRunOptions as q, InteractionResolutionAcknowledgement as qa, SessionBackendCredentials as qi, ExecOptions as qn, SnapshotOptions as qr, StartupDiagnostics as qt, ProvisionEvent as r, SessionMessageAdmission as ra, BatchRunOptions as ri, SandboxConfig as rn, parseBackendType as ro, DriverInfo as rr, SandboxFleetCostEstimate as rt, SandboxIdentity as s, TaskSessionCommitResult as sa, AgentToolInvocation as si, SandboxShape as sn, GpuLeaseCommandResult as sr, SandboxFleetDriverTimings as st, SecretsManager as t, SessionListOptions as ta, StorageConfig as ti, CreateRequestOptions as tn, EffectiveBackendProfile as to, CreateGpuLeaseOptions as tr, SandboxFleetArtifact as tt, WaitForOptions as u, TaskSessionProfile as ua, DurablePlanDecisionOptions as ui, NetworkConfig as un, GpuLeaseManager as ur, SandboxFleetMachine as ut, ProcessSpawnOptions as v, BackendStatus as va, IntelligenceReportSubjectType as vi, ChunkedUploadOptions as vn, ManagedProcessRecord as vr, SandboxFleetPlacement as vt, GitDiff as w, SandboxRuntime as wa, SandboxIntelligenceEnvelope as wi, FileInfo as wn, ForkIdempotency as wr, SandboxFleetTraceEvent as wt, PreviewLinkWaitOptions as x, SecretBindingOptions as xa, PromptOptions as xi, DownloadOptions as xn, SdkTimingHook as xr, SandboxFleetSpend as xt, PreviewLinkInfo as y, McpServerConfig as ya, IntelligenceReportWindow as yi, ChunkedUploadResult as yn, ManagedProcessSpec as yr, SandboxFleetPolicy as yt, FleetDispatchResultBufferOptions as z, CodeExecutionResult as za, DispatchPromptOptions as zi, RenameOptions as zn, SandboxOperationInfo as zr, SandboxRunGeneration as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.327",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -154,14 +154,14 @@
|
|
|
154
154
|
"ws": "^8.22.0",
|
|
155
155
|
"yjs": "13.6.33",
|
|
156
156
|
"@products/sandbox-test-utils": "0.0.0",
|
|
157
|
-
"@tangle-network/runtime-contracts": "0.20.0",
|
|
158
157
|
"@tangle-network/agent-profile-materialize": "0.27.1",
|
|
159
|
-
"@
|
|
160
|
-
"@
|
|
158
|
+
"@repo/shared": "0.0.0",
|
|
159
|
+
"@tangle-network/runtime-contracts": "0.20.0",
|
|
160
|
+
"@tangle-network/cli-agent-registry": "0.15.0"
|
|
161
161
|
},
|
|
162
162
|
"tangleRelease": {
|
|
163
|
-
"sourceSha": "
|
|
164
|
-
"mergedAt": "2026-11-
|
|
163
|
+
"sourceSha": "6f79bda027d5cf3fd3d7de4f2f589a1dd0929012",
|
|
164
|
+
"mergedAt": "2026-11-08T23:46:03-08:00"
|
|
165
165
|
},
|
|
166
166
|
"scripts": {
|
|
167
167
|
"build": "node scripts/build-dist.mjs && bash scripts/verify-dist.sh",
|