@tangle-network/sandbox 1.0.84 → 1.0.86
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-HyzLlfb7.d.ts → agent-run-outcome-5YkPTPuE.d.ts} +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{browser-interactive-control-controller-WLzM_Lyq.js → browser-interactive-control-controller-BvtNDWql.js} +15 -15
- package/dist/{browser-interactive-control-controller-BelQQ9nb.d.ts → browser-interactive-control-controller-CMdlolu0.d.ts} +1 -1
- package/dist/{chunked-upload-tul4qbe5.js → chunked-upload--QnrxdO9.js} +43 -17
- package/dist/{chunked-upload-file-D9NvCQis.js → chunked-upload-file-an8AfIJx.js} +1 -1
- package/dist/{cli-auth-bundle-DspL04sN.js → cli-auth-bundle-BoK5wpru.js} +1 -1
- package/dist/{client-Y8hjzpdv.d.ts → client-CCF-xlqb.d.ts} +5 -5
- package/dist/{client-B2eSBVFj.js → client-TJrVpqwk.js} +5 -5
- package/dist/{core-BBecAr2M.js → core-w0cPi0zg.js} +3 -3
- package/dist/core.d.ts +6 -6
- package/dist/core.js +3 -3
- package/dist/{harness-D2TXEUu-.js → harness-BnGz2Wng.js} +5 -5
- package/dist/{index-Bqu-Zp7j.d.ts → index-DFeZI9hC.d.ts} +5 -5
- package/dist/index.d.ts +9 -9
- package/dist/index.js +7 -7
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-BdGvy0jq.js → interactive-controller-CkiJBT6m.js} +31 -6
- package/dist/{interactive-controller-DjNtSQHC.d.ts → interactive-controller-DlxGadwo.d.ts} +3 -3
- package/dist/{lines-rqwQmFq-.d.ts → lines-Bs8wZ7O8.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-xqJlVceZ.js → local-cli-auth-bw8Puox2.js} +1 -1
- package/dist/{preview-Q4wJz1Yl.d.ts → preview-ufvsad5Q.d.ts} +3 -3
- package/dist/{profile-schema-D-XJLM1E.js → profile-schema-DFZTAn1S.js} +8 -8
- package/dist/{public-templates-CPwaavCU.d.ts → public-templates-BgYFqTwX.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-BdWInunU.js → sandbox-CnLNPeh0.js} +708 -286
- 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-DjCQ1Un6.js → tangle-Ctnjc764.js} +32 -32
- package/dist/{terminal-stream-types-MjiApwNS.d.ts → terminal-stream-types-CqLXtP8e.d.ts} +14 -14
- package/dist/{types-D9bXe-vp.d.ts → types-R43a0wyS.d.ts} +96 -64
- package/package.json +5 -5
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-
|
|
2
|
-
import { Co as BackendType, Ha as CodeExecutionResult, Ua as CodeLanguage, Wa as CodeResultPart, _a as BackendConfig, bn as SandboxFleetParent, wi as CodeExecutionOptions, xt as SessionListOptions, yt as SessionInfo } from "../types-
|
|
3
|
-
import { t as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-DFeZI9hC.js";
|
|
2
|
+
import { Co as BackendType, Ha as CodeExecutionResult, Ua as CodeLanguage, Wa as CodeResultPart, _a as BackendConfig, bn as SandboxFleetParent, wi as CodeExecutionOptions, xt as SessionListOptions, yt as SessionInfo } from "../types-R43a0wyS.js";
|
|
3
|
+
import { t as Sandbox } from "../client-CCF-xlqb.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-ufvsad5Q.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-CQJwjQkZ.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
2
|
+
import { O as assertCurrentBackendType } from "../interactive-controller-CkiJBT6m.js";
|
|
3
|
+
import { t as SandboxInstance } from "../sandbox-CnLNPeh0.js";
|
|
4
4
|
import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-BStusQVc.js";
|
|
5
|
-
import { t as Sandbox } from "../client-
|
|
5
|
+
import { t as Sandbox } from "../client-TJrVpqwk.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-ufvsad5Q.js";
|
|
2
2
|
export { AgentPreviewError, AgentPreviewOptions, PREVIEW_MCP_ALIAS, PREVIEW_TOOLS, PreviewAuthorizationRequest, PreviewAuthorizer, PreviewExecutionContext, PreviewTool, PublishAgentPreviewOptions, assertPreviewId, ensureAgentPreview, getAgentPreview, listAgentPreviews, previewOperationTool, previewToolsForProfile, publishAgentPreview, removeAgentPreview, resolveSelfSandbox, servePreviewMcp };
|
package/dist/agent/preview.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as agentProfileSchema } from "../profile-schema-
|
|
1
|
+
import { r as agentProfileSchema } from "../profile-schema-DFZTAn1S.js";
|
|
2
2
|
import { a as listAgentPreviews, c as resolveSelfSandbox, i as getAgentPreview, n as assertPreviewId, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "../preview-operations-C-wv9XN3.js";
|
|
3
3
|
//#region src/agent/preview-policy.ts
|
|
4
4
|
/** Channel-neutral preview tool selection from a host-authored profile. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as InteractionRequest } from "./terminal-stream-types-
|
|
2
|
-
import { Gi as AgentRunStatus, Ki as AgentToolInvocation, Qi as DurablePlanSnapshot, Ui as AgentApprovalRequirement, Wi as AgentQuestionRequest, ca as SandboxEvent } from "./types-
|
|
1
|
+
import { V as InteractionRequest } from "./terminal-stream-types-CqLXtP8e.js";
|
|
2
|
+
import { Gi as AgentRunStatus, Ki as AgentToolInvocation, Qi as DurablePlanSnapshot, Ui as AgentApprovalRequirement, Wi as AgentQuestionRequest, ca as SandboxEvent } from "./types-R43a0wyS.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
|
5
5
|
interface AgentRunOutcome {
|
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-BoK5wpru.js";
|
|
2
2
|
//#region src/auth/tokens.ts
|
|
3
3
|
const textEncoder = new TextEncoder();
|
|
4
4
|
const textDecoder = new TextDecoder();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as boundedIdentifierSchema, D as isBoundedEventContentJson, E as boundedStringSchema, S as boundedEventContentStringSchema, T as boundedJsonSchema, _ as CONTRACT_MAX_ARRAY_LENGTH, b as boundedEventContentJsonSchema, g as sha256DigestSchema, h as omitTopLevelDigest, m as looksLikeCredential, n as REASONING_EFFORTS, o as canonicalCandidateDigest, p as isWellFormedUnicode, s as canonicalCandidateJson, t as harnessTypeSchema, u as isCanonicalJsonValue, w as boundedJsonRecordSchema, x as boundedEventContentRecordSchema, y as CONTRACT_MAX_STRING_LENGTH } from "./harness-BnGz2Wng.js";
|
|
2
2
|
import { t as awaitWithAbort } from "./abort-signal-JVaAyNMP.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
4
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/native-session-event.js
|
|
5
5
|
/**
|
|
6
6
|
* Private adapter observation of a provider conversation or resume identity.
|
|
7
7
|
* The adapter must obtain this ID from its bound provider process or API.
|
|
@@ -16,7 +16,7 @@ const NativeSessionObservedEventSchema = z.object({
|
|
|
16
16
|
nativeSessionId: z.string().min(1).max(512).regex(/^\S+$/u)
|
|
17
17
|
}).strict();
|
|
18
18
|
//#endregion
|
|
19
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
19
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/environment-observation.js
|
|
20
20
|
const ObservationProvenanceSchema = z.strictObject({
|
|
21
21
|
origin: z.enum([
|
|
22
22
|
"measured",
|
|
@@ -208,7 +208,7 @@ z.strictObject({
|
|
|
208
208
|
accountUsage: AccountUsageSchema.optional()
|
|
209
209
|
});
|
|
210
210
|
//#endregion
|
|
211
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
211
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/interaction-fields.js
|
|
212
212
|
/**
|
|
213
213
|
* Field names whose own-key form collides with object internals. A record
|
|
214
214
|
* parser drops a raw `__proto__` key through the legacy prototype setter before
|
|
@@ -389,7 +389,7 @@ z.strictObject({
|
|
|
389
389
|
});
|
|
390
390
|
});
|
|
391
391
|
//#endregion
|
|
392
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
392
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/interaction-data.js
|
|
393
393
|
const InteractionSecretReferenceSchema = z.strictObject({
|
|
394
394
|
kind: z.literal("secret_handle"),
|
|
395
395
|
handleId: boundedIdentifierSchema,
|
|
@@ -434,7 +434,7 @@ const InteractionResolutionSchema = z.discriminatedUnion("outcome", [
|
|
|
434
434
|
})
|
|
435
435
|
]);
|
|
436
436
|
//#endregion
|
|
437
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
437
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/interaction-permissions.js
|
|
438
438
|
const InteractionKind = {
|
|
439
439
|
/** Agent asks the user to answer/choose. Answer = the chosen field values. */
|
|
440
440
|
Question: "question",
|
|
@@ -461,7 +461,7 @@ const PermissionGrantSchema = z.enum([
|
|
|
461
461
|
"deny"
|
|
462
462
|
]);
|
|
463
463
|
//#endregion
|
|
464
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
464
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/interaction-answer-validation.js
|
|
465
465
|
/**
|
|
466
466
|
* Validate an accepted answer against its spec. Used by the broker before a
|
|
467
467
|
* response reaches the adapter, so malformed answers are rejected centrally.
|
|
@@ -566,7 +566,7 @@ function validateInteractionAnswer(spec, data) {
|
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
568
|
//#endregion
|
|
569
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
569
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/interaction-resolution-validation.js
|
|
570
570
|
/**
|
|
571
571
|
* A declined or cancelled resolution submits no answer, so any secret-typed
|
|
572
572
|
* field it carries can only be leakage into a transport that retains it.
|
|
@@ -604,7 +604,7 @@ function validateResolutionForRequest(request, resolution) {
|
|
|
604
604
|
return errors;
|
|
605
605
|
}
|
|
606
606
|
//#endregion
|
|
607
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
607
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/interaction-envelope.js
|
|
608
608
|
const interactionOutcomeValues = [
|
|
609
609
|
"accepted",
|
|
610
610
|
"declined",
|
|
@@ -808,7 +808,7 @@ const InteractionAcknowledgementSchema = z.strictObject({
|
|
|
808
808
|
});
|
|
809
809
|
});
|
|
810
810
|
//#endregion
|
|
811
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
811
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/plan.js
|
|
812
812
|
/**
|
|
813
813
|
* Credential-free provider correlation committed with the plan. This union is
|
|
814
814
|
* deliberately closed: adding plan support for another harness requires an
|
|
@@ -873,7 +873,7 @@ const AgentExecutionOutcomeSchema = z.discriminatedUnion("type", [z.object({ typ
|
|
|
873
873
|
plan: DurablePlanSchema
|
|
874
874
|
}).strict()]);
|
|
875
875
|
//#endregion
|
|
876
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
876
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/runtime-control.js
|
|
877
877
|
const stableIdSchema = boundedIdentifierSchema;
|
|
878
878
|
const AgentExactRunControlRefSchema = z.strictObject({
|
|
879
879
|
runId: stableIdSchema,
|
|
@@ -1204,7 +1204,7 @@ z.strictObject({
|
|
|
1204
1204
|
event: CanonicalStreamEventSchema
|
|
1205
1205
|
});
|
|
1206
1206
|
//#endregion
|
|
1207
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1207
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-workspace-source-snapshot.js
|
|
1208
1208
|
const controlCharacterPattern = /[\u0000-\u001f\u007f]/;
|
|
1209
1209
|
/** Shared public identifier used by workspace lifecycle contracts. */
|
|
1210
1210
|
const agentWorkspacePublicIdentifierSchema = z.string().min(1).max(500).refine((value) => value.trim().length > 0 && isWellFormedUnicode(value) && !controlCharacterPattern.test(value) && !looksLikeCredential(value), "public workspace identity cannot carry credential-like material");
|
|
@@ -1215,7 +1215,7 @@ const agentWorkspaceSourceSnapshotPolicySchema = z.strictObject({
|
|
|
1215
1215
|
digest: sha256DigestSchema
|
|
1216
1216
|
});
|
|
1217
1217
|
//#endregion
|
|
1218
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1218
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-profile-materialization.js
|
|
1219
1219
|
/**
|
|
1220
1220
|
* The canonical AgentProfile leaves that can affect one execution.
|
|
1221
1221
|
*
|
|
@@ -1279,7 +1279,7 @@ const AGENT_PROFILE_MATERIALIZATION_AXES = [
|
|
|
1279
1279
|
value: (profile) => profile.model?.[property]
|
|
1280
1280
|
}))];
|
|
1281
1281
|
//#endregion
|
|
1282
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1282
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-execution-preparation-receipt.js
|
|
1283
1283
|
const nonBlankStringSchema = z.string().refine((value) => value.trim().length > 0, "value cannot be blank");
|
|
1284
1284
|
const publicMechanismIdentifierSchema = z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._:/-]{0,199}$/, "mechanism must be a public identifier, not launch arguments").refine((value) => !looksLikeCredential(value), "mechanism cannot carry credential-like material");
|
|
1285
1285
|
const publicLifecycleIdentifierSchema = z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._~:/+-]{0,499}$/, "lifecycle identity must be a public identifier").refine((value) => !looksLikeCredential(value), "lifecycle identity cannot carry credential-like material");
|
|
@@ -1456,7 +1456,7 @@ function sameAgentExactRun(left, right) {
|
|
|
1456
1456
|
return left.runId === right.runId && left.provider === right.provider && left.environmentId === right.environmentId && left.sessionId === right.sessionId && left.executionId === right.executionId && left.requestDigest === right.requestDigest;
|
|
1457
1457
|
}
|
|
1458
1458
|
//#endregion
|
|
1459
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1459
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/environment-interactive-control.js
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Durable identity of one coding-agent TUI.
|
|
1462
1462
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AgentInteractiveSessionStatus, C as AgentInteractiveSessionAttach, E as AgentInteractiveSessionControlClaimRequest, T as AgentInteractiveSessionControlClaimAcknowledgement, i as TerminalStreamHandlers, k as AgentInteractiveSessionRef, w as AgentInteractiveSessionControlClaim } from "./terminal-stream-types-
|
|
1
|
+
import { A as AgentInteractiveSessionStatus, C as AgentInteractiveSessionAttach, E as AgentInteractiveSessionControlClaimRequest, T as AgentInteractiveSessionControlClaimAcknowledgement, i as TerminalStreamHandlers, k as AgentInteractiveSessionRef, w as AgentInteractiveSessionControlClaim } from "./terminal-stream-types-CqLXtP8e.js";
|
|
2
2
|
|
|
3
3
|
//#region src/interactive-types.d.ts
|
|
4
4
|
/** Cancellation for an interactive SDK request. */
|
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
import { A as FILE_UPLOAD_SESSION_MAX_BYTES, O as isFileTooLargeErrorBody, S as ServerError, T as TimeoutError, h as NetworkError, k as isPayloadTooLargeErrorBody, n as parseErrorResponse, x as SandboxError, y as QuotaError } from "./errors-BStusQVc.js";
|
|
2
|
+
//#region src/generated/sandbox-upload-operations.ts
|
|
3
|
+
function uploadSessionInit(transport, input, init = {}) {
|
|
4
|
+
return transport.fetch(`/fs/upload-session`, {
|
|
5
|
+
...init,
|
|
6
|
+
method: "POST",
|
|
7
|
+
body: JSON.stringify(input)
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
function uploadSessionPart(transport, params, init = {}) {
|
|
11
|
+
return transport.fetch(`/fs/upload-session/${encodeURIComponent(params.id)}/parts/${encodeURIComponent(params.index)}`, {
|
|
12
|
+
...init,
|
|
13
|
+
method: "PUT"
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function uploadSessionCommit(transport, params, input, init = {}) {
|
|
17
|
+
return transport.fetch(`/fs/upload-session/${encodeURIComponent(params.id)}/commit`, {
|
|
18
|
+
...init,
|
|
19
|
+
method: "POST",
|
|
20
|
+
body: JSON.stringify(input)
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function uploadSessionDelete(transport, params, init = {}) {
|
|
24
|
+
return transport.fetch(`/fs/upload-session/${encodeURIComponent(params.id)}`, {
|
|
25
|
+
...init,
|
|
26
|
+
method: "DELETE"
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
2
30
|
//#region src/lib/chunked-upload.ts
|
|
3
31
|
/**
|
|
4
32
|
* Chunked upload — the sanctioned SDK path for delivering payloads larger
|
|
@@ -177,15 +205,13 @@ async function parseUploadError(response) {
|
|
|
177
205
|
}
|
|
178
206
|
async function initUploadSession(transport, remotePath, totalBytes, sha256, mode, signal) {
|
|
179
207
|
signal?.throwIfAborted();
|
|
180
|
-
const response = await transport
|
|
181
|
-
|
|
208
|
+
const response = await uploadSessionInit(transport, {
|
|
209
|
+
path: remotePath,
|
|
210
|
+
mode,
|
|
211
|
+
totalBytes,
|
|
212
|
+
sha256
|
|
213
|
+
}, {
|
|
182
214
|
headers: { "Content-Type": "application/json" },
|
|
183
|
-
body: JSON.stringify({
|
|
184
|
-
path: remotePath,
|
|
185
|
-
mode,
|
|
186
|
-
totalBytes,
|
|
187
|
-
sha256
|
|
188
|
-
}),
|
|
189
215
|
signal
|
|
190
216
|
});
|
|
191
217
|
if (!response.ok) throw await parseUploadError(response);
|
|
@@ -196,8 +222,10 @@ async function putPart(transport, uploadId, index, options, wire) {
|
|
|
196
222
|
for (let attempt = 0;; attempt++) {
|
|
197
223
|
options.signal?.throwIfAborted();
|
|
198
224
|
try {
|
|
199
|
-
const response = await transport
|
|
200
|
-
|
|
225
|
+
const response = await uploadSessionPart(transport, {
|
|
226
|
+
id: uploadId,
|
|
227
|
+
index: String(index)
|
|
228
|
+
}, {
|
|
201
229
|
headers: {
|
|
202
230
|
"Content-Type": "application/octet-stream",
|
|
203
231
|
...wire.encoding ? { "Content-Encoding": wire.encoding } : {}
|
|
@@ -286,13 +314,11 @@ async function uploadAllParts(transport, uploadId, bytes, partSize, totalParts,
|
|
|
286
314
|
}
|
|
287
315
|
async function commitSession(transport, uploadId, totalParts, sha256, signal) {
|
|
288
316
|
signal?.throwIfAborted();
|
|
289
|
-
const response = await transport
|
|
290
|
-
|
|
317
|
+
const response = await uploadSessionCommit(transport, { id: uploadId }, {
|
|
318
|
+
totalParts,
|
|
319
|
+
sha256
|
|
320
|
+
}, {
|
|
291
321
|
headers: { "Content-Type": "application/json" },
|
|
292
|
-
body: JSON.stringify({
|
|
293
|
-
totalParts,
|
|
294
|
-
sha256
|
|
295
|
-
}),
|
|
296
322
|
signal
|
|
297
323
|
});
|
|
298
324
|
if (!response.ok) throw await parseUploadError(response);
|
|
@@ -304,7 +330,7 @@ async function commitSession(transport, uploadId, totalParts, sha256, signal) {
|
|
|
304
330
|
* not a leak, just deferred cleanup. */
|
|
305
331
|
async function abortSession(transport, uploadId) {
|
|
306
332
|
try {
|
|
307
|
-
await transport
|
|
333
|
+
await uploadSessionDelete(transport, { id: uploadId });
|
|
308
334
|
} catch {}
|
|
309
335
|
}
|
|
310
336
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as FILE_UPLOAD_SESSION_MAX_BYTES } from "./errors-BStusQVc.js";
|
|
2
|
-
import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload
|
|
2
|
+
import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload--QnrxdO9.js";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { open } from "node:fs/promises";
|
|
5
5
|
//#region src/lib/chunked-upload-file.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as agentProfileJsonSchema, r as agentProfileSchema } from "./profile-schema-
|
|
1
|
+
import { n as agentProfileJsonSchema, r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import "@tangle-network/agent-interface/harness-capabilities";
|
|
4
4
|
//#region ../../../packages/cli-agent-registry/dist/harness-contracts-CW9RRdoK.mjs
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-
|
|
2
|
-
import { G as AgentProfileConfidential, J as AgentProfileMcpServer, K as AgentProfileConfigValue, U as AgentProfile, X as AgentProfileSeat, Y as AgentProfileMetadata, b as SandboxSizePreset, c as MintInteractiveSessionTokenOptions, k as AgentInteractiveSessionRef, q as AgentProfileFileMount, u as ScopedToken, vt as SandboxError } from "./terminal-stream-types-
|
|
3
|
-
import { $n as TeeAttestationReport, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, An as SandboxFleetUsage, Ar as DownloadResult, Bt as FleetDispatchCancelResult, Di as
|
|
4
|
-
import { t as LinesClient } from "./lines-
|
|
5
|
-
import { a as PublicTemplatesClient } from "./public-templates-
|
|
1
|
+
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-DFeZI9hC.js";
|
|
2
|
+
import { G as AgentProfileConfidential, J as AgentProfileMcpServer, K as AgentProfileConfigValue, U as AgentProfile, X as AgentProfileSeat, Y as AgentProfileMetadata, b as SandboxSizePreset, c as MintInteractiveSessionTokenOptions, k as AgentInteractiveSessionRef, q as AgentProfileFileMount, u as ScopedToken, vt as SandboxError } from "./terminal-stream-types-CqLXtP8e.js";
|
|
3
|
+
import { $n as TeeAttestationReport, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Ai as ManagedProcessSpec, An as SandboxFleetUsage, Ar as DownloadResult, Bt as FleetDispatchCancelResult, Di as ManagedProcessResumeOptions, Ei as ManagedProcessOptions, En as SandboxFleetTraceBundle, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Ga as ExecResult, Gt as FleetExecDispatchResult, Hi as BatchRunOptions, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, It as FleetAgentId, Jt as FleetPromptDispatchResult, Kt as FleetMachineId, M as UsageInfo, Ma as GpuLeaseProviderName, Mi as SdkTimingHook, Mn as SandboxFleetWorkspaceReconcileResult, Mt as AttachSandboxFleetMachineOptions, Nn as SandboxFleetWorkspaceRestoreResult, Nt as CreateSandboxFleetOptions, Or as DownloadOptions, Pn as SandboxFleetWorkspaceSnapshotResult, Pt as CreateSandboxFleetTokenOptions, Qt as ReapExpiredSandboxFleetsOptions, Rt as FleetAgentResult, Sn as SandboxFleetPolicy, T as SshKeysManager, Ti as ManagedProcessJobs, 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, _a as BackendConfig, _n as SandboxFleetManifest, a as DeleteMatchingSandboxesResult, aa as PromptInputPart, ai as SandboxEnvironment, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, bn as SandboxFleetParent, ca as SandboxEvent, cn as SandboxFleetDispatchResponse, cr as SandboxShapesInfo, dn as SandboxFleetInfo, ea as IntelligenceReport, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, fo as BatchResult, fr as SandboxShapePreset, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, ha as TurnBackendConfig, hn as SandboxFleetMachineRecord, ho as PublicBatchRunRequest, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReportWindow, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as HttpClient, ki as ManagedProcessRecord, kn as SandboxFleetTraceOptions, ln as SandboxFleetDriverCapability, na as IntelligenceReportCompareTo, nn as SandboxFleetAgent, nt as ConversationTurnResult, oa as PromptOptions, on as SandboxFleetCostEstimate, or as SandboxConfig, pn as SandboxFleetMachine, qi as CreateIntelligenceReportOptions, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, sa as PromptResult, sr as SandboxResources, ta as IntelligenceReportBudget, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, vo as BatchEvent, w as SecretsManager, wn as SandboxFleetSpend, yn as SandboxFleetOperationsSummary, zn as SandboxInfo } from "./types-R43a0wyS.js";
|
|
4
|
+
import { t as LinesClient } from "./lines-Bs8wZ7O8.js";
|
|
5
|
+
import { a as PublicTemplatesClient } from "./public-templates-BgYFqTwX.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/backend-registry.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as agentProfileSchema } from "./profile-schema-
|
|
3
|
-
import { A as normalizeSandboxCreateReceipt, B as generateIdempotencyKey, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, H as isRateLimitCreateError, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, R as DEPLOY_WINDOW_RETRY_MS, T as splitInlineProfileFileMounts, U as isRetryableCreateError, V as isDeployWindowCreateError, W as waitForCreateRetry, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, s as exportTraceBundle, z as createRetryDelayMs } from "./sandbox-
|
|
1
|
+
import { A as normalizeRuntimeBackendConfig, D as applyRequestedModel, E as isBrowserRuntime, H as backendTypeSchema, N as withProfileHarness, O as assertCurrentBackendType, P as withoutCreateOnlyModelFields, S as encodePromptForWire, o as requestInteractiveSessionToken } from "./interactive-controller-CkiJBT6m.js";
|
|
2
|
+
import { r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
|
|
3
|
+
import { A as normalizeSandboxCreateReceipt, B as generateIdempotencyKey, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, H as isRateLimitCreateError, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, R as DEPLOY_WINDOW_RETRY_MS, T as splitInlineProfileFileMounts, U as isRetryableCreateError, V as isDeployWindowCreateError, W as waitForCreateRetry, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, s as exportTraceBundle, z as createRetryDelayMs } from "./sandbox-CnLNPeh0.js";
|
|
4
4
|
import { D as isInsideReservedDir, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, g as NotFoundError, h as NetworkError, i as readResponseJson, n as parseErrorResponse, r as parseResponseError, x as SandboxError } from "./errors-BStusQVc.js";
|
|
5
5
|
import { n as combineAbortSignals } from "./abort-signal-JVaAyNMP.js";
|
|
6
6
|
import { t as fetchSandboxApi } from "./api-request-B7cnX489.js";
|
|
@@ -1211,11 +1211,11 @@ function isLocalSandboxEndpoint(baseUrl) {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
}
|
|
1213
1213
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
1214
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
1214
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-bw8Puox2.js");
|
|
1215
1215
|
return discoverLocalCliAuthFiles(backendType);
|
|
1216
1216
|
}
|
|
1217
1217
|
async function loadLocalCliAuthExpectation(backendType) {
|
|
1218
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
1218
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-bw8Puox2.js");
|
|
1219
1219
|
return describe(backendType);
|
|
1220
1220
|
}
|
|
1221
1221
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as agentProfileSchema } from "./profile-schema-
|
|
2
|
-
import { G as canonicalAgentProfileDigest } from "./sandbox-
|
|
1
|
+
import { r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
|
|
2
|
+
import { G as canonicalAgentProfileDigest } from "./sandbox-CnLNPeh0.js";
|
|
3
3
|
import { E as ValidationError, s as CapabilityError, x as SandboxError } from "./errors-BStusQVc.js";
|
|
4
4
|
import { t as awaitWithAbort } from "./abort-signal-JVaAyNMP.js";
|
|
5
|
-
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-
|
|
5
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-BoK5wpru.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/failure-kind.ts
|
|
8
8
|
const LOST_CODES = new Set(["BACKING_CONTAINER_MISSING", "SANDBOX_NOT_FOUND"]);
|
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-
|
|
2
|
-
import { Et as ValidationError, St as StateError, Tt as TimeoutError, bt as SandboxFailureDetail, ct as FileWriteConflictError, ft as NetworkError, gt as QuotaError, ht as ProfileFileMountPathError, it as CapabilityError, mt as PartialFailureError, nt as AuthError, pt as NotFoundError, vt as SandboxError, xt as ServerError, yt as SandboxErrorJson } from "./terminal-stream-types-
|
|
3
|
-
import { Ai as
|
|
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 { $t as BackendRegistryCapabilities, Ct as InstanceRestartingError, Dt as sandboxFailureKind, Et as SandboxFailureKind, St as InstanceRecord, Tt as InstancesClient, _t as gatewaySeatTransport, an as backendRegistryInteractionKindSchema, bt as HostedInstance, cn as parseBackendRegistryResponse, ct as SandboxResolvedSeat, dt as SeatOwnerReply, en as BackendRegistryEntry, ft as SeatOwnerTransport, gt as createSelectSeat, ht as SeatSelectionRequest, in as backendRegistryEntrySchema, ln as parseBackendRegistryResponseBody, lt as SandboxSeatCredentials, mt as SeatSelectionError, nn as BackendRegistryResponse, on as backendRegistryResponseSchema, ot as ISOLATED_CREATION_ATTESTATION_VERSION, pt as SeatResolutionObservation, rn as backendRegistryCapabilitiesSchema, sn as isBackendRegistryInteractionKind, st as CreateSelectSeatOptions, t as Sandbox, tn as BackendRegistryInteractionKind, ut as SandboxSeatSelectionInput, vt as ManagedProcessClient, xt as InstanceProfile, yt as EnsureInstanceOptions } from "./client-
|
|
6
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
1
|
+
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-DFeZI9hC.js";
|
|
2
|
+
import { Et as ValidationError, St as StateError, Tt as TimeoutError, bt as SandboxFailureDetail, ct as FileWriteConflictError, ft as NetworkError, gt as QuotaError, ht as ProfileFileMountPathError, it as CapabilityError, mt as PartialFailureError, nt as AuthError, pt as NotFoundError, vt as SandboxError, xt as ServerError, yt as SandboxErrorJson } from "./terminal-stream-types-CqLXtP8e.js";
|
|
3
|
+
import { Ai as ManagedProcessSpec, Ct as SessionMessageAdmission, Di as ManagedProcessResumeOptions, Ei as ManagedProcessOptions, Ga as ExecResult, H as PreviewLinkInfo, Ia as WorkspaceImagePublishInput, Ka as SandboxEnvRecovery, La as WorkspaceImagePublishResult, Oi as ManagedProcessState, Ti as ManagedProcessJobs, U as PreviewLinkManager, W as PreviewLinkWaitOptions, _r as NetworkConfig, aa as PromptInputPart, ar as CreateSandboxOptions, ei as ExecOptions, ki as ManagedProcessRecord, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecoveryView, tt as ConversationTurnOptions, zn as SandboxInfo } from "./types-R43a0wyS.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-Bs8wZ7O8.js";
|
|
5
|
+
import { $t as BackendRegistryCapabilities, Ct as InstanceRestartingError, Dt as sandboxFailureKind, Et as SandboxFailureKind, St as InstanceRecord, Tt as InstancesClient, _t as gatewaySeatTransport, an as backendRegistryInteractionKindSchema, bt as HostedInstance, cn as parseBackendRegistryResponse, ct as SandboxResolvedSeat, dt as SeatOwnerReply, en as BackendRegistryEntry, ft as SeatOwnerTransport, gt as createSelectSeat, ht as SeatSelectionRequest, in as backendRegistryEntrySchema, ln as parseBackendRegistryResponseBody, lt as SandboxSeatCredentials, mt as SeatSelectionError, nn as BackendRegistryResponse, on as backendRegistryResponseSchema, ot as ISOLATED_CREATION_ATTESTATION_VERSION, pt as SeatResolutionObservation, rn as backendRegistryCapabilitiesSchema, sn as isBackendRegistryInteractionKind, st as CreateSelectSeatOptions, t as Sandbox, tn as BackendRegistryInteractionKind, ut as SandboxSeatSelectionInput, vt as ManagedProcessClient, xt as InstanceProfile, yt as EnsureInstanceOptions } from "./client-CCF-xlqb.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-BgYFqTwX.js";
|
|
7
7
|
export { AuthError, BackendRegistryCapabilities, BackendRegistryEntry, BackendRegistryInteractionKind, BackendRegistryResponse, CapabilityError, ConversationTurnOptions, ConversationTurnResult, CreateSandboxOptions, CreateSelectSeatOptions, EnsureInstanceOptions, ExecOptions, ExecResult, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceProfile, InstanceRecord, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, Line, LineAgentRolePolicy, LineApplication, LineApplicationAttachOptions, LineApplicationRequest, LineApplicationResult, LineApplicationState, LineApplicationView, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineMember, LineMemberInstance, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LinesClient, ManagedProcessClient, ManagedProcessJobs, ManagedProcessOptions, ManagedProcessRecord, ManagedProcessResumeOptions, ManagedProcessSpec, ManagedProcessState, NetworkConfig, NetworkError, NotFoundError, PartialFailureError, PreviewLinkInfo, PreviewLinkManager, PreviewLinkWaitOptions, ProfileFileDeliveryReport, ProfileFileMountPathError, PromptInputPart, PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient, QuotaError, Sandbox, SandboxConfig, SandboxEnvRecovery, SandboxEnvRecoveryView, SandboxError, SandboxErrorJson, SandboxFailureDetail, SandboxFailureKind, SandboxInfo, SandboxInstance, SandboxResolvedSeat, SandboxSeatCredentials, SandboxSeatSelectionInput, SandboxStatus, SeatOwnerReply, SeatOwnerTransport, SeatResolutionObservation, SeatSelectionError, SeatSelectionRequest, ServerError, SessionMessageAdmission, StateError, TimeoutError, ValidationError, WorkspaceImagePublishInput, WorkspaceImagePublishRequestOptions, WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
|
package/dist/core.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
1
|
+
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-CnLNPeh0.js";
|
|
2
2
|
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-BStusQVc.js";
|
|
3
|
-
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-
|
|
3
|
+
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-TJrVpqwk.js";
|
|
4
4
|
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-D9XmRZMl.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
|
-
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, 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-
|
|
6
|
+
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-w0cPi0zg.js";
|
|
7
7
|
export { AuthError, CapabilityError, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, Sandbox, SandboxError, SandboxInstance, SeatSelectionError, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
2
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/contract-limits.js
|
|
3
3
|
/** Limits applied before a value is hashed, copied, or sent to a provider. */
|
|
4
4
|
const CONTRACT_MAX_STRING_LENGTH = 16384;
|
|
5
5
|
/** Maximum length of one canonical confidential-attestation quote. */
|
|
@@ -836,7 +836,7 @@ K512[1];
|
|
|
836
836
|
*/
|
|
837
837
|
const sha256 = /* @__PURE__ */ createHasher(() => new _SHA256(), /* @__PURE__ */ oidNist(1));
|
|
838
838
|
//#endregion
|
|
839
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
839
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-candidate-schema-common.js
|
|
840
840
|
const sha256Pattern = /^sha256:[a-f0-9]{64}$/;
|
|
841
841
|
const gitObjectPattern = /^(?:[a-f0-9]{40}|[a-f0-9]{64})$/;
|
|
842
842
|
const environmentNamePattern = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
@@ -992,7 +992,7 @@ z.object({
|
|
|
992
992
|
repo: z.string().regex(githubComponentPattern).refine((value) => value !== "." && value !== "..")
|
|
993
993
|
}).strict();
|
|
994
994
|
//#endregion
|
|
995
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
995
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-profile.js
|
|
996
996
|
/**
|
|
997
997
|
* Portable reasoning/thinking effort. Backends map it to their native control at materialization:
|
|
998
998
|
* codex `model_reasoning_effort`, kimi `--thinking`/`--no-thinking`, claude thinking budget.
|
|
@@ -1020,7 +1020,7 @@ function trainedModelIdForArtifact(digest) {
|
|
|
1020
1020
|
return `${TRAINED_MODEL_PREFIX}${digest.slice(7)}`;
|
|
1021
1021
|
}
|
|
1022
1022
|
//#endregion
|
|
1023
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1023
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/harness.js
|
|
1024
1024
|
/**
|
|
1025
1025
|
* Recognized execution identities, not a deployment's list of installed runners.
|
|
1026
1026
|
* A profile's authored harness remains part of its canonical identity; execution
|
|
@@ -1052,4 +1052,4 @@ const harnessTypeSchema = z.enum([
|
|
|
1052
1052
|
"cli-base"
|
|
1053
1053
|
]);
|
|
1054
1054
|
//#endregion
|
|
1055
|
-
export {
|
|
1055
|
+
export { boundedIdentifierSchema as C, isBoundedEventContentJson as D, boundedStringSchema as E, isBoundedJsonMaterial as O, boundedEventContentStringSchema as S, boundedJsonSchema as T, CONTRACT_MAX_ARRAY_LENGTH as _, agentCandidateSecretRefSchema as a, boundedEventContentJsonSchema as b, environmentNameSchema as c, isSafeExecutable as d, isSafeRelativePath as f, sha256DigestSchema as g, omitTopLevelDigest as h, trainedModelIdForArtifact as i, headerNameSchema as l, looksLikeCredential as m, REASONING_EFFORTS as n, canonicalCandidateDigest as o, isWellFormedUnicode as p, TRAINED_MODEL_PREFIX as r, canonicalCandidateJson as s, harnessTypeSchema as t, isCanonicalJsonValue as u, CONTRACT_MAX_JSON_NODES as v, boundedJsonRecordSchema as w, boundedEventContentRecordSchema as x, CONTRACT_MAX_STRING_LENGTH as y };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $ as InteractionData, B as InteractionAcknowledgement, C as AgentInteractiveSessionAttach, D as AgentInteractiveSessionPromptAcknowledgement, E as AgentInteractiveSessionControlClaimRequest, F as TerminalOutputEvent, H as InteractionResponseCommand, I as TerminalReplayWindow, M as AgentInteractiveSessionStopCommand, N as AgentInteractiveTerminalSession, O as AgentInteractiveSessionPromptCommand, Ot as SandboxCreateReceipt, R as AgentRunCancellationAcknowledgement, S as AgentInteractiveSessionStart, T as AgentInteractiveSessionControlClaimAcknowledgement, U as AgentProfile, V as InteractionRequest, g as TerminalReadyInfo, i as TerminalStreamHandlers, j as AgentInteractiveSessionStopAcknowledgement, k as AgentInteractiveSessionRef, l as MintScopedTokenOptions, o as TerminalStreamReconnectAuthority, q as AgentProfileFileMount, u as ScopedToken, vt as SandboxError, w as AgentInteractiveSessionControlClaim, z as AgentRunCancellationRequest } from "./terminal-stream-types-
|
|
2
|
-
import { $a as RawEvidenceBoxExportOptions, $i as EventStreamOptions, $r as SearchOptions, Bi as WaitForRolloutOptions, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, Fi as ForkIdempotency, G as GitBranch, Ga as ExecResult, Ha as CodeExecutionResult, Ia as WorkspaceImagePublishInput, Ii as ForkLookupOptions, In as SSHCommandDescriptor, J as GitStatus, Ji as DurablePlan, K as GitCommit, Ka as SandboxEnvRecovery, La as WorkspaceImagePublishResult, Li as Rollout, Ln as SSHCredentials, Lr as FileSystem, N as WaitForOptions, Ni as BranchOptions, Pi as ForkCounts, Q as CommitTaskSessionOptions, Qa as RawEvidenceBoxDirectoryExport, Qn as TeeAttestationOptions, Qr as SearchMatch, Ri as RolloutOptions, Rn as SandboxConnection, S as StopOptions, St as SessionMessage, Tt as SessionResultOptions, U as PreviewLinkManager, Ua as CodeLanguage, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Wn as SandboxTerminalAttachOptions, Xi as DurablePlanDecisionResult, Xn as StartupDiagnostics, Xr as WriteManyFile, Ya as RawEvidenceArchiveManifest, Yi as DurablePlanDecisionOptions, Yn as SandboxTerminals, Yr as WriteFileOptions, Zr as WriteManyOptions, _ as SnapshotInfo, _a as BackendConfig, aa as PromptInputPart, ao as RawEvidenceUnavailable, ar as CreateSandboxOptions, at as DispatchPromptOptions, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as SandboxEvent, ct as ListMessagesOptions, d as SandboxOperationKind, di as DriverInfo, dr as SandboxShape, dt as SendSessionMessageRequest, ea as IntelligenceReport, ei as ExecOptions, eo as RawEvidenceDirectoryExport, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, ft as SentSessionMessage, gr as EgressManager, ha as TurnBackendConfig, ht as SessionExecutionInfo, ia as IntelligenceReportWindow, it as CreateTaskSessionOptions, ji as HttpClient, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, na as IntelligenceReportCompareTo, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, oa as PromptOptions, ot as DispatchedSession, pa as SandboxTraceOptions, pi as GpuLease, pr as SandboxResourceUsage, q as GitDiff, qa as SandboxEnvRecoveryView, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, sa as PromptResult, so as InteractionResolutionAcknowledgement, st as DriveTurnOptions, ta as IntelligenceReportBudget, to as RawEvidenceExportOptions, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as SandboxTraceBundle, ut as SendSessionMessageOptions, v as SnapshotOptions, vi as GpuLeaseManager, vr as NetworkManager, vt as SessionForkOptions, wi as CodeExecutionOptions, x as SnapshotResult, xt as SessionListOptions, y as SnapshotProvenance, ya as BackendManager, yt as SessionInfo, z as ProcessManager, zi as RolloutStartResult, zn as SandboxInfo } from "./types-
|
|
1
|
+
import { $ as InteractionData, B as InteractionAcknowledgement, C as AgentInteractiveSessionAttach, D as AgentInteractiveSessionPromptAcknowledgement, E as AgentInteractiveSessionControlClaimRequest, F as TerminalOutputEvent, H as InteractionResponseCommand, I as TerminalReplayWindow, M as AgentInteractiveSessionStopCommand, N as AgentInteractiveTerminalSession, O as AgentInteractiveSessionPromptCommand, Ot as SandboxCreateReceipt, R as AgentRunCancellationAcknowledgement, S as AgentInteractiveSessionStart, T as AgentInteractiveSessionControlClaimAcknowledgement, U as AgentProfile, V as InteractionRequest, g as TerminalReadyInfo, i as TerminalStreamHandlers, j as AgentInteractiveSessionStopAcknowledgement, k as AgentInteractiveSessionRef, l as MintScopedTokenOptions, o as TerminalStreamReconnectAuthority, q as AgentProfileFileMount, u as ScopedToken, vt as SandboxError, w as AgentInteractiveSessionControlClaim, z as AgentRunCancellationRequest } from "./terminal-stream-types-CqLXtP8e.js";
|
|
2
|
+
import { $a as RawEvidenceBoxExportOptions, $i as EventStreamOptions, $r as SearchOptions, Bi as WaitForRolloutOptions, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, Fi as ForkIdempotency, G as GitBranch, Ga as ExecResult, Ha as CodeExecutionResult, Ia as WorkspaceImagePublishInput, Ii as ForkLookupOptions, In as SSHCommandDescriptor, J as GitStatus, Ji as DurablePlan, K as GitCommit, Ka as SandboxEnvRecovery, La as WorkspaceImagePublishResult, Li as Rollout, Ln as SSHCredentials, Lr as FileSystem, N as WaitForOptions, Ni as BranchOptions, Pi as ForkCounts, Q as CommitTaskSessionOptions, Qa as RawEvidenceBoxDirectoryExport, Qn as TeeAttestationOptions, Qr as SearchMatch, Ri as RolloutOptions, Rn as SandboxConnection, S as StopOptions, St as SessionMessage, Tt as SessionResultOptions, U as PreviewLinkManager, Ua as CodeLanguage, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Wn as SandboxTerminalAttachOptions, Xi as DurablePlanDecisionResult, Xn as StartupDiagnostics, Xr as WriteManyFile, Ya as RawEvidenceArchiveManifest, Yi as DurablePlanDecisionOptions, Yn as SandboxTerminals, Yr as WriteFileOptions, Zr as WriteManyOptions, _ as SnapshotInfo, _a as BackendConfig, aa as PromptInputPart, ao as RawEvidenceUnavailable, ar as CreateSandboxOptions, at as DispatchPromptOptions, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as SandboxEvent, ct as ListMessagesOptions, d as SandboxOperationKind, di as DriverInfo, dr as SandboxShape, dt as SendSessionMessageRequest, ea as IntelligenceReport, ei as ExecOptions, eo as RawEvidenceDirectoryExport, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, ft as SentSessionMessage, gr as EgressManager, ha as TurnBackendConfig, ht as SessionExecutionInfo, ia as IntelligenceReportWindow, it as CreateTaskSessionOptions, ji as HttpClient, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, na as IntelligenceReportCompareTo, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, oa as PromptOptions, ot as DispatchedSession, pa as SandboxTraceOptions, pi as GpuLease, pr as SandboxResourceUsage, q as GitDiff, qa as SandboxEnvRecoveryView, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, sa as PromptResult, so as InteractionResolutionAcknowledgement, st as DriveTurnOptions, ta as IntelligenceReportBudget, to as RawEvidenceExportOptions, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as SandboxTraceBundle, ut as SendSessionMessageOptions, v as SnapshotOptions, vi as GpuLeaseManager, vr as NetworkManager, vt as SessionForkOptions, wi as CodeExecutionOptions, x as SnapshotResult, xt as SessionListOptions, y as SnapshotProvenance, ya as BackendManager, yt as SessionInfo, z as ProcessManager, zi as RolloutStartResult, zn as SandboxInfo } from "./types-R43a0wyS.js";
|
|
3
3
|
import { t as CliAuthReference } from "./cli-auth-bundle-99-eo7R4.js";
|
|
4
|
-
import { n as SandboxLines } from "./lines-
|
|
5
|
-
import { _ as InteractiveSessionStatus, f as InteractiveAttachOptions, g as InteractiveRequestOptions, h as InteractiveObserveOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-
|
|
6
|
-
import { r as InteractiveAttachRequest } from "./interactive-controller-
|
|
4
|
+
import { n as SandboxLines } from "./lines-Bs8wZ7O8.js";
|
|
5
|
+
import { _ as InteractiveSessionStatus, f as InteractiveAttachOptions, g as InteractiveRequestOptions, h as InteractiveObserveOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-CMdlolu0.js";
|
|
6
|
+
import { r as InteractiveAttachRequest } from "./interactive-controller-DlxGadwo.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import { OtlpTraceExport } from "@tangle-network/agent-trace-contract/otlp";
|
|
9
9
|
|