@tangle-network/sandbox 1.0.268 → 1.0.269
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 +4 -4
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +1 -1
- package/dist/{agent-run-outcome-e0Rtf3a3.d.ts → agent-run-outcome-D-FJ3vk7.d.ts} +2 -2
- package/dist/{api-request-nbgUMuWb.js → api-request-d6B6aqw2.js} +1 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +2 -2
- package/dist/{browser-interactive-control-controller-ClykJB9N.d.ts → browser-interactive-control-controller-BD0GL8aF.d.ts} +2 -1
- package/dist/{browser-interactive-control-controller-C9yza0IL.js → browser-interactive-control-controller-DQROMYR8.js} +1 -1
- package/dist/{cli-auth-bundle-CQCt2mcZ.d.ts → cli-auth-bundle-B3jfdNXg.d.ts} +6 -8
- package/dist/{cli-auth-bundle-DcxhAW23-C22MMIvx.js → cli-auth-bundle-B4SGUcYM-CukXOw4n.js} +21 -11
- package/dist/cli-auth-bundle-DIZ0PWyR.js +2 -0
- package/dist/{client-HIMk1-m9.js → client-2ScDoZ8I.js} +5 -5
- package/dist/{client-D5GC6xYe.d.ts → client-DD-ocMMn.d.ts} +8 -7
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-pelVsLcr.js → collaboration-BnH82ukZ.js} +1 -1
- package/dist/core.d.ts +6 -6
- package/dist/core.js +3 -3
- package/dist/gpu-lease/index.js +1 -1
- package/dist/{terminal-stream-types-Cdz3xrux.d.ts → index-B5e7Pa7p.d.ts} +8 -1750
- package/dist/{index-DUEgpbVw.d.ts → index-iof5xqBR.d.ts} +8 -7
- package/dist/index.d.ts +13 -12
- package/dist/index.js +8 -146
- package/dist/intelligence/index.d.ts +1 -1
- package/dist/intelligence/index.js +1 -1
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-DOM8V0pP.js → interactive-controller-BN-DYor8.js} +2 -2
- package/dist/{interactive-controller-CmRtlTBj.d.ts → interactive-controller-D5TOWZcD.d.ts} +4 -3
- package/dist/{lines-b98DdVCn.d.ts → lines-C4okxSB-.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-C2cETxK4.js → local-cli-auth-DNNXF4cB.js} +1 -1
- package/dist/{mcp-local-BB-yoxeI.js → mcp-local-Bn88WmHt.js} +2 -2
- package/dist/{preview-CuMxpBA3.d.ts → preview-D-8VD4_D.d.ts} +3 -3
- package/dist/{public-templates-DTzQu6C0.d.ts → public-templates-BiV_GW-f.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-D86jxPzC.js → sandbox-B740bdgv.js} +144 -6
- package/dist/{select-seat-DWMZh9Mj.js → select-seat-D0YBpIJl.js} +2 -2
- package/dist/select-seat-command.d.ts +2 -2
- package/dist/select-seat-command.js +1 -1
- package/dist/session-gateway/index.js +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-BBF4pV5c.js → tangle-wDixJBx_.js} +2 -2
- package/dist/terminal-stream-types-BSyus9Qn.d.ts +1753 -0
- package/dist/{types-Ct8kzcZC.d.ts → types-D3PBgznU.d.ts} +3 -2
- package/package.json +3 -3
- package/dist/cli-auth-bundle-DXKH215p.js +0 -2
- /package/dist/{index-B6aMEMDR.d.ts → index-DreKipF6.d.ts} +0 -0
- /package/dist/{index-BsT3M4X-.d.ts → index-zu3yijbl.d.ts} +0 -0
- /package/dist/{raw-evidence-export-C-TDdAgC.d.ts → raw-evidence-export-3QmilbFa.d.ts} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { A as requestedPublicProfileDigest, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, U as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as validateAcceptedDispatchRunRef, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as encodePromptForWire, y as resolveDispatchRunIdentity } from "./interactive-controller-
|
|
1
|
+
import { A as requestedPublicProfileDigest, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, U as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as validateAcceptedDispatchRunRef, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as encodePromptForWire, y as resolveDispatchRunIdentity } from "./interactive-controller-BN-DYor8.js";
|
|
2
2
|
import { C as boundedIdentifierSchema$1, E as boundedStringSchema$1, g as sha256DigestSchema$1, o as canonicalCandidateDigest$1, s as canonicalCandidateJson$1 } from "./harness--g8UQ5TZ.js";
|
|
3
3
|
import { a as ProxySecretReceiptSchema$1, r as agentProfileSchema$1 } from "./profile-schema-B11dRfGB.js";
|
|
4
4
|
import { t as sha256$1 } from "./sha2-BIoWepwn.js";
|
|
5
|
-
import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-
|
|
5
|
+
import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-DQROMYR8.js";
|
|
6
6
|
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-N1ksNIIJ.js";
|
|
7
7
|
import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, T as StateError, _ as NetworkError, a as readResponseJson, b as ProfileFileMountPathError, c as AuthError, f as EdgeNotReadyError, i as parseResponseError, n as isTransientWrite, o as responseMetadata, r as parseErrorResponse, s as retryWhen, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError, y as PartialFailureError } from "./errors-D44qyFpy.js";
|
|
8
8
|
import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-BZbs5rig.js";
|
|
9
9
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
|
|
10
10
|
import { a as backoffDelayMs, o as isUndelivered, r as abortableSleep } from "./retry-policy-oW3_ljoc.js";
|
|
11
|
-
import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-
|
|
11
|
+
import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-d6B6aqw2.js";
|
|
12
12
|
import { a as SANDBOX_PROXY_REQUEST_MAX_BYTES, c as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, d as isProfileFileMountOutsideRoots, f as profileFileMountOutsideRootsMessage, l as SANDBOX_AGENT_HOME, o as FILE_OPERATION_LIMITS, u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-DOSTbUSR.js";
|
|
13
13
|
import { c as awaitSdkResend, l as takeSdkTurn, s as uploadChunked } from "./chunked-upload-ChZB-dYE.js";
|
|
14
14
|
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-sGVP8skk.js";
|
|
15
15
|
import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-DTdbCbUM.js";
|
|
16
16
|
import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
|
|
17
17
|
import { t as runPreparedProcess } from "./prepared-process-DQ_68Ofg.js";
|
|
18
|
-
import { a as isBackendType, r as cliAuthReferenceSchema } from "./cli-auth-bundle-
|
|
19
|
-
import "./cli-auth-bundle-
|
|
18
|
+
import { a as isBackendType, r as cliAuthReferenceSchema } from "./cli-auth-bundle-B4SGUcYM-CukXOw4n.js";
|
|
19
|
+
import "./cli-auth-bundle-DIZ0PWyR.js";
|
|
20
20
|
import { n as SandboxLines } from "./lines-DwJ7AKx7.js";
|
|
21
21
|
import { t as downloadFile } from "./file-download-BO-Hmn3x.js";
|
|
22
22
|
import { z } from "zod";
|
|
@@ -13828,6 +13828,144 @@ var SandboxEgressCapabilities = class extends SandboxTraceCapabilities {
|
|
|
13828
13828
|
}
|
|
13829
13829
|
};
|
|
13830
13830
|
//#endregion
|
|
13831
|
+
//#region ../../../packages/runtime-contracts/dist/gpu-lease.js
|
|
13832
|
+
const GPU_LEASE_PROVIDER_NAMES = [
|
|
13833
|
+
"runpod",
|
|
13834
|
+
"vast-ai",
|
|
13835
|
+
"lambda-labs",
|
|
13836
|
+
"modal"
|
|
13837
|
+
];
|
|
13838
|
+
const gpuLeaseProviderSchema = z.string().trim().toLowerCase().min(1).max(64).regex(/^[a-z][a-z0-9-]*$/);
|
|
13839
|
+
const gpuAcceleratorKindSchema = z.string().trim().toLowerCase().min(1).max(128).regex(/^[a-z0-9][a-z0-9._-]*$/);
|
|
13840
|
+
const gpuAcceleratorSchema = z.object({
|
|
13841
|
+
kind: gpuAcceleratorKindSchema,
|
|
13842
|
+
count: z.number().int().positive().default(1),
|
|
13843
|
+
vramGb: z.number().positive().optional()
|
|
13844
|
+
}).strict();
|
|
13845
|
+
const gpuLeaseCommandSchema = z.object({
|
|
13846
|
+
command: z.string().min(1).max(8192),
|
|
13847
|
+
timeoutMs: z.number().int().positive().max(2147453647).optional(),
|
|
13848
|
+
env: z.record(z.string(), z.string()).optional(),
|
|
13849
|
+
cwd: z.string().min(1).max(2048).optional()
|
|
13850
|
+
}).strict();
|
|
13851
|
+
z.object({
|
|
13852
|
+
refresh: z.enum(["true", "false"]).optional(),
|
|
13853
|
+
acceleratorKind: gpuAcceleratorKindSchema.optional(),
|
|
13854
|
+
acceleratorCount: z.coerce.number().pipe(gpuAcceleratorSchema.shape.count.unwrap()).optional(),
|
|
13855
|
+
acceleratorVramGb: z.coerce.number().positive().optional()
|
|
13856
|
+
}).strict();
|
|
13857
|
+
z.object({
|
|
13858
|
+
maxSpendUsd: z.number().positive().max(1e4).optional(),
|
|
13859
|
+
maxLifetimeSeconds: z.number().int().positive().max(1440 * 60).optional()
|
|
13860
|
+
}).strict().refine((value) => value.maxSpendUsd !== void 0 || value.maxLifetimeSeconds !== void 0, "Renewal requires a lifetime or spend cap");
|
|
13861
|
+
const gpuLeaseOptionsSchema = z.object({
|
|
13862
|
+
provider: gpuLeaseProviderSchema.optional(),
|
|
13863
|
+
image: z.string().min(1).max(512).optional(),
|
|
13864
|
+
env: z.record(z.string().regex(/^[A-Za-z_][A-Za-z0-9_]*$/), z.string()).optional(),
|
|
13865
|
+
diskGb: z.number().int().positive().optional(),
|
|
13866
|
+
volumeGb: z.number().int().nonnegative().optional(),
|
|
13867
|
+
volumeMountPath: z.string().startsWith("/").max(2048).optional(),
|
|
13868
|
+
region: z.string().min(1).max(128).optional(),
|
|
13869
|
+
manifest: z.record(z.string(), z.unknown()).optional(),
|
|
13870
|
+
command: z.array(z.string().max(8192)).min(1).max(256).optional(),
|
|
13871
|
+
ports: z.array(z.number().int().min(1).max(65535)).max(32).optional(),
|
|
13872
|
+
endpoint: z.object({
|
|
13873
|
+
port: z.number().int().min(1).max(65535),
|
|
13874
|
+
healthPath: z.string().regex(/^\/(?![/\\])/).refine((path) => ![
|
|
13875
|
+
"\r",
|
|
13876
|
+
"\n",
|
|
13877
|
+
" "
|
|
13878
|
+
].some((char) => path.includes(char))).max(2048).optional()
|
|
13879
|
+
}).strict().optional(),
|
|
13880
|
+
allowSpot: z.boolean().optional(),
|
|
13881
|
+
maxHourlyUsd: z.number().positive().optional(),
|
|
13882
|
+
weights: z.object({
|
|
13883
|
+
manifestSha: z.string().regex(/^[a-f0-9]{64}$/),
|
|
13884
|
+
sizeBytes: z.number().int().positive().safe()
|
|
13885
|
+
}).strict().optional(),
|
|
13886
|
+
arms: z.array(z.unknown()).min(1).max(256).optional(),
|
|
13887
|
+
maxSpendUsd: z.number().positive().max(1e4),
|
|
13888
|
+
maxLifetimeSeconds: z.number().int().positive().max(1440 * 60),
|
|
13889
|
+
idleTimeoutSeconds: z.number().int().positive().optional()
|
|
13890
|
+
}).strict();
|
|
13891
|
+
const gpuLeaseAttachSchema = gpuLeaseOptionsSchema.extend({ accelerator: gpuAcceleratorSchema });
|
|
13892
|
+
const acceleratorSchema = gpuAcceleratorSchema;
|
|
13893
|
+
const providerSchema = gpuLeaseProviderSchema;
|
|
13894
|
+
z.object({
|
|
13895
|
+
...gpuLeaseOptionsSchema.omit({ env: true }).shape,
|
|
13896
|
+
id: z.string(),
|
|
13897
|
+
projectRef: z.string(),
|
|
13898
|
+
ownerUserId: z.string(),
|
|
13899
|
+
productId: z.string().optional(),
|
|
13900
|
+
provider: providerSchema,
|
|
13901
|
+
providerLeaseId: z.string().optional(),
|
|
13902
|
+
providerInstanceType: z.string().optional(),
|
|
13903
|
+
workerUrl: z.string().optional(),
|
|
13904
|
+
endpointUrl: z.string().optional(),
|
|
13905
|
+
status: z.enum([
|
|
13906
|
+
"provisioning",
|
|
13907
|
+
"ready",
|
|
13908
|
+
"detaching",
|
|
13909
|
+
"destroyed",
|
|
13910
|
+
"failed"
|
|
13911
|
+
]),
|
|
13912
|
+
accelerator: acceleratorSchema,
|
|
13913
|
+
providerCostPerHourUsd: z.number().optional(),
|
|
13914
|
+
customerPricePerHourUsd: z.number().optional(),
|
|
13915
|
+
estimatedProviderCostUsd: z.number().optional(),
|
|
13916
|
+
estimatedCustomerCostUsd: z.number().optional(),
|
|
13917
|
+
providerSelection: z.object({
|
|
13918
|
+
strategy: z.enum([
|
|
13919
|
+
"explicit",
|
|
13920
|
+
"cheapest",
|
|
13921
|
+
"ranked"
|
|
13922
|
+
]),
|
|
13923
|
+
selectedProvider: providerSchema,
|
|
13924
|
+
requestedProvider: providerSchema.optional(),
|
|
13925
|
+
candidates: z.array(z.object({
|
|
13926
|
+
provider: providerSchema,
|
|
13927
|
+
accelerator: acceleratorSchema,
|
|
13928
|
+
providerInstanceType: z.string().optional(),
|
|
13929
|
+
region: z.string().optional(),
|
|
13930
|
+
pricingSource: z.enum(["live", "configured"]).optional(),
|
|
13931
|
+
providerCostPerHourUsd: z.number(),
|
|
13932
|
+
customerPricePerHourUsd: z.number(),
|
|
13933
|
+
maxLifetimeSeconds: z.number(),
|
|
13934
|
+
estimatedProviderCostUsd: z.number(),
|
|
13935
|
+
estimatedCustomerCostUsd: z.number()
|
|
13936
|
+
})),
|
|
13937
|
+
rejected: z.array(z.object({
|
|
13938
|
+
provider: providerSchema,
|
|
13939
|
+
error: z.string()
|
|
13940
|
+
}))
|
|
13941
|
+
}).optional(),
|
|
13942
|
+
createdAt: z.string(),
|
|
13943
|
+
updatedAt: z.string(),
|
|
13944
|
+
readyAt: z.string().optional(),
|
|
13945
|
+
startedAt: z.string().optional(),
|
|
13946
|
+
lastUsedAt: z.string().optional(),
|
|
13947
|
+
destroyedAt: z.string().optional(),
|
|
13948
|
+
failure: z.string().optional(),
|
|
13949
|
+
billing: z.object({
|
|
13950
|
+
seconds: z.number(),
|
|
13951
|
+
providerCostUsd: z.number(),
|
|
13952
|
+
customerCostUsd: z.number(),
|
|
13953
|
+
providerCostPerHourUsd: z.number(),
|
|
13954
|
+
customerPricePerHourUsd: z.number(),
|
|
13955
|
+
startedAt: z.string(),
|
|
13956
|
+
stoppedAt: z.string()
|
|
13957
|
+
}).optional()
|
|
13958
|
+
});
|
|
13959
|
+
//#endregion
|
|
13960
|
+
//#region ../../../packages/runtime-contracts/dist/runtime-backend.js
|
|
13961
|
+
/**
|
|
13962
|
+
* The runtime a sandbox runs on, which a create names as `runtime`: a Docker
|
|
13963
|
+
* container on the host kernel, or a Firecracker microVM with its own kernel.
|
|
13964
|
+
* It is also what a provisioned host runs and the autoscaler buys.
|
|
13965
|
+
*/
|
|
13966
|
+
const SANDBOX_RUNTIMES = ["docker", "firecracker"];
|
|
13967
|
+
[...SANDBOX_RUNTIMES];
|
|
13968
|
+
//#endregion
|
|
13831
13969
|
//#region ../../../packages/runtime-contracts/dist/egress-activity.js
|
|
13832
13970
|
/**
|
|
13833
13971
|
* The egress activity record a sandbox's proxy log is read into, shared by the
|
|
@@ -15006,4 +15144,4 @@ var SandboxInstance = class SandboxInstance extends SandboxEgressCapabilities {
|
|
|
15006
15144
|
}
|
|
15007
15145
|
};
|
|
15008
15146
|
//#endregion
|
|
15009
|
-
export {
|
|
15147
|
+
export { createRetryDelayMs as $, splitInlineProfileSkills as A, normalizeSandboxCreateReceipt as B, collectAgentResponseText as C, ManagedProcessClient as D, deleteSandbox as E, isMaterializerHarness as F, normalizeConnection as G, readFilesystemIncarnationTuple as H, materializeProfile as I, normalizeSandboxShape as J, normalizeEgressPolicyFields as K, SandboxOperation as L, HARNESS_LAUNCH_MATERIALIZE_OPTIONS as M, ProfileUnsupportedError as N, materializeProfileFileMounts as O, enforceWorkspacePlanSupport as P, awaitCreateResend as Q, SandboxOperationFailedError as R, collectAgentFinalMessageText as S, isToolBearingEvent as T, dateOf as U, normalizeStartupDiagnostics as V, parseLifecycleTimes as W, CAPACITY_ETA_WAIT_MAX_MS as X, CAPACITY_ETA_MARGIN_MS as Y, DEPLOY_WINDOW_RETRY_MS as Z, InteractiveSessionHandle as _, SANDBOX_RUNTIMES as a, isRetryableCreateError as at, createInteractiveTerminalSession as b, gpuLeaseAttachSchema as c, exportTraceBundle as d, extendableDeadline as et, otelTraceIdForTangleTrace as f, sandboxLedgerUsd as g, SandboxSession as h, MAX_EGRESS_DENIALS_LIMIT as i, isRateLimitCreateError as it, validateDeferredProfileFileMounts as j, splitInlineProfileFileMounts as k, gpuLeaseCommandSchema as l, SandboxTaskSession as m, createSandboxInstanceFromResponse as n, isCapacityShortageCreateError as nt, GPU_LEASE_PROVIDER_NAMES as o, toOtelJson as p, normalizeProxySecretReceipt as q, WorkspaceImages as r, isDeployWindowCreateError as rt, gpuAcceleratorSchema as s, SandboxInstance as t, generateIdempotencyKey as tt, buildTraceExportPayload as u, InteractiveTerminalFrameLog as v, getSandboxEventText as w, applySandboxEventText as x, createInteractiveTerminalCapture as y, normalizeCaptureProof as z };
|
|
@@ -2,8 +2,8 @@ import { r as agentProfileSchema } from "./profile-schema-B11dRfGB.js";
|
|
|
2
2
|
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-N1ksNIIJ.js";
|
|
3
3
|
import { C as SandboxError, O as ValidationError, u as CapabilityError } from "./errors-D44qyFpy.js";
|
|
4
4
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
|
|
5
|
-
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-
|
|
6
|
-
import "./cli-auth-bundle-
|
|
5
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-B4SGUcYM-CukXOw4n.js";
|
|
6
|
+
import "./cli-auth-bundle-DIZ0PWyR.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region ../../../packages/runtime-contracts/dist/seat-selection.js
|
|
9
9
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as SandboxError } from "./terminal-stream-types-
|
|
2
|
-
import { _t as SeatOwnerTransport, bt as SeatSelectionRequest, ft as SEAT_COMMAND_TIMEOUT_MS } from "./client-
|
|
1
|
+
import { R as SandboxError } from "./terminal-stream-types-BSyus9Qn.js";
|
|
2
|
+
import { _t as SeatOwnerTransport, bt as SeatSelectionRequest, ft as SEAT_COMMAND_TIMEOUT_MS } from "./client-DD-ocMMn.js";
|
|
3
3
|
|
|
4
4
|
//#region src/select-seat-command.d.ts
|
|
5
5
|
/** Public reply bound; the owner prints one metadata object. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as SandboxError, O as ValidationError } from "./errors-D44qyFpy.js";
|
|
2
|
-
import { r as SEAT_OWNER_MAX_RESPONSE_BYTES, s as seatOwnerTimeoutMs, t as SEAT_COMMAND_TIMEOUT_MS } from "./select-seat-
|
|
2
|
+
import { r as SEAT_OWNER_MAX_RESPONSE_BYTES, s as seatOwnerTimeoutMs, t as SEAT_COMMAND_TIMEOUT_MS } from "./select-seat-D0YBpIJl.js";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
4
|
//#region src/select-seat-command.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as combineAbortSignals } from "../abort-signal-BsriwJ8L.js";
|
|
2
|
-
import { i as fetchSandboxApi } from "../api-request-
|
|
2
|
+
import { i as fetchSandboxApi } from "../api-request-d6B6aqw2.js";
|
|
3
3
|
import "../sidecar-proxy-error-DTdbCbUM.js";
|
|
4
4
|
import { t as parseSSEStream } from "../sse-parser-BCG3iL9j.js";
|
|
5
5
|
import { PART_TEXT, PART_TEXT_SUFFIX } from "@tangle-network/agent-core/sse";
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_CHAIN_ID, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as BlueprintSandboxClientConfig, h as BlueprintSandboxClient, 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_JOBS_CONTRACT, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-
|
|
1
|
+
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_CHAIN_ID, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as BlueprintSandboxClientConfig, h as BlueprintSandboxClient, 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_JOBS_CONTRACT, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-iof5xqBR.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, BlueprintSandboxClient, BlueprintSandboxClientConfig, 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, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as SandboxCreateResponseParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as AgentSandboxBlueprintAbi, g as SandboxCreateParamTypes, h as JsonResponseParamTypes, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_DELETE, n as fetchQuote, o as validateQuote, p as JOB_SANDBOX_CREATE, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateResponseParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as AgentSandboxBlueprintAbi, g as SandboxCreateParamTypes, h as JsonResponseParamTypes, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_DELETE, n as fetchQuote, o as validateQuote, p as JOB_SANDBOX_CREATE, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxIdParamTypes } from "../tangle-wDixJBx_.js";
|
|
2
2
|
import { t as ITangleJobsAbi } from "../abi-pcDt2Adp.js";
|
|
3
3
|
export { AgentSandboxBlueprintAbi, BlueprintSandboxClient, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-B740bdgv.js";
|
|
2
2
|
import { a as readResponseJson } from "./errors-D44qyFpy.js";
|
|
3
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
3
|
+
import { i as fetchSandboxApi } from "./api-request-d6B6aqw2.js";
|
|
4
4
|
import { t as ITangleJobsAbi } from "./abi-pcDt2Adp.js";
|
|
5
5
|
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-BvN0Mk3j.js";
|
|
6
6
|
//#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
|