@tangle-network/sandbox 0.62.12 → 0.62.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +2 -2
- package/dist/agent/preview.d.ts +1 -1
- package/dist/{agent-run-outcome-CWrBnv3S.d.ts → agent-run-outcome-BjZ1EHSq.d.ts} +1 -1
- package/dist/{client-CIrZUB7Q.d.ts → client-C7KaqyfN.d.ts} +5 -5
- package/dist/{client-C7NbsKZQ.js → client-CdNw2DEF.js} +1 -1
- package/dist/core.d.ts +7 -7
- package/dist/core.js +2 -2
- package/dist/{errors-tik04CKT.d.ts → errors-BSmxfVt0.d.ts} +1 -1
- package/dist/{index-CuFC5al5.d.ts → index-BiJDEVsu.d.ts} +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +3 -3
- package/dist/{lines-BWLeaELK.d.ts → lines-CodL_Yhd.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{managed-process-qH__EafL.d.ts → managed-process-BEgMYGGu.d.ts} +1 -1
- package/dist/{preview-BFBAIphI.d.ts → preview-BamI9Yoe.d.ts} +3 -3
- package/dist/{public-templates-CM9_NpaD.d.ts → public-templates-CAMfH_Yr.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/{raw-evidence-archive-tCj9wHJ4.js → raw-evidence-archive-Bxk6fUjS.js} +12 -2
- package/dist/runtime.d.ts +3 -3
- package/dist/{sandbox-D0NNcvnQ.js → sandbox-BGyIDjUH.js} +10 -9
- package/dist/{sandbox-BogoNKYF.d.ts → sandbox-I390rjrp.d.ts} +3 -3
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-Cr6EkNcG.js → tangle-9PQPjv8y.js} +1 -1
- package/dist/{types-B91mhT62.d.ts → types-Bal6rlUP.d.ts} +23 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -993,6 +993,26 @@ most 64 MiB of cumulative part text. Limits and incomplete snapshots never becom
|
|
|
993
993
|
complete coverage. The dedicated Sidecar archive route is required; an older deployment
|
|
994
994
|
returns an error without falling back to the aggregate `rawEvidence()` API.
|
|
995
995
|
|
|
996
|
+
To keep the HOME walk but leave the bytes of directories the harness downloads
|
|
997
|
+
again on the box, name them in `omitContent`. Each file below one keeps its
|
|
998
|
+
metadata, has `contentOmitted: true`, and has no `content` or `sha256`:
|
|
999
|
+
|
|
1000
|
+
```ts
|
|
1001
|
+
const evidence = await box.session(sessionId).exportRawEvidence(destination, {
|
|
1002
|
+
maxBytes: 4 * 1024 ** 3,
|
|
1003
|
+
maxFiles: 100_000,
|
|
1004
|
+
omitContent: [".codex/plugins/cache/", ".codex/cache/remote_plugin_catalog/"],
|
|
1005
|
+
});
|
|
1006
|
+
```
|
|
1007
|
+
|
|
1008
|
+
The manifest lists the honoured prefixes in `omitContent`. A prefix that covers
|
|
1009
|
+
or enters the harness's native session store (for example `.codex/` or
|
|
1010
|
+
`.codex/sessions/`) answers 400, so the session itself always keeps its bytes.
|
|
1011
|
+
The SDK allows at most 64 prefixes of at most 512 characters each, and 8 KiB of
|
|
1012
|
+
encoded query. A Sidecar older than the option ignores it and sends every
|
|
1013
|
+
file's bytes, so keep `maxBytes` sized for the whole HOME until every Sidecar
|
|
1014
|
+
you reach serves this version.
|
|
1015
|
+
|
|
996
1016
|
To keep only the native session store, ask for the session copies alone:
|
|
997
1017
|
|
|
998
1018
|
```ts
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as SandboxSession, m as SandboxTaskSession, n as SandboxInstance } from "../sandbox-
|
|
2
|
-
import { D as CodeExecutionResult, Do as BackendType, E as CodeExecutionOptions, O as CodeLanguage, d as BackendConfig, fa as SessionListOptions, k as CodeResultPart, si as SandboxFleetParent, ua as SessionInfo } from "../types-
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { g as SandboxSession, m as SandboxTaskSession, n as SandboxInstance } from "../sandbox-I390rjrp.js";
|
|
2
|
+
import { D as CodeExecutionResult, Do as BackendType, E as CodeExecutionOptions, O as CodeLanguage, d as BackendConfig, fa as SessionListOptions, k as CodeResultPart, si as SandboxFleetParent, ua as SessionInfo } from "../types-Bal6rlUP.js";
|
|
3
|
+
import { i as Sandbox } from "../client-C7KaqyfN.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-BamI9Yoe.js";
|
|
5
5
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
6
6
|
import { JSONSchema } from "zod/v4/core";
|
|
7
7
|
import { ToolSet } from "ai";
|
package/dist/agent/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-BYHcA72Z.js";
|
|
2
2
|
import { k as assertCurrentBackendType } from "../interactive-controller-B2VcB_SK.js";
|
|
3
3
|
import { _ as StateError, b as ValidationError, d as NotFoundError } from "../errors-DSJBKmGZ.js";
|
|
4
|
-
import { n as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
4
|
+
import { n as Sandbox } from "../client-CdNw2DEF.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-BGyIDjUH.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/agent/instances.ts
|
|
8
8
|
const managers = /* @__PURE__ */ new WeakMap();
|
package/dist/agent/preview.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-
|
|
1
|
+
import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-BamI9Yoe.js";
|
|
2
2
|
export { AgentPreviewError, AgentPreviewOptions, PREVIEW_MCP_ALIAS, PREVIEW_TOOLS, PreviewAuthorizationRequest, PreviewAuthorizer, PreviewExecutionContext, PreviewTool, PublishAgentPreviewOptions, assertPreviewId, ensureAgentPreview, getAgentPreview, listAgentPreviews, previewOperationTool, previewToolsForProfile, publishAgentPreview, removeAgentPreview, resolveSelfSandbox, servePreviewMcp };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Hr as SandboxEvent, a as AgentQuestionRequest, dt as DurablePlanSnapshot, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation } from "./types-
|
|
1
|
+
import { Hr as SandboxEvent, a as AgentQuestionRequest, dt as DurablePlanSnapshot, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation } from "./types-Bal6rlUP.js";
|
|
2
2
|
import { InteractionRequest } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { B as CreateSandboxOptions, Bt as FleetDispatchCancelResult, Ci as SandboxInfo, Cn as HttpClient, Dn as IntelligenceReportCompareTo, Ea as SshKeysManager, En as IntelligenceReportBudget, F as CreateIntelligenceReportOptions, Fr as SandboxConfig, G as DeleteMatchingSandboxesFilter, Gr as SandboxFleetArtifact, Gt as FleetDriveTurnRequest, Ha as TokenRefreshHandler, Ht as FleetDispatchResultBufferOptions, I as CreateRequestOptions, It as FleetAgentId, Jt as FleetMachineId, K as DeleteMatchingSandboxesOptions, Kr as SandboxFleetArtifactSpec, Kt as FleetExecDispatchOptions, L as CreateSandboxFleetOptions, M as ConversationTurnOptions, N as ConversationTurnResult, Ni as SandboxRunGeneration, Nn as ListSandboxFleetOptions, Pn as ListSandboxOptions, Qr as SandboxFleetInfo, Qt as FleetRunOptions, R as CreateSandboxFleetTokenOptions, Ri as SandboxShapesInfo, Rt as FleetAgentResult, Si as SandboxIdentity, So as BatchEvent, St as ExecResult, Tn as IntelligenceReport, Ur as SandboxFleetAgent, Ut as FleetDispatchStreamOptions, Vr as SandboxEnvironment, Vt as FleetDispatchResultBuffer, Wt as FleetDriveTurnOutcome, Xr as SandboxFleetDriverCapability, Xt as FleetPromptDispatchResult, Ya as UsageInfo, Yr as SandboxFleetDispatchResponse, Yt as FleetPromptDispatchOptions, Zt as FleetRunEvent, _i as SandboxFleetUsage, b as BatchRunRequest, bi as SandboxFleetWorkspaceRestoreResult, br as ReconcileSandboxFleetsOptions, cr as PromptResult, d as BackendConfig, di as SandboxFleetSpend, ea as SecretsManager, fi as SandboxFleetToken, gi as SandboxFleetTraceOptions, ii as SandboxFleetManifest, ja as SubscriptionInfo, kn as IntelligenceReportWindow, l as AttachSandboxFleetMachineOptions, li as SandboxFleetPolicy, ni as SandboxFleetMachineRecord, no as SdkTimingHook, oi as SandboxFleetOperationsSummary, or as PromptInputPart, pi as SandboxFleetTraceBundle, q as DeleteMatchingSandboxesResult, qr as SandboxFleetCostEstimate, qt as FleetExecDispatchResult, ri as SandboxFleetMachineSpec, si as SandboxFleetParent, sr as PromptOptions, v as BatchResult, vr as ReapExpiredSandboxFleetsOptions, xi as SandboxFleetWorkspaceSnapshotResult, xr as ReconcileSandboxFleetsResult, xt as ExecOptions, y as BatchRunOptions, yi as SandboxFleetWorkspaceReconcileResult, yr as ReapExpiredSandboxFleetsResult, z as CreateSandboxFleetWithCoordinatorOptions } from "./types-
|
|
1
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance } from "./sandbox-I390rjrp.js";
|
|
2
|
+
import { B as CreateSandboxOptions, Bt as FleetDispatchCancelResult, Ci as SandboxInfo, Cn as HttpClient, Dn as IntelligenceReportCompareTo, Ea as SshKeysManager, En as IntelligenceReportBudget, F as CreateIntelligenceReportOptions, Fr as SandboxConfig, G as DeleteMatchingSandboxesFilter, Gr as SandboxFleetArtifact, Gt as FleetDriveTurnRequest, Ha as TokenRefreshHandler, Ht as FleetDispatchResultBufferOptions, I as CreateRequestOptions, It as FleetAgentId, Jt as FleetMachineId, K as DeleteMatchingSandboxesOptions, Kr as SandboxFleetArtifactSpec, Kt as FleetExecDispatchOptions, L as CreateSandboxFleetOptions, M as ConversationTurnOptions, N as ConversationTurnResult, Ni as SandboxRunGeneration, Nn as ListSandboxFleetOptions, Pn as ListSandboxOptions, Qr as SandboxFleetInfo, Qt as FleetRunOptions, R as CreateSandboxFleetTokenOptions, Ri as SandboxShapesInfo, Rt as FleetAgentResult, Si as SandboxIdentity, So as BatchEvent, St as ExecResult, Tn as IntelligenceReport, Ur as SandboxFleetAgent, Ut as FleetDispatchStreamOptions, Vr as SandboxEnvironment, Vt as FleetDispatchResultBuffer, Wt as FleetDriveTurnOutcome, Xr as SandboxFleetDriverCapability, Xt as FleetPromptDispatchResult, Ya as UsageInfo, Yr as SandboxFleetDispatchResponse, Yt as FleetPromptDispatchOptions, Zt as FleetRunEvent, _i as SandboxFleetUsage, b as BatchRunRequest, bi as SandboxFleetWorkspaceRestoreResult, br as ReconcileSandboxFleetsOptions, cr as PromptResult, d as BackendConfig, di as SandboxFleetSpend, ea as SecretsManager, fi as SandboxFleetToken, gi as SandboxFleetTraceOptions, ii as SandboxFleetManifest, ja as SubscriptionInfo, kn as IntelligenceReportWindow, l as AttachSandboxFleetMachineOptions, li as SandboxFleetPolicy, ni as SandboxFleetMachineRecord, no as SdkTimingHook, oi as SandboxFleetOperationsSummary, or as PromptInputPart, pi as SandboxFleetTraceBundle, q as DeleteMatchingSandboxesResult, qr as SandboxFleetCostEstimate, qt as FleetExecDispatchResult, ri as SandboxFleetMachineSpec, si as SandboxFleetParent, sr as PromptOptions, v as BatchResult, vr as ReapExpiredSandboxFleetsOptions, xi as SandboxFleetWorkspaceSnapshotResult, xr as ReconcileSandboxFleetsResult, xt as ExecOptions, y as BatchRunOptions, yi as SandboxFleetWorkspaceReconcileResult, yr as ReapExpiredSandboxFleetsResult, z as CreateSandboxFleetWithCoordinatorOptions } from "./types-Bal6rlUP.js";
|
|
3
3
|
import { d as MintInteractiveSessionTokenOptions, p as ScopedToken } from "./terminal-stream-DgD7GlFi.js";
|
|
4
|
-
import { L as LinesClient } from "./lines-
|
|
5
|
-
import { h as SandboxError } from "./errors-
|
|
6
|
-
import { a as PublicTemplatesClient } from "./public-templates-
|
|
4
|
+
import { L as LinesClient } from "./lines-CodL_Yhd.js";
|
|
5
|
+
import { h as SandboxError } from "./errors-BSmxfVt0.js";
|
|
6
|
+
import { a as PublicTemplatesClient } from "./public-templates-CAMfH_Yr.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import { AgentInteractiveSessionRef, AgentProfile } from "@tangle-network/agent-interface";
|
|
9
9
|
|
|
@@ -2,7 +2,7 @@ import { r as backendTypeSchema } from "./backend-types-D6bYbvMB.js";
|
|
|
2
2
|
import { A as foldModelRoutingFields, D as parseSSEStream, F as withProfileHarness, I as withoutCreateOnlyModelFields, M as normalizeRuntimeBackendConfig, O as applyRequestedModel, T as encodePromptForWire, c as requestInteractiveSessionToken, k as assertCurrentBackendType } from "./interactive-controller-B2VcB_SK.js";
|
|
3
3
|
import { C as readResponseJson, S as parseResponseError, b as ValidationError, d as NotFoundError, f as PartialFailureError, g as ServerError, h as SandboxError, l as NON_RETRYABLE_CREATE_QUOTA_REASONS, p as QuotaError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, x as parseErrorResponse, y as TimeoutError } from "./errors-DSJBKmGZ.js";
|
|
4
4
|
import { f as combineAbortSignals } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
5
|
-
import { A as rewrapResponse, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, M as exportTraceBundle, O as normalizeConnection, T as splitInlineProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, k as normalizeSandboxShape, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof } from "./sandbox-
|
|
5
|
+
import { A as rewrapResponse, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, M as exportTraceBundle, O as normalizeConnection, T as splitInlineProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, k as normalizeSandboxShape, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof } from "./sandbox-BGyIDjUH.js";
|
|
6
6
|
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-qPVvvkgJ.js";
|
|
7
7
|
import { LinesClient } from "./lines.js";
|
|
8
8
|
import { PublicTemplatesClient } from "./public-templates.js";
|
package/dist/core.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-
|
|
2
|
-
import { B as CreateSandboxOptions, Bn as ManagedProcessSpec, Ci as SandboxInfo, Fr as SandboxConfig, In as ManagedProcessJobs, Ln as ManagedProcessOptions, M as ConversationTurnOptions, N as ConversationTurnResult, Rn as ManagedProcessRecord, St as ExecResult, Vn as ManagedProcessState, Wn as NetworkConfig, Xn as PreviewLinkManager, Yn as PreviewLinkInfo, Zn as PreviewLinkWaitOptions, ao as SandboxEnvRecovery, ma as SessionMessageAdmission, oo as SandboxEnvRecoveryView, or as PromptInputPart, xt as ExecOptions, zi as SandboxStatus, zn as ManagedProcessResumeOptions } from "./types-
|
|
3
|
-
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, J as LineApplicationView, K as LineApplicationResult, L as LinesClient, M as LineSenderVerificationStart, S as LineReminderPreferences, U as LINE_APPLICATION_REQUEST_MAX_BYTES, V as profileChannelReference, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, n as LineAgentRolePolicy, p as LineInstanceCreate, q as LineApplicationState, s as LineAttachment, t as Line, w as LineReplyCodeInput, x as LineProvider } from "./lines-
|
|
4
|
-
import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, v as ServerError, y as StateError } from "./errors-
|
|
5
|
-
import { A as BackendRegistryEntry, C as InstancesClient, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, _ as EnsureInstanceOptions, b as InstanceRecord, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, v as HostedInstance, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-
|
|
6
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
7
|
-
import { t as ManagedProcessClient } from "./managed-process-
|
|
1
|
+
import { _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-I390rjrp.js";
|
|
2
|
+
import { B as CreateSandboxOptions, Bn as ManagedProcessSpec, Ci as SandboxInfo, Fr as SandboxConfig, In as ManagedProcessJobs, Ln as ManagedProcessOptions, M as ConversationTurnOptions, N as ConversationTurnResult, Rn as ManagedProcessRecord, St as ExecResult, Vn as ManagedProcessState, Wn as NetworkConfig, Xn as PreviewLinkManager, Yn as PreviewLinkInfo, Zn as PreviewLinkWaitOptions, ao as SandboxEnvRecovery, ma as SessionMessageAdmission, oo as SandboxEnvRecoveryView, or as PromptInputPart, xt as ExecOptions, zi as SandboxStatus, zn as ManagedProcessResumeOptions } from "./types-Bal6rlUP.js";
|
|
3
|
+
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, J as LineApplicationView, K as LineApplicationResult, L as LinesClient, M as LineSenderVerificationStart, S as LineReminderPreferences, U as LINE_APPLICATION_REQUEST_MAX_BYTES, V as profileChannelReference, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, n as LineAgentRolePolicy, p as LineInstanceCreate, q as LineApplicationState, s as LineAttachment, t as Line, w as LineReplyCodeInput, x as LineProvider } from "./lines-CodL_Yhd.js";
|
|
4
|
+
import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, v as ServerError, y as StateError } from "./errors-BSmxfVt0.js";
|
|
5
|
+
import { A as BackendRegistryEntry, C as InstancesClient, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, _ as EnsureInstanceOptions, b as InstanceRecord, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, v as HostedInstance, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-C7KaqyfN.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CAMfH_Yr.js";
|
|
7
|
+
import { t as ManagedProcessClient } from "./managed-process-BEgMYGGu.js";
|
|
8
8
|
|
|
9
9
|
//#region src/core.d.ts
|
|
10
10
|
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as StateError, b as ValidationError, d as NotFoundError, f as PartialFailureError, g as ServerError, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, y as TimeoutError } from "./errors-DSJBKmGZ.js";
|
|
2
|
-
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-
|
|
3
|
-
import { C as ManagedProcessClient, o as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
2
|
+
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-CdNw2DEF.js";
|
|
3
|
+
import { C as ManagedProcessClient, o as WorkspaceImages, t as SandboxInstance } from "./sandbox-BGyIDjUH.js";
|
|
4
4
|
import { LinesClient, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
6
|
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-UtPFP0o4.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { B as CreateSandboxOptions, Cn as HttpClient } from "./types-
|
|
1
|
+
import { n as SandboxInstance } from "./sandbox-I390rjrp.js";
|
|
2
|
+
import { B as CreateSandboxOptions, Cn as HttpClient } from "./types-Bal6rlUP.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tangle/abi.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { $ as BuildControlPlaneMcpConfigOptions, A as InteractivePromptCommand, B as InteractiveStopCommand, C as splitInlineProfileFileMounts, D as SandboxOperationFailedError, E as SandboxOperation, F as InteractiveSessionIncarnationId, G as InteractiveTerminalFrameLog, H as RespondToPermissionOptions, I as InteractiveSessionInfo, J as createInteractiveTerminalSession, K as InteractiveTerminalMetadata, L as InteractiveSessionRef, M as InteractiveSessionHandle, N as InteractiveSessionHandleOptions, O as AgentInteractiveTerminalSession, P as InteractiveSessionHost, Q as SandboxInteractionResult, R as InteractiveSessionStartOptions, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, U as agentInteractiveSessionPromptRequestDigest, V as InterruptResult, W as InteractiveTerminalCapture, X as SandboxInteractionConflict, Y as SandboxInteractionCommandResult, Z as SandboxInteractionResolution, _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, at as SandboxMcpServerEntry, b as SplitInlineProfileFileMountsResult, c as TraceExportResult, d as exportTraceBundle, et as BuildSandboxMcpConfigOptions, f as otelTraceIdForTangleTrace, g as SandboxSession, h as RawEvidenceExport, i as WorkspaceImagePublishRequestOptions, it as SandboxMcpEndpoint, j as InteractiveSessionControlClaim, k as InteractiveControlClaimRequest, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, nt as SANDBOX_MCP_SERVER_NAME, o as WorkspaceImages, ot as buildControlPlaneMcpConfig, p as toOtelJson, q as createInteractiveTerminalCapture, r as WorkspaceImagePublishInput, rt as SandboxMcpConfig, s as TraceExportFormat, st as buildSandboxMcpConfig, t as ForkAcknowledgement, tt as CONTROL_PLANE_MCP_SERVER_NAME, u as buildTraceExportPayload, v as MaterializeProfileFileMountsOptions, w as splitInlineProfileSkills, x as SplitInlineProfileSkillsResult, y as MaterializeProfileFileMountsResult, z as InteractiveSessionStartResult } from "./sandbox-
|
|
2
|
-
import { $ as DockerDriverConfig, $a as WriteFileOptions, $i as SecretInfo, $n as ProcessInfo, $r as SandboxFleetIntelligenceEnvelope, $t as ForkCounts, A as CommitTaskSessionOptions, Aa as StorageConfig, Ai as SandboxRemovalState, Ar as RolloutStatus, At as FileTreeFile, B as CreateSandboxOptions, Ba as TeePublicKey, Bi as SandboxTerminalAttachOptions, Bn as ManagedProcessSpec, Br as SandboxEgressUsage, Bt as FleetDispatchCancelResult, C as BranchOptions, Ci as SandboxInfo, Co as BatchEventDataMap, Ct as FileInfo, Da as StartupDiagnostics, Di as SandboxOperationState, Dn as IntelligenceReportCompareTo, Do as BackendType, Dr as RolloutOptions, Dt as FileReadResult, Ei as SandboxOperationKind, En as IntelligenceReportBudget, Eo as ALL_BACKEND_TYPES, Er as RolloutChildResult, Et as FileReadError, F as CreateIntelligenceReportOptions, Fa as TaskSessionInfo, Fi as SandboxRuntimeHealth, Fn as MAX_EGRESS_DENIALS_LIMIT, Fr as SandboxConfig, Ft as FileWriteResult, G as DeleteMatchingSandboxesFilter, Ga as TurnDriveResult, Gi as SandboxTerminals, Gn as NetworkManager, Gr as SandboxFleetArtifact, Gt as FleetDriveTurnRequest, H as CreateTaskSessionOptions, Ha as TokenRefreshHandler, Hi as SandboxTerminalInfo, Hn as McpServerConfig, Hr as SandboxEvent, Ht as FleetDispatchResultBufferOptions, I as CreateRequestOptions, Ia as TaskSessionProfile, Ii as SandboxShape, In as ManagedProcessJobs, Ir as SandboxConnection, It as FleetAgentId, J as DeleteOptions, Ja as UploadProgress, Ji as SandboxTraceExport, Jn as PermissionsManager, Jr as SandboxFleetDispatchFailureClass, Jt as FleetMachineId, K as DeleteMatchingSandboxesOptions, Ka as UpdateUserOptions, Ki as SandboxTraceBundle, Kn as NonHostAgentDriverConfig, Kr as SandboxFleetArtifactSpec, Kt as FleetExecDispatchOptions, L as CreateSandboxFleetOptions, La as TeeAttestationOptions, Li as SandboxShapePreset, Ln as ManagedProcessOptions, Lr as SandboxDeleteAcknowledgement, Lt as FleetAgentPlacement, M as ConversationTurnOptions, Ma as TaskSessionChanges, Mi as SandboxResources, Mn as ListOptions, Mr as RouterRoutingOptions, Mt as FileTreeResult, N as ConversationTurnResult, Na as TaskSessionCommitResult, Ni as SandboxRunGeneration, Nn as ListSandboxFleetOptions, Nr as SSHCommandDescriptor, Nt as FileUsageOptions, Oa as StartupOperation, Oi as SandboxPortBinding, On as IntelligenceReportSubjectType, Oo as parseBackendType, Or as RolloutScorer, Ot as FileRenameResult, P as CreateGpuLeaseOptions, Pa as TaskSessionFileChange, Pi as SandboxRuntimeCapabilities, Pn as ListSandboxOptions, Pr as SSHCredentials, Pt as FileUsageResult, Q as DispatchedSession, Qa as WorkspaceOperationLookup, Qi as SearchOptions, Qn as Process, Qr as SandboxFleetInfo, Qt as FleetRunOptions, Ra as TeeAttestationReport, Ri as SandboxShapesInfo, Rn as ManagedProcessRecord, Rr as SandboxDeleteOptions, Rt as FleetAgentResult, S as BatchTaskResult, Sa as SnapshotOptions, Si as SandboxIdentity, Sn as HostAgentRuntimeBackend, So as BatchEvent, Sr as RenameOptions, St as ExecResult, T as ChunkedUploadResult, Ta as SnapshotResult, Ti as SandboxOperationInfo, Tn as IntelligenceReport, To as BatchTaskUsage, Tr as Rollout, Tt as FileReadBatchResult, U as DeleteMatchingSandboxOutcome, Ua as TokenUsage, Ui as SandboxTerminalManager, Un as MkdirOptions, Ur as SandboxFleetAgent, Ut as FleetDispatchStreamOptions, V as CreateSessionOptions, Va as TeePublicKeyResponse, Vi as SandboxTerminalCreateOptions, Vn as ManagedProcessState, Vr as SandboxEnvironment, Vt as FleetDispatchResultBuffer, W as DeleteMatchingSandboxResult, Wa as TurnBackendConfig, Wi as SandboxTerminalRequestOptions, Wn as NetworkConfig, Wr as SandboxFleetAgentSpec, Wt as FleetDriveTurnOutcome, X as DirectoryPermission, Xa as WaitForOptions, Xi as SandboxUser, Xn as PreviewLinkManager, Xr as SandboxFleetDriverCapability, Xt as FleetPromptDispatchResult, Y as DevServerInfo, Ya as UsageInfo, Yi as SandboxTraceOptions, Yn as PreviewLinkInfo, Yr as SandboxFleetDispatchResponse, Yt as FleetPromptDispatchOptions, Z as DispatchPromptOptions, Za as WaitForRolloutOptions, Zi as SearchMatch, Zn as PreviewLinkWaitOptions, Zr as SandboxFleetDriverTimings, Zt as FleetRunEvent, _ as BatchBackend, _a as SessionStatus, _i as SandboxFleetUsage, _n as GpuLeaseProviderStatus, _o as RawEvidenceRecordsFile, _r as PublishPublicTemplateVersionOptions, _t as EgressPolicy, aa as SessionEventStreamOptions, ai as SandboxFleetManifestMachine, an as GitCommit, ao as SandboxEnvRecovery, ar as ProcessStatus, at as DriverInfo, b as BatchRunRequest, ba as SnapshotIdempotency, bi as SandboxFleetWorkspaceRestoreResult, bn as GpuLeaseStatus, bo as PublicBatchRunRequest, br as ReconcileSandboxFleetsOptions, bt as ExactProcessSpawnOptions, c as AttachGpuLeaseOptions, ca as SessionFailureReason, ci as SandboxFleetPlacement, cn as GitStatus, co as RawEvidenceArchiveManifest, cr as PromptResult, ct as DurablePlanDecisionOptions, d as BackendConfig, da as SessionInterruptOptions, di as SandboxFleetSpend, dn as GpuLeaseCommandResult, do as RawEvidenceBoxDirectoryExport, dr as ProvisionStatus, ea as SecretsManager, ei as SandboxFleetMachine, en as ForkIdempotency, eo as WriteManyFile, er as ProcessListOptions, et as DownloadOptions, f as BackendInfo, fa as SessionListOptions, fi as SandboxFleetToken, fn as GpuLeaseExecOptions, fo as RawEvidenceBoxExportOptions, fr as ProvisionStep, ft as EffectiveBackend, g as BackendStatus, ga as SessionResultOptions, gi as SandboxFleetTraceOptions, gn as GpuLeaseProviderState, go as RawEvidencePayloadFile, gr as PublishPublicTemplateOptions, gt as EgressManager, h as BackendRuntimeConfigUpdate, ha as SessionMessageInputPart, hi as SandboxFleetTraceExport, hn as GpuLeaseProviderName, ho as RawEvidenceNativeFile, hr as PublicTemplateVersionInfo, ht as EgressDenial, ia as SessionBackendCredentials, ii as SandboxFleetManifest, in as GitBranch, io as SandboxCreateReceipt, ir as ProcessSpawnOptions, it as DriverConfig, j as CompletedTurnResult, ja as SubscriptionInfo, ji as SandboxResourceUsage, jn as ListMessagesOptions, jr as RolloutTurnPart, jt as FileTreeOptions, ka as StopOptions, ki as SandboxPortPreviewLink, kn as IntelligenceReportWindow, kr as RolloutStartResult, kt as FileSystem, l as AttachSandboxFleetMachineOptions, la as SessionForkOptions, li as SandboxFleetPolicy, ln as GpuLease, lo as RawEvidenceArchiveManifestNative, lr as ProvisionEvent, lt as DurablePlanDecisionResult, m as BackendMcpServerStatus, ma as SessionMessageAdmission, mi as SandboxFleetTraceEvent, mn as GpuLeaseManager, mo as RawEvidenceExportOptions, mr as PublicTemplateInfo, mt as EffectiveBackendSource, n as AccessPolicyRule, na as SendSessionMessageRequest, ni as SandboxFleetMachineRecord, nn as GPU_LEASE_PROVIDER_NAMES, nr as ProcessManager, nt as DownloadResult, oa as SessionExecutionInfo, oi as SandboxFleetOperationsSummary, on as GitConfig, oo as SandboxEnvRecoveryView, or as PromptInputPart, ot as DriverType, p as BackendManager, pa as SessionMessage, pi as SandboxFleetTraceBundle, pn as GpuLeaseExecResult, po as RawEvidenceDirectoryExport, pr as PublicProfileConflict, pt as EffectiveBackendProfile, q as DeleteMatchingSandboxesResult, qa as UploadOptions, qi as SandboxTraceEvent, qn as PermissionLevel, qr as SandboxFleetCostEstimate, r as AddUserOptions, ra as SentSessionMessage, ri as SandboxFleetMachineSpec, rn as GitAuth, ro as SandboxCreateOutcome, rr as ProcessSignal, rt as DriveTurnOptions, sa as SessionExecutionStatus, si as SandboxFleetParent, sn as GitDiff, so as NativeStoreHomeCopy, sr as PromptOptions, st as DurablePlan, t as AcceleratorKind, ta as SendSessionMessageOptions, ti as SandboxFleetMachineMeteredUsage, tn as ForkLookupOptions, to as WriteManyOptions, tr as ProcessLogEntry, tt as DownloadProgress, u as BackendCapabilities, ua as SessionInfo, ui as SandboxFleetProfileRef, un as GpuLeaseBilling, uo as RawEvidenceBoxArchiveManifest, ur as ProvisionResult, ut as DurablePlanFollowUpResume, v as BatchResult, va as SnapshotDeleteAcknowledgement, vi as SandboxFleetWorkspace, vn as GpuLeaseProviders, vr as ReapExpiredSandboxFleetsOptions, vt as EnsureDevServerOptions, w as ChunkedUploadOptions, wa as SnapshotRemoteSync, wi as SandboxIntelligenceEnvelope, wn as InstalledTool, wo as BatchSidecarGroup, wt as FileReadBatchOptions, x as BatchTask, xa as SnapshotInfo, xi as SandboxFleetWorkspaceSnapshotResult, xn as HostAgentDriverConfig, xo as BatchBackendStats, xr as ReconcileSandboxFleetsResult, xt as ExecOptions, y as BatchRunOptions, ya as SnapshotDeleteOutcome, yi as SandboxFleetWorkspaceReconcileResult, yn as GpuLeaseProvidersOptions, yr as ReapExpiredSandboxFleetsResult, yt as EventStreamOptions, z as CreateSandboxFleetWithCoordinatorOptions, za as TeeAttestationResponse, zi as SandboxStatus, zn as ManagedProcessResumeOptions, zr as SandboxDeleteOutcome, zt as FleetAgentRunStatus } from "./types-
|
|
1
|
+
import { $ as BuildControlPlaneMcpConfigOptions, A as InteractivePromptCommand, B as InteractiveStopCommand, C as splitInlineProfileFileMounts, D as SandboxOperationFailedError, E as SandboxOperation, F as InteractiveSessionIncarnationId, G as InteractiveTerminalFrameLog, H as RespondToPermissionOptions, I as InteractiveSessionInfo, J as createInteractiveTerminalSession, K as InteractiveTerminalMetadata, L as InteractiveSessionRef, M as InteractiveSessionHandle, N as InteractiveSessionHandleOptions, O as AgentInteractiveTerminalSession, P as InteractiveSessionHost, Q as SandboxInteractionResult, R as InteractiveSessionStartOptions, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, U as agentInteractiveSessionPromptRequestDigest, V as InterruptResult, W as InteractiveTerminalCapture, X as SandboxInteractionConflict, Y as SandboxInteractionCommandResult, Z as SandboxInteractionResolution, _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, at as SandboxMcpServerEntry, b as SplitInlineProfileFileMountsResult, c as TraceExportResult, d as exportTraceBundle, et as BuildSandboxMcpConfigOptions, f as otelTraceIdForTangleTrace, g as SandboxSession, h as RawEvidenceExport, i as WorkspaceImagePublishRequestOptions, it as SandboxMcpEndpoint, j as InteractiveSessionControlClaim, k as InteractiveControlClaimRequest, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, nt as SANDBOX_MCP_SERVER_NAME, o as WorkspaceImages, ot as buildControlPlaneMcpConfig, p as toOtelJson, q as createInteractiveTerminalCapture, r as WorkspaceImagePublishInput, rt as SandboxMcpConfig, s as TraceExportFormat, st as buildSandboxMcpConfig, t as ForkAcknowledgement, tt as CONTROL_PLANE_MCP_SERVER_NAME, u as buildTraceExportPayload, v as MaterializeProfileFileMountsOptions, w as splitInlineProfileSkills, x as SplitInlineProfileSkillsResult, y as MaterializeProfileFileMountsResult, z as InteractiveSessionStartResult } from "./sandbox-I390rjrp.js";
|
|
2
|
+
import { $ as DockerDriverConfig, $a as WriteFileOptions, $i as SecretInfo, $n as ProcessInfo, $r as SandboxFleetIntelligenceEnvelope, $t as ForkCounts, A as CommitTaskSessionOptions, Aa as StorageConfig, Ai as SandboxRemovalState, Ar as RolloutStatus, At as FileTreeFile, B as CreateSandboxOptions, Ba as TeePublicKey, Bi as SandboxTerminalAttachOptions, Bn as ManagedProcessSpec, Br as SandboxEgressUsage, Bt as FleetDispatchCancelResult, C as BranchOptions, Ci as SandboxInfo, Co as BatchEventDataMap, Ct as FileInfo, Da as StartupDiagnostics, Di as SandboxOperationState, Dn as IntelligenceReportCompareTo, Do as BackendType, Dr as RolloutOptions, Dt as FileReadResult, Ei as SandboxOperationKind, En as IntelligenceReportBudget, Eo as ALL_BACKEND_TYPES, Er as RolloutChildResult, Et as FileReadError, F as CreateIntelligenceReportOptions, Fa as TaskSessionInfo, Fi as SandboxRuntimeHealth, Fn as MAX_EGRESS_DENIALS_LIMIT, Fr as SandboxConfig, Ft as FileWriteResult, G as DeleteMatchingSandboxesFilter, Ga as TurnDriveResult, Gi as SandboxTerminals, Gn as NetworkManager, Gr as SandboxFleetArtifact, Gt as FleetDriveTurnRequest, H as CreateTaskSessionOptions, Ha as TokenRefreshHandler, Hi as SandboxTerminalInfo, Hn as McpServerConfig, Hr as SandboxEvent, Ht as FleetDispatchResultBufferOptions, I as CreateRequestOptions, Ia as TaskSessionProfile, Ii as SandboxShape, In as ManagedProcessJobs, Ir as SandboxConnection, It as FleetAgentId, J as DeleteOptions, Ja as UploadProgress, Ji as SandboxTraceExport, Jn as PermissionsManager, Jr as SandboxFleetDispatchFailureClass, Jt as FleetMachineId, K as DeleteMatchingSandboxesOptions, Ka as UpdateUserOptions, Ki as SandboxTraceBundle, Kn as NonHostAgentDriverConfig, Kr as SandboxFleetArtifactSpec, Kt as FleetExecDispatchOptions, L as CreateSandboxFleetOptions, La as TeeAttestationOptions, Li as SandboxShapePreset, Ln as ManagedProcessOptions, Lr as SandboxDeleteAcknowledgement, Lt as FleetAgentPlacement, M as ConversationTurnOptions, Ma as TaskSessionChanges, Mi as SandboxResources, Mn as ListOptions, Mr as RouterRoutingOptions, Mt as FileTreeResult, N as ConversationTurnResult, Na as TaskSessionCommitResult, Ni as SandboxRunGeneration, Nn as ListSandboxFleetOptions, Nr as SSHCommandDescriptor, Nt as FileUsageOptions, Oa as StartupOperation, Oi as SandboxPortBinding, On as IntelligenceReportSubjectType, Oo as parseBackendType, Or as RolloutScorer, Ot as FileRenameResult, P as CreateGpuLeaseOptions, Pa as TaskSessionFileChange, Pi as SandboxRuntimeCapabilities, Pn as ListSandboxOptions, Pr as SSHCredentials, Pt as FileUsageResult, Q as DispatchedSession, Qa as WorkspaceOperationLookup, Qi as SearchOptions, Qn as Process, Qr as SandboxFleetInfo, Qt as FleetRunOptions, Ra as TeeAttestationReport, Ri as SandboxShapesInfo, Rn as ManagedProcessRecord, Rr as SandboxDeleteOptions, Rt as FleetAgentResult, S as BatchTaskResult, Sa as SnapshotOptions, Si as SandboxIdentity, Sn as HostAgentRuntimeBackend, So as BatchEvent, Sr as RenameOptions, St as ExecResult, T as ChunkedUploadResult, Ta as SnapshotResult, Ti as SandboxOperationInfo, Tn as IntelligenceReport, To as BatchTaskUsage, Tr as Rollout, Tt as FileReadBatchResult, U as DeleteMatchingSandboxOutcome, Ua as TokenUsage, Ui as SandboxTerminalManager, Un as MkdirOptions, Ur as SandboxFleetAgent, Ut as FleetDispatchStreamOptions, V as CreateSessionOptions, Va as TeePublicKeyResponse, Vi as SandboxTerminalCreateOptions, Vn as ManagedProcessState, Vr as SandboxEnvironment, Vt as FleetDispatchResultBuffer, W as DeleteMatchingSandboxResult, Wa as TurnBackendConfig, Wi as SandboxTerminalRequestOptions, Wn as NetworkConfig, Wr as SandboxFleetAgentSpec, Wt as FleetDriveTurnOutcome, X as DirectoryPermission, Xa as WaitForOptions, Xi as SandboxUser, Xn as PreviewLinkManager, Xr as SandboxFleetDriverCapability, Xt as FleetPromptDispatchResult, Y as DevServerInfo, Ya as UsageInfo, Yi as SandboxTraceOptions, Yn as PreviewLinkInfo, Yr as SandboxFleetDispatchResponse, Yt as FleetPromptDispatchOptions, Z as DispatchPromptOptions, Za as WaitForRolloutOptions, Zi as SearchMatch, Zn as PreviewLinkWaitOptions, Zr as SandboxFleetDriverTimings, Zt as FleetRunEvent, _ as BatchBackend, _a as SessionStatus, _i as SandboxFleetUsage, _n as GpuLeaseProviderStatus, _o as RawEvidenceRecordsFile, _r as PublishPublicTemplateVersionOptions, _t as EgressPolicy, aa as SessionEventStreamOptions, ai as SandboxFleetManifestMachine, an as GitCommit, ao as SandboxEnvRecovery, ar as ProcessStatus, at as DriverInfo, b as BatchRunRequest, ba as SnapshotIdempotency, bi as SandboxFleetWorkspaceRestoreResult, bn as GpuLeaseStatus, bo as PublicBatchRunRequest, br as ReconcileSandboxFleetsOptions, bt as ExactProcessSpawnOptions, c as AttachGpuLeaseOptions, ca as SessionFailureReason, ci as SandboxFleetPlacement, cn as GitStatus, co as RawEvidenceArchiveManifest, cr as PromptResult, ct as DurablePlanDecisionOptions, d as BackendConfig, da as SessionInterruptOptions, di as SandboxFleetSpend, dn as GpuLeaseCommandResult, do as RawEvidenceBoxDirectoryExport, dr as ProvisionStatus, ea as SecretsManager, ei as SandboxFleetMachine, en as ForkIdempotency, eo as WriteManyFile, er as ProcessListOptions, et as DownloadOptions, f as BackendInfo, fa as SessionListOptions, fi as SandboxFleetToken, fn as GpuLeaseExecOptions, fo as RawEvidenceBoxExportOptions, fr as ProvisionStep, ft as EffectiveBackend, g as BackendStatus, ga as SessionResultOptions, gi as SandboxFleetTraceOptions, gn as GpuLeaseProviderState, go as RawEvidencePayloadFile, gr as PublishPublicTemplateOptions, gt as EgressManager, h as BackendRuntimeConfigUpdate, ha as SessionMessageInputPart, hi as SandboxFleetTraceExport, hn as GpuLeaseProviderName, ho as RawEvidenceNativeFile, hr as PublicTemplateVersionInfo, ht as EgressDenial, ia as SessionBackendCredentials, ii as SandboxFleetManifest, in as GitBranch, io as SandboxCreateReceipt, ir as ProcessSpawnOptions, it as DriverConfig, j as CompletedTurnResult, ja as SubscriptionInfo, ji as SandboxResourceUsage, jn as ListMessagesOptions, jr as RolloutTurnPart, jt as FileTreeOptions, ka as StopOptions, ki as SandboxPortPreviewLink, kn as IntelligenceReportWindow, kr as RolloutStartResult, kt as FileSystem, l as AttachSandboxFleetMachineOptions, la as SessionForkOptions, li as SandboxFleetPolicy, ln as GpuLease, lo as RawEvidenceArchiveManifestNative, lr as ProvisionEvent, lt as DurablePlanDecisionResult, m as BackendMcpServerStatus, ma as SessionMessageAdmission, mi as SandboxFleetTraceEvent, mn as GpuLeaseManager, mo as RawEvidenceExportOptions, mr as PublicTemplateInfo, mt as EffectiveBackendSource, n as AccessPolicyRule, na as SendSessionMessageRequest, ni as SandboxFleetMachineRecord, nn as GPU_LEASE_PROVIDER_NAMES, nr as ProcessManager, nt as DownloadResult, oa as SessionExecutionInfo, oi as SandboxFleetOperationsSummary, on as GitConfig, oo as SandboxEnvRecoveryView, or as PromptInputPart, ot as DriverType, p as BackendManager, pa as SessionMessage, pi as SandboxFleetTraceBundle, pn as GpuLeaseExecResult, po as RawEvidenceDirectoryExport, pr as PublicProfileConflict, pt as EffectiveBackendProfile, q as DeleteMatchingSandboxesResult, qa as UploadOptions, qi as SandboxTraceEvent, qn as PermissionLevel, qr as SandboxFleetCostEstimate, r as AddUserOptions, ra as SentSessionMessage, ri as SandboxFleetMachineSpec, rn as GitAuth, ro as SandboxCreateOutcome, rr as ProcessSignal, rt as DriveTurnOptions, sa as SessionExecutionStatus, si as SandboxFleetParent, sn as GitDiff, so as NativeStoreHomeCopy, sr as PromptOptions, st as DurablePlan, t as AcceleratorKind, ta as SendSessionMessageOptions, ti as SandboxFleetMachineMeteredUsage, tn as ForkLookupOptions, to as WriteManyOptions, tr as ProcessLogEntry, tt as DownloadProgress, u as BackendCapabilities, ua as SessionInfo, ui as SandboxFleetProfileRef, un as GpuLeaseBilling, uo as RawEvidenceBoxArchiveManifest, ur as ProvisionResult, ut as DurablePlanFollowUpResume, v as BatchResult, va as SnapshotDeleteAcknowledgement, vi as SandboxFleetWorkspace, vn as GpuLeaseProviders, vr as ReapExpiredSandboxFleetsOptions, vt as EnsureDevServerOptions, w as ChunkedUploadOptions, wa as SnapshotRemoteSync, wi as SandboxIntelligenceEnvelope, wn as InstalledTool, wo as BatchSidecarGroup, wt as FileReadBatchOptions, x as BatchTask, xa as SnapshotInfo, xi as SandboxFleetWorkspaceSnapshotResult, xn as HostAgentDriverConfig, xo as BatchBackendStats, xr as ReconcileSandboxFleetsResult, xt as ExecOptions, y as BatchRunOptions, ya as SnapshotDeleteOutcome, yi as SandboxFleetWorkspaceReconcileResult, yn as GpuLeaseProvidersOptions, yr as ReapExpiredSandboxFleetsResult, yt as EventStreamOptions, z as CreateSandboxFleetWithCoordinatorOptions, za as TeeAttestationResponse, zi as SandboxStatus, zn as ManagedProcessResumeOptions, zr as SandboxDeleteOutcome, zt as FleetAgentRunStatus } from "./types-Bal6rlUP.js";
|
|
3
3
|
import { _ as TerminalInteractiveSessionIdentity, a as TerminalStreamError, b as TerminalReadyTimings, d as MintInteractiveSessionTokenOptions, f as MintScopedTokenOptions, g as TerminalExitInfo, h as TERMINAL_WS_ECHO_SUBPROTOCOL, i as TerminalStreamBearerToken, l as TerminalStreamToken, m as ScopedTokenScope, n as TerminalStream, o as TerminalStreamHandlers, p as ScopedToken, r as TerminalStreamApiKey, s as TerminalStreamOptions, t as TerminalAttachTimings, u as terminalUpgradeHeadersSupported, v as TerminalOutputMessage, x as TerminalStreamAuthFormat, y as TerminalReadyInfo } from "./terminal-stream-DgD7GlFi.js";
|
|
4
4
|
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as interactiveSessionIdentityDigest, f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as InteractiveSessionNotRunningError, m as InteractiveControlClaimOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimAcknowledgement, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as createInteractiveControlHolderId } from "./browser-interactive-control-controller-B6sySQFu.js";
|
|
5
5
|
import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-BSWoA0YE.js";
|
|
6
|
-
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, D as LineRespondView, E as LineRespondAgent, F as LineVoice, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineVoiceOptions, J as LineApplicationView, K as LineApplicationResult, L as LinesClient, M as LineSenderVerificationStart, N as LineThread, O as LineRole, P as LineTransport, S as LineReminderPreferences, T as LineReplyGate, U as LINE_APPLICATION_REQUEST_MAX_BYTES, V as profileChannelReference, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineMemberPatch, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, i as LineAllowanceSubject, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, m as LineLimits, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineInstanceCreate, q as LineApplicationState, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMemberSpec, w as LineReplyCodeInput, x as LineProvider, y as LineMessage, z as SandboxLines } from "./lines-
|
|
7
|
-
import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, a as EgressProxyRecoveryError, b as StreamInterruptedError, c as GpuProviderRequirement, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, i as EdgeNotReadyError, l as KeyBudgetExhaustedError, m as ResumeEnvRequiredError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as ServerError, x as StreamInterruptionReason, y as StateError } from "./errors-
|
|
8
|
-
import { A as BackendRegistryEntry, C as InstancesClient, D as ParsedSSEEvent, E as ParseSSEStreamOptions, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, O as parseSSEStream, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, S as InstanceStart, T as SandboxFleetClient, _ as EnsureInstanceOptions, a as Team, b as InstanceRecord, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as RunsHttpClient, h as RunsClient, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as HostedInstance, w as SandboxFleet, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-
|
|
9
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
6
|
+
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, D as LineRespondView, E as LineRespondAgent, F as LineVoice, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineVoiceOptions, J as LineApplicationView, K as LineApplicationResult, L as LinesClient, M as LineSenderVerificationStart, N as LineThread, O as LineRole, P as LineTransport, S as LineReminderPreferences, T as LineReplyGate, U as LINE_APPLICATION_REQUEST_MAX_BYTES, V as profileChannelReference, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineMemberPatch, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, i as LineAllowanceSubject, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, m as LineLimits, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineInstanceCreate, q as LineApplicationState, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMemberSpec, w as LineReplyCodeInput, x as LineProvider, y as LineMessage, z as SandboxLines } from "./lines-CodL_Yhd.js";
|
|
7
|
+
import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, a as EgressProxyRecoveryError, b as StreamInterruptedError, c as GpuProviderRequirement, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, i as EdgeNotReadyError, l as KeyBudgetExhaustedError, m as ResumeEnvRequiredError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as ServerError, x as StreamInterruptionReason, y as StateError } from "./errors-BSmxfVt0.js";
|
|
8
|
+
import { A as BackendRegistryEntry, C as InstancesClient, D as ParsedSSEEvent, E as ParseSSEStreamOptions, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, O as parseSSEStream, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, S as InstanceStart, T as SandboxFleetClient, _ as EnsureInstanceOptions, a as Team, b as InstanceRecord, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as RunsHttpClient, h as RunsClient, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as HostedInstance, w as SandboxFleet, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-C7KaqyfN.js";
|
|
9
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CAMfH_Yr.js";
|
|
10
10
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-DfA_usrZ.js";
|
|
11
11
|
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-CWUW8pqr.js";
|
|
12
|
-
import { t as ManagedProcessClient } from "./managed-process-
|
|
13
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
14
|
-
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-
|
|
12
|
+
import { t as ManagedProcessClient } from "./managed-process-BEgMYGGu.js";
|
|
13
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-BjZ1EHSq.js";
|
|
14
|
+
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-BiJDEVsu.js";
|
|
15
15
|
import { z } from "zod";
|
|
16
16
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
17
17
|
import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { i as parseBackendType, r as backendTypeSchema, t as ALL_BACKEND_TYPES } from "./backend-types-D6bYbvMB.js";
|
|
2
2
|
import { B as deriveAgentRunOutcome, D as parseSSEStream, M as normalizeRuntimeBackendConfig, N as requestedPublicProfileDigest, R as createAgentRunOutcomeTracker, V as projectAgentTerminalRecord, a as terminalUpgradeHeadersSupported, i as TerminalStreamError, n as InteractiveSessionController, o as TERMINAL_WS_ECHO_SUBPROTOCOL, r as TerminalStream, t as BrowserInteractiveSessionController, z as deriveAgentResultOutcome } from "./interactive-controller-B2VcB_SK.js";
|
|
3
3
|
import { _ as StateError, a as EgressProxyRecoveryError, b as ValidationError, c as KeyBudgetExhaustedError, d as NotFoundError, f as PartialFailureError, g as ServerError, h as SandboxError, i as EdgeNotReadyError, m as ResumeEnvRequiredError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as StreamInterruptedError, y as TimeoutError } from "./errors-DSJBKmGZ.js";
|
|
4
|
-
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, r as RunsClient, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-
|
|
4
|
+
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, r as RunsClient, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-CdNw2DEF.js";
|
|
5
5
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
6
|
-
import { C as ManagedProcessClient, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, M as exportTraceBundle, N as otelTraceIdForTangleTrace, P as toOtelJson, S as isToolBearingEvent, T as splitInlineProfileFileMounts, _ as SandboxOperationFailedError, b as collectAgentResponseText, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as SandboxOperation, h as createInteractiveTerminalSession, j as buildTraceExportPayload, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as applySandboxEventText, w as materializeProfileFileMounts, x as getSandboxEventText, y as collectAgentFinalMessageText } from "./sandbox-
|
|
6
|
+
import { C as ManagedProcessClient, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, M as exportTraceBundle, N as otelTraceIdForTangleTrace, P as toOtelJson, S as isToolBearingEvent, T as splitInlineProfileFileMounts, _ as SandboxOperationFailedError, b as collectAgentResponseText, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as SandboxOperation, h as createInteractiveTerminalSession, j as buildTraceExportPayload, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as applySandboxEventText, w as materializeProfileFileMounts, x as getSandboxEventText, y as collectAgentFinalMessageText } from "./sandbox-BGyIDjUH.js";
|
|
7
7
|
import { LinesClient, SandboxLines, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
8
8
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
9
9
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DZCyTGdn.js";
|
|
10
10
|
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-UtPFP0o4.js";
|
|
11
|
-
import { s as TangleSandboxClient } from "./tangle-
|
|
11
|
+
import { s as TangleSandboxClient } from "./tangle-9PQPjv8y.js";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
14
14
|
//#region src/confidential.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as CreateSandboxOptions, d as BackendConfig } from "./types-
|
|
1
|
+
import { B as CreateSandboxOptions, d as BackendConfig } from "./types-Bal6rlUP.js";
|
|
2
2
|
|
|
3
3
|
//#region src/line-application.d.ts
|
|
4
4
|
/** Bounded callback request bytes after canonicalization, including JSON framing. */
|
package/dist/lines.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, D as LineRespondView, E as LineRespondAgent, F as LineVoice, I as LineVoiceOptions, L as LinesClient, M as LineSenderVerificationStart, N as LineThread, O as LineRole, P as LineTransport, R as LinesHttpClient, S as LineReminderPreferences, T as LineReplyGate, V as profileChannelReference, _ as LineMemberPatch, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, i as LineAllowanceSubject, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, m as LineLimits, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineInstanceCreate, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMemberSpec, w as LineReplyCodeInput, x as LineProvider, y as LineMessage, z as SandboxLines } from "./lines-
|
|
1
|
+
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, D as LineRespondView, E as LineRespondAgent, F as LineVoice, I as LineVoiceOptions, L as LinesClient, M as LineSenderVerificationStart, N as LineThread, O as LineRole, P as LineTransport, R as LinesHttpClient, S as LineReminderPreferences, T as LineReplyGate, V as profileChannelReference, _ as LineMemberPatch, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, i as LineAllowanceSubject, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, m as LineLimits, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineInstanceCreate, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMemberSpec, w as LineReplyCodeInput, x as LineProvider, y as LineMessage, z as SandboxLines } from "./lines-CodL_Yhd.js";
|
|
2
2
|
export { Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplicationAttachOptions, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineLimits, LineMember, LineMemberInstance, LineMemberPatch, LineMemberSpec, LineMessage, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineReplyGate, LineRespondAgent, LineRespondView, LineRole, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LineThread, LineTransport, LineVoice, LineVoiceOptions, LinesClient, LinesHttpClient, SandboxLines, lineInstanceKey, profileChannelReference };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bn as ManagedProcessSpec, In as ManagedProcessJobs, Ln as ManagedProcessOptions, Rn as ManagedProcessRecord, zn as ManagedProcessResumeOptions } from "./types-
|
|
1
|
+
import { Bn as ManagedProcessSpec, In as ManagedProcessJobs, Ln as ManagedProcessOptions, Rn as ManagedProcessRecord, zn as ManagedProcessResumeOptions } from "./types-Bal6rlUP.js";
|
|
2
2
|
|
|
3
3
|
//#region src/managed-process.d.ts
|
|
4
4
|
declare class ManagedProcessClient implements ManagedProcessJobs {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { Yn as PreviewLinkInfo, vt as EnsureDevServerOptions } from "./types-
|
|
3
|
-
import { i as Sandbox } from "./client-
|
|
1
|
+
import { n as SandboxInstance } from "./sandbox-I390rjrp.js";
|
|
2
|
+
import { Yn as PreviewLinkInfo, vt as EnsureDevServerOptions } from "./types-Bal6rlUP.js";
|
|
3
|
+
import { i as Sandbox } from "./client-C7KaqyfN.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/preview-operations.d.ts
|
|
6
6
|
type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Cn as HttpClient, _r as PublishPublicTemplateVersionOptions, gr as PublishPublicTemplateOptions, hr as PublicTemplateVersionInfo, mr as PublicTemplateInfo } from "./types-
|
|
2
|
-
import { h as SandboxError } from "./errors-
|
|
1
|
+
import { Cn as HttpClient, _r as PublishPublicTemplateVersionOptions, gr as PublishPublicTemplateOptions, hr as PublicTemplateVersionInfo, mr as PublicTemplateInfo } from "./types-Bal6rlUP.js";
|
|
2
|
+
import { h as SandboxError } from "./errors-BSmxfVt0.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/public-templates.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
1
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CAMfH_Yr.js";
|
|
2
2
|
export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
|
|
@@ -123,10 +123,12 @@ const manifestBase = z.object({
|
|
|
123
123
|
rootScope: scope,
|
|
124
124
|
path: text
|
|
125
125
|
})),
|
|
126
|
+
omitContent: z.array(text).optional(),
|
|
126
127
|
files: z.array(metadata.extend({
|
|
127
128
|
sha256: digest.optional(),
|
|
128
129
|
linkTarget: z.string().optional(),
|
|
129
|
-
content: payload.optional()
|
|
130
|
+
content: payload.optional(),
|
|
131
|
+
contentOmitted: z.literal(true).optional()
|
|
130
132
|
})),
|
|
131
133
|
excluded: z.array(metadata.extend({ reason: z.literal("credential") })),
|
|
132
134
|
skipped: z.array(z.object({
|
|
@@ -212,6 +214,8 @@ const manifestSchema = z.union([
|
|
|
212
214
|
manifestNative
|
|
213
215
|
]);
|
|
214
216
|
const MAX_METADATA = 64 * 1024 * 1024;
|
|
217
|
+
/** Encoded `omitContent` query bound, well inside common request-line limits. */
|
|
218
|
+
const MAX_OMIT_CONTENT_QUERY_BYTES = 8 * 1024;
|
|
215
219
|
const MAX_RECORD = 16 * 1024 * 1024;
|
|
216
220
|
async function exportRawEvidenceDirectory(request, subject, targetDirectory, options, expected) {
|
|
217
221
|
const sessionId = typeof subject === "string" ? subject : void 0;
|
|
@@ -222,6 +226,9 @@ async function exportRawEvidenceDirectory(request, subject, targetDirectory, opt
|
|
|
222
226
|
})) if (!Number.isSafeInteger(value) || value <= 0) throw new Error(`${name} must be a positive safe integer`);
|
|
223
227
|
if (options.maxFiles > 1e6) throw new Error("maxFiles exceeds 1000000");
|
|
224
228
|
if ("parts" in options && options.parts !== void 0 && (options.parts !== "native" || !options.copy)) throw new Error("parts must be native, together with copy");
|
|
229
|
+
const omitContent = "omitContent" in options ? options.omitContent : void 0;
|
|
230
|
+
if (omitContent !== void 0 && (omitContent.length > 64 || "parts" in options && options.parts !== void 0 || !omitContent.every((prefix) => prefix.length <= 512 && prefix.endsWith("/") && safePath.safeParse(prefix.slice(0, -1)).success))) throw new Error("omitContent must list at most 64 relative directory paths of at most 512 characters that end in /, without parts");
|
|
231
|
+
if (omitContent !== void 0 && new URLSearchParams(omitContent.map((prefix) => ["omitContent", prefix])).toString().length > MAX_OMIT_CONTENT_QUERY_BYTES) throw new Error(`omitContent encodes to more than ${MAX_OMIT_CONTENT_QUERY_BYTES} query bytes; name fewer or shorter directories`);
|
|
225
232
|
options.signal?.throwIfAborted();
|
|
226
233
|
const fs = await import("node:fs/promises");
|
|
227
234
|
const { dirname, join, resolve } = await import("node:path");
|
|
@@ -412,7 +419,10 @@ async function exportRawEvidenceDirectory(request, subject, targetDirectory, opt
|
|
|
412
419
|
const ids = new Set(session.attempts.flatMap((attempt) => attempt.nativeSessionIds));
|
|
413
420
|
const aggregateId = ids.size === 1 && session.attempts.every((attempt) => attempt.nativeSessionIds.length === 1) ? [...ids][0] : null;
|
|
414
421
|
if (session.nativeSessionId !== aggregateId) throw new Error("Evidence native session ID mismatch");
|
|
415
|
-
|
|
422
|
+
if (session.omitContent !== void 0 && JSON.stringify(session.omitContent) !== JSON.stringify(omitContent)) throw new Error("Evidence content omission does not match the request");
|
|
423
|
+
for (const item of session.files) if (item.contentOmitted) {
|
|
424
|
+
if (item.kind !== "file" || item.content || item.sha256 || item.rootScope !== "session-home" || !omitContent?.some((prefix) => item.path.startsWith(prefix))) throw new Error("Evidence native content omission mismatch");
|
|
425
|
+
} else if (item.kind === "file") {
|
|
416
426
|
if (!item.content || item.sha256 !== item.content.sha256 || item.sizeBytes !== item.content.sizeBytes) throw new Error("Evidence native payload mismatch");
|
|
417
427
|
verify(item.content);
|
|
418
428
|
} else if (item.content || item.sha256 || item.kind === "symlink" && item.linkTarget === void 0) throw new Error("Evidence native metadata mismatch");
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $a as WriteFileOptions, A as CommitTaskSessionOptions, Fa as TaskSessionInfo, Fi as SandboxRuntimeHealth, Ft as FileWriteResult, H as CreateTaskSessionOptions, Hi as SandboxTerminalInfo, Hr as SandboxEvent, Ja as UploadProgress, Ma as TaskSessionChanges, Mt as FileTreeResult, Na as TaskSessionCommitResult, Nt as FileUsageOptions, Oi as SandboxPortBinding, Ot as FileRenameResult, Pt as FileUsageResult, Sr as RenameOptions, T as ChunkedUploadResult, Tt as FileReadBatchResult, Ui as SandboxTerminalManager, V as CreateSessionOptions, Vi as SandboxTerminalCreateOptions, Wi as SandboxTerminalRequestOptions, aa as SessionEventStreamOptions, jn as ListMessagesOptions, jt as FileTreeOptions, ma as SessionMessageAdmission, na as SendSessionMessageRequest, oa as SessionExecutionInfo, pa as SessionMessage, ra as SentSessionMessage, sa as SessionExecutionStatus, ta as SendSessionMessageOptions, ua as SessionInfo, w as ChunkedUploadOptions, wt as FileReadBatchOptions } from "./types-
|
|
1
|
+
import { $a as WriteFileOptions, A as CommitTaskSessionOptions, Fa as TaskSessionInfo, Fi as SandboxRuntimeHealth, Ft as FileWriteResult, H as CreateTaskSessionOptions, Hi as SandboxTerminalInfo, Hr as SandboxEvent, Ja as UploadProgress, Ma as TaskSessionChanges, Mt as FileTreeResult, Na as TaskSessionCommitResult, Nt as FileUsageOptions, Oi as SandboxPortBinding, Ot as FileRenameResult, Pt as FileUsageResult, Sr as RenameOptions, T as ChunkedUploadResult, Tt as FileReadBatchResult, Ui as SandboxTerminalManager, V as CreateSessionOptions, Vi as SandboxTerminalCreateOptions, Wi as SandboxTerminalRequestOptions, aa as SessionEventStreamOptions, jn as ListMessagesOptions, jt as FileTreeOptions, ma as SessionMessageAdmission, na as SendSessionMessageRequest, oa as SessionExecutionInfo, pa as SessionMessage, ra as SentSessionMessage, sa as SessionExecutionStatus, ta as SendSessionMessageOptions, ua as SessionInfo, w as ChunkedUploadOptions, wt as FileReadBatchOptions } from "./types-Bal6rlUP.js";
|
|
2
2
|
import { n as TerminalStream, p as ScopedToken } from "./terminal-stream-DgD7GlFi.js";
|
|
3
3
|
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-B6sySQFu.js";
|
|
4
4
|
import { t as BrowserInteractiveSessionController } from "./interactive-controller-BSWoA0YE.js";
|
|
5
|
-
import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, v as ServerError, y as StateError } from "./errors-
|
|
6
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
5
|
+
import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, v as ServerError, y as StateError } from "./errors-BSmxfVt0.js";
|
|
6
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-BjZ1EHSq.js";
|
|
7
7
|
|
|
8
8
|
//#region src/lib/chunked-upload.d.ts
|
|
9
9
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
|
@@ -9377,16 +9377,17 @@ var SandboxInstance = class SandboxInstance {
|
|
|
9377
9377
|
}
|
|
9378
9378
|
/** @internal — invoked before the sandbox is deleted. */
|
|
9379
9379
|
async _sessionExportRawEvidence(id, destination, options) {
|
|
9380
|
-
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-
|
|
9380
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-Bxk6fUjS.js");
|
|
9381
9381
|
await this.ensureRunning();
|
|
9382
9382
|
await this.refresh();
|
|
9383
|
-
return exportRawEvidenceDirectory((signal) => this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/raw-evidence/archive?${new URLSearchParams(
|
|
9384
|
-
maxBytes
|
|
9385
|
-
maxFiles
|
|
9386
|
-
...options.copy ?
|
|
9387
|
-
...options.executionId ?
|
|
9388
|
-
...options.parts ?
|
|
9389
|
-
|
|
9383
|
+
return exportRawEvidenceDirectory((signal) => this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/raw-evidence/archive?${new URLSearchParams([
|
|
9384
|
+
["maxBytes", String(options.maxBytes)],
|
|
9385
|
+
["maxFiles", String(options.maxFiles)],
|
|
9386
|
+
...options.copy ? [["copy", options.copy]] : [],
|
|
9387
|
+
...options.executionId ? [["executionId", options.executionId]] : [],
|
|
9388
|
+
...options.parts ? [["parts", options.parts]] : [],
|
|
9389
|
+
...(options.omitContent ?? []).map((prefix) => ["omitContent", prefix])
|
|
9390
|
+
])}`, {
|
|
9390
9391
|
method: "GET",
|
|
9391
9392
|
signal
|
|
9392
9393
|
}), id, destination, options, this.#info.captureProof);
|
|
@@ -9404,7 +9405,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
9404
9405
|
* and the byte and file bounds are verified before the directory appears.
|
|
9405
9406
|
*/
|
|
9406
9407
|
async exportRawEvidence(destination, options) {
|
|
9407
|
-
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-
|
|
9408
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-Bxk6fUjS.js");
|
|
9408
9409
|
await this.ensureRunning();
|
|
9409
9410
|
await this.refresh();
|
|
9410
9411
|
return exportRawEvidenceDirectory((signal) => this.runtimeFetch(`/agents/raw-evidence/archive?${new URLSearchParams({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as CliAuthReference } from "./cli-auth-bundle-BKsrsbxy.js";
|
|
2
|
-
import { $a as WriteFileOptions, $t as ForkCounts, A as CommitTaskSessionOptions, An as JsonValue, Bi as SandboxTerminalAttachOptions, C as BranchOptions, Ca as SnapshotProvenance, Ci as SandboxInfo, Cn as HttpClient, Cr as RestoreSnapshotOptions, D as CodeExecutionResult, Da as StartupDiagnostics, Di as SandboxOperationState, Dn as IntelligenceReportCompareTo, Dr as RolloutOptions, E as CodeExecutionOptions, Ei as SandboxOperationKind, En as IntelligenceReportBudget, Fa as TaskSessionInfo, Fi as SandboxRuntimeHealth, Ft as FileWriteResult, Ga as TurnDriveResult, Gi as SandboxTerminals, Gn as NetworkManager, H as CreateTaskSessionOptions, Hr as SandboxEvent, Ii as SandboxShape, Ir as SandboxConnection, Jn as PermissionsManager, Ki as SandboxTraceBundle, La as TeeAttestationOptions, Lr as SandboxDeleteAcknowledgement, M as ConversationTurnOptions, Ma as TaskSessionChanges, N as ConversationTurnResult, Na as TaskSessionCommitResult, Nr as SSHCommandDescriptor, O as CodeLanguage, Oi as SandboxPortBinding, Pi as SandboxRuntimeCapabilities, Pr as SSHCredentials, Q as DispatchedSession, Qa as WorkspaceOperationLookup, Qi as SearchOptions, Rr as SandboxDeleteOptions, Sa as SnapshotOptions, St as ExecResult, Ta as SnapshotResult, Ti as SandboxOperationInfo, Tn as IntelligenceReport, Tr as Rollout, V as CreateSessionOptions, Va as TeePublicKeyResponse, Wa as TurnBackendConfig, Xa as WaitForOptions, Xn as PreviewLinkManager, Yi as SandboxTraceOptions, Z as DispatchPromptOptions, Za as WaitForRolloutOptions, Zi as SearchMatch, aa as SessionEventStreamOptions, an as GitCommit, ao as SandboxEnvRecovery, at as DriverInfo, cn as GitStatus, cr as PromptResult, ct as DurablePlanDecisionOptions, d as BackendConfig, da as SessionInterruptOptions, do as RawEvidenceBoxDirectoryExport, en as ForkIdempotency, eo as WriteManyFile, fa as SessionListOptions, fo as RawEvidenceBoxExportOptions, ga as SessionResultOptions, gt as EgressManager, in as GitBranch, io as SandboxCreateReceipt, j as CompletedTurnResult, ji as SandboxResourceUsage, jn as ListMessagesOptions, ka as StopOptions, kn as IntelligenceReportWindow, kr as RolloutStartResult, kt as FileSystem, la as SessionForkOptions, ln as GpuLease, lr as ProvisionEvent, lt as DurablePlanDecisionResult, ma as SessionMessageAdmission, mn as GpuLeaseManager, mo as RawEvidenceExportOptions, na as SendSessionMessageRequest, nr as ProcessManager, oa as SessionExecutionInfo, oo as SandboxEnvRecoveryView, or as PromptInputPart, p as BackendManager, pa as SessionMessage, pi as SandboxFleetTraceBundle, po as RawEvidenceDirectoryExport, pr as PublicProfileConflict, ra as SentSessionMessage, rt as DriveTurnOptions, sn as GitDiff, sr as PromptOptions, st as DurablePlan, ta as SendSessionMessageOptions, tn as ForkLookupOptions, to as WriteManyOptions, ua as SessionInfo, ur as ProvisionResult, va as SnapshotDeleteAcknowledgement, vo as WorkspaceImagePublishResult$1, wn as InstalledTool, wr as ResumeOptions, xa as SnapshotInfo, xt as ExecOptions, yo as InteractionResolutionAcknowledgement, yt as EventStreamOptions, za as TeeAttestationResponse, zi as SandboxStatus } from "./types-
|
|
2
|
+
import { $a as WriteFileOptions, $t as ForkCounts, A as CommitTaskSessionOptions, An as JsonValue, Bi as SandboxTerminalAttachOptions, C as BranchOptions, Ca as SnapshotProvenance, Ci as SandboxInfo, Cn as HttpClient, Cr as RestoreSnapshotOptions, D as CodeExecutionResult, Da as StartupDiagnostics, Di as SandboxOperationState, Dn as IntelligenceReportCompareTo, Dr as RolloutOptions, E as CodeExecutionOptions, Ei as SandboxOperationKind, En as IntelligenceReportBudget, Fa as TaskSessionInfo, Fi as SandboxRuntimeHealth, Ft as FileWriteResult, Ga as TurnDriveResult, Gi as SandboxTerminals, Gn as NetworkManager, H as CreateTaskSessionOptions, Hr as SandboxEvent, Ii as SandboxShape, Ir as SandboxConnection, Jn as PermissionsManager, Ki as SandboxTraceBundle, La as TeeAttestationOptions, Lr as SandboxDeleteAcknowledgement, M as ConversationTurnOptions, Ma as TaskSessionChanges, N as ConversationTurnResult, Na as TaskSessionCommitResult, Nr as SSHCommandDescriptor, O as CodeLanguage, Oi as SandboxPortBinding, Pi as SandboxRuntimeCapabilities, Pr as SSHCredentials, Q as DispatchedSession, Qa as WorkspaceOperationLookup, Qi as SearchOptions, Rr as SandboxDeleteOptions, Sa as SnapshotOptions, St as ExecResult, Ta as SnapshotResult, Ti as SandboxOperationInfo, Tn as IntelligenceReport, Tr as Rollout, V as CreateSessionOptions, Va as TeePublicKeyResponse, Wa as TurnBackendConfig, Xa as WaitForOptions, Xn as PreviewLinkManager, Yi as SandboxTraceOptions, Z as DispatchPromptOptions, Za as WaitForRolloutOptions, Zi as SearchMatch, aa as SessionEventStreamOptions, an as GitCommit, ao as SandboxEnvRecovery, at as DriverInfo, cn as GitStatus, cr as PromptResult, ct as DurablePlanDecisionOptions, d as BackendConfig, da as SessionInterruptOptions, do as RawEvidenceBoxDirectoryExport, en as ForkIdempotency, eo as WriteManyFile, fa as SessionListOptions, fo as RawEvidenceBoxExportOptions, ga as SessionResultOptions, gt as EgressManager, in as GitBranch, io as SandboxCreateReceipt, j as CompletedTurnResult, ji as SandboxResourceUsage, jn as ListMessagesOptions, ka as StopOptions, kn as IntelligenceReportWindow, kr as RolloutStartResult, kt as FileSystem, la as SessionForkOptions, ln as GpuLease, lr as ProvisionEvent, lt as DurablePlanDecisionResult, ma as SessionMessageAdmission, mn as GpuLeaseManager, mo as RawEvidenceExportOptions, na as SendSessionMessageRequest, nr as ProcessManager, oa as SessionExecutionInfo, oo as SandboxEnvRecoveryView, or as PromptInputPart, p as BackendManager, pa as SessionMessage, pi as SandboxFleetTraceBundle, po as RawEvidenceDirectoryExport, pr as PublicProfileConflict, ra as SentSessionMessage, rt as DriveTurnOptions, sn as GitDiff, sr as PromptOptions, st as DurablePlan, ta as SendSessionMessageOptions, tn as ForkLookupOptions, to as WriteManyOptions, ua as SessionInfo, ur as ProvisionResult, va as SnapshotDeleteAcknowledgement, vo as WorkspaceImagePublishResult$1, wn as InstalledTool, wr as ResumeOptions, xa as SnapshotInfo, xt as ExecOptions, yo as InteractionResolutionAcknowledgement, yt as EventStreamOptions, za as TeeAttestationResponse, zi as SandboxStatus } from "./types-Bal6rlUP.js";
|
|
3
3
|
import { c as TerminalStreamReconnectAuthority, f as MintScopedTokenOptions, n as TerminalStream, o as TerminalStreamHandlers, p as ScopedToken, y as TerminalReadyInfo } from "./terminal-stream-DgD7GlFi.js";
|
|
4
4
|
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-B6sySQFu.js";
|
|
5
5
|
import { r as InteractiveAttachRequest } from "./interactive-controller-BSWoA0YE.js";
|
|
6
|
-
import { z as SandboxLines } from "./lines-
|
|
7
|
-
import { h as SandboxError } from "./errors-
|
|
6
|
+
import { z as SandboxLines } from "./lines-CodL_Yhd.js";
|
|
7
|
+
import { h as SandboxError } from "./errors-BSmxfVt0.js";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimAcknowledgement, AgentInteractiveSessionControlClaimRequest, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStopAcknowledgement, AgentInteractiveSessionStopCommand, AgentInteractiveTerminalSession, AgentInteractiveTerminalSession as AgentInteractiveTerminalSession$1, AgentProfile, AgentProfileFileMount, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand, TerminalOutputEvent, TerminalReplayWindow, agentInteractiveSessionPromptRequestDigest } from "@tangle-network/agent-interface";
|
|
10
10
|
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-
|
|
1
|
+
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-BiJDEVsu.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JobQuoteDetails, JsonResponseParamTypes, OperatorChallenge, OperatorSession, OperatorSessionError, OperatorSessionToken, QuoteDomain, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, SignMessage, SignedQuote, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-9PQPjv8y.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as readResponseJson } from "./errors-DSJBKmGZ.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-BGyIDjUH.js";
|
|
3
3
|
import { _ as rotlBH, a as anumber, b as rotlSL, d as createXOFer, g as u32, h as toBytes$1, l as createHasher, m as swap32IfBE, n as abytes, o as aoutput, r as aexists, s as clean, t as Hash, v as rotlBL, x as split, y as rotlSH } from "./utils-B6gap92T.js";
|
|
4
4
|
//#region src/tangle/abi.ts
|
|
5
5
|
/**
|
|
@@ -1242,6 +1242,11 @@ type RawEvidenceNativeFile = RawEvidenceNativeMetadata & {
|
|
|
1242
1242
|
sha256?: string;
|
|
1243
1243
|
linkTarget?: string; /** Replaces contentBase64 for regular files. Symlinks remain metadata only. */
|
|
1244
1244
|
content?: RawEvidencePayloadFile;
|
|
1245
|
+
/**
|
|
1246
|
+
* The request's `omitContent` names this file's directory: the file has
|
|
1247
|
+
* its metadata and no `content` or `sha256`, and its bytes stay on the box.
|
|
1248
|
+
*/
|
|
1249
|
+
contentOmitted?: true;
|
|
1245
1250
|
};
|
|
1246
1251
|
interface RawEvidenceArchiveAttempt {
|
|
1247
1252
|
executionId: string;
|
|
@@ -1278,6 +1283,12 @@ interface RawEvidenceArchiveManifest {
|
|
|
1278
1283
|
rootScope: "session-home" | "workspace-session";
|
|
1279
1284
|
path: string;
|
|
1280
1285
|
}>;
|
|
1286
|
+
/**
|
|
1287
|
+
* The request's `omitContent` prefixes, present only when it named some.
|
|
1288
|
+
* A prefix that covers or enters the harness's native session store is
|
|
1289
|
+
* refused with 400, so the session store always keeps its bytes.
|
|
1290
|
+
*/
|
|
1291
|
+
omitContent?: string[];
|
|
1281
1292
|
files: RawEvidenceNativeFile[];
|
|
1282
1293
|
excluded: Array<RawEvidenceNativeMetadata & {
|
|
1283
1294
|
reason: "credential";
|
|
@@ -1432,6 +1443,18 @@ interface RawEvidenceExportOptions {
|
|
|
1432
1443
|
* ignores it and serves the full archive, within the same bounds.
|
|
1433
1444
|
*/
|
|
1434
1445
|
parts?: "native";
|
|
1446
|
+
/**
|
|
1447
|
+
* Session-HOME-relative directory prefixes, each ending in `/` (for
|
|
1448
|
+
* example `.codex/plugins/cache/`). The HOME walk names each file below
|
|
1449
|
+
* one with its metadata and `contentOmitted: true`, and never reads its
|
|
1450
|
+
* bytes. Use it for directories a harness downloads again, so their bytes
|
|
1451
|
+
* do not cross the network. At most 64 prefixes of at most 512 characters;
|
|
1452
|
+
* not with `parts`. A prefix that covers or enters the harness's native
|
|
1453
|
+
* session store is refused. A sidecar older than the option ignores it and
|
|
1454
|
+
* sends every file's bytes, so keep `maxBytes` sized for the whole HOME
|
|
1455
|
+
* until every sidecar serves the option.
|
|
1456
|
+
*/
|
|
1457
|
+
omitContent?: readonly string[];
|
|
1435
1458
|
/** Bound all archive file entries, including empty files. */
|
|
1436
1459
|
maxFiles: number;
|
|
1437
1460
|
/** Compressed transport bound; defaults to maxBytes plus bounded tar overhead. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.62.
|
|
3
|
+
"version": "0.62.14",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -160,16 +160,16 @@
|
|
|
160
160
|
"ws": "^8.20.0",
|
|
161
161
|
"yjs": "13.6.30",
|
|
162
162
|
"@products/sandbox-test-utils": "0.0.0",
|
|
163
|
-
"@
|
|
163
|
+
"@repo/shared": "0.0.0",
|
|
164
|
+
"@tangle-network/agent-profile-materialize": "0.26.0",
|
|
164
165
|
"@tangle-network/cli-agent-registry": "0.10.2",
|
|
166
|
+
"@tangle-network/runtime-contracts": "0.19.0",
|
|
165
167
|
"@tangle-network/sdk": "4.0.16",
|
|
166
|
-
"@tangle-network/sse-core": "0.0.0"
|
|
167
|
-
"@tangle-network/agent-profile-materialize": "0.26.0",
|
|
168
|
-
"@repo/shared": "0.0.0"
|
|
168
|
+
"@tangle-network/sse-core": "0.0.0"
|
|
169
169
|
},
|
|
170
170
|
"tangleRelease": {
|
|
171
|
-
"sourceSha": "
|
|
172
|
-
"mergedAt": "2026-10-
|
|
171
|
+
"sourceSha": "9d0e11dcdc3ee03a7a61ac5b4d8baa96d263cdc5",
|
|
172
|
+
"mergedAt": "2026-10-19T12:50:10-06:00"
|
|
173
173
|
},
|
|
174
174
|
"scripts": {
|
|
175
175
|
"build": "node scripts/build-dist.mjs",
|