@tangle-network/sandbox 0.68.0 → 0.68.2
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 +4 -4
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +2 -2
- package/dist/{agent-run-outcome-BgjrBItu.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-D8SrLrsD.d.ts → browser-interactive-control-controller-CH7CLpmc.d.ts} +1 -1
- package/dist/{chunked-upload-file-BiblJyeE.js → chunked-upload-file-CbbWlCFt.js} +1 -1
- package/dist/{client-KtiB43NY.d.ts → client-BPcdRhgx.d.ts} +5 -5
- package/dist/{client-C2pwbpBn.js → client-CtpCYHJC.js} +20 -86
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/{core-DUpukePg.js → core-BKs0Yy2i.js} +1 -1
- package/dist/core.d.ts +6 -6
- package/dist/core.js +4 -4
- package/dist/{direct-http2-Hcum3yHf.js → direct-http2-BhGER8b8.js} +1 -1
- package/dist/{index-BW-T6kvo.d.ts → index-Bk4Hsycj.d.ts} +6 -6
- package/dist/index.d.ts +11 -11
- package/dist/index.js +6 -6
- package/dist/intelligence/index.js +13 -31
- package/dist/interactive-control.d.ts +1 -1
- package/dist/{interactive-controller-WtWzmN_T.d.ts → interactive-controller-Db_8jnl7.d.ts} +3 -3
- package/dist/{interactive-controller-CqdnD7nC.js → interactive-controller-ThIeP_oZ.js} +1 -1
- package/dist/lib/prepared-evidence.js +1 -1
- package/dist/lib/prepared-process.js +1 -1
- package/dist/{lines-S_uqC5e8.d.ts → lines-D5XpPinb.d.ts} +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-D7SgZwYA.d.ts → preview-CGZfio1_.d.ts} +3 -3
- package/dist/{public-templates-TnAldaBU.d.ts → public-templates-B5uA7KJv.d.ts} +2 -2
- package/dist/public-templates.d.ts +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 +14 -22
- package/dist/{sandbox-Be3DcloI.js → sandbox-DLbiLJjB.js} +12 -38
- package/dist/{secp256k1-_-uZfzOX.js → secp256k1-CoRKQn1k.js} +1 -1
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-uptUv4ZY.js → tangle-DL5MgMwB.js} +47 -36
- package/dist/{types-CnK30PRn.d.ts → types-BVsCs_Mz.d.ts} +2 -2
- package/package.json +11 -11
- /package/dist/{chunked-upload-cuXIVwac.js → chunked-upload-CbtLVV6-.js} +0 -0
- /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/{lines-BO1jPFsj.js → lines-DgRXUg5y.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/{terminal-stream-types-D7gI9X3V.d.ts → terminal-stream-types-yAt76vk7.d.ts} +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-
|
|
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
3
|
import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-Bs5G7JdV.js";
|
|
4
|
-
import { t as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
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,5 +1,5 @@
|
|
|
1
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-
|
|
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 { I as SandboxError, c as MintInteractiveSessionTokenOptions, u as ScopedToken } from "./terminal-stream-types-
|
|
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-
|
|
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
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";
|
|
@@ -1315,11 +1316,11 @@ function isLocalSandboxEndpoint(baseUrl) {
|
|
|
1315
1316
|
}
|
|
1316
1317
|
}
|
|
1317
1318
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
1318
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth
|
|
1319
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-fCKtTFG9.js");
|
|
1319
1320
|
return discoverLocalCliAuthFiles(backendType);
|
|
1320
1321
|
}
|
|
1321
1322
|
async function loadLocalCliAuthExpectation(backendType) {
|
|
1322
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth
|
|
1323
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-fCKtTFG9.js");
|
|
1323
1324
|
return describe(backendType);
|
|
1324
1325
|
}
|
|
1325
1326
|
/**
|
|
@@ -1362,12 +1363,6 @@ async function hydrateLocalCliBackendAuth(backend, baseUrl, trustLocalCliAuth) {
|
|
|
1362
1363
|
const DEFAULT_TIMEOUT_MS$1 = 3e4;
|
|
1363
1364
|
const DEFAULT_PLATFORM_URL = "https://id.tangle.tools";
|
|
1364
1365
|
const PRODUCTION_BASE_URL = "https://sandbox.tangle.tools";
|
|
1365
|
-
function withRequestContextHeaders(response, path, method, body = response.body) {
|
|
1366
|
-
const headers = new Headers(response.headers);
|
|
1367
|
-
headers.set("x-tangle-request-path", path);
|
|
1368
|
-
if (method) headers.set("x-tangle-request-method", method);
|
|
1369
|
-
return rewrapResponse(response, headers, body);
|
|
1370
|
-
}
|
|
1371
1366
|
let sandboxTransportApiKey;
|
|
1372
1367
|
var SandboxTransport = class {
|
|
1373
1368
|
static {
|
|
@@ -1426,82 +1421,21 @@ var SandboxTransport = class {
|
|
|
1426
1421
|
* even though the server is still working.
|
|
1427
1422
|
*/
|
|
1428
1423
|
async fetch(path, options, fetchOptions) {
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
...options?.signal ? [options.signal] : [],
|
|
1437
|
-
...this.signal ? [this.signal] : []
|
|
1438
|
-
]);
|
|
1439
|
-
let bodyOwnsTimeout = false;
|
|
1440
|
-
try {
|
|
1441
|
-
const headers = new Headers(options?.headers);
|
|
1442
|
-
headers.set("Authorization", `Bearer ${this.#apiKey}`);
|
|
1443
|
-
const isFormDataBody = typeof FormData !== "undefined" && options?.body instanceof FormData;
|
|
1444
|
-
if (!headers.has("Content-Type") && !isFormDataBody) headers.set("Content-Type", "application/json");
|
|
1445
|
-
const response = await fetchWithKeepAlive(url, {
|
|
1446
|
-
...options,
|
|
1447
|
-
headers,
|
|
1448
|
-
signal: requestSignal
|
|
1449
|
-
}, {
|
|
1450
|
-
onTiming: this.onTiming,
|
|
1451
|
-
path
|
|
1452
|
-
});
|
|
1453
|
-
const mediaType = response.headers.get("content-type")?.split(";", 1)[0]?.trim().toLowerCase();
|
|
1454
|
-
if (response.body !== null && (!response.ok || mediaType === "application/json" || mediaType?.endsWith("+json") === true)) {
|
|
1455
|
-
const reader = response.body.getReader();
|
|
1456
|
-
let settled = false;
|
|
1457
|
-
const body = new ReadableStream({
|
|
1458
|
-
type: "bytes",
|
|
1459
|
-
async pull(stream) {
|
|
1460
|
-
try {
|
|
1461
|
-
const chunk = await reader.read();
|
|
1462
|
-
if (settled) return;
|
|
1463
|
-
if (chunk.done) {
|
|
1464
|
-
settled = true;
|
|
1465
|
-
clearTimeout(timeoutId);
|
|
1466
|
-
reader.releaseLock();
|
|
1467
|
-
stream.close();
|
|
1468
|
-
stream.byobRequest?.respond(0);
|
|
1469
|
-
} else stream.enqueue(chunk.value);
|
|
1470
|
-
} catch (error) {
|
|
1471
|
-
if (settled) return;
|
|
1472
|
-
settled = true;
|
|
1473
|
-
clearTimeout(timeoutId);
|
|
1474
|
-
reader.releaseLock();
|
|
1475
|
-
stream.error(controller.signal.aborted && requestSignal.reason === controller.signal.reason ? new TimeoutError(requestTimeoutMs) : options?.signal?.reason ?? error);
|
|
1476
|
-
}
|
|
1477
|
-
},
|
|
1478
|
-
async cancel(reason) {
|
|
1479
|
-
if (settled) return;
|
|
1480
|
-
settled = true;
|
|
1481
|
-
clearTimeout(timeoutId);
|
|
1482
|
-
try {
|
|
1483
|
-
await reader.cancel(reason);
|
|
1484
|
-
} finally {
|
|
1485
|
-
reader.releaseLock();
|
|
1486
|
-
}
|
|
1487
|
-
}
|
|
1488
|
-
});
|
|
1489
|
-
const wrapped = withRequestContextHeaders(response, path, options?.method, body);
|
|
1490
|
-
bodyOwnsTimeout = true;
|
|
1491
|
-
return wrapped;
|
|
1492
|
-
}
|
|
1493
|
-
return withRequestContextHeaders(response, path, options?.method);
|
|
1494
|
-
} catch (err) {
|
|
1495
|
-
if (controller.signal.aborted && requestSignal.reason === controller.signal.reason) throw new TimeoutError(requestTimeoutMs);
|
|
1496
|
-
if (options?.signal?.aborted) throw options.signal.reason ?? err;
|
|
1497
|
-
if (this.signal?.aborted) throw this.signal.reason ?? err;
|
|
1498
|
-
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, {
|
|
1499
1431
|
endpoint: path,
|
|
1500
1432
|
origin: "sandbox-api"
|
|
1501
|
-
})
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1433
|
+
}),
|
|
1434
|
+
fetchImpl: (url, init) => fetchWithKeepAlive(url, init, {
|
|
1435
|
+
onTiming: this.onTiming,
|
|
1436
|
+
path
|
|
1437
|
+
})
|
|
1438
|
+
}, path, options, fetchOptions);
|
|
1505
1439
|
}
|
|
1506
1440
|
parseInfo(data) {
|
|
1507
1441
|
return {
|
|
@@ -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,6 +1,6 @@
|
|
|
1
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 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-
|
|
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
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-
|
|
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-
|
|
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,9 +1,9 @@
|
|
|
1
|
-
import { I as SandboxError, K as SandboxCreateReceipt, g as TerminalReadyInfo, i as TerminalStreamHandlers, l as MintScopedTokenOptions, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-
|
|
2
|
-
import { $a as RawEvidenceBoxDirectoryExport, $i as DurablePlanDecisionOptions, $r as SearchOptions, Ba as WorkspaceImagePublishInput, Bi as ForkLookupOptions, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ca as BackendManager, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ei as CodeExecutionResult, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, Fi as JsonValue, G as GitBranch, Ha as CodeLanguage, Hi as RolloutOptions, In as SSHCommandDescriptor, J as GitStatus, Ja as SandboxEnvRecoveryView, K as GitCommit, Li as BranchOptions, Ln as SSHCredentials, Lr as FileSystem, N as WaitForOptions, Pi as HttpClient, Q as CommitTaskSessionOptions, Qi as DurablePlan, Qn as TeeAttestationOptions, Qr as SearchMatch, Ri as ForkCounts, Rn as SandboxConnection, S as StopOptions, St as SessionMessage, Ti as CodeExecutionOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ui as RolloutStartResult, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Va as WorkspaceImagePublishResult, Vi as Rollout, Wi as WaitForRolloutOptions, Wn as SandboxTerminalAttachOptions, Xn as StartupDiagnostics, Xr as WriteManyFile, Yn as SandboxTerminals, Yr as WriteFileOptions, Zr as WriteManyOptions, _ as SnapshotInfo, _a as SandboxTraceOptions, aa as IntelligenceReportBudget, ar as CreateSandboxOptions, at as DispatchPromptOptions, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as IntelligenceReportWindow, ct as ListMessagesOptions, d as SandboxOperationKind, da as PromptResult, dr as SandboxShape, dt as SendSessionMessageRequest, ea as DurablePlanDecisionResult, ei as ExecOptions, eo as RawEvidenceBoxExportOptions, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fa as SandboxEvent, fi as DriverInfo, ft as SentSessionMessage, gr as EgressManager, ht as SessionExecutionInfo, ia as IntelligenceReport, it as CreateTaskSessionOptions, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, la as PromptInputPart, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, ma as SandboxTraceBundle, mi as GpuLease, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, no as RawEvidenceExportOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, oa as IntelligenceReportCompareTo, ot as DispatchedSession, pr as SandboxResourceUsage, q as GitDiff, qa as SandboxEnvRecovery, ra as EventStreamOptions, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, so as InteractionResolutionAcknowledgement, st as DriveTurnOptions, ti as ExecResult, to as RawEvidenceDirectoryExport, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptOptions, ut as SendSessionMessageOptions, v as SnapshotOptions, vr as NetworkManager, vt as SessionForkOptions, x as SnapshotResult, xa as BackendConfig, xt as SessionListOptions, y as SnapshotProvenance, ya as TurnBackendConfig, yi as GpuLeaseManager, yt as SessionInfo, z as ProcessManager, zi as ForkIdempotency, zn as SandboxInfo } from "./types-
|
|
3
|
-
import { t as CliAuthReference } from "./cli-auth-bundle-
|
|
4
|
-
import { n as SandboxLines } from "./lines-
|
|
5
|
-
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-
|
|
6
|
-
import { r as InteractiveAttachRequest } from "./interactive-controller-
|
|
1
|
+
import { I as SandboxError, K as SandboxCreateReceipt, g as TerminalReadyInfo, i as TerminalStreamHandlers, l as MintScopedTokenOptions, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-yAt76vk7.js";
|
|
2
|
+
import { $a as RawEvidenceBoxDirectoryExport, $i as DurablePlanDecisionOptions, $r as SearchOptions, Ba as WorkspaceImagePublishInput, Bi as ForkLookupOptions, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ca as BackendManager, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ei as CodeExecutionResult, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, Fi as JsonValue, G as GitBranch, Ha as CodeLanguage, Hi as RolloutOptions, In as SSHCommandDescriptor, J as GitStatus, Ja as SandboxEnvRecoveryView, K as GitCommit, Li as BranchOptions, Ln as SSHCredentials, Lr as FileSystem, N as WaitForOptions, Pi as HttpClient, Q as CommitTaskSessionOptions, Qi as DurablePlan, Qn as TeeAttestationOptions, Qr as SearchMatch, Ri as ForkCounts, Rn as SandboxConnection, S as StopOptions, St as SessionMessage, Ti as CodeExecutionOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ui as RolloutStartResult, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Va as WorkspaceImagePublishResult, Vi as Rollout, Wi as WaitForRolloutOptions, Wn as SandboxTerminalAttachOptions, Xn as StartupDiagnostics, Xr as WriteManyFile, Yn as SandboxTerminals, Yr as WriteFileOptions, Zr as WriteManyOptions, _ as SnapshotInfo, _a as SandboxTraceOptions, aa as IntelligenceReportBudget, ar as CreateSandboxOptions, at as DispatchPromptOptions, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as IntelligenceReportWindow, ct as ListMessagesOptions, d as SandboxOperationKind, da as PromptResult, dr as SandboxShape, dt as SendSessionMessageRequest, ea as DurablePlanDecisionResult, ei as ExecOptions, eo as RawEvidenceBoxExportOptions, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fa as SandboxEvent, fi as DriverInfo, ft as SentSessionMessage, gr as EgressManager, ht as SessionExecutionInfo, ia as IntelligenceReport, it as CreateTaskSessionOptions, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, la as PromptInputPart, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, ma as SandboxTraceBundle, mi as GpuLease, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, no as RawEvidenceExportOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, oa as IntelligenceReportCompareTo, ot as DispatchedSession, pr as SandboxResourceUsage, q as GitDiff, qa as SandboxEnvRecovery, ra as EventStreamOptions, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, so as InteractionResolutionAcknowledgement, st as DriveTurnOptions, ti as ExecResult, to as RawEvidenceDirectoryExport, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptOptions, ut as SendSessionMessageOptions, v as SnapshotOptions, vr as NetworkManager, vt as SessionForkOptions, x as SnapshotResult, xa as BackendConfig, xt as SessionListOptions, y as SnapshotProvenance, ya as TurnBackendConfig, yi as GpuLeaseManager, yt as SessionInfo, z as ProcessManager, zi as ForkIdempotency, zn as SandboxInfo } from "./types-BVsCs_Mz.js";
|
|
3
|
+
import { t as CliAuthReference } from "./cli-auth-bundle-Can3oLKY.js";
|
|
4
|
+
import { n as SandboxLines } from "./lines-D5XpPinb.js";
|
|
5
|
+
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-CH7CLpmc.js";
|
|
6
|
+
import { r as InteractiveAttachRequest } from "./interactive-controller-Db_8jnl7.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import * as Agent from "@tangle-network/agent-interface";
|
|
9
9
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimRequest, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStopAcknowledgement, AgentInteractiveSessionStopCommand, AgentInteractiveTerminalSession, AgentInteractiveTerminalSession as AgentInteractiveTerminalSession$1, AgentProfile, AgentProfileFileMount, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand, TerminalOutputEvent, TerminalReplayWindow, agentInteractiveSessionPromptRequestDigest } from "@tangle-network/agent-interface";
|