@tangle-network/sandbox 0.54.1 → 0.54.2-develop.20260926224237.f161716
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/README.md +5 -1
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +2 -2
- package/dist/{client-C_m-_cqr.js → client-BNabJNXr.js} +1 -1
- package/dist/{client-BzdZ6ULL.d.ts → client-DfKvEnty.d.ts} +1 -1
- package/dist/core.d.ts +2 -2
- package/dist/core.js +2 -2
- package/dist/{index-B5AL3w-e.d.ts → index-DfO6rIkV.d.ts} +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.js +3 -3
- package/dist/{sandbox-Dfc2B6qF.js → sandbox-CaLpJBSf.js} +10 -0
- package/dist/{sandbox-D4m17j9I.d.ts → sandbox-_NN_Uvke.d.ts} +7 -0
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-nXQHWlwx.js → tangle-otjgFbDA.js} +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -385,6 +385,7 @@ Every other refusal reaches your code and never replaces the sandbox.
|
|
|
385
385
|
That covers a refusal of your key or its credentials (`SANDBOX_ATTRIBUTION_MISMATCH`, `ROUTER_KEY_REFRESH_FAILED`).
|
|
386
386
|
It also covers a full or unavailable host (`HOST_SLOT_UNAVAILABLE`, `HOST_UNAVAILABLE`) and a lifecycle operation still in progress.
|
|
387
387
|
Use `adopt` to move a sandbox you created earlier under a key.
|
|
388
|
+
[`examples/instances.ts`](./examples/instances.ts) walks one key through each start.
|
|
388
389
|
|
|
389
390
|
## Commands and files
|
|
390
391
|
|
|
@@ -646,7 +647,7 @@ Deleting the base sandbox remains a separate cleanup step.
|
|
|
646
647
|
|
|
647
648
|
## Phone lines
|
|
648
649
|
|
|
649
|
-
A line gives a sandbox a messaging address that Tangle Hub receives on
|
|
650
|
+
A line gives a sandbox a messaging address that Tangle Hub receives on: an Inkbox iMessage identity or its mailbox, or a Linq WhatsApp number, connected in Hub.
|
|
650
651
|
Hub routes each message to the attached sandbox, runs one agent session per member, handles STOP and START, and answers on the same line.
|
|
651
652
|
|
|
652
653
|
```typescript
|
|
@@ -685,6 +686,7 @@ Hub creates it on the member's first message, resumes it when stopped, and repla
|
|
|
685
686
|
No member shares a disk with another, so `own`-context roles may `act`.
|
|
686
687
|
The box holds none of your secrets and has no SSH access; its in-box key cannot read the line.
|
|
687
688
|
The key depends only on the prefix and the address, so a person keeps their box across a detach and re-attach.
|
|
689
|
+
Detach such a line with `client.lines.detach(line.id)`; `box.lines.detach()` detaches only a line attached to that box.
|
|
688
690
|
|
|
689
691
|
```typescript
|
|
690
692
|
await client.lines.attach({
|
|
@@ -747,6 +749,8 @@ await client.lines.enableVoice(line.id, {
|
|
|
747
749
|
|
|
748
750
|
A gated line takes no calls, because a spoken answer cannot pass the reply gate.
|
|
749
751
|
|
|
752
|
+
Runnable examples: [`lines-email.ts`](./examples/lines-email.ts) (an email line with a sandbox per member), [`lines-shared.ts`](./examples/lines-shared.ts) (two members on one sandbox) and [`lines-voice.ts`](./examples/lines-voice.ts) (voice on an iMessage line).
|
|
753
|
+
|
|
750
754
|
## Public API map
|
|
751
755
|
|
|
752
756
|
The root entrypoint exports the primary client, instance, session, fleet, image, error, trace, and resource types.
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-
|
|
1
|
+
import { g as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-_NN_Uvke.js";
|
|
2
2
|
import { D as CodeExecutionResult, E as CodeExecutionOptions, Mi as SessionInfo, O as CodeLanguage, Pi as SessionListOptions, d as BackendConfig, k as CodeResultPart } from "../types-BoW_VFjX.js";
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
3
|
+
import { i as Sandbox } from "../client-DfKvEnty.js";
|
|
4
4
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
5
5
|
import { JSONSchema } from "zod/v4/core";
|
|
6
6
|
|
package/dist/agent/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { y as assertCurrentBackendType } from "../runtime-api-BARzSO0x.js";
|
|
2
2
|
import { c as NotFoundError, g as ValidationError, m as StateError } from "../errors-CmYPVl-k.js";
|
|
3
|
-
import { n as Sandbox } from "../client-
|
|
4
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
3
|
+
import { n as Sandbox } from "../client-BNabJNXr.js";
|
|
4
|
+
import { t as SandboxInstance } from "../sandbox-CaLpJBSf.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/agent/instances.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as backendTypeSchema, _ as parseSSEStream, g as encodeTextForWire, h as encodePromptForWire, p as SANDBOX_PROXY_REQUEST_MAX_BYTES, v as applyRequestedModel, x as normalizeRuntimeBackendConfig, y as assertCurrentBackendType } from "./runtime-api-BARzSO0x.js";
|
|
2
2
|
import { _ as parseErrorResponse, c as NotFoundError, f as SandboxError, g as ValidationError, h as TimeoutError, l as PartialFailureError, p as ServerError, s as NetworkError, t as AuthError } from "./errors-CmYPVl-k.js";
|
|
3
3
|
import { n as combineAbortSignals } from "./abort-signal-si1WMfJb.js";
|
|
4
|
-
import { D as normalizeSandboxShape, E as normalizeConnection, N as exportTraceBundle, O as LinesClient, b as requestInteractiveSessionToken, i as normalizeStartupDiagnostics, j as rewrapResponse, n as createSandboxInstanceFromResponse, r as normalizeSandboxCreateReceipt } from "./sandbox-
|
|
4
|
+
import { D as normalizeSandboxShape, E as normalizeConnection, N as exportTraceBundle, O as LinesClient, b as requestInteractiveSessionToken, i as normalizeStartupDiagnostics, j as rewrapResponse, n as createSandboxInstanceFromResponse, r as normalizeSandboxCreateReceipt } from "./sandbox-CaLpJBSf.js";
|
|
5
5
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/backend-registry.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as LinesClient, l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-
|
|
1
|
+
import { R as LinesClient, l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-_NN_Uvke.js";
|
|
2
2
|
import { l as ScopedToken, s as MintInteractiveSessionTokenOptions } from "./terminal-stream-CcaBTVg3.js";
|
|
3
3
|
import { $n as ReconcileSandboxFleetsResult, B as CreateSandboxOptions, Bn as PromptOptions, Bt as FleetMachineId, Cr as SandboxFleetCostEstimate, Er as SandboxFleetDriverCapability, F as CreateIntelligenceReportOptions, Ft as FleetDispatchStreamOptions, G as DeleteMatchingSandboxesFilter, Gr as SandboxFleetWorkspaceReconcileResult, Hr as SandboxFleetTraceOptions, Ht as FleetPromptDispatchResult, I as CreateRequestOptions, Ir as SandboxFleetOperationsSummary, It as FleetDriveTurnOutcome, Jn as PublishPublicTemplateOptions, Jr as SandboxIdentity, K as DeleteMatchingSandboxesOptions, Ki as SshKeysManager, Kn as PublicTemplateInfo, Kr as SandboxFleetWorkspaceRestoreResult, L as CreateSandboxFleetOptions, Lt as FleetDriveTurnRequest, M as ConversationTurnOptions, Mr as SandboxFleetMachineRecord, Mt as FleetDispatchCancelResult, N as ConversationTurnResult, Nt as FleetDispatchResultBuffer, Or as SandboxFleetInfo, Pr as SandboxFleetManifest, Pt as FleetDispatchResultBufferOptions, Qn as ReconcileSandboxFleetsOptions, R as CreateSandboxFleetTokenOptions, Rr as SandboxFleetToken, Rt as FleetExecDispatchOptions, Si as SecretsManager, Sr as SandboxFleetArtifactSpec, Tr as SandboxFleetDispatchResponse, Ur as SandboxFleetUsage, Vn as PromptResult, Vt as FleetPromptDispatchOptions, Xi as SubscriptionInfo, Xn as ReapExpiredSandboxFleetsOptions, Yn as PublishPublicTemplateVersionOptions, Yr as SandboxInfo, Zn as ReapExpiredSandboxFleetsResult, _t as ExecOptions, b as BatchRunRequest, d as BackendConfig, dn as IntelligenceReportBudget, fn as IntelligenceReportCompareTo, fr as SandboxConfig, l as AttachSandboxFleetMachineOptions, mn as IntelligenceReportWindow, oi as SandboxShapesInfo, pa as UsageInfo, q as DeleteMatchingSandboxesResult, qn as PublicTemplateVersionInfo, qr as SandboxFleetWorkspaceSnapshotResult, sa as TokenRefreshHandler, un as IntelligenceReport, v as BatchResult, vn as ListSandboxFleetOptions, vt as ExecResult, xa as BatchEvent, xr as SandboxFleetArtifact, y as BatchRunOptions, yn as ListSandboxOptions, yr as SandboxEnvironment, z as CreateSandboxFleetWithCoordinatorOptions, zn as PromptInputPart, zr as SandboxFleetTraceBundle, zt as FleetExecDispatchResult } from "./types-BoW_VFjX.js";
|
|
4
4
|
import { f as SandboxError } from "./errors-Cz23YNu2.js";
|
package/dist/core.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as lineInstanceKey, C as LineInstanceCreate, E as LineMemberInstance, R as LinesClient, S as LineInstanceAttachOptions, T as LineMember, _ as Line, a as WorkspaceImagePublishRequestOptions, b as LineAttachment, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-
|
|
1
|
+
import { B as lineInstanceKey, C as LineInstanceCreate, E as LineMemberInstance, R as LinesClient, S as LineInstanceAttachOptions, T as LineMember, _ as Line, a as WorkspaceImagePublishRequestOptions, b as LineAttachment, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-_NN_Uvke.js";
|
|
2
2
|
import { An as PreviewLinkWaitOptions, B as CreateSandboxOptions, Cn as NetworkConfig, Ii as SessionMessageAdmission, M as ConversationTurnOptions, N as ConversationTurnResult, On as PreviewLinkInfo, Yr as SandboxInfo, _t as ExecOptions, fr as SandboxConfig, kn as PreviewLinkManager, si as SandboxStatus, vt as ExecResult, zn as PromptInputPart } from "./types-BoW_VFjX.js";
|
|
3
|
-
import { A as isBackendRegistryInteractionKind, C as BackendRegistryEntry, D as backendRegistryEntrySchema, E as backendRegistryCapabilitiesSchema, M as parseBackendRegistryResponseBody, O as backendRegistryInteractionKindSchema, S as BackendRegistryCapabilities, T as BackendRegistryResponse, d as HostedInstance, f as InstanceProfile, g as InstancesClient, i as Sandbox, j as parseBackendRegistryResponse, k as backendRegistryResponseSchema, m as InstanceRestartingError, p as InstanceRecord, u as EnsureInstanceOptions, w as BackendRegistryInteractionKind } from "./client-
|
|
3
|
+
import { A as isBackendRegistryInteractionKind, C as BackendRegistryEntry, D as backendRegistryEntrySchema, E as backendRegistryCapabilitiesSchema, M as parseBackendRegistryResponseBody, O as backendRegistryInteractionKindSchema, S as BackendRegistryCapabilities, T as BackendRegistryResponse, d as HostedInstance, f as InstanceProfile, g as InstancesClient, i as Sandbox, j as parseBackendRegistryResponse, k as backendRegistryResponseSchema, m as InstanceRestartingError, p as InstanceRecord, u as EnsureInstanceOptions, w as BackendRegistryInteractionKind } from "./client-DfKvEnty.js";
|
|
4
4
|
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-Cz23YNu2.js";
|
|
5
5
|
|
|
6
6
|
//#region src/core.d.ts
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as ValidationError, h as TimeoutError, l as PartialFailureError, m as StateError, n as CapabilityError, p as ServerError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CmYPVl-k.js";
|
|
2
|
-
import { _ as backendRegistryInteractionKindSchema, b as parseBackendRegistryResponse, c as InstanceRestartingError, g as backendRegistryEntrySchema, h as backendRegistryCapabilitiesSchema, l as InstancesClient, n as Sandbox, s as HostedInstance, v as backendRegistryResponseSchema, x as parseBackendRegistryResponseBody, y as isBackendRegistryInteractionKind } from "./client-
|
|
3
|
-
import { A as lineInstanceKey, O as LinesClient, a as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
2
|
+
import { _ as backendRegistryInteractionKindSchema, b as parseBackendRegistryResponse, c as InstanceRestartingError, g as backendRegistryEntrySchema, h as backendRegistryCapabilitiesSchema, l as InstancesClient, n as Sandbox, s as HostedInstance, v as backendRegistryResponseSchema, x as parseBackendRegistryResponseBody, y as isBackendRegistryInteractionKind } from "./client-BNabJNXr.js";
|
|
3
|
+
import { A as lineInstanceKey, O as LinesClient, a as WorkspaceImages, t as SandboxInstance } from "./sandbox-CaLpJBSf.js";
|
|
4
4
|
//#region src/core.ts
|
|
5
5
|
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
|
6
6
|
* Version 1 refuses unconfirmed isolated receipts before materializing any
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { $ as InteractiveStopCommand, A as LineReplyGate, B as lineInstanceKey, C as LineInstanceCreate, Ct as SandboxMcpEndpoint, D as LineMemberPatch, E as LineMemberInstance, Et as buildSandboxMcpConfig, F as LineTransport, G as InteractiveSessionHandle, H as InteractiveControlClaimRequest, I as LineVoice, J as InteractiveSessionIncarnationId, K as InteractiveSessionHandleOptions, L as LineVoiceOptions, M as LineRespondView, N as LineRole, O as LineMemberSpec, P as LineThread, Q as InteractiveSessionStartResult, R as LinesClient, S as LineInstanceAttachOptions, St as SandboxMcpConfig, T as LineMember, Tt as buildControlPlaneMcpConfig, U as InteractivePromptCommand, V as AgentInteractiveTerminalSession, W as InteractiveSessionControlClaim, X as InteractiveSessionRef, Y as InteractiveSessionInfo, Z as InteractiveSessionStartOptions, _ as Line, _t as SandboxInteractionResult, a as WorkspaceImagePublishRequestOptions, at as InteractiveTerminalMetadata, b as LineAttachment, bt as CONTROL_PLANE_MCP_SERVER_NAME, c as TraceExportFormat, ct as BrowserInteractiveSessionController, d as buildTraceExportPayload, dt as InteractiveSessionController, et as InterruptResult, f as exportTraceBundle, ft as InteractiveSessionControllerOptions, g as SandboxSession, gt as SandboxInteractionResolution, h as SandboxTaskSession, ht as SandboxInteractionConflict, i as WorkspaceImagePublishInput, it as InteractiveTerminalFrameLog, j as LineRespondAgent, k as LineMessage, l as TraceExportResult, lt as BrowserInteractiveSessionControllerOptions, m as toOtelJson, mt as SandboxInteractionCommandResult, nt as agentInteractiveSessionPromptRequestDigest, o as WorkspaceImagePublishResult, ot as createInteractiveTerminalCapture, p as otelTraceIdForTangleTrace, pt as InteractiveSessionControllerTransport, q as InteractiveSessionHost, r as SandboxInstance, rt as InteractiveTerminalCapture, s as WorkspaceImages, st as createInteractiveTerminalSession, t as ForkAcknowledgement, tt as RespondToPermissionOptions, u as TraceExportSink, ut as InteractiveAttachRequest, v as LineAllowance, vt as BuildControlPlaneMcpConfigOptions, w as LineLimits, wt as SandboxMcpServerEntry, x as LineFromConnectionInput, xt as SANDBOX_MCP_SERVER_NAME, y as LineAttachOptions, yt as BuildSandboxMcpConfigOptions, z as SandboxLines } from "./sandbox-
|
|
1
|
+
import { $ as InteractiveStopCommand, A as LineReplyGate, B as lineInstanceKey, C as LineInstanceCreate, Ct as SandboxMcpEndpoint, D as LineMemberPatch, E as LineMemberInstance, Et as buildSandboxMcpConfig, F as LineTransport, G as InteractiveSessionHandle, H as InteractiveControlClaimRequest, I as LineVoice, J as InteractiveSessionIncarnationId, K as InteractiveSessionHandleOptions, L as LineVoiceOptions, M as LineRespondView, N as LineRole, O as LineMemberSpec, P as LineThread, Q as InteractiveSessionStartResult, R as LinesClient, S as LineInstanceAttachOptions, St as SandboxMcpConfig, T as LineMember, Tt as buildControlPlaneMcpConfig, U as InteractivePromptCommand, V as AgentInteractiveTerminalSession, W as InteractiveSessionControlClaim, X as InteractiveSessionRef, Y as InteractiveSessionInfo, Z as InteractiveSessionStartOptions, _ as Line, _t as SandboxInteractionResult, a as WorkspaceImagePublishRequestOptions, at as InteractiveTerminalMetadata, b as LineAttachment, bt as CONTROL_PLANE_MCP_SERVER_NAME, c as TraceExportFormat, ct as BrowserInteractiveSessionController, d as buildTraceExportPayload, dt as InteractiveSessionController, et as InterruptResult, f as exportTraceBundle, ft as InteractiveSessionControllerOptions, g as SandboxSession, gt as SandboxInteractionResolution, h as SandboxTaskSession, ht as SandboxInteractionConflict, i as WorkspaceImagePublishInput, it as InteractiveTerminalFrameLog, j as LineRespondAgent, k as LineMessage, l as TraceExportResult, lt as BrowserInteractiveSessionControllerOptions, m as toOtelJson, mt as SandboxInteractionCommandResult, nt as agentInteractiveSessionPromptRequestDigest, o as WorkspaceImagePublishResult, ot as createInteractiveTerminalCapture, p as otelTraceIdForTangleTrace, pt as InteractiveSessionControllerTransport, q as InteractiveSessionHost, r as SandboxInstance, rt as InteractiveTerminalCapture, s as WorkspaceImages, st as createInteractiveTerminalSession, t as ForkAcknowledgement, tt as RespondToPermissionOptions, u as TraceExportSink, ut as InteractiveAttachRequest, v as LineAllowance, vt as BuildControlPlaneMcpConfigOptions, w as LineLimits, wt as SandboxMcpServerEntry, x as LineFromConnectionInput, xt as SANDBOX_MCP_SERVER_NAME, y as LineAttachOptions, yt as BuildSandboxMcpConfigOptions, z as SandboxLines } from "./sandbox-_NN_Uvke.js";
|
|
2
2
|
import { c as MintScopedTokenOptions, d as TERMINAL_WS_ECHO_SUBPROTOCOL, f as TerminalExitInfo, g as TerminalStreamAuthFormat, h as TerminalReadyInfo, i as TerminalStreamOptions, l as ScopedToken, m as TerminalOutputMessage, n as TerminalStreamError, o as TerminalStreamToken, p as TerminalInteractiveSessionIdentity, r as TerminalStreamHandlers, s as MintInteractiveSessionTokenOptions, t as TerminalStream, u as ScopedTokenScope } from "./terminal-stream-CcaBTVg3.js";
|
|
3
3
|
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as InteractiveAttachOptions, f as InteractiveControlClaimAcknowledgement, h as InteractiveSessionStatus, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as createInteractiveControlHolderId, m as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimOptions, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BELrFH4f.js";
|
|
4
4
|
import { $ as DownloadOptions, $i as TaskSessionFileChange, $n as ReconcileSandboxFleetsResult, $r as SandboxRemovalState, $t as GpuLease, A as CommitTaskSessionOptions, Ai as SessionFailureReason, An as PreviewLinkWaitOptions, Ar as SandboxFleetMachine, At as FileUsageResult, B as CreateSandboxOptions, Bi as SnapshotDeleteAcknowledgement, Bn as PromptOptions, Br as SandboxFleetTraceEvent, Bt as FleetMachineId, C as BranchOptions, Ca as BatchSidecarGroup, Ci as SendSessionMessageOptions, Cn as NetworkConfig, Cr as SandboxFleetCostEstimate, Ct as FileReadResult, Da as BackendType, Di as SessionEventStreamOptions, Dn as PermissionsManager, Dr as SandboxFleetDriverTimings, Dt as FileTreeOptions, Ea as ALL_BACKEND_TYPES, Ei as SessionBackendCredentials, En as PermissionLevel, Er as SandboxFleetDriverCapability, Et as FileTreeFile, F as CreateIntelligenceReportOptions, Fi as SessionMessage, Fn as ProcessManager, Fr as SandboxFleetManifestMachine, Ft as FleetDispatchStreamOptions, G as DeleteMatchingSandboxesFilter, Gi as SnapshotResult, Gn as ProvisionStep, Gr as SandboxFleetWorkspaceReconcileResult, Gt as ForkLookupOptions, H as CreateTaskSessionOptions, Hi as SnapshotIdempotency, Hn as ProvisionEvent, Hr as SandboxFleetTraceOptions, I as CreateRequestOptions, Ii as SessionMessageAdmission, In as ProcessSignal, Ir as SandboxFleetOperationsSummary, It as FleetDriveTurnOutcome, J as DeleteOptions, Ji as StartupOperation, Jn as PublishPublicTemplateOptions, Jr as SandboxIdentity, Jt as GitBranch, K as DeleteMatchingSandboxesOptions, Kn as PublicTemplateInfo, Kr as SandboxFleetWorkspaceRestoreResult, Kt as GPU_LEASE_PROVIDER_NAMES, L as CreateSandboxFleetOptions, Li as SessionMessageInputPart, Ln as ProcessSpawnOptions, Lr as SandboxFleetPolicy, Lt as FleetDriveTurnRequest, M as ConversationTurnOptions, Mi as SessionInfo, Mn as ProcessInfo, Mr as SandboxFleetMachineRecord, Mt as FleetDispatchCancelResult, N as ConversationTurnResult, Ni as SessionInterruptOptions, Nn as ProcessListOptions, Nr as SandboxFleetMachineSpec, Nt as FleetDispatchResultBuffer, Oa as parseBackendType, Oi as SessionExecutionInfo, On as PreviewLinkInfo, Or as SandboxFleetInfo, Ot as FileTreeResult, P as CreateGpuLeaseOptions, Pi as SessionListOptions, Pn as ProcessLogEntry, Pr as SandboxFleetManifest, Pt as FleetDispatchResultBufferOptions, Q as DispatchedSession, Qi as TaskSessionCommitResult, Qn as ReconcileSandboxFleetsOptions, Qr as SandboxPortPreviewLink, Qt as GitStatus, Ri as SessionResultOptions, Rn as ProcessStatus, Rr as SandboxFleetToken, Rt as FleetExecDispatchOptions, S as BatchTaskResult, Sa as BatchEventDataMap, Si as SecretsManager, Sn as MkdirOptions, Sr as SandboxFleetArtifactSpec, St as FileReadError, T as ChunkedUploadResult, Ta as PublicBatchRunRequest, Ti as SentSessionMessage, Tn as NonHostAgentDriverConfig, Tr as SandboxFleetDispatchResponse, Tt as FileSystem, U as DeleteMatchingSandboxOutcome, Ui as SnapshotInfo, Un as ProvisionResult, Ur as SandboxFleetUsage, Ut as ForkCounts, V as CreateSessionOptions, Vi as SnapshotDeleteOutcome, Vn as PromptResult, Vr as SandboxFleetTraceExport, Vt as FleetPromptDispatchOptions, W as DeleteMatchingSandboxResult, Wi as SnapshotOptions, Wn as ProvisionStatus, Wr as SandboxFleetWorkspace, Wt as ForkIdempotency, X as DirectoryPermission, Xi as SubscriptionInfo, Xn as ReapExpiredSandboxFleetsOptions, Xr as SandboxIntelligenceEnvelope, Xt as GitConfig, Y as DevServerInfo, Yi as StorageConfig, Yn as PublishPublicTemplateVersionOptions, Yr as SandboxInfo, Yt as GitCommit, Z as DispatchPromptOptions, Zi as TaskSessionChanges, Zn as ReapExpiredSandboxFleetsResult, Zr as SandboxPortBinding, Zt as GitDiff, _ as BatchBackend, _a as WriteFileOptions, _i as SandboxTraceOptions, _n as ListOptions, _r as SandboxDeleteOptions, _t as ExecOptions, aa as TeePublicKey, ai as SandboxShapePreset, an as GpuLeaseProviderName, ar as RolloutOptions, at as DurablePlan, b as BatchRunRequest, ba as BatchBackendStats, bi as SearchOptions, bn as MAX_EGRESS_DENIALS_LIMIT, br as SandboxEvent, bt as FileReadBatchOptions, c as AttachGpuLeaseOptions, ca as TokenUsage, ci as SandboxTerminalAttachOptions, cn as HostAgentRuntimeBackend, cr as RolloutStatus, ct as EffectiveBackend, d as BackendConfig, da as UploadOptions, di as SandboxTerminalManager, dn as IntelligenceReportBudget, dr as SSHCredentials, dt as EgressDenial, ea as TaskSessionInfo, ei as SandboxResourceUsage, en as GpuLeaseBilling, er as RenameOptions, et as DownloadProgress, f as BackendInfo, fa as UploadProgress, fi as SandboxTerminalRequestOptions, fn as IntelligenceReportCompareTo, fr as SandboxConfig, ft as EgressManager, g as BackendStatus, ga as WorkspaceOperationLookup, gi as SandboxTraceExport, gn as ListMessagesOptions, gr as SandboxDeleteAcknowledgement, gt as ExactProcessSpawnOptions, h as BackendRuntimeConfigUpdate, ha as WaitForRolloutOptions, hi as SandboxTraceEvent, hr as SandboxCreateReceipt, ht as EventStreamOptions, ia as TeeAttestationResponse, ii as SandboxShape, in as GpuLeaseManager, ir as RolloutChildResult, it as DriverType, j as CompletedTurnResult, ji as SessionForkOptions, jn as Process, jr as SandboxFleetMachineMeteredUsage, jt as FileWriteResult, ki as SessionExecutionStatus, kn as PreviewLinkManager, kr as SandboxFleetIntelligenceEnvelope, kt as FileUsageOptions, l as AttachSandboxFleetMachineOptions, la as TurnDriveResult, li as SandboxTerminalCreateOptions, ln as InstalledTool, lr as RolloutTurnPart, lt as EffectiveBackendProfile, m as BackendMcpServerStatus, ma as WaitForOptions, mi as SandboxTraceBundle, mn as IntelligenceReportWindow, mr as SandboxCreateOutcome, mt as EnsureDevServerOptions, n as AccessPolicyRule, na as TeeAttestationOptions, ni as SandboxRuntimeCapabilities, nn as GpuLeaseExecOptions, nt as DriverConfig, oa as TeePublicKeyResponse, oi as SandboxShapesInfo, on as GpuLeaseStatus, or as RolloutScorer, ot as DurablePlanDecisionResult, p as BackendManager, pa as UsageInfo, pi as SandboxTerminals, pn as IntelligenceReportSubjectType, pr as SandboxConnection, pt as EgressPolicy, q as DeleteMatchingSandboxesResult, qi as StartupDiagnostics, qn as PublicTemplateVersionInfo, qr as SandboxFleetWorkspaceSnapshotResult, qt as GitAuth, r as AddUserOptions, ra as TeeAttestationReport, ri as SandboxRuntimeHealth, rn as GpuLeaseExecResult, rr as Rollout, rt as DriverInfo, sa as TokenRefreshHandler, si as SandboxStatus, sn as HostAgentDriverConfig, sr as RolloutStartResult, t as AcceleratorKind, ta as TaskSessionProfile, ti as SandboxResources, tn as GpuLeaseCommandResult, tt as DriveTurnOptions, u as BackendCapabilities, ua as UpdateUserOptions, ui as SandboxTerminalInfo, un as IntelligenceReport, ur as SSHCommandDescriptor, ut as EffectiveBackendSource, v as BatchResult, va as WriteManyFile, vi as SandboxUser, vn as ListSandboxFleetOptions, vr as SandboxDeleteOutcome, vt as ExecResult, w as ChunkedUploadOptions, wa as BatchTaskUsage, wi as SendSessionMessageRequest, wn as NetworkManager, wr as SandboxFleetDispatchFailureClass, wt as FileRenameResult, x as BatchTask, xa as BatchEvent, xi as SecretInfo, xn as McpServerConfig, xr as SandboxFleetArtifact, xt as FileReadBatchResult, y as BatchRunOptions, ya as WriteManyOptions, yi as SearchMatch, yn as ListSandboxOptions, yr as SandboxEnvironment, yt as FileInfo, z as CreateSandboxFleetWithCoordinatorOptions, zi as SessionStatus, zn as PromptInputPart, zr as SandboxFleetTraceBundle } from "./types-BoW_VFjX.js";
|
|
5
|
-
import { A as isBackendRegistryInteractionKind, C as BackendRegistryEntry, D as backendRegistryEntrySchema, E as backendRegistryCapabilitiesSchema, M as parseBackendRegistryResponseBody, O as backendRegistryInteractionKindSchema, S as BackendRegistryCapabilities, T as BackendRegistryResponse, _ as SandboxFleet, a as Team, b as ParsedSSEEvent, c as SessionBroadcastEvent, d as HostedInstance, f as InstanceProfile, g as InstancesClient, h as InstanceStart, i as Sandbox, j as parseBackendRegistryResponse, k as backendRegistryResponseSchema, l as SessionBroadcastResult, m as InstanceRestartingError, n as IntelligenceClient, o as TeamInvitation, p as InstanceRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as EnsureInstanceOptions, v as SandboxFleetClient, w as BackendRegistryInteractionKind, x as parseSSEStream, y as ParseSSEStreamOptions } from "./client-
|
|
5
|
+
import { A as isBackendRegistryInteractionKind, C as BackendRegistryEntry, D as backendRegistryEntrySchema, E as backendRegistryCapabilitiesSchema, M as parseBackendRegistryResponseBody, O as backendRegistryInteractionKindSchema, S as BackendRegistryCapabilities, T as BackendRegistryResponse, _ as SandboxFleet, a as Team, b as ParsedSSEEvent, c as SessionBroadcastEvent, d as HostedInstance, f as InstanceProfile, g as InstancesClient, h as InstanceStart, i as Sandbox, j as parseBackendRegistryResponse, k as backendRegistryResponseSchema, l as SessionBroadcastResult, m as InstanceRestartingError, n as IntelligenceClient, o as TeamInvitation, p as InstanceRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as EnsureInstanceOptions, v as SandboxFleetClient, w as BackendRegistryInteractionKind, x as parseSSEStream, y as ParseSSEStreamOptions } from "./client-DfKvEnty.js";
|
|
6
6
|
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, d as ResumeEnvRequiredError, f as SandboxError, g as StateError, h as ServerError, i as EgressProxyRecoveryError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxErrorJson, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-Cz23YNu2.js";
|
|
7
7
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-BfVsF6yU.js";
|
|
8
8
|
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-BWiG3Vcw.js";
|
|
9
9
|
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-DRsFrVVD.js";
|
|
10
|
-
import { o as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-
|
|
10
|
+
import { o as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-DfO6rIkV.js";
|
|
11
11
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
12
12
|
import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
13
13
|
import { z } from "zod";
|
|
@@ -784,7 +784,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
784
784
|
sealed: z.ZodOptional<z.ZodBoolean>;
|
|
785
785
|
attestationRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
786
786
|
}, z.core.$strict>>;
|
|
787
|
-
metadata: z.ZodOptional<z.ZodType<
|
|
787
|
+
metadata: z.ZodOptional<z.ZodType<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown, z.core.$ZodTypeInternals<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown>>>;
|
|
788
788
|
extensions: z.ZodOptional<z.ZodType<Record<string, Record<string, unknown> | undefined>, unknown, z.core.$ZodTypeInternals<Record<string, Record<string, unknown> | undefined>, unknown>>>;
|
|
789
789
|
}, z.core.$strict>>;
|
|
790
790
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -1113,7 +1113,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1113
1113
|
sealed: z.ZodOptional<z.ZodBoolean>;
|
|
1114
1114
|
attestationRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
1115
1115
|
}, z.core.$strict>>;
|
|
1116
|
-
metadata: z.ZodOptional<z.ZodType<
|
|
1116
|
+
metadata: z.ZodOptional<z.ZodType<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown, z.core.$ZodTypeInternals<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown>>>;
|
|
1117
1117
|
extensions: z.ZodOptional<z.ZodType<Record<string, Record<string, unknown> | undefined>, unknown, z.core.$ZodTypeInternals<Record<string, Record<string, unknown> | undefined>, unknown>>>;
|
|
1118
1118
|
}, z.core.$strict>>;
|
|
1119
1119
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -1452,7 +1452,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1452
1452
|
sealed: z.ZodOptional<z.ZodBoolean>;
|
|
1453
1453
|
attestationRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
1454
1454
|
}, z.core.$strict>>;
|
|
1455
|
-
metadata: z.ZodOptional<z.ZodType<
|
|
1455
|
+
metadata: z.ZodOptional<z.ZodType<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown, z.core.$ZodTypeInternals<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown>>>;
|
|
1456
1456
|
extensions: z.ZodOptional<z.ZodType<Record<string, Record<string, unknown> | undefined>, unknown, z.core.$ZodTypeInternals<Record<string, Record<string, unknown> | undefined>, unknown>>>;
|
|
1457
1457
|
}, z.core.$strict>>;
|
|
1458
1458
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -1776,7 +1776,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1776
1776
|
sealed: z.ZodOptional<z.ZodBoolean>;
|
|
1777
1777
|
attestationRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
1778
1778
|
}, z.core.$strict>>;
|
|
1779
|
-
metadata: z.ZodOptional<z.ZodType<
|
|
1779
|
+
metadata: z.ZodOptional<z.ZodType<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown, z.core.$ZodTypeInternals<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown>>>;
|
|
1780
1780
|
extensions: z.ZodOptional<z.ZodType<Record<string, Record<string, unknown> | undefined>, unknown, z.core.$ZodTypeInternals<Record<string, Record<string, unknown> | undefined>, unknown>>>;
|
|
1781
1781
|
}, z.core.$strict>>;
|
|
1782
1782
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -2105,7 +2105,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2105
2105
|
sealed: z.ZodOptional<z.ZodBoolean>;
|
|
2106
2106
|
attestationRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
2107
2107
|
}, z.core.$strict>>;
|
|
2108
|
-
metadata: z.ZodOptional<z.ZodType<
|
|
2108
|
+
metadata: z.ZodOptional<z.ZodType<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown, z.core.$ZodTypeInternals<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown>>>;
|
|
2109
2109
|
extensions: z.ZodOptional<z.ZodType<Record<string, Record<string, unknown> | undefined>, unknown, z.core.$ZodTypeInternals<Record<string, Record<string, unknown> | undefined>, unknown>>>;
|
|
2110
2110
|
}, z.core.$strict>>;
|
|
2111
2111
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -2539,7 +2539,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2539
2539
|
sealed: z.ZodOptional<z.ZodBoolean>;
|
|
2540
2540
|
attestationRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
2541
2541
|
}, z.core.$strict>>;
|
|
2542
|
-
metadata: z.ZodOptional<z.ZodType<
|
|
2542
|
+
metadata: z.ZodOptional<z.ZodType<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown, z.core.$ZodTypeInternals<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown>>>;
|
|
2543
2543
|
extensions: z.ZodOptional<z.ZodType<Record<string, Record<string, unknown> | undefined>, unknown, z.core.$ZodTypeInternals<Record<string, Record<string, unknown> | undefined>, unknown>>>;
|
|
2544
2544
|
}, z.core.$strict>>;
|
|
2545
2545
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -2868,7 +2868,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2868
2868
|
sealed: z.ZodOptional<z.ZodBoolean>;
|
|
2869
2869
|
attestationRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
2870
2870
|
}, z.core.$strict>>;
|
|
2871
|
-
metadata: z.ZodOptional<z.ZodType<
|
|
2871
|
+
metadata: z.ZodOptional<z.ZodType<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown, z.core.$ZodTypeInternals<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown>>>;
|
|
2872
2872
|
extensions: z.ZodOptional<z.ZodType<Record<string, Record<string, unknown> | undefined>, unknown, z.core.$ZodTypeInternals<Record<string, Record<string, unknown> | undefined>, unknown>>>;
|
|
2873
2873
|
}, z.core.$strict>>;
|
|
2874
2874
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -3207,7 +3207,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3207
3207
|
sealed: z.ZodOptional<z.ZodBoolean>;
|
|
3208
3208
|
attestationRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
3209
3209
|
}, z.core.$strict>>;
|
|
3210
|
-
metadata: z.ZodOptional<z.ZodType<
|
|
3210
|
+
metadata: z.ZodOptional<z.ZodType<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown, z.core.$ZodTypeInternals<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown>>>;
|
|
3211
3211
|
extensions: z.ZodOptional<z.ZodType<Record<string, Record<string, unknown> | undefined>, unknown, z.core.$ZodTypeInternals<Record<string, Record<string, unknown> | undefined>, unknown>>>;
|
|
3212
3212
|
}, z.core.$strict>>;
|
|
3213
3213
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -3531,7 +3531,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3531
3531
|
sealed: z.ZodOptional<z.ZodBoolean>;
|
|
3532
3532
|
attestationRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
3533
3533
|
}, z.core.$strict>>;
|
|
3534
|
-
metadata: z.ZodOptional<z.ZodType<
|
|
3534
|
+
metadata: z.ZodOptional<z.ZodType<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown, z.core.$ZodTypeInternals<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown>>>;
|
|
3535
3535
|
extensions: z.ZodOptional<z.ZodType<Record<string, Record<string, unknown> | undefined>, unknown, z.core.$ZodTypeInternals<Record<string, Record<string, unknown> | undefined>, unknown>>>;
|
|
3536
3536
|
}, z.core.$strict>>;
|
|
3537
3537
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -3860,7 +3860,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3860
3860
|
sealed: z.ZodOptional<z.ZodBoolean>;
|
|
3861
3861
|
attestationRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
3862
3862
|
}, z.core.$strict>>;
|
|
3863
|
-
metadata: z.ZodOptional<z.ZodType<
|
|
3863
|
+
metadata: z.ZodOptional<z.ZodType<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown, z.core.$ZodTypeInternals<_$_tangle_network_agent_interface0.AgentProfileMetadata, unknown>>>;
|
|
3864
3864
|
extensions: z.ZodOptional<z.ZodType<Record<string, Record<string, unknown> | undefined>, unknown, z.core.$ZodTypeInternals<Record<string, Record<string, unknown> | undefined>, unknown>>>;
|
|
3865
3865
|
}, z.core.$strict>>;
|
|
3866
3866
|
model: z.ZodOptional<z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { C as deriveAgentResultOutcome, D as parseBackendType, E as backendTypeSchema, S as createAgentRunOutcomeTracker, T as ALL_BACKEND_TYPES, _ as parseSSEStream, w as deriveAgentRunOutcome, x as normalizeRuntimeBackendConfig } from "./runtime-api-BARzSO0x.js";
|
|
2
2
|
import { a as FileWriteConflictError, c as NotFoundError, d as ResumeEnvRequiredError, f as SandboxError, g as ValidationError, h as TimeoutError, i as EgressProxyRecoveryError, l as PartialFailureError, m as StateError, n as CapabilityError, o as KeyBudgetExhaustedError, p as ServerError, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CmYPVl-k.js";
|
|
3
|
-
import { _ as backendRegistryInteractionKindSchema, a as splitInlineProfileSkills, b as parseBackendRegistryResponse, c as InstanceRestartingError, d as SandboxFleetClient, f as runtimeWorkspaceCwdSchema, g as backendRegistryEntrySchema, h as backendRegistryCapabilitiesSchema, i as splitInlineProfileFileMounts, l as InstancesClient, m as validateBatchRunRequest, n as Sandbox, o as validateDeferredProfileFileMounts, p as createBatchResultAccumulator, r as materializeProfileFileMounts, s as HostedInstance, t as IntelligenceClient, u as SandboxFleet, v as backendRegistryResponseSchema, x as parseBackendRegistryResponseBody, y as isBackendRegistryInteractionKind } from "./client-
|
|
3
|
+
import { _ as backendRegistryInteractionKindSchema, a as splitInlineProfileSkills, b as parseBackendRegistryResponse, c as InstanceRestartingError, d as SandboxFleetClient, f as runtimeWorkspaceCwdSchema, g as backendRegistryEntrySchema, h as backendRegistryCapabilitiesSchema, i as splitInlineProfileFileMounts, l as InstancesClient, m as validateBatchRunRequest, n as Sandbox, o as validateDeferredProfileFileMounts, p as createBatchResultAccumulator, r as materializeProfileFileMounts, s as HostedInstance, t as IntelligenceClient, u as SandboxFleet, v as backendRegistryResponseSchema, x as parseBackendRegistryResponseBody, y as isBackendRegistryInteractionKind } from "./client-BNabJNXr.js";
|
|
4
4
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, c as createInteractiveControlHolderId, l as interactiveSessionIdentityDigest, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-Dv0gbFMu.js";
|
|
5
|
-
import { A as lineInstanceKey, C as collectAgentResponseText, F as toOtelJson, M as buildTraceExportPayload, N as exportTraceBundle, O as LinesClient, P as otelTraceIdForTangleTrace, S as collectAgentFinalMessageText, T as isToolBearingEvent, _ as TerminalStream, a as WorkspaceImages, c as SandboxTaskSession, d as agentInteractiveSessionPromptRequestDigest, f as InteractiveTerminalFrameLog, g as InteractiveSessionController, h as BrowserInteractiveSessionController, k as SandboxLines, l as SandboxSession, m as createInteractiveTerminalSession, o as GPU_LEASE_PROVIDER_NAMES, p as createInteractiveTerminalCapture, s as MAX_EGRESS_DENIALS_LIMIT, t as SandboxInstance, u as InteractiveSessionHandle, v as TerminalStreamError, w as getSandboxEventText, x as applySandboxEventText, y as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./sandbox-
|
|
5
|
+
import { A as lineInstanceKey, C as collectAgentResponseText, F as toOtelJson, M as buildTraceExportPayload, N as exportTraceBundle, O as LinesClient, P as otelTraceIdForTangleTrace, S as collectAgentFinalMessageText, T as isToolBearingEvent, _ as TerminalStream, a as WorkspaceImages, c as SandboxTaskSession, d as agentInteractiveSessionPromptRequestDigest, f as InteractiveTerminalFrameLog, g as InteractiveSessionController, h as BrowserInteractiveSessionController, k as SandboxLines, l as SandboxSession, m as createInteractiveTerminalSession, o as GPU_LEASE_PROVIDER_NAMES, p as createInteractiveTerminalCapture, s as MAX_EGRESS_DENIALS_LIMIT, t as SandboxInstance, u as InteractiveSessionHandle, v as TerminalStreamError, w as getSandboxEventText, x as applySandboxEventText, y as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./sandbox-CaLpJBSf.js";
|
|
6
6
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DLPFc9-W.js";
|
|
7
|
-
import { t as TangleSandboxClient } from "./tangle-
|
|
7
|
+
import { t as TangleSandboxClient } from "./tangle-otjgFbDA.js";
|
|
8
8
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
//#region src/confidential.ts
|
|
@@ -331,6 +331,16 @@ var LinesClient = class {
|
|
|
331
331
|
return (await hubData(await this.http.fetch(`/v1/lines/${encodeURIComponent(lineId)}/attachment`, json("PUT", rest)))).attachment;
|
|
332
332
|
}
|
|
333
333
|
/**
|
|
334
|
+
* Detach a line (by id or address), whatever it is attached to. This is
|
|
335
|
+
* the way to detach a line attached with `instance`, which names no
|
|
336
|
+
* sandbox. Each member's own sandbox stays under its instance key. Returns
|
|
337
|
+
* false when the line was not attached.
|
|
338
|
+
*/
|
|
339
|
+
async detach(number) {
|
|
340
|
+
const lineId = await this.resolve(number);
|
|
341
|
+
return (await hubData(await this.http.fetch(`/v1/lines/${encodeURIComponent(lineId)}/attachment`, { method: "DELETE" }))).detached;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
334
344
|
* Take calls on a line (Inkbox iMessage lines). Hub points the identity's
|
|
335
345
|
* incoming calls at itself, binds the ph0ny agent to the line and adds the
|
|
336
346
|
* agent's `ask_workspace` tool. Enabling again replaces every credential.
|
|
@@ -692,6 +692,13 @@ declare class LinesClient {
|
|
|
692
692
|
* attachment. To attach a line to one sandbox, use `box.lines.attach()`.
|
|
693
693
|
*/
|
|
694
694
|
attach(options: LineInstanceAttachOptions): Promise<LineAttachment>;
|
|
695
|
+
/**
|
|
696
|
+
* Detach a line (by id or address), whatever it is attached to. This is
|
|
697
|
+
* the way to detach a line attached with `instance`, which names no
|
|
698
|
+
* sandbox. Each member's own sandbox stays under its instance key. Returns
|
|
699
|
+
* false when the line was not attached.
|
|
700
|
+
*/
|
|
701
|
+
detach(number: string): Promise<boolean>;
|
|
695
702
|
/**
|
|
696
703
|
* Take calls on a line (Inkbox iMessage lines). Hub points the identity's
|
|
697
704
|
* incoming calls at itself, binds the ph0ny agent to the line and adds the
|
package/dist/tangle/index.d.ts
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 TangleSandboxClientConfig, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../index-
|
|
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 TangleSandboxClientConfig, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../index-DfO6rIkV.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as JsonResponseParamTypes, d as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as SandboxCreateParamTypes, n as JOB_SANDBOX_CREATE, o as AgentSandboxBlueprintAbi, r as JOB_SANDBOX_DELETE, s as ITangleJobsAbi, t as TangleSandboxClient, u as SandboxCreateResponseParamTypes } from "../tangle-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as JsonResponseParamTypes, d as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as SandboxCreateParamTypes, n as JOB_SANDBOX_CREATE, o as AgentSandboxBlueprintAbi, r as JOB_SANDBOX_DELETE, s as ITangleJobsAbi, t as TangleSandboxClient, u as SandboxCreateResponseParamTypes } from "../tangle-otjgFbDA.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as parseErrorResponse } from "./errors-CmYPVl-k.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-CaLpJBSf.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.2-develop.20260926224237.f161716",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
98
|
"@tangle-network/agent-core": "^0.9.6",
|
|
99
|
-
"@tangle-network/agent-interface": "^2.
|
|
99
|
+
"@tangle-network/agent-interface": "^2.13.0",
|
|
100
100
|
"zod": "4.5.4"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
|
@@ -138,9 +138,9 @@
|
|
|
138
138
|
"ws": "^8.20.0",
|
|
139
139
|
"yjs": "13.6.30",
|
|
140
140
|
"@repo/shared": "0.0.0",
|
|
141
|
-
"@tangle-network/agent-profile-materialize": "0.20.
|
|
142
|
-
"@tangle-network/
|
|
143
|
-
"@tangle-network/
|
|
141
|
+
"@tangle-network/agent-profile-materialize": "0.20.3",
|
|
142
|
+
"@tangle-network/runtime-contracts": "0.8.1",
|
|
143
|
+
"@tangle-network/cli-agent-registry": "0.4.9",
|
|
144
144
|
"@tangle-network/sse-core": "0.0.0"
|
|
145
145
|
},
|
|
146
146
|
"scripts": {
|