@tangle-network/sandbox 0.51.0 → 0.52.0
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 +17 -0
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +2 -2
- package/dist/{client-ypkUXWEV.js → client-BUkSdgO8.js} +1 -1
- package/dist/{client-0HxOqMTg.d.ts → client-BqDkj2_t.d.ts} +1 -1
- package/dist/core.d.ts +2 -2
- package/dist/core.js +2 -2
- package/dist/{index-D3q4u0kQ.d.ts → index-DO-a9xrf.d.ts} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/{sandbox-D9m16QdB.js → sandbox-BZkDZVyA.js} +24 -6
- package/dist/{sandbox-DxBZCyMo.d.ts → sandbox-HBG3n0mF.d.ts} +59 -11
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-qQ5nzHZV.js → tangle-IzeHgRVG.js} +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -662,6 +662,9 @@ await box.lines.attach({
|
|
|
662
662
|
Use `mode: "shared"` with `roles` and several `members` for one agent that many people text.
|
|
663
663
|
Each member gets their own thread; a `shared`-context role sees other shared members' recent exchanges, and an `own`-context role sees none.
|
|
664
664
|
Unknown senders are rejected unless `unknownSenders: "guest"` admits them with the `guest` role.
|
|
665
|
+
One sandbox serves every member, and a role with `act` tools can read every member's session files in it.
|
|
666
|
+
So an attachment that uses an `own`-context role, including `guest`, must make every role in use `chat`; Hub refuses it otherwise.
|
|
667
|
+
A `chat` role's turns get no shell, no file tools, no subagents, and none of the backend's MCP servers, connections or hooks.
|
|
665
668
|
Attach with an API key that can run the sandbox: each turn runs as a short-lived child of that key.
|
|
666
669
|
|
|
667
670
|
To check each answer before it is sent, name a reply gate.
|
|
@@ -688,6 +691,20 @@ await box.lines.attach({
|
|
|
688
691
|
|
|
689
692
|
A gated attachment must reject unknown senders.
|
|
690
693
|
|
|
694
|
+
Members can also call an Inkbox iMessage line.
|
|
695
|
+
Connect your ph0ny key in Hub, then name the ph0ny agent that voices the calls.
|
|
696
|
+
Hub answers only the attachment's members, and each question the agent asks with its `ask_workspace` tool runs in the caller's own thread session, so a call continues the text conversation.
|
|
697
|
+
|
|
698
|
+
```typescript
|
|
699
|
+
await client.lines.enableVoice(line.id, {
|
|
700
|
+
ph0nyConnectionId: "hubconn_phony_...",
|
|
701
|
+
ph0nyAgentId: "agent_...",
|
|
702
|
+
});
|
|
703
|
+
// Later: await client.lines.disableVoice(line.id);
|
|
704
|
+
```
|
|
705
|
+
|
|
706
|
+
A gated line takes no calls, because a spoken answer cannot pass the reply gate.
|
|
707
|
+
|
|
691
708
|
## Public API map
|
|
692
709
|
|
|
693
710
|
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-HBG3n0mF.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-BqDkj2_t.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-DHHveKas.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-BUkSdgO8.js";
|
|
4
|
+
import { t as SandboxInstance } from "../sandbox-BZkDZVyA.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-DHHveKas.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, O as LinesClient, b as requestInteractiveSessionToken, i as normalizeStartupDiagnostics, j as exportTraceBundle, n as createSandboxInstanceFromResponse, r as normalizeSandboxCreateReceipt } from "./sandbox-
|
|
4
|
+
import { D as normalizeSandboxShape, E as normalizeConnection, O as LinesClient, b as requestInteractiveSessionToken, i as normalizeStartupDiagnostics, j as exportTraceBundle, n as createSandboxInstanceFromResponse, r as normalizeSandboxCreateReceipt } from "./sandbox-BZkDZVyA.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 {
|
|
1
|
+
import { P as LinesClient, l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-HBG3n0mF.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 { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-
|
|
1
|
+
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-HBG3n0mF.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 parseBackendRegistryResponse, C as BackendRegistryInteractionKind, D as backendRegistryInteractionKindSchema, E as backendRegistryEntrySchema, O as backendRegistryResponseSchema, S as BackendRegistryEntry, T as backendRegistryCapabilitiesSchema, d as HostedInstance, f as InstanceProfile, h as InstancesClient, i as Sandbox, j as parseBackendRegistryResponseBody, k as isBackendRegistryInteractionKind, m as InstanceRestartingError, p as InstanceRecord, u as EnsureInstanceOptions, w as BackendRegistryResponse, x as BackendRegistryCapabilities } from "./client-
|
|
3
|
+
import { A as parseBackendRegistryResponse, C as BackendRegistryInteractionKind, D as backendRegistryInteractionKindSchema, E as backendRegistryEntrySchema, O as backendRegistryResponseSchema, S as BackendRegistryEntry, T as backendRegistryCapabilitiesSchema, d as HostedInstance, f as InstanceProfile, h as InstancesClient, i as Sandbox, j as parseBackendRegistryResponseBody, k as isBackendRegistryInteractionKind, m as InstanceRestartingError, p as InstanceRecord, u as EnsureInstanceOptions, w as BackendRegistryResponse, x as BackendRegistryCapabilities } from "./client-BqDkj2_t.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 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-BUkSdgO8.js";
|
|
3
|
+
import { a as WorkspaceImages, t as SandboxInstance } from "./sandbox-BZkDZVyA.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
|
|
1
|
+
import { $ as InteractiveTerminalFrameLog, A as LineThread, B as InteractiveSessionHandle, C as LineMemberPatch, D as LineRespondAgent, E as LineReplyGate, F as SandboxLines, G as InteractiveSessionRef, H as InteractiveSessionHost, I as AgentInteractiveTerminalSession, J as InteractiveStopCommand, K as InteractiveSessionStartOptions, L as InteractiveControlClaimRequest, M as LineVoice, N as LineVoiceOptions, O as LineRespondView, P as LinesClient, Q as InteractiveTerminalCapture, R as InteractivePromptCommand, S as LineMember, T as LineMessage, U as InteractiveSessionIncarnationId, V as InteractiveSessionHandleOptions, W as InteractiveSessionInfo, X as RespondToPermissionOptions, Y as InterruptResult, Z as agentInteractiveSessionPromptRequestDigest, _ as Line, _t as SandboxMcpConfig, a as WorkspaceImagePublishRequestOptions, at as InteractiveAttachRequest, b as LineFromConnectionInput, bt as buildControlPlaneMcpConfig, c as TraceExportFormat, ct as InteractiveSessionControllerTransport, d as buildTraceExportPayload, dt as SandboxInteractionResolution, et as InteractiveTerminalMetadata, f as exportTraceBundle, ft as SandboxInteractionResult, g as SandboxSession, gt as SANDBOX_MCP_SERVER_NAME, h as SandboxTaskSession, ht as CONTROL_PLANE_MCP_SERVER_NAME, i as WorkspaceImagePublishInput, it as BrowserInteractiveSessionControllerOptions, j as LineTransport, k as LineRole, l as TraceExportResult, lt as SandboxInteractionCommandResult, m as toOtelJson, mt as BuildSandboxMcpConfigOptions, nt as createInteractiveTerminalSession, o as WorkspaceImagePublishResult, ot as InteractiveSessionController, p as otelTraceIdForTangleTrace, pt as BuildControlPlaneMcpConfigOptions, q as InteractiveSessionStartResult, r as SandboxInstance, rt as BrowserInteractiveSessionController, s as WorkspaceImages, st as InteractiveSessionControllerOptions, t as ForkAcknowledgement, tt as createInteractiveTerminalCapture, u as TraceExportSink, ut as SandboxInteractionConflict, v as LineAttachOptions, vt as SandboxMcpEndpoint, w as LineMemberSpec, x as LineLimits, xt as buildSandboxMcpConfig, y as LineAttachment, yt as SandboxMcpServerEntry, z as InteractiveSessionControlClaim } from "./sandbox-HBG3n0mF.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 parseBackendRegistryResponse, C as BackendRegistryInteractionKind, D as backendRegistryInteractionKindSchema, E as backendRegistryEntrySchema, O as backendRegistryResponseSchema, S as BackendRegistryEntry, T as backendRegistryCapabilitiesSchema, _ as SandboxFleetClient, a as Team, b as parseSSEStream, c as SessionBroadcastEvent, d as HostedInstance, f as InstanceProfile, g as SandboxFleet, h as InstancesClient, i as Sandbox, j as parseBackendRegistryResponseBody, k as isBackendRegistryInteractionKind, 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 ParseSSEStreamOptions, w as BackendRegistryResponse, x as BackendRegistryCapabilities, y as ParsedSSEEvent } from "./client-
|
|
5
|
+
import { A as parseBackendRegistryResponse, C as BackendRegistryInteractionKind, D as backendRegistryInteractionKindSchema, E as backendRegistryEntrySchema, O as backendRegistryResponseSchema, S as BackendRegistryEntry, T as backendRegistryCapabilitiesSchema, _ as SandboxFleetClient, a as Team, b as parseSSEStream, c as SessionBroadcastEvent, d as HostedInstance, f as InstanceProfile, g as SandboxFleet, h as InstancesClient, i as Sandbox, j as parseBackendRegistryResponseBody, k as isBackendRegistryInteractionKind, 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 ParseSSEStreamOptions, w as BackendRegistryResponse, x as BackendRegistryCapabilities, y as ParsedSSEEvent } from "./client-BqDkj2_t.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-DO-a9xrf.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";
|
|
@@ -4447,4 +4447,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
4447
4447
|
}
|
|
4448
4448
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
4449
4449
|
//#endregion
|
|
4450
|
-
export { ALL_BACKEND_TYPES, type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentInteractiveTerminalSession, 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 AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, type AgentRunOutcome, type AgentRunOutcomeTracker, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendMcpServerStatus, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, type BackendRuntimeConfigUpdate, 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, BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, BrowserInteractiveSessionController, type BrowserInteractiveSessionControllerOptions, 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 ConversationTurnOptions, type ConversationTurnResult, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteMatchingSandboxOutcome, type DeleteMatchingSandboxResult, type DeleteMatchingSandboxesFilter, type DeleteMatchingSandboxesOptions, type DeleteMatchingSandboxesResult, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type DurablePlan, type DurablePlanDecisionResult, EdgeNotReadyError, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressDenial, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EnsureInstanceOptions, 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, FileWriteConflictError, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type ForkAcknowledgement, type ForkCounts, type ForkIdempotency, type ForkLookupOptions, 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, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, type InstanceProfile, type InstanceRecord, InstanceRestartingError, InstancesClient, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAttachRequest, type InteractiveControlClaimAcknowledgement, type InteractiveControlClaimOptions, type InteractiveControlClaimRequest, type InteractivePromptCommand, type InteractiveRequestOptions, type InteractiveSessionControlClaim, InteractiveSessionControlController, type InteractiveSessionControlControllerOptions, type InteractiveSessionControlTransport, InteractiveSessionController, type InteractiveSessionControllerOptions, type InteractiveSessionControllerTransport, InteractiveSessionHandle, type InteractiveSessionHandleOptions, type InteractiveSessionHost, type InteractiveSessionIdentity, type InteractiveSessionIncarnationId, type InteractiveSessionInfo, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, type Line, type LineAttachOptions, type LineAttachment, type LineFromConnectionInput, type LineLimits, type LineMember, type LineMemberPatch, type LineMemberSpec, type LineMessage, type LineReplyGate, type LineRespondAgent, type LineRespondView, type LineRole, type LineThread, type LineTransport, LinesClient, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintInteractiveSessionTokenOptions, 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 PreviewLinkWaitOptions, 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, ResumeEnvRequiredError, 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 SandboxCreateOutcome, type SandboxCreateReceipt, type SandboxDeleteAcknowledgement, type SandboxDeleteOptions, type SandboxDeleteOutcome, 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 SandboxInteractionCommandResult, type SandboxInteractionConflict, type SandboxInteractionResolution, type SandboxInteractionResult, SandboxLines, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeCapabilities, type SandboxRuntimeHealth, SandboxSession, type SandboxShape, type SandboxShapePreset, type SandboxShapesInfo, 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 SessionExecutionInfo, type SessionExecutionStatus, type SessionFailureReason, type SessionForkOptions, type SessionInfo, type SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageAdmission, type SessionMessageInputPart, type SessionResultOptions, type SessionStatus, type SnapshotDeleteAcknowledgement, type SnapshotDeleteOutcome, type SnapshotIdempotency, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, 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 TerminalInteractiveSessionIdentity, type TerminalOutputMessage, 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 WorkspaceOperationLookup, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
4450
|
+
export { ALL_BACKEND_TYPES, type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentInteractiveTerminalSession, 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 AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, type AgentRunOutcome, type AgentRunOutcomeTracker, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendMcpServerStatus, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, type BackendRuntimeConfigUpdate, 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, BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, BrowserInteractiveSessionController, type BrowserInteractiveSessionControllerOptions, 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 ConversationTurnOptions, type ConversationTurnResult, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteMatchingSandboxOutcome, type DeleteMatchingSandboxResult, type DeleteMatchingSandboxesFilter, type DeleteMatchingSandboxesOptions, type DeleteMatchingSandboxesResult, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type DurablePlan, type DurablePlanDecisionResult, EdgeNotReadyError, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressDenial, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EnsureInstanceOptions, 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, FileWriteConflictError, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type ForkAcknowledgement, type ForkCounts, type ForkIdempotency, type ForkLookupOptions, 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, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, type InstanceProfile, type InstanceRecord, InstanceRestartingError, InstancesClient, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAttachRequest, type InteractiveControlClaimAcknowledgement, type InteractiveControlClaimOptions, type InteractiveControlClaimRequest, type InteractivePromptCommand, type InteractiveRequestOptions, type InteractiveSessionControlClaim, InteractiveSessionControlController, type InteractiveSessionControlControllerOptions, type InteractiveSessionControlTransport, InteractiveSessionController, type InteractiveSessionControllerOptions, type InteractiveSessionControllerTransport, InteractiveSessionHandle, type InteractiveSessionHandleOptions, type InteractiveSessionHost, type InteractiveSessionIdentity, type InteractiveSessionIncarnationId, type InteractiveSessionInfo, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, type Line, type LineAttachOptions, type LineAttachment, type LineFromConnectionInput, type LineLimits, type LineMember, type LineMemberPatch, type LineMemberSpec, type LineMessage, type LineReplyGate, type LineRespondAgent, type LineRespondView, type LineRole, type LineThread, type LineTransport, type LineVoice, type LineVoiceOptions, LinesClient, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintInteractiveSessionTokenOptions, 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 PreviewLinkWaitOptions, 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, ResumeEnvRequiredError, 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 SandboxCreateOutcome, type SandboxCreateReceipt, type SandboxDeleteAcknowledgement, type SandboxDeleteOptions, type SandboxDeleteOutcome, 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 SandboxInteractionCommandResult, type SandboxInteractionConflict, type SandboxInteractionResolution, type SandboxInteractionResult, SandboxLines, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeCapabilities, type SandboxRuntimeHealth, SandboxSession, type SandboxShape, type SandboxShapePreset, type SandboxShapesInfo, 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 SessionExecutionInfo, type SessionExecutionStatus, type SessionFailureReason, type SessionForkOptions, type SessionInfo, type SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageAdmission, type SessionMessageInputPart, type SessionResultOptions, type SessionStatus, type SnapshotDeleteAcknowledgement, type SnapshotDeleteOutcome, type SnapshotIdempotency, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, 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 TerminalInteractiveSessionIdentity, type TerminalOutputMessage, 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 WorkspaceOperationLookup, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
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-DHHveKas.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-BUkSdgO8.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 buildTraceExportPayload, C as collectAgentResponseText, M as otelTraceIdForTangleTrace, N as toOtelJson, O as LinesClient, 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, j as exportTraceBundle, 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 buildTraceExportPayload, C as collectAgentResponseText, M as otelTraceIdForTangleTrace, N as toOtelJson, O as LinesClient, 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, j as exportTraceBundle, 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-BZkDZVyA.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-IzeHgRVG.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
|
|
@@ -207,10 +207,10 @@ function snakeCase(value) {
|
|
|
207
207
|
* Lines: give a sandbox a phone number or messaging address.
|
|
208
208
|
*
|
|
209
209
|
* A line is an address that Tangle Hub receives on, such as an Inkbox
|
|
210
|
-
* iMessage identity. Attaching it to a sandbox makes
|
|
211
|
-
* message to that sandbox
|
|
212
|
-
*
|
|
213
|
-
*
|
|
210
|
+
* iMessage identity or Linq WhatsApp number. Attaching it to a sandbox makes
|
|
211
|
+
* Hub route each inbound message to that sandbox. Each member gets a separate
|
|
212
|
+
* thread in its own agent session. Hub sends the agent's answer on the same
|
|
213
|
+
* line. Hub owns routing, consent (STOP/START), unknown senders and
|
|
214
214
|
* metering, so an app only chooses who may text and in which mode.
|
|
215
215
|
*
|
|
216
216
|
* @example
|
|
@@ -245,8 +245,8 @@ var LinesClient = class {
|
|
|
245
245
|
this.http = http;
|
|
246
246
|
}
|
|
247
247
|
/**
|
|
248
|
-
* Create a line from
|
|
249
|
-
* already
|
|
248
|
+
* Create a line from an owned Inkbox or Linq connection, or return the line
|
|
249
|
+
* already pinned to that provider identity. Hub owns inbound routing and
|
|
250
250
|
* never re-keys the connection.
|
|
251
251
|
*/
|
|
252
252
|
async fromConnection(input) {
|
|
@@ -267,6 +267,24 @@ var LinesClient = class {
|
|
|
267
267
|
if (!line) throw new ValidationError(`No line with address ${number}`);
|
|
268
268
|
return line.id;
|
|
269
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* Take calls on a line (Inkbox iMessage lines). Hub points the identity's
|
|
272
|
+
* incoming calls at itself, binds the ph0ny agent to the line and adds the
|
|
273
|
+
* agent's `ask_workspace` tool. Enabling again replaces every credential.
|
|
274
|
+
*/
|
|
275
|
+
async enableVoice(lineId, options) {
|
|
276
|
+
return (await hubData(await this.http.fetch(`/v1/lines/${encodeURIComponent(lineId)}`, json("PATCH", { voice: {
|
|
277
|
+
enabled: true,
|
|
278
|
+
ph0ny: {
|
|
279
|
+
connectionId: options.ph0nyConnectionId,
|
|
280
|
+
agentId: options.ph0nyAgentId
|
|
281
|
+
}
|
|
282
|
+
} })))).line;
|
|
283
|
+
}
|
|
284
|
+
/** Stop taking calls on a line: Hub refuses them and Inkbox rejects them. */
|
|
285
|
+
async disableVoice(lineId) {
|
|
286
|
+
return (await hubData(await this.http.fetch(`/v1/lines/${encodeURIComponent(lineId)}`, json("PATCH", { voice: { enabled: false } })))).line;
|
|
287
|
+
}
|
|
270
288
|
/** Members of the line's active attachment. */
|
|
271
289
|
members(lineId) {
|
|
272
290
|
const base = `/v1/lines/${encodeURIComponent(lineId)}/members`;
|
|
@@ -403,13 +403,13 @@ declare class InteractiveSessionHandle {
|
|
|
403
403
|
}
|
|
404
404
|
//#endregion
|
|
405
405
|
//#region src/lines.d.ts
|
|
406
|
-
/** The transport a line carries.
|
|
406
|
+
/** The transport a line carries. */
|
|
407
407
|
type LineTransport = "imessage" | "sms" | "whatsapp" | "email";
|
|
408
408
|
/** What a role's members share and may do in the attached sandbox. */
|
|
409
409
|
interface LineRole {
|
|
410
410
|
/** `shared`: the member's turns see other shared members' recent exchanges. `own`: they see none, and nobody sees theirs. */
|
|
411
411
|
context: "own" | "shared";
|
|
412
|
-
/** `chat`: the member's session has no shell
|
|
412
|
+
/** `chat`: the member's session has no shell, cannot read, search or change files, starts no subagents, and gets none of the backend's MCP servers, connections or hooks. */
|
|
413
413
|
tools: "act" | "chat";
|
|
414
414
|
}
|
|
415
415
|
/** A sender an attachment admits. */
|
|
@@ -469,23 +469,33 @@ interface LineAttachOptions {
|
|
|
469
469
|
/** `personal`: one owner member. `shared`: many members, one thread each. */
|
|
470
470
|
mode: "personal" | "shared";
|
|
471
471
|
members: LineMemberSpec[];
|
|
472
|
-
/** Default `reject`. `guest` (shared mode) admits unknown senders with the `guest` role. */
|
|
472
|
+
/** Default `reject`. `guest` (shared mode) admits unknown senders with the own-context `guest` role, so every role in use must be chat-only. */
|
|
473
473
|
unknownSenders?: "reject" | "guest";
|
|
474
|
-
/**
|
|
474
|
+
/**
|
|
475
|
+
* Default: owner and member share context and act; guest is own-context and chat-only.
|
|
476
|
+
* One sandbox serves every member, and `act` tools can read every member's session in it.
|
|
477
|
+
* A shared attachment that uses an `own`-context role is refused unless every role in use is `chat`.
|
|
478
|
+
*/
|
|
475
479
|
roles?: Record<string, LineRole>;
|
|
476
480
|
respond?: LineRespondAgent;
|
|
477
481
|
limits?: Partial<LineLimits>;
|
|
478
482
|
clientReference?: string;
|
|
479
483
|
}
|
|
480
|
-
/**
|
|
481
|
-
interface
|
|
482
|
-
/** A Hub connection id for an Inkbox identity with iMessage enabled. */
|
|
484
|
+
/** Fields shared by line creation from an owned Hub connection. */
|
|
485
|
+
interface LineFromConnectionCommon {
|
|
483
486
|
connectionId: string;
|
|
484
|
-
transport: "imessage";
|
|
485
487
|
label?: string;
|
|
486
488
|
/** Your idempotency reference: the same value returns the same line. */
|
|
487
489
|
clientReference?: string;
|
|
488
490
|
}
|
|
491
|
+
/** Input to `client.lines.fromConnection()`. A Linq connection may own multiple numbers. */
|
|
492
|
+
type LineFromConnectionInput = LineFromConnectionCommon & ({
|
|
493
|
+
transport: "imessage";
|
|
494
|
+
phoneNumberId?: never;
|
|
495
|
+
} | {
|
|
496
|
+
transport: "whatsapp";
|
|
497
|
+
phoneNumberId: string;
|
|
498
|
+
});
|
|
489
499
|
/** Fields a member update may change. */
|
|
490
500
|
interface LineMemberPatch {
|
|
491
501
|
role?: string;
|
|
@@ -519,6 +529,27 @@ interface LineAttachment {
|
|
|
519
529
|
/** Present on the attach response. */
|
|
520
530
|
members?: LineMember[];
|
|
521
531
|
}
|
|
532
|
+
/**
|
|
533
|
+
* Voice on a line. A member calls the line, a ph0ny agent answers, and each
|
|
534
|
+
* question the agent asks with its `ask_workspace` tool runs in the caller's
|
|
535
|
+
* own thread session in the attached sandbox. Hub admits only the
|
|
536
|
+
* attachment's members; voice never onboards a caller.
|
|
537
|
+
*/
|
|
538
|
+
interface LineVoice {
|
|
539
|
+
enabled: boolean;
|
|
540
|
+
/** `enabling` until ph0ny and the provider are both configured. */
|
|
541
|
+
state: "enabling" | "enabled" | "disabled";
|
|
542
|
+
ph0nyConnectionId: string;
|
|
543
|
+
ph0nyAgentId: string;
|
|
544
|
+
updatedAt: string;
|
|
545
|
+
}
|
|
546
|
+
/** Input to `client.lines.enableVoice()`. */
|
|
547
|
+
interface LineVoiceOptions {
|
|
548
|
+
/** Your ph0ny Hub connection (provider `phony`). */
|
|
549
|
+
ph0nyConnectionId: string;
|
|
550
|
+
/** The ph0ny agent that voices the calls; Hub adds its `ask_workspace` tool. */
|
|
551
|
+
ph0nyAgentId: string;
|
|
552
|
+
}
|
|
522
553
|
interface Line {
|
|
523
554
|
id: string;
|
|
524
555
|
transport: LineTransport;
|
|
@@ -528,9 +559,12 @@ interface Line {
|
|
|
528
559
|
connect: string | null;
|
|
529
560
|
routerAddress: string | null;
|
|
530
561
|
connectionId: string;
|
|
562
|
+
/** The provider's phone number id, or null for a line without a pinned number. */
|
|
563
|
+
providerNumberId: string | null;
|
|
531
564
|
label: string | null;
|
|
532
565
|
clientReference: string | null;
|
|
533
566
|
status: "active" | "suspended" | "released";
|
|
567
|
+
voice: LineVoice | null;
|
|
534
568
|
attachment: LineAttachment | null;
|
|
535
569
|
createdAt: string;
|
|
536
570
|
updatedAt: string;
|
|
@@ -552,6 +586,12 @@ interface LineMessage {
|
|
|
552
586
|
memberId: string | null;
|
|
553
587
|
direction: "in" | "out";
|
|
554
588
|
kind: "agent" | "notice" | "send";
|
|
589
|
+
/** Stable Hub dedupe key for this inbound or outbound event. */
|
|
590
|
+
deliveryKey: string;
|
|
591
|
+
/** The inbound message this outbound row answers. */
|
|
592
|
+
replyToId: string | null;
|
|
593
|
+
/** The sandbox turn receipt, when an inbound row reached a turn. */
|
|
594
|
+
turnId: string | null;
|
|
555
595
|
text: string | null;
|
|
556
596
|
status: string;
|
|
557
597
|
errorCode: string | null;
|
|
@@ -568,8 +608,8 @@ declare class LinesClient {
|
|
|
568
608
|
private readonly http;
|
|
569
609
|
constructor(http: LinesHttpClient);
|
|
570
610
|
/**
|
|
571
|
-
* Create a line from
|
|
572
|
-
* already
|
|
611
|
+
* Create a line from an owned Inkbox or Linq connection, or return the line
|
|
612
|
+
* already pinned to that provider identity. Hub owns inbound routing and
|
|
573
613
|
* never re-keys the connection.
|
|
574
614
|
*/
|
|
575
615
|
fromConnection(input: LineFromConnectionInput): Promise<Line>;
|
|
@@ -580,6 +620,14 @@ declare class LinesClient {
|
|
|
580
620
|
get(lineId: string): Promise<Line>;
|
|
581
621
|
/** A line id for a line id or one of your lines' addresses. */
|
|
582
622
|
resolve(number: string): Promise<string>;
|
|
623
|
+
/**
|
|
624
|
+
* Take calls on a line (Inkbox iMessage lines). Hub points the identity's
|
|
625
|
+
* incoming calls at itself, binds the ph0ny agent to the line and adds the
|
|
626
|
+
* agent's `ask_workspace` tool. Enabling again replaces every credential.
|
|
627
|
+
*/
|
|
628
|
+
enableVoice(lineId: string, options: LineVoiceOptions): Promise<Line>;
|
|
629
|
+
/** Stop taking calls on a line: Hub refuses them and Inkbox rejects them. */
|
|
630
|
+
disableVoice(lineId: string): Promise<Line>;
|
|
583
631
|
/** Members of the line's active attachment. */
|
|
584
632
|
members(lineId: string): {
|
|
585
633
|
list(): Promise<LineMember[]>;
|
|
@@ -2333,4 +2381,4 @@ declare class SandboxInstance {
|
|
|
2333
2381
|
}): Promise<DurablePlanDecisionResult>;
|
|
2334
2382
|
}
|
|
2335
2383
|
//#endregion
|
|
2336
|
-
export {
|
|
2384
|
+
export { InteractiveTerminalFrameLog as $, LineThread as A, InteractiveSessionHandle as B, LineMemberPatch as C, LineRespondAgent as D, LineReplyGate as E, SandboxLines as F, InteractiveSessionRef as G, InteractiveSessionHost as H, AgentInteractiveTerminalSession$1 as I, InteractiveStopCommand as J, InteractiveSessionStartOptions as K, InteractiveControlClaimRequest as L, LineVoice as M, LineVoiceOptions as N, LineRespondView as O, LinesClient as P, InteractiveTerminalCapture as Q, InteractivePromptCommand as R, LineMember as S, LineMessage as T, InteractiveSessionIncarnationId as U, InteractiveSessionHandleOptions as V, InteractiveSessionInfo as W, RespondToPermissionOptions as X, InterruptResult as Y, agentInteractiveSessionPromptRequestDigest as Z, Line as _, SandboxMcpConfig as _t, WorkspaceImagePublishRequestOptions as a, InteractiveAttachRequest as at, LineFromConnectionInput as b, buildControlPlaneMcpConfig as bt, TraceExportFormat as c, InteractiveSessionControllerTransport as ct, buildTraceExportPayload as d, SandboxInteractionResolution as dt, InteractiveTerminalMetadata as et, exportTraceBundle as f, SandboxInteractionResult as ft, SandboxSession as g, SANDBOX_MCP_SERVER_NAME as gt, SandboxTaskSession as h, CONTROL_PLANE_MCP_SERVER_NAME as ht, WorkspaceImagePublishInput as i, BrowserInteractiveSessionControllerOptions as it, LineTransport as j, LineRole as k, TraceExportResult as l, SandboxInteractionCommandResult as lt, toOtelJson as m, BuildSandboxMcpConfigOptions as mt, HttpClient as n, createInteractiveTerminalSession as nt, WorkspaceImagePublishResult as o, InteractiveSessionController as ot, otelTraceIdForTangleTrace as p, BuildControlPlaneMcpConfigOptions as pt, InteractiveSessionStartResult as q, SandboxInstance as r, BrowserInteractiveSessionController as rt, WorkspaceImages as s, InteractiveSessionControllerOptions as st, ForkAcknowledgement as t, createInteractiveTerminalCapture as tt, TraceExportSink as u, SandboxInteractionConflict as ut, LineAttachOptions as v, SandboxMcpEndpoint as vt, LineMemberSpec as w, LineLimits as x, buildSandboxMcpConfig as xt, LineAttachment as y, SandboxMcpServerEntry as yt, InteractiveSessionControlClaim as z };
|
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-DO-a9xrf.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-IzeHgRVG.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-BZkDZVyA.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.
|
|
3
|
+
"version": "0.52.0",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -138,10 +138,10 @@
|
|
|
138
138
|
"ws": "^8.20.0",
|
|
139
139
|
"yjs": "13.6.30",
|
|
140
140
|
"@repo/shared": "0.0.0",
|
|
141
|
-
"@tangle-network/
|
|
142
|
-
"@tangle-network/cli-agent-registry": "0.4.7",
|
|
141
|
+
"@tangle-network/runtime-contracts": "0.7.1",
|
|
143
142
|
"@tangle-network/sse-core": "0.0.0",
|
|
144
|
-
"@tangle-network/
|
|
143
|
+
"@tangle-network/agent-profile-materialize": "0.20.2",
|
|
144
|
+
"@tangle-network/cli-agent-registry": "0.4.7"
|
|
145
145
|
},
|
|
146
146
|
"scripts": {
|
|
147
147
|
"build": "node scripts/build-dist.mjs",
|