@tangle-network/sandbox 1.0.485 → 1.0.487
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +5 -5
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +2 -2
- package/dist/{agent-run-outcome-wmOJkBuu.d.ts → agent-run-outcome-IWbQgIbt.d.ts} +1 -1
- package/dist/{api-request-DfzqU66n.js → api-request-BSleTpab.js} +9 -6
- package/dist/auth/index.js +2 -2
- package/dist/{browser-interactive-control-controller-BkrBBtE_.js → browser-interactive-control-controller-BfbyLri9.js} +1 -1
- package/dist/{browser-interactive-control-controller-DPZh8xys.d.ts → browser-interactive-control-controller-CNqYrsK-.d.ts} +1 -1
- package/dist/{chunked-upload-C44d_Ao7.js → chunked-upload-C84EiOec.js} +1 -1
- package/dist/{chunked-upload-file-qXxstMmc.js → chunked-upload-file-CtoNGE4S.js} +1 -1
- package/dist/cli-auth-bundle-BZRV0Sjw.js +2 -0
- package/dist/{cli-auth-bundle-B8bx652V-hMsdeLuq.js → cli-auth-bundle-z1X_k0lF-CHfKGrQ-.js} +3 -3
- package/dist/{client-bVAAm37K.js → client-B2_jLjYj.js} +10 -10
- package/dist/{client-D6e4vd90.d.ts → client-CIp8gol6.d.ts} +6 -5
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-DxHWb-GT.js → collaboration-YdSIT2fM.js} +2 -2
- package/dist/core.d.ts +6 -6
- package/dist/core.js +6 -6
- package/dist/{direct-http2-DJYOowWN.js → direct-http2-DiJOMM8k.js} +2 -2
- package/dist/{errors-BY7a-Hpw.js → errors-DVjaZqJT.js} +5 -1
- package/dist/{file-download-HPsIahnf.js → file-download-C6BO_rTp.js} +1 -1
- package/dist/gpu-lease/index.js +2 -2
- package/dist/{index-D3uEA1ED.d.ts → index-D7dMz_US.d.ts} +10 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +13 -13
- package/dist/intelligence/index.js +4 -4
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-DtGlf5GF.js → interactive-controller-BM65klVR.js} +6 -6
- package/dist/{interactive-controller-ezfsQCnx.d.ts → interactive-controller-RKI6dXBi.d.ts} +3 -3
- package/dist/{keep-alive-fetch-BQJJVjzW.js → keep-alive-fetch-D76rml5I.js} +1 -1
- package/dist/lib/prepared-evidence.js +1 -1
- package/dist/lib/prepared-process.js +1 -1
- package/dist/{lines-DB6fXGdG.d.ts → lines-DkfkbLSV.d.ts} +1 -1
- package/dist/{lines-BWUWIrxa.js → lines-N7p7PrZ1.js} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{local-cli-auth-DAJ9tyf-.js → local-cli-auth-CbldA52D.js} +1 -1
- package/dist/{mcp-local-DS4hFmzr.js → mcp-local-BXZul5nd.js} +3 -3
- package/dist/{prepared-evidence-u9A1AZdG.js → prepared-evidence-BMADfSad.js} +1 -1
- package/dist/{prepared-process-CD-MjClN.js → prepared-process-B4DuLmEg.js} +1 -1
- package/dist/{preview-csKniGVD.d.ts → preview-Bf1nPEqQ.d.ts} +3 -3
- package/dist/{public-templates-YC2MMA7v.d.ts → public-templates-maL22HQt.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/public-templates.js +1 -1
- package/dist/{raw-evidence-archive-C7eYWtMG.js → raw-evidence-archive-B7_0tFYq.js} +3 -3
- package/dist/retry-after-header-DyAWSQ4m.js +24 -0
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +5 -5
- package/dist/{sandbox-Dnmxn9U3.js → sandbox-BNlmFt8n.js} +140 -87
- package/dist/{secp256k1-B2arMxku.js → secp256k1-DIwypP5B.js} +1 -1
- package/dist/{select-seat-43fsQBjG.js → select-seat-Bm8THMSh.js} +3 -3
- package/dist/select-seat-command.d.ts +2 -2
- package/dist/select-seat-command.js +2 -2
- package/dist/session-gateway/index.js +3 -3
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +2 -2
- package/dist/{tangle-Brz73sjb.js → tangle-Dld1JKjX.js} +6 -6
- package/dist/{terminal-stream-types-BItnV5cg.d.ts → terminal-stream-types-RAsy75gD.d.ts} +2 -0
- package/dist/{trace-id-BTa6Db_2.js → trace-id-BwKjBM-q.js} +1 -1
- package/dist/{types-CD82H77t.d.ts → types-5by8R76_.d.ts} +8 -2
- package/package.json +4 -4
- package/dist/cli-auth-bundle-BtGqWSts.js +0 -2
- package/dist/retry-after-header-BZbs5rig.js +0 -13
- package/dist/sidecar-proxy-error-DVVfeGIP.js +0 -4
- /package/dist/{abi-CQYNCS4F.js → abi-pcDt2Adp.js} +0 -0
- /package/dist/{core-BWiEs9yv.js → core-CBWUEURz.js} +0 -0
- /package/dist/{preview-operations-DYH3y0cn.js → preview-operations-BTHZR1w2.js} +0 -0
- /package/dist/{raw-evidence-export-gCbAD5ZV.js → raw-evidence-export-Dog7W5zP.js} +0 -0
- /package/dist/{sse-parser-DTgSRcZC.js → sse-parser-BCG3iL9j.js} +0 -0
- /package/dist/{utils-fYi8g-M-.js → utils-BvN0Mk3j.js} +0 -0
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 { Ga as CodeLanguage, Ka as CodeResultPart, Wa as CodeExecutionResult, ga as BackendConfig, hr as CodeExecutionOptions, ia as SessionListOptions, io as BackendType, na as SessionInfo, vt as SandboxFleetParent } 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-D7dMz_US.js";
|
|
2
|
+
import { Ga as CodeLanguage, Ka as CodeResultPart, Wa as CodeExecutionResult, ga as BackendConfig, hr as CodeExecutionOptions, ia as SessionListOptions, io as BackendType, na as SessionInfo, vt as SandboxFleetParent } from "../types-5by8R76_.js";
|
|
3
|
+
import { t as Sandbox } from "../client-CIp8gol6.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-Bf1nPEqQ.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 { C as assertCurrentBackendType } from "../interactive-controller-
|
|
3
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
4
|
-
import { O as ValidationError, T as StateError, v as NotFoundError } from "../errors-
|
|
5
|
-
import { t as Sandbox } from "../client-
|
|
1
|
+
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-BXZul5nd.js";
|
|
2
|
+
import { C as assertCurrentBackendType } from "../interactive-controller-BM65klVR.js";
|
|
3
|
+
import { t as SandboxInstance } from "../sandbox-BNlmFt8n.js";
|
|
4
|
+
import { O as ValidationError, T as StateError, v as NotFoundError } from "../errors-DVjaZqJT.js";
|
|
5
|
+
import { t as Sandbox } from "../client-B2_jLjYj.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-Bf1nPEqQ.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,5 +1,5 @@
|
|
|
1
1
|
import { r as agentProfileSchema } from "../profile-schema-BHeC7cOf.js";
|
|
2
|
-
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-
|
|
2
|
+
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-BTHZR1w2.js";
|
|
3
3
|
//#region src/agent/preview-policy.ts
|
|
4
4
|
/** Channel-neutral preview tool selection from a host-authored profile. */
|
|
5
5
|
const PREVIEW_TOOLS = [
|
|
@@ -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-BXZul5nd.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,5 +1,5 @@
|
|
|
1
1
|
import { C as InteractionRequest } from "./index-V_pXOH3B.js";
|
|
2
|
-
import { Ei as SandboxEvent, ci as AgentQuestionRequest, gi as DurablePlanSnapshot, li as AgentRunStatus, si as AgentApprovalRequirement, ui as AgentToolInvocation } from "./types-
|
|
2
|
+
import { Ei as SandboxEvent, ci as AgentQuestionRequest, gi as DurablePlanSnapshot, li as AgentRunStatus, si as AgentApprovalRequirement, ui as AgentToolInvocation } from "./types-5by8R76_.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
|
5
5
|
interface AgentRunOutcome {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as catalogEntry, t as ERROR_CATALOG } from "./error-catalog-DMNep7Y3.js";
|
|
2
|
-
import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-
|
|
2
|
+
import { n as plannedRestartDeadline, t as parseSandboxRetryAfterHeader } from "./retry-after-header-DyAWSQ4m.js";
|
|
3
3
|
import { c as retryBudget, n as SANDBOX_API_RETRY_SCOPE, o as isUndelivered, r as abortableSleep, s as planResend } from "./retry-policy-oW3_ljoc.js";
|
|
4
4
|
//#region src/lib/response-rewrap.mjs
|
|
5
5
|
/**
|
|
@@ -30,7 +30,7 @@ function rewrapResponse(original, headers, body = original.body) {
|
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region src/lib/api-request.mjs
|
|
32
32
|
/** The package version tsdown.config.ts defines; unbuilt source reports 0.0.0. */
|
|
33
|
-
const SDK_VERSION = "1.0.
|
|
33
|
+
const SDK_VERSION = "1.0.487";
|
|
34
34
|
function withRequestContextHeaders(response, path, method, body = response.body) {
|
|
35
35
|
const headers = new Headers(response.headers);
|
|
36
36
|
headers.set("x-tangle-request-path", path);
|
|
@@ -69,18 +69,20 @@ function isReplayableBody(body) {
|
|
|
69
69
|
return !(Symbol.asyncIterator in body);
|
|
70
70
|
}
|
|
71
71
|
/** The wait before resending after `response` (none: connection lost) on the shared pacing, or undefined when it is final, not `safe` to resend (a planned-restart refusal always is) or cannot go before `deadline`. */
|
|
72
|
-
async function retryDelayMs(response, attempt,
|
|
72
|
+
async function retryDelayMs(response, attempt, window, safe) {
|
|
73
73
|
const after = parseSandboxRetryAfterHeader(response?.headers.get("retry-after"));
|
|
74
74
|
const status = response?.status ?? 503;
|
|
75
75
|
if (!(status >= 502 && status <= 504 || status === 429 && after !== void 0) || !safe && !response) return void 0;
|
|
76
76
|
if (response) {
|
|
77
77
|
const body = await response.clone().json().catch(() => null);
|
|
78
78
|
const code = body?.error?.code ?? body?.code;
|
|
79
|
-
|
|
79
|
+
const restart = plannedRestartDeadline(status, response.headers, body);
|
|
80
|
+
if (restart !== void 0) window.deadlineAt = Math.min(window.deadlineAt, restart);
|
|
81
|
+
if (!safe && restart === void 0 || Object.hasOwn(ERROR_CATALOG, code) && !catalogEntry(code).retryable) return void 0;
|
|
80
82
|
}
|
|
81
83
|
return planResend(SANDBOX_API_RETRY_SCOPE, attempt, {
|
|
82
84
|
retryAfterMs: after,
|
|
83
|
-
deadlineAt:
|
|
85
|
+
deadlineAt: window.deadlineAt,
|
|
84
86
|
capMs: 4e3
|
|
85
87
|
});
|
|
86
88
|
}
|
|
@@ -116,6 +118,7 @@ async function fetchSandboxApi({ baseUrl, apiKey, timeoutMs = SDK_TIMEOUTS.defau
|
|
|
116
118
|
const repeatable = !headers.has("x-no-retry") && isReplayableBody(options?.body);
|
|
117
119
|
const safe = IDEMPOTENT_METHODS.has(method) || headers.has("Idempotency-Key");
|
|
118
120
|
const attempts = fetchOptions?.attempts ?? 4;
|
|
121
|
+
const retryWindow = { deadlineAt: deadline };
|
|
119
122
|
let response;
|
|
120
123
|
let lost;
|
|
121
124
|
for (let attempt = 1;; attempt++) {
|
|
@@ -132,7 +135,7 @@ async function fetchSandboxApi({ baseUrl, apiKey, timeoutMs = SDK_TIMEOUTS.defau
|
|
|
132
135
|
lost = error;
|
|
133
136
|
}
|
|
134
137
|
const undelivered = !response && isUndelivered(lost);
|
|
135
|
-
const delayMs = repeatable && attempt < attempts ? await retryDelayMs(response, attempt,
|
|
138
|
+
const delayMs = repeatable && attempt < attempts ? await retryDelayMs(response, attempt, retryWindow, undelivered || safe) : void 0;
|
|
136
139
|
if (delayMs === void 0) {
|
|
137
140
|
if (!response) throw lost;
|
|
138
141
|
break;
|
package/dist/auth/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-
|
|
2
|
-
import "../cli-auth-bundle-
|
|
1
|
+
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-z1X_k0lF-CHfKGrQ-.js";
|
|
2
|
+
import "../cli-auth-bundle-BZRV0Sjw.js";
|
|
3
3
|
//#region src/auth/tokens.ts
|
|
4
4
|
const textEncoder = new TextEncoder();
|
|
5
5
|
const textDecoder = new TextDecoder();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as boundedEventContentRecordSchema, D as boundedJsonSchema, E as boundedJsonRecordSchema, O as boundedStringSchema, S as boundedEventContentJsonSchema, T as boundedIdentifierSchema, k as isBoundedEventContentJson, s as canonicalCandidateDigest, v as sha256DigestSchema, w as boundedEventContentStringSchema, x as CONTRACT_MAX_STRING_LENGTH, y as CONTRACT_MAX_ARRAY_LENGTH } from "./harness-QlDF8rzb.js";
|
|
2
2
|
import { t as agentExecutionPreparationReceiptSchema } from "./agent-execution-preparation-receipt-Cc9RZhlS.js";
|
|
3
3
|
import { t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
|
|
4
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
4
|
+
import { i as fetchSandboxApi } from "./api-request-BSleTpab.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.28/node_modules/@tangle-network/agent-interface/dist/native-session-event.js
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as TerminalStreamHandlers } from "./terminal-stream-types-
|
|
1
|
+
import { i as TerminalStreamHandlers } from "./terminal-stream-types-RAsy75gD.js";
|
|
2
2
|
import { a as AgentInteractiveSessionControlClaim, d as AgentInteractiveSessionStatus, i as AgentInteractiveSessionAttach, o as AgentInteractiveSessionControlClaimAcknowledgement, s as AgentInteractiveSessionControlClaimRequest, u as AgentInteractiveSessionRef } from "./index-V_pXOH3B.js";
|
|
3
3
|
|
|
4
4
|
//#region src/interactive-types.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as SandboxError, n as isTransientWrite, r as parseErrorResponse } from "./errors-
|
|
1
|
+
import { C as SandboxError, n as isTransientWrite, r as parseErrorResponse } from "./errors-DVjaZqJT.js";
|
|
2
2
|
import { c as retryBudget, i as awaitResend, n as SANDBOX_API_RETRY_SCOPE, r as abortableSleep } from "./retry-policy-oW3_ljoc.js";
|
|
3
3
|
import { i as FILE_UPLOAD_SESSION_MAX_BYTES, n as isFileTooLargeErrorBody, r as isPayloadTooLargeErrorBody } from "./file-transfer-DOSTbUSR.js";
|
|
4
4
|
//#region src/lib/sdk-retry.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as FILE_UPLOAD_SESSION_MAX_BYTES } from "./file-transfer-DOSTbUSR.js";
|
|
2
|
-
import { a as partWire, i as partCount, n as commitSession, o as planCompression, r as initUploadSession, s as putPart, t as abortSession } from "./chunked-upload-
|
|
2
|
+
import { a as partWire, i as partCount, n as commitSession, o as planCompression, r as initUploadSession, s as putPart, t as abortSession } from "./chunked-upload-C84EiOec.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
|
|
@@ -1198,7 +1198,7 @@ function isBackendType(value) {
|
|
|
1198
1198
|
return BACKEND_TYPE_SET.has(value);
|
|
1199
1199
|
}
|
|
1200
1200
|
//#endregion
|
|
1201
|
-
//#region ../../../packages/cli-agent-registry/dist/specs-
|
|
1201
|
+
//#region ../../../packages/cli-agent-registry/dist/specs-zQFLaMbG.mjs
|
|
1202
1202
|
z.globalRegistry.add(agentProfileSchema, {
|
|
1203
1203
|
id: "AgentProfile",
|
|
1204
1204
|
...agentProfileJsonSchema
|
|
@@ -1607,7 +1607,7 @@ const CLI_AGENT_SPECS = [
|
|
|
1607
1607
|
envVars: HARNESSES["openclaw"].config.envVars,
|
|
1608
1608
|
capabilities: {
|
|
1609
1609
|
...BASE_CAPABILITIES,
|
|
1610
|
-
streaming:
|
|
1610
|
+
streaming: true,
|
|
1611
1611
|
multimodal: true,
|
|
1612
1612
|
contextWindow: 2e5,
|
|
1613
1613
|
mcp: true,
|
|
@@ -1774,7 +1774,7 @@ function getSpec(name) {
|
|
|
1774
1774
|
return CLI_AGENT_SPECS.find((spec) => spec.name === name);
|
|
1775
1775
|
}
|
|
1776
1776
|
//#endregion
|
|
1777
|
-
//#region ../../../packages/cli-agent-registry/dist/cli-auth-bundle-
|
|
1777
|
+
//#region ../../../packages/cli-agent-registry/dist/cli-auth-bundle-z1X_k0lF.mjs
|
|
1778
1778
|
const cliAuthReferenceSchema = z.strictObject({
|
|
1779
1779
|
account: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9@._+-]{0,127}$/),
|
|
1780
1780
|
secretEnv: z.string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}$/),
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { C as assertCurrentBackendType, O as withProfileHarness, R as backendTypeSchema, S as applyRequestedModel, T as normalizeRuntimeBackendConfig, _ as encodePromptForWire, k as withoutCreateOnlyModelFields, o as requestInteractiveSessionToken, x as isBrowserRuntime } from "./interactive-controller-
|
|
1
|
+
import { C as assertCurrentBackendType, O as withProfileHarness, R as backendTypeSchema, S as applyRequestedModel, T as normalizeRuntimeBackendConfig, _ as encodePromptForWire, k as withoutCreateOnlyModelFields, o as requestInteractiveSessionToken, x as isBrowserRuntime } from "./interactive-controller-BM65klVR.js";
|
|
2
2
|
import { r as agentProfileSchema } from "./profile-schema-BHeC7cOf.js";
|
|
3
|
-
import { $ as isCapacityShortageCreateError, B as parseLifecycleTimes, E as validateDeferredProfileFileMounts, F as normalizeCaptureProof, G as normalizeSandboxShape, H as normalizeConnection, I as normalizeSandboxCreateReceipt, J as DEPLOY_WINDOW_RETRY_MS, K as CAPACITY_ETA_MARGIN_MS, L as normalizeStartupDiagnostics, P as DirectRuntimeHttpClient, Q as generateIdempotencyKey, T as splitInlineProfileSkills, U as normalizeEgressPolicyFields, V as state, W as normalizeProxySecretReceipt, X as createRetryDelayMs, Y as awaitCreateResend, Z as extendableDeadline, d as sandboxLedgerUsd, et as isDeployWindowCreateError, it as SANDBOX_CREATE_DEADLINE_HEADER, n as createSandboxInstanceFromResponse, nt as isRetryableCreateError, o as exportTraceBundle, q as CAPACITY_ETA_WAIT_MAX_MS, rt as runtimeWorkspaceCwdSchema, tt as isRateLimitCreateError, w as splitInlineProfileFileMounts, x as deleteSandbox, z as dateOf } from "./sandbox-
|
|
4
|
-
import { C as SandboxError, D as TimeoutError, O as ValidationError, _ as NetworkError, a as readResponseJson, c as AuthError, i as parseResponseError, r as parseErrorResponse, v as NotFoundError, w as ServerError, y as PartialFailureError } from "./errors-
|
|
3
|
+
import { $ as isCapacityShortageCreateError, B as parseLifecycleTimes, E as validateDeferredProfileFileMounts, F as normalizeCaptureProof, G as normalizeSandboxShape, H as normalizeConnection, I as normalizeSandboxCreateReceipt, J as DEPLOY_WINDOW_RETRY_MS, K as CAPACITY_ETA_MARGIN_MS, L as normalizeStartupDiagnostics, P as DirectRuntimeHttpClient, Q as generateIdempotencyKey, T as splitInlineProfileSkills, U as normalizeEgressPolicyFields, V as state, W as normalizeProxySecretReceipt, X as createRetryDelayMs, Y as awaitCreateResend, Z as extendableDeadline, d as sandboxLedgerUsd, et as isDeployWindowCreateError, it as SANDBOX_CREATE_DEADLINE_HEADER, n as createSandboxInstanceFromResponse, nt as isRetryableCreateError, o as exportTraceBundle, q as CAPACITY_ETA_WAIT_MAX_MS, rt as runtimeWorkspaceCwdSchema, tt as isRateLimitCreateError, w as splitInlineProfileFileMounts, x as deleteSandbox, z as dateOf } from "./sandbox-BNlmFt8n.js";
|
|
4
|
+
import { C as SandboxError, D as TimeoutError, O as ValidationError, _ as NetworkError, a as readResponseJson, c as AuthError, i as parseResponseError, r as parseErrorResponse, v as NotFoundError, w as ServerError, y as PartialFailureError } from "./errors-DVjaZqJT.js";
|
|
5
5
|
import { n as combineAbortSignals } from "./abort-signal-BsriwJ8L.js";
|
|
6
6
|
import { r as abortableSleep, t as RETRY_POLICY } from "./retry-policy-oW3_ljoc.js";
|
|
7
|
-
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-
|
|
7
|
+
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-BSleTpab.js";
|
|
8
8
|
import { l as SANDBOX_AGENT_HOME } from "./file-transfer-DOSTbUSR.js";
|
|
9
|
-
import { i as resolveTraceId } from "./trace-id-
|
|
10
|
-
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-
|
|
11
|
-
import { t as parseSSEStream } from "./sse-parser-
|
|
12
|
-
import { t as LinesClient } from "./lines-
|
|
9
|
+
import { i as resolveTraceId } from "./trace-id-BwKjBM-q.js";
|
|
10
|
+
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-D76rml5I.js";
|
|
11
|
+
import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
|
|
12
|
+
import { t as LinesClient } from "./lines-N7p7PrZ1.js";
|
|
13
13
|
import { PublicTemplatesClient } from "./public-templates.js";
|
|
14
14
|
import { z } from "zod";
|
|
15
15
|
//#region ../../../packages/runtime-contracts/dist/git-policy.js
|
|
@@ -1203,11 +1203,11 @@ function isLocalSandboxEndpoint(baseUrl) {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
1205
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
1206
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
1206
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-CbldA52D.js");
|
|
1207
1207
|
return discoverLocalCliAuthFiles(backendType);
|
|
1208
1208
|
}
|
|
1209
1209
|
async function loadLocalCliAuthExpectation(backendType) {
|
|
1210
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
1210
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-CbldA52D.js");
|
|
1211
1211
|
return describe(backendType);
|
|
1212
1212
|
}
|
|
1213
1213
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as TraceExportResult, G as MaterializeProfileFileMountsResult, K as ProfileFileMountBox, O as SandboxInstance, W as MaterializeProfileFileMountsOptions, j as TraceExportSink, xt as SandboxOperation } from "./index-
|
|
2
|
-
import { R as SandboxError, X as BatchCustody, Z as BatchResult, c as MintInteractiveSessionTokenOptions, it as BatchEvent, nt as PublicBatchRunRequestInput, tt as PublicBatchRunRequest, u as ScopedToken } from "./terminal-stream-types-
|
|
1
|
+
import { A as TraceExportResult, G as MaterializeProfileFileMountsResult, K as ProfileFileMountBox, O as SandboxInstance, W as MaterializeProfileFileMountsOptions, j as TraceExportSink, xt as SandboxOperation } from "./index-D7dMz_US.js";
|
|
2
|
+
import { R as SandboxError, X as BatchCustody, Z as BatchResult, c as MintInteractiveSessionTokenOptions, it as BatchEvent, nt as PublicBatchRunRequestInput, tt as PublicBatchRunRequest, u as ScopedToken } from "./terminal-stream-types-RAsy75gD.js";
|
|
3
3
|
import { A as AgentProfileMcpServer, D as AgentProfileConfidential, M as AgentProfileSeat, O as AgentProfileConfigValue, T as AgentProfile, j as AgentProfileMetadata, k as AgentProfileFileMount, n as SandboxSizePreset, u as AgentInteractiveSessionRef, x as AgentRuntimeAttachments } from "./index-V_pXOH3B.js";
|
|
4
|
-
import { $ as SandboxFleetAgent, A as CreateSandboxFleetOptions, At as SandboxFleetWorkspaceReconcileResult, B as FleetDispatchStreamOptions, Br as SandboxDeleteOptions, Bt as SandboxRunGeneration, Ci as PromptInputPart, Cn as DownloadOptions, Cr as SdkTimingHook, Ct as SandboxFleetToken, D as FleetDriveTurnRequest, Dt as SandboxFleetTraceOptions, E as FleetDriveTurnOutcome, Ei as SandboxEvent, F as FleetAgentResult, Fr as DeleteMatchingSandboxesFilter, G as FleetPromptDispatchResult, H as FleetExecDispatchResult, Ir as DeleteMatchingSandboxesOptions, J as ListSandboxFleetOptions, K as FleetRunEvent, L as FleetDispatchCancelResult, Lr as DeleteMatchingSandboxesResult, Lt as SandboxInfo, M as CreateSandboxFleetWithCoordinatorOptions, Mr as AccountSnapshotInfo, Mt as SandboxFleetWorkspaceSnapshotResult, N as FleetAgentId, Nt as ListSandboxOptions, O as TokenRefreshHandler, Ot as SandboxFleetUsage, Pa as GpuLeaseProviderName, Pi as TurnBackendConfig, Q as ReconcileSandboxFleetsResult, Qn as PublishPublicTemplateOptions, Qt as TeeAttestationResponse, R as FleetDispatchResultBuffer, Ri as ConversationTurnOptions, Si as IntelligenceReportWindow, Sr as HttpClient, St as SandboxFleetSpend, Ti as PromptResult, Tn as DownloadResult, U as FleetMachineId, V as FleetExecDispatchOptions, W as FleetPromptDispatchOptions, X as ReapExpiredSandboxFleetsResult, Y as ReapExpiredSandboxFleetsOptions, Yn as ExecOptions, Z as ReconcileSandboxFleetsOptions, Zt as TeeAttestationReport, _r as ManagedProcessOptions, _t as SandboxFleetOperationsSummary, an as SandboxResources, bi as IntelligenceReportCompareTo, br as ManagedProcessRecord, bt as SandboxFleetPolicy, c as SubscriptionInfo, di as CreateIntelligenceReportOptions, dt as SandboxFleetMachine, er as SandboxEnvironment, ga as BackendConfig, gr as ManagedProcessJobs, ht as SandboxFleetManifest, in as SandboxConfig, it as SandboxFleetCostEstimate, j as CreateSandboxFleetTokenOptions, jt as SandboxFleetWorkspaceRestoreResult, k as AttachSandboxFleetMachineOptions, l as UsageInfo, ln as SandboxShapePreset, lt as SandboxFleetInfo, mt as SandboxFleetMachineSpec, n as SshKeysManager, nn as CreateRequestOptions, nt as SandboxFleetArtifactSpec, oi as BatchRunOptions, on as SandboxShapesInfo, ot as SandboxFleetDispatchResponse, pt as SandboxFleetMachineRecord, q as FleetRunOptions, qa as ExecResult, rn as CreateSandboxOptions, rt as SandboxFleetCancelResult, s as SandboxIdentity, st as SandboxFleetDriverCapability, t as SecretsManager, tt as SandboxFleetArtifact, vi as IntelligenceReport, vr as ManagedProcessResumeOptions, vt as SandboxFleetParent, wa as SecretBindingOptions, wi as PromptOptions, wt as SandboxFleetTraceBundle, xr as ManagedProcessSpec, yi as IntelligenceReportBudget, z as FleetDispatchResultBufferOptions, zi as ConversationTurnResult, zr as SandboxDeleteAcknowledgement } from "./types-
|
|
5
|
-
import { t as LinesClient } from "./lines-
|
|
6
|
-
import { a as PublicTemplatesClient } from "./public-templates-
|
|
4
|
+
import { $ as SandboxFleetAgent, A as CreateSandboxFleetOptions, At as SandboxFleetWorkspaceReconcileResult, B as FleetDispatchStreamOptions, Br as SandboxDeleteOptions, Bt as SandboxRunGeneration, Ci as PromptInputPart, Cn as DownloadOptions, Cr as SdkTimingHook, Ct as SandboxFleetToken, D as FleetDriveTurnRequest, Dt as SandboxFleetTraceOptions, E as FleetDriveTurnOutcome, Ei as SandboxEvent, F as FleetAgentResult, Fr as DeleteMatchingSandboxesFilter, G as FleetPromptDispatchResult, H as FleetExecDispatchResult, Ir as DeleteMatchingSandboxesOptions, J as ListSandboxFleetOptions, K as FleetRunEvent, L as FleetDispatchCancelResult, Lr as DeleteMatchingSandboxesResult, Lt as SandboxInfo, M as CreateSandboxFleetWithCoordinatorOptions, Mr as AccountSnapshotInfo, Mt as SandboxFleetWorkspaceSnapshotResult, N as FleetAgentId, Nt as ListSandboxOptions, O as TokenRefreshHandler, Ot as SandboxFleetUsage, Pa as GpuLeaseProviderName, Pi as TurnBackendConfig, Q as ReconcileSandboxFleetsResult, Qn as PublishPublicTemplateOptions, Qt as TeeAttestationResponse, R as FleetDispatchResultBuffer, Ri as ConversationTurnOptions, Si as IntelligenceReportWindow, Sr as HttpClient, St as SandboxFleetSpend, Ti as PromptResult, Tn as DownloadResult, U as FleetMachineId, V as FleetExecDispatchOptions, W as FleetPromptDispatchOptions, X as ReapExpiredSandboxFleetsResult, Y as ReapExpiredSandboxFleetsOptions, Yn as ExecOptions, Z as ReconcileSandboxFleetsOptions, Zt as TeeAttestationReport, _r as ManagedProcessOptions, _t as SandboxFleetOperationsSummary, an as SandboxResources, bi as IntelligenceReportCompareTo, br as ManagedProcessRecord, bt as SandboxFleetPolicy, c as SubscriptionInfo, di as CreateIntelligenceReportOptions, dt as SandboxFleetMachine, er as SandboxEnvironment, ga as BackendConfig, gr as ManagedProcessJobs, ht as SandboxFleetManifest, in as SandboxConfig, it as SandboxFleetCostEstimate, j as CreateSandboxFleetTokenOptions, jt as SandboxFleetWorkspaceRestoreResult, k as AttachSandboxFleetMachineOptions, l as UsageInfo, ln as SandboxShapePreset, lt as SandboxFleetInfo, mt as SandboxFleetMachineSpec, n as SshKeysManager, nn as CreateRequestOptions, nt as SandboxFleetArtifactSpec, oi as BatchRunOptions, on as SandboxShapesInfo, ot as SandboxFleetDispatchResponse, pt as SandboxFleetMachineRecord, q as FleetRunOptions, qa as ExecResult, rn as CreateSandboxOptions, rt as SandboxFleetCancelResult, s as SandboxIdentity, st as SandboxFleetDriverCapability, t as SecretsManager, tt as SandboxFleetArtifact, vi as IntelligenceReport, vr as ManagedProcessResumeOptions, vt as SandboxFleetParent, wa as SecretBindingOptions, wi as PromptOptions, wt as SandboxFleetTraceBundle, xr as ManagedProcessSpec, yi as IntelligenceReportBudget, z as FleetDispatchResultBufferOptions, zi as ConversationTurnResult, zr as SandboxDeleteAcknowledgement } from "./types-5by8R76_.js";
|
|
5
|
+
import { t as LinesClient } from "./lines-DkfkbLSV.js";
|
|
6
|
+
import { a as PublicTemplatesClient } from "./public-templates-maL22HQt.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/backend-registry.d.ts
|
|
@@ -115,6 +115,7 @@ declare class SandboxTransport {
|
|
|
115
115
|
platformFetch(path: string, options?: RequestInit): Promise<Response>;
|
|
116
116
|
/** Authenticated API fetch. Per-request timeout overrides the client ceiling for slow data-plane work. */
|
|
117
117
|
fetch(path: string, options?: RequestInit, fetchOptions?: {
|
|
118
|
+
attempts?: number;
|
|
118
119
|
timeoutMs?: number;
|
|
119
120
|
}): Promise<Response>;
|
|
120
121
|
protected parseInfo(data: Record<string, unknown>): SandboxInfo;
|
|
@@ -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-YdSIT2fM.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse } from "./errors-
|
|
2
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
1
|
+
import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse } from "./errors-DVjaZqJT.js";
|
|
2
|
+
import { i as fetchSandboxApi } from "./api-request-BSleTpab.js";
|
|
3
3
|
//#region src/collaboration/client.ts
|
|
4
4
|
function normalizeBaseUrl(url) {
|
|
5
5
|
return url.replace(/\/+$/, "");
|
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as WorkspaceImages, H as WorkspaceImagePublishResult, O as SandboxInstance, U as ProfileFileDeliveryReport, V as WorkspaceImagePublishInput, z as WorkspaceImagePublishRequestOptions } from "./index-
|
|
2
|
-
import { F as ProfileFileMountPathError, H as ServerError, I as QuotaError, K as TimeoutError, M as NetworkError, N as NotFoundError, O as FileWriteConflictError, P as PartialFailureError, R as SandboxError, S as AuthError, U as StateError, V as SandboxFailureDetail, b as parseErrorResponse, q as ValidationError, w as CapabilityError, x as responseMetadata, z as SandboxErrorJson } from "./terminal-stream-types-
|
|
3
|
-
import { Ci as PromptInputPart, Lt as SandboxInfo, Ri as ConversationTurnOptions, Xa as SandboxEnvRecoveryView, Ya as SandboxEnvRecovery, Yn as ExecOptions, _r as ManagedProcessOptions, b as PreviewLinkManager, br as ManagedProcessRecord, fn as NetworkConfig, gr as ManagedProcessJobs, in as SandboxConfig, oa as SessionMessageAdmission, qa as ExecResult, rn as CreateSandboxOptions, sn as SandboxStatus, vr as ManagedProcessResumeOptions, x as PreviewLinkWaitOptions, xr as ManagedProcessSpec, y as PreviewLinkInfo, yr as ManagedProcessState, zi as ConversationTurnResult } 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 InstancesClient, Ct as ManagedProcessClient, Dt as InstanceRecord, Et as InstanceProfile, Mt as sandboxFailureKind, Ot as InstanceRestartingError, St as gatewaySeatTransport, Tt as HostedInstance, _t as SeatOwnerTransport, an as BackendRegistryCapabilities, bt as SeatSelectionRequest, cn as BackendRegistryResponse, dn as backendRegistryInteractionKindSchema, dt as GatewaySeatTransportOptions, fn as backendRegistryResponseSchema, gt as SeatOwnerReply, hn as parseBackendRegistryResponseBody, ht as SandboxSeatSelectionInput, jt as SandboxFailureKind, ln as backendRegistryCapabilitiesSchema, lt as ISOLATED_CREATION_ATTESTATION_VERSION, mn as parseBackendRegistryResponse, mt as SandboxSeatCredentials, on as BackendRegistryEntry, pn as isBackendRegistryInteractionKind, pt as SandboxResolvedSeat, sn as BackendRegistryInteractionKind, t as Sandbox, un as backendRegistryEntrySchema, ut as CreateSelectSeatOptions, vt as SeatResolutionObservation, wt as EnsureInstanceOptions, xt as createSelectSeat, yt as SeatSelectionError } 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, H as WorkspaceImagePublishResult, O as SandboxInstance, U as ProfileFileDeliveryReport, V as WorkspaceImagePublishInput, z as WorkspaceImagePublishRequestOptions } from "./index-D7dMz_US.js";
|
|
2
|
+
import { F as ProfileFileMountPathError, H as ServerError, I as QuotaError, K as TimeoutError, M as NetworkError, N as NotFoundError, O as FileWriteConflictError, P as PartialFailureError, R as SandboxError, S as AuthError, U as StateError, V as SandboxFailureDetail, b as parseErrorResponse, q as ValidationError, w as CapabilityError, x as responseMetadata, z as SandboxErrorJson } from "./terminal-stream-types-RAsy75gD.js";
|
|
3
|
+
import { Ci as PromptInputPart, Lt as SandboxInfo, Ri as ConversationTurnOptions, Xa as SandboxEnvRecoveryView, Ya as SandboxEnvRecovery, Yn as ExecOptions, _r as ManagedProcessOptions, b as PreviewLinkManager, br as ManagedProcessRecord, fn as NetworkConfig, gr as ManagedProcessJobs, in as SandboxConfig, oa as SessionMessageAdmission, qa as ExecResult, rn as CreateSandboxOptions, sn as SandboxStatus, vr as ManagedProcessResumeOptions, x as PreviewLinkWaitOptions, xr as ManagedProcessSpec, y as PreviewLinkInfo, yr as ManagedProcessState, zi as ConversationTurnResult } from "./types-5by8R76_.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-DkfkbLSV.js";
|
|
5
|
+
import { At as InstancesClient, Ct as ManagedProcessClient, Dt as InstanceRecord, Et as InstanceProfile, Mt as sandboxFailureKind, Ot as InstanceRestartingError, St as gatewaySeatTransport, Tt as HostedInstance, _t as SeatOwnerTransport, an as BackendRegistryCapabilities, bt as SeatSelectionRequest, cn as BackendRegistryResponse, dn as backendRegistryInteractionKindSchema, dt as GatewaySeatTransportOptions, fn as backendRegistryResponseSchema, gt as SeatOwnerReply, hn as parseBackendRegistryResponseBody, ht as SandboxSeatSelectionInput, jt as SandboxFailureKind, ln as backendRegistryCapabilitiesSchema, lt as ISOLATED_CREATION_ATTESTATION_VERSION, mn as parseBackendRegistryResponse, mt as SandboxSeatCredentials, on as BackendRegistryEntry, pn as isBackendRegistryInteractionKind, pt as SandboxResolvedSeat, sn as BackendRegistryInteractionKind, t as Sandbox, un as backendRegistryEntrySchema, ut as CreateSelectSeatOptions, vt as SeatResolutionObservation, wt as EnsureInstanceOptions, xt as createSelectSeat, yt as SeatSelectionError } from "./client-CIp8gol6.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-maL22HQt.js";
|
|
7
7
|
export { AuthError, BackendRegistryCapabilities, BackendRegistryEntry, BackendRegistryInteractionKind, BackendRegistryResponse, CapabilityError, ConversationTurnOptions, ConversationTurnResult, CreateSandboxOptions, CreateSelectSeatOptions, EnsureInstanceOptions, ExecOptions, ExecResult, FileWriteConflictError, GatewaySeatTransportOptions, 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, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, responseMetadata, sandboxFailureKind };
|
package/dist/core.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { C as SandboxError, D as TimeoutError, O as ValidationError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, m as FileWriteConflictError, o as responseMetadata, r as parseErrorResponse, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-
|
|
3
|
-
import { a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, p as parseBackendRegistryResponse, r as HostedInstance, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-
|
|
4
|
-
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-
|
|
1
|
+
import { S as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-BNlmFt8n.js";
|
|
2
|
+
import { C as SandboxError, D as TimeoutError, O as ValidationError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, m as FileWriteConflictError, o as responseMetadata, r as parseErrorResponse, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-DVjaZqJT.js";
|
|
3
|
+
import { a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, p as parseBackendRegistryResponse, r as HostedInstance, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-B2_jLjYj.js";
|
|
4
|
+
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-N7p7PrZ1.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
|
-
import { a as parseLineApplicationResult, i as parseLineApplicationRequest, n as LINE_APPLICATION_REPLY_MAX_CHARS, o as sandboxFailureKind, r as LINE_APPLICATION_REQUEST_MAX_BYTES, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-
|
|
7
|
-
import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-
|
|
6
|
+
import { a as parseLineApplicationResult, i as parseLineApplicationRequest, n as LINE_APPLICATION_REPLY_MAX_CHARS, o as sandboxFailureKind, r as LINE_APPLICATION_REQUEST_MAX_BYTES, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-CBWUEURz.js";
|
|
7
|
+
import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-Bm8THMSh.js";
|
|
8
8
|
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, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, responseMetadata, sandboxFailureKind };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as responseTraceId } from "./trace-id-
|
|
2
|
-
import { t as emitTiming } from "./keep-alive-fetch-
|
|
1
|
+
import { a as responseTraceId } from "./trace-id-BwKjBM-q.js";
|
|
2
|
+
import { t as emitTiming } from "./keep-alive-fetch-D76rml5I.js";
|
|
3
3
|
//#region src/lib/direct-http2.ts
|
|
4
4
|
const sessions = /* @__PURE__ */ new Map();
|
|
5
5
|
const inFlight = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as HOST_AGENT_RESTART_KINDS, r as catalogEntry, t as ERROR_CATALOG } from "./error-catalog-DMNep7Y3.js";
|
|
2
|
-
import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-
|
|
2
|
+
import { n as plannedRestartDeadline, t as parseSandboxRetryAfterHeader } from "./retry-after-header-DyAWSQ4m.js";
|
|
3
3
|
//#region src/error-classes.ts
|
|
4
4
|
const STATUS_CODE = {
|
|
5
5
|
400: "VALIDATION_ERROR",
|
|
@@ -312,6 +312,10 @@ function parseErrorResponse(status, body, context, headers) {
|
|
|
312
312
|
const message = logTail && !messageWithReason.includes(logTail) ? `${messageWithReason}\n${logTail}` : messageWithReason;
|
|
313
313
|
const metadata = {
|
|
314
314
|
...responseMetadata(status, headers),
|
|
315
|
+
retryUntil: plannedRestartDeadline(status, headers, {
|
|
316
|
+
code,
|
|
317
|
+
retryUntil: data.retryUntil
|
|
318
|
+
}),
|
|
315
319
|
origin: inferOrigin(headers, context),
|
|
316
320
|
endpoint: context?.path ?? headers?.get("x-tangle-request-path") ?? void 0,
|
|
317
321
|
retryAfterMs: parseRetryAfterMs(headers?.get("retry-after") ?? void 0, data),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as bytesToHex, t as sha256 } from "./sha2--74Uh_Sg.js";
|
|
2
|
-
import { O as ValidationError } from "./errors-
|
|
2
|
+
import { O as ValidationError } from "./errors-DVjaZqJT.js";
|
|
3
3
|
import { n as combineAbortSignals } from "./abort-signal-BsriwJ8L.js";
|
|
4
4
|
//#region src/lib/file-download.ts
|
|
5
5
|
function downloadBounds(options) {
|
package/dist/gpu-lease/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as fetchSandboxApi } from "../api-request-
|
|
2
|
-
import { t as ITangleJobsAbi } from "../abi-
|
|
1
|
+
import { i as fetchSandboxApi } from "../api-request-BSleTpab.js";
|
|
2
|
+
import { t as ITangleJobsAbi } from "../abi-pcDt2Adp.js";
|
|
3
3
|
import { createPublicClient, createWalletClient, decodeAbiParameters, encodeAbiParameters, encodeFunctionData, hexToBytes, http, keccak256, parseAbi, parseAbiParameters, parseEventLogs, recoverMessageAddress, stringToHex } from "viem";
|
|
4
4
|
import { privateKeyToAccount } from "viem/accounts";
|
|
5
5
|
//#region src/gpu-lease/vault.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as SandboxError, Y as SandboxCreateReceipt, g as TerminalReadyInfo, i as TerminalStreamHandlers, l as MintScopedTokenOptions, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-
|
|
1
|
+
import { R as SandboxError, Y as SandboxCreateReceipt, g as TerminalReadyInfo, i as TerminalStreamHandlers, l as MintScopedTokenOptions, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-RAsy75gD.js";
|
|
2
2
|
import { C as InteractionRequest, F as ProxySecretReceipt, I as InteractionData, S as InteractionAcknowledgement, T as AgentProfile, _ as TerminalReplayWindow, a as AgentInteractiveSessionControlClaim, b as AgentRunCancellationRequest, c as AgentInteractiveSessionPromptAcknowledgement, f as AgentInteractiveSessionStopAcknowledgement, g as TerminalOutputEvent, i as AgentInteractiveSessionAttach, k as AgentProfileFileMount, l as AgentInteractiveSessionPromptCommand, m as AgentInteractiveTerminalSession, o as AgentInteractiveSessionControlClaimAcknowledgement, p as AgentInteractiveSessionStopCommand, r as AgentInteractiveSessionStart, s as AgentInteractiveSessionControlClaimRequest, u as AgentInteractiveSessionRef, w as InteractionResponseCommand, y as AgentRunCancellationAcknowledgement } from "./index-V_pXOH3B.js";
|
|
3
|
-
import { $r as SnapshotResult, Ar as RolloutStartResult, Bi as CreateSessionOptions, Br as SandboxDeleteOptions, C as GitCommit, Ci as PromptInputPart, Dr as ForkLookupOptions, Ei as SandboxEvent, Er as ForkIdempotency, Fi as CommitTaskSessionOptions, Ft as SSHCredentials, Ga as CodeLanguage, Gi as ListMessagesOptions, Gn as WriteManyFile, Hi as DispatchPromptOptions, Hr as SandboxOperationInfo, Ht as SandboxTerminalAttachOptions, It as SandboxConnection, Ja as WriteFileRequest, Ji as SendSessionMessageRequest, Jn as SearchOptions, Jt as StartupDiagnostics, Ki as PublicProfileConflict, Kn as WriteManyOptions, Kr as SnapshotDeleteAcknowledgement, Li as CompletedTurnResult, Lt as SandboxInfo, Mi as SandboxTraceOptions, Mn as FileSystem, Or as Rollout, Pi as TurnBackendConfig, Pt as SSHCommandDescriptor, Qa as InteractionResolutionAcknowledgement, Qi as SessionExecutionInfo, Qt as TeeAttestationResponse, Ri as ConversationTurnOptions, Rn as FileWriteResult, Rr as RestoreSnapshotOptions, Rt as SandboxPortBinding, S as GitBranch, Si as IntelligenceReportWindow, Sr as HttpClient, T as GitStatus, Ti as PromptResult, Tr as ForkCounts, Ui as DispatchedSession, Ur as SandboxOperationKind, Vi as CreateTaskSessionOptions, Vt as SandboxRuntimeHealth, Wa as CodeExecutionResult, Wi as DriveTurnOptions, Wn as WriteFileOptions, Wr as SandboxOperationState, Xa as SandboxEnvRecoveryView, Xr as SnapshotOptions, Xt as TeeAttestationOptions, Ya as SandboxEnvRecovery, Yi as SentSessionMessage, Yn as ExecOptions, Yr as SnapshotInfo, Zi as SessionEventStreamOptions, Zr as SnapshotProvenance, _i as EventStreamOptions, aa as SessionMessage, ar as DriverInfo, b as PreviewLinkManager, bi as IntelligenceReportCompareTo, ca as SessionResultOptions, cn as SandboxShape, ei as StopOptions, en as TeePublicKeyResponse, fa as TaskSessionInfo, fi as DurablePlan, fr as GpuLeaseManager, g as ProcessManager, ga as BackendConfig, hr as CodeExecutionOptions, i as ProvisionResult, ia as SessionListOptions, jr as WaitForRolloutOptions, ki as SandboxTraceBundle, kr as RolloutOptions, la as TaskSessionChanges, ma as TurnDriveResult, mi as DurablePlanDecisionResult, na as SessionInfo, ni as SandboxResourceUsage, o as ResumeOptions, oa as SessionMessageAdmission, pi as DurablePlanDecisionOptions, pn as NetworkManager, qa as ExecResult, qi as SendSessionMessageOptions, qn as SearchMatch, qt as SandboxTerminals, r as ProvisionEvent, ra as SessionInterruptOptions, ri as SandboxRuntimeCapabilities, rn as CreateSandboxOptions, sn as SandboxStatus, sr as GpuLease, ta as SessionForkOptions, ti as WorkspaceOperationLookup, tn as TerminalStream, u as WaitForOptions, ua as TaskSessionCommitResult, un as EgressManager, va as BackendManager, vi as IntelligenceReport, w as GitDiff, wi as PromptOptions, wr as BranchOptions, wt as SandboxFleetTraceBundle, yi as IntelligenceReportBudget, za as RetainedWorkspacePublication, zi as ConversationTurnResult, zr as SandboxDeleteAcknowledgement } from "./types-
|
|
3
|
+
import { $r as SnapshotResult, Ar as RolloutStartResult, Bi as CreateSessionOptions, Br as SandboxDeleteOptions, C as GitCommit, Ci as PromptInputPart, Dr as ForkLookupOptions, Ei as SandboxEvent, Er as ForkIdempotency, Fi as CommitTaskSessionOptions, Ft as SSHCredentials, Ga as CodeLanguage, Gi as ListMessagesOptions, Gn as WriteManyFile, Hi as DispatchPromptOptions, Hr as SandboxOperationInfo, Ht as SandboxTerminalAttachOptions, It as SandboxConnection, Ja as WriteFileRequest, Ji as SendSessionMessageRequest, Jn as SearchOptions, Jt as StartupDiagnostics, Ki as PublicProfileConflict, Kn as WriteManyOptions, Kr as SnapshotDeleteAcknowledgement, Li as CompletedTurnResult, Lt as SandboxInfo, Mi as SandboxTraceOptions, Mn as FileSystem, Or as Rollout, Pi as TurnBackendConfig, Pt as SSHCommandDescriptor, Qa as InteractionResolutionAcknowledgement, Qi as SessionExecutionInfo, Qt as TeeAttestationResponse, Ri as ConversationTurnOptions, Rn as FileWriteResult, Rr as RestoreSnapshotOptions, Rt as SandboxPortBinding, S as GitBranch, Si as IntelligenceReportWindow, Sr as HttpClient, T as GitStatus, Ti as PromptResult, Tr as ForkCounts, Ui as DispatchedSession, Ur as SandboxOperationKind, Vi as CreateTaskSessionOptions, Vt as SandboxRuntimeHealth, Wa as CodeExecutionResult, Wi as DriveTurnOptions, Wn as WriteFileOptions, Wr as SandboxOperationState, Xa as SandboxEnvRecoveryView, Xr as SnapshotOptions, Xt as TeeAttestationOptions, Ya as SandboxEnvRecovery, Yi as SentSessionMessage, Yn as ExecOptions, Yr as SnapshotInfo, Zi as SessionEventStreamOptions, Zr as SnapshotProvenance, _i as EventStreamOptions, aa as SessionMessage, ar as DriverInfo, b as PreviewLinkManager, bi as IntelligenceReportCompareTo, ca as SessionResultOptions, cn as SandboxShape, ei as StopOptions, en as TeePublicKeyResponse, fa as TaskSessionInfo, fi as DurablePlan, fr as GpuLeaseManager, g as ProcessManager, ga as BackendConfig, hr as CodeExecutionOptions, i as ProvisionResult, ia as SessionListOptions, jr as WaitForRolloutOptions, ki as SandboxTraceBundle, kr as RolloutOptions, la as TaskSessionChanges, ma as TurnDriveResult, mi as DurablePlanDecisionResult, na as SessionInfo, ni as SandboxResourceUsage, o as ResumeOptions, oa as SessionMessageAdmission, pi as DurablePlanDecisionOptions, pn as NetworkManager, qa as ExecResult, qi as SendSessionMessageOptions, qn as SearchMatch, qt as SandboxTerminals, r as ProvisionEvent, ra as SessionInterruptOptions, ri as SandboxRuntimeCapabilities, rn as CreateSandboxOptions, sn as SandboxStatus, sr as GpuLease, ta as SessionForkOptions, ti as WorkspaceOperationLookup, tn as TerminalStream, u as WaitForOptions, ua as TaskSessionCommitResult, un as EgressManager, va as BackendManager, vi as IntelligenceReport, w as GitDiff, wi as PromptOptions, wr as BranchOptions, wt as SandboxFleetTraceBundle, yi as IntelligenceReportBudget, za as RetainedWorkspacePublication, zi as ConversationTurnResult, zr as SandboxDeleteAcknowledgement } from "./types-5by8R76_.js";
|
|
4
4
|
import { c as RawEvidenceDirectoryExport, l as RawEvidenceExportOptions, o as RawEvidenceBoxDirectoryExport, p as RawEvidenceUnavailable, r as RawEvidenceArchiveManifest, s as RawEvidenceBoxExportOptions } from "./raw-evidence-export-1ygyhNsS.js";
|
|
5
5
|
import { r as CliAuthReference } from "./cli-auth-bundle-Dx3AAWdJ.js";
|
|
6
|
-
import { n as SandboxLines } from "./lines-
|
|
7
|
-
import { _ as InteractiveSessionStatus, f as InteractiveAttachOptions, g as InteractiveRequestOptions, h as InteractiveObserveOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-
|
|
8
|
-
import { r as InteractiveAttachRequest } from "./interactive-controller-
|
|
6
|
+
import { n as SandboxLines } from "./lines-DkfkbLSV.js";
|
|
7
|
+
import { _ as InteractiveSessionStatus, f as InteractiveAttachOptions, g as InteractiveRequestOptions, h as InteractiveObserveOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-CNqYrsK-.js";
|
|
8
|
+
import { r as InteractiveAttachRequest } from "./interactive-controller-RKI6dXBi.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { OtlpTraceExport } from "@tangle-network/agent-trace-contract/otlp";
|
|
11
11
|
|
|
@@ -631,6 +631,7 @@ declare abstract class SandboxInfoCapabilities {
|
|
|
631
631
|
/** Authenticated runtime request relative to this sandbox; preserves the runtime error
|
|
632
632
|
* and request context. */
|
|
633
633
|
runtimeFetch(path: string, inputOptions?: RequestInit, fetchOptions?: {
|
|
634
|
+
attempts?: number;
|
|
634
635
|
timeoutMs?: number;
|
|
635
636
|
skipProfileReference?: boolean;
|
|
636
637
|
}): Promise<Response>;
|
|
@@ -1090,8 +1091,8 @@ declare abstract class SandboxFileWriteCapabilities extends SandboxFileOperation
|
|
|
1090
1091
|
expectedHash?: string;
|
|
1091
1092
|
ifAbsent?: boolean;
|
|
1092
1093
|
}): void;
|
|
1093
|
-
protected writeBatchRequest(files: WriteFileRequest[], body: string): Promise<void>;
|
|
1094
|
-
protected writeManySequential(files: WriteManyFile[], paceMs: number, maxRetries: number): Promise<void>;
|
|
1094
|
+
protected writeBatchRequest(files: WriteFileRequest[], body: string, options: WriteManyOptions): Promise<void>;
|
|
1095
|
+
protected writeManySequential(files: WriteManyFile[], paceMs: number, maxRetries: number, signal?: AbortSignal): Promise<void>;
|
|
1095
1096
|
/**
|
|
1096
1097
|
* Write many files through the runtime batch endpoint. Duplicate paths use
|
|
1097
1098
|
* the sequential write path so the last write of a path wins.
|
|
@@ -1160,7 +1161,7 @@ declare abstract class SandboxProfileCapabilities extends SandboxFileWriteCapabi
|
|
|
1160
1161
|
*/
|
|
1161
1162
|
get lastProfileFileDelivery(): ProfileFileDeliveryReport | undefined;
|
|
1162
1163
|
/** @internal Create/turn delivery; skipped while this incarnation holds the bundle's receipt, even for "replace". Remount with materializeProfileFileMounts. */
|
|
1163
|
-
materializeProfileFiles(profile: AgentProfile, signal?: AbortSignal, existingFiles?: "replace" | "allow-identical"): Promise<AgentProfile>;
|
|
1164
|
+
materializeProfileFiles(profile: AgentProfile, signal?: AbortSignal, existingFiles?: "replace" | "allow-identical", deadlineAt?: number): Promise<AgentProfile>;
|
|
1164
1165
|
/**
|
|
1165
1166
|
* @internal What create()'s lean POST left out. The handle's first runtime
|
|
1166
1167
|
* call delivers it before it runs; a call started while that one is in
|
|
@@ -1169,7 +1170,7 @@ declare abstract class SandboxProfileCapabilities extends SandboxFileWriteCapabi
|
|
|
1169
1170
|
deferProfileDelivery(profile: AgentProfile, prime: AgentProfile | undefined): void;
|
|
1170
1171
|
protected ensureRunning(signal?: AbortSignal): Promise<void>;
|
|
1171
1172
|
private deliverCreateProfile;
|
|
1172
|
-
protected buildRunBackendBody(overrideBackend: Partial<BackendConfig> | undefined, forceFullProfile: boolean, requestedModel?: string, signal?: AbortSignal, preserveManagedProfile?: boolean): Promise<Record<string, unknown> | undefined>;
|
|
1173
|
+
protected buildRunBackendBody(overrideBackend: Partial<BackendConfig> | undefined, forceFullProfile: boolean, requestedModel?: string, signal?: AbortSignal, preserveManagedProfile?: boolean, deadlineAt?: number): Promise<Record<string, unknown> | undefined>;
|
|
1173
1174
|
/** Recover only managed references before any stream event or model admission. */
|
|
1174
1175
|
protected reprimeManagedRunProfile(options: PromptOptions): Promise<boolean>;
|
|
1175
1176
|
/**
|