@tangle-network/sandbox 0.11.1-develop.20260723202021.eaa5626 → 0.11.1-develop.20260724111708.8d0e427
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +3 -3
- package/dist/{client-D7FQfaJD.js → client-DbsGkV__.js} +4 -3
- package/dist/{client-B5tDSu0B.d.ts → client-LcQ1JIOq.d.ts} +2 -2
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-pXH860fQ.d.ts → index-AuFxSMbk.d.ts} +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -3
- package/dist/runtime.d.ts +1 -1
- package/dist/{sandbox-DNwEDLwq.js → sandbox-D77F7Yja.js} +49 -18
- package/dist/{sandbox-Cu6bg70c.d.ts → sandbox-aFEpriqE.d.ts} +30 -16
- package/dist/session-gateway/index.d.ts +5 -17
- package/dist/session-gateway/index.js +1 -24
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-D_Xpw5HW.js → tangle-DpxmcNGp.js} +2 -1
- package/dist/{types-C67osezQ.d.ts → types-BHMdNGUn.d.ts} +28 -5
- package/package.json +2 -2
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CodeExecutionResult, E as CodeResultPart, S as CodeExecutionOptions, w as CodeLanguage } from "../types-
|
|
2
|
-
import { n as SandboxInstance } from "../sandbox-
|
|
3
|
-
import { i as SandboxClient } from "../client-
|
|
1
|
+
import { C as CodeExecutionResult, E as CodeResultPart, S as CodeExecutionOptions, w as CodeLanguage } from "../types-BHMdNGUn.js";
|
|
2
|
+
import { n as SandboxInstance } from "../sandbox-aFEpriqE.js";
|
|
3
|
+
import { i as SandboxClient } from "../client-LcQ1JIOq.js";
|
|
4
4
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
5
5
|
|
|
6
6
|
//#region src/agent/tools/_specs.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as encodeTextForWire, i as SANDBOX_PROXY_REQUEST_MAX_BYTES, o as combineAbortSignals, s as encodePromptForWire } from "./runtime-api-XhAv6YiH.js";
|
|
2
2
|
import { a as NotFoundError, c as SandboxError, d as TimeoutError, f as ValidationError, i as NetworkError, o as PartialFailureError, p as parseErrorResponse, t as AuthError } from "./errors-D9fFOWX9.js";
|
|
3
|
-
import { g as exportTraceBundle, m as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeStartupDiagnostics, y as parseSSEStream } from "./sandbox-
|
|
3
|
+
import { g as exportTraceBundle, m as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeStartupDiagnostics, y as parseSSEStream } from "./sandbox-D77F7Yja.js";
|
|
4
4
|
//#region src/resources.ts
|
|
5
5
|
/**
|
|
6
6
|
* Compute tiers, ordered smallest → largest. Defined HERE (not imported from
|
|
@@ -1765,7 +1765,8 @@ var SandboxClient = class {
|
|
|
1765
1765
|
capabilities: options?.capabilities,
|
|
1766
1766
|
privacy: options?.privacy,
|
|
1767
1767
|
egressPolicy: options?.egressPolicy,
|
|
1768
|
-
idempotencyKey
|
|
1768
|
+
idempotencyKey,
|
|
1769
|
+
billingOwnerId: options?.billingOwnerId
|
|
1769
1770
|
});
|
|
1770
1771
|
const createTimeoutError = () => new TimeoutError(timeoutMs, `Sandbox create did not complete within ${timeoutMs}ms. The provision may still be running server-side; retry create() with idempotencyKey="${idempotencyKey}" to join it.`);
|
|
1771
1772
|
const waitBeforeRetry = async (error, failedAttempt) => {
|
|
@@ -1832,7 +1833,7 @@ var SandboxClient = class {
|
|
|
1832
1833
|
}
|
|
1833
1834
|
}
|
|
1834
1835
|
if (deferredProfileForPriming !== void 0) try {
|
|
1835
|
-
await instance.
|
|
1836
|
+
await instance.primeProfile(deferredProfileForPriming);
|
|
1836
1837
|
} catch (err) {
|
|
1837
1838
|
console.warn(`[sandbox.create] Profile priming failed for ${instance.id}; turns will send the full profile inline. Cause: ${err instanceof Error ? err.message : String(err)}`);
|
|
1838
1839
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as ListSandboxOptions, A as CreateIntelligenceReportOptions, An as ReapExpiredSandboxFleetsResult, Cr as SandboxInfo, Ct as FleetPromptDispatchOptions, Dn as PublishPublicTemplateOptions, En as PublicTemplateVersionInfo, F as CreateSandboxOptions,
|
|
2
|
-
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-
|
|
1
|
+
import { $t as ListSandboxOptions, A as CreateIntelligenceReportOptions, An as ReapExpiredSandboxFleetsResult, Cr as SandboxInfo, Ct as FleetPromptDispatchOptions, Dn as PublishPublicTemplateOptions, En as PublicTemplateVersionInfo, F as CreateSandboxOptions, Gt as IntelligenceReportBudget, Ii as UsageInfo, Jn as SandboxEnvironment, Jt as IntelligenceReportWindow, Kn as SandboxClientConfig, Kt as IntelligenceReportCompareTo, M as CreateSandboxFleetOptions, Mn as ReconcileSandboxFleetsResult, N as CreateSandboxFleetTokenOptions, On as PublishPublicTemplateVersionOptions, Or as SandboxProfileSummary, P as CreateSandboxFleetWithCoordinatorOptions, Qn as SandboxFleetCostEstimate, Qt as ListSandboxFleetOptions, Sr as SandboxFleetWorkspaceSnapshotResult, St as FleetMachineId, Tn as PublicTemplateInfo, Ui as BatchEvent, Wt as IntelligenceReport, Xn as SandboxFleetArtifact, Zn as SandboxFleetArtifactSpec, Zr as SecretsManager, _ as BatchTask, _r as SandboxFleetTraceOptions, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, bn as PromptResult, br as SandboxFleetWorkspaceReconcileResult, bt as FleetExecDispatchOptions, dr as SandboxFleetOperationsSummary, er as SandboxFleetDispatchResponse, fi as SshKeysManager, g as BatchRunRequest, gi as SubscriptionInfo, gt as FleetDispatchCancelResult, h as BatchRunOptions, j as CreateRequestOptions, jn as ReconcileSandboxFleetsOptions, ki as TokenRefreshHandler, kn as ReapExpiredSandboxFleetsOptions, lr as SandboxFleetManifest, m as BatchResult, mr as SandboxFleetTraceBundle, nt as ExecResult, p as BatchOptions, pr as SandboxFleetToken, rr as SandboxFleetInfo, sr as SandboxFleetMachineRecord, tr as SandboxFleetDriverCapability, tt as ExecOptions, vn as PromptInputPart, vr as SandboxFleetUsage, vt as FleetDispatchResultBufferOptions, wt as FleetPromptDispatchResult, xr as SandboxFleetWorkspaceRestoreResult, xt as FleetExecDispatchResult, yn as PromptOptions, yt as FleetDispatchStreamOptions } from "./types-BHMdNGUn.js";
|
|
2
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-aFEpriqE.js";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/sse-parser.d.ts
|
|
5
5
|
/**
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Cr as SandboxInfo, F as CreateSandboxOptions, Kn as SandboxClientConfig, Pr as SandboxStatus, cn as PreviewLinkInfo, ln as PreviewLinkManager, nt as ExecResult, rn as NetworkConfig, tt as ExecOptions } from "./types-
|
|
2
|
-
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-
|
|
3
|
-
import { i as SandboxClient } from "./client-
|
|
1
|
+
import { Cr as SandboxInfo, F as CreateSandboxOptions, Kn as SandboxClientConfig, Pr as SandboxStatus, cn as PreviewLinkInfo, ln as PreviewLinkManager, nt as ExecResult, rn as NetworkConfig, tt as ExecOptions } from "./types-BHMdNGUn.js";
|
|
2
|
+
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-aFEpriqE.js";
|
|
3
|
+
import { i as SandboxClient } from "./client-LcQ1JIOq.js";
|
|
4
4
|
import { a as NotFoundError, c as SandboxError, d as ServerError, f as StateError, i as NetworkError, l as SandboxErrorJson, m as ValidationError, n as CapabilityError, o as PartialFailureError, p as TimeoutError, s as QuotaError, t as AuthError, u as SandboxFailureDetail } from "./errors-C8HMx78o.js";
|
|
5
5
|
export { AuthError, CapabilityError, type CreateSandboxOptions, type ExecOptions, type ExecResult, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, QuotaError, SandboxClient as Sandbox, SandboxClient, type SandboxClientConfig, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, type SandboxInfo, SandboxInstance, type SandboxStatus, ServerError, StateError, TimeoutError, ValidationError, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages };
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as NotFoundError, c as SandboxError, d as TimeoutError, f as ValidationError, i as NetworkError, l as ServerError, n as CapabilityError, o as PartialFailureError, s as QuotaError, t as AuthError, u as StateError } from "./errors-D9fFOWX9.js";
|
|
2
|
-
import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
3
|
-
import { n as SandboxClient } from "./client-
|
|
2
|
+
import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-D77F7Yja.js";
|
|
3
|
+
import { n as SandboxClient } from "./client-DbsGkV__.js";
|
|
4
4
|
export { AuthError, CapabilityError, NetworkError, NotFoundError, PartialFailureError, QuotaError, SandboxClient as Sandbox, SandboxClient, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as CreateSandboxOptions } from "./types-
|
|
2
|
-
import { n as SandboxInstance, t as HttpClient } from "./sandbox-
|
|
1
|
+
import { F as CreateSandboxOptions } from "./types-BHMdNGUn.js";
|
|
2
|
+
import { n as SandboxInstance, t as HttpClient } from "./sandbox-aFEpriqE.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tangle/abi.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as EventStreamOptions, $i as
|
|
2
|
-
import { A as SandboxMcpEndpoint, C as RespondToPermissionOptions, D as CONTROL_PLANE_MCP_SERVER_NAME, E as BuildSandboxMcpConfigOptions, M as buildControlPlaneMcpConfig, N as buildSandboxMcpConfig, O as SANDBOX_MCP_SERVER_NAME, S as InterruptResult, T as BuildControlPlaneMcpConfigOptions, _ as InteractiveAuthFile, a as WorkspaceImagePublishResult, b as InteractiveSessionInfo, c as TraceExportResult, d as exportTraceBundle, f as otelTraceIdForTangleTrace, g as InteractiveAttachOptions, h as SandboxSession, i as WorkspaceImagePublishRequestOptions, j as SandboxMcpServerEntry, k as SandboxMcpConfig, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, o as WorkspaceImages, p as toOtelJson, r as WorkspaceImagePublishInput, s as TraceExportFormat, u as buildTraceExportPayload, v as InteractiveSessionHandle, w as StartInteractiveOptions, x as InteractiveSessionStatus, y as InteractiveSessionHost } from "./sandbox-
|
|
3
|
-
import { a as Team, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, i as SandboxClient, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet } from "./client-
|
|
1
|
+
import { $ as EventStreamOptions, $i as TerminalStreamHandlers, $n as SandboxFleetDispatchFailureClass, $r as SendSessionMessageRequest, $t as ListSandboxOptions, A as CreateIntelligenceReportOptions, Ai as TokenUsage, An as ReapExpiredSandboxFleetsResult, Ar as SandboxResources, At as GitDiff, B as DirectoryPermission, Bi as WriteManyFile, Bn as RolloutStartResult, Br as SandboxTerminals, Bt as GpuType, Ca as mergeAgentProfiles, Ci as TaskSessionProfile, Cn as ProvisionStatus, Cr as SandboxInfo, Ct as FleetPromptDispatchOptions, D as CommitTaskSessionOptions, Di as TeePublicKey, Dn as PublishPublicTemplateOptions, Dr as SandboxPortPreviewLink, Dt as GitBranch, Ei as TeeAttestationResponse, En as PublicTemplateVersionInfo, Er as SandboxPortBinding, Et as GitAuth, F as CreateSandboxOptions, Fi as UploadProgress, Fr as SandboxTerminalAttachOptions, Ft as GpuLeaseExecOptions, G as DriveTurnOptions, Gi as BatchSidecarGroup, Gn as SSHCredentials, Gr as SandboxUser, Gt as IntelligenceReportBudget, H as DispatchedSession, Hi as BatchBackendStats, Hn as RolloutTurnPart, Hr as SandboxTraceEvent, Ht as HostAgentRuntimeBackend, I as CreateSessionOptions, Ii as UsageInfo, In as Rollout, Ir as SandboxTerminalCreateOptions, It as GpuLeaseExecResult, J as DriverType, Ji as TerminalExitInfo, Jn as SandboxEnvironment, Jr as SearchMatch, Jt as IntelligenceReportWindow, K as DriverConfig, Ki as BatchTaskUsage, Kn as SandboxClientConfig, Kr as ScopedToken, Kt as IntelligenceReportCompareTo, L as CreateTaskSessionOptions, Li as WaitForOptions, Ln as RolloutChildResult, Lr as SandboxTerminalInfo, Lt as GpuLeaseManager, M as CreateSandboxFleetOptions, Mi as TurnDriveResult, Mn as ReconcileSandboxFleetsResult, Mr as SandboxRuntimeProfile, Mt as GpuLease, Ni as UpdateUserOptions, Nn as RenameOptions, Nr as SandboxRuntimeProfileList, Nt as GpuLeaseBilling, O as CompletedTurnResult, Oi as TeePublicKeyResponse, On as PublishPublicTemplateVersionOptions, Or as SandboxProfileSummary, Ot as GitCommit, P as CreateSandboxFleetWithCoordinatorOptions, Pi as UploadOptions, Pr as SandboxStatus, Pt as GpuLeaseCommandResult, Q as EnsureDevServerOptions, Qi as TerminalStreamError, Qn as SandboxFleetCostEstimate, Qr as SendSessionMessageOptions, Qt as ListSandboxFleetOptions, R as DeleteOptions, Ri as WaitForRolloutOptions, Rn as RolloutOptions, Rr as SandboxTerminalManager, Rt as GpuLeaseProviderName, Sa as defineInlineResource, Si as TaskSessionInfo, Sn as ProvisionResult, Sr as SandboxFleetWorkspaceSnapshotResult, St as FleetMachineId, T as CodeResult, Ti as TeeAttestationReport, Tn as PublicTemplateInfo, Tr as SandboxPermissionsConfig, Tt as GPU_LEASE_PROVIDER_NAMES, U as DownloadOptions, Ui as BatchEvent, Un as RunCodeOptions, Ur as SandboxTraceExport, Ut as InstalledTool, V as DispatchPromptOptions, Vi as WriteManyOptions, Vn as RolloutStatus, Vr as SandboxTraceBundle, Vt as HostAgentDriverConfig, W as DownloadProgress, Wi as BatchEventDataMap, Wn as SSHCommandDescriptor, Wr as SandboxTraceOptions, Wt as IntelligenceReport, X as EgressManager, Xi as TerminalStream, Xn as SandboxFleetArtifact, Xr as SecretInfo, Xt as ListMessagesOptions, Yi as TerminalReadyInfo, Yn as SandboxEvent, Yr as SearchOptions, Z as EgressPolicy, Zi as TerminalStreamAuthFormat, Zn as SandboxFleetArtifactSpec, Zr as SecretsManager, Zt as ListOptions, _ as BatchTask, _a as Capability, _i as TaskOptions, _n as ProcessStatus, _r as SandboxFleetTraceOptions, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, aa as AgentProfileConnection, ai as SessionListOptions, an as NonHostAgentDriverConfig, ar as SandboxFleetMachine, at as FileReadBatchResult, b as ChunkedUploadOptions, ba as defineAgentProfile, bi as TaskSessionCommitResult, bn as PromptResult, br as SandboxFleetWorkspaceReconcileResult, bt as FleetExecDispatchOptions, c as BackendInfo, ca as AgentProfileModelHints, ci as SessionStatus, cn as PreviewLinkInfo, cr as SandboxFleetMachineSpec, ct as FileRenameResult, d as BackendType, da as AgentProfileResourceRef, di as SnapshotResult, dn as ProcessInfo, dr as SandboxFleetOperationsSummary, dt as FileTreeOptions, ea as TerminalStreamOptions, ei as SentSessionMessage, en as McpServerConfig, er as SandboxFleetDispatchResponse, et as ExactProcessSpawnOptions, f as BatchBackend, fa as AgentProfileResources, fn as ProcessListOptions, fr as SandboxFleetPolicy, ft as FileTreeResult, g as BatchRunRequest, ga as AgentSubagentProfile, gi as SubscriptionInfo, gn as ProcessSpawnOptions, gr as SandboxFleetTraceExport, gt as FleetDispatchCancelResult, h as BatchRunOptions, ha as AgentProfileValidationResult, hi as StorageConfig, hn as ProcessSignal, hr as SandboxFleetTraceEvent, ht as FileWriteResult, i as AttachGpuLeaseOptions, ia as AgentProfileConfidential, ii as SessionInfo, in as NetworkManager, ir as SandboxFleetIntelligenceEnvelope, it as FileReadBatchOptions, j as CreateRequestOptions, ji as ToolsConfig, jn as ReconcileSandboxFleetsOptions, jr as SandboxRuntimeHealth, jt as GitStatus, k as CreateGpuLeaseOptions, ki as TokenRefreshHandler, kn as ReapExpiredSandboxFleetsOptions, kr as SandboxResourceUsage, kt as GitConfig, l as BackendManager, la as AgentProfilePermissionValue, li as SnapshotInfo, ln as PreviewLinkManager, lr as SandboxFleetManifest, lt as FileSystem, m as BatchResult, ma as AgentProfileValidationIssue, mi as StartupOperation, mn as ProcessManager, mr as SandboxFleetTraceBundle, mt as FileUsageResult, n as AccessPolicyRule, na as AgentProfile, ni as SessionEventStreamOptions, nn as MkdirOptions, nr as SandboxFleetDriverTimings, nt as ExecResult, o as BackendCapabilities, oa as AgentProfileFileMount, oi as SessionMessage, on as PermissionLevel, or as SandboxFleetMachineMeteredUsage, ot as FileReadError, p as BatchOptions, pa as AgentProfileSecurityPolicy, pi as StartupDiagnostics, pn as ProcessLogEntry, pr as SandboxFleetToken, pt as FileUsageOptions, q as DriverInfo, qi as TERMINAL_WS_ECHO_SUBPROTOCOL, qn as SandboxConnection, qr as ScopedTokenScope, qt as IntelligenceReportSubjectType, r as AddUserOptions, ra as AgentProfileCapabilities, ri as SessionForkOptions, rn as NetworkConfig, rr as SandboxFleetInfo, rt as FileInfo, s as BackendConfig, sa as AgentProfileMcpServer, si as SessionMessageInputPart, sn as PermissionsManager, sr as SandboxFleetMachineRecord, st as FileReadResult, t as AcceleratorKind, ta as TerminalStreamToken, ti as SessionBackendCredentials, tn as MintScopedTokenOptions, tr as SandboxFleetDriverCapability, tt as ExecOptions, u as BackendStatus, ua as AgentProfilePrompt, ui as SnapshotOptions, un as Process, ur as SandboxFleetManifestMachine, ut as FileTreeFile, v as BatchTaskResult, va as agentProfileSchema, vi as TaskResult, vr as SandboxFleetUsage, vt as FleetDispatchResultBufferOptions, wa as validateAgentProfileSecurity, wi as TeeAttestationOptions, wn as ProvisionStep, wr as SandboxIntelligenceEnvelope, x as ChunkedUploadResult, xa as defineGitHubResource, xi as TaskSessionFileChange, xn as ProvisionEvent, xr as SandboxFleetWorkspaceRestoreResult, y as BranchOptions, ya as capabilitySchema, yi as TaskSessionChanges, yn as PromptOptions, yr as SandboxFleetWorkspace, yt as FleetDispatchStreamOptions, z as DevServerInfo, zi as WriteFileOptions, zn as RolloutScorer, zr as SandboxTerminalRequestOptions, zt as GpuLeaseStatus } from "./types-BHMdNGUn.js";
|
|
2
|
+
import { A as SandboxMcpEndpoint, C as RespondToPermissionOptions, D as CONTROL_PLANE_MCP_SERVER_NAME, E as BuildSandboxMcpConfigOptions, M as buildControlPlaneMcpConfig, N as buildSandboxMcpConfig, O as SANDBOX_MCP_SERVER_NAME, S as InterruptResult, T as BuildControlPlaneMcpConfigOptions, _ as InteractiveAuthFile, a as WorkspaceImagePublishResult, b as InteractiveSessionInfo, c as TraceExportResult, d as exportTraceBundle, f as otelTraceIdForTangleTrace, g as InteractiveAttachOptions, h as SandboxSession, i as WorkspaceImagePublishRequestOptions, j as SandboxMcpServerEntry, k as SandboxMcpConfig, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, o as WorkspaceImages, p as toOtelJson, r as WorkspaceImagePublishInput, s as TraceExportFormat, u as buildTraceExportPayload, v as InteractiveSessionHandle, w as StartInteractiveOptions, x as InteractiveSessionStatus, y as InteractiveSessionHost } from "./sandbox-aFEpriqE.js";
|
|
3
|
+
import { a as Team, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, i as SandboxClient, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet } from "./client-LcQ1JIOq.js";
|
|
4
4
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-CyHojkuA.js";
|
|
5
5
|
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-DKzapw-9.js";
|
|
6
6
|
import { a as NotFoundError, c as SandboxError, d as ServerError, f as StateError, i as NetworkError, l as SandboxErrorJson, m as ValidationError, n as CapabilityError, o as PartialFailureError, p as TimeoutError, r as EgressProxyRecoveryError, s as QuotaError, t as AuthError, u as SandboxFailureDetail } from "./errors-C8HMx78o.js";
|
|
7
|
-
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-
|
|
7
|
+
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-AuFxSMbk.js";
|
|
8
8
|
|
|
9
9
|
//#region src/attestation-heartbeat.d.ts
|
|
10
10
|
interface TeeAttestationHeartbeatSample {
|
|
@@ -1404,4 +1404,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
1404
1404
|
}
|
|
1405
1405
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
1406
1406
|
//#endregion
|
|
1407
|
-
export { type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentProfile, type AgentProfileCapabilities, type AgentProfileConnection, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileSecurityPolicy, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchOptions, type BatchResult, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, type Capability, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CodeResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type GpuType, type HostAgentDriverConfig, type HostAgentRuntimeBackend, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAuthFile, InteractiveSessionHandle, type InteractiveSessionHost, type InteractiveSessionInfo, type InteractiveSessionStatus, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunCodeOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, SandboxClient as Sandbox, SandboxClient, type SandboxClientConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPermissionsConfig, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxProfileSummary, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeHealth, type SandboxRuntimeProfile, type SandboxRuntimeProfileList, SandboxSession, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionForkOptions, type SessionInfo, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionStatus, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartInteractiveOptions, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskOptions, type TaskResult, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type ToolsConfig, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, agentProfileSchema, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, capabilitySchema, collectAgentResponseText, createConfidentialSandbox, createManageSandboxesTool, defineAgentProfile, defineGitHubResource, defineInlineResource, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, materializeProfileFileMounts, mergeAgentProfiles, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, serializeForSidecar, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateAgentProfileSecurity, validateDeferredProfileFileMounts };
|
|
1407
|
+
export { type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentProfile, type AgentProfileCapabilities, type AgentProfileConnection, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileSecurityPolicy, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchOptions, type BatchResult, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, type Capability, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CodeResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type GpuType, type HostAgentDriverConfig, type HostAgentRuntimeBackend, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAuthFile, InteractiveSessionHandle, type InteractiveSessionHost, type InteractiveSessionInfo, type InteractiveSessionStatus, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunCodeOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, SandboxClient as Sandbox, SandboxClient, type SandboxClientConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPermissionsConfig, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxProfileSummary, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeHealth, type SandboxRuntimeProfile, type SandboxRuntimeProfileList, SandboxSession, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionForkOptions, type SessionInfo, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionStatus, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartInteractiveOptions, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskOptions, type TaskResult, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type ToolsConfig, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, agentProfileSchema, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, capabilitySchema, collectAgentResponseText, createConfidentialSandbox, createManageSandboxesTool, defineAgentProfile, defineGitHubResource, defineInlineResource, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, materializeProfileFileMounts, mergeAgentProfiles, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, serializeForSidecar, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateAgentProfileSecurity, validateDeferredProfileFileMounts };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { d as serializeForSidecar, l as normalizeRuntimeBackendConfig } from "./runtime-api-XhAv6YiH.js";
|
|
2
2
|
import { a as NotFoundError, c as SandboxError, d as TimeoutError, f as ValidationError, i as NetworkError, l as ServerError, n as CapabilityError, o as PartialFailureError, r as EgressProxyRecoveryError, s as QuotaError, t as AuthError, u as StateError } from "./errors-D9fFOWX9.js";
|
|
3
|
-
import { _ as otelTraceIdForTangleTrace, a as TERMINAL_WS_ECHO_SUBPROTOCOL, c as SandboxTaskSession, d as applySandboxEventText, f as collectAgentResponseText, g as exportTraceBundle, h as buildTraceExportPayload, i as WorkspaceImages, l as SandboxSession, o as TerminalStream, p as getSandboxEventText, s as TerminalStreamError, t as SandboxInstance, u as InteractiveSessionHandle, v as toOtelJson, y as parseSSEStream } from "./sandbox-
|
|
4
|
-
import { a as splitInlineProfileSkills, c as SandboxFleetClient, d as SANDBOX_SIZE_PRESET_NAMES, f as resolveSandboxResources, i as splitInlineProfileFileMounts, l as DEFAULT_SANDBOX_SIZE, n as SandboxClient, o as validateDeferredProfileFileMounts, p as sandboxResourcesForSize, r as materializeProfileFileMounts, s as SandboxFleet, t as IntelligenceClient, u as SANDBOX_SIZE_PRESETS } from "./client-
|
|
3
|
+
import { _ as otelTraceIdForTangleTrace, a as TERMINAL_WS_ECHO_SUBPROTOCOL, c as SandboxTaskSession, d as applySandboxEventText, f as collectAgentResponseText, g as exportTraceBundle, h as buildTraceExportPayload, i as WorkspaceImages, l as SandboxSession, o as TerminalStream, p as getSandboxEventText, s as TerminalStreamError, t as SandboxInstance, u as InteractiveSessionHandle, v as toOtelJson, y as parseSSEStream } from "./sandbox-D77F7Yja.js";
|
|
4
|
+
import { a as splitInlineProfileSkills, c as SandboxFleetClient, d as SANDBOX_SIZE_PRESET_NAMES, f as resolveSandboxResources, i as splitInlineProfileFileMounts, l as DEFAULT_SANDBOX_SIZE, n as SandboxClient, o as validateDeferredProfileFileMounts, p as sandboxResourcesForSize, r as materializeProfileFileMounts, s as SandboxFleet, t as IntelligenceClient, u as SANDBOX_SIZE_PRESETS } from "./client-DbsGkV__.js";
|
|
5
5
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DdD_rFZQ.js";
|
|
6
|
-
import { t as TangleSandboxClient } from "./tangle-
|
|
6
|
+
import { t as TangleSandboxClient } from "./tangle-DpxmcNGp.js";
|
|
7
7
|
import { agentProfileSchema, capabilitySchema, defineAgentProfile, defineGitHubResource, defineInlineResource, mergeAgentProfiles, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
8
8
|
//#region src/confidential.ts
|
|
9
9
|
function generateAttestationNonce(bytes = 32) {
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $r as SendSessionMessageRequest, D as CommitTaskSessionOptions, Er as SandboxPortBinding, I as CreateSessionOptions, Ir as SandboxTerminalCreateOptions, L as CreateTaskSessionOptions, Lr as SandboxTerminalInfo, Nn as RenameOptions, Nr as SandboxRuntimeProfileList,
|
|
1
|
+
import { $r as SendSessionMessageRequest, D as CommitTaskSessionOptions, Er as SandboxPortBinding, Fi as UploadProgress, I as CreateSessionOptions, Ir as SandboxTerminalCreateOptions, L as CreateTaskSessionOptions, Lr as SandboxTerminalInfo, Nn as RenameOptions, Nr as SandboxRuntimeProfileList, Qr as SendSessionMessageOptions, Rr as SandboxTerminalManager, Si as TaskSessionInfo, Xt as ListMessagesOptions, at as FileReadBatchResult, b as ChunkedUploadOptions, bi as TaskSessionCommitResult, ct as FileRenameResult, dt as FileTreeOptions, ei as SentSessionMessage, ft as FileTreeResult, ht as FileWriteResult, ii as SessionInfo, it as FileReadBatchOptions, jr as SandboxRuntimeHealth, mt as FileUsageResult, oi as SessionMessage, pt as FileUsageOptions, x as ChunkedUploadResult, yi as TaskSessionChanges, zi as WriteFileOptions, zr as SandboxTerminalRequestOptions } from "./types-BHMdNGUn.js";
|
|
2
2
|
import { a as NotFoundError, c as SandboxError, d as ServerError, f as StateError, i as NetworkError, l as SandboxErrorJson, m as ValidationError, n as CapabilityError, o as PartialFailureError, p as TimeoutError, s as QuotaError, t as AuthError, u as SandboxFailureDetail } from "./errors-C8HMx78o.js";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/chunked-upload.d.ts
|
|
@@ -999,6 +999,7 @@ const WORKSPACE_IMAGE_REQUEST_ATTEMPTS = 2;
|
|
|
999
999
|
const MAX_WORKSPACE_IMAGE_RESPONSE_BYTES = 64 * 1024;
|
|
1000
1000
|
const MAX_TIMER_DELAY_MS = 2147483647;
|
|
1001
1001
|
const IDEMPOTENCY_KEY_PATTERN = /^[A-Za-z0-9_-]{16,128}$/;
|
|
1002
|
+
const MAX_WORKSPACE_IMAGE_EXPOSED_PORTS = 64;
|
|
1002
1003
|
function createIdempotencyKey() {
|
|
1003
1004
|
const crypto = globalThis.crypto;
|
|
1004
1005
|
if (crypto?.randomUUID) return crypto.randomUUID();
|
|
@@ -1075,7 +1076,8 @@ const WORKSPACE_IMAGE_RESULT_KEYS = [
|
|
|
1075
1076
|
"contextBytes",
|
|
1076
1077
|
"contextEntries",
|
|
1077
1078
|
"buildDurationMs",
|
|
1078
|
-
"pushDurationMs"
|
|
1079
|
+
"pushDurationMs",
|
|
1080
|
+
"exposedPorts"
|
|
1079
1081
|
];
|
|
1080
1082
|
const SHA256_DIGEST_PATTERN = /^sha256:[a-f0-9]{64}$/;
|
|
1081
1083
|
const IMAGE_TAG_PATTERN = /^[A-Za-z0-9_][A-Za-z0-9_.-]{0,127}$/;
|
|
@@ -1085,11 +1087,30 @@ function isRecord(value) {
|
|
|
1085
1087
|
function isNonNegativeSafeInteger(value) {
|
|
1086
1088
|
return Number.isSafeInteger(value) && Number(value) >= 0;
|
|
1087
1089
|
}
|
|
1090
|
+
function parseExposedPorts(value) {
|
|
1091
|
+
if (!Array.isArray(value) || value.length > MAX_WORKSPACE_IMAGE_EXPOSED_PORTS) return;
|
|
1092
|
+
const ports = [];
|
|
1093
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1094
|
+
for (const entry of value) {
|
|
1095
|
+
if (!isRecord(entry) || Object.keys(entry).length !== 2) return void 0;
|
|
1096
|
+
const { port, protocol } = entry;
|
|
1097
|
+
if (typeof port !== "number" || !Number.isSafeInteger(port) || port < 1 || port > 65535 || protocol !== "tcp" && protocol !== "udp" && protocol !== "sctp") return;
|
|
1098
|
+
const identity = `${port}/${protocol}`;
|
|
1099
|
+
if (seen.has(identity)) return void 0;
|
|
1100
|
+
seen.add(identity);
|
|
1101
|
+
ports.push({
|
|
1102
|
+
port,
|
|
1103
|
+
protocol
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
return ports;
|
|
1107
|
+
}
|
|
1088
1108
|
function parseWorkspaceImagePublishResult(value, repository) {
|
|
1089
1109
|
if (!isRecord(value)) return void 0;
|
|
1090
1110
|
if (Object.keys(value).length !== WORKSPACE_IMAGE_RESULT_KEYS.length || !WORKSPACE_IMAGE_RESULT_KEYS.every((key) => Object.hasOwn(value, key))) return;
|
|
1091
|
-
const { image, taggedImage, digest, imageId, sizeBytes, contextBytes, contextEntries, buildDurationMs, pushDurationMs } = value;
|
|
1092
|
-
|
|
1111
|
+
const { image, taggedImage, digest, imageId, sizeBytes, contextBytes, contextEntries, buildDurationMs, pushDurationMs, exposedPorts } = value;
|
|
1112
|
+
const parsedExposedPorts = parseExposedPorts(exposedPorts);
|
|
1113
|
+
if (typeof image !== "string" || typeof taggedImage !== "string" || typeof digest !== "string" || typeof imageId !== "string" || !SHA256_DIGEST_PATTERN.test(digest) || !SHA256_DIGEST_PATTERN.test(imageId) || image !== `${repository}@${digest}` || !taggedImage.startsWith(`${repository}:`) || !IMAGE_TAG_PATTERN.test(taggedImage.slice(repository.length + 1)) || !isNonNegativeSafeInteger(sizeBytes) || !isNonNegativeSafeInteger(contextBytes) || !isNonNegativeSafeInteger(contextEntries) || !isNonNegativeSafeInteger(buildDurationMs) || !isNonNegativeSafeInteger(pushDurationMs) || !parsedExposedPorts) return;
|
|
1093
1114
|
return {
|
|
1094
1115
|
image,
|
|
1095
1116
|
taggedImage,
|
|
@@ -1099,7 +1120,8 @@ function parseWorkspaceImagePublishResult(value, repository) {
|
|
|
1099
1120
|
contextBytes,
|
|
1100
1121
|
contextEntries,
|
|
1101
1122
|
buildDurationMs,
|
|
1102
|
-
pushDurationMs
|
|
1123
|
+
pushDurationMs,
|
|
1124
|
+
exposedPorts: parsedExposedPorts
|
|
1103
1125
|
};
|
|
1104
1126
|
}
|
|
1105
1127
|
/** Builds and publishes the current sandbox workspace from trusted hosts. */
|
|
@@ -2185,26 +2207,33 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2185
2207
|
* already yielded (based on event ID tracking) are deduplicated.
|
|
2186
2208
|
*/
|
|
2187
2209
|
/**
|
|
2188
|
-
* Record that the runtime holds `profile` under `sha256
|
|
2189
|
-
*
|
|
2190
|
-
*
|
|
2191
|
-
*
|
|
2192
|
-
*
|
|
2210
|
+
* Record that the runtime already holds `profile` under `sha256`, so
|
|
2211
|
+
* subsequent turns whose profile serializes byte-identically send
|
|
2212
|
+
* `backend.profileSha256` instead of the inline corpus. Use this to hydrate
|
|
2213
|
+
* a freshly-fetched instance (`get()`/`list()`) from caller-persisted state
|
|
2214
|
+
* — the reference otherwise lives only on the instance that primed it.
|
|
2215
|
+
* Captures a content snapshot, so mutating the object afterwards is
|
|
2216
|
+
* detected and that turn falls back to sending the profile inline.
|
|
2193
2217
|
*/
|
|
2194
|
-
|
|
2218
|
+
attachProfileReference(profile, sha256) {
|
|
2195
2219
|
this.deferredProfileReference = {
|
|
2196
2220
|
snapshot: serializeProfileSnapshot(profile),
|
|
2197
2221
|
sha256
|
|
2198
2222
|
};
|
|
2199
2223
|
}
|
|
2200
2224
|
/**
|
|
2201
|
-
*
|
|
2202
|
-
*
|
|
2203
|
-
* by
|
|
2204
|
-
*
|
|
2205
|
-
*
|
|
2225
|
+
* Upload `profile` to the runtime once (`POST /agents/profiles`) and record
|
|
2226
|
+
* the returned hash via {@link attachProfileReference}, so subsequent turns
|
|
2227
|
+
* reference it by `profileSha256` instead of re-sending the corpus.
|
|
2228
|
+
* `create()` calls this automatically for its inline profile when
|
|
2229
|
+
* `autoDeferProfile` is on; call it directly when the profile only exists
|
|
2230
|
+
* per-turn, or when the instance was fetched rather than created. Persist
|
|
2231
|
+
* the returned sha256 alongside a content hash of the profile to
|
|
2232
|
+
* re-attach on later instances without re-priming. Throws on transport/HTTP
|
|
2233
|
+
* failure — the caller decides whether that is fatal (it is not: turns fall
|
|
2234
|
+
* back to sending the full profile inline).
|
|
2206
2235
|
*/
|
|
2207
|
-
async
|
|
2236
|
+
async primeProfile(profile) {
|
|
2208
2237
|
const response = await this.runtimeFetch("/agents/profiles", {
|
|
2209
2238
|
method: "POST",
|
|
2210
2239
|
headers: { "content-type": "application/json" },
|
|
@@ -2219,7 +2248,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2219
2248
|
}
|
|
2220
2249
|
const data = await response.json();
|
|
2221
2250
|
if (typeof data.sha256 !== "string" || data.sha256.length === 0) throw new Error("Profile priming returned no sha256; runtime response malformed");
|
|
2222
|
-
this.
|
|
2251
|
+
this.attachProfileReference(profile, data.sha256);
|
|
2223
2252
|
return data.sha256;
|
|
2224
2253
|
}
|
|
2225
2254
|
/**
|
|
@@ -5728,10 +5757,12 @@ function settleTurnDrive(result) {
|
|
|
5728
5757
|
state: "failed",
|
|
5729
5758
|
error: typeof result.error === "string" && result.error.length > 0 ? result.error : `turn ${status}`
|
|
5730
5759
|
};
|
|
5760
|
+
const usage = readTokenUsage(result);
|
|
5731
5761
|
return {
|
|
5732
5762
|
state: "completed",
|
|
5733
5763
|
text: text ?? "",
|
|
5734
|
-
result
|
|
5764
|
+
result,
|
|
5765
|
+
...usage ? { usage } : {}
|
|
5735
5766
|
};
|
|
5736
5767
|
}
|
|
5737
5768
|
var DirectRuntimeHttpClient = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as EventStreamOptions, $r as SendSessionMessageRequest, At as GitDiff, Bi as
|
|
1
|
+
import { $ as EventStreamOptions, $i as TerminalStreamHandlers, $r as SendSessionMessageRequest, At as GitDiff, Bi as WriteManyFile, Bn as RolloutStartResult, Br as SandboxTerminals, C as CodeExecutionResult, Cr as SandboxInfo, D as CommitTaskSessionOptions, Dt as GitBranch, Ei as TeeAttestationResponse, Er as SandboxPortBinding, Fn as ResumeOptions, Fr as SandboxTerminalAttachOptions, G as DriveTurnOptions, Gn as SSHCredentials, Gt as IntelligenceReportBudget, H as DispatchedSession, I as CreateSessionOptions, In as Rollout, Jr as SearchMatch, Jt as IntelligenceReportWindow, Kr as ScopedToken, Kt as IntelligenceReportCompareTo, L as CreateTaskSessionOptions, Li as WaitForOptions, Lt as GpuLeaseManager, Mi as TurnDriveResult, Mt as GpuLease, Nr as SandboxRuntimeProfileList, O as CompletedTurnResult, Oi as TeePublicKeyResponse, Ot as GitCommit, Pn as RestoreSnapshotOptions, Pr as SandboxStatus, Qr as SendSessionMessageOptions, Ri as WaitForRolloutOptions, Rn as RolloutOptions, S as CodeExecutionOptions, Si as TaskSessionInfo, Sn as ProvisionResult, Ut as InstalledTool, V as DispatchPromptOptions, Vi as WriteManyOptions, Vr as SandboxTraceBundle, Wn as SSHCommandDescriptor, Wr as SandboxTraceOptions, Wt as IntelligenceReport, X as EgressManager, Xi as TerminalStream, Xt as ListMessagesOptions, Y as DurablePlan, Yn as SandboxEvent, Yr as SearchOptions, Yt as JsonValue, _i as TaskOptions, ai as SessionListOptions, bi as TaskSessionCommitResult, bn as PromptResult, di as SnapshotResult, ei as SentSessionMessage, ht as FileWriteResult, ii as SessionInfo, in as NetworkManager, jr as SandboxRuntimeHealth, jt as GitStatus, kr as SandboxResourceUsage, l as BackendManager, li as SnapshotInfo, ln as PreviewLinkManager, lt as FileSystem, mn as ProcessManager, mr as SandboxFleetTraceBundle, ni as SessionEventStreamOptions, nt as ExecResult, oi as SessionMessage, pi as StartupDiagnostics, q as DriverInfo, qn as SandboxConnection, ri as SessionForkOptions, s as BackendConfig, sn as PermissionsManager, tn as MintScopedTokenOptions, tt as ExecOptions, ui as SnapshotOptions, vi as TaskResult, vn as PromptInputPart, w as CodeLanguage, wi as TeeAttestationOptions, xn as ProvisionEvent, y as BranchOptions, yi as TaskSessionChanges, yn as PromptOptions, zi as WriteFileOptions } from "./types-BHMdNGUn.js";
|
|
2
2
|
import { AgentProfile } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/mcp.d.ts
|
|
@@ -471,6 +471,11 @@ declare function toOtelJson(bundle: TraceExportBundle, serviceName?: string): Js
|
|
|
471
471
|
declare function otelTraceIdForTangleTrace(traceId: string): string;
|
|
472
472
|
//#endregion
|
|
473
473
|
//#region ../../../packages/runtime-contracts/dist/workspace-image-types.d.ts
|
|
474
|
+
/** A port declared by the published OCI image. */
|
|
475
|
+
interface WorkspaceImageExposedPort {
|
|
476
|
+
port: number;
|
|
477
|
+
protocol: "tcp" | "udp" | "sctp";
|
|
478
|
+
}
|
|
474
479
|
/** Successful workspace image publication returned by the Sandbox API. */
|
|
475
480
|
interface WorkspaceImagePublishResult$1 {
|
|
476
481
|
/** Immutable registry reference. */
|
|
@@ -484,6 +489,8 @@ interface WorkspaceImagePublishResult$1 {
|
|
|
484
489
|
contextEntries: number;
|
|
485
490
|
buildDurationMs: number;
|
|
486
491
|
pushDurationMs: number;
|
|
492
|
+
/** Network ports from the final image configuration, not source inspection. */
|
|
493
|
+
exposedPorts: WorkspaceImageExposedPort[];
|
|
487
494
|
}
|
|
488
495
|
//#endregion
|
|
489
496
|
//#region src/workspace-images.d.ts
|
|
@@ -873,21 +880,28 @@ declare class SandboxInstance {
|
|
|
873
880
|
* already yielded (based on event ID tracking) are deduplicated.
|
|
874
881
|
*/
|
|
875
882
|
/**
|
|
876
|
-
* Record that the runtime holds `profile` under `sha256
|
|
877
|
-
*
|
|
878
|
-
*
|
|
879
|
-
*
|
|
880
|
-
*
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
*
|
|
887
|
-
*
|
|
888
|
-
*
|
|
889
|
-
|
|
890
|
-
|
|
883
|
+
* Record that the runtime already holds `profile` under `sha256`, so
|
|
884
|
+
* subsequent turns whose profile serializes byte-identically send
|
|
885
|
+
* `backend.profileSha256` instead of the inline corpus. Use this to hydrate
|
|
886
|
+
* a freshly-fetched instance (`get()`/`list()`) from caller-persisted state
|
|
887
|
+
* — the reference otherwise lives only on the instance that primed it.
|
|
888
|
+
* Captures a content snapshot, so mutating the object afterwards is
|
|
889
|
+
* detected and that turn falls back to sending the profile inline.
|
|
890
|
+
*/
|
|
891
|
+
attachProfileReference(profile: object, sha256: string): void;
|
|
892
|
+
/**
|
|
893
|
+
* Upload `profile` to the runtime once (`POST /agents/profiles`) and record
|
|
894
|
+
* the returned hash via {@link attachProfileReference}, so subsequent turns
|
|
895
|
+
* reference it by `profileSha256` instead of re-sending the corpus.
|
|
896
|
+
* `create()` calls this automatically for its inline profile when
|
|
897
|
+
* `autoDeferProfile` is on; call it directly when the profile only exists
|
|
898
|
+
* per-turn, or when the instance was fetched rather than created. Persist
|
|
899
|
+
* the returned sha256 alongside a content hash of the profile to
|
|
900
|
+
* re-attach on later instances without re-priming. Throws on transport/HTTP
|
|
901
|
+
* failure — the caller decides whether that is fatal (it is not: turns fall
|
|
902
|
+
* back to sending the full profile inline).
|
|
903
|
+
*/
|
|
904
|
+
primeProfile(profile: object): Promise<string>;
|
|
891
905
|
/**
|
|
892
906
|
* Build the run request's `backend` body. When the outgoing profile's CONTENT
|
|
893
907
|
* matches the one the runtime already holds (and we are not resending after a
|
|
@@ -65,7 +65,6 @@ interface ServerMessageBase {
|
|
|
65
65
|
*/
|
|
66
66
|
type ServerMessage = (ServerMessageBase & {
|
|
67
67
|
type: "connection.established";
|
|
68
|
-
messageType?: string;
|
|
69
68
|
data: {
|
|
70
69
|
sessionId: string;
|
|
71
70
|
hydratedCount?: number;
|
|
@@ -92,6 +91,7 @@ type ServerMessage = (ServerMessageBase & {
|
|
|
92
91
|
data: {
|
|
93
92
|
sandboxId: string;
|
|
94
93
|
error?: string;
|
|
94
|
+
reason?: string;
|
|
95
95
|
};
|
|
96
96
|
}) | (ServerMessageBase & {
|
|
97
97
|
type: "runtime.reconnecting";
|
|
@@ -113,11 +113,6 @@ type ServerMessage = (ServerMessageBase & {
|
|
|
113
113
|
containerId?: string;
|
|
114
114
|
reason: string;
|
|
115
115
|
};
|
|
116
|
-
}) | (ServerMessageBase & {
|
|
117
|
-
type: "container.ready";
|
|
118
|
-
data: {
|
|
119
|
-
sandboxId?: string;
|
|
120
|
-
};
|
|
121
116
|
}) | (ServerMessageBase & {
|
|
122
117
|
type: "runtime.ready";
|
|
123
118
|
data: {
|
|
@@ -142,8 +137,7 @@ type ServerMessage = (ServerMessageBase & {
|
|
|
142
137
|
}) | (ServerMessageBase & {
|
|
143
138
|
type: "agent.event";
|
|
144
139
|
channel: string;
|
|
145
|
-
data: unknown;
|
|
146
|
-
sequenceId?: number;
|
|
140
|
+
data: unknown;
|
|
147
141
|
}) | (ServerMessageBase & {
|
|
148
142
|
type: "replay.start";
|
|
149
143
|
total: number;
|
|
@@ -198,15 +192,11 @@ interface PortEventData {
|
|
|
198
192
|
processName?: string;
|
|
199
193
|
}
|
|
200
194
|
/**
|
|
201
|
-
* Inbound WebSocket frame
|
|
202
|
-
*
|
|
203
|
-
* top-level `channel` plus arbitrary extra fields. `handleMessage`
|
|
204
|
-
* normalizes a `RawWireMessage` into a `ServerMessage` before dispatch:
|
|
205
|
-
* `type` and `data` are mutable here because normalization rewrites them.
|
|
195
|
+
* Inbound WebSocket frame. `handleMessage` validates its message type before
|
|
196
|
+
* dispatching it to the typed session protocol.
|
|
206
197
|
*/
|
|
207
198
|
interface RawWireMessage {
|
|
208
199
|
type?: string;
|
|
209
|
-
messageType?: string;
|
|
210
200
|
channel?: string;
|
|
211
201
|
data?: unknown;
|
|
212
202
|
id?: string;
|
|
@@ -214,10 +204,9 @@ interface RawWireMessage {
|
|
|
214
204
|
code?: string;
|
|
215
205
|
timestamp?: number;
|
|
216
206
|
seq?: number;
|
|
217
|
-
sequenceId?: number;
|
|
218
207
|
[key: string]: unknown;
|
|
219
208
|
}
|
|
220
|
-
/** Every inbound frame after
|
|
209
|
+
/** Every inbound frame after its message type has been validated. */
|
|
221
210
|
interface NormalizedServerMessage extends RawWireMessage {
|
|
222
211
|
type: string;
|
|
223
212
|
}
|
|
@@ -281,7 +270,6 @@ interface SessionGatewayEventHandlers {
|
|
|
281
270
|
onRuntimeConnected?: (sandboxId: string, baseUrl: string) => void;
|
|
282
271
|
onRuntimeDisconnected?: (sandboxId: string, error?: string) => void;
|
|
283
272
|
onRuntimeNotFound?: (sessionId: string, containerId: string | undefined, reason: string) => void;
|
|
284
|
-
onContainerReady?: (sandboxId: string) => void;
|
|
285
273
|
onRuntimeReady?: (data: {
|
|
286
274
|
sandboxId: string;
|
|
287
275
|
sessionId: string;
|
|
@@ -89,14 +89,6 @@ const CONTROL_MESSAGE_TYPES = new Set([
|
|
|
89
89
|
"terminal.input.error",
|
|
90
90
|
"heartbeat"
|
|
91
91
|
]);
|
|
92
|
-
const WIRE_TYPE_MAP = {
|
|
93
|
-
"sidecar.connected": "runtime.connected",
|
|
94
|
-
"sidecar.disconnected": "runtime.disconnected",
|
|
95
|
-
"sidecar.not_found": "runtime.not_found",
|
|
96
|
-
"sidecar.ready": "runtime.ready",
|
|
97
|
-
"sidecar.reconnecting": "runtime.reconnecting",
|
|
98
|
-
"sidecar.removed": "runtime.removed"
|
|
99
|
-
};
|
|
100
92
|
function acceptedSubscriptionChannels(acknowledgement) {
|
|
101
93
|
if (acknowledgement.denied?.length) {
|
|
102
94
|
const reasons = acknowledgement.denied.map(({ channel, reason }) => `${channel}: ${reason}`).join(", ");
|
|
@@ -548,25 +540,17 @@ var SessionGatewayClient = class {
|
|
|
548
540
|
this.messagesReceived++;
|
|
549
541
|
try {
|
|
550
542
|
const raw = JSON.parse(data);
|
|
551
|
-
if (!raw.type && raw.messageType) raw.type = raw.messageType;
|
|
552
543
|
if (typeof raw.type !== "string") {
|
|
553
544
|
invokeClientCallback("onError", () => this.handlers.onError?.("Session gateway frame is missing a message type", "INVALID_MESSAGE"), void 0);
|
|
554
545
|
return;
|
|
555
546
|
}
|
|
556
|
-
if (WIRE_TYPE_MAP[raw.type] !== void 0) raw.type = WIRE_TYPE_MAP[raw.type];
|
|
557
547
|
if (raw.data && typeof raw.data === "object") {
|
|
558
548
|
const d = raw.data;
|
|
559
|
-
if (d.sidecarId !== void 0 && d.sandboxId === void 0) d.sandboxId = d.sidecarId;
|
|
560
549
|
if (raw.type === "error") {
|
|
561
550
|
if (raw.message === void 0 && typeof d.message === "string") raw.message = d.message;
|
|
562
551
|
if (raw.code === void 0 && typeof d.code === "string") raw.code = d.code;
|
|
563
552
|
}
|
|
564
553
|
}
|
|
565
|
-
if (raw.seq === void 0 && typeof raw.sequenceId === "number") raw.seq = raw.sequenceId;
|
|
566
|
-
if (raw.type === "agent.event" && !raw.data && raw.channel) {
|
|
567
|
-
const { type, messageType, channel, id, seq, sequenceId, timestamp, ...rest } = raw;
|
|
568
|
-
raw.data = rest;
|
|
569
|
-
}
|
|
570
554
|
const message = raw;
|
|
571
555
|
if (CONTROL_MESSAGE_TYPES.has(message.type)) {
|
|
572
556
|
if (message.type === "pong") this.handlePong(message.timestamp);
|
|
@@ -633,13 +617,6 @@ var SessionGatewayClient = class {
|
|
|
633
617
|
case "runtime.not_found":
|
|
634
618
|
this.handlers.onRuntimeNotFound?.(message.data.sessionId, message.data.containerId, message.data.reason);
|
|
635
619
|
break;
|
|
636
|
-
case "container.ready": {
|
|
637
|
-
const data = message.data;
|
|
638
|
-
const id = data.sandboxId ?? data.sidecarId;
|
|
639
|
-
if (id) this.handlers.onContainerReady?.(id);
|
|
640
|
-
else this.handlers.onError?.("container.ready event received without sandboxId", "invalid_payload");
|
|
641
|
-
break;
|
|
642
|
-
}
|
|
643
620
|
case "runtime.ready":
|
|
644
621
|
this.handlers.onRuntimeReady?.(message.data);
|
|
645
622
|
break;
|
|
@@ -652,7 +629,7 @@ var SessionGatewayClient = class {
|
|
|
652
629
|
case "agent.event":
|
|
653
630
|
this.eventsReceived++;
|
|
654
631
|
this.trackExecutionContext(message.data);
|
|
655
|
-
this.handlers.onAgentEvent?.(message.channel, message.data, message.seq
|
|
632
|
+
this.handlers.onAgentEvent?.(message.channel, message.data, message.seq);
|
|
656
633
|
break;
|
|
657
634
|
case "replay.start":
|
|
658
635
|
this.isReplaying = true;
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as AgentSandboxBlueprintAbi, d as SandboxCreateParamTypes, f as SandboxCreateResponseParamTypes, i as TANGLE_CHAIN_ID, l as ITangleJobsAbi, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, p as SandboxIdParamTypes, r as JOB_SANDBOX_DELETE, s as TangleSandboxClientConfig, t as TangleSandboxClient, u as JsonResponseParamTypes } from "../index-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as AgentSandboxBlueprintAbi, d as SandboxCreateParamTypes, f as SandboxCreateResponseParamTypes, i as TANGLE_CHAIN_ID, l as ITangleJobsAbi, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, p as SandboxIdParamTypes, r as JOB_SANDBOX_DELETE, s as TangleSandboxClientConfig, t as TangleSandboxClient, u as JsonResponseParamTypes } from "../index-AuFxSMbk.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TANGLE_MAINNET_RPC, TangleSandboxClient, TangleSandboxClientConfig };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../tangle-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../tangle-DpxmcNGp.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TANGLE_MAINNET_RPC, TangleSandboxClient };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as parseErrorResponse } from "./errors-D9fFOWX9.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-D77F7Yja.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|
|
@@ -752,6 +752,7 @@ var TangleSandboxClient = class {
|
|
|
752
752
|
* Create a sandbox via on-chain job submission.
|
|
753
753
|
*/
|
|
754
754
|
async create(options) {
|
|
755
|
+
if (options?.billingOwnerId !== void 0) throw new Error("billingOwnerId is supported only by the HTTP Sandbox API client");
|
|
755
756
|
const createOptions = withAttestationNonce(options ?? {});
|
|
756
757
|
const encoded = this.chain.encodeSandboxCreateInputs(createOptions);
|
|
757
758
|
const { result: _result, callId, blockNumber } = await this.chain.submitJobAndWait(0, encoded);
|
|
@@ -1046,6 +1046,18 @@ interface CreateSandboxOptions {
|
|
|
1046
1046
|
* timeout-driven retries.
|
|
1047
1047
|
*/
|
|
1048
1048
|
idempotencyKey?: string;
|
|
1049
|
+
/**
|
|
1050
|
+
* Platform user id whose wallet funds managed model usage for this sandbox.
|
|
1051
|
+
*
|
|
1052
|
+
* Use only from a trusted first-party service acting for an authenticated
|
|
1053
|
+
* user. The Sandbox API honors this field only when the caller's service
|
|
1054
|
+
* account is allow-listed; otherwise strict deployments reject the create.
|
|
1055
|
+
* It never grants the caller permission to charge arbitrary users.
|
|
1056
|
+
*
|
|
1057
|
+
* This option applies to the HTTP Sandbox API client. Direct Tangle job
|
|
1058
|
+
* creation does not support delegated billing.
|
|
1059
|
+
*/
|
|
1060
|
+
billingOwnerId?: string;
|
|
1049
1061
|
/**
|
|
1050
1062
|
* Auto-split inline file mounts out of an inline `backend.profile` object
|
|
1051
1063
|
* at create time, send the lean profile (mount refs stripped) in the
|
|
@@ -1662,6 +1674,15 @@ interface AgentQuestionRequest {
|
|
|
1662
1674
|
/** The questions payload the agent emitted (prompt + options per entry). */
|
|
1663
1675
|
questions: unknown;
|
|
1664
1676
|
}
|
|
1677
|
+
/**
|
|
1678
|
+
* Token usage counts for a single agent run: prompt tokens in, completion
|
|
1679
|
+
* tokens out. Both are whole non-negative counts; a runtime that reports
|
|
1680
|
+
* only one side leaves the other at 0.
|
|
1681
|
+
*/
|
|
1682
|
+
interface TokenUsage {
|
|
1683
|
+
inputTokens: number;
|
|
1684
|
+
outputTokens: number;
|
|
1685
|
+
}
|
|
1665
1686
|
interface PromptResult {
|
|
1666
1687
|
/**
|
|
1667
1688
|
* Whether the run succeeded. Shorthand for `status === "success"`: true only
|
|
@@ -1691,10 +1712,7 @@ interface PromptResult {
|
|
|
1691
1712
|
/** Duration in milliseconds */
|
|
1692
1713
|
durationMs: number;
|
|
1693
1714
|
/** Token usage */
|
|
1694
|
-
usage?:
|
|
1695
|
-
inputTokens: number;
|
|
1696
|
-
outputTokens: number;
|
|
1697
|
-
};
|
|
1715
|
+
usage?: TokenUsage;
|
|
1698
1716
|
/** Provider-reported model cost in USD, when the runtime emitted it. */
|
|
1699
1717
|
costUsd?: number;
|
|
1700
1718
|
}
|
|
@@ -2506,6 +2524,11 @@ type TurnDriveResult = {
|
|
|
2506
2524
|
state: "completed"; /** Final assistant text of the turn. */
|
|
2507
2525
|
text: string; /** The full turn payload (text, toolInvocations, tokenUsage, etc.). */
|
|
2508
2526
|
result: Record<string, unknown>;
|
|
2527
|
+
/**
|
|
2528
|
+
* Token usage the turn reported, when the payload carried it. Typed
|
|
2529
|
+
* access to the counts otherwise buried untyped inside `result`.
|
|
2530
|
+
*/
|
|
2531
|
+
usage?: TokenUsage;
|
|
2509
2532
|
} | {
|
|
2510
2533
|
state: "awaiting_plan_decision";
|
|
2511
2534
|
plan: DurablePlanSnapshot;
|
|
@@ -5407,4 +5430,4 @@ interface CodeExecutionOptions {
|
|
|
5407
5430
|
idempotencyKey?: string;
|
|
5408
5431
|
}
|
|
5409
5432
|
//#endregion
|
|
5410
|
-
export { EventStreamOptions as $,
|
|
5433
|
+
export { EventStreamOptions as $, TerminalStreamHandlers as $i, SandboxFleetDispatchFailureClass as $n, SendSessionMessageRequest as $r, ListSandboxOptions as $t, CreateIntelligenceReportOptions as A, TokenUsage as Ai, ReapExpiredSandboxFleetsResult as An, SandboxResources as Ar, GitDiff as At, DirectoryPermission as B, WriteManyFile as Bi, RolloutStartResult as Bn, SandboxTerminals as Br, GpuType as Bt, CodeExecutionResult as C, mergeAgentProfiles as Ca, TaskSessionProfile as Ci, ProvisionStatus as Cn, SandboxInfo as Cr, FleetPromptDispatchOptions as Ct, CommitTaskSessionOptions as D, TeePublicKey as Di, PublishPublicTemplateOptions as Dn, SandboxPortPreviewLink as Dr, GitBranch as Dt, CodeResultPart as E, TeeAttestationResponse as Ei, PublicTemplateVersionInfo as En, SandboxPortBinding as Er, GitAuth as Et, CreateSandboxOptions as F, UploadProgress as Fi, ResumeOptions as Fn, SandboxTerminalAttachOptions as Fr, GpuLeaseExecOptions as Ft, DriveTurnOptions as G, BatchSidecarGroup as Gi, SSHCredentials as Gn, SandboxUser as Gr, IntelligenceReportBudget as Gt, DispatchedSession as H, BatchBackendStats as Hi, RolloutTurnPart as Hn, SandboxTraceEvent as Hr, HostAgentRuntimeBackend as Ht, CreateSessionOptions as I, UsageInfo as Ii, Rollout as In, SandboxTerminalCreateOptions as Ir, GpuLeaseExecResult as It, DriverType as J, TerminalExitInfo as Ji, SandboxEnvironment as Jn, SearchMatch as Jr, IntelligenceReportWindow as Jt, DriverConfig as K, BatchTaskUsage as Ki, SandboxClientConfig as Kn, ScopedToken as Kr, IntelligenceReportCompareTo as Kt, CreateTaskSessionOptions as L, WaitForOptions as Li, RolloutChildResult as Ln, SandboxTerminalInfo as Lr, GpuLeaseManager as Lt, CreateSandboxFleetOptions as M, TurnDriveResult as Mi, ReconcileSandboxFleetsResult as Mn, SandboxRuntimeProfile as Mr, GpuLease as Mt, CreateSandboxFleetTokenOptions as N, UpdateUserOptions as Ni, RenameOptions as Nn, SandboxRuntimeProfileList as Nr, GpuLeaseBilling as Nt, CompletedTurnResult as O, TeePublicKeyResponse as Oi, PublishPublicTemplateVersionOptions as On, SandboxProfileSummary as Or, GitCommit as Ot, CreateSandboxFleetWithCoordinatorOptions as P, UploadOptions as Pi, RestoreSnapshotOptions as Pn, SandboxStatus as Pr, GpuLeaseCommandResult as Pt, EnsureDevServerOptions as Q, TerminalStreamError as Qi, SandboxFleetCostEstimate as Qn, SendSessionMessageOptions as Qr, ListSandboxFleetOptions as Qt, DeleteOptions as R, WaitForRolloutOptions as Ri, RolloutOptions as Rn, SandboxTerminalManager as Rr, GpuLeaseProviderName as Rt, CodeExecutionOptions as S, defineInlineResource as Sa, TaskSessionInfo as Si, ProvisionResult as Sn, SandboxFleetWorkspaceSnapshotResult as Sr, FleetMachineId as St, CodeResult as T, TeeAttestationReport as Ti, PublicTemplateInfo as Tn, SandboxPermissionsConfig as Tr, GPU_LEASE_PROVIDER_NAMES as Tt, DownloadOptions as U, BatchEvent as Ui, RunCodeOptions as Un, SandboxTraceExport as Ur, InstalledTool as Ut, DispatchPromptOptions as V, WriteManyOptions as Vi, RolloutStatus as Vn, SandboxTraceBundle as Vr, HostAgentDriverConfig as Vt, DownloadProgress as W, BatchEventDataMap as Wi, SSHCommandDescriptor as Wn, SandboxTraceOptions as Wr, IntelligenceReport as Wt, EgressManager as X, TerminalStream as Xi, SandboxFleetArtifact as Xn, SecretInfo as Xr, ListMessagesOptions as Xt, DurablePlan as Y, TerminalReadyInfo as Yi, SandboxEvent as Yn, SearchOptions as Yr, JsonValue as Yt, EgressPolicy as Z, TerminalStreamAuthFormat as Zi, SandboxFleetArtifactSpec as Zn, SecretsManager as Zr, ListOptions as Zt, BatchTask as _, Capability as _a, TaskOptions as _i, ProcessStatus as _n, SandboxFleetTraceOptions as _r, FleetDispatchResultBuffer as _t, AttachSandboxFleetMachineOptions as a, AgentProfileConnection as aa, SessionListOptions as ai, NonHostAgentDriverConfig as an, SandboxFleetMachine as ar, FileReadBatchResult as at, ChunkedUploadOptions as b, defineAgentProfile as ba, TaskSessionCommitResult as bi, PromptResult as bn, SandboxFleetWorkspaceReconcileResult as br, FleetExecDispatchOptions as bt, BackendInfo as c, AgentProfileModelHints as ca, SessionStatus as ci, PreviewLinkInfo as cn, SandboxFleetMachineSpec as cr, FileRenameResult as ct, BackendType as d, AgentProfileResourceRef as da, SnapshotResult as di, ProcessInfo as dn, SandboxFleetOperationsSummary as dr, FileTreeOptions as dt, TerminalStreamOptions as ea, SentSessionMessage as ei, McpServerConfig as en, SandboxFleetDispatchResponse as er, ExactProcessSpawnOptions as et, BatchBackend as f, AgentProfileResources as fa, SshKeysManager as fi, ProcessListOptions as fn, SandboxFleetPolicy as fr, FileTreeResult as ft, BatchRunRequest as g, AgentSubagentProfile as ga, SubscriptionInfo as gi, ProcessSpawnOptions as gn, SandboxFleetTraceExport as gr, FleetDispatchCancelResult as gt, BatchRunOptions as h, AgentProfileValidationResult as ha, StorageConfig as hi, ProcessSignal as hn, SandboxFleetTraceEvent as hr, FileWriteResult as ht, AttachGpuLeaseOptions as i, AgentProfileConfidential as ia, SessionInfo as ii, NetworkManager as in, SandboxFleetIntelligenceEnvelope as ir, FileReadBatchOptions as it, CreateRequestOptions as j, ToolsConfig as ji, ReconcileSandboxFleetsOptions as jn, SandboxRuntimeHealth as jr, GitStatus as jt, CreateGpuLeaseOptions as k, TokenRefreshHandler as ki, ReapExpiredSandboxFleetsOptions as kn, SandboxResourceUsage as kr, GitConfig as kt, BackendManager as l, AgentProfilePermissionValue as la, SnapshotInfo as li, PreviewLinkManager as ln, SandboxFleetManifest as lr, FileSystem as lt, BatchResult as m, AgentProfileValidationIssue as ma, StartupOperation as mi, ProcessManager as mn, SandboxFleetTraceBundle as mr, FileUsageResult as mt, AccessPolicyRule as n, AgentProfile$1 as na, SessionEventStreamOptions as ni, MkdirOptions as nn, SandboxFleetDriverTimings as nr, ExecResult as nt, BackendCapabilities as o, AgentProfileFileMount as oa, SessionMessage as oi, PermissionLevel as on, SandboxFleetMachineMeteredUsage as or, FileReadError as ot, BatchOptions as p, AgentProfileSecurityPolicy as pa, StartupDiagnostics as pi, ProcessLogEntry as pn, SandboxFleetToken as pr, FileUsageOptions as pt, DriverInfo as q, TERMINAL_WS_ECHO_SUBPROTOCOL as qi, SandboxConnection as qn, ScopedTokenScope as qr, IntelligenceReportSubjectType as qt, AddUserOptions as r, AgentProfileCapabilities as ra, SessionForkOptions as ri, NetworkConfig as rn, SandboxFleetInfo as rr, FileInfo as rt, BackendConfig as s, AgentProfileMcpServer as sa, SessionMessageInputPart as si, PermissionsManager as sn, SandboxFleetMachineRecord as sr, FileReadResult as st, AcceleratorKind as t, TerminalStreamToken as ta, SessionBackendCredentials as ti, MintScopedTokenOptions as tn, SandboxFleetDriverCapability as tr, ExecOptions as tt, BackendStatus as u, AgentProfilePrompt as ua, SnapshotOptions as ui, Process as un, SandboxFleetManifestMachine as ur, FileTreeFile as ut, BatchTaskResult as v, agentProfileSchema as va, TaskResult as vi, PromptInputPart as vn, SandboxFleetUsage as vr, FleetDispatchResultBufferOptions as vt, CodeLanguage as w, validateAgentProfileSecurity as wa, TeeAttestationOptions as wi, ProvisionStep as wn, SandboxIntelligenceEnvelope as wr, FleetPromptDispatchResult as wt, ChunkedUploadResult as x, defineGitHubResource as xa, TaskSessionFileChange as xi, ProvisionEvent as xn, SandboxFleetWorkspaceRestoreResult as xr, FleetExecDispatchResult as xt, BranchOptions as y, capabilitySchema as ya, TaskSessionChanges as yi, PromptOptions as yn, SandboxFleetWorkspace as yr, FleetDispatchStreamOptions as yt, DevServerInfo as z, WriteFileOptions as zi, RolloutScorer as zn, SandboxTerminalRequestOptions as zr, GpuLeaseStatus as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.11.1-develop.
|
|
3
|
+
"version": "0.11.1-develop.20260724111708.8d0e427",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@tangle-network/agent-core": "0.4.19",
|
|
91
|
-
"@tangle-network/agent-interface": "0.
|
|
91
|
+
"@tangle-network/agent-interface": "0.32.0"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"@mastra/core": "^1.36.0",
|