@tangle-network/sandbox 0.60.78-develop.20261025161102.a5d8be1 → 0.60.78-develop.20261025204905.3c2273e
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 +2 -2
- 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 +2 -2
- package/dist/{agent-run-outcome-DdsouF9L.d.ts → agent-run-outcome-BZUuKIbL.d.ts} +1 -1
- package/dist/api-request-D8Mni27A.js +89 -0
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{browser-interactive-control-controller-DmuOTpD1.d.ts → browser-interactive-control-controller-CH7CLpmc.d.ts} +1 -1
- package/dist/{chunked-upload-D1DL0f88.js → chunked-upload-CbtLVV6-.js} +1 -1
- package/dist/{chunked-upload-file-BpfpPCsE.js → chunked-upload-file-CbbWlCFt.js} +2 -2
- package/dist/{client-CuRp6nJP.d.ts → client-BPcdRhgx.d.ts} +5 -5
- package/dist/{client-D7emKV41.js → client-CtpCYHJC.js} +53 -111
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-Tn2ygatK.js → collaboration-Ox7K-TN6.js} +1 -1
- package/dist/{core-DnrLA0im.js → core-BKs0Yy2i.js} +2 -2
- package/dist/core.d.ts +6 -6
- package/dist/core.js +5 -5
- package/dist/{direct-http2-6fHIO7eF.js → direct-http2-BhGER8b8.js} +16 -4
- package/dist/{errors-CfQHPcLX.js → errors-Bs5G7JdV.js} +15 -1
- package/dist/{index-0eZStBT2.d.ts → index-Bk4Hsycj.d.ts} +6 -6
- package/dist/index.d.ts +12 -12
- package/dist/index.js +9 -9
- package/dist/intelligence/index.js +14 -32
- package/dist/interactive-control.d.ts +1 -1
- package/dist/{interactive-controller-CIHMF8C4.d.ts → interactive-controller-Db_8jnl7.d.ts} +3 -3
- package/dist/{interactive-controller-DoYo8Kq5.js → interactive-controller-ThIeP_oZ.js} +2 -2
- package/dist/lib/prepared-evidence.js +1 -1
- package/dist/lib/prepared-process.js +1 -1
- package/dist/{lines-DuELZcNj.d.ts → lines-D5XpPinb.d.ts} +1 -1
- package/dist/{lines-BdF6b46c.js → lines-DgRXUg5y.js} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{local-cli-auth--crCWGcG.js → local-cli-auth-fCKtTFG9.js} +1 -1
- package/dist/{mcp-local-CjcoVT7f.js → mcp-local-ClJ5TD-m.js} +1 -1
- package/dist/openai/index.js +23 -8
- package/dist/{preview-BRJcdA7Y.d.ts → preview-CGZfio1_.d.ts} +3 -3
- package/dist/{public-templates-DsozsQ0T.d.ts → public-templates-B5uA7KJv.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/public-templates.js +1 -1
- package/dist/{raw-evidence-archive-Dh6E0L0h.js → raw-evidence-archive-iDPF8eF_.js} +1 -1
- package/dist/response-rewrap-Bsj87BIq.js +28 -0
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +15 -23
- package/dist/{sandbox-C_DMDlO5.js → sandbox-DLbiLJjB.js} +38 -94
- package/dist/{secp256k1-_-uZfzOX.js → secp256k1-CoRKQn1k.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.d.ts +10 -12
- package/dist/session-gateway/index.js +35 -11
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-CedA3iP4.js → tangle-DL5MgMwB.js} +48 -37
- package/dist/{terminal-stream-types-BTqOP3Zi.d.ts → terminal-stream-types-yAt76vk7.d.ts} +11 -1
- package/dist/{types-0pIxzm2k.d.ts → types-BVsCs_Mz.d.ts} +29 -7
- package/package.json +9 -10
- /package/dist/{cli-auth-bundle-DKp1d5dJ.d.ts → cli-auth-bundle-Can3oLKY.d.ts} +0 -0
- /package/dist/{cli-auth-bundle-Ymv99-5G.js → cli-auth-bundle-yr4ZESxY.js} +0 -0
- /package/dist/{index-BMbJOPfn.d.ts → index-B8xo7y26.d.ts} +0 -0
- /package/dist/{index-DcEJnM4x.d.ts → index-mz8_2rr2.d.ts} +0 -0
- /package/dist/{keep-alive-fetch-_KZcsAS_.js → keep-alive-fetch-C92u8Kce.js} +0 -0
- /package/dist/{prepared-evidence-Bqxb-qWc.js → prepared-evidence-Di89Tatw.js} +0 -0
- /package/dist/{prepared-process-DNX-AVJ3.js → prepared-process-DuWP6Kb7.js} +0 -0
- /package/dist/{preview-operations-D5hsnCHF.js → preview-operations-BL7YCkes.js} +0 -0
- /package/dist/{utils-Bl-H3KsQ.js → utils-C86i6t3C.js} +0 -0
package/README.md
CHANGED
|
@@ -420,8 +420,8 @@ Use it to schedule your next attempt.
|
|
|
420
420
|
It says nothing about whether this call admitted a sandbox, and it is not a retry hint: `retryAfterMs` alone paces the SDK's own attempts.
|
|
421
421
|
An absent value means the cell published no estimate, not that the wait is short.
|
|
422
422
|
|
|
423
|
-
`TimeoutError.timeoutMs` is the budget
|
|
424
|
-
|
|
423
|
+
`TimeoutError.timeoutMs` is the configured budget; `elapsedMs` is the actual duration. A `create()` ends early when `Retry-After` exceeds its remaining budget.
|
|
424
|
+
The [shared raw transport](src/lib/api-request.mjs) owns authentication, cancellation and response deadlines for SDK clients and standalone probes; each caller keeps its retry and cleanup policy.
|
|
425
425
|
|
|
426
426
|
## One sandbox per customer
|
|
427
427
|
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-
|
|
2
|
-
import { Co as BackendType, Di as CodeResultPart, Ei as CodeExecutionResult, Ha as CodeLanguage, Ti as CodeExecutionOptions, bn as SandboxFleetParent, xa as BackendConfig, xt as SessionListOptions, yt as SessionInfo } from "../types-
|
|
3
|
-
import { t as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-Bk4Hsycj.js";
|
|
2
|
+
import { Co as BackendType, Di as CodeResultPart, Ei as CodeExecutionResult, Ha as CodeLanguage, Ti as CodeExecutionOptions, bn as SandboxFleetParent, xa as BackendConfig, xt as SessionListOptions, yt as SessionInfo } from "../types-BVsCs_Mz.js";
|
|
3
|
+
import { t as Sandbox } from "../client-BPcdRhgx.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-CGZfio1_.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
|
-
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-
|
|
2
|
-
import { D as assertCurrentBackendType } from "../interactive-controller-
|
|
3
|
-
import {
|
|
4
|
-
import { t as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
1
|
+
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-ClJ5TD-m.js";
|
|
2
|
+
import { D as assertCurrentBackendType } from "../interactive-controller-ThIeP_oZ.js";
|
|
3
|
+
import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-Bs5G7JdV.js";
|
|
4
|
+
import { t as Sandbox } from "../client-CtpCYHJC.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-DLbiLJjB.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-CGZfio1_.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 };
|
package/dist/agent/preview.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as listAgentPreviews, c as resolveSelfSandbox, i as getAgentPreview, n as assertPreviewId, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "../preview-operations-
|
|
1
|
+
import { a as listAgentPreviews, c as resolveSelfSandbox, i as getAgentPreview, n as assertPreviewId, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "../preview-operations-BL7YCkes.js";
|
|
2
2
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
3
3
|
//#region src/agent/preview-policy.ts
|
|
4
4
|
/** Channel-neutral preview tool selection from a host-authored profile. */
|
|
@@ -66,7 +66,7 @@ async function servePreviewMcp(request, config) {
|
|
|
66
66
|
if (typeof config.authorize !== "function") throw new Error("Preview MCP requires a host authorization callback");
|
|
67
67
|
const tools = config.tools ?? PREVIEW_TOOLS;
|
|
68
68
|
if (!tools.length || tools.some((tool) => !PREVIEW_TOOLS.includes(tool))) throw new Error("Preview MCP requires an explicit nonempty preview-only tool grant");
|
|
69
|
-
const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-
|
|
69
|
+
const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-ClJ5TD-m.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
|
|
70
70
|
const handle = await createMcpServer(config.box, {
|
|
71
71
|
name: "tangle-previews",
|
|
72
72
|
sessionId: config.sessionId,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ji as AgentQuestionRequest, Xi as AgentToolInvocation, Yi as AgentRunStatus, fa as SandboxEvent, na as DurablePlanSnapshot, qi as AgentApprovalRequirement } from "./types-
|
|
1
|
+
import { Ji as AgentQuestionRequest, Xi as AgentToolInvocation, Yi as AgentRunStatus, fa as SandboxEvent, na as DurablePlanSnapshot, qi as AgentApprovalRequirement } from "./types-BVsCs_Mz.js";
|
|
2
2
|
import { InteractionRequest } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { t as rewrapResponse } from "./response-rewrap-Bsj87BIq.js";
|
|
2
|
+
//#region src/lib/api-request.mjs
|
|
3
|
+
function withRequestContextHeaders(response, path, method, body = response.body) {
|
|
4
|
+
const headers = new Headers(response.headers);
|
|
5
|
+
headers.set("x-tangle-request-path", path);
|
|
6
|
+
if (method) headers.set("x-tangle-request-method", method);
|
|
7
|
+
return rewrapResponse(response, headers, body);
|
|
8
|
+
}
|
|
9
|
+
/** The SDK's authenticated raw transport, also shipped with standalone probes. */
|
|
10
|
+
async function fetchSandboxApi({ baseUrl, apiKey, timeoutMs = 3e4, signal, fetchImpl = fetch, networkError = (error) => error, timeoutError = () => new DOMException("The operation was aborted due to timeout", "TimeoutError") }, path, options, fetchOptions) {
|
|
11
|
+
const url = `${baseUrl.replace(/\/+$/, "")}${path}`;
|
|
12
|
+
const requestTimeoutMs = typeof fetchOptions?.timeoutMs === "number" && fetchOptions.timeoutMs > 0 ? fetchOptions.timeoutMs : timeoutMs;
|
|
13
|
+
const controller = new AbortController();
|
|
14
|
+
const timeoutId = setTimeout(() => controller.abort(), requestTimeoutMs);
|
|
15
|
+
timeoutId.unref?.();
|
|
16
|
+
const requestSignal = AbortSignal.any([
|
|
17
|
+
controller.signal,
|
|
18
|
+
...options?.signal ? [options.signal] : [],
|
|
19
|
+
...signal ? [signal] : []
|
|
20
|
+
]);
|
|
21
|
+
let bodyOwnsTimeout = false;
|
|
22
|
+
let reading = false;
|
|
23
|
+
const failure = (error, network = false) => {
|
|
24
|
+
if (!requestSignal.aborted) return network ? networkError(error) : error;
|
|
25
|
+
return requestSignal.reason === controller.signal.reason ? timeoutError(requestTimeoutMs) : requestSignal.reason ?? error;
|
|
26
|
+
};
|
|
27
|
+
try {
|
|
28
|
+
const headers = new Headers(options?.headers);
|
|
29
|
+
headers.set("Authorization", `Bearer ${apiKey}`);
|
|
30
|
+
const isFormDataBody = typeof FormData !== "undefined" && options?.body instanceof FormData;
|
|
31
|
+
if (!headers.has("Content-Type") && !isFormDataBody) headers.set("Content-Type", "application/json");
|
|
32
|
+
const response = await fetchImpl(url, {
|
|
33
|
+
...options,
|
|
34
|
+
headers,
|
|
35
|
+
signal: requestSignal
|
|
36
|
+
});
|
|
37
|
+
if (fetchOptions?.read) {
|
|
38
|
+
reading = true;
|
|
39
|
+
return await fetchOptions.read(withRequestContextHeaders(response, path, options?.method));
|
|
40
|
+
}
|
|
41
|
+
const mediaType = response.headers.get("content-type")?.split(";", 1)[0]?.trim().toLowerCase();
|
|
42
|
+
if (fetchOptions?.bodyDeadline !== false && response.body !== null && (!response.ok || mediaType === "application/json" || mediaType?.endsWith("+json") === true)) {
|
|
43
|
+
const reader = response.body.getReader();
|
|
44
|
+
let settled = false;
|
|
45
|
+
const body = new ReadableStream({
|
|
46
|
+
type: "bytes",
|
|
47
|
+
async pull(stream) {
|
|
48
|
+
try {
|
|
49
|
+
const chunk = await reader.read();
|
|
50
|
+
if (settled) return;
|
|
51
|
+
if (chunk.done) {
|
|
52
|
+
settled = true;
|
|
53
|
+
clearTimeout(timeoutId);
|
|
54
|
+
reader.releaseLock();
|
|
55
|
+
stream.close();
|
|
56
|
+
stream.byobRequest?.respond(0);
|
|
57
|
+
} else stream.enqueue(chunk.value);
|
|
58
|
+
} catch (error) {
|
|
59
|
+
if (settled) return;
|
|
60
|
+
settled = true;
|
|
61
|
+
clearTimeout(timeoutId);
|
|
62
|
+
reader.releaseLock();
|
|
63
|
+
stream.error(failure(error));
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
async cancel(reason) {
|
|
67
|
+
if (settled) return;
|
|
68
|
+
settled = true;
|
|
69
|
+
clearTimeout(timeoutId);
|
|
70
|
+
try {
|
|
71
|
+
await reader.cancel(reason);
|
|
72
|
+
} finally {
|
|
73
|
+
reader.releaseLock();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
const wrapped = withRequestContextHeaders(response, path, options?.method, body);
|
|
78
|
+
bodyOwnsTimeout = true;
|
|
79
|
+
return wrapped;
|
|
80
|
+
}
|
|
81
|
+
return withRequestContextHeaders(response, path, options?.method);
|
|
82
|
+
} catch (err) {
|
|
83
|
+
throw failure(err, !reading);
|
|
84
|
+
} finally {
|
|
85
|
+
if (!bodyOwnsTimeout) clearTimeout(timeoutId);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
export { fetchSandboxApi as t };
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema, t as CliAuthReference } from "../cli-auth-bundle-
|
|
2
|
-
import { _ as ReadTokenPayload, a as issueCollaborationToken, c as issueSessionScopedToken, d as AnyTokenPayload, f as BatchScopedTokenPayload, g as ProjectScopedTokenPayload, h as IssueCollaborationTokenOptions, i as issueBatchScopedToken, l as unsafeDecodeToken, m as CollaborationTokenPayload, n as getTokenTTL, o as issueProjectScopedToken, p as CollaborationAccess, r as isTokenExpiringSoon, s as issueReadToken, t as ProductTokenIssuer, u as verifyToken, v as SessionScopedTokenPayload, y as TokenScope } from "../index-
|
|
1
|
+
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema, t as CliAuthReference } from "../cli-auth-bundle-Can3oLKY.js";
|
|
2
|
+
import { _ as ReadTokenPayload, a as issueCollaborationToken, c as issueSessionScopedToken, d as AnyTokenPayload, f as BatchScopedTokenPayload, g as ProjectScopedTokenPayload, h as IssueCollaborationTokenOptions, i as issueBatchScopedToken, l as unsafeDecodeToken, m as CollaborationTokenPayload, n as getTokenTTL, o as issueProjectScopedToken, p as CollaborationAccess, r as isTokenExpiringSoon, s as issueReadToken, t as ProductTokenIssuer, u as verifyToken, v as SessionScopedTokenPayload, y as TokenScope } from "../index-mz8_2rr2.js";
|
|
3
3
|
export { AnyTokenPayload, BatchScopedTokenPayload, CliAuthReference, CollaborationAccess, CollaborationTokenPayload, IssueCollaborationTokenOptions, ProductTokenIssuer, ProjectScopedTokenPayload, ReadTokenPayload, SessionScopedTokenPayload, TokenScope, assertCliAuthReferenceSupported, cliAuthReferenceSchema, getTokenTTL, isTokenExpiringSoon, issueBatchScopedToken, issueCollaborationToken, issueProjectScopedToken, issueReadToken, issueSessionScopedToken, materializeCliAuthBundle, unsafeDecodeToken, verifyToken };
|
package/dist/auth/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-
|
|
1
|
+
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-yr4ZESxY.js";
|
|
2
2
|
//#region src/auth/tokens.ts
|
|
3
3
|
const textEncoder = new TextEncoder();
|
|
4
4
|
const textDecoder = new TextDecoder();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as TerminalStreamHandlers } from "./terminal-stream-types-
|
|
1
|
+
import { i as TerminalStreamHandlers } from "./terminal-stream-types-yAt76vk7.js";
|
|
2
2
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaimAcknowledgement, AgentInteractiveSessionStatus } from "@tangle-network/agent-interface";
|
|
3
3
|
import { AgentInteractiveSessionControlClaim as AgentInteractiveSessionControlClaim$1, AgentInteractiveSessionControlClaimRequest as AgentInteractiveSessionControlClaimRequest$1, AgentInteractiveSessionRef as AgentInteractiveSessionRef$1 } from "@tangle-network/agent-interface/environment-interactive-control";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as
|
|
1
|
+
import { D as isFileTooLargeErrorBody, O as isPayloadTooLargeErrorBody, S as ServerError, T as TimeoutError, h as NetworkError, k as FILE_UPLOAD_SESSION_MAX_BYTES, n as parseErrorResponse, x as SandboxError, y as QuotaError } from "./errors-Bs5G7JdV.js";
|
|
2
2
|
//#region src/lib/chunked-upload.ts
|
|
3
3
|
/**
|
|
4
4
|
* Chunked upload — the sanctioned SDK path for delivering payloads larger
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-
|
|
1
|
+
import { k as FILE_UPLOAD_SESSION_MAX_BYTES } from "./errors-Bs5G7JdV.js";
|
|
2
|
+
import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-CbtLVV6-.js";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { open } from "node:fs/promises";
|
|
5
5
|
//#region src/lib/chunked-upload-file.ts
|
|
@@ -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, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Gt as FleetExecDispatchResult, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, Ia as GpuLeaseProviderName, Ii as SdkTimingHook, It as FleetAgentId, Jt as FleetPromptDispatchResult, Ki as BatchRunOptions, 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, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Yt as FleetRunEvent, Z as TokenRefreshHandler, Zi as CreateIntelligenceReportOptions, Zt as ListSandboxFleetOptions, _n as SandboxFleetManifest, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportBudget, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, bn as SandboxFleetParent, ca as IntelligenceReportWindow, cn as SandboxFleetDispatchResponse, cr as SandboxShapesInfo, da as PromptResult, dn as SandboxFleetInfo, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, fa as SandboxEvent, fo as BatchResult, fr as SandboxShapePreset, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, hn as SandboxFleetMachineRecord, ho as PublicBatchRunRequest, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReport, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, la as PromptInputPart, ln as SandboxFleetDriverCapability, nn as SandboxFleetAgent, nt as ConversationTurnResult, oa as IntelligenceReportCompareTo, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, or as SandboxConfig, pn as SandboxFleetMachine, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, sr as SandboxResources, ti as ExecResult, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, ua as PromptOptions, vo as BatchEvent, w as SecretsManager, wn as SandboxFleetSpend, xa as BackendConfig, ya as TurnBackendConfig, 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-Bk4Hsycj.js";
|
|
2
|
+
import { I as SandboxError, c as MintInteractiveSessionTokenOptions, u as ScopedToken } from "./terminal-stream-types-yAt76vk7.js";
|
|
3
|
+
import { $n as TeeAttestationReport, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Bt as FleetDispatchCancelResult, En as SandboxFleetTraceBundle, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Gt as FleetExecDispatchResult, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, Ia as GpuLeaseProviderName, Ii as SdkTimingHook, It as FleetAgentId, Jt as FleetPromptDispatchResult, Ki as BatchRunOptions, 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, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Yt as FleetRunEvent, Z as TokenRefreshHandler, Zi as CreateIntelligenceReportOptions, Zt as ListSandboxFleetOptions, _n as SandboxFleetManifest, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportBudget, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, bn as SandboxFleetParent, ca as IntelligenceReportWindow, cn as SandboxFleetDispatchResponse, cr as SandboxShapesInfo, da as PromptResult, dn as SandboxFleetInfo, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, fa as SandboxEvent, fo as BatchResult, fr as SandboxShapePreset, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, hn as SandboxFleetMachineRecord, ho as PublicBatchRunRequest, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReport, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, la as PromptInputPart, ln as SandboxFleetDriverCapability, nn as SandboxFleetAgent, nt as ConversationTurnResult, oa as IntelligenceReportCompareTo, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, or as SandboxConfig, pn as SandboxFleetMachine, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, sr as SandboxResources, ti as ExecResult, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, ua as PromptOptions, vo as BatchEvent, w as SecretsManager, wn as SandboxFleetSpend, xa as BackendConfig, ya as TurnBackendConfig, yn as SandboxFleetOperationsSummary, zn as SandboxInfo } from "./types-BVsCs_Mz.js";
|
|
4
|
+
import { t as LinesClient } from "./lines-D5XpPinb.js";
|
|
5
|
+
import { a as PublicTemplatesClient } from "./public-templates-B5uA7KJv.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
8
8
|
import { AgentInteractiveSessionRef, AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities as AgentProfileCapabilities$1, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSeat, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult as AgentProfileValidationResult$1, AgentRunCancellationAcknowledgement as AgentRunCancellationAcknowledgement$1, AgentRunCancellationRequest as AgentRunCancellationRequest$1, AgentRuntimeAttachments, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset as SandboxSizePreset$1 } from "@tangle-network/agent-interface";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-CLvdSX8V.js";
|
|
2
|
-
import { A as normalizeRuntimeBackendConfig, C as encodePromptForWire, D as assertCurrentBackendType, E as applyRequestedModel, N as withProfileHarness, O as foldModelRoutingFields, P as withoutCreateOnlyModelFields, b as parseSSEStream, o as requestInteractiveSessionToken } from "./interactive-controller-
|
|
3
|
-
import {
|
|
2
|
+
import { A as normalizeRuntimeBackendConfig, C as encodePromptForWire, D as assertCurrentBackendType, E as applyRequestedModel, N as withProfileHarness, O as foldModelRoutingFields, P as withoutCreateOnlyModelFields, b as parseSSEStream, o as requestInteractiveSessionToken } from "./interactive-controller-ThIeP_oZ.js";
|
|
3
|
+
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-Bs5G7JdV.js";
|
|
4
4
|
import { f as combineAbortSignals } from "./browser-interactive-control-controller-k1KkqDGF.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { t as fetchSandboxApi } from "./api-request-D8Mni27A.js";
|
|
6
|
+
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-C92u8Kce.js";
|
|
7
|
+
import { A as normalizeSandboxCreateReceipt, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, T as splitInlineProfileFileMounts, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, o as exportTraceBundle } from "./sandbox-DLbiLJjB.js";
|
|
8
|
+
import { t as LinesClient } from "./lines-DgRXUg5y.js";
|
|
8
9
|
import { PublicTemplatesClient } from "./public-templates.js";
|
|
9
10
|
import { z } from "zod";
|
|
10
11
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
@@ -1272,6 +1273,7 @@ function isDeployWindowCreateError(cause) {
|
|
|
1272
1273
|
function isRetryableCreateError(cause) {
|
|
1273
1274
|
if (cause instanceof NetworkError) return true;
|
|
1274
1275
|
if (cause instanceof GpuProviderNotConfiguredError) return false;
|
|
1276
|
+
if (cause instanceof CompliancePlacementError) return false;
|
|
1275
1277
|
if (cause instanceof QuotaError && NON_RETRYABLE_CREATE_QUOTA_REASONS.has(cause.quotaType.toUpperCase())) return false;
|
|
1276
1278
|
return cause instanceof SandboxError && cause.status !== void 0 && RETRYABLE_CREATE_STATUS_CODES.has(cause.status);
|
|
1277
1279
|
}
|
|
@@ -1314,11 +1316,11 @@ function isLocalSandboxEndpoint(baseUrl) {
|
|
|
1314
1316
|
}
|
|
1315
1317
|
}
|
|
1316
1318
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
1317
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth
|
|
1319
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-fCKtTFG9.js");
|
|
1318
1320
|
return discoverLocalCliAuthFiles(backendType);
|
|
1319
1321
|
}
|
|
1320
1322
|
async function loadLocalCliAuthExpectation(backendType) {
|
|
1321
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth
|
|
1323
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-fCKtTFG9.js");
|
|
1322
1324
|
return describe(backendType);
|
|
1323
1325
|
}
|
|
1324
1326
|
/**
|
|
@@ -1361,12 +1363,6 @@ async function hydrateLocalCliBackendAuth(backend, baseUrl, trustLocalCliAuth) {
|
|
|
1361
1363
|
const DEFAULT_TIMEOUT_MS$1 = 3e4;
|
|
1362
1364
|
const DEFAULT_PLATFORM_URL = "https://id.tangle.tools";
|
|
1363
1365
|
const PRODUCTION_BASE_URL = "https://sandbox.tangle.tools";
|
|
1364
|
-
function withRequestContextHeaders(response, path, method, body = response.body) {
|
|
1365
|
-
const headers = new Headers(response.headers);
|
|
1366
|
-
headers.set("x-tangle-request-path", path);
|
|
1367
|
-
if (method) headers.set("x-tangle-request-method", method);
|
|
1368
|
-
return rewrapResponse(response, headers, body);
|
|
1369
|
-
}
|
|
1370
1366
|
let sandboxTransportApiKey;
|
|
1371
1367
|
var SandboxTransport = class {
|
|
1372
1368
|
static {
|
|
@@ -1425,82 +1421,21 @@ var SandboxTransport = class {
|
|
|
1425
1421
|
* even though the server is still working.
|
|
1426
1422
|
*/
|
|
1427
1423
|
async fetch(path, options, fetchOptions) {
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
...options?.signal ? [options.signal] : [],
|
|
1436
|
-
...this.signal ? [this.signal] : []
|
|
1437
|
-
]);
|
|
1438
|
-
let bodyOwnsTimeout = false;
|
|
1439
|
-
try {
|
|
1440
|
-
const headers = new Headers(options?.headers);
|
|
1441
|
-
headers.set("Authorization", `Bearer ${this.#apiKey}`);
|
|
1442
|
-
const isFormDataBody = typeof FormData !== "undefined" && options?.body instanceof FormData;
|
|
1443
|
-
if (!headers.has("Content-Type") && !isFormDataBody) headers.set("Content-Type", "application/json");
|
|
1444
|
-
const response = await fetchWithKeepAlive(url, {
|
|
1445
|
-
...options,
|
|
1446
|
-
headers,
|
|
1447
|
-
signal: requestSignal
|
|
1448
|
-
}, {
|
|
1449
|
-
onTiming: this.onTiming,
|
|
1450
|
-
path
|
|
1451
|
-
});
|
|
1452
|
-
const mediaType = response.headers.get("content-type")?.split(";", 1)[0]?.trim().toLowerCase();
|
|
1453
|
-
if (response.body !== null && (!response.ok || mediaType === "application/json" || mediaType?.endsWith("+json") === true)) {
|
|
1454
|
-
const reader = response.body.getReader();
|
|
1455
|
-
let settled = false;
|
|
1456
|
-
const body = new ReadableStream({
|
|
1457
|
-
type: "bytes",
|
|
1458
|
-
async pull(stream) {
|
|
1459
|
-
try {
|
|
1460
|
-
const chunk = await reader.read();
|
|
1461
|
-
if (settled) return;
|
|
1462
|
-
if (chunk.done) {
|
|
1463
|
-
settled = true;
|
|
1464
|
-
clearTimeout(timeoutId);
|
|
1465
|
-
reader.releaseLock();
|
|
1466
|
-
stream.close();
|
|
1467
|
-
stream.byobRequest?.respond(0);
|
|
1468
|
-
} else stream.enqueue(chunk.value);
|
|
1469
|
-
} catch (error) {
|
|
1470
|
-
if (settled) return;
|
|
1471
|
-
settled = true;
|
|
1472
|
-
clearTimeout(timeoutId);
|
|
1473
|
-
reader.releaseLock();
|
|
1474
|
-
stream.error(controller.signal.aborted && requestSignal.reason === controller.signal.reason ? new TimeoutError(requestTimeoutMs) : options?.signal?.reason ?? error);
|
|
1475
|
-
}
|
|
1476
|
-
},
|
|
1477
|
-
async cancel(reason) {
|
|
1478
|
-
if (settled) return;
|
|
1479
|
-
settled = true;
|
|
1480
|
-
clearTimeout(timeoutId);
|
|
1481
|
-
try {
|
|
1482
|
-
await reader.cancel(reason);
|
|
1483
|
-
} finally {
|
|
1484
|
-
reader.releaseLock();
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
});
|
|
1488
|
-
const wrapped = withRequestContextHeaders(response, path, options?.method, body);
|
|
1489
|
-
bodyOwnsTimeout = true;
|
|
1490
|
-
return wrapped;
|
|
1491
|
-
}
|
|
1492
|
-
return withRequestContextHeaders(response, path, options?.method);
|
|
1493
|
-
} catch (err) {
|
|
1494
|
-
if (controller.signal.aborted && requestSignal.reason === controller.signal.reason) throw new TimeoutError(requestTimeoutMs);
|
|
1495
|
-
if (options?.signal?.aborted) throw options.signal.reason ?? err;
|
|
1496
|
-
if (this.signal?.aborted) throw this.signal.reason ?? err;
|
|
1497
|
-
throw new NetworkError(`Failed to connect to Sandbox API: ${err instanceof Error ? err.message : String(err)}`, err instanceof Error ? err : void 0, {
|
|
1424
|
+
return fetchSandboxApi({
|
|
1425
|
+
baseUrl: this.baseUrl,
|
|
1426
|
+
apiKey: this.#apiKey,
|
|
1427
|
+
timeoutMs: this.timeoutMs,
|
|
1428
|
+
signal: this.signal,
|
|
1429
|
+
timeoutError: (ms) => new TimeoutError(ms),
|
|
1430
|
+
networkError: (err) => new NetworkError(`Failed to connect to Sandbox API: ${err instanceof Error ? err.message : String(err)}`, err instanceof Error ? err : void 0, {
|
|
1498
1431
|
endpoint: path,
|
|
1499
1432
|
origin: "sandbox-api"
|
|
1500
|
-
})
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1433
|
+
}),
|
|
1434
|
+
fetchImpl: (url, init) => fetchWithKeepAlive(url, init, {
|
|
1435
|
+
onTiming: this.onTiming,
|
|
1436
|
+
path
|
|
1437
|
+
})
|
|
1438
|
+
}, path, options, fetchOptions);
|
|
1504
1439
|
}
|
|
1505
1440
|
parseInfo(data) {
|
|
1506
1441
|
return {
|
|
@@ -1930,6 +1865,36 @@ var SandboxManagement = class extends SandboxTransport {
|
|
|
1930
1865
|
};
|
|
1931
1866
|
//#endregion
|
|
1932
1867
|
//#region src/client-create.ts
|
|
1868
|
+
/** Create options the API takes exactly as given, in wire order. */
|
|
1869
|
+
function verbatimCreateFields(options) {
|
|
1870
|
+
return {
|
|
1871
|
+
gpuLease: options?.gpuLease,
|
|
1872
|
+
sshEnabled: options?.sshEnabled,
|
|
1873
|
+
sshPublicKeys: options?.sshPublicKeys,
|
|
1874
|
+
sshKeyIds: options?.sshKeyIds,
|
|
1875
|
+
webTerminalEnabled: options?.webTerminalEnabled,
|
|
1876
|
+
maxLifetimeSeconds: options?.maxLifetimeSeconds,
|
|
1877
|
+
idleTimeoutSeconds: options?.idleTimeoutSeconds,
|
|
1878
|
+
coldTimeoutSeconds: options?.coldTimeoutSeconds,
|
|
1879
|
+
deleteAfterStoppedSeconds: options?.deleteAfterStoppedSeconds,
|
|
1880
|
+
storage: options?.storage,
|
|
1881
|
+
ephemeral: options?.ephemeral,
|
|
1882
|
+
fromSnapshot: options?.fromSnapshot,
|
|
1883
|
+
fromSandboxId: options?.fromSandboxId,
|
|
1884
|
+
templateId: options?.templateId,
|
|
1885
|
+
publicTemplateId: options?.publicTemplateId,
|
|
1886
|
+
publicTemplateVersionId: options?.publicTemplateVersionId,
|
|
1887
|
+
secrets: options?.secrets,
|
|
1888
|
+
ownerContext: options?.ownerContext,
|
|
1889
|
+
confidential: options?.confidential,
|
|
1890
|
+
metadata: options?.metadata,
|
|
1891
|
+
teamId: options?.teamId,
|
|
1892
|
+
capabilities: options?.capabilities,
|
|
1893
|
+
privacy: options?.privacy,
|
|
1894
|
+
compliance: options?.compliance,
|
|
1895
|
+
egressPolicy: options?.egressPolicy
|
|
1896
|
+
};
|
|
1897
|
+
}
|
|
1933
1898
|
var SandboxCreation = class extends SandboxManagement {
|
|
1934
1899
|
/**
|
|
1935
1900
|
* Create a new sandbox.
|
|
@@ -2042,30 +2007,7 @@ var SandboxCreation = class extends SandboxManagement {
|
|
|
2042
2007
|
env: options?.env,
|
|
2043
2008
|
envRecovery: options?.envRecovery,
|
|
2044
2009
|
resources,
|
|
2045
|
-
|
|
2046
|
-
sshEnabled: options?.sshEnabled,
|
|
2047
|
-
sshPublicKeys: options?.sshPublicKeys,
|
|
2048
|
-
sshKeyIds: options?.sshKeyIds,
|
|
2049
|
-
webTerminalEnabled: options?.webTerminalEnabled,
|
|
2050
|
-
maxLifetimeSeconds: options?.maxLifetimeSeconds,
|
|
2051
|
-
idleTimeoutSeconds: options?.idleTimeoutSeconds,
|
|
2052
|
-
coldTimeoutSeconds: options?.coldTimeoutSeconds,
|
|
2053
|
-
deleteAfterStoppedSeconds: options?.deleteAfterStoppedSeconds,
|
|
2054
|
-
storage: options?.storage,
|
|
2055
|
-
ephemeral: options?.ephemeral,
|
|
2056
|
-
fromSnapshot: options?.fromSnapshot,
|
|
2057
|
-
fromSandboxId: options?.fromSandboxId,
|
|
2058
|
-
templateId: options?.templateId,
|
|
2059
|
-
publicTemplateId: options?.publicTemplateId,
|
|
2060
|
-
publicTemplateVersionId: options?.publicTemplateVersionId,
|
|
2061
|
-
secrets: options?.secrets,
|
|
2062
|
-
ownerContext: options?.ownerContext,
|
|
2063
|
-
confidential: options?.confidential,
|
|
2064
|
-
metadata: options?.metadata,
|
|
2065
|
-
teamId: options?.teamId,
|
|
2066
|
-
capabilities: options?.capabilities,
|
|
2067
|
-
privacy: options?.privacy,
|
|
2068
|
-
egressPolicy: options?.egressPolicy,
|
|
2010
|
+
...verbatimCreateFields(options),
|
|
2069
2011
|
idempotencyKey,
|
|
2070
2012
|
billingOwnerId: options?.billingOwnerId,
|
|
2071
2013
|
funding: options?.funding,
|
|
@@ -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-B8xo7y26.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-Ox7K-TN6.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as TimeoutError, h as NetworkError, n as parseErrorResponse } from "./errors-Bs5G7JdV.js";
|
|
2
2
|
//#region src/collaboration/client.ts
|
|
3
3
|
const DEFAULT_TIMEOUT_MS = 3e4;
|
|
4
4
|
function normalizeBaseUrl(url) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as ValidationError, s as CapabilityError, x as SandboxError } from "./errors-Bs5G7JdV.js";
|
|
2
2
|
import { d as awaitWithAbort } from "./browser-interactive-control-controller-k1KkqDGF.js";
|
|
3
|
-
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-
|
|
3
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-yr4ZESxY.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { agentProfileSchema, canonicalAgentProfileDigest } from "@tangle-network/agent-interface";
|
|
6
6
|
//#region src/line-application.ts
|
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 { A as
|
|
3
|
-
import { Ai as ManagedProcessRecord, Ba as WorkspaceImagePublishInput, Ct as SessionMessageAdmission, H as PreviewLinkInfo, Ja as SandboxEnvRecoveryView, Mi as ManagedProcessSpec, Ni as ManagedProcessState, Oi as ManagedProcessJobs, U as PreviewLinkManager, Va as WorkspaceImagePublishResult, W as PreviewLinkWaitOptions, _r as NetworkConfig, ar as CreateSandboxOptions, ei as ExecOptions, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, la as PromptInputPart, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecovery, ti as ExecResult, tt as ConversationTurnOptions, 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 { At as SeatOwnerTransport, Bt as InstanceRecord, Cn as isBackendRegistryInteractionKind, Dt as SandboxSeatCredentials, Et as SandboxResolvedSeat, Ft as gatewaySeatTransport, It as ManagedProcessClient, Lt as EnsureInstanceOptions, Mt as SeatSelectionError, Nt as SeatSelectionRequest, Ot as SandboxSeatSelectionInput, Pt as createSelectSeat, Rt as HostedInstance, Sn as backendRegistryResponseSchema, Tn as parseBackendRegistryResponseBody, Tt as CreateSelectSeatOptions, Ut as InstancesClient, Vt as InstanceRestartingError, _n as BackendRegistryInteractionKind, bn as backendRegistryEntrySchema, gn as BackendRegistryEntry, hn as BackendRegistryCapabilities, jt as SeatResolutionObservation, kt as SeatOwnerReply, t as Sandbox, vn as BackendRegistryResponse, wn as parseBackendRegistryResponse, wt as ISOLATED_CREATION_ATTESTATION_VERSION, xn as backendRegistryInteractionKindSchema, yn as backendRegistryCapabilitiesSchema, zt as InstanceProfile } 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-Bk4Hsycj.js";
|
|
2
|
+
import { A as NetworkError, B as StateError, E as FileWriteConflictError, I as SandboxError, L as SandboxErrorJson, M as PartialFailureError, N as ProfileFileMountPathError, P as QuotaError, R as SandboxFailureDetail, S as CapabilityError, U as TimeoutError, W as ValidationError, b as AuthError, j as NotFoundError, z as ServerError } from "./terminal-stream-types-yAt76vk7.js";
|
|
3
|
+
import { Ai as ManagedProcessRecord, Ba as WorkspaceImagePublishInput, Ct as SessionMessageAdmission, H as PreviewLinkInfo, Ja as SandboxEnvRecoveryView, Mi as ManagedProcessSpec, Ni as ManagedProcessState, Oi as ManagedProcessJobs, U as PreviewLinkManager, Va as WorkspaceImagePublishResult, W as PreviewLinkWaitOptions, _r as NetworkConfig, ar as CreateSandboxOptions, ei as ExecOptions, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, la as PromptInputPart, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecovery, ti as ExecResult, tt as ConversationTurnOptions, zn as SandboxInfo } from "./types-BVsCs_Mz.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-D5XpPinb.js";
|
|
5
|
+
import { At as SeatOwnerTransport, Bt as InstanceRecord, Cn as isBackendRegistryInteractionKind, Dt as SandboxSeatCredentials, Et as SandboxResolvedSeat, Ft as gatewaySeatTransport, It as ManagedProcessClient, Lt as EnsureInstanceOptions, Mt as SeatSelectionError, Nt as SeatSelectionRequest, Ot as SandboxSeatSelectionInput, Pt as createSelectSeat, Rt as HostedInstance, Sn as backendRegistryResponseSchema, Tn as parseBackendRegistryResponseBody, Tt as CreateSelectSeatOptions, Ut as InstancesClient, Vt as InstanceRestartingError, _n as BackendRegistryInteractionKind, bn as backendRegistryEntrySchema, gn as BackendRegistryEntry, hn as BackendRegistryCapabilities, jt as SeatResolutionObservation, kt as SeatOwnerReply, t as Sandbox, vn as BackendRegistryResponse, wn as parseBackendRegistryResponse, wt as ISOLATED_CREATION_ATTESTATION_VERSION, xn as backendRegistryInteractionKindSchema, yn as backendRegistryCapabilitiesSchema, zt as InstanceProfile } from "./client-BPcdRhgx.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-B5uA7KJv.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, 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 };
|
package/dist/core.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
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-
|
|
3
|
-
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
4
|
-
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-
|
|
1
|
+
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-Bs5G7JdV.js";
|
|
2
|
+
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-CtpCYHJC.js";
|
|
3
|
+
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-DLbiLJjB.js";
|
|
4
|
+
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-DgRXUg5y.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, 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, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-BKs0Yy2i.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 };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { t as emitTiming } from "./keep-alive-fetch-
|
|
1
|
+
import { t as emitTiming } from "./keep-alive-fetch-C92u8Kce.js";
|
|
2
2
|
//#region src/lib/direct-http2.ts
|
|
3
3
|
const sessions = /* @__PURE__ */ new Map();
|
|
4
4
|
const inFlight = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
const IDLE_SESSION_MS = 6e4;
|
|
5
6
|
async function fetchDirectHttp2(url, init, timing) {
|
|
6
7
|
const { connect } = await import("node:http2");
|
|
7
8
|
const { Readable } = await import("node:stream");
|
|
@@ -23,7 +24,13 @@ async function fetchDirectHttp2(url, init, timing) {
|
|
|
23
24
|
forget();
|
|
24
25
|
opened.close();
|
|
25
26
|
});
|
|
26
|
-
opened.
|
|
27
|
+
opened.on("timeout", () => opened.close());
|
|
28
|
+
opened.setTimeout(IDLE_SESSION_MS);
|
|
29
|
+
const heartbeat = setInterval(() => {
|
|
30
|
+
if ((inFlight.get(opened) ?? 0) > 0 && !opened.destroyed) opened.ping(() => {});
|
|
31
|
+
}, 15e3);
|
|
32
|
+
heartbeat.unref();
|
|
33
|
+
opened.once("close", () => clearInterval(heartbeat));
|
|
27
34
|
opened.unref();
|
|
28
35
|
}
|
|
29
36
|
const activeSession = session;
|
|
@@ -41,11 +48,16 @@ async function fetchDirectHttp2(url, init, timing) {
|
|
|
41
48
|
const started = performance.now();
|
|
42
49
|
const stream = activeSession.request(headers);
|
|
43
50
|
activeSession.ref();
|
|
44
|
-
|
|
51
|
+
const open = (inFlight.get(activeSession) ?? 0) + 1;
|
|
52
|
+
inFlight.set(activeSession, open);
|
|
53
|
+
if (open === 1) activeSession.setTimeout(0);
|
|
45
54
|
stream.once("close", () => {
|
|
46
55
|
const count = (inFlight.get(activeSession) ?? 1) - 1;
|
|
47
56
|
inFlight.set(activeSession, count);
|
|
48
|
-
if (!count)
|
|
57
|
+
if (!count) {
|
|
58
|
+
activeSession.unref();
|
|
59
|
+
if (!activeSession.destroyed) activeSession.setTimeout(IDLE_SESSION_MS);
|
|
60
|
+
}
|
|
49
61
|
});
|
|
50
62
|
const abort = () => stream.destroy(request.signal.reason instanceof Error ? request.signal.reason : /* @__PURE__ */ new Error("Request aborted"));
|
|
51
63
|
request.signal.addEventListener("abort", abort, { once: true });
|
|
@@ -233,6 +233,19 @@ var GpuProviderNotConfiguredError = class extends CapabilityError {
|
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
/**
|
|
236
|
+
* A create that requires HIPAA placement was refused. `code` says why:
|
|
237
|
+
* `COMPLIANCE_NOT_ENTITLED` (403) when the credential carries no HIPAA
|
|
238
|
+
* entitlement, `COMPLIANCE_CELL_UNAVAILABLE` (503) when no HIPAA-designated
|
|
239
|
+
* cell can take the create now. Either way nothing was created, and the
|
|
240
|
+
* create was not placed in any other cell. The SDK does not retry it.
|
|
241
|
+
*/
|
|
242
|
+
var CompliancePlacementError = class extends SandboxError {
|
|
243
|
+
constructor(message, code, status, metadata) {
|
|
244
|
+
super(message, code, status, metadata);
|
|
245
|
+
this.name = "CompliancePlacementError";
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
236
249
|
* A multi-resource operation failed for one or more branches.
|
|
237
250
|
*/
|
|
238
251
|
var PartialFailureError = class extends SandboxError {
|
|
@@ -644,6 +657,7 @@ function parseErrorResponse(status, body, context, headers) {
|
|
|
644
657
|
if (code === "GPU_PROVIDER_NOT_CONFIGURED" || code === "GPU_PROVIDERS_NOT_CONFIGURED") return new GpuProviderNotConfiguredError(message, readGpuProviderRequirements(data), status, metadata);
|
|
645
658
|
if (isCapabilityCode(code)) return new CapabilityError(message, code, status, metadata, readCapability(data, errorObj));
|
|
646
659
|
if (isPartialFailureCode(code)) return new PartialFailureError(message, code, status, metadata, readFailures(data, errorObj));
|
|
660
|
+
if (code === "COMPLIANCE_NOT_ENTITLED" || code === "COMPLIANCE_CELL_UNAVAILABLE") return new CompliancePlacementError(message, code, status, metadata);
|
|
647
661
|
if (code === "EGRESS_PROXY_RECOVERY_REQUIRED") return new EgressProxyRecoveryError(message, metadata);
|
|
648
662
|
if (code === "PROFILE_FILE_MOUNT_OUTSIDE_ROOTS" && typeof data.path === "string") return new ProfileFileMountPathError(data.path, message, code, metadata);
|
|
649
663
|
if (code === "RESUME_ENV_REQUIRED") {
|
|
@@ -707,4 +721,4 @@ var TerminalStreamError = class extends Error {
|
|
|
707
721
|
}
|
|
708
722
|
};
|
|
709
723
|
//#endregion
|
|
710
|
-
export {
|
|
724
|
+
export { SANDBOX_PROXY_REQUEST_MAX_BYTES as A, StateError as C, isFileTooLargeErrorBody as D, ValidationError as E, isProfileFileMountOutsideRoots as F, profileFileMountOutsideRootsMessage as I, PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE as M, SANDBOX_AGENT_HOME as N, isPayloadTooLargeErrorBody as O, SANDBOX_FILE_API_ABSOLUTE_ROOTS as P, ServerError as S, TimeoutError as T, PartialFailureError as _, AuthError as a, ResumeEnvRequiredError as b, CompliancePlacementError as c, FileWriteConflictError as d, GpuProviderNotConfiguredError as f, NotFoundError as g, NetworkError as h, readResponseJson as i, FILE_DECODED_WRITE_MAX_BYTES as j, FILE_UPLOAD_SESSION_MAX_BYTES as k, EdgeNotReadyError as l, NON_RETRYABLE_CREATE_QUOTA_REASONS as m, parseErrorResponse as n, BranchFanoutExceedsHostError as o, KeyBudgetExhaustedError as p, parseResponseError as r, CapabilityError as s, TerminalStreamError as t, EgressProxyRecoveryError as u, ProfileFileMountPathError as v, StreamInterruptedError as w, SandboxError as x, QuotaError as y };
|