@tangle-network/sandbox 0.60.49 → 0.60.50-develop.20261013193451.2040e43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +4 -4
- package/dist/agent/preview.d.ts +1 -1
- package/dist/{agent-run-outcome-DT-JPlp9.d.ts → agent-run-outcome-Tn7gNtQD.d.ts} +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/{chunked-upload-CfefWUE5.js → chunked-upload-BklCn3Li.js} +1 -1
- package/dist/{chunked-upload-file-Bo2ROB52.js → chunked-upload-file-Cp-iWsWN.js} +1 -1
- package/dist/{cli-auth-bundle-BA1ONzC2.js → cli-auth-bundle-B9OMJ3oQ.js} +9 -1
- package/dist/{client-BG3-wRZl.d.ts → client-Bjv76qkD.d.ts} +4 -4
- package/dist/{client-t35bzeo_.js → client-CIbv9y2g.js} +34 -16
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-DaWEv29D.js → collaboration-B2g1j2ey.js} +1 -1
- package/dist/core.d.ts +6 -5
- package/dist/core.js +3 -3
- package/dist/{errors-Cq4hMysQ.js → errors-iWIsey1D.js} +10 -6
- package/dist/{errors-CRssX9qs.d.ts → errors-sEMGx6WV.d.ts} +13 -6
- package/dist/{index-BFdTlLys.d.ts → index-QqNMoNP_.d.ts} +2 -2
- package/dist/index.d.ts +8 -7
- package/dist/index.js +6 -6
- package/dist/intelligence/index.js +1 -1
- package/dist/{interactive-controller-Dxt5sW2N.js → interactive-controller-DbKLSfTD.js} +2 -2
- package/dist/{lines-CIzO8XBK.d.ts → lines-Bv-HWQd3.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{local-cli-auth-BpV8J6wa.js → local-cli-auth-CZ6F7Sbi.js} +1 -1
- package/dist/managed-process-BJoSEHl_.d.ts +15 -0
- package/dist/{preview-wyTghB5L.d.ts → preview-D52HIxPc.d.ts} +3 -3
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-Cv_TaxK_.js → sandbox-CsmTplZQ.js} +5 -5
- package/dist/{sandbox-D2Cz4gGL.d.ts → sandbox-pZegGEjr.d.ts} +2 -2
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-BAhPKpgV.js → tangle-B_7BzYoe.js} +2 -2
- package/dist/{types-Bpj_5qnH.d.ts → types-BNWkYhQf.d.ts} +97 -105
- package/package.json +5 -5
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-
|
|
2
|
-
import { D as CodeExecutionResult, E as CodeExecutionOptions,
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { _ as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-pZegGEjr.js";
|
|
2
|
+
import { D as CodeExecutionResult, E as CodeExecutionOptions, O as CodeLanguage, Qi as SessionInfo, Qr as SandboxFleetParent, ao as BackendType, d as BackendConfig, ea as SessionListOptions, k as CodeResultPart } from "../types-BNWkYhQf.js";
|
|
3
|
+
import { i as Sandbox } from "../client-Bjv76qkD.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-D52HIxPc.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
1
|
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-DjryqUiY.js";
|
|
2
|
-
import { E as assertCurrentBackendType } from "../interactive-controller-
|
|
3
|
-
import { h as StateError, l as NotFoundError, v as ValidationError } from "../errors-
|
|
4
|
-
import { n as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
2
|
+
import { E as assertCurrentBackendType } from "../interactive-controller-DbKLSfTD.js";
|
|
3
|
+
import { h as StateError, l as NotFoundError, v as ValidationError } from "../errors-iWIsey1D.js";
|
|
4
|
+
import { n as Sandbox } from "../client-CIbv9y2g.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-CsmTplZQ.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-D52HIxPc.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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as AgentQuestionRequest, ct as DurablePlanSnapshot, i as AgentApprovalRequirement,
|
|
1
|
+
import { Nr as SandboxEvent, a as AgentQuestionRequest, ct as DurablePlanSnapshot, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation } from "./types-BNWkYhQf.js";
|
|
2
2
|
import { InteractionRequest } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
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-B9OMJ3oQ.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 { _ as TimeoutError, c as NetworkError, d as QuotaError, m as ServerError, p as SandboxError, y as parseErrorResponse } from "./errors-
|
|
1
|
+
import { _ as TimeoutError, c as NetworkError, d as QuotaError, m as ServerError, p as SandboxError, y as parseErrorResponse } from "./errors-iWIsey1D.js";
|
|
2
2
|
//#region ../../../packages/runtime-contracts/dist/file-limits.js
|
|
3
3
|
const MEBIBYTE$1 = 1024 * 1024;
|
|
4
4
|
10 * MEBIBYTE$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as planCompression, c as FILE_UPLOAD_SESSION_MAX_BYTES, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-
|
|
1
|
+
import { a as planCompression, c as FILE_UPLOAD_SESSION_MAX_BYTES, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-BklCn3Li.js";
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
import { open } from "node:fs/promises";
|
|
4
4
|
//#region src/lib/chunked-upload-file.ts
|
|
@@ -389,7 +389,11 @@ const NATIVE_SESSION_CONTRACTS = {
|
|
|
389
389
|
}
|
|
390
390
|
};
|
|
391
391
|
//#endregion
|
|
392
|
-
//#region ../../../packages/
|
|
392
|
+
//#region ../../../packages/runtime-contracts/dist/harness-warm-transport.js
|
|
393
|
+
/** Persistent Kimi wire process and shared create/resume prewarm gates. */
|
|
394
|
+
const AGENT_INTERNAL_KIMI_WARM_SERVER_ENV_VAR = "AGENT_INTERNAL_KIMI_WARM_SERVER";
|
|
395
|
+
//#endregion
|
|
396
|
+
//#region ../../../packages/cli-agent-registry/dist/specs-x7jASGSy.mjs
|
|
393
397
|
z.globalRegistry.add(agentProfileSchema$1, {
|
|
394
398
|
id: "AgentProfile",
|
|
395
399
|
...agentProfileJsonSchema
|
|
@@ -572,6 +576,10 @@ const CLI_AGENT_SPECS = [
|
|
|
572
576
|
{
|
|
573
577
|
name: BACKEND_TYPE.KIMI_CODE,
|
|
574
578
|
nativeSession: NATIVE_SESSION_CONTRACTS["kimi-code"],
|
|
579
|
+
runtime: { warmRetention: {
|
|
580
|
+
envVar: AGENT_INTERNAL_KIMI_WARM_SERVER_ENV_VAR,
|
|
581
|
+
enabledByDefault: false
|
|
582
|
+
} },
|
|
575
583
|
messageStorageDir: ".kimi-code",
|
|
576
584
|
displayName: "Kimi Code",
|
|
577
585
|
description: "Moonshot AI Kimi Code CLI — headless non-interactive mode via `kimi --print --output-format stream-json --prompt ...`. Defaults to OAuth (Kimi Code subscription) with credentials materialized from the host-managed ~/.kimi/credentials/kimi-code.json; falls back to MOONSHOT_API_KEY when an apiKey is supplied.",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-
|
|
2
|
-
import { $
|
|
1
|
+
import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-pZegGEjr.js";
|
|
2
|
+
import { $n as PromptOptions, B as CreateSandboxOptions, Br as SandboxFleetDispatchResponse, Bt as FleetDispatchStreamOptions, Da as TokenRefreshHandler, Ei as SandboxShapesInfo, En as ListSandboxOptions, Er as SandboxConfig, F as CreateIntelligenceReportOptions, Ft as FleetAgentResult, G as DeleteMatchingSandboxesFilter, Gt as FleetMachineId, Hi as SecretsManager, Ht as FleetDriveTurnRequest, I as CreateRequestOptions, Ir as SandboxFleetArtifact, Jr as SandboxFleetMachineSpec, Jt as FleetRunEvent, K as DeleteMatchingSandboxesOptions, Kt as FleetPromptDispatchOptions, L as CreateSandboxFleetOptions, Lr as SandboxFleetArtifactSpec, Lt as FleetDispatchCancelResult, M as ConversationTurnOptions, Mr as SandboxEnvironment, N as ConversationTurnResult, Na as UsageInfo, Nt as FleetAgentId, Pr as SandboxFleetAgent, Qn as PromptInputPart, Qr as SandboxFleetParent, R as CreateSandboxFleetTokenOptions, Rr as SandboxFleetCostEstimate, Rt as FleetDispatchResultBuffer, Tn as ListSandboxFleetOptions, Ur as SandboxFleetInfo, Ut as FleetExecDispatchOptions, Vr as SandboxFleetDriverCapability, Vt as FleetDriveTurnOutcome, Wt as FleetExecDispatchResult, Yr as SandboxFleetManifest, Yt as FleetRunOptions, Zr as SandboxFleetOperationsSummary, _n as IntelligenceReport, b as BatchRunRequest, ci as SandboxFleetUsage, cr as PublishPublicTemplateOptions, d as BackendConfig, di as SandboxFleetWorkspaceRestoreResult, dr as ReapExpiredSandboxFleetsResult, ei as SandboxFleetPolicy, eo as BatchEvent, er as PromptResult, fa as SshKeysManager, fi as SandboxFleetWorkspaceSnapshotResult, fr as ReconcileSandboxFleetsOptions, ga as SubscriptionInfo, ii as SandboxFleetTraceBundle, l as AttachSandboxFleetMachineOptions, lr as PublishPublicTemplateVersionOptions, mi as SandboxInfo, ni as SandboxFleetSpend, or as PublicTemplateInfo, pi as SandboxIdentity, pr as ReconcileSandboxFleetsResult, q as DeleteMatchingSandboxesResult, qr as SandboxFleetMachineRecord, qt as FleetPromptDispatchResult, ri as SandboxFleetToken, si as SandboxFleetTraceOptions, sr as PublicTemplateVersionInfo, ui as SandboxFleetWorkspaceReconcileResult, ur as ReapExpiredSandboxFleetsOptions, v as BatchResult, vn as IntelligenceReportBudget, vt as ExecOptions, xi as SandboxRunGeneration, xn as IntelligenceReportWindow, y as BatchRunOptions, yn as IntelligenceReportCompareTo, yt as ExecResult, z as CreateSandboxFleetWithCoordinatorOptions, zt as FleetDispatchResultBufferOptions } from "./types-BNWkYhQf.js";
|
|
3
3
|
import { l as ScopedToken, s as MintInteractiveSessionTokenOptions } from "./terminal-stream-CV1pMSKC.js";
|
|
4
|
-
import { I as LinesClient } from "./lines-
|
|
5
|
-
import { f as SandboxError } from "./errors-
|
|
4
|
+
import { I as LinesClient } from "./lines-Bv-HWQd3.js";
|
|
5
|
+
import { f as SandboxError } from "./errors-sEMGx6WV.js";
|
|
6
6
|
import { AgentInteractiveSessionRef, AgentProfile } from "@tangle-network/agent-interface";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-C7b_Gpa0.js";
|
|
2
|
-
import { D as foldModelRoutingFields, E as assertCurrentBackendType, M as withProfileHarness, S as encodePromptForWire, T as applyRequestedModel, k as normalizeRuntimeBackendConfig, s as requestInteractiveSessionToken, w as parseSSEStream } from "./interactive-controller-
|
|
3
|
-
import { _ as TimeoutError, b as parseResponseError, c as NetworkError, d as QuotaError, l as NotFoundError, m as ServerError, p as SandboxError, s as NON_RETRYABLE_CREATE_QUOTA_REASONS, t as AuthError, u as PartialFailureError, v as ValidationError, x as readResponseJson, y as parseErrorResponse } from "./errors-
|
|
2
|
+
import { D as foldModelRoutingFields, E as assertCurrentBackendType, M as withProfileHarness, S as encodePromptForWire, T as applyRequestedModel, k as normalizeRuntimeBackendConfig, s as requestInteractiveSessionToken, w as parseSSEStream } from "./interactive-controller-DbKLSfTD.js";
|
|
3
|
+
import { _ as TimeoutError, b as parseResponseError, c as NetworkError, d as QuotaError, l as NotFoundError, m as ServerError, p as SandboxError, s as NON_RETRYABLE_CREATE_QUOTA_REASONS, t as AuthError, u as PartialFailureError, v as ValidationError, x as readResponseJson, y as parseErrorResponse } from "./errors-iWIsey1D.js";
|
|
4
4
|
import { f as combineAbortSignals } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
5
|
-
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, D as normalizeSandboxShape, E as normalizeConnection, O as rewrapResponse, T as validateDeferredProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof, w as splitInlineProfileSkills } from "./sandbox-
|
|
5
|
+
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, D as normalizeSandboxShape, E as normalizeConnection, O as rewrapResponse, T as validateDeferredProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof, w as splitInlineProfileSkills } from "./sandbox-CsmTplZQ.js";
|
|
6
6
|
import { LinesClient } from "./lines.js";
|
|
7
7
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
8
8
|
import { z } from "zod";
|
|
@@ -3323,11 +3323,11 @@ function withRequestContextHeaders(response, path, method, body = response.body)
|
|
|
3323
3323
|
return rewrapResponse(response, headers, body);
|
|
3324
3324
|
}
|
|
3325
3325
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
3326
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
3326
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-CZ6F7Sbi.js");
|
|
3327
3327
|
return discoverLocalCliAuthFiles(backendType);
|
|
3328
3328
|
}
|
|
3329
3329
|
async function describeLocalCliAuthExpectation(backendType) {
|
|
3330
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
3330
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-CZ6F7Sbi.js");
|
|
3331
3331
|
return describe(backendType);
|
|
3332
3332
|
}
|
|
3333
3333
|
async function hydrateLocalCliBackendAuth(backend, baseUrl, trustLocalCliAuth) {
|
|
@@ -3780,21 +3780,43 @@ var Sandbox = class Sandbox {
|
|
|
3780
3780
|
}, [{
|
|
3781
3781
|
sandboxId: info.id,
|
|
3782
3782
|
idempotencyKey
|
|
3783
|
-
}]
|
|
3783
|
+
}], void 0, {
|
|
3784
|
+
allocationId: info.id,
|
|
3785
|
+
idempotencyKey,
|
|
3786
|
+
createReceipt: info.createReceipt ?? null
|
|
3787
|
+
});
|
|
3784
3788
|
if (options?.ownerContext === "isolated" && (info.createReceipt?.ownerContext !== "isolated" || injectedSecrets !== void 0 && (!Array.isArray(injectedSecrets) || injectedSecrets.length !== 0))) throw new PartialFailureError("The host did not confirm isolated owner context. No post-create work was started. Inspect the recorded sandbox and retry identity before allocating a replacement.", "SANDBOX_ISOLATION_UNVERIFIED", 502, {
|
|
3785
3789
|
origin: "sandbox-api",
|
|
3786
3790
|
endpoint: "/v1/sandboxes"
|
|
3787
3791
|
}, [{
|
|
3788
3792
|
sandboxId: info.id,
|
|
3789
3793
|
idempotencyKey
|
|
3790
|
-
}]
|
|
3794
|
+
}], void 0, {
|
|
3795
|
+
allocationId: info.id,
|
|
3796
|
+
idempotencyKey,
|
|
3797
|
+
createReceipt: info.createReceipt ?? null
|
|
3798
|
+
});
|
|
3791
3799
|
const instance = createSandboxInstanceFromResponse(this, info, handleBackend, data);
|
|
3792
3800
|
if (instance.status === "provisioning" || instance.status === "pending") {
|
|
3793
3801
|
const remainingMs = Math.max(0, deadline - Date.now());
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3802
|
+
try {
|
|
3803
|
+
await instance.waitFor("running", {
|
|
3804
|
+
timeoutMs: remainingMs,
|
|
3805
|
+
signal: requestOptions?.signal
|
|
3806
|
+
});
|
|
3807
|
+
} catch (cause) {
|
|
3808
|
+
throw new PartialFailureError(`Sandbox ${info.id} did not become ready: ${cause instanceof Error ? cause.message : String(cause)}`, "SANDBOX_CREATE_READINESS_FAILED", 502, {
|
|
3809
|
+
origin: "sandbox-api",
|
|
3810
|
+
endpoint: "/v1/sandboxes"
|
|
3811
|
+
}, [{
|
|
3812
|
+
sandboxId: info.id,
|
|
3813
|
+
idempotencyKey
|
|
3814
|
+
}], cause, {
|
|
3815
|
+
allocationId: info.id,
|
|
3816
|
+
idempotencyKey,
|
|
3817
|
+
createReceipt: info.createReceipt ?? null
|
|
3818
|
+
});
|
|
3819
|
+
}
|
|
3798
3820
|
}
|
|
3799
3821
|
if (deferredProfileFiles.length > 0 && resolvedBackend?.profile !== void 0) {
|
|
3800
3822
|
if (instance.status !== "running") {
|
|
@@ -4230,10 +4252,6 @@ var Sandbox = class Sandbox {
|
|
|
4230
4252
|
const timeoutId = setTimeout(() => controller.abort(), requestTimeoutMs);
|
|
4231
4253
|
const requestSignal = options?.signal ? combineAbortSignals([options.signal, controller.signal]) : controller.signal;
|
|
4232
4254
|
let bodyOwnsTimeout = false;
|
|
4233
|
-
const abortError = (error) => {
|
|
4234
|
-
if (controller.signal.aborted && requestSignal.reason === controller.signal.reason) return new TimeoutError(requestTimeoutMs);
|
|
4235
|
-
return options?.signal?.aborted ? options.signal.reason ?? error : error;
|
|
4236
|
-
};
|
|
4237
4255
|
try {
|
|
4238
4256
|
const headers = new Headers(options?.headers);
|
|
4239
4257
|
headers.set("Authorization", `Bearer ${this.apiKey}`);
|
|
@@ -4266,7 +4284,7 @@ var Sandbox = class Sandbox {
|
|
|
4266
4284
|
settled = true;
|
|
4267
4285
|
clearTimeout(timeoutId);
|
|
4268
4286
|
reader.releaseLock();
|
|
4269
|
-
stream.error(
|
|
4287
|
+
stream.error(controller.signal.aborted && requestSignal.reason === controller.signal.reason ? new TimeoutError(requestTimeoutMs) : options?.signal?.reason ?? error);
|
|
4270
4288
|
}
|
|
4271
4289
|
},
|
|
4272
4290
|
async cancel(reason) {
|
|
@@ -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-B2g1j2ey.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as TimeoutError, c as NetworkError, y as parseErrorResponse } from "./errors-
|
|
1
|
+
import { _ as TimeoutError, c as NetworkError, y as parseErrorResponse } from "./errors-iWIsey1D.js";
|
|
2
2
|
//#region src/collaboration/client.ts
|
|
3
3
|
const DEFAULT_TIMEOUT_MS = 3e4;
|
|
4
4
|
function normalizeBaseUrl(url) {
|
package/dist/core.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages, v as ProfileFileDeliveryReport } from "./sandbox-
|
|
2
|
-
import { An as
|
|
3
|
-
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, O as LineSendInput, S as LineReplyCode, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, h as LineMemberInstance, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, q as LineApplicationView, s as LineAttachment, t as Line, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-
|
|
4
|
-
import { A as BackendRegistryEntry, C as InstancesClient, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, _ as EnsureInstanceOptions, b as InstanceRecord, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, v as HostedInstance, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-
|
|
5
|
-
import { a as FileWriteConflictError, b as ValidationError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, y as TimeoutError } from "./errors-
|
|
1
|
+
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages, v as ProfileFileDeliveryReport } from "./sandbox-pZegGEjr.js";
|
|
2
|
+
import { An as ManagedProcessRecord, B as CreateSandboxOptions, Di as SandboxStatus, Er as SandboxConfig, Ha as SandboxEnvRecovery, Hn as PreviewLinkManager, In as NetworkConfig, M as ConversationTurnOptions, Mn as ManagedProcessSpec, N as ConversationTurnResult, Nn as ManagedProcessState, On as ManagedProcessJobs, Qn as PromptInputPart, Ua as SandboxEnvRecoveryView, Un as PreviewLinkWaitOptions, Vn as PreviewLinkInfo, jn as ManagedProcessResumeOptions, kn as ManagedProcessOptions, mi as SandboxInfo, na as SessionMessageAdmission, vt as ExecOptions, yt as ExecResult } from "./types-BNWkYhQf.js";
|
|
3
|
+
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, O as LineSendInput, S as LineReplyCode, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, h as LineMemberInstance, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, q as LineApplicationView, s as LineAttachment, t as Line, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-Bv-HWQd3.js";
|
|
4
|
+
import { A as BackendRegistryEntry, C as InstancesClient, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, _ as EnsureInstanceOptions, b as InstanceRecord, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, v as HostedInstance, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-Bjv76qkD.js";
|
|
5
|
+
import { a as FileWriteConflictError, b as ValidationError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, y as TimeoutError } from "./errors-sEMGx6WV.js";
|
|
6
|
+
import { t as ManagedProcessClient } from "./managed-process-BJoSEHl_.js";
|
|
6
7
|
|
|
7
8
|
//#region src/core.d.ts
|
|
8
9
|
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as TimeoutError, a as FileWriteConflictError, c as NetworkError, d as QuotaError, h as StateError, l as NotFoundError, m as ServerError, n as CapabilityError, p as SandboxError, t as AuthError, u as PartialFailureError, v as ValidationError } from "./errors-
|
|
2
|
-
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-
|
|
3
|
-
import { o as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
1
|
+
import { _ as TimeoutError, a as FileWriteConflictError, c as NetworkError, d as QuotaError, h as StateError, l as NotFoundError, m as ServerError, n as CapabilityError, p as SandboxError, t as AuthError, u as PartialFailureError, v as ValidationError } from "./errors-iWIsey1D.js";
|
|
2
|
+
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-CIbv9y2g.js";
|
|
3
|
+
import { o as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-CsmTplZQ.js";
|
|
4
4
|
import { LinesClient, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
5
5
|
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-Cq6dJLBD.js";
|
|
6
6
|
//#region src/core.ts
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
//#region src/errors.ts
|
|
2
2
|
/**
|
|
3
|
-
* Sandbox SDK Errors
|
|
4
|
-
*
|
|
5
|
-
* Error classes for the Sandbox client SDK.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
3
|
* Base error class for all Sandbox SDK errors.
|
|
9
4
|
*/
|
|
10
5
|
var SandboxError = class extends Error {
|
|
@@ -129,11 +124,20 @@ var PartialFailureError = class extends SandboxError {
|
|
|
129
124
|
failures;
|
|
130
125
|
/** The operation that failed after another resource was already created. */
|
|
131
126
|
cause;
|
|
132
|
-
|
|
127
|
+
/** Allocation returned before create readiness failed. */
|
|
128
|
+
allocationId;
|
|
129
|
+
/** Key used for the create call that returned the allocation. */
|
|
130
|
+
idempotencyKey;
|
|
131
|
+
/** Ownership verdict returned by that create call, if available. */
|
|
132
|
+
createReceipt;
|
|
133
|
+
constructor(message, code = "PARTIAL_FAILURE", status = 502, metadata, failures, cause, createFailure) {
|
|
133
134
|
super(message, code, status, metadata);
|
|
134
135
|
this.name = "PartialFailureError";
|
|
135
136
|
this.failures = failures;
|
|
136
137
|
this.cause = cause;
|
|
138
|
+
this.allocationId = createFailure?.allocationId;
|
|
139
|
+
this.idempotencyKey = createFailure?.idempotencyKey;
|
|
140
|
+
this.createReceipt = createFailure?.createReceipt;
|
|
137
141
|
}
|
|
138
142
|
};
|
|
139
143
|
/**
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
+
import { Va as SandboxCreateReceipt } from "./types-BNWkYhQf.js";
|
|
2
|
+
|
|
1
3
|
//#region src/errors.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Sandbox SDK Errors
|
|
4
|
-
*
|
|
5
|
-
* Error classes for the Sandbox client SDK.
|
|
6
|
-
*/
|
|
7
4
|
/**
|
|
8
5
|
* Base error class for all Sandbox SDK errors.
|
|
9
6
|
*/
|
|
@@ -104,7 +101,17 @@ declare class PartialFailureError extends SandboxError {
|
|
|
104
101
|
readonly failures?: SandboxFailureDetail[];
|
|
105
102
|
/** The operation that failed after another resource was already created. */
|
|
106
103
|
readonly cause?: unknown;
|
|
107
|
-
|
|
104
|
+
/** Allocation returned before create readiness failed. */
|
|
105
|
+
readonly allocationId?: string;
|
|
106
|
+
/** Key used for the create call that returned the allocation. */
|
|
107
|
+
readonly idempotencyKey?: string;
|
|
108
|
+
/** Ownership verdict returned by that create call, if available. */
|
|
109
|
+
readonly createReceipt?: SandboxCreateReceipt | null;
|
|
110
|
+
constructor(message: string, code?: string, status?: number, metadata?: SandboxErrorMetadata, failures?: SandboxFailureDetail[], cause?: unknown, createFailure?: {
|
|
111
|
+
allocationId: string;
|
|
112
|
+
idempotencyKey: string;
|
|
113
|
+
createReceipt: SandboxCreateReceipt | null;
|
|
114
|
+
});
|
|
108
115
|
}
|
|
109
116
|
/**
|
|
110
117
|
* The request was invalid or malformed.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as HttpClient, r as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { B as CreateSandboxOptions } from "./types-
|
|
1
|
+
import { n as HttpClient, r as SandboxInstance } from "./sandbox-pZegGEjr.js";
|
|
2
|
+
import { B as CreateSandboxOptions } from "./types-BNWkYhQf.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tangle/abi.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { $ as BuildSandboxMcpConfigOptions, A as InteractiveSessionControlClaim, B as InterruptResult, C as materializeProfileFileMounts, D as AgentInteractiveTerminalSession, E as validateDeferredProfileFileMounts, F as InteractiveSessionInfo, G as InteractiveTerminalMetadata, H as agentInteractiveSessionPromptRequestDigest, I as InteractiveSessionRef, J as SandboxInteractionCommandResult, K as createInteractiveTerminalCapture, L as InteractiveSessionStartOptions, M as InteractiveSessionHandleOptions, N as InteractiveSessionHost, O as InteractiveControlClaimRequest, P as InteractiveSessionIncarnationId, Q as BuildControlPlaneMcpConfigOptions, R as InteractiveSessionStartResult, S as SplitInlineProfileSkillsResult, T as splitInlineProfileSkills, U as InteractiveTerminalCapture, V as RespondToPermissionOptions, W as InteractiveTerminalFrameLog, X as SandboxInteractionResolution, Y as SandboxInteractionConflict, Z as SandboxInteractionResult, _ as SandboxSession, a as WorkspaceImagePublishRequestOptions, at as buildControlPlaneMcpConfig, b as MaterializeProfileFileMountsResult, c as TraceExportFormat, d as buildTraceExportPayload, et as CONTROL_PLANE_MCP_SERVER_NAME, f as exportTraceBundle, g as RawEvidenceExport, h as SandboxTaskSession, i as WorkspaceImagePublishInput, it as SandboxMcpServerEntry, j as InteractiveSessionHandle, k as InteractivePromptCommand, l as TraceExportResult, m as toOtelJson, nt as SandboxMcpConfig, o as WorkspaceImagePublishResult, ot as buildSandboxMcpConfig, p as otelTraceIdForTangleTrace, q as createInteractiveTerminalSession, r as SandboxInstance, rt as SandboxMcpEndpoint, s as WorkspaceImages, t as ForkAcknowledgement, tt as SANDBOX_MCP_SERVER_NAME, u as TraceExportSink, v as ProfileFileDeliveryReport, w as splitInlineProfileFileMounts, x as SplitInlineProfileFileMountsResult, y as MaterializeProfileFileMountsOptions, z as InteractiveStopCommand } from "./sandbox-
|
|
2
|
-
import { $ as DownloadOptions, $a as
|
|
1
|
+
import { $ as BuildSandboxMcpConfigOptions, A as InteractiveSessionControlClaim, B as InterruptResult, C as materializeProfileFileMounts, D as AgentInteractiveTerminalSession, E as validateDeferredProfileFileMounts, F as InteractiveSessionInfo, G as InteractiveTerminalMetadata, H as agentInteractiveSessionPromptRequestDigest, I as InteractiveSessionRef, J as SandboxInteractionCommandResult, K as createInteractiveTerminalCapture, L as InteractiveSessionStartOptions, M as InteractiveSessionHandleOptions, N as InteractiveSessionHost, O as InteractiveControlClaimRequest, P as InteractiveSessionIncarnationId, Q as BuildControlPlaneMcpConfigOptions, R as InteractiveSessionStartResult, S as SplitInlineProfileSkillsResult, T as splitInlineProfileSkills, U as InteractiveTerminalCapture, V as RespondToPermissionOptions, W as InteractiveTerminalFrameLog, X as SandboxInteractionResolution, Y as SandboxInteractionConflict, Z as SandboxInteractionResult, _ as SandboxSession, a as WorkspaceImagePublishRequestOptions, at as buildControlPlaneMcpConfig, b as MaterializeProfileFileMountsResult, c as TraceExportFormat, d as buildTraceExportPayload, et as CONTROL_PLANE_MCP_SERVER_NAME, f as exportTraceBundle, g as RawEvidenceExport, h as SandboxTaskSession, i as WorkspaceImagePublishInput, it as SandboxMcpServerEntry, j as InteractiveSessionHandle, k as InteractivePromptCommand, l as TraceExportResult, m as toOtelJson, nt as SandboxMcpConfig, o as WorkspaceImagePublishResult, ot as buildSandboxMcpConfig, p as otelTraceIdForTangleTrace, q as createInteractiveTerminalSession, r as SandboxInstance, rt as SandboxMcpEndpoint, s as WorkspaceImages, t as ForkAcknowledgement, tt as SANDBOX_MCP_SERVER_NAME, u as TraceExportSink, v as ProfileFileDeliveryReport, w as splitInlineProfileFileMounts, x as SplitInlineProfileFileMountsResult, y as MaterializeProfileFileMountsOptions, z as InteractiveStopCommand } from "./sandbox-pZegGEjr.js";
|
|
2
|
+
import { $ as DownloadOptions, $a as BatchBackendStats, $i as SessionInterruptOptions, $n as PromptOptions, $r as SandboxFleetPlacement, $t as GPU_LEASE_PROVIDER_NAMES, A as CommitTaskSessionOptions, Aa as UpdateUserOptions, Ai as SandboxTerminalInfo, An as ManagedProcessRecord, Ar as SandboxDeleteOutcome, At as FileUsageOptions, B as CreateSandboxOptions, Ba as SandboxCreateOutcome, Bi as SearchOptions, Bn as PermissionsManager, Br as SandboxFleetDispatchResponse, Bt as FleetDispatchStreamOptions, C as BranchOptions, Ca as TeeAttestationReport, Ci as SandboxRuntimeHealth, Cn as ListMessagesOptions, Cr as RolloutTurnPart, Ct as FileReadError, Da as TokenRefreshHandler, Di as SandboxStatus, Dn as MAX_EGRESS_DENIALS_LIMIT, Dr as SandboxConnection, Dt as FileTreeFile, Ea as TeePublicKeyResponse, Ei as SandboxShapesInfo, En as ListSandboxOptions, Er as SandboxConfig, Et as FileSystem, F as CreateIntelligenceReportOptions, Fa as WaitForRolloutOptions, Fi as SandboxTraceEvent, Fn as MkdirOptions, Fr as SandboxFleetAgentSpec, Ft as FleetAgentResult, G as DeleteMatchingSandboxesFilter, Ga as RawEvidenceDirectoryExport, Gi as SentSessionMessage, Gn as ProcessInfo, Gr as SandboxFleetMachine, Gt as FleetMachineId, H as CreateTaskSessionOptions, Ha as SandboxEnvRecovery, Hi as SecretsManager, Hn as PreviewLinkManager, Hr as SandboxFleetDriverTimings, Ht as FleetDriveTurnRequest, I as CreateRequestOptions, Ia as WorkspaceOperationLookup, Ii as SandboxTraceExport, In as NetworkConfig, Ir as SandboxFleetArtifact, It as FleetAgentRunStatus, J as DeleteOptions, Ja as RawEvidencePayloadFile, Ji as SessionExecutionInfo, Jn as ProcessManager, Jr as SandboxFleetMachineSpec, Jt as FleetRunEvent, K as DeleteMatchingSandboxesOptions, Ka as RawEvidenceExportOptions, Ki as SessionBackendCredentials, Kn as ProcessListOptions, Kr as SandboxFleetMachineMeteredUsage, Kt as FleetPromptDispatchOptions, L as CreateSandboxFleetOptions, La as WriteFileOptions, Li as SandboxTraceOptions, Ln as NetworkManager, Lr as SandboxFleetArtifactSpec, Lt as FleetDispatchCancelResult, M as ConversationTurnOptions, Ma as UploadProgress, Mi as SandboxTerminalRequestOptions, Mn as ManagedProcessSpec, Mr as SandboxEnvironment, Mt as FileWriteResult, N as ConversationTurnResult, Na as UsageInfo, Ni as SandboxTerminals, Nn as ManagedProcessState, Nr as SandboxEvent, Nt as FleetAgentId, Oa as TokenUsage, Oi as SandboxTerminalAttachOptions, On as ManagedProcessJobs, Or as SandboxDeleteAcknowledgement, Ot as FileTreeOptions, P as CreateGpuLeaseOptions, Pa as WaitForOptions, Pi as SandboxTraceBundle, Pn as McpServerConfig, Pr as SandboxFleetAgent, Pt as FleetAgentPlacement, Q as DispatchedSession, Qa as PublicBatchRunRequest, Qi as SessionInfo, Qn as PromptInputPart, Qr as SandboxFleetParent, Qt as ForkLookupOptions, Ra as WriteManyFile, Ri as SandboxUser, Rn as NonHostAgentDriverConfig, Rr as SandboxFleetCostEstimate, Rt as FleetDispatchResultBuffer, S as BatchTaskResult, Sa as TeeAttestationOptions, Si as SandboxRuntimeCapabilities, Sr as RolloutStatus, St as FileReadBatchResult, T as ChunkedUploadResult, Ta as TeePublicKey, Ti as SandboxShapePreset, Tn as ListSandboxFleetOptions, Tr as SSHCredentials, Tt as FileRenameResult, U as DeleteMatchingSandboxOutcome, Ua as SandboxEnvRecoveryView, Ui as SendSessionMessageOptions, Un as PreviewLinkWaitOptions, Ur as SandboxFleetInfo, Ut as FleetExecDispatchOptions, V as CreateSessionOptions, Va as SandboxCreateReceipt, Vi as SecretInfo, Vn as PreviewLinkInfo, Vr as SandboxFleetDriverCapability, Vt as FleetDriveTurnOutcome, W as DeleteMatchingSandboxResult, Wa as RawEvidenceArchiveManifest, Wi as SendSessionMessageRequest, Wn as Process, Wr as SandboxFleetIntelligenceEnvelope, X as DirectoryPermission, Xi as SessionFailureReason, Xn as ProcessSpawnOptions, Xr as SandboxFleetManifestMachine, Xt as ForkCounts, Y as DevServerInfo, Ya as RawEvidenceRecordsFile, Yi as SessionExecutionStatus, Yn as ProcessSignal, Yr as SandboxFleetManifest, Yt as FleetRunOptions, Z as DispatchPromptOptions, Zi as SessionForkOptions, Zn as ProcessStatus, Zr as SandboxFleetOperationsSummary, Zt as ForkIdempotency, _ as BatchBackend, _a as TaskSessionChanges, _i as SandboxPortPreviewLink, _n as IntelligenceReport, _r as Rollout, _t as ExactProcessSpawnOptions, aa as SessionStatus, ai as SandboxFleetTraceEvent, an as GitStatus, ao as BackendType, ar as PublicProfileConflict, at as DriverType, b as BatchRunRequest, ba as TaskSessionInfo, bi as SandboxResources, bn as IntelligenceReportSubjectType, br as RolloutScorer, bt as FileInfo, c as AttachGpuLeaseOptions, ca as SnapshotIdempotency, ci as SandboxFleetUsage, cn as GpuLeaseCommandResult, cr as PublishPublicTemplateOptions, d as BackendConfig, da as SnapshotResult, di as SandboxFleetWorkspaceRestoreResult, dn as GpuLeaseManager, dr as ReapExpiredSandboxFleetsResult, dt as EffectiveBackendSource, ea as SessionListOptions, ei as SandboxFleetPolicy, en as GitAuth, eo as BatchEvent, er as PromptResult, et as DownloadProgress, f as BackendInfo, fi as SandboxFleetWorkspaceSnapshotResult, fn as GpuLeaseProviderName, fr as ReconcileSandboxFleetsOptions, ft as EgressDenial, g as BackendStatus, ga as SubscriptionInfo, gi as SandboxPortBinding, gn as InstalledTool, gt as EventStreamOptions, h as BackendRuntimeConfigUpdate, ha as StorageConfig, hi as SandboxIntelligenceEnvelope, hn as HostAgentRuntimeBackend, ht as EnsureDevServerOptions, ia as SessionResultOptions, ii as SandboxFleetTraceBundle, in as GitDiff, io as ALL_BACKEND_TYPES, ir as ProvisionStep, it as DriverInfo, j as CompletedTurnResult, ja as UploadOptions, ji as SandboxTerminalManager, jn as ManagedProcessResumeOptions, jr as SandboxEgressUsage, jt as FileUsageResult, ka as TurnDriveResult, ki as SandboxTerminalCreateOptions, kn as ManagedProcessOptions, kr as SandboxDeleteOptions, kt as FileTreeResult, l as AttachSandboxFleetMachineOptions, la as SnapshotInfo, li as SandboxFleetWorkspace, ln as GpuLeaseExecOptions, lr as PublishPublicTemplateVersionOptions, lt as EffectiveBackend, m as BackendMcpServerStatus, ma as StartupOperation, mi as SandboxInfo, mn as HostAgentDriverConfig, mr as RenameOptions, mt as EgressPolicy, n as AccessPolicyRule, na as SessionMessageAdmission, ni as SandboxFleetSpend, nn as GitCommit, no as BatchSidecarGroup, nr as ProvisionResult, nt as DriveTurnOptions, oa as SnapshotDeleteAcknowledgement, oi as SandboxFleetTraceExport, on as GpuLease, oo as parseBackendType, or as PublicTemplateInfo, ot as DurablePlan, p as BackendManager, pa as StartupDiagnostics, pi as SandboxIdentity, pn as GpuLeaseStatus, pr as ReconcileSandboxFleetsResult, pt as EgressManager, q as DeleteMatchingSandboxesResult, qa as RawEvidenceNativeFile, qi as SessionEventStreamOptions, qn as ProcessLogEntry, qr as SandboxFleetMachineRecord, qt as FleetPromptDispatchResult, r as AddUserOptions, ra as SessionMessageInputPart, ri as SandboxFleetToken, rn as GitConfig, ro as BatchTaskUsage, rr as ProvisionStatus, rt as DriverConfig, sa as SnapshotDeleteOutcome, si as SandboxFleetTraceOptions, sn as GpuLeaseBilling, sr as PublicTemplateVersionInfo, st as DurablePlanDecisionResult, t as AcceleratorKind, ta as SessionMessage, ti as SandboxFleetProfileRef, tn as GitBranch, to as BatchEventDataMap, tr as ProvisionEvent, tt as DownloadResult, u as BackendCapabilities, ua as SnapshotOptions, ui as SandboxFleetWorkspaceReconcileResult, un as GpuLeaseExecResult, ur as ReapExpiredSandboxFleetsOptions, ut as EffectiveBackendProfile, v as BatchResult, va as TaskSessionCommitResult, vi as SandboxRemovalState, vn as IntelligenceReportBudget, vr as RolloutChildResult, vt as ExecOptions, w as ChunkedUploadOptions, wa as TeeAttestationResponse, wi as SandboxShape, wn as ListOptions, wr as SSHCommandDescriptor, wt as FileReadResult, x as BatchTask, xa as TaskSessionProfile, xi as SandboxRunGeneration, xn as IntelligenceReportWindow, xr as RolloutStartResult, xt as FileReadBatchOptions, y as BatchRunOptions, ya as TaskSessionFileChange, yi as SandboxResourceUsage, yn as IntelligenceReportCompareTo, yr as RolloutOptions, yt as ExecResult, z as CreateSandboxFleetWithCoordinatorOptions, za as WriteManyOptions, zi as SearchMatch, zn as PermissionLevel, zr as SandboxFleetDispatchFailureClass, zt as FleetDispatchResultBufferOptions } from "./types-BNWkYhQf.js";
|
|
3
3
|
import { c as MintScopedTokenOptions, d as TERMINAL_WS_ECHO_SUBPROTOCOL, f as TerminalExitInfo, g as TerminalStreamAuthFormat, h as TerminalReadyInfo, i as TerminalStreamOptions, l as ScopedToken, m as TerminalOutputMessage, n as TerminalStreamError, o as TerminalStreamToken, p as TerminalInteractiveSessionIdentity, r as TerminalStreamHandlers, s as MintInteractiveSessionTokenOptions, t as TerminalStream, u as ScopedTokenScope } from "./terminal-stream-CV1pMSKC.js";
|
|
4
4
|
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as interactiveSessionIdentityDigest, f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as InteractiveSessionNotRunningError, m as InteractiveControlClaimOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimAcknowledgement, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as createInteractiveControlHolderId } from "./browser-interactive-control-controller-JUW3gOGH.js";
|
|
5
5
|
import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-DNbLzamS.js";
|
|
6
|
-
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, D as LineRole, E as LineRespondView, F as LineVoiceOptions, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, M as LineThread, N as LineTransport, O as LineSendInput, P as LineVoice, R as SandboxLines, S as LineReplyCode, T as LineRespondAgent, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, q as LineApplicationView, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineReplyGate, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-
|
|
7
|
-
import { A as BackendRegistryEntry, C as InstancesClient, D as ParsedSSEEvent, E as ParseSSEStreamOptions, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, O as parseSSEStream, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, S as InstanceStart, T as SandboxFleetClient, _ as EnsureInstanceOptions, a as Team, b as InstanceRecord, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as RunsHttpClient, h as RunsClient, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as HostedInstance, w as SandboxFleet, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-
|
|
8
|
-
import { _ as StreamInterruptedError, a as FileWriteConflictError, b as ValidationError, c as NotFoundError, d as ResumeEnvRequiredError, f as SandboxError, g as StateError, h as ServerError, i as EgressProxyRecoveryError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxErrorJson, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError, v as StreamInterruptionReason, y as TimeoutError } from "./errors-
|
|
6
|
+
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, D as LineRole, E as LineRespondView, F as LineVoiceOptions, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, M as LineThread, N as LineTransport, O as LineSendInput, P as LineVoice, R as SandboxLines, S as LineReplyCode, T as LineRespondAgent, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, q as LineApplicationView, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineReplyGate, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-Bv-HWQd3.js";
|
|
7
|
+
import { A as BackendRegistryEntry, C as InstancesClient, D as ParsedSSEEvent, E as ParseSSEStreamOptions, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, O as parseSSEStream, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, S as InstanceStart, T as SandboxFleetClient, _ as EnsureInstanceOptions, a as Team, b as InstanceRecord, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as RunsHttpClient, h as RunsClient, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as HostedInstance, w as SandboxFleet, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-Bjv76qkD.js";
|
|
8
|
+
import { _ as StreamInterruptedError, a as FileWriteConflictError, b as ValidationError, c as NotFoundError, d as ResumeEnvRequiredError, f as SandboxError, g as StateError, h as ServerError, i as EgressProxyRecoveryError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxErrorJson, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError, v as StreamInterruptionReason, y as TimeoutError } from "./errors-sEMGx6WV.js";
|
|
9
9
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-BgmgfYZZ.js";
|
|
10
10
|
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-DHuHjNie.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { t as ManagedProcessClient } from "./managed-process-BJoSEHl_.js";
|
|
12
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-Tn7gNtQD.js";
|
|
13
|
+
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-QqNMoNP_.js";
|
|
13
14
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
14
15
|
import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
15
16
|
import { z } from "zod";
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { i as parseBackendType, r as backendTypeSchema, t as ALL_BACKEND_TYPES } from "./backend-types-C7b_Gpa0.js";
|
|
2
|
-
import { A as requestedPublicProfileDigest, F as deriveAgentResultOutcome, I as deriveAgentRunOutcome, L as projectAgentTerminalRecord, P as createAgentRunOutcomeTracker, a as TERMINAL_WS_ECHO_SUBPROTOCOL, i as TerminalStreamError, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, w as parseSSEStream } from "./interactive-controller-
|
|
3
|
-
import { _ as TimeoutError, a as FileWriteConflictError, c as NetworkError, d as QuotaError, f as ResumeEnvRequiredError, g as StreamInterruptedError, h as StateError, i as EgressProxyRecoveryError, l as NotFoundError, m as ServerError, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxError, r as EdgeNotReadyError, t as AuthError, u as PartialFailureError, v as ValidationError } from "./errors-
|
|
4
|
-
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, r as RunsClient, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-
|
|
2
|
+
import { A as requestedPublicProfileDigest, F as deriveAgentResultOutcome, I as deriveAgentRunOutcome, L as projectAgentTerminalRecord, P as createAgentRunOutcomeTracker, a as TERMINAL_WS_ECHO_SUBPROTOCOL, i as TerminalStreamError, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, w as parseSSEStream } from "./interactive-controller-DbKLSfTD.js";
|
|
3
|
+
import { _ as TimeoutError, a as FileWriteConflictError, c as NetworkError, d as QuotaError, f as ResumeEnvRequiredError, g as StreamInterruptedError, h as StateError, i as EgressProxyRecoveryError, l as NotFoundError, m as ServerError, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxError, r as EdgeNotReadyError, t as AuthError, u as PartialFailureError, v as ValidationError } from "./errors-iWIsey1D.js";
|
|
4
|
+
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, r as RunsClient, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-CIbv9y2g.js";
|
|
5
5
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
6
|
-
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, M as toOtelJson, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, _ as collectAgentFinalMessageText, b as isToolBearingEvent, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as applySandboxEventText, h as createInteractiveTerminalSession, j as otelTraceIdForTangleTrace, k as buildTraceExportPayload, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileSkills, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-
|
|
6
|
+
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, M as toOtelJson, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, _ as collectAgentFinalMessageText, b as isToolBearingEvent, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as applySandboxEventText, h as createInteractiveTerminalSession, j as otelTraceIdForTangleTrace, k as buildTraceExportPayload, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileSkills, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-CsmTplZQ.js";
|
|
7
7
|
import { LinesClient, SandboxLines, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
8
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-
|
|
8
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-B2g1j2ey.js";
|
|
9
9
|
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-Cq6dJLBD.js";
|
|
10
|
-
import { s as TangleSandboxClient } from "./tangle-
|
|
10
|
+
import { s as TangleSandboxClient } from "./tangle-B_7BzYoe.js";
|
|
11
11
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
//#region src/confidential.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as TimeoutError, c as NetworkError, y as parseErrorResponse } from "../errors-
|
|
1
|
+
import { _ as TimeoutError, c as NetworkError, y as parseErrorResponse } from "../errors-iWIsey1D.js";
|
|
2
2
|
//#region src/intelligence/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* `@tangle-network/sandbox/intelligence` — browser-safe typed client for the
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-C7b_Gpa0.js";
|
|
2
|
-
import { b as parseResponseError, c as NetworkError, m as ServerError, n as CapabilityError, p as SandboxError, v as ValidationError } from "./errors-
|
|
2
|
+
import { b as parseResponseError, c as NetworkError, m as ServerError, n as CapabilityError, p as SandboxError, v as ValidationError } from "./errors-iWIsey1D.js";
|
|
3
3
|
import { c as assertInteractiveSessionRef, d as awaitWithAbort, f as combineAbortSignals, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
4
|
-
import { s as uploadChunked } from "./chunked-upload-
|
|
4
|
+
import { s as uploadChunked } from "./chunked-upload-BklCn3Li.js";
|
|
5
5
|
import { AgentExactRunControlRefSchema, AgentExecutionOutcomeSchema, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionRefSchema, AgentRuntimeAttachmentsSchema, DurablePlanSchema, InteractionRequestSchema, agentInteractiveSessionControlClaimMatchesRef, agentProfileSchema, canonicalCandidateDigest } from "@tangle-network/agent-interface";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/agent-run-outcome-inspection.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as CreateSandboxOptions, d as BackendConfig } from "./types-
|
|
1
|
+
import { B as CreateSandboxOptions, d as BackendConfig } from "./types-BNWkYhQf.js";
|
|
2
2
|
|
|
3
3
|
//#region src/line-application.d.ts
|
|
4
4
|
/** Bounded callback request bytes after canonicalization, including JSON framing. */
|
package/dist/lines.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, D as LineRole, E as LineRespondView, F as LineVoiceOptions, I as LinesClient, L as LinesHttpClient, M as LineThread, N as LineTransport, O as LineSendInput, P as LineVoice, R as SandboxLines, S as LineReplyCode, T as LineRespondAgent, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineReplyGate, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-
|
|
1
|
+
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, D as LineRole, E as LineRespondView, F as LineVoiceOptions, I as LinesClient, L as LinesHttpClient, M as LineThread, N as LineTransport, O as LineSendInput, P as LineVoice, R as SandboxLines, S as LineReplyCode, T as LineRespondAgent, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineReplyGate, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-Bv-HWQd3.js";
|
|
2
2
|
export { Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplicationAttachOptions, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, LineInstanceAttachOptions, LineInstanceCreate, LineLimits, LineMember, LineMemberInstance, LineMemberPatch, LineMemberSpec, LineMessage, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineReplyGate, LineRespondAgent, LineRespondView, LineRole, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LineThread, LineTransport, LineVoice, LineVoiceOptions, LinesClient, LinesHttpClient, SandboxLines, lineInstanceKey, profileChannelReference };
|
package/dist/lines.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-
|
|
1
|
+
import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-B9OMJ3oQ.js";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { homedir } from "node:os";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { An as ManagedProcessRecord, Mn as ManagedProcessSpec, On as ManagedProcessJobs, jn as ManagedProcessResumeOptions, kn as ManagedProcessOptions } from "./types-BNWkYhQf.js";
|
|
2
|
+
|
|
3
|
+
//#region src/managed-process.d.ts
|
|
4
|
+
declare class ManagedProcessClient implements ManagedProcessJobs {
|
|
5
|
+
private readonly request;
|
|
6
|
+
private readonly environmentId;
|
|
7
|
+
constructor(request: (path: string, init: RequestInit) => Promise<Response>, environmentId: string);
|
|
8
|
+
private call;
|
|
9
|
+
submit(spec: ManagedProcessSpec, options?: ManagedProcessOptions): Promise<ManagedProcessRecord>;
|
|
10
|
+
get(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
11
|
+
resume(id: string, options: ManagedProcessResumeOptions): Promise<ManagedProcessRecord | null>;
|
|
12
|
+
cancel(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ManagedProcessClient as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as SandboxInstance } from "./sandbox-
|
|
2
|
-
import {
|
|
3
|
-
import { i as Sandbox } from "./client-
|
|
1
|
+
import { r as SandboxInstance } from "./sandbox-pZegGEjr.js";
|
|
2
|
+
import { Vn as PreviewLinkInfo, ht as EnsureDevServerOptions } from "./types-BNWkYhQf.js";
|
|
3
|
+
import { i as Sandbox } from "./client-Bjv76qkD.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/preview-operations.d.ts
|
|
6
6
|
type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as CommitTaskSessionOptions,
|
|
1
|
+
import { A as CommitTaskSessionOptions, Ai as SandboxTerminalInfo, At as FileUsageOptions, Ci as SandboxRuntimeHealth, Cn as ListMessagesOptions, Gi as SentSessionMessage, H as CreateTaskSessionOptions, Ji as SessionExecutionInfo, La as WriteFileOptions, Ma as UploadProgress, Mi as SandboxTerminalRequestOptions, Mt as FileWriteResult, Nr as SandboxEvent, Ot as FileTreeOptions, Qi as SessionInfo, St as FileReadBatchResult, T as ChunkedUploadResult, Tt as FileRenameResult, Ui as SendSessionMessageOptions, V as CreateSessionOptions, Wi as SendSessionMessageRequest, Yi as SessionExecutionStatus, _a as TaskSessionChanges, ba as TaskSessionInfo, gi as SandboxPortBinding, ji as SandboxTerminalManager, jt as FileUsageResult, ki as SandboxTerminalCreateOptions, kt as FileTreeResult, mr as RenameOptions, na as SessionMessageAdmission, qi as SessionEventStreamOptions, ta as SessionMessage, va as TaskSessionCommitResult, w as ChunkedUploadOptions, xt as FileReadBatchOptions } from "./types-BNWkYhQf.js";
|
|
2
2
|
import { l as ScopedToken, t as TerminalStream } from "./terminal-stream-CV1pMSKC.js";
|
|
3
3
|
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-JUW3gOGH.js";
|
|
4
4
|
import { t as BrowserInteractiveSessionController } from "./interactive-controller-DNbLzamS.js";
|
|
5
|
-
import { a as FileWriteConflictError, b as ValidationError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, y as TimeoutError } from "./errors-
|
|
6
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
5
|
+
import { a as FileWriteConflictError, b as ValidationError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, y as TimeoutError } from "./errors-sEMGx6WV.js";
|
|
6
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-Tn7gNtQD.js";
|
|
7
7
|
|
|
8
8
|
//#region src/lib/chunked-upload.d.ts
|
|
9
9
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
package/dist/runtime.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as deriveAgentResultOutcome, I as deriveAgentRunOutcome, L as projectAgentTerminalRecord, P as createAgentRunOutcomeTracker, l as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-
|
|
2
|
-
import { _ as TimeoutError, a as FileWriteConflictError, c as NetworkError, d as QuotaError, h as StateError, l as NotFoundError, m as ServerError, n as CapabilityError, p as SandboxError, t as AuthError, u as PartialFailureError, v as ValidationError } from "./errors-
|
|
1
|
+
import { F as deriveAgentResultOutcome, I as deriveAgentRunOutcome, L as projectAgentTerminalRecord, P as createAgentRunOutcomeTracker, l as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-DbKLSfTD.js";
|
|
2
|
+
import { _ as TimeoutError, a as FileWriteConflictError, c as NetworkError, d as QuotaError, h as StateError, l as NotFoundError, m as ServerError, n as CapabilityError, p as SandboxError, t as AuthError, u as PartialFailureError, v as ValidationError } from "./errors-iWIsey1D.js";
|
|
3
3
|
import { f as combineAbortSignals, n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
4
|
-
import { s as uploadChunked } from "./chunked-upload-
|
|
4
|
+
import { s as uploadChunked } from "./chunked-upload-BklCn3Li.js";
|
|
5
5
|
//#region src/runtime-client.ts
|
|
6
6
|
const DEFAULT_RUNTIME_TIMEOUT_MS = 3e4;
|
|
7
7
|
function requireToken(token) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-C7b_Gpa0.js";
|
|
2
|
-
import { A as requestedPublicProfileDigest, C as encodeTextForWire, E as assertCurrentBackendType, F as deriveAgentResultOutcome, N as withoutRuntimeSecrets, O as mergeRuntimeBackendConfig, P as createAgentRunOutcomeTracker, S as encodePromptForWire, T as applyRequestedModel, _ as resolveTraceId, b as resolveDispatchRunIdentity, c as requestScopedToken, d as normalizeSessionInfo, f as sessionMessageRequestBody, g as mintTraceId, h as isTraceId, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as SandboxRuntimeApi, m as TRACE_ID_HEADER, n as InteractiveSessionController, o as assertScopedTokenActive, p as waitForRetryAfter, r as TerminalStream, u as isRetryableCredentialRefusal, v as appendSessionIdQuery, w as parseSSEStream, x as validateAcceptedDispatchRunRef, y as sessionHeaders } from "./interactive-controller-
|
|
3
|
-
import { _ as TimeoutError, b as parseResponseError, c as NetworkError, d as QuotaError, g as StreamInterruptedError, h as StateError, l as NotFoundError, m as ServerError, n as CapabilityError, p as SandboxError, r as EdgeNotReadyError, t as AuthError, v as ValidationError, x as readResponseJson, y as parseErrorResponse } from "./errors-
|
|
2
|
+
import { A as requestedPublicProfileDigest, C as encodeTextForWire, E as assertCurrentBackendType, F as deriveAgentResultOutcome, N as withoutRuntimeSecrets, O as mergeRuntimeBackendConfig, P as createAgentRunOutcomeTracker, S as encodePromptForWire, T as applyRequestedModel, _ as resolveTraceId, b as resolveDispatchRunIdentity, c as requestScopedToken, d as normalizeSessionInfo, f as sessionMessageRequestBody, g as mintTraceId, h as isTraceId, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as SandboxRuntimeApi, m as TRACE_ID_HEADER, n as InteractiveSessionController, o as assertScopedTokenActive, p as waitForRetryAfter, r as TerminalStream, u as isRetryableCredentialRefusal, v as appendSessionIdQuery, w as parseSSEStream, x as validateAcceptedDispatchRunRef, y as sessionHeaders } from "./interactive-controller-DbKLSfTD.js";
|
|
3
|
+
import { _ as TimeoutError, b as parseResponseError, c as NetworkError, d as QuotaError, g as StreamInterruptedError, h as StateError, l as NotFoundError, m as ServerError, n as CapabilityError, p as SandboxError, r as EdgeNotReadyError, t as AuthError, v as ValidationError, x as readResponseJson, y as parseErrorResponse } from "./errors-iWIsey1D.js";
|
|
4
4
|
import { d as awaitWithAbort, f as combineAbortSignals, g as interactiveSessionStatusResponseSchema, h as interactiveSessionControlValidationResponseSchema, l as createInteractiveControlHolderId, m as interactiveSessionControlReleaseResponseSchema, p as interactiveSessionControlClaimResponseSchema } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
5
5
|
import { SandboxLines } from "./lines.js";
|
|
6
|
-
import { l as SANDBOX_PROXY_REQUEST_MAX_BYTES, s as uploadChunked } from "./chunked-upload-
|
|
7
|
-
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-
|
|
6
|
+
import { l as SANDBOX_PROXY_REQUEST_MAX_BYTES, s as uploadChunked } from "./chunked-upload-BklCn3Li.js";
|
|
7
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-B9OMJ3oQ.js";
|
|
8
8
|
import { AgentExactRunControlRefSchema, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentRunCancellationAcknowledgementSchema, AgentRunCancellationRequestSchema, InteractionAcknowledgementSchema, InteractionBindingSchema, InteractionRequestSchema, InteractionResponseCommandSchema, InteractionResponseSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionStatusMatchesRef, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentProfileSchema, agentRunCancellationAcknowledgementMatchesRequest, canonicalCandidateDigest, canonicalCandidateJson, exactAgentInteractiveSessionStart, sha256DigestSchema, terminalSessionUsable } from "@tangle-network/agent-interface";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { AgentInteractiveSessionControlClaimSchema as AgentInteractiveSessionControlClaimSchema$1, AgentInteractiveSessionPromptAcknowledgementSchema as AgentInteractiveSessionPromptAcknowledgementSchema$1, AgentInteractiveSessionRefSchema as AgentInteractiveSessionRefSchema$1, AgentInteractiveSessionStatusSchema, AgentInteractiveSessionStopAcknowledgementSchema as AgentInteractiveSessionStopAcknowledgementSchema$1 } from "@tangle-network/agent-interface/environment-interactive-control";
|
|
@@ -6180,7 +6180,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
6180
6180
|
totalBytes: size,
|
|
6181
6181
|
percentage: 0
|
|
6182
6182
|
});
|
|
6183
|
-
const { uploadChunkedFromFile } = await import("./chunked-upload-file-
|
|
6183
|
+
const { uploadChunkedFromFile } = await import("./chunked-upload-file-Cp-iWsWN.js");
|
|
6184
6184
|
await uploadChunkedFromFile({ fetch: (path, init) => this.runtimeFetch(path, init) }, remotePath, localPath, {
|
|
6185
6185
|
mode: options?.permissions,
|
|
6186
6186
|
onProgress: options?.onProgress ? (progress) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as CliAuthReference } from "./cli-auth-bundle-ODe06Ts7.js";
|
|
2
|
-
import { $
|
|
2
|
+
import { $i as SessionInterruptOptions, $n as PromptOptions, A as CommitTaskSessionOptions, Bi as SearchOptions, Bn as PermissionsManager, C as BranchOptions, Ci as SandboxRuntimeHealth, Cn as ListMessagesOptions, D as CodeExecutionResult, Di as SandboxStatus, Dr as SandboxConnection, E as CodeExecutionOptions, Ea as TeePublicKeyResponse, Et as FileSystem, Fa as WaitForRolloutOptions, Ga as RawEvidenceDirectoryExport, Gi as SentSessionMessage, H as CreateTaskSessionOptions, Ha as SandboxEnvRecovery, Hn as PreviewLinkManager, Ia as WorkspaceOperationLookup, Ji as SessionExecutionInfo, Jn as ProcessManager, Ka as RawEvidenceExportOptions, La as WriteFileOptions, Li as SandboxTraceOptions, Ln as NetworkManager, M as ConversationTurnOptions, Mt as FileWriteResult, N as ConversationTurnResult, Ni as SandboxTerminals, Nr as SandboxEvent, O as CodeLanguage, Oi as SandboxTerminalAttachOptions, Or as SandboxDeleteAcknowledgement, Pa as WaitForOptions, Pi as SandboxTraceBundle, Q as DispatchedSession, Qi as SessionInfo, Qn as PromptInputPart, Qt as ForkLookupOptions, Ra as WriteManyFile, Sa as TeeAttestationOptions, Si as SandboxRuntimeCapabilities, Sn as JsonValue, Tr as SSHCredentials, Ua as SandboxEnvRecoveryView, Ui as SendSessionMessageOptions, V as CreateSessionOptions, Va as SandboxCreateReceipt, Wi as SendSessionMessageRequest, Xa as WorkspaceImagePublishResult$1, Xt as ForkCounts, Z as DispatchPromptOptions, Za as InteractionResolutionAcknowledgement, Zi as SessionForkOptions, Zt as ForkIdempotency, _a as TaskSessionChanges, _n as IntelligenceReport, _r as Rollout, an as GitStatus, ar as PublicProfileConflict, ba as TaskSessionInfo, d as BackendConfig, da as SnapshotResult, dn as GpuLeaseManager, ea as SessionListOptions, er as PromptResult, gi as SandboxPortBinding, gn as InstalledTool, gr as ResumeOptions, gt as EventStreamOptions, hr as RestoreSnapshotOptions, ia as SessionResultOptions, ii as SandboxFleetTraceBundle, in as GitDiff, it as DriverInfo, j as CompletedTurnResult, ka as TurnDriveResult, kr as SandboxDeleteOptions, la as SnapshotInfo, mi as SandboxInfo, na as SessionMessageAdmission, nn as GitCommit, nr as ProvisionResult, nt as DriveTurnOptions, oa as SnapshotDeleteAcknowledgement, on as GpuLease, ot as DurablePlan, p as BackendManager, pa as StartupDiagnostics, pt as EgressManager, qi as SessionEventStreamOptions, st as DurablePlanDecisionResult, ta as SessionMessage, tn as GitBranch, tr as ProvisionEvent, ua as SnapshotOptions, va as TaskSessionCommitResult, vn as IntelligenceReportBudget, vt as ExecOptions, wa as TeeAttestationResponse, wi as SandboxShape, wr as SSHCommandDescriptor, xn as IntelligenceReportWindow, xr as RolloutStartResult, yi as SandboxResourceUsage, yn as IntelligenceReportCompareTo, yr as RolloutOptions, yt as ExecResult, za as WriteManyOptions, zi as SearchMatch } from "./types-BNWkYhQf.js";
|
|
3
3
|
import { a as TerminalStreamReconnectAuthority, c as MintScopedTokenOptions, h as TerminalReadyInfo, l as ScopedToken, r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-CV1pMSKC.js";
|
|
4
4
|
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-JUW3gOGH.js";
|
|
5
5
|
import { r as InteractiveAttachRequest } from "./interactive-controller-DNbLzamS.js";
|
|
6
|
-
import { R as SandboxLines } from "./lines-
|
|
6
|
+
import { R as SandboxLines } from "./lines-Bv-HWQd3.js";
|
|
7
7
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimAcknowledgement, 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";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-
|
|
1
|
+
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-QqNMoNP_.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JobQuoteDetails, JsonResponseParamTypes, OperatorChallenge, OperatorSession, OperatorSessionError, OperatorSessionToken, QuoteDomain, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, SignMessage, SignedQuote, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-B_7BzYoe.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as readResponseJson } from "./errors-
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
1
|
+
import { x as readResponseJson } from "./errors-iWIsey1D.js";
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-CsmTplZQ.js";
|
|
3
3
|
import { _ as rotlBH, a as anumber, b as rotlSL, d as createXOFer, g as u32, h as toBytes$1, l as createHasher, m as swap32IfBE, n as abytes, o as aoutput, r as aexists, s as clean, t as Hash, v as rotlBL, x as split, y as rotlSH } from "./utils-B7_9Hl_z.js";
|
|
4
4
|
//#region src/tangle/abi.ts
|
|
5
5
|
/**
|
|
@@ -1429,69 +1429,52 @@ declare const sandboxEnvRecoveryViewSchema: z.ZodObject<{
|
|
|
1429
1429
|
}, z.core.$strict>;
|
|
1430
1430
|
type SandboxEnvRecoveryView = z.infer<typeof sandboxEnvRecoveryViewSchema>;
|
|
1431
1431
|
//#endregion
|
|
1432
|
-
//#region src/
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1432
|
+
//#region src/create-receipt-types.d.ts
|
|
1433
|
+
/** Create admission evidence shared by SDK errors and public sandbox types.
|
|
1434
|
+
* This contract has no SDK implementation imports. */
|
|
1435
|
+
/**
|
|
1436
|
+
* What one `create()` call did to the sandbox environment.
|
|
1437
|
+
*
|
|
1438
|
+
* - `created`: the call allocated the environment. The platform states this
|
|
1439
|
+
* only when the create identity belonged to the call alone.
|
|
1440
|
+
* - `idempotent_replay`: the platform returned the environment that an earlier
|
|
1441
|
+
* call with the same idempotency key allocated. The call allocated nothing.
|
|
1442
|
+
* - `unknown`: the platform cannot prove either outcome, so another caller can
|
|
1443
|
+
* hold the environment.
|
|
1444
|
+
*/
|
|
1445
|
+
type SandboxCreateOutcome = "created" | "idempotent_replay" | "unknown";
|
|
1446
|
+
/**
|
|
1447
|
+
* The platform verdict for one create call.
|
|
1448
|
+
*
|
|
1449
|
+
* Delete the environment only on a `created` outcome. `idempotencyKeyApplied`
|
|
1450
|
+
* reports whether the idempotency key selected the environment: a false value
|
|
1451
|
+
* means a retry of the same request allocates a second sandbox.
|
|
1452
|
+
*/
|
|
1453
|
+
interface SandboxCreateReceipt {
|
|
1454
|
+
outcome: SandboxCreateOutcome;
|
|
1455
|
+
idempotencyKeyApplied: boolean;
|
|
1456
|
+
/** Host-confirmed credential-inheritance policy, not a VM-isolation or
|
|
1457
|
+
* privacy-from-operator attestation. Missing on older hosts and on unverified
|
|
1458
|
+
* replays; isolated creation requires an explicit isolated verdict. */
|
|
1459
|
+
ownerContext?: "inherit" | "isolated";
|
|
1460
|
+
/**
|
|
1461
|
+
* Names of the stored secrets this call decrypted into the sandbox.
|
|
1462
|
+
* Read it to size what the box can read. The set is sorted and
|
|
1463
|
+
* de-duplicated, and it also counts the names a startup script or a Hub
|
|
1464
|
+
* credential pulled in, so it is a superset of the `secrets` the create
|
|
1465
|
+
* asked for rather than the same list. Absent on an idempotent replay, and
|
|
1466
|
+
* on a platform old enough not to report the set.
|
|
1467
|
+
*/
|
|
1468
|
+
injectedSecrets?: string[];
|
|
1469
|
+
/** Host-confirmed identity of the container whose native rollout is retained. */
|
|
1470
|
+
captureProof?: {
|
|
1471
|
+
hostId: string;
|
|
1472
|
+
containerId: string;
|
|
1473
|
+
imageId: string;
|
|
1474
|
+
bundleRevision: string;
|
|
1475
|
+
bundleChecksum: string;
|
|
1448
1476
|
};
|
|
1449
1477
|
}
|
|
1450
|
-
type ManagedProcessState = "queued" | "running" | "retrying" | "stopping" | "succeeded" | "failed" | "cancelled" | "expired";
|
|
1451
|
-
interface ManagedProcessRecord {
|
|
1452
|
-
schema: 1;
|
|
1453
|
-
environmentId: string;
|
|
1454
|
-
workspaceRoot: string;
|
|
1455
|
-
spec: ManagedProcessSpec;
|
|
1456
|
-
digest: string;
|
|
1457
|
-
state: ManagedProcessState;
|
|
1458
|
-
attempt: number;
|
|
1459
|
-
acceptedAt: number;
|
|
1460
|
-
updatedAt: number;
|
|
1461
|
-
nextAttemptAt?: number;
|
|
1462
|
-
pid?: number;
|
|
1463
|
-
lastExitCode?: number;
|
|
1464
|
-
interrupted?: boolean;
|
|
1465
|
-
stopReason?: "cancelled" | "expired" | "failed";
|
|
1466
|
-
failureCode?: "interrupted" | "attempts_exhausted" | "process_exit" | "launch_failed";
|
|
1467
|
-
}
|
|
1468
|
-
interface ManagedProcessOptions {
|
|
1469
|
-
sessionId?: string;
|
|
1470
|
-
}
|
|
1471
|
-
interface ManagedProcessResumeOptions extends ManagedProcessOptions {
|
|
1472
|
-
expectedAttempt: number;
|
|
1473
|
-
expectedDigest: string;
|
|
1474
|
-
}
|
|
1475
|
-
interface ManagedProcessJobs {
|
|
1476
|
-
/** Returns after durable admission. No caller process or open stream owns execution. */
|
|
1477
|
-
submit(spec: ManagedProcessSpec, options?: ManagedProcessOptions): Promise<ManagedProcessRecord>;
|
|
1478
|
-
get(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
1479
|
-
/** Resume an observed failed attempt with the same command, deadline, and attempt budget.
|
|
1480
|
-
* A stale/duplicate request conflicts. Reconcile an uncertain response with get(). */
|
|
1481
|
-
resume(id: string, options: ManagedProcessResumeOptions): Promise<ManagedProcessRecord | null>;
|
|
1482
|
-
/** `stopping` means cancellation is recorded but physical termination is not yet confirmed. */
|
|
1483
|
-
cancel(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
1484
|
-
}
|
|
1485
|
-
declare class ManagedProcessClient implements ManagedProcessJobs {
|
|
1486
|
-
private readonly request;
|
|
1487
|
-
private readonly environmentId;
|
|
1488
|
-
constructor(request: (path: string, init: RequestInit) => Promise<Response>, environmentId: string);
|
|
1489
|
-
private call;
|
|
1490
|
-
submit(spec: ManagedProcessSpec, options?: ManagedProcessOptions): Promise<ManagedProcessRecord>;
|
|
1491
|
-
get(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
1492
|
-
resume(id: string, options: ManagedProcessResumeOptions): Promise<ManagedProcessRecord | null>;
|
|
1493
|
-
cancel(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
1494
|
-
}
|
|
1495
1478
|
//#endregion
|
|
1496
1479
|
//#region src/types.d.ts
|
|
1497
1480
|
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
@@ -2372,49 +2355,6 @@ interface StartupDiagnostics {
|
|
|
2372
2355
|
/** Derived map of operation name → measured duration in milliseconds. */
|
|
2373
2356
|
phases: Record<string, number>;
|
|
2374
2357
|
}
|
|
2375
|
-
/**
|
|
2376
|
-
* What one `create()` call did to the sandbox environment.
|
|
2377
|
-
*
|
|
2378
|
-
* - `created`: the call allocated the environment. The platform states this
|
|
2379
|
-
* only when the create identity belonged to the call alone.
|
|
2380
|
-
* - `idempotent_replay`: the platform returned the environment that an earlier
|
|
2381
|
-
* call with the same idempotency key allocated. The call allocated nothing.
|
|
2382
|
-
* - `unknown`: the platform cannot prove either outcome, so another caller can
|
|
2383
|
-
* hold the environment.
|
|
2384
|
-
*/
|
|
2385
|
-
type SandboxCreateOutcome = "created" | "idempotent_replay" | "unknown";
|
|
2386
|
-
/**
|
|
2387
|
-
* The platform verdict for one create call.
|
|
2388
|
-
*
|
|
2389
|
-
* Delete the environment only on a `created` outcome. `idempotencyKeyApplied`
|
|
2390
|
-
* reports whether the idempotency key selected the environment: a false value
|
|
2391
|
-
* means a retry of the same request allocates a second sandbox.
|
|
2392
|
-
*/
|
|
2393
|
-
interface SandboxCreateReceipt {
|
|
2394
|
-
outcome: SandboxCreateOutcome;
|
|
2395
|
-
idempotencyKeyApplied: boolean;
|
|
2396
|
-
/** Host-confirmed credential-inheritance policy, not a VM-isolation or
|
|
2397
|
-
* privacy-from-operator attestation. Missing on older hosts and on unverified
|
|
2398
|
-
* replays; isolated creation requires an explicit isolated verdict. */
|
|
2399
|
-
ownerContext?: "inherit" | "isolated";
|
|
2400
|
-
/**
|
|
2401
|
-
* Names of the stored secrets this call decrypted into the sandbox.
|
|
2402
|
-
* Read it to size what the box can read. The set is sorted and
|
|
2403
|
-
* de-duplicated, and it also counts the names a startup script or a Hub
|
|
2404
|
-
* credential pulled in, so it is a superset of the `secrets` the create
|
|
2405
|
-
* asked for rather than the same list. Absent on an idempotent replay, and
|
|
2406
|
-
* on a platform old enough not to report the set.
|
|
2407
|
-
*/
|
|
2408
|
-
injectedSecrets?: string[];
|
|
2409
|
-
/** Host-confirmed identity of the container whose native rollout is retained. */
|
|
2410
|
-
captureProof?: {
|
|
2411
|
-
hostId: string;
|
|
2412
|
-
containerId: string;
|
|
2413
|
-
imageId: string;
|
|
2414
|
-
bundleRevision: string;
|
|
2415
|
-
bundleChecksum: string;
|
|
2416
|
-
};
|
|
2417
|
-
}
|
|
2418
2358
|
/**
|
|
2419
2359
|
* Full sandbox information returned from the API.
|
|
2420
2360
|
*/
|
|
@@ -7566,5 +7506,57 @@ interface CodeExecutionOptions {
|
|
|
7566
7506
|
*/
|
|
7567
7507
|
idempotencyKey?: string;
|
|
7568
7508
|
}
|
|
7509
|
+
interface ManagedProcessSpec {
|
|
7510
|
+
id: string;
|
|
7511
|
+
executable: string;
|
|
7512
|
+
args: string[];
|
|
7513
|
+
cwd: string;
|
|
7514
|
+
/** Names in the sandbox's public environment; secret values are never recorded here. */
|
|
7515
|
+
envKeys: string[];
|
|
7516
|
+
/** Absolute deadline for all attempts together. Reconnecting never extends it. */
|
|
7517
|
+
deadlineAt: number;
|
|
7518
|
+
restart: {
|
|
7519
|
+
maxAttempts: number;
|
|
7520
|
+
initialBackoffMs: number;
|
|
7521
|
+
maxBackoffMs: number;
|
|
7522
|
+
exitCodes: number[]; /** The command must reconcile its own external effects before doing more work. */
|
|
7523
|
+
afterInterruption: boolean;
|
|
7524
|
+
};
|
|
7525
|
+
}
|
|
7526
|
+
type ManagedProcessState = "queued" | "running" | "retrying" | "stopping" | "succeeded" | "failed" | "cancelled" | "expired";
|
|
7527
|
+
interface ManagedProcessRecord {
|
|
7528
|
+
schema: 1;
|
|
7529
|
+
environmentId: string;
|
|
7530
|
+
workspaceRoot: string;
|
|
7531
|
+
spec: ManagedProcessSpec;
|
|
7532
|
+
digest: string;
|
|
7533
|
+
state: ManagedProcessState;
|
|
7534
|
+
attempt: number;
|
|
7535
|
+
acceptedAt: number;
|
|
7536
|
+
updatedAt: number;
|
|
7537
|
+
nextAttemptAt?: number;
|
|
7538
|
+
pid?: number;
|
|
7539
|
+
lastExitCode?: number;
|
|
7540
|
+
interrupted?: boolean;
|
|
7541
|
+
stopReason?: "cancelled" | "expired" | "failed";
|
|
7542
|
+
failureCode?: "interrupted" | "attempts_exhausted" | "process_exit" | "launch_failed";
|
|
7543
|
+
}
|
|
7544
|
+
interface ManagedProcessOptions {
|
|
7545
|
+
sessionId?: string;
|
|
7546
|
+
}
|
|
7547
|
+
interface ManagedProcessResumeOptions extends ManagedProcessOptions {
|
|
7548
|
+
expectedAttempt: number;
|
|
7549
|
+
expectedDigest: string;
|
|
7550
|
+
}
|
|
7551
|
+
interface ManagedProcessJobs {
|
|
7552
|
+
/** Returns after durable admission. No caller process or open stream owns execution. */
|
|
7553
|
+
submit(spec: ManagedProcessSpec, options?: ManagedProcessOptions): Promise<ManagedProcessRecord>;
|
|
7554
|
+
get(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
7555
|
+
/** Resume an observed failed attempt with the same command, deadline, and attempt budget.
|
|
7556
|
+
* A stale/duplicate request conflicts. Reconcile an uncertain response with get(). */
|
|
7557
|
+
resume(id: string, options: ManagedProcessResumeOptions): Promise<ManagedProcessRecord | null>;
|
|
7558
|
+
/** `stopping` means cancellation is recorded but physical termination is not yet confirmed. */
|
|
7559
|
+
cancel(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
7560
|
+
}
|
|
7569
7561
|
//#endregion
|
|
7570
|
-
export { DownloadOptions as $,
|
|
7562
|
+
export { DownloadOptions as $, BatchBackendStats as $a, SessionInterruptOptions as $i, PromptOptions as $n, SandboxFleetPlacement as $r, GPU_LEASE_PROVIDER_NAMES as $t, CommitTaskSessionOptions as A, UpdateUserOptions as Aa, SandboxTerminalInfo as Ai, ManagedProcessRecord as An, SandboxDeleteOutcome as Ar, FileUsageOptions as At, CreateSandboxOptions as B, SandboxCreateOutcome as Ba, SearchOptions as Bi, PermissionsManager as Bn, SandboxFleetDispatchResponse as Br, FleetDispatchStreamOptions as Bt, BranchOptions as C, TeeAttestationReport as Ca, SandboxRuntimeHealth as Ci, ListMessagesOptions as Cn, RolloutTurnPart as Cr, FileReadError as Ct, CodeExecutionResult as D, TokenRefreshHandler as Da, SandboxStatus as Di, MAX_EGRESS_DENIALS_LIMIT as Dn, SandboxConnection as Dr, FileTreeFile as Dt, CodeExecutionOptions as E, TeePublicKeyResponse as Ea, SandboxShapesInfo as Ei, ListSandboxOptions as En, SandboxConfig as Er, FileSystem as Et, CreateIntelligenceReportOptions as F, WaitForRolloutOptions as Fa, SandboxTraceEvent as Fi, MkdirOptions as Fn, SandboxFleetAgentSpec as Fr, FleetAgentResult as Ft, DeleteMatchingSandboxesFilter as G, RawEvidenceDirectoryExport as Ga, SentSessionMessage as Gi, ProcessInfo as Gn, SandboxFleetMachine as Gr, FleetMachineId as Gt, CreateTaskSessionOptions as H, SandboxEnvRecovery as Ha, SecretsManager as Hi, PreviewLinkManager as Hn, SandboxFleetDriverTimings as Hr, FleetDriveTurnRequest as Ht, CreateRequestOptions as I, WorkspaceOperationLookup as Ia, SandboxTraceExport as Ii, NetworkConfig as In, SandboxFleetArtifact as Ir, FleetAgentRunStatus as It, DeleteOptions as J, RawEvidencePayloadFile as Ja, SessionExecutionInfo as Ji, ProcessManager as Jn, SandboxFleetMachineSpec as Jr, FleetRunEvent as Jt, DeleteMatchingSandboxesOptions as K, RawEvidenceExportOptions as Ka, SessionBackendCredentials as Ki, ProcessListOptions as Kn, SandboxFleetMachineMeteredUsage as Kr, FleetPromptDispatchOptions as Kt, CreateSandboxFleetOptions as L, WriteFileOptions as La, SandboxTraceOptions as Li, NetworkManager as Ln, SandboxFleetArtifactSpec as Lr, FleetDispatchCancelResult as Lt, ConversationTurnOptions as M, UploadProgress as Ma, SandboxTerminalRequestOptions as Mi, ManagedProcessSpec as Mn, SandboxEnvironment as Mr, FileWriteResult as Mt, ConversationTurnResult as N, UsageInfo as Na, SandboxTerminals as Ni, ManagedProcessState as Nn, SandboxEvent as Nr, FleetAgentId as Nt, CodeLanguage as O, TokenUsage as Oa, SandboxTerminalAttachOptions as Oi, ManagedProcessJobs as On, SandboxDeleteAcknowledgement as Or, FileTreeOptions as Ot, CreateGpuLeaseOptions as P, WaitForOptions as Pa, SandboxTraceBundle as Pi, McpServerConfig as Pn, SandboxFleetAgent as Pr, FleetAgentPlacement as Pt, DispatchedSession as Q, PublicBatchRunRequest as Qa, SessionInfo as Qi, PromptInputPart as Qn, SandboxFleetParent as Qr, ForkLookupOptions as Qt, CreateSandboxFleetTokenOptions as R, WriteManyFile as Ra, SandboxUser as Ri, NonHostAgentDriverConfig as Rn, SandboxFleetCostEstimate as Rr, FleetDispatchResultBuffer as Rt, BatchTaskResult as S, TeeAttestationOptions as Sa, SandboxRuntimeCapabilities as Si, JsonValue as Sn, RolloutStatus as Sr, FileReadBatchResult as St, ChunkedUploadResult as T, TeePublicKey as Ta, SandboxShapePreset as Ti, ListSandboxFleetOptions as Tn, SSHCredentials as Tr, FileRenameResult as Tt, DeleteMatchingSandboxOutcome as U, SandboxEnvRecoveryView as Ua, SendSessionMessageOptions as Ui, PreviewLinkWaitOptions as Un, SandboxFleetInfo as Ur, FleetExecDispatchOptions as Ut, CreateSessionOptions as V, SandboxCreateReceipt as Va, SecretInfo as Vi, PreviewLinkInfo as Vn, SandboxFleetDriverCapability as Vr, FleetDriveTurnOutcome as Vt, DeleteMatchingSandboxResult as W, RawEvidenceArchiveManifest as Wa, SendSessionMessageRequest as Wi, Process as Wn, SandboxFleetIntelligenceEnvelope as Wr, FleetExecDispatchResult as Wt, DirectoryPermission as X, WorkspaceImagePublishResult as Xa, SessionFailureReason as Xi, ProcessSpawnOptions as Xn, SandboxFleetManifestMachine as Xr, ForkCounts as Xt, DevServerInfo as Y, RawEvidenceRecordsFile as Ya, SessionExecutionStatus as Yi, ProcessSignal as Yn, SandboxFleetManifest as Yr, FleetRunOptions as Yt, DispatchPromptOptions as Z, InteractionResolutionAcknowledgement as Za, SessionForkOptions as Zi, ProcessStatus as Zn, SandboxFleetOperationsSummary as Zr, ForkIdempotency as Zt, BatchBackend as _, TaskSessionChanges as _a, SandboxPortPreviewLink as _i, IntelligenceReport as _n, Rollout as _r, ExactProcessSpawnOptions as _t, AgentQuestionRequest as a, SessionStatus as aa, SandboxFleetTraceEvent as ai, GitStatus as an, BackendType as ao, PublicProfileConflict as ar, DriverType as at, BatchRunRequest as b, TaskSessionInfo as ba, SandboxResources as bi, IntelligenceReportSubjectType as bn, RolloutScorer as br, FileInfo as bt, AttachGpuLeaseOptions as c, SnapshotIdempotency as ca, SandboxFleetUsage as ci, GpuLeaseCommandResult as cn, PublishPublicTemplateOptions as cr, DurablePlanSnapshot as ct, BackendConfig as d, SnapshotResult as da, SandboxFleetWorkspaceRestoreResult as di, GpuLeaseManager as dn, ReapExpiredSandboxFleetsResult as dr, EffectiveBackendSource as dt, SessionListOptions as ea, SandboxFleetPolicy as ei, GitAuth as en, BatchEvent as eo, PromptResult as er, DownloadProgress as et, BackendInfo as f, SshKeysManager as fa, SandboxFleetWorkspaceSnapshotResult as fi, GpuLeaseProviderName as fn, ReconcileSandboxFleetsOptions as fr, EgressDenial as ft, BackendStatus as g, SubscriptionInfo as ga, SandboxPortBinding as gi, InstalledTool as gn, ResumeOptions as gr, EventStreamOptions as gt, BackendRuntimeConfigUpdate as h, StorageConfig as ha, SandboxIntelligenceEnvelope as hi, HostAgentRuntimeBackend as hn, RestoreSnapshotOptions as hr, EnsureDevServerOptions as ht, AgentApprovalRequirement as i, SessionResultOptions as ia, SandboxFleetTraceBundle as ii, GitDiff as in, ALL_BACKEND_TYPES as io, ProvisionStep as ir, DriverInfo as it, CompletedTurnResult as j, UploadOptions as ja, SandboxTerminalManager as ji, ManagedProcessResumeOptions as jn, SandboxEgressUsage as jr, FileUsageResult as jt, CodeResultPart as k, TurnDriveResult as ka, SandboxTerminalCreateOptions as ki, ManagedProcessOptions as kn, SandboxDeleteOptions as kr, FileTreeResult as kt, AttachSandboxFleetMachineOptions as l, SnapshotInfo as la, SandboxFleetWorkspace as li, GpuLeaseExecOptions as ln, PublishPublicTemplateVersionOptions as lr, EffectiveBackend as lt, BackendMcpServerStatus as m, StartupOperation as ma, SandboxInfo as mi, HostAgentDriverConfig as mn, RenameOptions as mr, EgressPolicy as mt, AccessPolicyRule as n, SessionMessageAdmission as na, SandboxFleetSpend as ni, GitCommit as nn, BatchSidecarGroup as no, ProvisionResult as nr, DriveTurnOptions as nt, AgentRunStatus as o, SnapshotDeleteAcknowledgement as oa, SandboxFleetTraceExport as oi, GpuLease as on, parseBackendType as oo, PublicTemplateInfo as or, DurablePlan as ot, BackendManager as p, StartupDiagnostics as pa, SandboxIdentity as pi, GpuLeaseStatus as pn, ReconcileSandboxFleetsResult as pr, EgressManager as pt, DeleteMatchingSandboxesResult as q, RawEvidenceNativeFile as qa, SessionEventStreamOptions as qi, ProcessLogEntry as qn, SandboxFleetMachineRecord as qr, FleetPromptDispatchResult as qt, AddUserOptions as r, SessionMessageInputPart as ra, SandboxFleetToken as ri, GitConfig as rn, BatchTaskUsage as ro, ProvisionStatus as rr, DriverConfig as rt, AgentToolInvocation as s, SnapshotDeleteOutcome as sa, SandboxFleetTraceOptions as si, GpuLeaseBilling as sn, PublicTemplateVersionInfo as sr, DurablePlanDecisionResult as st, AcceleratorKind as t, SessionMessage as ta, SandboxFleetProfileRef as ti, GitBranch as tn, BatchEventDataMap as to, ProvisionEvent as tr, DownloadResult as tt, BackendCapabilities as u, SnapshotOptions as ua, SandboxFleetWorkspaceReconcileResult as ui, GpuLeaseExecResult as un, ReapExpiredSandboxFleetsOptions as ur, EffectiveBackendProfile as ut, BatchResult as v, TaskSessionCommitResult as va, SandboxRemovalState as vi, IntelligenceReportBudget as vn, RolloutChildResult as vr, ExecOptions as vt, ChunkedUploadOptions as w, TeeAttestationResponse as wa, SandboxShape as wi, ListOptions as wn, SSHCommandDescriptor as wr, FileReadResult as wt, BatchTask as x, TaskSessionProfile as xa, SandboxRunGeneration as xi, IntelligenceReportWindow as xn, RolloutStartResult as xr, FileReadBatchOptions as xt, BatchRunOptions as y, TaskSessionFileChange as ya, SandboxResourceUsage as yi, IntelligenceReportCompareTo as yn, RolloutOptions as yr, ExecResult as yt, CreateSandboxFleetWithCoordinatorOptions as z, WriteManyOptions as za, SearchMatch as zi, PermissionLevel as zn, SandboxFleetDispatchFailureClass as zr, FleetDispatchResultBufferOptions as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.50-develop.20261013193451.2040e43",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -150,11 +150,11 @@
|
|
|
150
150
|
"ws": "^8.20.0",
|
|
151
151
|
"yjs": "13.6.30",
|
|
152
152
|
"@products/sandbox-test-utils": "0.0.0",
|
|
153
|
-
"@tangle-network/agent-profile-materialize": "0.25.2",
|
|
154
153
|
"@repo/shared": "0.0.0",
|
|
155
|
-
"@tangle-network/
|
|
156
|
-
"@tangle-network/
|
|
157
|
-
"@tangle-network/
|
|
154
|
+
"@tangle-network/agent-profile-materialize": "0.25.3",
|
|
155
|
+
"@tangle-network/cli-agent-registry": "0.6.5",
|
|
156
|
+
"@tangle-network/sdk": "4.0.6",
|
|
157
|
+
"@tangle-network/runtime-contracts": "0.16.3",
|
|
158
158
|
"@tangle-network/sse-core": "0.0.0"
|
|
159
159
|
},
|
|
160
160
|
"scripts": {
|