@tangle-network/sandbox 0.60.78-develop.20261025165214.899782a → 0.60.78-develop.20261026083210.7e89627
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-Cp8hzV98.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-D7emKV41.js → client-Dl8XOOyt.js} +53 -111
- package/dist/{client-CuRp6nJP.d.ts → client-aBXGR6bc.d.ts} +26 -6
- 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-DgUywLjg.js} +33 -3
- package/dist/core.d.ts +7 -7
- package/dist/core.js +6 -6
- package/dist/{direct-http2-6fHIO7eF.js → direct-http2--35cHOv5.js} +24 -11
- package/dist/{errors-CfQHPcLX.js → errors-Bs5G7JdV.js} +15 -1
- package/dist/{index-0eZStBT2.d.ts → index-EebEqYqj.d.ts} +12 -7
- 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-Mh7Ud5DQ.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-BTIFNxRO.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-D6tTCcmv.d.ts} +3 -3
- package/dist/{public-templates-DsozsQ0T.d.ts → public-templates-sZe-0Qvi.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-DB-j-O2G.js} +117 -117
- 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-BO2p4BNH.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-DUNlmyED.d.ts} +43 -8
- package/package.json +15 -28
- /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-EebEqYqj.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-DUNlmyED.js";
|
|
3
|
+
import { t as Sandbox } from "../client-aBXGR6bc.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-D6tTCcmv.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-Dl8XOOyt.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-DB-j-O2G.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-D6tTCcmv.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-DUNlmyED.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,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-DB-j-O2G.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,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-EebEqYqj.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-DUNlmyED.js";
|
|
4
|
+
import { t as LinesClient } from "./lines-BTIFNxRO.js";
|
|
5
|
+
import { a as PublicTemplatesClient } from "./public-templates-sZe-0Qvi.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";
|
|
@@ -937,6 +937,26 @@ interface ConfidentialSandboxResult {
|
|
|
937
937
|
declare function generateAttestationNonce(bytes?: number): string;
|
|
938
938
|
declare function createConfidentialSandbox(client: SandboxCreator, options: CreateConfidentialSandboxOptions): Promise<ConfidentialSandboxResult>;
|
|
939
939
|
//#endregion
|
|
940
|
+
//#region src/failure-kind.d.ts
|
|
941
|
+
/**
|
|
942
|
+
* What a Sandbox failure means for the caller, read from the error and its
|
|
943
|
+
* `cause` chain:
|
|
944
|
+
*
|
|
945
|
+
* - `lost`: the box cannot come back (its backing container is gone, or the
|
|
946
|
+
* sandbox no longer exists), so a resume or retry cannot restore its files.
|
|
947
|
+
* - `capacity`: the control plane admits no further box right now
|
|
948
|
+
* (`CAPACITY_EXHAUSTED`, `HOST_PRESSURE`, `PROVISIONING_PAUSED`, or the
|
|
949
|
+
* host-slot refusals the API still reports as messages). Retry later.
|
|
950
|
+
* - `budget`: the key or account has no budget left (`KEY_BUDGET_EXHAUSTED`,
|
|
951
|
+
* `QUOTA_EXCEEDED`). Retrying does not help until it is funded.
|
|
952
|
+
*
|
|
953
|
+
* Anything else is `null`. A timeout counts only through a refusal in its cause
|
|
954
|
+
* chain, so a plain timeout is never capacity. Apps used to keep their own copy
|
|
955
|
+
* of these code lists; the codes are this SDK's, so the classification is too.
|
|
956
|
+
*/
|
|
957
|
+
type SandboxFailureKind = "lost" | "capacity" | "budget";
|
|
958
|
+
declare function sandboxFailureKind(error: unknown): SandboxFailureKind | null;
|
|
959
|
+
//#endregion
|
|
940
960
|
//#region src/instances.d.ts
|
|
941
961
|
/** The profile version that new sessions of an instance bind to. */
|
|
942
962
|
interface InstanceProfile {
|
|
@@ -6182,4 +6202,4 @@ declare class Sandbox extends SandboxBatch implements HttpClient, ScopedTokenHtt
|
|
|
6182
6202
|
constructor(config: SandboxConfig);
|
|
6183
6203
|
}
|
|
6184
6204
|
//#endregion
|
|
6185
|
-
export { SANDBOX_SIZE_PRESET_NAMES as $,
|
|
6205
|
+
export { SANDBOX_SIZE_PRESET_NAMES as $, validateBatchRunRequest as $t, RunsHttpClient as A, SeatOwnerTransport as At, RunTangleRouterEvalMatrixInSandboxOptions as B, InstanceRecord as Bt, SessionBroadcastResult as C, backendRegistryInteractionKindSchema as Cn, generateDockerfile as Ct, RunRecord as D, parseBackendRegistryResponseBody as Dn, SandboxSeatCredentials as Dt, RunPlacementRecord as E, parseBackendRegistryResponse as En, SandboxResolvedSeat as Et, RouterEvalMatrixSandboxBox as F, gatewaySeatTransport as Ft, TangleSearchProvider as G, sandboxFailureKind as Gt, runTangleRouterEvalMatrixInSandbox as H, InstanceStart as Ht, RouterEvalMatrixSandboxClient as I, ManagedProcessClient as It, buildTangleRouterSearchBackend as J, CreateConfidentialSandboxOptions as Jt, buildTangleRouterEvalMatrixRequest as K, ConfidentialSandboxResult as Kt, RouterEvalMatrixScenario as L, EnsureInstanceOptions as Lt, RouterEvalMatrixCaseResult as M, SeatSelectionError as Mt, RouterEvalMatrixHarness as N, SeatSelectionRequest as Nt, RunWaitOptions as O, SandboxSeatSelectionInput as Ot, RouterEvalMatrixPayload as P, createSelectSeat as Pt, SANDBOX_SIZE_PRESETS as Q, createBatchResultAccumulator as Qt, RouterEvalMatrixSuiteResponse as R, HostedInstance as Rt, SessionBroadcastEvent as S, backendRegistryEntrySchema as Sn, ImageBuilder as St, RunPlacement as T, isBackendRegistryInteractionKind as Tn, CreateSelectSeatOptions as Tt, RouterSearchConfig as U, InstancesClient as Ut, RunTangleRouterEvalMatrixInSandboxResult as V, InstanceRestartingError as Vt, RouterSearchConfigOptions as W, SandboxFailureKind as Wt, fetchTangleRouterSearchConfig as X, generateAttestationNonce as Xt, buildTangleRouterSearchProfile as Y, createConfidentialSandbox as Yt, DEFAULT_SANDBOX_SIZE as Z, BatchResultAccumulator as Zt, AgentRunCancellationAcknowledgement$1 as _, BackendRegistryCapabilities as _n, ImageBuildClient as _t, AgentProfileCapabilities$1 as a, startTeeAttestationHeartbeat as an, MANAGE_SANDBOXES_TOOL_NAME as at, Capability as b, BackendRegistryResponse as bn, ImageBuildOptions as bt, AgentProfileMcpServer as c, ParseSSEStreamOptions as cn, ManageSandboxesToolOptions as ct, AgentProfilePrompt as d, CreateTeamOptions as dn, applySandboxEventText as dt, normalizeRuntimeBackendConfig as en, SandboxSizePreset$1 as et, AgentProfileResourceRef as f, InviteTeamMemberOptions as fn, collectAgentFinalMessageText as ft, AgentProfileValidationResult$1 as g, IntelligenceClient as gn, Image as gt, AgentProfileValidationIssue as h, TeamMember as hn, isToolBearingEvent as ht, AgentProfile$1 as i, TeeAttestationHeartbeatSample as in, MANAGE_SANDBOXES_PARAMETERS as it, RouterEvalMatrixAgentProfile as j, SeatResolutionObservation as jt, RunsClient as k, SeatOwnerReply as kt, AgentProfileModelHints as l, ParsedSSEEvent as ln, createManageSandboxesTool as lt, AgentProfileSecurityPolicy as m, TeamInvitation as mn, getSandboxEventText as mt, SandboxFleetClient as n, TeeAttestationHeartbeat as nn, sandboxResourcesForSize as nt, AgentProfileConnection as o, BuildProgressEvent as on, ManageSandboxesInput as ot, AgentProfileResources as p, Team as pn, collectAgentResponseText as pt, buildTangleRouterResponsesWebSearchRequest as q, ConfidentialTeeType as qt, SandboxFleet as r, TeeAttestationHeartbeatOptions as rn, materializeProfileFileMounts as rt, AgentProfileFileMount$1 as s, ImageSpec as sn, ManageSandboxesTool as st, Sandbox as t, requestedPublicProfileDigest as tn, resolveSandboxResources as tt, AgentProfilePermissionValue as u, parseSSEStream as un, manageSandboxesInputSchema as ut, AgentRunCancellationRequest$1 as v, BackendRegistryEntry as vn, ImageBuildClientConfig as vt, RunOptions as w, backendRegistryResponseSchema as wn, ISOLATED_CREATION_ATTESTATION_VERSION as wt, terminalUpgradeHeadersSupported as x, backendRegistryCapabilitiesSchema as xn, ImageBuildResult as xt, AgentSubagentProfile as y, BackendRegistryInteractionKind as yn, ImageBuildFetchClient as yt, RouterImportedRunResponse as z, InstanceProfile as zt };
|
|
@@ -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,8 +1,38 @@
|
|
|
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
|
+
//#region src/failure-kind.ts
|
|
7
|
+
const LOST_CODES = new Set(["BACKING_CONTAINER_MISSING", "SANDBOX_NOT_FOUND"]);
|
|
8
|
+
const CAPACITY_CODES = new Set([
|
|
9
|
+
"CAPACITY_EXHAUSTED",
|
|
10
|
+
"HOST_PRESSURE",
|
|
11
|
+
"PROVISIONING_PAUSED"
|
|
12
|
+
]);
|
|
13
|
+
const BUDGET_CODES = new Set(["KEY_BUDGET_EXHAUSTED", "QUOTA_EXCEEDED"]);
|
|
14
|
+
const CAPACITY_MESSAGE = /admits no further box|host has no available slot|host capacity reservation failed|no available hosts with capacity/i;
|
|
15
|
+
function chain(error) {
|
|
16
|
+
const causes = [];
|
|
17
|
+
let current = error;
|
|
18
|
+
for (let depth = 0; depth < 8 && current && typeof current === "object"; depth += 1) {
|
|
19
|
+
if (causes.includes(current)) break;
|
|
20
|
+
causes.push(current);
|
|
21
|
+
current = current.cause;
|
|
22
|
+
}
|
|
23
|
+
return causes;
|
|
24
|
+
}
|
|
25
|
+
function sandboxFailureKind(error) {
|
|
26
|
+
for (const cause of chain(error)) {
|
|
27
|
+
const code = typeof cause.code === "string" ? cause.code.toUpperCase() : "";
|
|
28
|
+
if (LOST_CODES.has(code)) return "lost";
|
|
29
|
+
if (BUDGET_CODES.has(code) || code.endsWith("_QUOTA_EXCEEDED")) return "budget";
|
|
30
|
+
if (CAPACITY_CODES.has(code)) return "capacity";
|
|
31
|
+
if (typeof cause.message === "string" && CAPACITY_MESSAGE.test(cause.message)) return "capacity";
|
|
32
|
+
}
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
6
36
|
//#region src/line-application.ts
|
|
7
37
|
/** Bounded callback request bytes after canonicalization, including JSON framing. */
|
|
8
38
|
const LINE_APPLICATION_REQUEST_MAX_BYTES = 96 * 1024;
|
|
@@ -335,4 +365,4 @@ function createSelectSeat(options) {
|
|
|
335
365
|
* still inspect the host receipt and their own customer/workspace binding. */
|
|
336
366
|
const ISOLATED_CREATION_ATTESTATION_VERSION = 1;
|
|
337
367
|
//#endregion
|
|
338
|
-
export { LINE_APPLICATION_REPLY_MAX_CHARS as a, parseLineApplicationResult as c, gatewaySeatTransport as i, SeatSelectionError as n, LINE_APPLICATION_REQUEST_MAX_BYTES as o, createSelectSeat as r, parseLineApplicationRequest as s, ISOLATED_CREATION_ATTESTATION_VERSION as t };
|
|
368
|
+
export { LINE_APPLICATION_REPLY_MAX_CHARS as a, parseLineApplicationResult as c, gatewaySeatTransport as i, sandboxFailureKind as l, SeatSelectionError as n, LINE_APPLICATION_REQUEST_MAX_BYTES as o, createSelectSeat as r, parseLineApplicationRequest as s, ISOLATED_CREATION_ATTESTATION_VERSION as t };
|
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
|
|
6
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
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 };
|
|
1
|
+
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-EebEqYqj.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-DUNlmyED.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-BTIFNxRO.js";
|
|
5
|
+
import { At as SeatOwnerTransport, Bt as InstanceRecord, Cn as backendRegistryInteractionKindSchema, Dn as parseBackendRegistryResponseBody, Dt as SandboxSeatCredentials, En as parseBackendRegistryResponse, Et as SandboxResolvedSeat, Ft as gatewaySeatTransport, Gt as sandboxFailureKind, It as ManagedProcessClient, Lt as EnsureInstanceOptions, Mt as SeatSelectionError, Nt as SeatSelectionRequest, Ot as SandboxSeatSelectionInput, Pt as createSelectSeat, Rt as HostedInstance, Sn as backendRegistryEntrySchema, Tn as isBackendRegistryInteractionKind, Tt as CreateSelectSeatOptions, Ut as InstancesClient, Vt as InstanceRestartingError, Wt as SandboxFailureKind, _n as BackendRegistryCapabilities, bn as BackendRegistryResponse, jt as SeatResolutionObservation, kt as SeatOwnerReply, t as Sandbox, vn as BackendRegistryEntry, wn as backendRegistryResponseSchema, wt as ISOLATED_CREATION_ATTESTATION_VERSION, xn as backendRegistryCapabilitiesSchema, yn as BackendRegistryInteractionKind, zt as InstanceProfile } from "./client-aBXGR6bc.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-sZe-0Qvi.js";
|
|
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 };
|