@tangle-network/sandbox 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +5 -5
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +3 -3
- package/dist/{agent-run-outcome-I1nMkkrz.d.ts → agent-run-outcome-DQjHjmTQ.d.ts} +2 -2
- package/dist/{api-request-EseiF9B1.js → api-request-DNrodWdz.js} +1 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{browser-interactive-control-controller-Bt1vcu9c.js → browser-interactive-control-controller-EhML8YjF.js} +186 -2131
- package/dist/{browser-interactive-control-controller-CVnME80O.d.ts → browser-interactive-control-controller-i9JtmJDf.d.ts} +1 -1
- package/dist/{chunked-upload-Df_5Q2x8.js → chunked-upload-KRWmiJsw.js} +1 -1
- package/dist/{chunked-upload-file-Dtm1GBkE.js → chunked-upload-file-DPSyrGUb.js} +2 -2
- package/dist/cli-auth-bundle-V7sPQYej.js +1594 -0
- package/dist/{client-DEvdnu0z.d.ts → client-1bgxaNQD.d.ts} +5 -5
- package/dist/{client-kXxHARKu.js → client-DC1Q6oJb.js} +11 -11
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-BTGTf3We.js → collaboration-DPukGUcF.js} +1 -1
- package/dist/{core-DvYE_89H.js → core-0iCiDt_5.js} +5 -5
- package/dist/core.d.ts +6 -6
- package/dist/core.js +5 -5
- package/dist/{direct-http2-B0ra_xhU.js → direct-http2-C0H7zN9h.js} +1 -1
- package/dist/{errors-ZmDrrk4f.js → errors-BUPIDjn4.js} +1 -1
- package/dist/{sha2-BUPMvGTk.js → harness-DkCl2wJv.js} +417 -1
- package/dist/{index-C3GQDkDm.d.ts → index-vcweImuL.d.ts} +6 -6
- package/dist/index.d.ts +11 -11
- package/dist/index.js +11 -11
- package/dist/intelligence/index.js +2 -2
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-Bf8yrdzR.d.ts → interactive-controller-B16SZKZt.d.ts} +3 -3
- package/dist/{interactive-controller-BkfV4Cs_.js → interactive-controller-kZk52Eff.js} +19 -21
- package/dist/lib/prepared-evidence.js +1 -1
- package/dist/lib/prepared-process.js +1 -1
- package/dist/{lines-BqZOl_io.js → lines-BnAWHGX3.js} +1 -1
- package/dist/{lines-CA1IbRzE.d.ts → lines-BxCEZUkf.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/local-cli-auth-CJuKPr1j.js +29 -0
- package/dist/{mcp-local-BcRLN_Ic.js → mcp-local-C88efQL3.js} +1 -1
- package/dist/{prepared-evidence-CuUh_mz6.js → prepared-evidence-DC-M4WEF.js} +1 -1
- package/dist/{preview-DQs0Zh9L.d.ts → preview-QcwZWgzk.d.ts} +3 -3
- package/dist/{profile-schema-CT3hB1mG.js → profile-schema-1WmjXjE9.js} +23 -12
- package/dist/{public-templates-COGktcNu.d.ts → public-templates-GNIKn_wg.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/public-templates.js +1 -1
- package/dist/{raw-evidence-archive-CqarcYcp.js → raw-evidence-archive-Bc-OdA_Q.js} +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +5 -5
- package/dist/{sandbox-BAhF5QaX.js → sandbox-Qn9ScVvS.js} +46 -48
- package/dist/{secp256k1-CZWrpqxW.js → secp256k1-BGtA1PsN.js} +1 -1
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/select-seat-command.js +1 -1
- package/dist/session-gateway/index.js +3 -3
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-CwfZovBM.js → tangle-DOwUAne4.js} +4 -4
- package/dist/{terminal-stream-types-DwXQzUbH.d.ts → terminal-stream-types-BM5J4lt0.d.ts} +155 -769
- package/dist/{types-BF8se4_x.d.ts → types-MYaFNkH5.d.ts} +7 -7
- package/package.json +5 -5
- package/dist/cli-auth-bundle-KtV88h1f.js +0 -2597
- package/dist/harness-BD_OISom.js +0 -201
- package/dist/harness-DWL2MM4q.js +0 -418
- package/dist/local-cli-auth-g0wSTWf5.js +0 -36
- /package/dist/{abort-signal-jU-SEjLT.js → abort-signal-CDxyloxz.js} +0 -0
- /package/dist/{cli-auth-bundle-MskLEgtA.d.ts → cli-auth-bundle-CFZx0muA.d.ts} +0 -0
- /package/dist/{index-Dqcr9p97.d.ts → index-DnZdhFs2.d.ts} +0 -0
- /package/dist/{index-Dslyq85a.d.ts → index-rbeL2Rct.d.ts} +0 -0
- /package/dist/{keep-alive-fetch-C2DX2_rG.js → keep-alive-fetch-BbSFbRCd.js} +0 -0
- /package/dist/{prepared-process-LjBfQnZ5.js → prepared-process-BQUSksTH.js} +0 -0
- /package/dist/{preview-operations-BvgwYaoL.js → preview-operations-D2fXB_dc.js} +0 -0
- /package/dist/{response-rewrap-MBztoTLx.js → response-rewrap-CpNkboDX.js} +0 -0
- /package/dist/{retry-after-header-BZbs5rig.js → retry-after-header-DUdCC0KJ.js} +0 -0
- /package/dist/{sidecar-proxy-error-Dty4zmN7.js → sidecar-proxy-error-5DpLmHeN.js} +0 -0
- /package/dist/{sse-parser-CJ52bhG3.js → sse-parser-CKkE9zWy.js} +0 -0
- /package/dist/{utils-vaFoyyiO.js → utils-CoawKwX_.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-
|
|
2
|
-
import {
|
|
3
|
-
import { $n as TeeAttestationReport, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Bt as FleetDispatchCancelResult, En as SandboxFleetTraceBundle, Fa as GpuLeaseProviderName, Fi as SdkTimingHook, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Gi as BatchRunOptions, Gt as FleetExecDispatchResult, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, It as FleetAgentId, Jt as FleetPromptDispatchResult, Kt as FleetMachineId, M as UsageInfo, Mi as ManagedProcessSpec, Mn as SandboxFleetWorkspaceReconcileResult, Mt as AttachSandboxFleetMachineOptions, Nn as SandboxFleetWorkspaceRestoreResult, Nt as CreateSandboxFleetOptions, Oi as ManagedProcessJobs, Pi as HttpClient, Pn as SandboxFleetWorkspaceSnapshotResult, Pt as CreateSandboxFleetTokenOptions, Qt as ReapExpiredSandboxFleetsOptions, Rt as FleetAgentResult, Sn as SandboxFleetPolicy, T as SshKeysManager, Tn as SandboxFleetToken, Ut as FleetDispatchStreamOptions, Vt as FleetDispatchResultBuffer, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xi as CreateIntelligenceReportOptions, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Yt as FleetRunEvent, Z as TokenRefreshHandler, Zt as ListSandboxFleetOptions, _n as SandboxFleetManifest, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportCompareTo, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, ba as BackendConfig, bn as SandboxFleetParent, ca as PromptInputPart, cn as SandboxFleetDispatchResponse, cr as SandboxShapesInfo, da as SandboxEvent, dn as SandboxFleetInfo, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, fo as BatchResult, fr as SandboxShapePreset, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, hn as SandboxFleetMachineRecord, ho as PublicBatchRunRequest, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReportBudget, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, la as PromptOptions, ln as SandboxFleetDriverCapability, nn as SandboxFleetAgent, nt as ConversationTurnResult, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, or as SandboxConfig, pn as SandboxFleetMachine, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, ra as IntelligenceReport, sa as IntelligenceReportWindow, sr as SandboxResources, ti as ExecResult, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, ua as PromptResult, va as TurnBackendConfig, vo as BatchEvent, w as SecretsManager, wn as SandboxFleetSpend, yn as SandboxFleetOperationsSummary, zn as SandboxInfo } from "./types-
|
|
4
|
-
import { t as LinesClient } from "./lines-
|
|
5
|
-
import { a as PublicTemplatesClient } from "./public-templates-
|
|
1
|
+
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-vcweImuL.js";
|
|
2
|
+
import { G as AgentProfile, J as AgentProfileConfigValue, Ot as SandboxError, Q as AgentProfileMetadata, S as SandboxSizePreset, X as AgentProfileFileMount, Z as AgentProfileMcpServer, c as MintInteractiveSessionTokenOptions, it as AgentProfileSeat, j as AgentInteractiveSessionRef, q as AgentProfileConfidential, u as ScopedToken } from "./terminal-stream-types-BM5J4lt0.js";
|
|
3
|
+
import { $n as TeeAttestationReport, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Bt as FleetDispatchCancelResult, En as SandboxFleetTraceBundle, Fa as GpuLeaseProviderName, Fi as SdkTimingHook, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Gi as BatchRunOptions, Gt as FleetExecDispatchResult, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, It as FleetAgentId, Jt as FleetPromptDispatchResult, Kt as FleetMachineId, M as UsageInfo, Mi as ManagedProcessSpec, Mn as SandboxFleetWorkspaceReconcileResult, Mt as AttachSandboxFleetMachineOptions, Nn as SandboxFleetWorkspaceRestoreResult, Nt as CreateSandboxFleetOptions, Oi as ManagedProcessJobs, Pi as HttpClient, Pn as SandboxFleetWorkspaceSnapshotResult, Pt as CreateSandboxFleetTokenOptions, Qt as ReapExpiredSandboxFleetsOptions, Rt as FleetAgentResult, Sn as SandboxFleetPolicy, T as SshKeysManager, Tn as SandboxFleetToken, Ut as FleetDispatchStreamOptions, Vt as FleetDispatchResultBuffer, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xi as CreateIntelligenceReportOptions, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Yt as FleetRunEvent, Z as TokenRefreshHandler, Zt as ListSandboxFleetOptions, _n as SandboxFleetManifest, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportCompareTo, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, ba as BackendConfig, bn as SandboxFleetParent, ca as PromptInputPart, cn as SandboxFleetDispatchResponse, cr as SandboxShapesInfo, da as SandboxEvent, dn as SandboxFleetInfo, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, fo as BatchResult, fr as SandboxShapePreset, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, hn as SandboxFleetMachineRecord, ho as PublicBatchRunRequest, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReportBudget, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, la as PromptOptions, ln as SandboxFleetDriverCapability, nn as SandboxFleetAgent, nt as ConversationTurnResult, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, or as SandboxConfig, pn as SandboxFleetMachine, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, ra as IntelligenceReport, sa as IntelligenceReportWindow, sr as SandboxResources, ti as ExecResult, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, ua as PromptResult, va as TurnBackendConfig, vo as BatchEvent, w as SecretsManager, wn as SandboxFleetSpend, yn as SandboxFleetOperationsSummary, zn as SandboxInfo } from "./types-MYaFNkH5.js";
|
|
4
|
+
import { t as LinesClient } from "./lines-BxCEZUkf.js";
|
|
5
|
+
import { a as PublicTemplatesClient } from "./public-templates-GNIKn_wg.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/backend-registry.d.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-CLvdSX8V.js";
|
|
2
|
-
import {
|
|
3
|
-
import { D as
|
|
4
|
-
import {
|
|
5
|
-
import { E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, c as CompliancePlacementError, f as GpuProviderNotConfiguredError, g as NotFoundError, h as NetworkError, i as readResponseJson, m as NON_RETRYABLE_CREATE_QUOTA_REASONS, n as parseErrorResponse, r as parseResponseError, x as SandboxError, y as QuotaError } from "./errors-
|
|
6
|
-
import { n as combineAbortSignals } from "./abort-signal-
|
|
7
|
-
import { t as fetchSandboxApi } from "./api-request-
|
|
8
|
-
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-
|
|
9
|
-
import { t as parseSSEStream } from "./sse-parser-
|
|
10
|
-
import { t as LinesClient } from "./lines-
|
|
2
|
+
import { r as agentProfileSchema } from "./profile-schema-1WmjXjE9.js";
|
|
3
|
+
import { A as normalizeStartupDiagnostics, D as isRetryableProfileFileMaterializeFailure, E as validateDeferredProfileFileMounts, M as normalizeConnection, N as normalizeEgressPolicyFields, O as normalizeCaptureProof, P as normalizeSandboxShape, T as splitInlineProfileSkills, j as parseStopPhase, k as normalizeSandboxCreateReceipt, n as createSandboxInstanceFromResponse, o as exportTraceBundle, w as splitInlineProfileFileMounts } from "./sandbox-Qn9ScVvS.js";
|
|
4
|
+
import { D as foldModelRoutingFields, E as assertCurrentBackendType, M as withProfileHarness, N as withoutCreateOnlyModelFields, S as encodePromptForWire, T as applyRequestedModel, k as normalizeRuntimeBackendConfig, o as requestInteractiveSessionToken } from "./interactive-controller-kZk52Eff.js";
|
|
5
|
+
import { E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, c as CompliancePlacementError, f as GpuProviderNotConfiguredError, g as NotFoundError, h as NetworkError, i as readResponseJson, m as NON_RETRYABLE_CREATE_QUOTA_REASONS, n as parseErrorResponse, r as parseResponseError, x as SandboxError, y as QuotaError } from "./errors-BUPIDjn4.js";
|
|
6
|
+
import { n as combineAbortSignals } from "./abort-signal-CDxyloxz.js";
|
|
7
|
+
import { t as fetchSandboxApi } from "./api-request-DNrodWdz.js";
|
|
8
|
+
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-BbSFbRCd.js";
|
|
9
|
+
import { t as parseSSEStream } from "./sse-parser-CKkE9zWy.js";
|
|
10
|
+
import { t as LinesClient } from "./lines-BnAWHGX3.js";
|
|
11
11
|
import { PublicTemplatesClient } from "./public-templates.js";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
//#region ../../../packages/runtime-contracts/dist/git-policy.js
|
|
@@ -1317,11 +1317,11 @@ function isLocalSandboxEndpoint(baseUrl) {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
}
|
|
1319
1319
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
1320
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
1320
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-CJuKPr1j.js");
|
|
1321
1321
|
return discoverLocalCliAuthFiles(backendType);
|
|
1322
1322
|
}
|
|
1323
1323
|
async function loadLocalCliAuthExpectation(backendType) {
|
|
1324
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
1324
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-CJuKPr1j.js");
|
|
1325
1325
|
return describe(backendType);
|
|
1326
1326
|
}
|
|
1327
1327
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-DnZdhFs2.js";
|
|
2
2
|
export { CollaborationBootstrapRequest, CollaborationBootstrapResponse, CollaborationClient, CollaborationClientConfig, CollaborationDocumentAdapter, CollaborationDocumentChange, CollaborationDocumentRef, CollaborationFileBridge, CollaborationFileBridgeOptions, CollaborationFileEvent, CollaborationPermissions, CollaborationTokenRefreshRequest, CollaborationTokenRefreshResponse, CollaborationTransportConfig, SaveCollaborationSnapshotRequest, SaveCollaborationSnapshotResponse, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-
|
|
1
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-DPukGUcF.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TimeoutError, h as NetworkError, n as parseErrorResponse } from "./errors-
|
|
1
|
+
import { T as TimeoutError, h as NetworkError, n as parseErrorResponse } from "./errors-BUPIDjn4.js";
|
|
2
2
|
//#region src/collaboration/client.ts
|
|
3
3
|
const DEFAULT_TIMEOUT_MS = 3e4;
|
|
4
4
|
function normalizeBaseUrl(url) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { r as agentProfileSchema } from "./profile-schema-1WmjXjE9.js";
|
|
2
|
+
import { F as canonicalAgentProfileDigest } from "./sandbox-Qn9ScVvS.js";
|
|
3
|
+
import { E as ValidationError, s as CapabilityError, x as SandboxError } from "./errors-BUPIDjn4.js";
|
|
4
|
+
import { t as awaitWithAbort } from "./abort-signal-CDxyloxz.js";
|
|
5
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-V7sPQYej.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/failure-kind.ts
|
|
8
8
|
const LOST_CODES = new Set(["BACKING_CONTAINER_MISSING", "SANDBOX_NOT_FOUND"]);
|
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-
|
|
2
|
-
import { At as
|
|
3
|
-
import { Ai as ManagedProcessRecord, Ba as WorkspaceImagePublishResult, Ct as SessionMessageAdmission, H as PreviewLinkInfo, Ka as SandboxEnvRecovery, Mi as ManagedProcessSpec, Ni as ManagedProcessState, Oi as ManagedProcessJobs, U as PreviewLinkManager, W as PreviewLinkWaitOptions, _r as NetworkConfig, ar as CreateSandboxOptions, ca as PromptInputPart, ei as ExecOptions, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecoveryView, ti as ExecResult, tt as ConversationTurnOptions, za as WorkspaceImagePublishInput, zn as SandboxInfo } from "./types-
|
|
4
|
-
import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-
|
|
5
|
-
import { $t as BackendRegistryEntry, Et as sandboxFailureKind, Qt as BackendRegistryCapabilities, St as InstanceRestartingError, Tt as SandboxFailureKind, _t as ManagedProcessClient, an as backendRegistryResponseSchema, at as ISOLATED_CREATION_ATTESTATION_VERSION, bt as InstanceProfile, cn as parseBackendRegistryResponseBody, ct as SandboxSeatCredentials, dt as SeatOwnerTransport, en as BackendRegistryInteractionKind, ft as SeatResolutionObservation, gt as gatewaySeatTransport, ht as createSelectSeat, in as backendRegistryInteractionKindSchema, lt as SandboxSeatSelectionInput, mt as SeatSelectionRequest, nn as backendRegistryCapabilitiesSchema, on as isBackendRegistryInteractionKind, ot as CreateSelectSeatOptions, pt as SeatSelectionError, rn as backendRegistryEntrySchema, sn as parseBackendRegistryResponse, st as SandboxResolvedSeat, t as Sandbox, tn as BackendRegistryResponse, ut as SeatOwnerReply, vt as EnsureInstanceOptions, wt as InstancesClient, xt as InstanceRecord, yt as HostedInstance } from "./client-
|
|
6
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
1
|
+
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-vcweImuL.js";
|
|
2
|
+
import { At as SandboxFailureDetail, Ct as NotFoundError, Et as QuotaError, Ft as TimeoutError, It as ValidationError, Mt as StateError, Ot as SandboxError, St as NetworkError, Tt as ProfileFileMountPathError, ft as AuthError, jt as ServerError, kt as SandboxErrorJson, mt as CapabilityError, vt as FileWriteConflictError, wt as PartialFailureError } from "./terminal-stream-types-BM5J4lt0.js";
|
|
3
|
+
import { Ai as ManagedProcessRecord, Ba as WorkspaceImagePublishResult, Ct as SessionMessageAdmission, H as PreviewLinkInfo, Ka as SandboxEnvRecovery, Mi as ManagedProcessSpec, Ni as ManagedProcessState, Oi as ManagedProcessJobs, U as PreviewLinkManager, W as PreviewLinkWaitOptions, _r as NetworkConfig, ar as CreateSandboxOptions, ca as PromptInputPart, ei as ExecOptions, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecoveryView, ti as ExecResult, tt as ConversationTurnOptions, za as WorkspaceImagePublishInput, zn as SandboxInfo } from "./types-MYaFNkH5.js";
|
|
4
|
+
import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-BxCEZUkf.js";
|
|
5
|
+
import { $t as BackendRegistryEntry, Et as sandboxFailureKind, Qt as BackendRegistryCapabilities, St as InstanceRestartingError, Tt as SandboxFailureKind, _t as ManagedProcessClient, an as backendRegistryResponseSchema, at as ISOLATED_CREATION_ATTESTATION_VERSION, bt as InstanceProfile, cn as parseBackendRegistryResponseBody, ct as SandboxSeatCredentials, dt as SeatOwnerTransport, en as BackendRegistryInteractionKind, ft as SeatResolutionObservation, gt as gatewaySeatTransport, ht as createSelectSeat, in as backendRegistryInteractionKindSchema, lt as SandboxSeatSelectionInput, mt as SeatSelectionRequest, nn as backendRegistryCapabilitiesSchema, on as isBackendRegistryInteractionKind, ot as CreateSelectSeatOptions, pt as SeatSelectionError, rn as backendRegistryEntrySchema, sn as parseBackendRegistryResponse, st as SandboxResolvedSeat, t as Sandbox, tn as BackendRegistryResponse, ut as SeatOwnerReply, vt as EnsureInstanceOptions, wt as InstancesClient, xt as InstanceRecord, yt as HostedInstance } from "./client-1bgxaNQD.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-GNIKn_wg.js";
|
|
7
7
|
export { AuthError, BackendRegistryCapabilities, BackendRegistryEntry, BackendRegistryInteractionKind, BackendRegistryResponse, CapabilityError, ConversationTurnOptions, ConversationTurnResult, CreateSandboxOptions, CreateSelectSeatOptions, EnsureInstanceOptions, ExecOptions, ExecResult, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceProfile, InstanceRecord, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, Line, LineAgentRolePolicy, LineApplication, LineApplicationAttachOptions, LineApplicationRequest, LineApplicationResult, LineApplicationState, LineApplicationView, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineMember, LineMemberInstance, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LinesClient, ManagedProcessClient, ManagedProcessJobs, ManagedProcessOptions, ManagedProcessRecord, ManagedProcessResumeOptions, ManagedProcessSpec, ManagedProcessState, NetworkConfig, NetworkError, NotFoundError, PartialFailureError, PreviewLinkInfo, PreviewLinkManager, PreviewLinkWaitOptions, ProfileFileDeliveryReport, ProfileFileMountPathError, PromptInputPart, PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient, QuotaError, Sandbox, SandboxConfig, SandboxEnvRecovery, SandboxEnvRecoveryView, SandboxError, SandboxErrorJson, SandboxFailureDetail, SandboxFailureKind, SandboxInfo, SandboxInstance, SandboxResolvedSeat, SandboxSeatCredentials, SandboxSeatSelectionInput, SandboxStatus, SeatOwnerReply, SeatOwnerTransport, SeatResolutionObservation, SeatSelectionError, SeatSelectionRequest, ServerError, SessionMessageAdmission, StateError, TimeoutError, ValidationError, WorkspaceImagePublishInput, WorkspaceImagePublishRequestOptions, WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
|
package/dist/core.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-
|
|
3
|
-
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-
|
|
4
|
-
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-
|
|
1
|
+
import { b as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-Qn9ScVvS.js";
|
|
2
|
+
import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-BUPIDjn4.js";
|
|
3
|
+
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-DC1Q6oJb.js";
|
|
4
|
+
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-BnAWHGX3.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
|
-
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-
|
|
6
|
+
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-0iCiDt_5.js";
|
|
7
7
|
export { AuthError, CapabilityError, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, Sandbox, SandboxError, SandboxInstance, SeatSelectionError, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-
|
|
1
|
+
import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-DUdCC0KJ.js";
|
|
2
2
|
//#region ../../../packages/runtime-contracts/dist/file-api-roots.js
|
|
3
3
|
/**
|
|
4
4
|
* The agent user's home directory inside a sandbox. A profile mount path
|
|
@@ -1,3 +1,203 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.9.0/node_modules/@tangle-network/agent-interface/dist/contract-limits.js
|
|
3
|
+
/** Limits applied before a value is hashed, copied, or sent to a provider. */
|
|
4
|
+
const CONTRACT_MAX_STRING_LENGTH = 16384;
|
|
5
|
+
/** Maximum length of one canonical confidential-attestation quote. */
|
|
6
|
+
const CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH = 32768;
|
|
7
|
+
const CONTRACT_MAX_ARRAY_LENGTH = 1024;
|
|
8
|
+
const CONTRACT_MAX_JSON_BYTES = 1048576;
|
|
9
|
+
const boundedStringSchema = z.string().max(CONTRACT_MAX_STRING_LENGTH);
|
|
10
|
+
z.string().max(CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH);
|
|
11
|
+
const boundedIdentifierSchema = boundedStringSchema.min(1).max(512).refine((value) => value.trim() === value, "identifier cannot have outer whitespace");
|
|
12
|
+
/**
|
|
13
|
+
* Validate JSON without asking Zod to recursively copy an attacker-sized
|
|
14
|
+
* value. This is intentionally iterative so depth and collection limits are
|
|
15
|
+
* checked before canonical serialization.
|
|
16
|
+
*/
|
|
17
|
+
function isBoundedJsonValue(value) {
|
|
18
|
+
const pending = [{
|
|
19
|
+
value,
|
|
20
|
+
depth: 0
|
|
21
|
+
}];
|
|
22
|
+
const ancestors = /* @__PURE__ */ new Set();
|
|
23
|
+
let nodes = 0;
|
|
24
|
+
while (pending.length > 0) {
|
|
25
|
+
const item = pending.pop();
|
|
26
|
+
if (!item) continue;
|
|
27
|
+
nodes += 1;
|
|
28
|
+
if (nodes > 8192) return false;
|
|
29
|
+
const current = item.value;
|
|
30
|
+
if (item.leave) {
|
|
31
|
+
ancestors.delete(current);
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
if (current === void 0) return false;
|
|
35
|
+
if (current === null || typeof current === "boolean") continue;
|
|
36
|
+
if (typeof current === "string") {
|
|
37
|
+
if (current.length > 16384) return false;
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
if (typeof current === "number") {
|
|
41
|
+
if (!Number.isFinite(current)) return false;
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
if (typeof current !== "object" || item.depth >= 16) return false;
|
|
45
|
+
if (ancestors.has(current)) return false;
|
|
46
|
+
ancestors.add(current);
|
|
47
|
+
pending.push({
|
|
48
|
+
value: current,
|
|
49
|
+
depth: item.depth,
|
|
50
|
+
leave: true
|
|
51
|
+
});
|
|
52
|
+
if (Array.isArray(current)) {
|
|
53
|
+
if (current.length > 1024) return false;
|
|
54
|
+
for (const entry of current) pending.push({
|
|
55
|
+
value: entry,
|
|
56
|
+
depth: item.depth + 1
|
|
57
|
+
});
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
const prototype = Object.getPrototypeOf(current);
|
|
61
|
+
if (prototype !== Object.prototype && prototype !== null) return false;
|
|
62
|
+
const keys = Object.keys(current);
|
|
63
|
+
if (keys.length > 256) return false;
|
|
64
|
+
for (const key of keys) {
|
|
65
|
+
if (key.length > 512) return false;
|
|
66
|
+
pending.push({
|
|
67
|
+
value: current[key],
|
|
68
|
+
depth: item.depth + 1
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
/** Exact serialized JSON UTF-8 byte count for one string scalar. */
|
|
75
|
+
function serializedJsonStringBytes(value) {
|
|
76
|
+
let bytes = 2;
|
|
77
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
78
|
+
const code = value.charCodeAt(index);
|
|
79
|
+
if (code === 34 || code === 92 || code === 8 || code === 12 || code === 10 || code === 13 || code === 9) bytes += 2;
|
|
80
|
+
else if (code < 32) bytes += 6;
|
|
81
|
+
else if (code >= 55296 && code <= 56319 && index + 1 < value.length) {
|
|
82
|
+
const next = value.charCodeAt(index + 1);
|
|
83
|
+
if (next >= 56320 && next <= 57343) {
|
|
84
|
+
bytes += 4;
|
|
85
|
+
index += 1;
|
|
86
|
+
} else bytes += 6;
|
|
87
|
+
} else if (code >= 55296 && code <= 57343) bytes += 6;
|
|
88
|
+
else if (code < 128) bytes += 1;
|
|
89
|
+
else if (code < 2048) bytes += 2;
|
|
90
|
+
else bytes += 3;
|
|
91
|
+
if (bytes > 1048576) return bytes;
|
|
92
|
+
}
|
|
93
|
+
return bytes;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Validate provider event and terminal content. Unlike ordinary metadata,
|
|
97
|
+
* content may contain a single large transcript or tool result. It remains
|
|
98
|
+
* finite, plain JSON with the normal structural limits, and its complete JSON
|
|
99
|
+
* representation is capped exactly by UTF-8 bytes.
|
|
100
|
+
*/
|
|
101
|
+
function isBoundedEventContentJson(value, { omitUndefinedObjectFields = false } = {}) {
|
|
102
|
+
const pending = [{
|
|
103
|
+
value,
|
|
104
|
+
depth: 0
|
|
105
|
+
}];
|
|
106
|
+
const ancestors = /* @__PURE__ */ new Set();
|
|
107
|
+
let nodes = 0;
|
|
108
|
+
let bytes = 0;
|
|
109
|
+
const addBytes = (additional) => {
|
|
110
|
+
bytes += additional;
|
|
111
|
+
return bytes <= CONTRACT_MAX_JSON_BYTES;
|
|
112
|
+
};
|
|
113
|
+
while (pending.length > 0) {
|
|
114
|
+
const item = pending.pop();
|
|
115
|
+
if (!item) continue;
|
|
116
|
+
const current = item.value;
|
|
117
|
+
if (current === void 0 && item.omitUndefined === true) continue;
|
|
118
|
+
nodes += 1;
|
|
119
|
+
if (nodes > 8192) return false;
|
|
120
|
+
if (item.leave) {
|
|
121
|
+
ancestors.delete(current);
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
if (current === null) {
|
|
125
|
+
if (!addBytes(4)) return false;
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
if (typeof current === "boolean") {
|
|
129
|
+
if (!addBytes(current ? 4 : 5)) return false;
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
if (typeof current === "string") {
|
|
133
|
+
if (!addBytes(serializedJsonStringBytes(current))) return false;
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
if (typeof current === "number") {
|
|
137
|
+
if (!Number.isFinite(current)) return false;
|
|
138
|
+
if (!addBytes(JSON.stringify(current).length)) return false;
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
if (typeof current !== "object" || item.depth >= 16) return false;
|
|
142
|
+
if (ancestors.has(current)) return false;
|
|
143
|
+
ancestors.add(current);
|
|
144
|
+
pending.push({
|
|
145
|
+
value: current,
|
|
146
|
+
depth: item.depth,
|
|
147
|
+
leave: true
|
|
148
|
+
});
|
|
149
|
+
if (Array.isArray(current)) {
|
|
150
|
+
if (current.length > 1024) return false;
|
|
151
|
+
if (!addBytes(2 + Math.max(current.length - 1, 0))) return false;
|
|
152
|
+
const prototype = Object.getPrototypeOf(current);
|
|
153
|
+
if (prototype !== Array.prototype && prototype !== null) return false;
|
|
154
|
+
const entryKeys = Reflect.ownKeys(current).filter((key) => key !== "length");
|
|
155
|
+
if (entryKeys.length !== current.length) return false;
|
|
156
|
+
if (entryKeys.some((key) => {
|
|
157
|
+
if (typeof key !== "string" || !/^(?:0|[1-9][0-9]*)$/u.test(key)) return true;
|
|
158
|
+
const index = Number(key);
|
|
159
|
+
return !Number.isSafeInteger(index) || index < 0 || index >= current.length || index >= 4294967295;
|
|
160
|
+
})) return false;
|
|
161
|
+
for (const key of entryKeys) {
|
|
162
|
+
const descriptor = Object.getOwnPropertyDescriptor(current, key);
|
|
163
|
+
if (descriptor === void 0 || !descriptor.enumerable || !("value" in descriptor)) return false;
|
|
164
|
+
pending.push({
|
|
165
|
+
value: descriptor.value,
|
|
166
|
+
depth: item.depth + 1
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
const prototype = Object.getPrototypeOf(current);
|
|
172
|
+
if (prototype !== Object.prototype && prototype !== null) return false;
|
|
173
|
+
const entries = [];
|
|
174
|
+
for (const key of Reflect.ownKeys(current)) {
|
|
175
|
+
if (typeof key !== "string" || key.length > 512) return false;
|
|
176
|
+
const descriptor = Object.getOwnPropertyDescriptor(current, key);
|
|
177
|
+
if (descriptor === void 0 || !descriptor.enumerable || !("value" in descriptor)) return false;
|
|
178
|
+
if (descriptor.value === void 0 && omitUndefinedObjectFields) continue;
|
|
179
|
+
entries.push([key, descriptor]);
|
|
180
|
+
if (entries.length > 256) return false;
|
|
181
|
+
}
|
|
182
|
+
if (!addBytes(2 + Math.max(entries.length - 1, 0))) return false;
|
|
183
|
+
for (const [key, descriptor] of entries) {
|
|
184
|
+
if (!addBytes(serializedJsonStringBytes(key) + 1)) return false;
|
|
185
|
+
pending.push({
|
|
186
|
+
value: descriptor.value,
|
|
187
|
+
depth: item.depth + 1,
|
|
188
|
+
omitUndefined: omitUndefinedObjectFields
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return true;
|
|
193
|
+
}
|
|
194
|
+
const boundedJsonSchema = z.custom(isBoundedJsonValue, { message: "value exceeds the contract bounds or is not finite JSON" });
|
|
195
|
+
const boundedJsonRecordSchema = z.custom((value) => typeof value === "object" && value !== null && !Array.isArray(value) && isBoundedJsonValue(value), { message: "metadata exceeds the contract bounds or is not a JSON object" });
|
|
196
|
+
/** One provider event payload or terminal response, bounded as serialized UTF-8 JSON. */
|
|
197
|
+
const boundedEventContentJsonSchema = z.custom(isBoundedEventContentJson, { message: "event content exceeds its serialized byte bound or is not finite JSON" });
|
|
198
|
+
const boundedEventContentRecordSchema = z.custom((value) => typeof value === "object" && value !== null && !Array.isArray(value) && isBoundedEventContentJson(value), { message: "event content exceeds its serialized byte bound or is not a JSON object" });
|
|
199
|
+
const boundedEventContentStringSchema = z.custom((value) => typeof value === "string" && isBoundedEventContentJson(value), { message: "event content exceeds its serialized byte bound or is not a string" });
|
|
200
|
+
//#endregion
|
|
1
201
|
//#region ../../../node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/_u64.js
|
|
2
202
|
const U32_MASK64 = BigInt(2 ** 32 - 1);
|
|
3
203
|
const _32n = /* @__PURE__ */ BigInt(32);
|
|
@@ -691,4 +891,220 @@ K512[1];
|
|
|
691
891
|
*/
|
|
692
892
|
const sha256 = /* @__PURE__ */ createHasher(() => new _SHA256(), /* @__PURE__ */ oidNist(1));
|
|
693
893
|
//#endregion
|
|
694
|
-
|
|
894
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.9.0/node_modules/@tangle-network/agent-interface/dist/agent-candidate-schema-common.js
|
|
895
|
+
const sha256Pattern = /^sha256:[a-f0-9]{64}$/;
|
|
896
|
+
const gitObjectPattern = /^(?:[a-f0-9]{40}|[a-f0-9]{64})$/;
|
|
897
|
+
const environmentNamePattern = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
898
|
+
const headerNamePattern = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
899
|
+
const mediaTypePattern = /^[a-z0-9][a-z0-9!#$&^_.+-]{0,126}\/[a-z0-9][a-z0-9!#$&^_.+-]{0,126}$/;
|
|
900
|
+
const githubComponentPattern = /^[A-Za-z0-9][A-Za-z0-9_.-]{0,99}$/;
|
|
901
|
+
const secretNamePattern = /(?:^|[_-])(?:api[_-]?key|access[_-]?key|private[_-]?key|token|secret|password|credentials?|authorization|cookie|database[_-]?url|dsn|pat)(?:[_-]|$)/i;
|
|
902
|
+
const obviousSecretValuePattern = /(?:\bsk[-_][-_A-Za-z0-9]{10,}\b|\bgh[pousr]_[A-Za-z0-9]{12,}\b|\bgithub_pat_[A-Za-z0-9_]{12,}\b|\bAKIA[A-Z0-9]{12,}\b|-----BEGIN [A-Z ]*PRIVATE KEY-----|\bBearer\s+\S+)/;
|
|
903
|
+
const controlCharacterPattern = /[\u0000-\u001f\u007f]/;
|
|
904
|
+
const reservedWorkspaceRoots = new Set([".git", ".sidecar"]);
|
|
905
|
+
const shellNames = new Set([
|
|
906
|
+
"sh",
|
|
907
|
+
"bash",
|
|
908
|
+
"zsh",
|
|
909
|
+
"fish",
|
|
910
|
+
"cmd",
|
|
911
|
+
"cmd.exe",
|
|
912
|
+
"powershell",
|
|
913
|
+
"pwsh"
|
|
914
|
+
]);
|
|
915
|
+
const sha256DigestSchema = z.string().regex(sha256Pattern);
|
|
916
|
+
z.string().regex(gitObjectPattern);
|
|
917
|
+
const environmentNameSchema = z.string().regex(environmentNamePattern);
|
|
918
|
+
const headerNameSchema = z.string().regex(headerNamePattern);
|
|
919
|
+
z.string().regex(mediaTypePattern);
|
|
920
|
+
function sha256Bytes(value) {
|
|
921
|
+
const bytes = sha256(value);
|
|
922
|
+
return `sha256:${Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("")}`;
|
|
923
|
+
}
|
|
924
|
+
/** RFC 8785 serialization used by every candidate-producing package. */
|
|
925
|
+
function canonicalCandidateJson(value) {
|
|
926
|
+
if (!isCanonicalJsonValue(value)) throw new Error("candidate document must be finite, acyclic RFC 8785 JSON");
|
|
927
|
+
return serializeCanonicalCandidate(value);
|
|
928
|
+
}
|
|
929
|
+
function canonicalCandidateBytes(value) {
|
|
930
|
+
return new TextEncoder().encode(canonicalCandidateJson(value));
|
|
931
|
+
}
|
|
932
|
+
function canonicalCandidateDigest(value) {
|
|
933
|
+
return sha256Bytes(canonicalCandidateBytes(value));
|
|
934
|
+
}
|
|
935
|
+
function omitTopLevelDigest(value) {
|
|
936
|
+
const { digest: _digest, ...material } = value;
|
|
937
|
+
return material;
|
|
938
|
+
}
|
|
939
|
+
function serializeCanonicalCandidate(value) {
|
|
940
|
+
if (value === null || typeof value === "boolean" || typeof value === "number") return JSON.stringify(value);
|
|
941
|
+
if (typeof value === "string") return JSON.stringify(value);
|
|
942
|
+
if (Array.isArray(value)) return `[${value.map(serializeCanonicalCandidate).join(",")}]`;
|
|
943
|
+
return `{${Object.keys(value).sort().map((key) => `${JSON.stringify(key)}:${serializeCanonicalCandidate(value[key])}`).join(",")}}`;
|
|
944
|
+
}
|
|
945
|
+
function isWellFormedUnicode(value) {
|
|
946
|
+
for (let index = 0; index < value.length; index++) {
|
|
947
|
+
const code = value.charCodeAt(index);
|
|
948
|
+
if (code >= 55296 && code <= 56319) {
|
|
949
|
+
const next = value.charCodeAt(index + 1);
|
|
950
|
+
if (!(next >= 56320 && next <= 57343)) return false;
|
|
951
|
+
index++;
|
|
952
|
+
} else if (code >= 56320 && code <= 57343) return false;
|
|
953
|
+
}
|
|
954
|
+
return true;
|
|
955
|
+
}
|
|
956
|
+
/** Return shared boundary violations for path strings. */
|
|
957
|
+
function pathSafetyIssues(value) {
|
|
958
|
+
const issues = [];
|
|
959
|
+
if (controlCharacterPattern.test(value)) issues.push("control-character");
|
|
960
|
+
if (!isWellFormedUnicode(value)) issues.push("malformed-unicode");
|
|
961
|
+
return issues;
|
|
962
|
+
}
|
|
963
|
+
/** Return shared boundary violations for paths that must stay inside a workspace. */
|
|
964
|
+
function relativePathSafetyIssues(value) {
|
|
965
|
+
const issues = [...pathSafetyIssues(value)];
|
|
966
|
+
if (value.length === 0) issues.push("empty");
|
|
967
|
+
if (value.startsWith("/") || /^[A-Za-z]:/.test(value)) issues.push("absolute");
|
|
968
|
+
if (value.includes("\\")) issues.push("backslash");
|
|
969
|
+
if (value.split("/").includes("..")) issues.push("parent-traversal");
|
|
970
|
+
return issues;
|
|
971
|
+
}
|
|
972
|
+
function isSafeRelativePath(value, allowDot) {
|
|
973
|
+
if (relativePathSafetyIssues(value).length > 0) return false;
|
|
974
|
+
if (value === ".") return allowDot;
|
|
975
|
+
const parts = value.split("/");
|
|
976
|
+
return parts.every((part) => part.length > 0 && part !== ".") && !parts.some((part) => reservedWorkspaceRoots.has(part));
|
|
977
|
+
}
|
|
978
|
+
function isSafeExecutable(value) {
|
|
979
|
+
if (value.length === 0 || controlCharacterPattern.test(value) || !isWellFormedUnicode(value) || /\s/.test(value) || value.includes("\\") || !/^[A-Za-z0-9._+/-]+$/.test(value)) return false;
|
|
980
|
+
const parts = value.split("/");
|
|
981
|
+
if (value.startsWith("/")) parts.shift();
|
|
982
|
+
if (parts.length === 0 || parts.some((part) => part.length === 0 || part === "." || part === "..")) return false;
|
|
983
|
+
return !shellNames.has(parts.at(-1)?.toLowerCase() ?? "");
|
|
984
|
+
}
|
|
985
|
+
function isCanonicalJsonValue(value, ancestors = /* @__PURE__ */ new Set()) {
|
|
986
|
+
if (value === null || typeof value === "boolean") return true;
|
|
987
|
+
if (typeof value === "string") return isWellFormedUnicode(value);
|
|
988
|
+
if (typeof value === "number") return Number.isFinite(value);
|
|
989
|
+
if (typeof value !== "object" || ancestors.has(value)) return false;
|
|
990
|
+
const prototype = Object.getPrototypeOf(value);
|
|
991
|
+
if (!Array.isArray(value) && prototype !== Object.prototype && prototype !== null) return false;
|
|
992
|
+
const nextAncestors = new Set(ancestors).add(value);
|
|
993
|
+
if (Array.isArray(value)) {
|
|
994
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
995
|
+
if (!(index in value)) return false;
|
|
996
|
+
if (!isCanonicalJsonValue(value[index], nextAncestors)) return false;
|
|
997
|
+
}
|
|
998
|
+
return true;
|
|
999
|
+
}
|
|
1000
|
+
return Object.entries(value).every(([key, entry]) => isWellFormedUnicode(key) && isCanonicalJsonValue(entry, nextAncestors));
|
|
1001
|
+
}
|
|
1002
|
+
function hasCredentialBearingUrl(value) {
|
|
1003
|
+
try {
|
|
1004
|
+
const url = new URL(value);
|
|
1005
|
+
if (url.username !== "" || url.password !== "") return true;
|
|
1006
|
+
return [...url.searchParams.keys()].some((key) => secretNamePattern.test(key));
|
|
1007
|
+
} catch {
|
|
1008
|
+
return false;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* Whether a string holds an obvious credential: a provider key (`sk-`, `gh*_`,
|
|
1013
|
+
* `github_pat_`, `AKIA`), a PEM private key, a bearer token, or a URL with
|
|
1014
|
+
* userinfo or a credential-named query parameter. The agent-eval redaction
|
|
1015
|
+
* core calls it, so candidate validation and trace redaction agree.
|
|
1016
|
+
*/
|
|
1017
|
+
function looksLikeCredential(value) {
|
|
1018
|
+
return obviousSecretValuePattern.test(value) || hasCredentialBearingUrl(value);
|
|
1019
|
+
}
|
|
1020
|
+
function isPublicConfigValue(value) {
|
|
1021
|
+
return !controlCharacterPattern.test(value) && isWellFormedUnicode(value) && !looksLikeCredential(value);
|
|
1022
|
+
}
|
|
1023
|
+
/** Shared public reference owner; resolution belongs to the trusted executor. */
|
|
1024
|
+
const agentCandidateSecretRefSchema = z.strictObject({
|
|
1025
|
+
kind: z.literal("secret-ref"),
|
|
1026
|
+
key: z.string().min(1).max(500).refine((value) => value.trim().length > 0 && isPublicConfigValue(value), "secret reference key must be a public non-credential identity"),
|
|
1027
|
+
format: z.enum(["raw", "bearer"]).optional()
|
|
1028
|
+
});
|
|
1029
|
+
const agentCandidatePublicValueSchema = z.strictObject({
|
|
1030
|
+
kind: z.literal("public"),
|
|
1031
|
+
value: z.string().refine(isPublicConfigValue, "candidate config cannot carry credentials; the evaluator owns model authorization")
|
|
1032
|
+
});
|
|
1033
|
+
const agentCandidateConfigValueSchema = z.discriminatedUnion("kind", [agentCandidatePublicValueSchema, agentCandidateSecretRefSchema]);
|
|
1034
|
+
function configRecordSchema(keySchema) {
|
|
1035
|
+
return z.record(keySchema, agentCandidateConfigValueSchema).superRefine((config, ctx) => {
|
|
1036
|
+
for (const name of Object.keys(config)) if (secretNamePattern.test(name) && config[name]?.kind !== "secret-ref") ctx.addIssue({
|
|
1037
|
+
code: "custom",
|
|
1038
|
+
path: [name],
|
|
1039
|
+
message: "candidate config cannot declare credential-bearing names"
|
|
1040
|
+
});
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
configRecordSchema(environmentNameSchema);
|
|
1044
|
+
z.object({
|
|
1045
|
+
kind: z.literal("github"),
|
|
1046
|
+
owner: z.string().regex(githubComponentPattern).refine((value) => value !== "." && value !== ".."),
|
|
1047
|
+
repo: z.string().regex(githubComponentPattern).refine((value) => value !== "." && value !== "..")
|
|
1048
|
+
}).strict();
|
|
1049
|
+
//#endregion
|
|
1050
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.9.0/node_modules/@tangle-network/agent-interface/dist/agent-profile.js
|
|
1051
|
+
/**
|
|
1052
|
+
* Portable reasoning/thinking effort. Backends map it to their native control at materialization:
|
|
1053
|
+
* codex `model_reasoning_effort`, kimi `--thinking`/`--no-thinking`, claude thinking budget.
|
|
1054
|
+
* Ordered low→high:
|
|
1055
|
+
* - `none` — extended thinking OFF (no reasoning budget at all)
|
|
1056
|
+
* - `minimal` — thinking ON, the lowest budget (distinct from `none`)
|
|
1057
|
+
* - `low` / `medium` / `high` / `xhigh`
|
|
1058
|
+
* - `ultracode` — maximum (Claude Code's `max` and Codex's `ultra` reconcile here).
|
|
1059
|
+
* A backend without a matching native tier may clamp down to its strongest supported level, but it
|
|
1060
|
+
* must never turn reasoning on for `none` or silently increase a requested effort.
|
|
1061
|
+
*/
|
|
1062
|
+
const REASONING_EFFORTS = Object.freeze([
|
|
1063
|
+
"none",
|
|
1064
|
+
"minimal",
|
|
1065
|
+
"low",
|
|
1066
|
+
"medium",
|
|
1067
|
+
"high",
|
|
1068
|
+
"xhigh",
|
|
1069
|
+
"ultracode"
|
|
1070
|
+
]);
|
|
1071
|
+
/** Router namespace reserved for checkpoint-backed models. Receipt-free profiles cannot use it. */
|
|
1072
|
+
const TRAINED_MODEL_PREFIX = "tangle-trained/";
|
|
1073
|
+
/** An immutable Router alias; serving must independently attest this artifact-to-route binding. */
|
|
1074
|
+
function trainedModelIdForArtifact(digest) {
|
|
1075
|
+
return `${TRAINED_MODEL_PREFIX}${digest.slice(7)}`;
|
|
1076
|
+
}
|
|
1077
|
+
//#endregion
|
|
1078
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.9.0/node_modules/@tangle-network/agent-interface/dist/harness.js
|
|
1079
|
+
/**
|
|
1080
|
+
* Recognized execution identities, not a deployment's list of installed runners.
|
|
1081
|
+
* A profile's authored harness remains part of its canonical identity; execution
|
|
1082
|
+
* receipts record authored identity, effective identity and selected harness
|
|
1083
|
+
* separately. Retiring an executable must not invalidate historical profiles,
|
|
1084
|
+
* sessions or receipts. Availability is admitted against the selected deployment.
|
|
1085
|
+
*
|
|
1086
|
+
* `cli-base` names router-backed execution without a full coding-agent harness.
|
|
1087
|
+
* `prime` is a distinct Pi-line fork with a different native wire protocol; its
|
|
1088
|
+
* sessions are not interchangeable with Pi sessions. A shared identity does not
|
|
1089
|
+
* assert protocol, model, profile-control or native-resume compatibility.
|
|
1090
|
+
*/
|
|
1091
|
+
const harnessTypeSchema = z.enum([
|
|
1092
|
+
"claude-code",
|
|
1093
|
+
"nanoclaw",
|
|
1094
|
+
"codex",
|
|
1095
|
+
"opencode",
|
|
1096
|
+
"kimi-code",
|
|
1097
|
+
"pi",
|
|
1098
|
+
"prime",
|
|
1099
|
+
"gemini",
|
|
1100
|
+
"hermes",
|
|
1101
|
+
"openclaw",
|
|
1102
|
+
"amp",
|
|
1103
|
+
"factory-droids",
|
|
1104
|
+
"forge",
|
|
1105
|
+
"cursor",
|
|
1106
|
+
"acp",
|
|
1107
|
+
"cli-base"
|
|
1108
|
+
]);
|
|
1109
|
+
//#endregion
|
|
1110
|
+
export { boundedIdentifierSchema as C, isBoundedEventContentJson as D, boundedStringSchema as E, boundedEventContentStringSchema as S, boundedJsonSchema as T, sha256 as _, agentCandidateSecretRefSchema as a, boundedEventContentJsonSchema as b, environmentNameSchema as c, isSafeExecutable as d, isSafeRelativePath as f, sha256DigestSchema as g, omitTopLevelDigest as h, trainedModelIdForArtifact as i, headerNameSchema as l, looksLikeCredential as m, REASONING_EFFORTS as n, canonicalCandidateDigest as o, isWellFormedUnicode as p, TRAINED_MODEL_PREFIX as r, canonicalCandidateJson as s, harnessTypeSchema as t, isCanonicalJsonValue as u, CONTRACT_MAX_ARRAY_LENGTH as v, boundedJsonRecordSchema as w, boundedEventContentRecordSchema as x, CONTRACT_MAX_STRING_LENGTH as y };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { $a as RawEvidenceBoxExportOptions, $i as DurablePlanDecisionResult, $r as SearchOptions, Ba as WorkspaceImagePublishResult, Bi as Rollout, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ei as CodeExecutionResult, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, G as GitBranch, Hi as RolloutStartResult, Ii as BranchOptions, In as SSHCommandDescriptor, J as GitStatus, K as GitCommit, Ka as SandboxEnvRecovery, Li as ForkCounts, Ln as SSHCredentials, Lr as FileSystem, N as WaitForOptions, Pi as HttpClient, Q as CommitTaskSessionOptions, Qa as RawEvidenceBoxDirectoryExport, Qi as DurablePlanDecisionOptions, Qn as TeeAttestationOptions, Qr as SearchMatch, Ri as ForkIdempotency, Rn as SandboxConnection, S as StopOptions, Sa as BackendManager, St as SessionMessage, Ti as CodeExecutionOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ui as WaitForRolloutOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Va as CodeLanguage, Vi as RolloutOptions, Wn as SandboxTerminalAttachOptions, Xn as StartupDiagnostics, Xr as WriteManyFile, Ya as RawEvidenceArchiveManifest, Yn as SandboxTerminals, Yr as WriteFileOptions, Zi as DurablePlan, Zr as WriteManyOptions, _ as SnapshotInfo, aa as IntelligenceReportCompareTo, ao as RawEvidenceUnavailable, ar as CreateSandboxOptions, at as DispatchPromptOptions, ba as BackendConfig, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as PromptInputPart, ct as ListMessagesOptions, d as SandboxOperationKind, da as SandboxEvent, dr as SandboxShape, dt as SendSessionMessageRequest, ei as ExecOptions, eo as RawEvidenceDirectoryExport, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fi as DriverInfo, ft as SentSessionMessage, ga as SandboxTraceOptions, gr as EgressManager, ht as SessionExecutionInfo, ia as IntelligenceReportBudget, it as CreateTaskSessionOptions, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, la as PromptOptions, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, mi as GpuLease, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, na as EventStreamOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, ot as DispatchedSession, pa as SandboxTraceBundle, pr as SandboxResourceUsage, q as GitDiff, qa as SandboxEnvRecoveryView, ra as IntelligenceReport, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, sa as IntelligenceReportWindow, so as InteractionResolutionAcknowledgement, st as DriveTurnOptions, ti as ExecResult, to as RawEvidenceExportOptions, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptResult, ut as SendSessionMessageOptions, v as SnapshotOptions, va as TurnBackendConfig, vr as NetworkManager, vt as SessionForkOptions, x as SnapshotResult, xt as SessionListOptions, y as SnapshotProvenance, yi as GpuLeaseManager, yt as SessionInfo, z as ProcessManager, za as WorkspaceImagePublishInput, zi as ForkLookupOptions, zn as SandboxInfo } from "./types-
|
|
3
|
-
import { t as CliAuthReference } from "./cli-auth-bundle-
|
|
4
|
-
import { n as SandboxLines } from "./lines-
|
|
5
|
-
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-
|
|
6
|
-
import { r as InteractiveAttachRequest } from "./interactive-controller-
|
|
1
|
+
import { A as AgentInteractiveSessionPromptCommand, B as AgentRunCancellationAcknowledgement, D as AgentInteractiveSessionControlClaimAcknowledgement, E as AgentInteractiveSessionControlClaim, F as AgentInteractiveTerminalSession, G as AgentProfile, H as InteractionAcknowledgement, L as TerminalOutputEvent, N as AgentInteractiveSessionStopAcknowledgement, O as AgentInteractiveSessionControlClaimRequest, Ot as SandboxError, P as AgentInteractiveSessionStopCommand, R as TerminalReplayWindow, Rt as SandboxCreateReceipt, T as AgentInteractiveSessionAttach, U as InteractionRequest, V as AgentRunCancellationRequest, W as InteractionResponseCommand, X as AgentProfileFileMount, g as TerminalReadyInfo, i as TerminalStreamHandlers, j as AgentInteractiveSessionRef, k as AgentInteractiveSessionPromptAcknowledgement, l as MintScopedTokenOptions, lt as InteractionData, o as TerminalStreamReconnectAuthority, u as ScopedToken, w as AgentInteractiveSessionStart } from "./terminal-stream-types-BM5J4lt0.js";
|
|
2
|
+
import { $a as RawEvidenceBoxExportOptions, $i as DurablePlanDecisionResult, $r as SearchOptions, Ba as WorkspaceImagePublishResult, Bi as Rollout, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ei as CodeExecutionResult, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, G as GitBranch, Hi as RolloutStartResult, Ii as BranchOptions, In as SSHCommandDescriptor, J as GitStatus, K as GitCommit, Ka as SandboxEnvRecovery, Li as ForkCounts, Ln as SSHCredentials, Lr as FileSystem, N as WaitForOptions, Pi as HttpClient, Q as CommitTaskSessionOptions, Qa as RawEvidenceBoxDirectoryExport, Qi as DurablePlanDecisionOptions, Qn as TeeAttestationOptions, Qr as SearchMatch, Ri as ForkIdempotency, Rn as SandboxConnection, S as StopOptions, Sa as BackendManager, St as SessionMessage, Ti as CodeExecutionOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ui as WaitForRolloutOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Va as CodeLanguage, Vi as RolloutOptions, Wn as SandboxTerminalAttachOptions, Xn as StartupDiagnostics, Xr as WriteManyFile, Ya as RawEvidenceArchiveManifest, Yn as SandboxTerminals, Yr as WriteFileOptions, Zi as DurablePlan, Zr as WriteManyOptions, _ as SnapshotInfo, aa as IntelligenceReportCompareTo, ao as RawEvidenceUnavailable, ar as CreateSandboxOptions, at as DispatchPromptOptions, ba as BackendConfig, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as PromptInputPart, ct as ListMessagesOptions, d as SandboxOperationKind, da as SandboxEvent, dr as SandboxShape, dt as SendSessionMessageRequest, ei as ExecOptions, eo as RawEvidenceDirectoryExport, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fi as DriverInfo, ft as SentSessionMessage, ga as SandboxTraceOptions, gr as EgressManager, ht as SessionExecutionInfo, ia as IntelligenceReportBudget, it as CreateTaskSessionOptions, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, la as PromptOptions, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, mi as GpuLease, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, na as EventStreamOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, ot as DispatchedSession, pa as SandboxTraceBundle, pr as SandboxResourceUsage, q as GitDiff, qa as SandboxEnvRecoveryView, ra as IntelligenceReport, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, sa as IntelligenceReportWindow, so as InteractionResolutionAcknowledgement, st as DriveTurnOptions, ti as ExecResult, to as RawEvidenceExportOptions, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptResult, ut as SendSessionMessageOptions, v as SnapshotOptions, va as TurnBackendConfig, vr as NetworkManager, vt as SessionForkOptions, x as SnapshotResult, xt as SessionListOptions, y as SnapshotProvenance, yi as GpuLeaseManager, yt as SessionInfo, z as ProcessManager, za as WorkspaceImagePublishInput, zi as ForkLookupOptions, zn as SandboxInfo } from "./types-MYaFNkH5.js";
|
|
3
|
+
import { t as CliAuthReference } from "./cli-auth-bundle-CFZx0muA.js";
|
|
4
|
+
import { n as SandboxLines } from "./lines-BxCEZUkf.js";
|
|
5
|
+
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-i9JtmJDf.js";
|
|
6
|
+
import { r as InteractiveAttachRequest } from "./interactive-controller-B16SZKZt.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import { OtlpTraceExport } from "@tangle-network/agent-trace-contract/otlp";
|
|
9
9
|
|