@tangle-network/sandbox 0.11.1-develop.20260723224636.7272ac4 → 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-BCNrDjvA.js → client-DbsGkV__.js} +4 -3
- package/dist/{client-iZbD-9Ks.d.ts → client-LcQ1JIOq.d.ts} +2 -2
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-Bhx4EQca.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-CWeFm9Hj.js → sandbox-D77F7Yja.js} +23 -14
- package/dist/{sandbox-hbYwu_Ot.d.ts → sandbox-aFEpriqE.d.ts} +23 -16
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-C8CaT3tE.js → tangle-DpxmcNGp.js} +2 -1
- package/dist/{types-C67osezQ.d.ts → types-BHMdNGUn.d.ts} +28 -5
- package/package.json +1 -1
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
|
|
@@ -2207,26 +2207,33 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2207
2207
|
* already yielded (based on event ID tracking) are deduplicated.
|
|
2208
2208
|
*/
|
|
2209
2209
|
/**
|
|
2210
|
-
* Record that the runtime holds `profile` under `sha256
|
|
2211
|
-
*
|
|
2212
|
-
*
|
|
2213
|
-
*
|
|
2214
|
-
*
|
|
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.
|
|
2215
2217
|
*/
|
|
2216
|
-
|
|
2218
|
+
attachProfileReference(profile, sha256) {
|
|
2217
2219
|
this.deferredProfileReference = {
|
|
2218
2220
|
snapshot: serializeProfileSnapshot(profile),
|
|
2219
2221
|
sha256
|
|
2220
2222
|
};
|
|
2221
2223
|
}
|
|
2222
2224
|
/**
|
|
2223
|
-
*
|
|
2224
|
-
*
|
|
2225
|
-
* by
|
|
2226
|
-
*
|
|
2227
|
-
*
|
|
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).
|
|
2228
2235
|
*/
|
|
2229
|
-
async
|
|
2236
|
+
async primeProfile(profile) {
|
|
2230
2237
|
const response = await this.runtimeFetch("/agents/profiles", {
|
|
2231
2238
|
method: "POST",
|
|
2232
2239
|
headers: { "content-type": "application/json" },
|
|
@@ -2241,7 +2248,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2241
2248
|
}
|
|
2242
2249
|
const data = await response.json();
|
|
2243
2250
|
if (typeof data.sha256 !== "string" || data.sha256.length === 0) throw new Error("Profile priming returned no sha256; runtime response malformed");
|
|
2244
|
-
this.
|
|
2251
|
+
this.attachProfileReference(profile, data.sha256);
|
|
2245
2252
|
return data.sha256;
|
|
2246
2253
|
}
|
|
2247
2254
|
/**
|
|
@@ -5750,10 +5757,12 @@ function settleTurnDrive(result) {
|
|
|
5750
5757
|
state: "failed",
|
|
5751
5758
|
error: typeof result.error === "string" && result.error.length > 0 ? result.error : `turn ${status}`
|
|
5752
5759
|
};
|
|
5760
|
+
const usage = readTokenUsage(result);
|
|
5753
5761
|
return {
|
|
5754
5762
|
state: "completed",
|
|
5755
5763
|
text: text ?? "",
|
|
5756
|
-
result
|
|
5764
|
+
result,
|
|
5765
|
+
...usage ? { usage } : {}
|
|
5757
5766
|
};
|
|
5758
5767
|
}
|
|
5759
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
|
|
@@ -880,21 +880,28 @@ declare class SandboxInstance {
|
|
|
880
880
|
* already yielded (based on event ID tracking) are deduplicated.
|
|
881
881
|
*/
|
|
882
882
|
/**
|
|
883
|
-
* Record that the runtime holds `profile` under `sha256
|
|
884
|
-
*
|
|
885
|
-
*
|
|
886
|
-
*
|
|
887
|
-
*
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
*
|
|
894
|
-
*
|
|
895
|
-
*
|
|
896
|
-
|
|
897
|
-
|
|
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>;
|
|
898
905
|
/**
|
|
899
906
|
* Build the run request's `backend` body. When the outgoing profile's CONTENT
|
|
900
907
|
* matches the one the runtime already holds (and we are not resending after a
|
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",
|