@tangle-network/sandbox 1.0.120 → 1.0.122
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/preview.js +1 -1
- package/dist/{agent-run-outcome-DwA5rn-P.d.ts → agent-run-outcome-BhT2OZoj.d.ts} +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{browser-interactive-control-controller-B3P192sF.d.ts → browser-interactive-control-controller-BWTn0voc.d.ts} +1 -1
- package/dist/{browser-interactive-control-controller-BvtNDWql.js → browser-interactive-control-controller-CI-G-lan.js} +15 -15
- package/dist/{cli-auth-bundle-BGZQl8pf.js → cli-auth-bundle-CuULmmzk.js} +1 -1
- package/dist/{client-CimQxH-A.d.ts → client-DBZiDNP6.d.ts} +5 -5
- package/dist/{client-O5_N175q.js → client-DFqifFgH.js} +5 -5
- package/dist/{core-yHfMbWMG.js → core-DodBo96T.js} +3 -3
- package/dist/core.d.ts +6 -6
- package/dist/core.js +3 -3
- package/dist/{harness-BnGz2Wng.js → harness-B63wL8RZ.js} +5 -5
- package/dist/{index-ChKSM_if.d.ts → index-Cc0IxE28.d.ts} +5 -5
- package/dist/index.d.ts +9 -9
- package/dist/index.js +15 -59
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-BQzNEYZu.js → interactive-controller-DGnSVeCk.js} +4 -4
- package/dist/{interactive-controller-DFpM_UPj.d.ts → interactive-controller-DMTo87Kq.d.ts} +3 -3
- package/dist/{lines-B5m_Cz9t.d.ts → lines-BYBT4Izj.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-BZMvbmFe.js → local-cli-auth-Cbg8DyY2.js} +1 -1
- package/dist/{preview-Cg38QkTD.d.ts → preview-CD7s4tvh.d.ts} +3 -3
- package/dist/{profile-schema--qCcNrz1.js → profile-schema-BD1nkqBw.js} +19 -22
- package/dist/{public-templates-B-t1QILX.d.ts → public-templates-BoQ-L5sG.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +2 -2
- package/dist/{sandbox-FrS60n3X.js → sandbox-CFSzBI2U.js} +138 -26
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-DqvFn9wa.js → tangle-JtKIPVjl.js} +1 -1
- package/dist/{terminal-stream-types-DS0FCaXq.d.ts → terminal-stream-types-BV3-VCQn.d.ts} +20 -18
- package/dist/{types-UtRlYsxh.d.ts → types-CuVUB_M1.d.ts} +6 -34
- package/package.json +7 -9
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { B as projectAgentTerminalRecord, H as ALL_BACKEND_TYPES, K as parseBackendType, L as createAgentRunOutcomeTracker, M as requestedPublicProfileDigest, R as deriveAgentResultOutcome, U as backendTypeSchema, V as TERMINAL_WS_ECHO_SUBPROTOCOL, W as isolationPrincipalSchema, i as terminalUpgradeHeadersSupported, j as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as deriveAgentRunOutcome } from "./interactive-controller-
|
|
2
|
-
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, k as agentInteractiveSessionPromptRequestDigest, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-
|
|
3
|
-
import { i as SANDBOX_SIZE_PRESET_NAMES, r as agentProfileSchema, t as agentProfileConfidentialSchema } from "./profile-schema
|
|
4
|
-
import { C as SandboxOperationFailedError, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, S as SandboxOperation, T as splitInlineProfileFileMounts, _ as collectAgentFinalMessageText, a as MAX_EGRESS_DENIALS_LIMIT, b as isToolBearingEvent, c as otelTraceIdForTangleTrace, d as SandboxSession, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as downloadFile, l as toOtelJson, m as createInteractiveTerminalCapture, o as buildTraceExportPayload, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as exportTraceBundle, t as SandboxInstance, u as SandboxTaskSession, v as collectAgentResponseText, w as materializeProfileFileMounts, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-
|
|
1
|
+
import { B as projectAgentTerminalRecord, H as ALL_BACKEND_TYPES, K as parseBackendType, L as createAgentRunOutcomeTracker, M as requestedPublicProfileDigest, R as deriveAgentResultOutcome, U as backendTypeSchema, V as TERMINAL_WS_ECHO_SUBPROTOCOL, W as isolationPrincipalSchema, i as terminalUpgradeHeadersSupported, j as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as deriveAgentRunOutcome } from "./interactive-controller-DGnSVeCk.js";
|
|
2
|
+
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, k as agentInteractiveSessionPromptRequestDigest, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-CI-G-lan.js";
|
|
3
|
+
import { i as SANDBOX_SIZE_PRESET_NAMES, r as agentProfileSchema, t as agentProfileConfidentialSchema } from "./profile-schema-BD1nkqBw.js";
|
|
4
|
+
import { C as SandboxOperationFailedError, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, S as SandboxOperation, T as splitInlineProfileFileMounts, _ as collectAgentFinalMessageText, a as MAX_EGRESS_DENIALS_LIMIT, b as isToolBearingEvent, c as otelTraceIdForTangleTrace, d as SandboxSession, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as downloadFile, l as toOtelJson, m as createInteractiveTerminalCapture, o as buildTraceExportPayload, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as exportTraceBundle, t as SandboxInstance, u as SandboxTaskSession, v as collectAgentResponseText, w as materializeProfileFileMounts, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-CFSzBI2U.js";
|
|
5
5
|
import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, b as ResumeEnvRequiredError, c as CompliancePlacementError, d as FileWriteConflictError, f as GpuProviderNotConfiguredError, g as NotFoundError, h as NetworkError, l as EdgeNotReadyError, n as parseErrorResponse, o as BranchFanoutExceedsHostError, p as KeyBudgetExhaustedError, s as CapabilityError, t as TerminalStreamError, u as EgressProxyRecoveryError, v as ProfileFileMountPathError, w as StreamInterruptedError, x as SandboxError, y as QuotaError } from "./errors-ystNl7Ae.js";
|
|
6
|
-
import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-
|
|
6
|
+
import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-DFqifFgH.js";
|
|
7
7
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-C1jO3_Pp.js";
|
|
8
8
|
import { t as parseSSEStream } from "./sse-parser-BUIKfYAd.js";
|
|
9
9
|
import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-DEg0cqSV.js";
|
|
10
10
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
11
|
-
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-
|
|
12
|
-
import { s as TangleSandboxClient } from "./tangle-
|
|
11
|
+
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-DodBo96T.js";
|
|
12
|
+
import { s as TangleSandboxClient } from "./tangle-JtKIPVjl.js";
|
|
13
13
|
import { z } from "zod";
|
|
14
14
|
//#region ../../../packages/runtime-contracts/dist/model-key-proxy.js
|
|
15
15
|
/**
|
|
@@ -46,21 +46,8 @@ const MODEL_PROXY_TOKENS = {
|
|
|
46
46
|
new Set(Object.values(MODEL_PROXY_TOKENS));
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region ../../../packages/runtime-contracts/dist/declared-secrets.js
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* A stored value with no host binding is delivered into the box as-is.
|
|
52
|
-
*
|
|
53
|
-
* The declaration travels in the box env under {@link DECLARED_SECRET_HOSTS_ENV_VAR}
|
|
54
|
-
* as a JSON array of {@link DeclaredSecret}. It carries host and header names,
|
|
55
|
-
* never a value, so every path that rebuilds a sandbox's proxy rules from the
|
|
56
|
-
* box env (create, warm claim, re-key, restart) sees it without new plumbing.
|
|
57
|
-
* The env name avoids the words the at-rest env redaction matches (KEY, TOKEN,
|
|
58
|
-
* SECRET, PASSWORD, CREDENTIAL, AUTH), which would redact the declaration.
|
|
59
|
-
*
|
|
60
|
-
* The caller can set that env name itself, so every consumer validates it
|
|
61
|
-
* again. Nothing here trusts the Sandbox API's earlier check.
|
|
62
|
-
* The Worker and Node runtime share this validator without host-side imports.
|
|
63
|
-
*/
|
|
49
|
+
/** Bound values stay at the proxy. Legacy declarations contain metadata only
|
|
50
|
+
* and are revalidated at every rebuild; unbound legacy names keep prior delivery. */
|
|
64
51
|
/** Box env var holding a JSON array of {@link DeclaredSecret}. */
|
|
65
52
|
const DECLARED_SECRET_HOSTS_ENV_VAR = "TANGLE_EGRESS_DECLARED_HOSTS";
|
|
66
53
|
/** The header a declaration swaps in when it names none. */
|
|
@@ -75,11 +62,7 @@ var DeclaredSecretError = class extends Error {
|
|
|
75
62
|
};
|
|
76
63
|
const SECRET_NAME_RE = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
77
64
|
const SECRET_NAME_MAX_LENGTH = 64;
|
|
78
|
-
/**
|
|
79
|
-
* Names the platform owns. A declaration cannot move them to another host:
|
|
80
|
-
* the managed model keys, the Hub key and the GitHub token each have fixed
|
|
81
|
-
* placeholders and fixed hosts, and the `TANGLE_` namespace is the platform's.
|
|
82
|
-
*/
|
|
65
|
+
/** Managed model, Hub, GitHub and TANGLE_ names cannot be rebound away from their platform-owned hosts. */
|
|
83
66
|
const RESERVED_NAMES = new Set([
|
|
84
67
|
...Object.keys(MODEL_PROXY_TOKENS),
|
|
85
68
|
"TANGLE_API_KEY",
|
|
@@ -90,12 +73,7 @@ const RESERVED_NAMES = new Set([
|
|
|
90
73
|
function isReservedDeclaredSecretName(name) {
|
|
91
74
|
return RESERVED_NAMES.has(name) || name.toUpperCase().startsWith("TANGLE_");
|
|
92
75
|
}
|
|
93
|
-
/**
|
|
94
|
-
* Zones whose hosts are the platform's own: the Hub, Router and Sandbox API
|
|
95
|
-
* answer there, and a sandbox's exposed ports are served under them. A
|
|
96
|
-
* declaration pointing at one could make the proxy present a customer value
|
|
97
|
-
* to a platform service that treats a valid value as a platform credential.
|
|
98
|
-
*/
|
|
76
|
+
/** Platform service and sandbox-port zones cannot receive customer declarations as platform credentials. */
|
|
99
77
|
const TANGLE_ZONES = ["tangle.tools", "tangle.network"];
|
|
100
78
|
/** Top-level names that only resolve inside a private network. */
|
|
101
79
|
const PRIVATE_TLDS = new Set([
|
|
@@ -114,11 +92,7 @@ function isTangleInternalHost(host) {
|
|
|
114
92
|
const lower = host.toLowerCase();
|
|
115
93
|
return TANGLE_ZONES.some((zone) => lower === zone || lower.endsWith(`.${zone}`));
|
|
116
94
|
}
|
|
117
|
-
/**
|
|
118
|
-
* Normalize an exact public DNS name. No scheme, port, path, wildcard or IP
|
|
119
|
-
* literal: the proxy matches the request's host exactly, and a bare name is
|
|
120
|
-
* what its TLS-terminating listener sees in the SNI and the Host header.
|
|
121
|
-
*/
|
|
95
|
+
/** Normalize an exact public DNS host for SNI/Host matching: no scheme, port, path, wildcard or IP literal. */
|
|
122
96
|
function normalizeDeclaredHost(input) {
|
|
123
97
|
if (typeof input !== "string" || input.length === 0) throw new DeclaredSecretError("a declared host is required");
|
|
124
98
|
const host = input.toLowerCase();
|
|
@@ -178,11 +152,7 @@ function validateDeclaredSecrets(inputs) {
|
|
|
178
152
|
return declared;
|
|
179
153
|
});
|
|
180
154
|
}
|
|
181
|
-
/**
|
|
182
|
-
* The declarations in a box env value. Absent or empty is none. A malformed
|
|
183
|
-
* value throws, so a caller never treats a broken declaration as "no
|
|
184
|
-
* declaration" and lets a real value through into the box.
|
|
185
|
-
*/
|
|
155
|
+
/** Absent/empty env means no declarations; malformed declarations throw rather than allow a real value into the box. */
|
|
186
156
|
function parseDeclaredSecretsEnv(raw) {
|
|
187
157
|
if (raw === void 0 || raw === "") return [];
|
|
188
158
|
let parsed;
|
|
@@ -202,25 +172,11 @@ function declaredSecretBaseToken(index) {
|
|
|
202
172
|
function isResolvedEgressSecretValue(value) {
|
|
203
173
|
return Boolean(value) && !isPendingEgressSecretValue(value);
|
|
204
174
|
}
|
|
205
|
-
/**
|
|
206
|
-
* The managed-key sentinel stored as a resolved secret marks a credential the
|
|
207
|
-
* box holds a placeholder for while the proxy has no value yet: a create that
|
|
208
|
-
* defers its key mint installs it after boot. A pending name builds no proxy
|
|
209
|
-
* rule (nothing to swap in), never becomes a secret value, and does not make
|
|
210
|
-
* the proxy unrecoverable; the install replaces the marker with the real key.
|
|
211
|
-
* The box-side value is the salted placeholder before and after the install,
|
|
212
|
-
* so nothing that fingerprints the box env sees a change.
|
|
213
|
-
*/
|
|
175
|
+
/** The managed sentinel denotes pending delivery, never a value or proxy rule. Installing its real key preserves the existing box placeholder. */
|
|
214
176
|
function isPendingEgressSecretValue(value) {
|
|
215
177
|
return value === MANAGED_MODEL_KEY_SENTINEL;
|
|
216
178
|
}
|
|
217
|
-
/**
|
|
218
|
-
* Refuse a box env that would hand a declared secret to the box as a real
|
|
219
|
-
* value. Call it on the env a container is created with, on every path that
|
|
220
|
-
* can run without the egress proxy holding the value: a declaration promises
|
|
221
|
-
* the box never reads the secret, and the proxy is the only thing that keeps
|
|
222
|
-
* it.
|
|
223
|
-
*/
|
|
179
|
+
/** Refuse real declared values on every path where the proxy cannot hold them; declarations promise the box only placeholders. */
|
|
224
180
|
function assertDeclaredSecretsHeld(env) {
|
|
225
181
|
const declared = parseDeclaredSecretsEnv(env[DECLARED_SECRET_HOSTS_ENV_VAR]);
|
|
226
182
|
for (const [index, { name }] of declared.entries()) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-
|
|
1
|
+
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-BWTn0voc.js";
|
|
2
2
|
export { BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, type InteractiveSessionIdentity, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-
|
|
1
|
+
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-CI-G-lan.js";
|
|
2
2
|
export { BrowserInteractiveSessionControlController, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMatchesRef, P as AgentExactRunControlRefSchema, R as AgentExecutionOutcomeSchema, U as InteractionRequestSchema, c as assertInteractiveSessionRef, h as AgentInteractiveSessionAttachSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint, v as AgentInteractiveSessionControlClaimSchema, x as AgentInteractiveSessionRefSchema, z as DurablePlanSchema } from "./browser-interactive-control-controller-
|
|
3
|
-
import { r as agentProfileSchema } from "./profile-schema
|
|
1
|
+
import { E as boundedJsonSchema, o as canonicalCandidateDigest, w as boundedIdentifierSchema } from "./harness-B63wL8RZ.js";
|
|
2
|
+
import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMatchesRef, P as AgentExactRunControlRefSchema, R as AgentExecutionOutcomeSchema, U as InteractionRequestSchema, c as assertInteractiveSessionRef, h as AgentInteractiveSessionAttachSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint, v as AgentInteractiveSessionControlClaimSchema, x as AgentInteractiveSessionRefSchema, z as DurablePlanSchema } from "./browser-interactive-control-controller-CI-G-lan.js";
|
|
3
|
+
import { r as agentProfileSchema } from "./profile-schema-BD1nkqBw.js";
|
|
4
4
|
import { E as ValidationError, S as ServerError, h as NetworkError, r as parseResponseError, s as CapabilityError, t as TerminalStreamError, x as SandboxError } from "./errors-ystNl7Ae.js";
|
|
5
5
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-JVaAyNMP.js";
|
|
6
6
|
import { t as parseSSEStream } from "./sse-parser-BUIKfYAd.js";
|
|
@@ -74,7 +74,7 @@ function normalizeEffectiveBackend(value) {
|
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
//#endregion
|
|
77
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
77
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/runtime-attachments.js
|
|
78
78
|
const AgentRuntimeAttachmentsSchema = boundedJsonSchema.pipe(z.strictObject({ mcp: agentProfileSchema.shape.mcp.unwrap().superRefine((servers, context) => {
|
|
79
79
|
for (const alias of Object.keys(servers)) {
|
|
80
80
|
const result = boundedIdentifierSchema.safeParse(alias);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as AgentInteractiveSessionRef, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-
|
|
2
|
-
import { Cn as TerminalStream } from "./types-
|
|
3
|
-
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, g as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-
|
|
1
|
+
import { k as AgentInteractiveSessionRef, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-BV3-VCQn.js";
|
|
2
|
+
import { Cn as TerminalStream } from "./types-CuVUB_M1.js";
|
|
3
|
+
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, g as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-BWTn0voc.js";
|
|
4
4
|
|
|
5
5
|
//#region src/interactive-controller.d.ts
|
|
6
6
|
/** The request fields supplied by an attach caller before control is claimed. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Tn as CreateSandboxOptions, ga as BackendConfig } from "./types-
|
|
1
|
+
import { Tn as CreateSandboxOptions, ga as BackendConfig } from "./types-CuVUB_M1.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 LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, I as LineSenderVerificationStart, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, V as LinesHttpClient, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-
|
|
1
|
+
import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, I as LineSenderVerificationStart, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, V as LinesHttpClient, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-BYBT4Izj.js";
|
|
2
2
|
export { Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplicationAttachOptions, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, LineImage, 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 };
|
|
@@ -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-CuULmmzk.js";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
import { basename, dirname, join } from "node:path";
|
|
4
4
|
import { homedir } from "node:os";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as SandboxInstance } from "./index-
|
|
2
|
-
import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-
|
|
3
|
-
import { t as Sandbox } from "./client-
|
|
1
|
+
import { O as SandboxInstance } from "./index-Cc0IxE28.js";
|
|
2
|
+
import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-CuVUB_M1.js";
|
|
3
|
+
import { t as Sandbox } from "./client-DBZiDNP6.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/preview-operations.d.ts
|
|
6
6
|
type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as agentCandidateSecretRefSchema, c as environmentNameSchema, d as isSafeExecutable, f as isSafeRelativePath, g as sha256DigestSchema, i as trainedModelIdForArtifact, k as isBoundedJsonMaterial, l as headerNameSchema, m as looksLikeCredential, n as REASONING_EFFORTS, o as canonicalCandidateDigest, p as isWellFormedUnicode, s as canonicalCandidateJson, t as harnessTypeSchema, v as CONTRACT_MAX_ARRAY_LENGTH, w as boundedIdentifierSchema, y as CONTRACT_MAX_JSON_NODES } from "./harness-B63wL8RZ.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
3
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/profile-knowledge.js
|
|
4
4
|
/** Immutable Hub generation identities, never aliases such as latest or a caller's scope. */
|
|
5
5
|
const agentProfileKnowledgeRefSchema = z.strictObject({
|
|
6
6
|
sourceId: z.string().regex(/^[A-Za-z0-9_-]{1,128}$/),
|
|
@@ -18,7 +18,7 @@ const agentProfileKnowledgeRefsSchema = z.array(agentProfileKnowledgeRefSchema).
|
|
|
18
18
|
});
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
21
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/agent-profile-canonical.js
|
|
22
22
|
/** Why a value cannot be AgentProfile JSON, with the path of the offending entry. */
|
|
23
23
|
var AgentProfileValueError = class extends Error {
|
|
24
24
|
path;
|
|
@@ -94,7 +94,7 @@ function renderPath(path) {
|
|
|
94
94
|
return path.length === 0 ? "root" : path.join(".");
|
|
95
95
|
}
|
|
96
96
|
//#endregion
|
|
97
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
97
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/own-property-record.js
|
|
98
98
|
/**
|
|
99
99
|
* Zod records currently assign parsed values onto an ordinary object. The
|
|
100
100
|
* special own key `__proto__` therefore invokes the legacy prototype setter
|
|
@@ -177,26 +177,24 @@ function decodeRecordKey(value) {
|
|
|
177
177
|
return decoded;
|
|
178
178
|
}
|
|
179
179
|
//#endregion
|
|
180
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
180
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/proxy-secrets.js
|
|
181
181
|
/**
|
|
182
|
-
* Declarations request authority
|
|
183
|
-
* and
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
* public sub/aud/exp compatibility claims, no upstream claims, account identity or authority.
|
|
188
|
-
* The sandbox is the isolation boundary; these schemas cannot authenticate guest processes.
|
|
182
|
+
* Declarations request authority. The issuer intersects scope/expiry with authenticated tenant,
|
|
183
|
+
* issuer policy and lineage, without personal/team fallback, pinning immutable secret ID/revision.
|
|
184
|
+
* Trusted lifecycle owners mint unpredictable per-epoch placeholders, never from secret/public
|
|
185
|
+
* refs. JWT claims are synthetic public sub/aud/exp, without upstream identity or authority.
|
|
186
|
+
* The sandbox is the isolation boundary; schemas cannot authenticate guest processes.
|
|
189
187
|
*/
|
|
190
188
|
const unique = (values) => new Set(values).size === values.length;
|
|
191
189
|
const hostSchema = z.string().max(253).regex(/^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$/, "host must be an exact lowercase FQDN without scheme, port, wildcard or trailing dot");
|
|
192
190
|
const methodSchema = z.string().max(32).regex(/^[A-Z]+$/);
|
|
193
191
|
/** Paths are exact or terminal slash-star subtrees. /v1/* includes /v1/ and /v1/a, never /v1
|
|
194
192
|
* or /v10. V1 rejects all percent encoding, dot segments, repeated slashes, query, fragments,
|
|
195
|
-
* backslashes, non-ASCII and controls, rather than normalizing ambiguous spellings.
|
|
193
|
+
* semicolons, backslashes, non-ASCII and controls, rather than normalizing ambiguous spellings.
|
|
196
194
|
*/
|
|
197
195
|
const pathSchema = z.string().max(2048).refine((path) => {
|
|
198
196
|
const exact = path.endsWith("/*") ? path.slice(0, -1) : path;
|
|
199
|
-
return /^\/[A-Za-z0-9._~!$&'()
|
|
197
|
+
return /^\/[A-Za-z0-9._~!$&'()+,=:@/-]*$/.test(exact) && !exact.includes("//") && !exact.split("/").some((part) => part === "." || part === "..");
|
|
200
198
|
}, "path must be canonical ASCII, exact or a terminal /* subtree");
|
|
201
199
|
const list = (schema) => z.array(schema).min(1).max(CONTRACT_MAX_ARRAY_LENGTH).refine(unique, "selectors must be unique");
|
|
202
200
|
const envNameSchema = z.string().max(256).regex(/^[A-Za-z_][A-Za-z0-9_]*$/);
|
|
@@ -220,7 +218,7 @@ const headerSchema = z.string().max(256).regex(/^[!#$%&'*+.^_\x60|~0-9A-Za-z-]+$
|
|
|
220
218
|
* Never scan other query fields. Basic is one strict base64 value decoding to exactly public
|
|
221
219
|
* username:placeholder; the username is printable ASCII without colon. Bearer is exactly
|
|
222
220
|
* "Bearer SP placeholder". Embedded placeholders never match. Authority, TLS SNI and validated
|
|
223
|
-
* destination must agree on the declared FQDN
|
|
221
|
+
* destination must agree on the declared FQDN and effective port over HTTPS.
|
|
224
222
|
*/
|
|
225
223
|
const ProxySecretPresentationSchema = z.discriminatedUnion("type", [
|
|
226
224
|
z.strictObject({ type: z.literal("bearer") }),
|
|
@@ -285,9 +283,8 @@ const receiptShape = {
|
|
|
285
283
|
})).max(CONTRACT_MAX_ARRAY_LENGTH),
|
|
286
284
|
proxyAcknowledged: z.literal(true)
|
|
287
285
|
};
|
|
288
|
-
/** proxy-installed is
|
|
289
|
-
*
|
|
290
|
-
* credential revocation. Receipts contain metadata only, never secret or placeholder bytes.
|
|
286
|
+
/** proxy-installed is phase-two input, not dispatch authority; installed acknowledges both phases.
|
|
287
|
+
* revoked confirms binding revocation, not upstream revocation. Receipts contain metadata only.
|
|
291
288
|
*/
|
|
292
289
|
const ProxySecretReceiptSchema = z.discriminatedUnion("status", [
|
|
293
290
|
z.strictObject({
|
|
@@ -338,7 +335,7 @@ z.strictObject({
|
|
|
338
335
|
])),
|
|
339
336
|
placeholderFormats: list(z.enum(["opaque", "jwt"])),
|
|
340
337
|
enforcement: z.literal("exact"),
|
|
341
|
-
transports: z.tuple([z.
|
|
338
|
+
transports: z.tuple([z.enum(["https:443", "https"])]),
|
|
342
339
|
lifecycle: z.literal(true),
|
|
343
340
|
placementReceiptRequired: z.literal(true)
|
|
344
341
|
});
|
|
@@ -347,7 +344,7 @@ z.strictObject({
|
|
|
347
344
|
requireInPlace: z.boolean().optional()
|
|
348
345
|
});
|
|
349
346
|
//#endregion
|
|
350
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
347
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/harness-capabilities.js
|
|
351
348
|
/** Canonical harness/model, effort and prompt controls. Model-specific capability comes from the serving catalog. */
|
|
352
349
|
/** low → high. `none` = thinking off; `ultracode` = max (claude-code mode). */
|
|
353
350
|
const reasoningLadder = REASONING_EFFORTS;
|
|
@@ -645,7 +642,7 @@ function harnessSystemPromptIntents(harness) {
|
|
|
645
642
|
return harnessSystemPromptControls[harness] ?? noSystemPromptControls;
|
|
646
643
|
}
|
|
647
644
|
//#endregion
|
|
648
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
645
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/sandbox-size.js
|
|
649
646
|
/**
|
|
650
647
|
* Portable sandbox size vocabulary.
|
|
651
648
|
*
|
|
@@ -668,7 +665,7 @@ const SANDBOX_SIZE_PRESET_NAMES = [
|
|
|
668
665
|
"large"
|
|
669
666
|
];
|
|
670
667
|
//#endregion
|
|
671
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
668
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/profile-schema.js
|
|
672
669
|
const profileOpaqueValueSchema = z.unknown().transform((value, context) => {
|
|
673
670
|
if (value === void 0 || isBoundedJsonMaterial(value, {
|
|
674
671
|
dataPropertiesOnly: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bt as SandboxError } from "./terminal-stream-types-
|
|
2
|
-
import { Cr as PublishPublicTemplateVersionOptions, Sr as PublishPublicTemplateOptions, Xr as HttpClient, br as PublicTemplateInfo, xr as PublicTemplateVersionInfo } from "./types-
|
|
1
|
+
import { bt as SandboxError } from "./terminal-stream-types-BV3-VCQn.js";
|
|
2
|
+
import { Cr as PublishPublicTemplateVersionOptions, Sr as PublishPublicTemplateOptions, Xr as HttpClient, br as PublicTemplateInfo, xr as PublicTemplateVersionInfo } from "./types-CuVUB_M1.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/public-templates.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
1
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-BoQ-L5sG.js";
|
|
2
2
|
export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Ct as ServerError, Dt as TimeoutError, Ot as ValidationError, St as SandboxFailureDetail, _t as ProfileFileMountPathError, bt as SandboxError, gt as PartialFailureError, ht as NotFoundError, it as AuthError, mt as NetworkError, ot as CapabilityError, u as ScopedToken, ut as FileWriteConflictError, vt as QuotaError, wt as StateError, xt as SandboxErrorJson } from "./terminal-stream-types-
|
|
2
|
-
import { $i as SessionExecutionStatus, Bi as CreateSessionOptions, Cn as TerminalStream, Di as SandboxEvent, Fi as CommitTaskSessionOptions, Gi as ListMessagesOptions, Gn as ChunkedUploadResult, Ji as SendSessionMessageRequest, Qi as SessionExecutionInfo, Qn as FileReadBatchResult, Vi as CreateTaskSessionOptions, Wn as ChunkedUploadOptions, Yi as SentSessionMessage, Zi as SessionEventStreamOptions, Zn as FileReadBatchOptions, aa as SessionMessage, ar as FileTreeResult, cr as FileWriteResult, dn as SandboxTerminalCreateOptions, dr as RenameOptions, fa as TaskSessionInfo, fn as SandboxTerminalInfo, ir as FileTreeOptions, la as TaskSessionChanges, ln as SandboxRuntimeHealth, mn as SandboxTerminalRequestOptions, mr as WriteFileOptions, na as SessionInfo, oa as SessionMessageAdmission, on as SandboxPortBinding, or as FileUsageOptions, pn as SandboxTerminalManager, pr as UploadProgress, qi as SendSessionMessageOptions, sr as FileUsageResult, tr as FileRenameResult, ua as TaskSessionCommitResult } from "./types-
|
|
3
|
-
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-
|
|
4
|
-
import { t as BrowserInteractiveSessionController } from "./interactive-controller-
|
|
5
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
1
|
+
import { Ct as ServerError, Dt as TimeoutError, Ot as ValidationError, St as SandboxFailureDetail, _t as ProfileFileMountPathError, bt as SandboxError, gt as PartialFailureError, ht as NotFoundError, it as AuthError, mt as NetworkError, ot as CapabilityError, u as ScopedToken, ut as FileWriteConflictError, vt as QuotaError, wt as StateError, xt as SandboxErrorJson } from "./terminal-stream-types-BV3-VCQn.js";
|
|
2
|
+
import { $i as SessionExecutionStatus, Bi as CreateSessionOptions, Cn as TerminalStream, Di as SandboxEvent, Fi as CommitTaskSessionOptions, Gi as ListMessagesOptions, Gn as ChunkedUploadResult, Ji as SendSessionMessageRequest, Qi as SessionExecutionInfo, Qn as FileReadBatchResult, Vi as CreateTaskSessionOptions, Wn as ChunkedUploadOptions, Yi as SentSessionMessage, Zi as SessionEventStreamOptions, Zn as FileReadBatchOptions, aa as SessionMessage, ar as FileTreeResult, cr as FileWriteResult, dn as SandboxTerminalCreateOptions, dr as RenameOptions, fa as TaskSessionInfo, fn as SandboxTerminalInfo, ir as FileTreeOptions, la as TaskSessionChanges, ln as SandboxRuntimeHealth, mn as SandboxTerminalRequestOptions, mr as WriteFileOptions, na as SessionInfo, oa as SessionMessageAdmission, on as SandboxPortBinding, or as FileUsageOptions, pn as SandboxTerminalManager, pr as UploadProgress, qi as SendSessionMessageOptions, sr as FileUsageResult, tr as FileRenameResult, ua as TaskSessionCommitResult } from "./types-CuVUB_M1.js";
|
|
3
|
+
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-BWTn0voc.js";
|
|
4
|
+
import { t as BrowserInteractiveSessionController } from "./interactive-controller-DMTo87Kq.js";
|
|
5
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-BhT2OZoj.js";
|
|
6
6
|
|
|
7
7
|
//#region src/lib/chunked-upload.d.ts
|
|
8
8
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
package/dist/runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as projectAgentTerminalRecord, L as createAgentRunOutcomeTracker, R as deriveAgentResultOutcome, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController, z as deriveAgentRunOutcome } from "./interactive-controller-
|
|
2
|
-
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-
|
|
1
|
+
import { B as projectAgentTerminalRecord, L as createAgentRunOutcomeTracker, R as deriveAgentResultOutcome, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController, z as deriveAgentRunOutcome } from "./interactive-controller-DGnSVeCk.js";
|
|
2
|
+
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-CI-G-lan.js";
|
|
3
3
|
import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-ystNl7Ae.js";
|
|
4
4
|
import { t as fetchSandboxApi } from "./api-request-B7cnX489.js";
|
|
5
5
|
import { s as uploadChunked } from "./chunked-upload-BHRGMfDz.js";
|