@tangle-network/sandbox 0.63.24 → 0.64.1
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 +3 -3
- package/dist/agent/preview.d.ts +1 -1
- package/dist/{agent-run-outcome-C-VR-L0I.d.ts → agent-run-outcome-brwJbH5S.d.ts} +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/{backend-types-zuUBEJO1.js → backend-types-CLvdSX8V.js} +7 -1
- package/dist/{cli-auth-bundle-R0Y7rngn.js → cli-auth-bundle-BYvVrIso.js} +1 -1
- package/dist/{client-CqpKC6n3.d.ts → client-Dr8qasCR.d.ts} +14 -4
- package/dist/{client-CGcWP4FX.js → client-Dy5B2NkM.js} +22 -9
- package/dist/core.d.ts +5 -5
- package/dist/core.js +2 -2
- package/dist/{direct-http2-CoGVOqVR.js → direct-http2-Dar5erTH.js} +4 -2
- package/dist/{index-D4OBUP5M.d.ts → index-D5dVNm76.d.ts} +5 -72
- package/dist/index.d.ts +8 -8
- package/dist/index.js +6 -5
- package/dist/{interactive-controller-D4N4zqmu.js → interactive-controller-OAsASPd_.js} +1 -1
- package/dist/{interactive-controller-BBwB_5QQ.d.ts → interactive-controller-nMhGqXxq.d.ts} +1 -1
- package/dist/{keep-alive-fetch-CuwGi7gz.js → keep-alive-fetch-BBzJDWyt.js} +5 -2
- package/dist/{lines-5m11CEj-.d.ts → lines-C5CPSg8n.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-DVUBOY4y.js → local-cli-auth-XgKy2zsU.js} +1 -1
- package/dist/{preview-CcJBQSjB.d.ts → preview-COO7TSBk.d.ts} +3 -3
- package/dist/{public-templates-nv4AFFVc.d.ts → public-templates-BDrchm0J.d.ts} +1 -1
- package/dist/public-templates.d.ts +1 -1
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-BDgvO9Z3.js → sandbox-BPLzHOZ1.js} +67 -215
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-D-VfQGTu.js → tangle-C4Bp5krB.js} +1 -1
- package/dist/{types-BjyQe_CI.d.ts → types-CtH0GRql.d.ts} +71 -182
- package/package.json +3 -3
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-
|
|
2
|
-
import {
|
|
3
|
-
import { t as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-D5dVNm76.js";
|
|
2
|
+
import { Di as CodeResultPart, Ei as CodeExecutionResult, Sa as BackendConfig, Ti as CodeExecutionOptions, Ua as CodeLanguage, bn as SandboxFleetParent, vo as BackendType, xt as SessionListOptions, yt as SessionInfo } from "../types-CtH0GRql.js";
|
|
3
|
+
import { t as Sandbox } from "../client-Dr8qasCR.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-COO7TSBk.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-BjLG7VHY.js";
|
|
2
|
-
import { D as assertCurrentBackendType } from "../interactive-controller-
|
|
2
|
+
import { D as assertCurrentBackendType } from "../interactive-controller-OAsASPd_.js";
|
|
3
3
|
import { S as StateError, T as ValidationError, h as NotFoundError } from "../errors-BfbOP_rx.js";
|
|
4
|
-
import { t as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
4
|
+
import { t as Sandbox } from "../client-Dy5B2NkM.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-BPLzHOZ1.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-COO7TSBk.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 {
|
|
1
|
+
import { Ji as AgentApprovalRequirement, Xi as AgentRunStatus, Yi as AgentQuestionRequest, Zi as AgentToolInvocation, pa as SandboxEvent, ra as DurablePlanSnapshot } from "./types-CtH0GRql.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-BYvVrIso.js";
|
|
2
2
|
//#region src/auth/tokens.ts
|
|
3
3
|
const textEncoder = new TextEncoder();
|
|
4
4
|
const textDecoder = new TextDecoder();
|
|
@@ -30,6 +30,12 @@ const BACKEND_TYPE = {
|
|
|
30
30
|
/** Stable declaration order; registry tests check the shipped spec composition. */
|
|
31
31
|
const ALL_BACKEND_TYPES = Object.values(BACKEND_TYPE);
|
|
32
32
|
const backendTypeSchema = z.enum(ALL_BACKEND_TYPES);
|
|
33
|
+
/**
|
|
34
|
+
* `backend.metadata.isolationPrincipal`: the opaque, stable id of the member a
|
|
35
|
+
* secret-isolated session's turns run for, never a credential. Turns of one
|
|
36
|
+
* session, principal and profile authority share one OS identity.
|
|
37
|
+
*/
|
|
38
|
+
const isolationPrincipalSchema = z.string().regex(/^[A-Za-z0-9_.:@-]{1,256}$/);
|
|
33
39
|
const BACKEND_TYPE_SET = new Set(ALL_BACKEND_TYPES);
|
|
34
40
|
function isBackendType(value) {
|
|
35
41
|
return BACKEND_TYPE_SET.has(value);
|
|
@@ -73,4 +79,4 @@ function normalizeEffectiveBackend(value) {
|
|
|
73
79
|
};
|
|
74
80
|
}
|
|
75
81
|
//#endregion
|
|
76
|
-
export {
|
|
82
|
+
export { normalizeEffectiveBackend as a, isolationPrincipalSchema as i, BACKEND_TYPE as n, parseBackendType as o, backendTypeSchema as r, ALL_BACKEND_TYPES as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as BACKEND_TYPE } from "./backend-types-
|
|
1
|
+
import { n as BACKEND_TYPE } from "./backend-types-CLvdSX8V.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { agentProfileJsonSchema, agentProfileSchema as agentProfileSchema$1 } from "@tangle-network/agent-interface";
|
|
4
4
|
import "@tangle-network/agent-interface/harness-capabilities";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-
|
|
1
|
+
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-D5dVNm76.js";
|
|
2
2
|
import { F as SandboxError, c as MintInteractiveSessionTokenOptions, u as ScopedToken } from "./terminal-stream-types-ClZCArRg.js";
|
|
3
|
-
import { $t as
|
|
4
|
-
import { t as LinesClient } from "./lines-
|
|
5
|
-
import { a as PublicTemplatesClient } from "./public-templates-
|
|
3
|
+
import { $n as TeeAttestationReport, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Bt as FleetDispatchCancelResult, En as SandboxFleetTraceBundle, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Gt as FleetExecDispatchResult, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, Ii as SdkTimingHook, It as FleetAgentId, Jt as FleetPromptDispatchResult, Ki as BatchRunOptions, Kt as FleetMachineId, La as GpuLeaseProviderName, M as UsageInfo, Mi as ManagedProcessSpec, Mn as SandboxFleetWorkspaceReconcileResult, Mt as AttachSandboxFleetMachineOptions, Nn as SandboxFleetWorkspaceRestoreResult, Nt as CreateSandboxFleetOptions, Oi as ManagedProcessJobs, Pi as HttpClient, Pn as SandboxFleetWorkspaceSnapshotResult, Pt as CreateSandboxFleetTokenOptions, Qi as CreateIntelligenceReportOptions, Qt as ReapExpiredSandboxFleetsOptions, Rt as FleetAgentResult, Sa as BackendConfig, Sn as SandboxFleetPolicy, T as SshKeysManager, Tn as SandboxFleetToken, Ut as FleetDispatchStreamOptions, Vt as FleetDispatchResultBuffer, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Yt as FleetRunEvent, Z as TokenRefreshHandler, Zt as ListSandboxFleetOptions, _n as SandboxFleetManifest, a as DeleteMatchingSandboxesResult, aa as IntelligenceReport, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, ba as TurnBackendConfig, bn as SandboxFleetParent, cn as SandboxFleetDispatchResponse, co as BatchResult, da as PromptOptions, dn as SandboxFleetInfo, do as PublicBatchRunRequest, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, fa as PromptResult, gn as SandboxFleetMachineSpec, hn as SandboxFleetMachineRecord, i as DeleteMatchingSandboxesOptions, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, la as IntelligenceReportWindow, ln as SandboxFleetDriverCapability, lr as SandboxShapePreset, nn as SandboxFleetAgent, nt as ConversationTurnResult, oa as IntelligenceReportBudget, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, or as SandboxConfig, pa as SandboxEvent, pn as SandboxFleetMachine, po as BatchEvent, qi as BatchRunRequest, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, sa as IntelligenceReportCompareTo, sr as SandboxResources, ti as ExecResult, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, ua as PromptInputPart, ur as SandboxShapesInfo, w as SecretsManager, wn as SandboxFleetSpend, yn as SandboxFleetOperationsSummary, zn as SandboxInfo } from "./types-CtH0GRql.js";
|
|
4
|
+
import { t as LinesClient } from "./lines-C5CPSg8n.js";
|
|
5
|
+
import { a as PublicTemplatesClient } from "./public-templates-BDrchm0J.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
8
8
|
import { AgentInteractiveSessionRef, AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities as AgentProfileCapabilities$1, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult as AgentProfileValidationResult$1, AgentRunCancellationAcknowledgement as AgentRunCancellationAcknowledgement$1, AgentRunCancellationRequest as AgentRunCancellationRequest$1, AgentRuntimeAttachments, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset as SandboxSizePreset$1 } from "@tangle-network/agent-interface";
|
|
@@ -1743,6 +1743,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1743
1743
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
1744
1744
|
containerType: z.ZodOptional<z.ZodString>;
|
|
1745
1745
|
profileSecretIsolation: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1746
|
+
isolationPrincipal: z.ZodOptional<z.ZodString>;
|
|
1746
1747
|
traceAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1747
1748
|
}, z.core.$strict>>;
|
|
1748
1749
|
}, z.core.$strict>>;
|
|
@@ -2107,6 +2108,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2107
2108
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
2108
2109
|
containerType: z.ZodOptional<z.ZodString>;
|
|
2109
2110
|
profileSecretIsolation: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2111
|
+
isolationPrincipal: z.ZodOptional<z.ZodString>;
|
|
2110
2112
|
traceAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2111
2113
|
}, z.core.$strict>>;
|
|
2112
2114
|
}, z.core.$strict>>;
|
|
@@ -2481,6 +2483,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2481
2483
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
2482
2484
|
containerType: z.ZodOptional<z.ZodString>;
|
|
2483
2485
|
profileSecretIsolation: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2486
|
+
isolationPrincipal: z.ZodOptional<z.ZodString>;
|
|
2484
2487
|
traceAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2485
2488
|
}, z.core.$strict>>;
|
|
2486
2489
|
}, z.core.$strict>>;
|
|
@@ -2840,6 +2843,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2840
2843
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
2841
2844
|
containerType: z.ZodOptional<z.ZodString>;
|
|
2842
2845
|
profileSecretIsolation: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2846
|
+
isolationPrincipal: z.ZodOptional<z.ZodString>;
|
|
2843
2847
|
traceAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2844
2848
|
}, z.core.$strict>>;
|
|
2845
2849
|
}, z.core.$strict>>;
|
|
@@ -3204,6 +3208,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3204
3208
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
3205
3209
|
containerType: z.ZodOptional<z.ZodString>;
|
|
3206
3210
|
profileSecretIsolation: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3211
|
+
isolationPrincipal: z.ZodOptional<z.ZodString>;
|
|
3207
3212
|
traceAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3208
3213
|
}, z.core.$strict>>;
|
|
3209
3214
|
}, z.core.$strict>>;
|
|
@@ -3674,6 +3679,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3674
3679
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
3675
3680
|
containerType: z.ZodOptional<z.ZodString>;
|
|
3676
3681
|
profileSecretIsolation: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3682
|
+
isolationPrincipal: z.ZodOptional<z.ZodString>;
|
|
3677
3683
|
traceAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3678
3684
|
}, z.core.$strict>>;
|
|
3679
3685
|
}, z.core.$strict>>;
|
|
@@ -4038,6 +4044,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
4038
4044
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4039
4045
|
containerType: z.ZodOptional<z.ZodString>;
|
|
4040
4046
|
profileSecretIsolation: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4047
|
+
isolationPrincipal: z.ZodOptional<z.ZodString>;
|
|
4041
4048
|
traceAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4042
4049
|
}, z.core.$strict>>;
|
|
4043
4050
|
}, z.core.$strict>>;
|
|
@@ -4412,6 +4419,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
4412
4419
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4413
4420
|
containerType: z.ZodOptional<z.ZodString>;
|
|
4414
4421
|
profileSecretIsolation: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4422
|
+
isolationPrincipal: z.ZodOptional<z.ZodString>;
|
|
4415
4423
|
traceAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4416
4424
|
}, z.core.$strict>>;
|
|
4417
4425
|
}, z.core.$strict>>;
|
|
@@ -4771,6 +4779,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
4771
4779
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4772
4780
|
containerType: z.ZodOptional<z.ZodString>;
|
|
4773
4781
|
profileSecretIsolation: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4782
|
+
isolationPrincipal: z.ZodOptional<z.ZodString>;
|
|
4774
4783
|
traceAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4775
4784
|
}, z.core.$strict>>;
|
|
4776
4785
|
}, z.core.$strict>>;
|
|
@@ -5135,6 +5144,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
5135
5144
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
5136
5145
|
containerType: z.ZodOptional<z.ZodString>;
|
|
5137
5146
|
profileSecretIsolation: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5147
|
+
isolationPrincipal: z.ZodOptional<z.ZodString>;
|
|
5138
5148
|
traceAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5139
5149
|
}, z.core.$strict>>;
|
|
5140
5150
|
}, z.core.$strict>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as backendTypeSchema } from "./backend-types-
|
|
2
|
-
import { A as normalizeRuntimeBackendConfig, C as encodePromptForWire, D as assertCurrentBackendType, E as applyRequestedModel, N as withProfileHarness, O as foldModelRoutingFields, P as withoutCreateOnlyModelFields, b as parseSSEStream, o as requestInteractiveSessionToken } from "./interactive-controller-
|
|
1
|
+
import { r as backendTypeSchema } from "./backend-types-CLvdSX8V.js";
|
|
2
|
+
import { A as normalizeRuntimeBackendConfig, C as encodePromptForWire, D as assertCurrentBackendType, E as applyRequestedModel, N as withProfileHarness, O as foldModelRoutingFields, P as withoutCreateOnlyModelFields, b as parseSSEStream, o as requestInteractiveSessionToken } from "./interactive-controller-OAsASPd_.js";
|
|
3
3
|
import { T as ValidationError, a as AuthError, b as SandboxError, d as GpuProviderNotConfiguredError, g as PartialFailureError, h as NotFoundError, i as readResponseJson, m as NetworkError, n as parseErrorResponse, p as NON_RETRYABLE_CREATE_QUOTA_REASONS, r as parseResponseError, v as QuotaError, w as TimeoutError, x as ServerError } from "./errors-BfbOP_rx.js";
|
|
4
4
|
import { f as combineAbortSignals } from "./browser-interactive-control-controller-DHx53yre.js";
|
|
5
|
-
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-
|
|
6
|
-
import { A as normalizeSandboxCreateReceipt, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as rewrapResponse, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeSandboxShape, T as splitInlineProfileFileMounts, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, o as exportTraceBundle } from "./sandbox-
|
|
5
|
+
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-BBzJDWyt.js";
|
|
6
|
+
import { A as normalizeSandboxCreateReceipt, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as rewrapResponse, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeSandboxShape, T as splitInlineProfileFileMounts, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, o as exportTraceBundle } from "./sandbox-BPLzHOZ1.js";
|
|
7
7
|
import { t as LinesClient } from "./lines-C5ER4aN_.js";
|
|
8
8
|
import { PublicTemplatesClient } from "./public-templates.js";
|
|
9
9
|
import { z } from "zod";
|
|
@@ -1200,11 +1200,11 @@ function isLocalSandboxEndpoint(baseUrl) {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
1202
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
1203
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
1203
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-XgKy2zsU.js");
|
|
1204
1204
|
return discoverLocalCliAuthFiles(backendType);
|
|
1205
1205
|
}
|
|
1206
1206
|
async function loadLocalCliAuthExpectation(backendType) {
|
|
1207
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
1207
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-XgKy2zsU.js");
|
|
1208
1208
|
return describe(backendType);
|
|
1209
1209
|
}
|
|
1210
1210
|
/**
|
|
@@ -1242,6 +1242,11 @@ async function hydrateLocalCliBackendAuth(backend, baseUrl, trustLocalCliAuth) {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
};
|
|
1244
1244
|
}
|
|
1245
|
+
//#endregion
|
|
1246
|
+
//#region src/client-transport.ts
|
|
1247
|
+
const DEFAULT_TIMEOUT_MS$1 = 3e4;
|
|
1248
|
+
const DEFAULT_PLATFORM_URL = "https://id.tangle.tools";
|
|
1249
|
+
const PRODUCTION_BASE_URL = "https://sandbox.tangle.tools";
|
|
1245
1250
|
function withRequestContextHeaders(response, path, method, body = response.body) {
|
|
1246
1251
|
const headers = new Headers(response.headers);
|
|
1247
1252
|
headers.set("x-tangle-request-path", path);
|
|
@@ -1266,10 +1271,10 @@ var SandboxTransport = class {
|
|
|
1266
1271
|
if (!config.apiKey) throw new AuthError("API key is required");
|
|
1267
1272
|
if (!config.baseUrl) throw new ValidationError("Base URL is required");
|
|
1268
1273
|
this.baseUrl = config.baseUrl.replace(/\/$/, "");
|
|
1269
|
-
const platformUrl = config.platformUrl ?? (this.baseUrl ===
|
|
1274
|
+
const platformUrl = config.platformUrl ?? (this.baseUrl === PRODUCTION_BASE_URL ? DEFAULT_PLATFORM_URL : void 0);
|
|
1270
1275
|
this.platformUrl = platformUrl?.replace(/\/+$/, "");
|
|
1271
1276
|
this.#apiKey = config.apiKey;
|
|
1272
|
-
this.timeoutMs = config.timeoutMs ??
|
|
1277
|
+
this.timeoutMs = config.timeoutMs ?? DEFAULT_TIMEOUT_MS$1;
|
|
1273
1278
|
this.trustLocalCliAuth = config.trustLocalCliAuth === true;
|
|
1274
1279
|
this.onTiming = config.onTiming;
|
|
1275
1280
|
this.directExec = config.directExec !== false;
|
|
@@ -1984,6 +1989,7 @@ var SandboxCreation = class extends SandboxManagement {
|
|
|
1984
1989
|
let shortBudgetFailures = 0;
|
|
1985
1990
|
const exhaustsRetryBudget = (error) => {
|
|
1986
1991
|
if (!isRetryableCreateError(error)) return true;
|
|
1992
|
+
if (options?.retry?.capacity === false && error instanceof SandboxError && error.code === "CAPACITY_EXHAUSTED") return true;
|
|
1987
1993
|
if (isDeployWindowCreateError(error)) return false;
|
|
1988
1994
|
if (proxyTimedOutCreate && error instanceof SandboxError && error.code === "IDEMPOTENT_CREATE_IN_PROGRESS") return false;
|
|
1989
1995
|
shortBudgetFailures += 1;
|
|
@@ -3212,6 +3218,13 @@ var FleetClientTransport = class {
|
|
|
3212
3218
|
return await response.json();
|
|
3213
3219
|
}
|
|
3214
3220
|
};
|
|
3221
|
+
//#endregion
|
|
3222
|
+
//#region src/fleet-placement.ts
|
|
3223
|
+
/**
|
|
3224
|
+
* Resident memory of a sandbox with no agent running, measured on production
|
|
3225
|
+
* 2026-09-24 (agent-sdk shared-placement branch).
|
|
3226
|
+
*/
|
|
3227
|
+
const IDLE_SANDBOX_MEMORY_MB = 180;
|
|
3215
3228
|
/**
|
|
3216
3229
|
* Resident memory one agent's harness holds in a long session, per harness,
|
|
3217
3230
|
* measured on production. Placement sizes for the long-session peak.
|
|
@@ -3270,7 +3283,7 @@ function canonicalProfileKey(identity) {
|
|
|
3270
3283
|
function placeAgents(agents, placement, memoryMB) {
|
|
3271
3284
|
assertMemory(memoryMB);
|
|
3272
3285
|
const perSandbox = resolveAgentsPerSandbox(placement);
|
|
3273
|
-
const budgetMb = memoryMB -
|
|
3286
|
+
const budgetMb = memoryMB - IDLE_SANDBOX_MEMORY_MB;
|
|
3274
3287
|
const machines = [];
|
|
3275
3288
|
const nextMachineId = () => `m-${machines.length}`;
|
|
3276
3289
|
const open = [];
|
package/dist/core.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-
|
|
1
|
+
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-D5dVNm76.js";
|
|
2
2
|
import { A as NotFoundError, F as SandboxError, H as TimeoutError, I as SandboxErrorJson, L as SandboxFailureDetail, M as ProfileFileMountPathError, N as QuotaError, R as ServerError, S as CapabilityError, T as FileWriteConflictError, U as ValidationError, b as AuthError, j as PartialFailureError, k as NetworkError, z as StateError } from "./terminal-stream-types-ClZCArRg.js";
|
|
3
|
-
import {
|
|
4
|
-
import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-
|
|
5
|
-
import { Ct as InstancesClient, _t as EnsureInstanceOptions, an as BackendRegistryInteractionKind, bt as InstanceRecord, cn as backendRegistryEntrySchema, dn as isBackendRegistryInteractionKind, fn as parseBackendRegistryResponse, in as BackendRegistryEntry, it as ManagedProcessClient, ln as backendRegistryInteractionKindSchema, on as BackendRegistryResponse, pn as parseBackendRegistryResponseBody, rn as BackendRegistryCapabilities, sn as backendRegistryCapabilitiesSchema, t as Sandbox, un as backendRegistryResponseSchema, vt as HostedInstance, xt as InstanceRestartingError, yt as InstanceProfile } from "./client-
|
|
6
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
3
|
+
import { Ai as ManagedProcessRecord, Ct as SessionMessageAdmission, H as PreviewLinkInfo, Ha as WorkspaceImagePublishResult, Ja as SandboxEnvRecovery, Mi as ManagedProcessSpec, Ni as ManagedProcessState, Oi as ManagedProcessJobs, U as PreviewLinkManager, Va as WorkspaceImagePublishInput, W as PreviewLinkWaitOptions, Ya as SandboxEnvRecoveryView, _r as NetworkConfig, ar as CreateSandboxOptions, dr as SandboxStatus, ei as ExecOptions, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, nt as ConversationTurnResult, or as SandboxConfig, ti as ExecResult, tt as ConversationTurnOptions, ua as PromptInputPart, zn as SandboxInfo } from "./types-CtH0GRql.js";
|
|
4
|
+
import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-C5CPSg8n.js";
|
|
5
|
+
import { Ct as InstancesClient, _t as EnsureInstanceOptions, an as BackendRegistryInteractionKind, bt as InstanceRecord, cn as backendRegistryEntrySchema, dn as isBackendRegistryInteractionKind, fn as parseBackendRegistryResponse, in as BackendRegistryEntry, it as ManagedProcessClient, ln as backendRegistryInteractionKindSchema, on as BackendRegistryResponse, pn as parseBackendRegistryResponseBody, rn as BackendRegistryCapabilities, sn as backendRegistryCapabilitiesSchema, t as Sandbox, un as backendRegistryResponseSchema, vt as HostedInstance, xt as InstanceRestartingError, yt as InstanceProfile } from "./client-Dr8qasCR.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-BDrchm0J.js";
|
|
7
7
|
|
|
8
8
|
//#region src/core.d.ts
|
|
9
9
|
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as StateError, T as ValidationError, _ as ProfileFileMountPathError, a as AuthError, b as SandboxError, g as PartialFailureError, h as NotFoundError, m as NetworkError, s as CapabilityError, u as FileWriteConflictError, v as QuotaError, w as TimeoutError, x as ServerError } from "./errors-BfbOP_rx.js";
|
|
2
|
-
import { _ as parseBackendRegistryResponse, a as InstancesClient, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as InstanceRestartingError, m as backendRegistryInteractionKindSchema, p as backendRegistryEntrySchema, r as HostedInstance, t as Sandbox, v as parseBackendRegistryResponseBody } from "./client-
|
|
3
|
-
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
2
|
+
import { _ as parseBackendRegistryResponse, a as InstancesClient, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as InstanceRestartingError, m as backendRegistryInteractionKindSchema, p as backendRegistryEntrySchema, r as HostedInstance, t as Sandbox, v as parseBackendRegistryResponseBody } from "./client-Dy5B2NkM.js";
|
|
3
|
+
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-BPLzHOZ1.js";
|
|
4
4
|
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-C5ER4aN_.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
6
|
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-DY9ZTdgF.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as emitTiming } from "./keep-alive-fetch-
|
|
1
|
+
import { t as emitTiming } from "./keep-alive-fetch-BBzJDWyt.js";
|
|
2
2
|
//#region src/lib/direct-http2.ts
|
|
3
3
|
const sessions = /* @__PURE__ */ new Map();
|
|
4
4
|
const inFlight = /* @__PURE__ */ new WeakMap();
|
|
@@ -60,6 +60,7 @@ async function fetchDirectHttp2(url, init, timing) {
|
|
|
60
60
|
if (Array.isArray(value)) for (const item of value) responseHeaders.append(key, item);
|
|
61
61
|
else if (value !== void 0) responseHeaders.set(key, String(value));
|
|
62
62
|
}
|
|
63
|
+
const serverTiming = responseHeaders.get("server-timing");
|
|
63
64
|
emitTiming(timing.onTiming, {
|
|
64
65
|
name: "sdk.request",
|
|
65
66
|
durMs: performance.now() - started,
|
|
@@ -67,7 +68,8 @@ async function fetchDirectHttp2(url, init, timing) {
|
|
|
67
68
|
method: request.method,
|
|
68
69
|
path: timing.path,
|
|
69
70
|
status,
|
|
70
|
-
socket: reused ? "reused" : "new"
|
|
71
|
+
socket: reused ? "reused" : "new",
|
|
72
|
+
...serverTiming ? { serverTiming } : {}
|
|
71
73
|
});
|
|
72
74
|
const noBody = request.method === "HEAD" || [
|
|
73
75
|
204,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { F as SandboxError, G as SandboxCreateReceipt, g as TerminalReadyInfo, i as TerminalStreamHandlers, l as MintScopedTokenOptions, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-ClZCArRg.js";
|
|
2
|
-
import { $i as
|
|
2
|
+
import { $i as DurablePlan, $r as SearchOptions, Bi as ForkLookupOptions, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ei as CodeExecutionResult, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, Fi as JsonValue, G as GitBranch, Ha as WorkspaceImagePublishResult, Hi as RolloutOptions, In as SSHCommandDescriptor, J as GitStatus, Ja as SandboxEnvRecovery, K as GitCommit, Li as BranchOptions, Ln as SSHCredentials, Lr as FileSystem, N as WaitForOptions, Pi as HttpClient, Q as CommitTaskSessionOptions, Qn as TeeAttestationOptions, Qr as SearchMatch, Ri as ForkCounts, Rn as SandboxConnection, S as StopOptions, Sa as BackendConfig, St as SessionMessage, Ti as CodeExecutionOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ua as CodeLanguage, Ui as RolloutStartResult, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Va as WorkspaceImagePublishInput, Vi as Rollout, Wi as WaitForRolloutOptions, Wn as SandboxTerminalAttachOptions, Xn as StartupDiagnostics, Xr as WriteManyFile, Ya as SandboxEnvRecoveryView, Yn as SandboxTerminals, Yr as WriteFileOptions, Zr as WriteManyOptions, _ as SnapshotInfo, aa as IntelligenceReport, ar as CreateSandboxOptions, at as DispatchPromptOptions, ba as TurnBackendConfig, bt as SessionInterruptOptions, c as SandboxDeleteOptions, cr as SandboxShape, ct as ListMessagesOptions, d as SandboxOperationKind, da as PromptOptions, dr as SandboxStatus, dt as SendSessionMessageRequest, ea as DurablePlanDecisionOptions, ei as ExecOptions, eo as RawEvidenceBoxDirectoryExport, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fa as PromptResult, fi as DriverInfo, ft as SentSessionMessage, gr as EgressManager, ha as SandboxTraceBundle, ht as SessionExecutionInfo, ia as EventStreamOptions, it as CreateTaskSessionOptions, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, la as IntelligenceReportWindow, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, mi as GpuLease, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, no as RawEvidenceDirectoryExport, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, oa as IntelligenceReportBudget, ot as DispatchedSession, pa as SandboxEvent, pr as SandboxResourceUsage, q as GitDiff, ro as RawEvidenceExportOptions, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, sa as IntelligenceReportCompareTo, so as InteractionResolutionAcknowledgement, st as DriveTurnOptions, ta as DurablePlanDecisionResult, ti as ExecResult, to as RawEvidenceBoxExportOptions, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptInputPart, ut as SendSessionMessageOptions, v as SnapshotOptions, va as SandboxTraceOptions, vr as NetworkManager, vt as SessionForkOptions, wa as BackendManager, x as SnapshotResult, xt as SessionListOptions, y as SnapshotProvenance, yi as GpuLeaseManager, yt as SessionInfo, z as ProcessManager, zi as ForkIdempotency, zn as SandboxInfo } from "./types-CtH0GRql.js";
|
|
3
3
|
import { t as CliAuthReference } from "./cli-auth-bundle-Dyw3hCGx.js";
|
|
4
|
-
import { n as SandboxLines } from "./lines-
|
|
4
|
+
import { n as SandboxLines } from "./lines-C5CPSg8n.js";
|
|
5
5
|
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-CvObO_Kf.js";
|
|
6
|
-
import { r as InteractiveAttachRequest } from "./interactive-controller-
|
|
6
|
+
import { r as InteractiveAttachRequest } from "./interactive-controller-nMhGqXxq.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import * as Agent from "@tangle-network/agent-interface";
|
|
9
9
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimRequest, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStopAcknowledgement, AgentInteractiveSessionStopCommand, AgentInteractiveTerminalSession, AgentInteractiveTerminalSession as AgentInteractiveTerminalSession$1, AgentProfile, AgentProfileFileMount, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand, TerminalOutputEvent, TerminalReplayWindow, agentInteractiveSessionPromptRequestDigest } from "@tangle-network/agent-interface";
|
|
@@ -737,41 +737,8 @@ declare abstract class SandboxGitCapabilities extends SandboxInfoCapabilities {
|
|
|
737
737
|
private gitCheckout;
|
|
738
738
|
}
|
|
739
739
|
//#endregion
|
|
740
|
-
//#region src/sandbox-workspace-permissions.d.ts
|
|
741
|
-
declare abstract class SandboxPermissionsCapabilities extends SandboxGitCapabilities {
|
|
742
|
-
/**
|
|
743
|
-
* Permissions manager for multi-user access control.
|
|
744
|
-
*
|
|
745
|
-
* @example List users
|
|
746
|
-
* ```typescript
|
|
747
|
-
* const users = await box.permissions.list();
|
|
748
|
-
* for (const user of users) {
|
|
749
|
-
* console.log(`${user.username}: ${user.role}`);
|
|
750
|
-
* }
|
|
751
|
-
* ```
|
|
752
|
-
*
|
|
753
|
-
* @example Add a developer
|
|
754
|
-
* ```typescript
|
|
755
|
-
* await box.permissions.add({
|
|
756
|
-
* userId: "user_abc",
|
|
757
|
-
* role: "developer",
|
|
758
|
-
* sshKeys: ["ssh-ed25519 AAAA..."],
|
|
759
|
-
* });
|
|
760
|
-
* ```
|
|
761
|
-
*/
|
|
762
|
-
get permissions(): PermissionsManager;
|
|
763
|
-
private permissionsList;
|
|
764
|
-
private permissionsGet;
|
|
765
|
-
private permissionsAdd;
|
|
766
|
-
private permissionsUpdate;
|
|
767
|
-
private permissionsRemove;
|
|
768
|
-
private permissionsSetAccessPolicies;
|
|
769
|
-
private permissionsGetAccessPolicies;
|
|
770
|
-
private permissionsCheckAccess;
|
|
771
|
-
}
|
|
772
|
-
//#endregion
|
|
773
740
|
//#region src/sandbox-workspace-backend.d.ts
|
|
774
|
-
declare abstract class SandboxBackendCapabilities extends
|
|
741
|
+
declare abstract class SandboxBackendCapabilities extends SandboxGitCapabilities {
|
|
775
742
|
/**
|
|
776
743
|
* Backend manager for runtime agent configuration.
|
|
777
744
|
*
|
|
@@ -926,42 +893,8 @@ declare abstract class SandboxPreviewCapabilities extends SandboxGpuCapabilities
|
|
|
926
893
|
private previewLinkRemove;
|
|
927
894
|
}
|
|
928
895
|
//#endregion
|
|
929
|
-
//#region src/sandbox-workspace-tools.d.ts
|
|
930
|
-
/**
|
|
931
|
-
* Tools capability for managing language runtimes via mise.
|
|
932
|
-
*/
|
|
933
|
-
interface ToolsCapability {
|
|
934
|
-
/** Install a tool version */
|
|
935
|
-
install(tool: string, version: string): Promise<void>;
|
|
936
|
-
/** Activate a tool version for the session */
|
|
937
|
-
use(tool: string, version: string): Promise<void>;
|
|
938
|
-
/** List installed tools */
|
|
939
|
-
list(): Promise<InstalledTool[]>;
|
|
940
|
-
/** Run a command with a specific tool */
|
|
941
|
-
run(tool: string, args: string[]): Promise<ExecResult>;
|
|
942
|
-
}
|
|
943
|
-
declare abstract class SandboxToolsCapabilities extends SandboxPreviewCapabilities {
|
|
944
|
-
/**
|
|
945
|
-
* Tools capability object for managing language runtimes.
|
|
946
|
-
*
|
|
947
|
-
* Uses mise (polyglot version manager) to install and manage tools.
|
|
948
|
-
*
|
|
949
|
-
* @example Install and use Node.js
|
|
950
|
-
* ```typescript
|
|
951
|
-
* await box.tools.install("node", "22");
|
|
952
|
-
* await box.tools.use("node", "22");
|
|
953
|
-
* const list = await box.tools.list();
|
|
954
|
-
* ```
|
|
955
|
-
*/
|
|
956
|
-
get tools(): ToolsCapability;
|
|
957
|
-
private toolsInstall;
|
|
958
|
-
private toolsUse;
|
|
959
|
-
private toolsList;
|
|
960
|
-
private toolsRun;
|
|
961
|
-
}
|
|
962
|
-
//#endregion
|
|
963
896
|
//#region src/sandbox-lifecycle-events.d.ts
|
|
964
|
-
declare abstract class SandboxLifecycleEventsCapabilities extends
|
|
897
|
+
declare abstract class SandboxLifecycleEventsCapabilities extends SandboxPreviewCapabilities {
|
|
965
898
|
/**
|
|
966
899
|
* Stream sandbox lifecycle and activity events.
|
|
967
900
|
*/
|