@tangle-network/sandbox 1.0.31 → 1.0.33
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-DXGjmPhJ.d.ts → agent-run-outcome-9BtP7NBt.d.ts} +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{browser-interactive-control-controller-BujauBOG.js → browser-interactive-control-controller-BvtNDWql.js} +15 -15
- package/dist/{browser-interactive-control-controller-CE_Sm_NP.d.ts → browser-interactive-control-controller-DLqCjRF4.d.ts} +1 -1
- package/dist/{cli-auth-bundle-CP67k1J2.js → cli-auth-bundle-CP1BXoLR.js} +1 -1
- package/dist/{client-CRRBS-R5.d.ts → client-DsK0Ea5d.d.ts} +5 -5
- package/dist/{client-CWcpIyB1.js → client-kk6pKXCu.js} +5 -5
- package/dist/{core-CD_K08bh.js → core-B6BFSxJC.js} +3 -3
- package/dist/core.d.ts +6 -6
- package/dist/core.js +3 -3
- package/dist/{harness-DkCl2wJv.js → harness-BnGz2Wng.js} +71 -126
- package/dist/{index-CKK1V65I.d.ts → index-Dma53Dv-.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-B0g65BjC.js → interactive-controller-BdFyhsao.js} +4 -4
- package/dist/{interactive-controller-BVGahfQh.d.ts → interactive-controller-kj6pSOCi.d.ts} +3 -3
- package/dist/{lines-CT6ZQ8Tq.d.ts → lines-DAuBNRwu.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-tQ_m92Kz.js → local-cli-auth-CNh4Oy17.js} +1 -1
- package/dist/{preview-CLzh6Zpn.d.ts → preview-Dv6LSRvg.d.ts} +3 -3
- package/dist/{profile-schema-1WmjXjE9.js → profile-schema-DFZTAn1S.js} +171 -73
- package/dist/{public-templates-DMyZOU0k.d.ts → public-templates-C-AGDnNh.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-DFT2Z7UT.js → sandbox-DcnMQd34.js} +26 -131
- 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-BpJVw3gd.js → tangle-DbGX5au3.js} +1 -1
- package/dist/{terminal-stream-types-BcZxAiU-.d.ts → terminal-stream-types-IbpWmEvd.d.ts} +16 -16
- package/dist/{types-CYyhRYez.d.ts → types-D1wY611n.d.ts} +1 -1
- package/package.json +6 -6
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, Di as CodeResultPart, Ei as CodeExecutionResult, Ti as CodeExecutionOptions, Va as CodeLanguage, ba as BackendConfig, bn as SandboxFleetParent, 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-Dma53Dv-.js";
|
|
2
|
+
import { Co as BackendType, Di as CodeResultPart, Ei as CodeExecutionResult, Ti as CodeExecutionOptions, Va as CodeLanguage, ba as BackendConfig, bn as SandboxFleetParent, xt as SessionListOptions, yt as SessionInfo } from "../types-D1wY611n.js";
|
|
3
|
+
import { t as Sandbox } from "../client-DsK0Ea5d.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-Dv6LSRvg.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-CPdKHcQ-.js";
|
|
2
|
-
import { E as assertCurrentBackendType } from "../interactive-controller-
|
|
3
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
2
|
+
import { E as assertCurrentBackendType } from "../interactive-controller-BdFyhsao.js";
|
|
3
|
+
import { t as SandboxInstance } from "../sandbox-DcnMQd34.js";
|
|
4
4
|
import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-BuPtQ91K.js";
|
|
5
|
-
import { t as Sandbox } from "../client-
|
|
5
|
+
import { t as Sandbox } from "../client-kk6pKXCu.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-Dv6LSRvg.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 { U as InteractionRequest } from "./terminal-stream-types-
|
|
2
|
-
import { Ji as AgentRunStatus, Ki as AgentApprovalRequirement, Yi as AgentToolInvocation, da as SandboxEvent, qi as AgentQuestionRequest, ta as DurablePlanSnapshot } from "./types-
|
|
1
|
+
import { U as InteractionRequest } from "./terminal-stream-types-IbpWmEvd.js";
|
|
2
|
+
import { Ji as AgentRunStatus, Ki as AgentApprovalRequirement, Yi as AgentToolInvocation, da as SandboxEvent, qi as AgentQuestionRequest, ta as DurablePlanSnapshot } from "./types-D1wY611n.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-CP1BXoLR.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 boundedIdentifierSchema, D as isBoundedEventContentJson, E as boundedStringSchema, S as boundedEventContentStringSchema, T as boundedJsonSchema, 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,
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 { D as AgentInteractiveSessionControlClaimAcknowledgement, E as AgentInteractiveSessionControlClaim, M as AgentInteractiveSessionStatus, O as AgentInteractiveSessionControlClaimRequest, T as AgentInteractiveSessionAttach, i as TerminalStreamHandlers, j as AgentInteractiveSessionRef } from "./terminal-stream-types-
|
|
1
|
+
import { D as AgentInteractiveSessionControlClaimAcknowledgement, E as AgentInteractiveSessionControlClaim, M as AgentInteractiveSessionStatus, O as AgentInteractiveSessionControlClaimRequest, T as AgentInteractiveSessionAttach, i as TerminalStreamHandlers, j as AgentInteractiveSessionRef } from "./terminal-stream-types-IbpWmEvd.js";
|
|
2
2
|
|
|
3
3
|
//#region src/interactive-types.d.ts
|
|
4
4
|
/** Cancellation for an interactive SDK request. */
|
|
@@ -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/native-session-contracts-D-wSbVpO.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 AgentProfile, J as AgentProfileConfigValue, Ot as SandboxError, Q as AgentProfileMetadata, S as SandboxSizePreset, X as AgentProfileFileMount, Z as AgentProfileMcpServer, c as MintInteractiveSessionTokenOptions, it as AgentProfileSeat, j as AgentInteractiveSessionRef, q as AgentProfileConfidential, u as ScopedToken } from "./terminal-stream-types-
|
|
3
|
-
import { $n as TeeAttestationReport, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Bt as FleetDispatchCancelResult, En as SandboxFleetTraceBundle, Fa as GpuLeaseProviderName, Fi as SdkTimingHook, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Gi as BatchRunOptions, Gt as FleetExecDispatchResult, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, It as FleetAgentId, Jt as FleetPromptDispatchResult, Kt as FleetMachineId, M as UsageInfo, Mi as ManagedProcessSpec, Mn as SandboxFleetWorkspaceReconcileResult, Mt as AttachSandboxFleetMachineOptions, Nn as SandboxFleetWorkspaceRestoreResult, Nt as CreateSandboxFleetOptions, Oi as ManagedProcessJobs, Pi as HttpClient, Pn as SandboxFleetWorkspaceSnapshotResult, Pt as CreateSandboxFleetTokenOptions, Qt as ReapExpiredSandboxFleetsOptions, Rt as FleetAgentResult, Sn as SandboxFleetPolicy, T as SshKeysManager, Tn as SandboxFleetToken, Ut as FleetDispatchStreamOptions, Vt as FleetDispatchResultBuffer, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xi as CreateIntelligenceReportOptions, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Yt as FleetRunEvent, Z as TokenRefreshHandler, Zt as ListSandboxFleetOptions, _n as SandboxFleetManifest, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportCompareTo, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, ba as BackendConfig, bn as SandboxFleetParent, ca as PromptInputPart, cn as SandboxFleetDispatchResponse, cr as SandboxShapesInfo, da as SandboxEvent, dn as SandboxFleetInfo, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, fo as BatchResult, fr as SandboxShapePreset, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, hn as SandboxFleetMachineRecord, ho as PublicBatchRunRequest, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReportBudget, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, la as PromptOptions, ln as SandboxFleetDriverCapability, nn as SandboxFleetAgent, nt as ConversationTurnResult, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, or as SandboxConfig, pn as SandboxFleetMachine, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, ra as IntelligenceReport, sa as IntelligenceReportWindow, sr as SandboxResources, ti as ExecResult, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, ua as PromptResult, va as TurnBackendConfig, vo as BatchEvent, w as SecretsManager, wn as SandboxFleetSpend, yn as SandboxFleetOperationsSummary, zn as SandboxInfo } from "./types-
|
|
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-Dma53Dv-.js";
|
|
2
|
+
import { G as AgentProfile, J as AgentProfileConfigValue, Ot as SandboxError, Q as AgentProfileMetadata, S as SandboxSizePreset, X as AgentProfileFileMount, Z as AgentProfileMcpServer, c as MintInteractiveSessionTokenOptions, it as AgentProfileSeat, j as AgentInteractiveSessionRef, q as AgentProfileConfidential, u as ScopedToken } from "./terminal-stream-types-IbpWmEvd.js";
|
|
3
|
+
import { $n as TeeAttestationReport, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Bt as FleetDispatchCancelResult, En as SandboxFleetTraceBundle, Fa as GpuLeaseProviderName, Fi as SdkTimingHook, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Gi as BatchRunOptions, Gt as FleetExecDispatchResult, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, It as FleetAgentId, Jt as FleetPromptDispatchResult, Kt as FleetMachineId, M as UsageInfo, Mi as ManagedProcessSpec, Mn as SandboxFleetWorkspaceReconcileResult, Mt as AttachSandboxFleetMachineOptions, Nn as SandboxFleetWorkspaceRestoreResult, Nt as CreateSandboxFleetOptions, Oi as ManagedProcessJobs, Pi as HttpClient, Pn as SandboxFleetWorkspaceSnapshotResult, Pt as CreateSandboxFleetTokenOptions, Qt as ReapExpiredSandboxFleetsOptions, Rt as FleetAgentResult, Sn as SandboxFleetPolicy, T as SshKeysManager, Tn as SandboxFleetToken, Ut as FleetDispatchStreamOptions, Vt as FleetDispatchResultBuffer, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xi as CreateIntelligenceReportOptions, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Yt as FleetRunEvent, Z as TokenRefreshHandler, Zt as ListSandboxFleetOptions, _n as SandboxFleetManifest, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportCompareTo, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, ba as BackendConfig, bn as SandboxFleetParent, ca as PromptInputPart, cn as SandboxFleetDispatchResponse, cr as SandboxShapesInfo, da as SandboxEvent, dn as SandboxFleetInfo, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, fo as BatchResult, fr as SandboxShapePreset, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, hn as SandboxFleetMachineRecord, ho as PublicBatchRunRequest, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReportBudget, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, la as PromptOptions, ln as SandboxFleetDriverCapability, nn as SandboxFleetAgent, nt as ConversationTurnResult, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, or as SandboxConfig, pn as SandboxFleetMachine, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, ra as IntelligenceReport, sa as IntelligenceReportWindow, sr as SandboxResources, ti as ExecResult, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, ua as PromptResult, va as TurnBackendConfig, vo as BatchEvent, w as SecretsManager, wn as SandboxFleetSpend, yn as SandboxFleetOperationsSummary, zn as SandboxInfo } from "./types-D1wY611n.js";
|
|
4
|
+
import { t as LinesClient } from "./lines-DAuBNRwu.js";
|
|
5
|
+
import { a as PublicTemplatesClient } from "./public-templates-C-AGDnNh.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/backend-registry.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as foldModelRoutingFields, E as assertCurrentBackendType, M as withProfileHarness, N as withoutCreateOnlyModelFields, S as encodePromptForWire, T as applyRequestedModel, V as backendTypeSchema, k as normalizeRuntimeBackendConfig, o as requestInteractiveSessionToken } from "./interactive-controller-
|
|
2
|
-
import { r as agentProfileSchema } from "./profile-schema-
|
|
3
|
-
import { A as normalizeStartupDiagnostics, D as isRetryableProfileFileMaterializeFailure, E as validateDeferredProfileFileMounts, M as normalizeConnection, N as normalizeEgressPolicyFields, O as normalizeCaptureProof, P as normalizeSandboxShape, T as splitInlineProfileSkills, j as parseStopPhase, k as normalizeSandboxCreateReceipt, n as createSandboxInstanceFromResponse, o as exportTraceBundle, w as splitInlineProfileFileMounts } from "./sandbox-
|
|
1
|
+
import { D as foldModelRoutingFields, E as assertCurrentBackendType, M as withProfileHarness, N as withoutCreateOnlyModelFields, S as encodePromptForWire, T as applyRequestedModel, V as backendTypeSchema, k as normalizeRuntimeBackendConfig, o as requestInteractiveSessionToken } from "./interactive-controller-BdFyhsao.js";
|
|
2
|
+
import { r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
|
|
3
|
+
import { A as normalizeStartupDiagnostics, D as isRetryableProfileFileMaterializeFailure, E as validateDeferredProfileFileMounts, M as normalizeConnection, N as normalizeEgressPolicyFields, O as normalizeCaptureProof, P as normalizeSandboxShape, T as splitInlineProfileSkills, j as parseStopPhase, k as normalizeSandboxCreateReceipt, n as createSandboxInstanceFromResponse, o as exportTraceBundle, w as splitInlineProfileFileMounts } from "./sandbox-DcnMQd34.js";
|
|
4
4
|
import { E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, c as CompliancePlacementError, f as GpuProviderNotConfiguredError, g as NotFoundError, h as NetworkError, i as readResponseJson, m as NON_RETRYABLE_CREATE_QUOTA_REASONS, n as parseErrorResponse, r as parseResponseError, x as SandboxError, y as QuotaError } from "./errors-BuPtQ91K.js";
|
|
5
5
|
import { n as combineAbortSignals } from "./abort-signal-JVaAyNMP.js";
|
|
6
6
|
import { t as fetchSandboxApi } from "./api-request-B7cnX489.js";
|
|
@@ -1316,11 +1316,11 @@ function isLocalSandboxEndpoint(baseUrl) {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
1318
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
1319
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
1319
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-CNh4Oy17.js");
|
|
1320
1320
|
return discoverLocalCliAuthFiles(backendType);
|
|
1321
1321
|
}
|
|
1322
1322
|
async function loadLocalCliAuthExpectation(backendType) {
|
|
1323
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
1323
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-CNh4Oy17.js");
|
|
1324
1324
|
return describe(backendType);
|
|
1325
1325
|
}
|
|
1326
1326
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as agentProfileSchema } from "./profile-schema-
|
|
2
|
-
import { F as canonicalAgentProfileDigest } from "./sandbox-
|
|
1
|
+
import { r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
|
|
2
|
+
import { F as canonicalAgentProfileDigest } from "./sandbox-DcnMQd34.js";
|
|
3
3
|
import { E as ValidationError, s as CapabilityError, x as SandboxError } from "./errors-BuPtQ91K.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-CP1BXoLR.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 { At as SandboxFailureDetail, Ct as NotFoundError, Et as QuotaError, Ft as TimeoutError, It as ValidationError, Mt as StateError, Ot as SandboxError, St as NetworkError, Tt as ProfileFileMountPathError, ft as AuthError, jt as ServerError, kt as SandboxErrorJson, mt as CapabilityError, vt as FileWriteConflictError, wt as PartialFailureError } from "./terminal-stream-types-
|
|
3
|
-
import { Ai as ManagedProcessRecord, Ba as WorkspaceImagePublishResult, Ct as SessionMessageAdmission, H as PreviewLinkInfo, Ka as SandboxEnvRecovery, Mi as ManagedProcessSpec, Ni as ManagedProcessState, Oi as ManagedProcessJobs, U as PreviewLinkManager, W as PreviewLinkWaitOptions, _r as NetworkConfig, ar as CreateSandboxOptions, ca as PromptInputPart, ei as ExecOptions, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecoveryView, ti as ExecResult, tt as ConversationTurnOptions, za as WorkspaceImagePublishInput, zn as SandboxInfo } from "./types-
|
|
4
|
-
import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-
|
|
5
|
-
import { $t as BackendRegistryEntry, Et as sandboxFailureKind, Qt as BackendRegistryCapabilities, St as InstanceRestartingError, Tt as SandboxFailureKind, _t as ManagedProcessClient, an as backendRegistryResponseSchema, at as ISOLATED_CREATION_ATTESTATION_VERSION, bt as InstanceProfile, cn as parseBackendRegistryResponseBody, ct as SandboxSeatCredentials, dt as SeatOwnerTransport, en as BackendRegistryInteractionKind, ft as SeatResolutionObservation, gt as gatewaySeatTransport, ht as createSelectSeat, in as backendRegistryInteractionKindSchema, lt as SandboxSeatSelectionInput, mt as SeatSelectionRequest, nn as backendRegistryCapabilitiesSchema, on as isBackendRegistryInteractionKind, ot as CreateSelectSeatOptions, pt as SeatSelectionError, rn as backendRegistryEntrySchema, sn as parseBackendRegistryResponse, st as SandboxResolvedSeat, t as Sandbox, tn as BackendRegistryResponse, ut as SeatOwnerReply, vt as EnsureInstanceOptions, wt as InstancesClient, xt as InstanceRecord, yt as HostedInstance } 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-Dma53Dv-.js";
|
|
2
|
+
import { At as SandboxFailureDetail, Ct as NotFoundError, Et as QuotaError, Ft as TimeoutError, It as ValidationError, Mt as StateError, Ot as SandboxError, St as NetworkError, Tt as ProfileFileMountPathError, ft as AuthError, jt as ServerError, kt as SandboxErrorJson, mt as CapabilityError, vt as FileWriteConflictError, wt as PartialFailureError } from "./terminal-stream-types-IbpWmEvd.js";
|
|
3
|
+
import { Ai as ManagedProcessRecord, Ba as WorkspaceImagePublishResult, Ct as SessionMessageAdmission, H as PreviewLinkInfo, Ka as SandboxEnvRecovery, Mi as ManagedProcessSpec, Ni as ManagedProcessState, Oi as ManagedProcessJobs, U as PreviewLinkManager, W as PreviewLinkWaitOptions, _r as NetworkConfig, ar as CreateSandboxOptions, ca as PromptInputPart, ei as ExecOptions, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecoveryView, ti as ExecResult, tt as ConversationTurnOptions, za as WorkspaceImagePublishInput, zn as SandboxInfo } from "./types-D1wY611n.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-DAuBNRwu.js";
|
|
5
|
+
import { $t as BackendRegistryEntry, Et as sandboxFailureKind, Qt as BackendRegistryCapabilities, St as InstanceRestartingError, Tt as SandboxFailureKind, _t as ManagedProcessClient, an as backendRegistryResponseSchema, at as ISOLATED_CREATION_ATTESTATION_VERSION, bt as InstanceProfile, cn as parseBackendRegistryResponseBody, ct as SandboxSeatCredentials, dt as SeatOwnerTransport, en as BackendRegistryInteractionKind, ft as SeatResolutionObservation, gt as gatewaySeatTransport, ht as createSelectSeat, in as backendRegistryInteractionKindSchema, lt as SandboxSeatSelectionInput, mt as SeatSelectionRequest, nn as backendRegistryCapabilitiesSchema, on as isBackendRegistryInteractionKind, ot as CreateSelectSeatOptions, pt as SeatSelectionError, rn as backendRegistryEntrySchema, sn as parseBackendRegistryResponse, st as SandboxResolvedSeat, t as Sandbox, tn as BackendRegistryResponse, ut as SeatOwnerReply, vt as EnsureInstanceOptions, wt as InstancesClient, xt as InstanceRecord, yt as HostedInstance } from "./client-DsK0Ea5d.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-C-AGDnNh.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 { b as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
1
|
+
import { b as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-DcnMQd34.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-BuPtQ91K.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-kk6pKXCu.js";
|
|
4
4
|
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-CmiqZwyo.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-B6BFSxJC.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,75 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.
|
|
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. */
|
|
6
6
|
const CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH = 32768;
|
|
7
7
|
const CONTRACT_MAX_ARRAY_LENGTH = 1024;
|
|
8
|
-
const
|
|
8
|
+
const CONTRACT_MAX_JSON_NODES = 8192;
|
|
9
9
|
const boundedStringSchema = z.string().max(CONTRACT_MAX_STRING_LENGTH);
|
|
10
10
|
z.string().max(CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH);
|
|
11
11
|
const boundedIdentifierSchema = boundedStringSchema.min(1).max(512).refine((value) => value.trim() === value, "identifier cannot have outer whitespace");
|
|
12
|
-
/**
|
|
13
|
-
* Validate JSON without asking Zod to recursively copy an attacker-sized
|
|
14
|
-
* value. This is intentionally iterative so depth and collection limits are
|
|
15
|
-
* checked before canonical serialization.
|
|
16
|
-
*/
|
|
12
|
+
/** Admit ordinary JSON before recursive parsing, copying or hashing. */
|
|
17
13
|
function isBoundedJsonValue(value) {
|
|
18
|
-
|
|
19
|
-
value,
|
|
20
|
-
depth: 0
|
|
21
|
-
}];
|
|
22
|
-
const ancestors = /* @__PURE__ */ new Set();
|
|
23
|
-
let nodes = 0;
|
|
24
|
-
while (pending.length > 0) {
|
|
25
|
-
const item = pending.pop();
|
|
26
|
-
if (!item) continue;
|
|
27
|
-
nodes += 1;
|
|
28
|
-
if (nodes > 8192) return false;
|
|
29
|
-
const current = item.value;
|
|
30
|
-
if (item.leave) {
|
|
31
|
-
ancestors.delete(current);
|
|
32
|
-
continue;
|
|
33
|
-
}
|
|
34
|
-
if (current === void 0) return false;
|
|
35
|
-
if (current === null || typeof current === "boolean") continue;
|
|
36
|
-
if (typeof current === "string") {
|
|
37
|
-
if (current.length > 16384) return false;
|
|
38
|
-
continue;
|
|
39
|
-
}
|
|
40
|
-
if (typeof current === "number") {
|
|
41
|
-
if (!Number.isFinite(current)) return false;
|
|
42
|
-
continue;
|
|
43
|
-
}
|
|
44
|
-
if (typeof current !== "object" || item.depth >= 16) return false;
|
|
45
|
-
if (ancestors.has(current)) return false;
|
|
46
|
-
ancestors.add(current);
|
|
47
|
-
pending.push({
|
|
48
|
-
value: current,
|
|
49
|
-
depth: item.depth,
|
|
50
|
-
leave: true
|
|
51
|
-
});
|
|
52
|
-
if (Array.isArray(current)) {
|
|
53
|
-
if (current.length > 1024) return false;
|
|
54
|
-
for (const entry of current) pending.push({
|
|
55
|
-
value: entry,
|
|
56
|
-
depth: item.depth + 1
|
|
57
|
-
});
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
const prototype = Object.getPrototypeOf(current);
|
|
61
|
-
if (prototype !== Object.prototype && prototype !== null) return false;
|
|
62
|
-
const keys = Object.keys(current);
|
|
63
|
-
if (keys.length > 256) return false;
|
|
64
|
-
for (const key of keys) {
|
|
65
|
-
if (key.length > 512) return false;
|
|
66
|
-
pending.push({
|
|
67
|
-
value: current[key],
|
|
68
|
-
depth: item.depth + 1
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return true;
|
|
14
|
+
return boundedJson(value);
|
|
73
15
|
}
|
|
74
16
|
/** Exact serialized JSON UTF-8 byte count for one string scalar. */
|
|
75
17
|
function serializedJsonStringBytes(value) {
|
|
@@ -92,13 +34,28 @@ function serializedJsonStringBytes(value) {
|
|
|
92
34
|
}
|
|
93
35
|
return bytes;
|
|
94
36
|
}
|
|
37
|
+
/** Event content permits large strings within the exact serialized UTF-8 budget. */
|
|
38
|
+
function isBoundedEventContentJson(value, { omitUndefinedObjectFields = false } = {}) {
|
|
39
|
+
return boundedJson(value, {
|
|
40
|
+
content: true,
|
|
41
|
+
omitUndefinedObjectFields
|
|
42
|
+
});
|
|
43
|
+
}
|
|
95
44
|
/**
|
|
96
|
-
*
|
|
97
|
-
* content
|
|
98
|
-
*
|
|
99
|
-
* representation is capped exactly by UTF-8 bytes.
|
|
45
|
+
* Digest material omits undefined object fields; portable profile values require data properties.
|
|
46
|
+
* `content` bounds strings by the serialized UTF-8 budget instead of each string's length, for
|
|
47
|
+
* opaque values that may legitimately copy unbounded typed fields such as inline file content.
|
|
100
48
|
*/
|
|
101
|
-
function
|
|
49
|
+
function isBoundedJsonMaterial(value, { dataPropertiesOnly = false, content = false } = {}) {
|
|
50
|
+
return boundedJson(value, {
|
|
51
|
+
material: true,
|
|
52
|
+
omitUndefinedObjectFields: true,
|
|
53
|
+
dataPropertiesOnly,
|
|
54
|
+
content
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/** One iterative walker owns structural admission; typed domains keep their own schema limits. */
|
|
58
|
+
function boundedJson(value, options = {}) {
|
|
102
59
|
const pending = [{
|
|
103
60
|
value,
|
|
104
61
|
depth: 0
|
|
@@ -106,87 +63,75 @@ function isBoundedEventContentJson(value, { omitUndefinedObjectFields = false }
|
|
|
106
63
|
const ancestors = /* @__PURE__ */ new Set();
|
|
107
64
|
let nodes = 0;
|
|
108
65
|
let bytes = 0;
|
|
109
|
-
const addBytes = (
|
|
110
|
-
|
|
111
|
-
return bytes <= CONTRACT_MAX_JSON_BYTES;
|
|
112
|
-
};
|
|
113
|
-
while (pending.length > 0) {
|
|
66
|
+
const addBytes = (count) => !options.content || (bytes += count) <= 1048576;
|
|
67
|
+
while (pending.length) {
|
|
114
68
|
const item = pending.pop();
|
|
115
|
-
if (!item) continue;
|
|
116
69
|
const current = item.value;
|
|
117
|
-
if (
|
|
118
|
-
|
|
119
|
-
if (nodes > 8192) return false;
|
|
70
|
+
if ((!item.leave || !options.material) && ++nodes > 8192) return false;
|
|
71
|
+
if (current === void 0 && item.omitUndefined) continue;
|
|
120
72
|
if (item.leave) {
|
|
121
73
|
ancestors.delete(current);
|
|
122
74
|
continue;
|
|
123
75
|
}
|
|
124
|
-
if (current === null) {
|
|
125
|
-
if (!addBytes(4)) return false;
|
|
126
|
-
continue;
|
|
127
|
-
}
|
|
128
|
-
if (typeof current === "boolean") {
|
|
129
|
-
if (!addBytes(current ? 4 : 5)) return false;
|
|
76
|
+
if (current === null || typeof current === "boolean") {
|
|
77
|
+
if (!addBytes(current === null ? 4 : current ? 4 : 5)) return false;
|
|
130
78
|
continue;
|
|
131
79
|
}
|
|
132
80
|
if (typeof current === "string") {
|
|
133
|
-
if (!addBytes(serializedJsonStringBytes(current))) return false;
|
|
81
|
+
if (options.content ? !addBytes(serializedJsonStringBytes(current)) : current.length > 16384) return false;
|
|
134
82
|
continue;
|
|
135
83
|
}
|
|
136
84
|
if (typeof current === "number") {
|
|
137
|
-
if (!Number.isFinite(current)) return false;
|
|
138
|
-
if (!addBytes(JSON.stringify(current).length)) return false;
|
|
85
|
+
if (!Number.isFinite(current) || !addBytes(JSON.stringify(current).length)) return false;
|
|
139
86
|
continue;
|
|
140
87
|
}
|
|
141
|
-
if (typeof current !== "object" || item.depth >= 16) return false;
|
|
142
|
-
if (ancestors.has(current)) return false;
|
|
88
|
+
if (typeof current !== "object" || item.depth >= 16 || ancestors.has(current)) return false;
|
|
143
89
|
ancestors.add(current);
|
|
144
90
|
pending.push({
|
|
145
91
|
value: current,
|
|
146
92
|
depth: item.depth,
|
|
147
93
|
leave: true
|
|
148
94
|
});
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
})) return false;
|
|
161
|
-
for (const key of entryKeys) {
|
|
95
|
+
const array = Array.isArray(current);
|
|
96
|
+
if (array && current.length > 1024) return false;
|
|
97
|
+
const prototype = Object.getPrototypeOf(current);
|
|
98
|
+
if (!array && prototype !== Object.prototype && prototype !== null || array && options.content && prototype !== Array.prototype && prototype !== null) return false;
|
|
99
|
+
if (options.content || options.dataPropertiesOnly) {
|
|
100
|
+
const keys = Reflect.ownKeys(current).filter((key) => !array || key !== "length");
|
|
101
|
+
if (array ? keys.length !== current.length : keys.length > 256) return false;
|
|
102
|
+
let entries = 0;
|
|
103
|
+
for (const key of keys) {
|
|
104
|
+
if (typeof key !== "string" || !array && key.length > 512) return false;
|
|
105
|
+
if (array && (!/^(?:0|[1-9][0-9]*)$/u.test(key) || Number(key) >= current.length || Number(key) >= 4294967295)) return false;
|
|
162
106
|
const descriptor = Object.getOwnPropertyDescriptor(current, key);
|
|
163
|
-
if (
|
|
107
|
+
if (!descriptor?.enumerable || !("value" in descriptor)) return false;
|
|
108
|
+
if (!array && descriptor.value === void 0 && options.omitUndefinedObjectFields) {
|
|
109
|
+
if (++nodes > 8192) return false;
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
if (++entries > (array ? 1024 : 256)) return false;
|
|
113
|
+
if (!array && !addBytes(serializedJsonStringBytes(key) + 1)) return false;
|
|
164
114
|
pending.push({
|
|
165
115
|
value: descriptor.value,
|
|
166
116
|
depth: item.depth + 1
|
|
167
117
|
});
|
|
168
118
|
}
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
pending.push({
|
|
186
|
-
value: descriptor.value,
|
|
187
|
-
depth: item.depth + 1,
|
|
188
|
-
omitUndefined: omitUndefinedObjectFields
|
|
189
|
-
});
|
|
119
|
+
if (!addBytes(2 + Math.max(entries - 1, 0))) return false;
|
|
120
|
+
} else if (array) for (const entry of current) pending.push({
|
|
121
|
+
value: entry,
|
|
122
|
+
depth: item.depth + 1
|
|
123
|
+
});
|
|
124
|
+
else {
|
|
125
|
+
const keys = Object.keys(current);
|
|
126
|
+
if (keys.length > 256) return false;
|
|
127
|
+
for (const key of keys) {
|
|
128
|
+
if (key.length > 512) return false;
|
|
129
|
+
pending.push({
|
|
130
|
+
value: current[key],
|
|
131
|
+
depth: item.depth + 1,
|
|
132
|
+
omitUndefined: options.omitUndefinedObjectFields
|
|
133
|
+
});
|
|
134
|
+
}
|
|
190
135
|
}
|
|
191
136
|
}
|
|
192
137
|
return true;
|
|
@@ -891,7 +836,7 @@ K512[1];
|
|
|
891
836
|
*/
|
|
892
837
|
const sha256 = /* @__PURE__ */ createHasher(() => new _SHA256(), /* @__PURE__ */ oidNist(1));
|
|
893
838
|
//#endregion
|
|
894
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.
|
|
839
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-candidate-schema-common.js
|
|
895
840
|
const sha256Pattern = /^sha256:[a-f0-9]{64}$/;
|
|
896
841
|
const gitObjectPattern = /^(?:[a-f0-9]{40}|[a-f0-9]{64})$/;
|
|
897
842
|
const environmentNamePattern = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
@@ -1047,7 +992,7 @@ z.object({
|
|
|
1047
992
|
repo: z.string().regex(githubComponentPattern).refine((value) => value !== "." && value !== "..")
|
|
1048
993
|
}).strict();
|
|
1049
994
|
//#endregion
|
|
1050
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.
|
|
995
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-profile.js
|
|
1051
996
|
/**
|
|
1052
997
|
* Portable reasoning/thinking effort. Backends map it to their native control at materialization:
|
|
1053
998
|
* codex `model_reasoning_effort`, kimi `--thinking`/`--no-thinking`, claude thinking budget.
|
|
@@ -1075,7 +1020,7 @@ function trainedModelIdForArtifact(digest) {
|
|
|
1075
1020
|
return `${TRAINED_MODEL_PREFIX}${digest.slice(7)}`;
|
|
1076
1021
|
}
|
|
1077
1022
|
//#endregion
|
|
1078
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.
|
|
1023
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/harness.js
|
|
1079
1024
|
/**
|
|
1080
1025
|
* Recognized execution identities, not a deployment's list of installed runners.
|
|
1081
1026
|
* A profile's authored harness remains part of its canonical identity; execution
|
|
@@ -1107,4 +1052,4 @@ const harnessTypeSchema = z.enum([
|
|
|
1107
1052
|
"cli-base"
|
|
1108
1053
|
]);
|
|
1109
1054
|
//#endregion
|
|
1110
|
-
export { boundedIdentifierSchema as C, isBoundedEventContentJson as D, boundedStringSchema as E, boundedEventContentStringSchema as S, boundedJsonSchema as T,
|
|
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 };
|