@tangle-network/sandbox 0.12.0 → 0.12.1
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-C_O7PFjl.js} +30 -3
- package/dist/{client-iZbD-9Ks.d.ts → client-CvZ4UdOC.d.ts} +9 -2
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-Bhx4EQca.d.ts → index-BZgbJerm.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-Y-2JtJdp.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-BBocO2Ht.d.ts} +38 -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-BBocO2Ht.js";
|
|
2
|
+
import { n as SandboxInstance } from "../sandbox-Y-2JtJdp.js";
|
|
3
|
+
import { i as SandboxClient } from "../client-CvZ4UdOC.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
|
}
|
|
@@ -1916,6 +1917,32 @@ var SandboxClient = class {
|
|
|
1916
1917
|
return createSandboxInstanceFromResponse(this, this.parseInfo(data));
|
|
1917
1918
|
}
|
|
1918
1919
|
/**
|
|
1920
|
+
* Return the identity the public Sandbox API observed for this credential.
|
|
1921
|
+
*
|
|
1922
|
+
* This is useful for deployment checks that must confirm which account and
|
|
1923
|
+
* API key a service credential resolves to without exposing the key itself.
|
|
1924
|
+
*/
|
|
1925
|
+
async getIdentity() {
|
|
1926
|
+
const response = await this.fetch("/v1/me");
|
|
1927
|
+
if (!response.ok) {
|
|
1928
|
+
const body = await response.text();
|
|
1929
|
+
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
1930
|
+
}
|
|
1931
|
+
const payload = await response.json();
|
|
1932
|
+
const data = payload.data;
|
|
1933
|
+
if (payload.success !== true || !data || typeof data !== "object" || Array.isArray(data)) throw new ValidationError("Sandbox API returned an invalid /v1/me response");
|
|
1934
|
+
const identity = data;
|
|
1935
|
+
const customerId = identity.customer_id;
|
|
1936
|
+
const billingOwnerId = identity.billing_owner_id;
|
|
1937
|
+
const apiKeyId = identity.api_key_id;
|
|
1938
|
+
if (typeof customerId !== "string" || !customerId || typeof billingOwnerId !== "string" || !billingOwnerId || apiKeyId !== null && typeof apiKeyId !== "string") throw new ValidationError("Sandbox API returned an invalid identity response");
|
|
1939
|
+
return {
|
|
1940
|
+
customerId,
|
|
1941
|
+
billingOwnerId,
|
|
1942
|
+
apiKeyId
|
|
1943
|
+
};
|
|
1944
|
+
}
|
|
1945
|
+
/**
|
|
1919
1946
|
* Get usage information for the account.
|
|
1920
1947
|
*
|
|
1921
1948
|
* @returns Usage statistics for the current billing period
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as ListSandboxOptions, A as CreateIntelligenceReportOptions, An as ReapExpiredSandboxFleetsResult, Cr as
|
|
2
|
-
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-
|
|
1
|
+
import { $t as ListSandboxOptions, A as CreateIntelligenceReportOptions, Ai as TokenRefreshHandler, An as ReapExpiredSandboxFleetsResult, Cr as SandboxIdentity, Ct as FleetPromptDispatchOptions, Dn as PublishPublicTemplateOptions, En as PublicTemplateVersionInfo, F as CreateSandboxOptions, Gt as IntelligenceReportBudget, Jn as SandboxEnvironment, Jt as IntelligenceReportWindow, Kn as SandboxClientConfig, Kt as IntelligenceReportCompareTo, Li as UsageInfo, M as CreateSandboxFleetOptions, Mn as ReconcileSandboxFleetsResult, N as CreateSandboxFleetTokenOptions, On as PublishPublicTemplateVersionOptions, P as CreateSandboxFleetWithCoordinatorOptions, Qn as SandboxFleetCostEstimate, Qr as SecretsManager, Qt as ListSandboxFleetOptions, Sr as SandboxFleetWorkspaceSnapshotResult, St as FleetMachineId, Tn as PublicTemplateInfo, Wi as BatchEvent, Wt as IntelligenceReport, Xn as SandboxFleetArtifact, Zn as SandboxFleetArtifactSpec, _ as BatchTask, _i as SubscriptionInfo, _r as SandboxFleetTraceOptions, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, bn as PromptResult, br as SandboxFleetWorkspaceReconcileResult, bt as FleetExecDispatchOptions, dr as SandboxFleetOperationsSummary, er as SandboxFleetDispatchResponse, g as BatchRunRequest, gt as FleetDispatchCancelResult, h as BatchRunOptions, j as CreateRequestOptions, jn as ReconcileSandboxFleetsOptions, kn as ReapExpiredSandboxFleetsOptions, kr as SandboxProfileSummary, lr as SandboxFleetManifest, m as BatchResult, mr as SandboxFleetTraceBundle, nt as ExecResult, p as BatchOptions, pi as SshKeysManager, pr as SandboxFleetToken, rr as SandboxFleetInfo, sr as SandboxFleetMachineRecord, tr as SandboxFleetDriverCapability, tt as ExecOptions, vn as PromptInputPart, vr as SandboxFleetUsage, vt as FleetDispatchResultBufferOptions, wr as SandboxInfo, wt as FleetPromptDispatchResult, xr as SandboxFleetWorkspaceRestoreResult, xt as FleetExecDispatchResult, yn as PromptOptions, yt as FleetDispatchStreamOptions } from "./types-BBocO2Ht.js";
|
|
2
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-Y-2JtJdp.js";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/sse-parser.d.ts
|
|
5
5
|
/**
|
|
@@ -370,6 +370,13 @@ declare class SandboxClient implements HttpClient {
|
|
|
370
370
|
* ```
|
|
371
371
|
*/
|
|
372
372
|
get(id: string): Promise<SandboxInstance | null>;
|
|
373
|
+
/**
|
|
374
|
+
* Return the identity the public Sandbox API observed for this credential.
|
|
375
|
+
*
|
|
376
|
+
* This is useful for deployment checks that must confirm which account and
|
|
377
|
+
* API key a service credential resolves to without exposing the key itself.
|
|
378
|
+
*/
|
|
379
|
+
getIdentity(): Promise<SandboxIdentity>;
|
|
373
380
|
/**
|
|
374
381
|
* Get usage information for the account.
|
|
375
382
|
*
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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 { F as CreateSandboxOptions, Fr as SandboxStatus, Kn as SandboxClientConfig, cn as PreviewLinkInfo, ln as PreviewLinkManager, nt as ExecResult, rn as NetworkConfig, tt as ExecOptions, wr as SandboxInfo } from "./types-BBocO2Ht.js";
|
|
2
|
+
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-Y-2JtJdp.js";
|
|
3
|
+
import { i as SandboxClient } from "./client-CvZ4UdOC.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-C_O7PFjl.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-BBocO2Ht.js";
|
|
2
|
+
import { n as SandboxInstance, t as HttpClient } from "./sandbox-Y-2JtJdp.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 TerminalStreamError, $n as SandboxFleetDispatchFailureClass, $r as SendSessionMessageOptions, $t as ListSandboxOptions, A as CreateIntelligenceReportOptions, Ai as TokenRefreshHandler, An as ReapExpiredSandboxFleetsResult, Ar as SandboxResourceUsage, At as GitDiff, B as DirectoryPermission, Bi as WriteFileOptions, Bn as RolloutStartResult, Br as SandboxTerminalRequestOptions, Bt as GpuType, Ca as defineInlineResource, Ci as TaskSessionInfo, Cn as ProvisionStatus, Cr as SandboxIdentity, Ct as FleetPromptDispatchOptions, D as CommitTaskSessionOptions, Di as TeeAttestationResponse, Dn as PublishPublicTemplateOptions, Dr as SandboxPortBinding, Dt as GitBranch, Ei as TeeAttestationReport, En as PublicTemplateVersionInfo, Er as SandboxPermissionsConfig, Et as GitAuth, F as CreateSandboxOptions, Fi as UploadOptions, Fr as SandboxStatus, Ft as GpuLeaseExecOptions, G as DriveTurnOptions, Gi as BatchEventDataMap, Gn as SSHCredentials, Gr as SandboxTraceOptions, Gt as IntelligenceReportBudget, H as DispatchedSession, Hi as WriteManyOptions, Hn as RolloutTurnPart, Hr as SandboxTraceBundle, Ht as HostAgentRuntimeBackend, I as CreateSessionOptions, Ii as UploadProgress, In as Rollout, Ir as SandboxTerminalAttachOptions, It as GpuLeaseExecResult, J as DriverType, Ji as TERMINAL_WS_ECHO_SUBPROTOCOL, Jn as SandboxEnvironment, Jr as ScopedTokenScope, Jt as IntelligenceReportWindow, K as DriverConfig, Ki as BatchSidecarGroup, Kn as SandboxClientConfig, Kr as SandboxUser, Kt as IntelligenceReportCompareTo, L as CreateTaskSessionOptions, Li as UsageInfo, Ln as RolloutChildResult, Lr as SandboxTerminalCreateOptions, Lt as GpuLeaseManager, M as CreateSandboxFleetOptions, Mi as ToolsConfig, Mn as ReconcileSandboxFleetsResult, Mr as SandboxRuntimeHealth, Mt as GpuLease, Ni as TurnDriveResult, Nn as RenameOptions, Nr as SandboxRuntimeProfile, Nt as GpuLeaseBilling, O as CompletedTurnResult, Oi as TeePublicKey, On as PublishPublicTemplateVersionOptions, Or as SandboxPortPreviewLink, Ot as GitCommit, P as CreateSandboxFleetWithCoordinatorOptions, Pi as UpdateUserOptions, Pr as SandboxRuntimeProfileList, Pt as GpuLeaseCommandResult, Q as EnsureDevServerOptions, Qi as TerminalStreamAuthFormat, Qn as SandboxFleetCostEstimate, Qr as SecretsManager, Qt as ListSandboxFleetOptions, R as DeleteOptions, Ri as WaitForOptions, Rn as RolloutOptions, Rr as SandboxTerminalInfo, Rt as GpuLeaseProviderName, Sa as defineGitHubResource, Si as TaskSessionFileChange, Sn as ProvisionResult, Sr as SandboxFleetWorkspaceSnapshotResult, St as FleetMachineId, T as CodeResult, Ta as validateAgentProfileSecurity, Ti as TeeAttestationOptions, Tn as PublicTemplateInfo, Tr as SandboxIntelligenceEnvelope, Tt as GPU_LEASE_PROVIDER_NAMES, U as DownloadOptions, Ui as BatchBackendStats, Un as RunCodeOptions, Ur as SandboxTraceEvent, Ut as InstalledTool, V as DispatchPromptOptions, Vi as WriteManyFile, Vn as RolloutStatus, Vr as SandboxTerminals, Vt as HostAgentDriverConfig, W as DownloadProgress, Wi as BatchEvent, Wn as SSHCommandDescriptor, Wr as SandboxTraceExport, Wt as IntelligenceReport, X as EgressManager, Xi as TerminalReadyInfo, Xn as SandboxFleetArtifact, Xr as SearchOptions, Xt as ListMessagesOptions, Yi as TerminalExitInfo, Yn as SandboxEvent, Yr as SearchMatch, Z as EgressPolicy, Zi as TerminalStream, Zn as SandboxFleetArtifactSpec, Zr as SecretInfo, Zt as ListOptions, _ as BatchTask, _a as AgentSubagentProfile, _i as SubscriptionInfo, _n as ProcessStatus, _r as SandboxFleetTraceOptions, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, aa as AgentProfileConfidential, ai as SessionInfo, an as NonHostAgentDriverConfig, ar as SandboxFleetMachine, at as FileReadBatchResult, b as ChunkedUploadOptions, ba as capabilitySchema, bi as TaskSessionChanges, bn as PromptResult, br as SandboxFleetWorkspaceReconcileResult, bt as FleetExecDispatchOptions, c as BackendInfo, ca as AgentProfileMcpServer, ci as SessionMessageInputPart, cn as PreviewLinkInfo, cr as SandboxFleetMachineSpec, ct as FileRenameResult, d as BackendType, da as AgentProfilePrompt, di as SnapshotOptions, dn as ProcessInfo, dr as SandboxFleetOperationsSummary, dt as FileTreeOptions, ea as TerminalStreamHandlers, ei as SendSessionMessageRequest, en as McpServerConfig, er as SandboxFleetDispatchResponse, et as ExactProcessSpawnOptions, f as BatchBackend, fa as AgentProfileResourceRef, fi as SnapshotResult, fn as ProcessListOptions, fr as SandboxFleetPolicy, ft as FileTreeResult, g as BatchRunRequest, ga as AgentProfileValidationResult, gi as StorageConfig, gn as ProcessSpawnOptions, gr as SandboxFleetTraceExport, gt as FleetDispatchCancelResult, h as BatchRunOptions, ha as AgentProfileValidationIssue, hi as StartupOperation, hn as ProcessSignal, hr as SandboxFleetTraceEvent, ht as FileWriteResult, i as AttachGpuLeaseOptions, ia as AgentProfileCapabilities, ii as SessionForkOptions, in as NetworkManager, ir as SandboxFleetIntelligenceEnvelope, it as FileReadBatchOptions, j as CreateRequestOptions, ji as TokenUsage, jn as ReconcileSandboxFleetsOptions, jr as SandboxResources, jt as GitStatus, k as CreateGpuLeaseOptions, ki as TeePublicKeyResponse, kn as ReapExpiredSandboxFleetsOptions, kr as SandboxProfileSummary, kt as GitConfig, l as BackendManager, la as AgentProfileModelHints, li as SessionStatus, ln as PreviewLinkManager, lr as SandboxFleetManifest, lt as FileSystem, m as BatchResult, ma as AgentProfileSecurityPolicy, mi as StartupDiagnostics, mn as ProcessManager, mr as SandboxFleetTraceBundle, mt as FileUsageResult, n as AccessPolicyRule, na as TerminalStreamToken, ni as SessionBackendCredentials, nn as MkdirOptions, nr as SandboxFleetDriverTimings, nt as ExecResult, o as BackendCapabilities, oa as AgentProfileConnection, oi as SessionListOptions, on as PermissionLevel, or as SandboxFleetMachineMeteredUsage, ot as FileReadError, p as BatchOptions, pa as AgentProfileResources, pn as ProcessLogEntry, pr as SandboxFleetToken, pt as FileUsageOptions, q as DriverInfo, qi as BatchTaskUsage, qn as SandboxConnection, qr as ScopedToken, qt as IntelligenceReportSubjectType, r as AddUserOptions, ra as AgentProfile, ri as SessionEventStreamOptions, rn as NetworkConfig, rr as SandboxFleetInfo, rt as FileInfo, s as BackendConfig, sa as AgentProfileFileMount, si as SessionMessage, sn as PermissionsManager, sr as SandboxFleetMachineRecord, st as FileReadResult, t as AcceleratorKind, ta as TerminalStreamOptions, ti as SentSessionMessage, tn as MintScopedTokenOptions, tr as SandboxFleetDriverCapability, tt as ExecOptions, u as BackendStatus, ua as AgentProfilePermissionValue, ui as SnapshotInfo, un as Process, ur as SandboxFleetManifestMachine, ut as FileTreeFile, v as BatchTaskResult, va as Capability, vi as TaskOptions, vr as SandboxFleetUsage, vt as FleetDispatchResultBufferOptions, wa as mergeAgentProfiles, wi as TaskSessionProfile, wn as ProvisionStep, wr as SandboxInfo, x as ChunkedUploadResult, xa as defineAgentProfile, xi as TaskSessionCommitResult, xn as ProvisionEvent, xr as SandboxFleetWorkspaceRestoreResult, y as BranchOptions, ya as agentProfileSchema, yi as TaskResult, yn as PromptOptions, yr as SandboxFleetWorkspace, yt as FleetDispatchStreamOptions, z as DevServerInfo, zi as WaitForRolloutOptions, zn as RolloutScorer, zr as SandboxTerminalManager, zt as GpuLeaseStatus } from "./types-BBocO2Ht.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-Y-2JtJdp.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-CvZ4UdOC.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-BZgbJerm.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 SandboxIdentity, 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-C_O7PFjl.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
|
|
1
|
+
import { $r as SendSessionMessageOptions, Bi as WriteFileOptions, Br as SandboxTerminalRequestOptions, Ci as TaskSessionInfo, D as CommitTaskSessionOptions, Dr as SandboxPortBinding, I as CreateSessionOptions, Ii as UploadProgress, L as CreateTaskSessionOptions, Lr as SandboxTerminalCreateOptions, Mr as SandboxRuntimeHealth, Nn as RenameOptions, Pr as SandboxRuntimeProfileList, Rr as SandboxTerminalInfo, Xt as ListMessagesOptions, ai as SessionInfo, at as FileReadBatchResult, b as ChunkedUploadOptions, bi as TaskSessionChanges, ct as FileRenameResult, dt as FileTreeOptions, ei as SendSessionMessageRequest, ft as FileTreeResult, ht as FileWriteResult, it as FileReadBatchOptions, mt as FileUsageResult, pt as FileUsageOptions, si as SessionMessage, ti as SentSessionMessage, x as ChunkedUploadResult, xi as TaskSessionCommitResult, zr as SandboxTerminalManager } from "./types-BBocO2Ht.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
|
|
1
|
+
import { $ as EventStreamOptions, $r as SendSessionMessageOptions, Ar as SandboxResourceUsage, At as GitDiff, Bi as WriteFileOptions, Bn as RolloutStartResult, C as CodeExecutionResult, Ci as TaskSessionInfo, D as CommitTaskSessionOptions, Di as TeeAttestationResponse, Dr as SandboxPortBinding, Dt as GitBranch, Fn as ResumeOptions, Fr as SandboxStatus, G as DriveTurnOptions, Gn as SSHCredentials, Gr as SandboxTraceOptions, Gt as IntelligenceReportBudget, H as DispatchedSession, Hi as WriteManyOptions, Hr as SandboxTraceBundle, I as CreateSessionOptions, In as Rollout, Ir as SandboxTerminalAttachOptions, Jt as IntelligenceReportWindow, Kt as IntelligenceReportCompareTo, L as CreateTaskSessionOptions, Lt as GpuLeaseManager, Mr as SandboxRuntimeHealth, Mt as GpuLease, Ni as TurnDriveResult, O as CompletedTurnResult, Ot as GitCommit, Pn as RestoreSnapshotOptions, Pr as SandboxRuntimeProfileList, Ri as WaitForOptions, Rn as RolloutOptions, S as CodeExecutionOptions, Sn as ProvisionResult, Ti as TeeAttestationOptions, Ut as InstalledTool, V as DispatchPromptOptions, Vi as WriteManyFile, Vr as SandboxTerminals, Wn as SSHCommandDescriptor, Wt as IntelligenceReport, X as EgressManager, Xr as SearchOptions, Xt as ListMessagesOptions, Y as DurablePlan, Yn as SandboxEvent, Yr as SearchMatch, Yt as JsonValue, Zi as TerminalStream, ai as SessionInfo, bi as TaskSessionChanges, bn as PromptResult, di as SnapshotOptions, ea as TerminalStreamHandlers, ei as SendSessionMessageRequest, fi as SnapshotResult, ht as FileWriteResult, ii as SessionForkOptions, in as NetworkManager, jt as GitStatus, ki as TeePublicKeyResponse, l as BackendManager, ln as PreviewLinkManager, lt as FileSystem, mi as StartupDiagnostics, mn as ProcessManager, mr as SandboxFleetTraceBundle, nt as ExecResult, oi as SessionListOptions, q as DriverInfo, qn as SandboxConnection, qr as ScopedToken, ri as SessionEventStreamOptions, s as BackendConfig, si as SessionMessage, sn as PermissionsManager, ti as SentSessionMessage, tn as MintScopedTokenOptions, tt as ExecOptions, ui as SnapshotInfo, vi as TaskOptions, vn as PromptInputPart, w as CodeLanguage, wr as SandboxInfo, xi as TaskSessionCommitResult, xn as ProvisionEvent, y as BranchOptions, yi as TaskResult, yn as PromptOptions, zi as WaitForRolloutOptions } from "./types-BBocO2Ht.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-BZgbJerm.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,19 @@ 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 exact
|
|
1054
|
+
* verified API key ID is allow-listed; otherwise strict deployments reject
|
|
1055
|
+
* the create.
|
|
1056
|
+
* It never grants the caller permission to charge arbitrary users.
|
|
1057
|
+
*
|
|
1058
|
+
* This option applies to the HTTP Sandbox API client. Direct Tangle job
|
|
1059
|
+
* creation does not support delegated billing.
|
|
1060
|
+
*/
|
|
1061
|
+
billingOwnerId?: string;
|
|
1049
1062
|
/**
|
|
1050
1063
|
* Auto-split inline file mounts out of an inline `backend.profile` object
|
|
1051
1064
|
* at create time, send the lean profile (mount refs stripped) in the
|
|
@@ -1662,6 +1675,15 @@ interface AgentQuestionRequest {
|
|
|
1662
1675
|
/** The questions payload the agent emitted (prompt + options per entry). */
|
|
1663
1676
|
questions: unknown;
|
|
1664
1677
|
}
|
|
1678
|
+
/**
|
|
1679
|
+
* Token usage counts for a single agent run: prompt tokens in, completion
|
|
1680
|
+
* tokens out. Both are whole non-negative counts; a runtime that reports
|
|
1681
|
+
* only one side leaves the other at 0.
|
|
1682
|
+
*/
|
|
1683
|
+
interface TokenUsage {
|
|
1684
|
+
inputTokens: number;
|
|
1685
|
+
outputTokens: number;
|
|
1686
|
+
}
|
|
1665
1687
|
interface PromptResult {
|
|
1666
1688
|
/**
|
|
1667
1689
|
* Whether the run succeeded. Shorthand for `status === "success"`: true only
|
|
@@ -1691,10 +1713,7 @@ interface PromptResult {
|
|
|
1691
1713
|
/** Duration in milliseconds */
|
|
1692
1714
|
durationMs: number;
|
|
1693
1715
|
/** Token usage */
|
|
1694
|
-
usage?:
|
|
1695
|
-
inputTokens: number;
|
|
1696
|
-
outputTokens: number;
|
|
1697
|
-
};
|
|
1716
|
+
usage?: TokenUsage;
|
|
1698
1717
|
/** Provider-reported model cost in USD, when the runtime emitted it. */
|
|
1699
1718
|
costUsd?: number;
|
|
1700
1719
|
}
|
|
@@ -2028,6 +2047,15 @@ interface UsageInfo {
|
|
|
2028
2047
|
/** Period end date (next day UTC) */
|
|
2029
2048
|
periodEnd: Date;
|
|
2030
2049
|
}
|
|
2050
|
+
/** Identity observed by the public Sandbox API for the current credential. */
|
|
2051
|
+
interface SandboxIdentity {
|
|
2052
|
+
/** Sandbox customer id for the authenticated caller. */
|
|
2053
|
+
customerId: string;
|
|
2054
|
+
/** Platform account whose wallet Sandbox charges for this caller. */
|
|
2055
|
+
billingOwnerId: string;
|
|
2056
|
+
/** Verified Platform API key id, or null for session-based callers. */
|
|
2057
|
+
apiKeyId: string | null;
|
|
2058
|
+
}
|
|
2031
2059
|
/**
|
|
2032
2060
|
* Subscription and billing information for the account.
|
|
2033
2061
|
*/
|
|
@@ -2506,6 +2534,11 @@ type TurnDriveResult = {
|
|
|
2506
2534
|
state: "completed"; /** Final assistant text of the turn. */
|
|
2507
2535
|
text: string; /** The full turn payload (text, toolInvocations, tokenUsage, etc.). */
|
|
2508
2536
|
result: Record<string, unknown>;
|
|
2537
|
+
/**
|
|
2538
|
+
* Token usage the turn reported, when the payload carried it. Typed
|
|
2539
|
+
* access to the counts otherwise buried untyped inside `result`.
|
|
2540
|
+
*/
|
|
2541
|
+
usage?: TokenUsage;
|
|
2509
2542
|
} | {
|
|
2510
2543
|
state: "awaiting_plan_decision";
|
|
2511
2544
|
plan: DurablePlanSnapshot;
|
|
@@ -5407,4 +5440,4 @@ interface CodeExecutionOptions {
|
|
|
5407
5440
|
idempotencyKey?: string;
|
|
5408
5441
|
}
|
|
5409
5442
|
//#endregion
|
|
5410
|
-
export { EventStreamOptions as $,
|
|
5443
|
+
export { EventStreamOptions as $, TerminalStreamError as $i, SandboxFleetDispatchFailureClass as $n, SendSessionMessageOptions as $r, ListSandboxOptions as $t, CreateIntelligenceReportOptions as A, TokenRefreshHandler as Ai, ReapExpiredSandboxFleetsResult as An, SandboxResourceUsage as Ar, GitDiff as At, DirectoryPermission as B, WriteFileOptions as Bi, RolloutStartResult as Bn, SandboxTerminalRequestOptions as Br, GpuType as Bt, CodeExecutionResult as C, defineInlineResource as Ca, TaskSessionInfo as Ci, ProvisionStatus as Cn, SandboxIdentity as Cr, FleetPromptDispatchOptions as Ct, CommitTaskSessionOptions as D, TeeAttestationResponse as Di, PublishPublicTemplateOptions as Dn, SandboxPortBinding as Dr, GitBranch as Dt, CodeResultPart as E, TeeAttestationReport as Ei, PublicTemplateVersionInfo as En, SandboxPermissionsConfig as Er, GitAuth as Et, CreateSandboxOptions as F, UploadOptions as Fi, ResumeOptions as Fn, SandboxStatus as Fr, GpuLeaseExecOptions as Ft, DriveTurnOptions as G, BatchEventDataMap as Gi, SSHCredentials as Gn, SandboxTraceOptions as Gr, IntelligenceReportBudget as Gt, DispatchedSession as H, WriteManyOptions as Hi, RolloutTurnPart as Hn, SandboxTraceBundle as Hr, HostAgentRuntimeBackend as Ht, CreateSessionOptions as I, UploadProgress as Ii, Rollout as In, SandboxTerminalAttachOptions as Ir, GpuLeaseExecResult as It, DriverType as J, TERMINAL_WS_ECHO_SUBPROTOCOL as Ji, SandboxEnvironment as Jn, ScopedTokenScope as Jr, IntelligenceReportWindow as Jt, DriverConfig as K, BatchSidecarGroup as Ki, SandboxClientConfig as Kn, SandboxUser as Kr, IntelligenceReportCompareTo as Kt, CreateTaskSessionOptions as L, UsageInfo as Li, RolloutChildResult as Ln, SandboxTerminalCreateOptions as Lr, GpuLeaseManager as Lt, CreateSandboxFleetOptions as M, ToolsConfig as Mi, ReconcileSandboxFleetsResult as Mn, SandboxRuntimeHealth as Mr, GpuLease as Mt, CreateSandboxFleetTokenOptions as N, TurnDriveResult as Ni, RenameOptions as Nn, SandboxRuntimeProfile as Nr, GpuLeaseBilling as Nt, CompletedTurnResult as O, TeePublicKey as Oi, PublishPublicTemplateVersionOptions as On, SandboxPortPreviewLink as Or, GitCommit as Ot, CreateSandboxFleetWithCoordinatorOptions as P, UpdateUserOptions as Pi, RestoreSnapshotOptions as Pn, SandboxRuntimeProfileList as Pr, GpuLeaseCommandResult as Pt, EnsureDevServerOptions as Q, TerminalStreamAuthFormat as Qi, SandboxFleetCostEstimate as Qn, SecretsManager as Qr, ListSandboxFleetOptions as Qt, DeleteOptions as R, WaitForOptions as Ri, RolloutOptions as Rn, SandboxTerminalInfo as Rr, GpuLeaseProviderName as Rt, CodeExecutionOptions as S, defineGitHubResource as Sa, TaskSessionFileChange as Si, ProvisionResult as Sn, SandboxFleetWorkspaceSnapshotResult as Sr, FleetMachineId as St, CodeResult as T, validateAgentProfileSecurity as Ta, TeeAttestationOptions as Ti, PublicTemplateInfo as Tn, SandboxIntelligenceEnvelope as Tr, GPU_LEASE_PROVIDER_NAMES as Tt, DownloadOptions as U, BatchBackendStats as Ui, RunCodeOptions as Un, SandboxTraceEvent as Ur, InstalledTool as Ut, DispatchPromptOptions as V, WriteManyFile as Vi, RolloutStatus as Vn, SandboxTerminals as Vr, HostAgentDriverConfig as Vt, DownloadProgress as W, BatchEvent as Wi, SSHCommandDescriptor as Wn, SandboxTraceExport as Wr, IntelligenceReport as Wt, EgressManager as X, TerminalReadyInfo as Xi, SandboxFleetArtifact as Xn, SearchOptions as Xr, ListMessagesOptions as Xt, DurablePlan as Y, TerminalExitInfo as Yi, SandboxEvent as Yn, SearchMatch as Yr, JsonValue as Yt, EgressPolicy as Z, TerminalStream as Zi, SandboxFleetArtifactSpec as Zn, SecretInfo as Zr, ListOptions as Zt, BatchTask as _, AgentSubagentProfile as _a, SubscriptionInfo as _i, ProcessStatus as _n, SandboxFleetTraceOptions as _r, FleetDispatchResultBuffer as _t, AttachSandboxFleetMachineOptions as a, AgentProfileConfidential as aa, SessionInfo as ai, NonHostAgentDriverConfig as an, SandboxFleetMachine as ar, FileReadBatchResult as at, ChunkedUploadOptions as b, capabilitySchema as ba, TaskSessionChanges as bi, PromptResult as bn, SandboxFleetWorkspaceReconcileResult as br, FleetExecDispatchOptions as bt, BackendInfo as c, AgentProfileMcpServer as ca, SessionMessageInputPart as ci, PreviewLinkInfo as cn, SandboxFleetMachineSpec as cr, FileRenameResult as ct, BackendType as d, AgentProfilePrompt as da, SnapshotOptions as di, ProcessInfo as dn, SandboxFleetOperationsSummary as dr, FileTreeOptions as dt, TerminalStreamHandlers as ea, SendSessionMessageRequest as ei, McpServerConfig as en, SandboxFleetDispatchResponse as er, ExactProcessSpawnOptions as et, BatchBackend as f, AgentProfileResourceRef as fa, SnapshotResult as fi, ProcessListOptions as fn, SandboxFleetPolicy as fr, FileTreeResult as ft, BatchRunRequest as g, AgentProfileValidationResult as ga, StorageConfig as gi, ProcessSpawnOptions as gn, SandboxFleetTraceExport as gr, FleetDispatchCancelResult as gt, BatchRunOptions as h, AgentProfileValidationIssue as ha, StartupOperation as hi, ProcessSignal as hn, SandboxFleetTraceEvent as hr, FileWriteResult as ht, AttachGpuLeaseOptions as i, AgentProfileCapabilities as ia, SessionForkOptions as ii, NetworkManager as in, SandboxFleetIntelligenceEnvelope as ir, FileReadBatchOptions as it, CreateRequestOptions as j, TokenUsage as ji, ReconcileSandboxFleetsOptions as jn, SandboxResources as jr, GitStatus as jt, CreateGpuLeaseOptions as k, TeePublicKeyResponse as ki, ReapExpiredSandboxFleetsOptions as kn, SandboxProfileSummary as kr, GitConfig as kt, BackendManager as l, AgentProfileModelHints as la, SessionStatus as li, PreviewLinkManager as ln, SandboxFleetManifest as lr, FileSystem as lt, BatchResult as m, AgentProfileSecurityPolicy as ma, StartupDiagnostics as mi, ProcessManager as mn, SandboxFleetTraceBundle as mr, FileUsageResult as mt, AccessPolicyRule as n, TerminalStreamToken as na, SessionBackendCredentials as ni, MkdirOptions as nn, SandboxFleetDriverTimings as nr, ExecResult as nt, BackendCapabilities as o, AgentProfileConnection as oa, SessionListOptions as oi, PermissionLevel as on, SandboxFleetMachineMeteredUsage as or, FileReadError as ot, BatchOptions as p, AgentProfileResources as pa, SshKeysManager as pi, ProcessLogEntry as pn, SandboxFleetToken as pr, FileUsageOptions as pt, DriverInfo as q, BatchTaskUsage as qi, SandboxConnection as qn, ScopedToken as qr, IntelligenceReportSubjectType as qt, AddUserOptions as r, AgentProfile$1 as ra, SessionEventStreamOptions as ri, NetworkConfig as rn, SandboxFleetInfo as rr, FileInfo as rt, BackendConfig as s, AgentProfileFileMount as sa, SessionMessage as si, PermissionsManager as sn, SandboxFleetMachineRecord as sr, FileReadResult as st, AcceleratorKind as t, TerminalStreamOptions as ta, SentSessionMessage as ti, MintScopedTokenOptions as tn, SandboxFleetDriverCapability as tr, ExecOptions as tt, BackendStatus as u, AgentProfilePermissionValue as ua, SnapshotInfo as ui, Process as un, SandboxFleetManifestMachine as ur, FileTreeFile as ut, BatchTaskResult as v, Capability as va, TaskOptions as vi, PromptInputPart as vn, SandboxFleetUsage as vr, FleetDispatchResultBufferOptions as vt, CodeLanguage as w, mergeAgentProfiles as wa, TaskSessionProfile as wi, ProvisionStep as wn, SandboxInfo as wr, FleetPromptDispatchResult as wt, ChunkedUploadResult as x, defineAgentProfile as xa, TaskSessionCommitResult as xi, ProvisionEvent as xn, SandboxFleetWorkspaceRestoreResult as xr, FleetExecDispatchResult as xt, BranchOptions as y, agentProfileSchema as ya, TaskResult as yi, PromptOptions as yn, SandboxFleetWorkspace as yr, FleetDispatchStreamOptions as yt, DevServerInfo as z, WaitForRolloutOptions as zi, RolloutScorer as zn, SandboxTerminalManager as zr, GpuLeaseStatus as zt };
|
package/package.json
CHANGED