@tangle-network/sandbox 0.60.7 → 0.60.9
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/README.md +25 -0
- 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 +2 -2
- package/dist/{agent-run-outcome-B7w8HpoL.d.ts → agent-run-outcome-xuBxUyRc.d.ts} +1 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{specs-CnqSWFNT-i2wJxPoD.js → cli-auth-bundle-CJSdRlx0.js} +53 -7
- package/dist/{client-AXO7ykS7.d.ts → client-BSWUEYZV.d.ts} +4 -4
- package/dist/{client-qSyPPokh.js → client-DAndLVD6.js} +3 -3
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/core.d.ts +5 -5
- package/dist/core.js +2 -2
- package/dist/{index-BPt77jdR.d.ts → index-CK2dUHe0.d.ts} +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +3 -3
- package/dist/{lines-ggdLY7xy.d.ts → lines-CBlVXTb_.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-D4T4wi9r.js → local-cli-auth-BgIIaUo2.js} +1 -1
- package/dist/{mcp-local-DjryqUiY.js → mcp-local-DY1CnWBn.js} +1 -1
- package/dist/{preview-CAiSrOuZ.d.ts → preview-6qDzj3pE.d.ts} +3 -3
- package/dist/runtime.d.ts +3 -3
- package/dist/{sandbox-DF2Z1lqW.js → sandbox-Do-2V95e.js} +22 -1
- package/dist/{sandbox-DsJ3ZJdA.d.ts → sandbox-flgG5fbm.d.ts} +10 -2
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-OZRTCbY4.js → tangle-BuamBAzx.js} +1 -1
- package/dist/{types-BbgO-4f8.d.ts → types-7TNwywMg.d.ts} +3 -1
- package/package.json +5 -5
- package/dist/cli-auth-bundle-DzbqR2nA.js +0 -53
- /package/dist/{cli-auth-bundle-CTia4WWs.d.ts → cli-auth-bundle-Dchr0WkF.d.ts} +0 -0
- /package/dist/{errors-DS32ViPj.d.ts → errors-CybOpzWU.d.ts} +0 -0
- /package/dist/{index-BoQeoNOD.d.ts → index-BCftzX-m.d.ts} +0 -0
- /package/dist/{index-BXcL8P-U.d.ts → index-C0SSGYYc.d.ts} +0 -0
- /package/dist/{preview-operations-DqSo-IBm.js → preview-operations-CbTiBE-a.js} +0 -0
package/README.md
CHANGED
|
@@ -443,6 +443,31 @@ Unsupported capabilities fail with a typed SDK error.
|
|
|
443
443
|
A hardened runc box can publish through an isolated Firecracker builder when the cell enables that capability.
|
|
444
444
|
Without a qualified builder, publication fails with `IN_BOX_DOCKER_UNAVAILABLE` or `WORKSPACE_IMAGE_BUILDER_UNAVAILABLE`.
|
|
445
445
|
|
|
446
|
+
## Named native credentials
|
|
447
|
+
|
|
448
|
+
A trusted server can grant one stored Claude token to a running sandbox:
|
|
449
|
+
|
|
450
|
+
```typescript
|
|
451
|
+
await box.grantNativeCredential({
|
|
452
|
+
harness: "claude-code",
|
|
453
|
+
cliAuth: { account: "research-seat", secretEnv: "RESEARCH_CLAUDE", format: "token" },
|
|
454
|
+
});
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
This uses the account-authenticated Sandbox API. The platform verifies personal
|
|
458
|
+
ownership or current team write access, reads only that namespace's named secret,
|
|
459
|
+
and installs it in the runtime's private native-credential store. Sandbox-scoped
|
|
460
|
+
keys and isolated sandboxes cannot grant stored credentials. No token value
|
|
461
|
+
returns to the caller or enters application environment access.
|
|
462
|
+
|
|
463
|
+
A runtime reporting `claudeTokenContinuations: true` can use a newly granted token
|
|
464
|
+
on a new turn of an idle Claude session. The old adapter releases its lease
|
|
465
|
+
before replacement; the transcript HOME and native session identity stay fixed.
|
|
466
|
+
An active adapter refuses replacement. Other harnesses and credential formats
|
|
467
|
+
are not qualified for this handoff. Existing execution retries must retain their
|
|
468
|
+
original reference. A named reference cannot replace its installed token value;
|
|
469
|
+
renewal needs a new owner-issued reference.
|
|
470
|
+
|
|
446
471
|
## Prompts
|
|
447
472
|
|
|
448
473
|
Configure the agent backend when creating the sandbox or override it for one prompt.
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-
|
|
2
|
-
import { Ba as BackendType, D as CodeExecutionResult, E as CodeExecutionOptions, Gi as SessionInfo, Kr as SandboxFleetParent, O as CodeLanguage, d as BackendConfig, k as CodeResultPart, qi as SessionListOptions } from "../types-
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { _ as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-flgG5fbm.js";
|
|
2
|
+
import { Ba as BackendType, D as CodeExecutionResult, E as CodeExecutionOptions, Gi as SessionInfo, Kr as SandboxFleetParent, O as CodeLanguage, d as BackendConfig, k as CodeResultPart, qi as SessionListOptions } from "../types-7TNwywMg.js";
|
|
3
|
+
import { i as Sandbox } from "../client-BSWUEYZV.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-6qDzj3pE.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
|
-
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-
|
|
1
|
+
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-DY1CnWBn.js";
|
|
2
2
|
import { k as assertCurrentBackendType } from "../interactive-controller-f_ePJqoh.js";
|
|
3
3
|
import { c as NotFoundError, g as ValidationError, m as StateError } from "../errors-D1JIX7Jm.js";
|
|
4
|
-
import { n as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
4
|
+
import { n as Sandbox } from "../client-DAndLVD6.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-Do-2V95e.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-6qDzj3pE.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 { 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-
|
|
1
|
+
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-CbTiBE-a.js";
|
|
2
2
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
3
3
|
//#region src/agent/preview-policy.ts
|
|
4
4
|
/** Channel-neutral preview tool selection from a host-authored profile. */
|
|
@@ -66,7 +66,7 @@ async function servePreviewMcp(request, config) {
|
|
|
66
66
|
if (typeof config.authorize !== "function") throw new Error("Preview MCP requires a host authorization callback");
|
|
67
67
|
const tools = config.tools ?? PREVIEW_TOOLS;
|
|
68
68
|
if (!tools.length || tools.some((tool) => !PREVIEW_TOOLS.includes(tool))) throw new Error("Preview MCP requires an explicit nonempty preview-only tool grant");
|
|
69
|
-
const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-
|
|
69
|
+
const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-DY1CnWBn.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
|
|
70
70
|
const handle = await createMcpServer(config.box, {
|
|
71
71
|
name: "tangle-previews",
|
|
72
72
|
sessionId: config.sessionId,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dr as SandboxEvent, a as AgentQuestionRequest, ct as DurablePlanSnapshot, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation } from "./types-
|
|
1
|
+
import { Dr as SandboxEvent, a as AgentQuestionRequest, ct as DurablePlanSnapshot, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation } from "./types-7TNwywMg.js";
|
|
2
2
|
import { InteractionRequest } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema, t as CliAuthReference } from "../cli-auth-bundle-
|
|
2
|
-
import { _ as ReadTokenPayload, a as issueCollaborationToken, c as issueSessionScopedToken, d as AnyTokenPayload, f as BatchScopedTokenPayload, g as ProjectScopedTokenPayload, h as IssueCollaborationTokenOptions, i as issueBatchScopedToken, l as unsafeDecodeToken, m as CollaborationTokenPayload, n as getTokenTTL, o as issueProjectScopedToken, p as CollaborationAccess, r as isTokenExpiringSoon, s as issueReadToken, t as ProductTokenIssuer, u as verifyToken, v as SessionScopedTokenPayload, y as TokenScope } from "../index-
|
|
1
|
+
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema, t as CliAuthReference } from "../cli-auth-bundle-Dchr0WkF.js";
|
|
2
|
+
import { _ as ReadTokenPayload, a as issueCollaborationToken, c as issueSessionScopedToken, d as AnyTokenPayload, f as BatchScopedTokenPayload, g as ProjectScopedTokenPayload, h as IssueCollaborationTokenOptions, i as issueBatchScopedToken, l as unsafeDecodeToken, m as CollaborationTokenPayload, n as getTokenTTL, o as issueProjectScopedToken, p as CollaborationAccess, r as isTokenExpiringSoon, s as issueReadToken, t as ProductTokenIssuer, u as verifyToken, v as SessionScopedTokenPayload, y as TokenScope } from "../index-BCftzX-m.js";
|
|
3
3
|
export { AnyTokenPayload, BatchScopedTokenPayload, CliAuthReference, CollaborationAccess, CollaborationTokenPayload, IssueCollaborationTokenOptions, ProductTokenIssuer, ProjectScopedTokenPayload, ReadTokenPayload, SessionScopedTokenPayload, TokenScope, assertCliAuthReferenceSupported, cliAuthReferenceSchema, getTokenTTL, isTokenExpiringSoon, issueBatchScopedToken, issueCollaborationToken, issueProjectScopedToken, issueReadToken, issueSessionScopedToken, materializeCliAuthBundle, unsafeDecodeToken, verifyToken };
|
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-CJSdRlx0.js";
|
|
2
2
|
//#region src/auth/tokens.ts
|
|
3
3
|
const textEncoder = new TextEncoder();
|
|
4
4
|
const textDecoder = new TextDecoder();
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { n as BACKEND_TYPE } from "./backend-types-C7b_Gpa0.js";
|
|
2
|
-
import { agentProfileSchema as agentProfileSchema$1 } from "@tangle-network/agent-interface";
|
|
2
|
+
import { agentProfileJsonSchema, agentProfileSchema as agentProfileSchema$1 } from "@tangle-network/agent-interface";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
//#region ../../../packages/cli-agent-registry/dist/specs-
|
|
5
|
-
const { $schema: _jsonSchemaDialect, ...agentProfileJsonSchema } = z.toJSONSchema(agentProfileSchema$1, {
|
|
6
|
-
io: "input",
|
|
7
|
-
unrepresentable: "any"
|
|
8
|
-
});
|
|
4
|
+
//#region ../../../packages/cli-agent-registry/dist/specs-CuvDK4-Y.mjs
|
|
9
5
|
z.globalRegistry.add(agentProfileSchema$1, {
|
|
10
6
|
id: "AgentProfile",
|
|
11
7
|
...agentProfileJsonSchema
|
|
@@ -533,4 +529,54 @@ function getSpec(name) {
|
|
|
533
529
|
return CLI_AGENT_SPECS.find((spec) => spec.name === name);
|
|
534
530
|
}
|
|
535
531
|
//#endregion
|
|
536
|
-
|
|
532
|
+
//#region ../../../packages/cli-agent-registry/dist/cli-auth-bundle.mjs
|
|
533
|
+
const DEFAULT_MODE = 384;
|
|
534
|
+
const AUTH_BUNDLE_PATHS = Object.freeze({
|
|
535
|
+
codex: ".codex/auth.json",
|
|
536
|
+
"claude-code": ".claude/.credentials.json"
|
|
537
|
+
});
|
|
538
|
+
/** Convert a native credential JSON bundle without reading host credentials. */
|
|
539
|
+
function materializeCliAuthBundle(backendType, rawBundle) {
|
|
540
|
+
if (backendType !== "codex" && backendType !== "claude-code") throw new Error("CLI auth bundle is not supported for the selected backend");
|
|
541
|
+
if (typeof rawBundle !== "string") throw new Error("CLI auth bundle must be a JSON object");
|
|
542
|
+
let value;
|
|
543
|
+
try {
|
|
544
|
+
value = JSON.parse(rawBundle);
|
|
545
|
+
} catch {
|
|
546
|
+
throw new Error("CLI auth bundle must be a JSON object");
|
|
547
|
+
}
|
|
548
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error("CLI auth bundle must be a JSON object");
|
|
549
|
+
return [{
|
|
550
|
+
path: AUTH_BUNDLE_PATHS[backendType],
|
|
551
|
+
content: rawBundle,
|
|
552
|
+
mode: DEFAULT_MODE
|
|
553
|
+
}];
|
|
554
|
+
}
|
|
555
|
+
const cliAuthReferenceSchema = z.object({
|
|
556
|
+
account: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9@._+-]{0,127}$/),
|
|
557
|
+
secretEnv: z.string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}$/),
|
|
558
|
+
format: z.enum([
|
|
559
|
+
"token",
|
|
560
|
+
"bundle",
|
|
561
|
+
"files"
|
|
562
|
+
])
|
|
563
|
+
}).strict();
|
|
564
|
+
z.array(z.object({
|
|
565
|
+
path: z.string().min(1).max(4096).refine((value) => !value.startsWith("/") && !/^[A-Za-z]:/.test(value) && !/[\\\0]/.test(value) && value.split("/").every((part) => part !== "" && part !== "." && part !== "..")),
|
|
566
|
+
content: z.string().max(1024 * 1024),
|
|
567
|
+
mode: z.number().int().min(0).max(448).refine((mode) => (mode & 63) === 0).optional()
|
|
568
|
+
}).strict()).min(1).max(128);
|
|
569
|
+
function assertCliAuthReferenceSupported(backendType, model) {
|
|
570
|
+
if (model.cliAuth === void 0) return void 0;
|
|
571
|
+
const parsedReference = cliAuthReferenceSchema.safeParse(model.cliAuth);
|
|
572
|
+
if (!parsedReference.success) throw new Error("Invalid native authentication reference");
|
|
573
|
+
const reference = parsedReference.data;
|
|
574
|
+
if (model.authMode === "api-key" || model.apiKey !== void 0 || model.apiKeyEnv !== void 0 || model.baseUrl !== void 0 || model.authFiles !== void 0) throw new Error("cliAuth cannot be combined with API credentials, baseUrl, or inline authFiles");
|
|
575
|
+
const spec = getSpec(backendType);
|
|
576
|
+
if (!spec?.hasCliAuth) throw new Error(`Native CLI authentication is unsupported by ${backendType}`);
|
|
577
|
+
if (reference.format === "token" && !spec.envVars.oauthToken) throw new Error(`Native subscription tokens are unsupported by ${backendType}`);
|
|
578
|
+
if (reference.format === "bundle" && backendType !== "codex" && backendType !== "claude-code") throw new Error(`Native credential bundles are unsupported by ${backendType}`);
|
|
579
|
+
return reference;
|
|
580
|
+
}
|
|
581
|
+
//#endregion
|
|
582
|
+
export { materializeCliAuthBundle as i, assertCliAuthReferenceSupported as n, cliAuthReferenceSchema as r, AUTH_BUNDLE_PATHS as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-
|
|
1
|
+
import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-flgG5fbm.js";
|
|
2
2
|
import { l as ScopedToken, s as MintInteractiveSessionTokenOptions } from "./terminal-stream-BUMu8Oae.js";
|
|
3
|
-
import { P as LinesClient } from "./lines-
|
|
4
|
-
import { $n as PublicTemplateInfo, Ar as SandboxFleetArtifact, B as CreateSandboxOptions, Bt as FleetDispatchStreamOptions, Ea as UsageInfo, En as ListSandboxOptions, Er as SandboxEnvironment, F as CreateIntelligenceReportOptions, Fi as SecretsManager, Fr as SandboxFleetDriverCapability, Ft as FleetAgentResult, G as DeleteMatchingSandboxesFilter, Gr as SandboxFleetOperationsSummary, Gt as FleetMachineId, Hr as SandboxFleetMachineSpec, Ht as FleetDriveTurnRequest, I as CreateRequestOptions, Jn as PromptResult, Jr as SandboxFleetPolicy, Jt as FleetRunEvent, K as DeleteMatchingSandboxesOptions, Kn as PromptInputPart, Kr as SandboxFleetParent, Kt as FleetPromptDispatchOptions, L as CreateSandboxFleetOptions, Lr as SandboxFleetInfo, Lt as FleetDispatchCancelResult, M as ConversationTurnOptions, Mr as SandboxFleetCostEstimate, N as ConversationTurnResult, Nt as FleetAgentId, Or as SandboxFleetAgent, Pa as BatchEvent, Pr as SandboxFleetDispatchResponse, Qr as SandboxFleetTraceBundle, R as CreateSandboxFleetTokenOptions, Rt as FleetDispatchResultBuffer, Tn as ListSandboxFleetOptions, Ur as SandboxFleetManifest, Ut as FleetExecDispatchOptions, Vr as SandboxFleetMachineRecord, Vt as FleetDriveTurnOutcome, Wt as FleetExecDispatchResult, Xr as SandboxFleetSpend, Yt as FleetRunOptions, Zr as SandboxFleetToken, _n as IntelligenceReport, aa as SshKeysManager, ai as SandboxFleetWorkspaceRestoreResult, ar as ReconcileSandboxFleetsOptions, b as BatchRunRequest, ba as TokenRefreshHandler, ci as SandboxInfo, d as BackendConfig, er as PublicTemplateVersionInfo, ii as SandboxFleetWorkspaceReconcileResult, ir as ReapExpiredSandboxFleetsResult, jr as SandboxFleetArtifactSpec, l as AttachSandboxFleetMachineOptions, la as SubscriptionInfo, ni as SandboxFleetUsage, nr as PublishPublicTemplateVersionOptions, oi as SandboxFleetWorkspaceSnapshotResult, or as ReconcileSandboxFleetsResult, q as DeleteMatchingSandboxesResult, qn as PromptOptions, qt as FleetPromptDispatchResult, rr as ReapExpiredSandboxFleetsOptions, si as SandboxIdentity, ti as SandboxFleetTraceOptions, tr as PublishPublicTemplateOptions, v as BatchResult, vn as IntelligenceReportBudget, vt as ExecOptions, xn as IntelligenceReportWindow, y as BatchRunOptions, yi as SandboxShapesInfo, yn as IntelligenceReportCompareTo, yr as SandboxConfig, yt as ExecResult, z as CreateSandboxFleetWithCoordinatorOptions, zt as FleetDispatchResultBufferOptions } from "./types-
|
|
5
|
-
import { f as SandboxError } from "./errors-
|
|
3
|
+
import { P as LinesClient } from "./lines-CBlVXTb_.js";
|
|
4
|
+
import { $n as PublicTemplateInfo, Ar as SandboxFleetArtifact, B as CreateSandboxOptions, Bt as FleetDispatchStreamOptions, Ea as UsageInfo, En as ListSandboxOptions, Er as SandboxEnvironment, F as CreateIntelligenceReportOptions, Fi as SecretsManager, Fr as SandboxFleetDriverCapability, Ft as FleetAgentResult, G as DeleteMatchingSandboxesFilter, Gr as SandboxFleetOperationsSummary, Gt as FleetMachineId, Hr as SandboxFleetMachineSpec, Ht as FleetDriveTurnRequest, I as CreateRequestOptions, Jn as PromptResult, Jr as SandboxFleetPolicy, Jt as FleetRunEvent, K as DeleteMatchingSandboxesOptions, Kn as PromptInputPart, Kr as SandboxFleetParent, Kt as FleetPromptDispatchOptions, L as CreateSandboxFleetOptions, Lr as SandboxFleetInfo, Lt as FleetDispatchCancelResult, M as ConversationTurnOptions, Mr as SandboxFleetCostEstimate, N as ConversationTurnResult, Nt as FleetAgentId, Or as SandboxFleetAgent, Pa as BatchEvent, Pr as SandboxFleetDispatchResponse, Qr as SandboxFleetTraceBundle, R as CreateSandboxFleetTokenOptions, Rt as FleetDispatchResultBuffer, Tn as ListSandboxFleetOptions, Ur as SandboxFleetManifest, Ut as FleetExecDispatchOptions, Vr as SandboxFleetMachineRecord, Vt as FleetDriveTurnOutcome, Wt as FleetExecDispatchResult, Xr as SandboxFleetSpend, Yt as FleetRunOptions, Zr as SandboxFleetToken, _n as IntelligenceReport, aa as SshKeysManager, ai as SandboxFleetWorkspaceRestoreResult, ar as ReconcileSandboxFleetsOptions, b as BatchRunRequest, ba as TokenRefreshHandler, ci as SandboxInfo, d as BackendConfig, er as PublicTemplateVersionInfo, ii as SandboxFleetWorkspaceReconcileResult, ir as ReapExpiredSandboxFleetsResult, jr as SandboxFleetArtifactSpec, l as AttachSandboxFleetMachineOptions, la as SubscriptionInfo, ni as SandboxFleetUsage, nr as PublishPublicTemplateVersionOptions, oi as SandboxFleetWorkspaceSnapshotResult, or as ReconcileSandboxFleetsResult, q as DeleteMatchingSandboxesResult, qn as PromptOptions, qt as FleetPromptDispatchResult, rr as ReapExpiredSandboxFleetsOptions, si as SandboxIdentity, ti as SandboxFleetTraceOptions, tr as PublishPublicTemplateOptions, v as BatchResult, vn as IntelligenceReportBudget, vt as ExecOptions, xn as IntelligenceReportWindow, y as BatchRunOptions, yi as SandboxShapesInfo, yn as IntelligenceReportCompareTo, yr as SandboxConfig, yt as ExecResult, z as CreateSandboxFleetWithCoordinatorOptions, zt as FleetDispatchResultBufferOptions } from "./types-7TNwywMg.js";
|
|
5
|
+
import { f as SandboxError } from "./errors-CybOpzWU.js";
|
|
6
6
|
import { AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import { r as backendTypeSchema } from "./backend-types-C7b_Gpa0.js";
|
|
|
2
2
|
import { C as SANDBOX_PROXY_REQUEST_MAX_BYTES, D as parseSSEStream, E as encodeTextForWire, O as applyRequestedModel, T as encodePromptForWire, j as normalizeRuntimeBackendConfig, k as assertCurrentBackendType, s as requestInteractiveSessionToken } from "./interactive-controller-f_ePJqoh.js";
|
|
3
3
|
import { _ as parseErrorResponse, c as NotFoundError, f as SandboxError, g as ValidationError, h as TimeoutError, l as PartialFailureError, p as ServerError, s as NetworkError, t as AuthError, v as parseResponseError, y as readResponseJson } from "./errors-D1JIX7Jm.js";
|
|
4
4
|
import { f as combineAbortSignals } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
5
|
-
import { C as normalizeSandboxShape, E as exportTraceBundle, S as normalizeConnection, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof, w as rewrapResponse } from "./sandbox-
|
|
5
|
+
import { C as normalizeSandboxShape, E as exportTraceBundle, S as normalizeConnection, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof, w as rewrapResponse } from "./sandbox-Do-2V95e.js";
|
|
6
6
|
import { LinesClient } from "./lines.js";
|
|
7
7
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
8
8
|
import { z } from "zod";
|
|
@@ -3685,11 +3685,11 @@ function withRequestContextHeaders(response, path, method) {
|
|
|
3685
3685
|
return rewrapResponse(response, headers);
|
|
3686
3686
|
}
|
|
3687
3687
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
3688
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
3688
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-BgIIaUo2.js");
|
|
3689
3689
|
return discoverLocalCliAuthFiles(backendType);
|
|
3690
3690
|
}
|
|
3691
3691
|
async function describeLocalCliAuthExpectation(backendType) {
|
|
3692
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
3692
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-BgIIaUo2.js");
|
|
3693
3693
|
return describe(backendType);
|
|
3694
3694
|
}
|
|
3695
3695
|
async function hydrateLocalCliBackendAuth(backend, baseUrl, trustLocalCliAuth) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "../index-
|
|
1
|
+
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "../index-C0SSGYYc.js";
|
|
2
2
|
export { CollaborationBootstrapRequest, CollaborationBootstrapResponse, CollaborationClient, CollaborationClientConfig, CollaborationDocumentAdapter, CollaborationDocumentChange, CollaborationDocumentRef, CollaborationFileBridge, CollaborationFileBridgeOptions, CollaborationFileEvent, CollaborationPermissions, CollaborationTokenRefreshRequest, CollaborationTokenRefreshResponse, CollaborationTransportConfig, SaveCollaborationSnapshotRequest, SaveCollaborationSnapshotResponse, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-
|
|
2
|
-
import { B as LINE_APPLICATION_REQUEST_MAX_BYTES, D as LineSendReceipt, E as LineSendInput, G as LineApplicationView, H as LineApplicationRequest, K as parseLineApplicationRequest, L as lineInstanceKey, O as LineSenderVerification, P as LinesClient, R as profileChannelReference, U as LineApplicationResult, V as LineApplication, W as LineApplicationState, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, h as LineMemberInstance, k as LineSenderVerificationStart, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, q as parseLineApplicationResult, s as LineAttachment, t as Line, x as LineReminderPreferences, y as LineNumberInventory, z as LINE_APPLICATION_REPLY_MAX_CHARS } from "./lines-
|
|
3
|
-
import { An as NetworkConfig, B as CreateSandboxOptions, Fn as PreviewLinkInfo, Ga as ManagedProcessRecord, Ha as ManagedProcessClient, In as PreviewLinkManager, Ka as ManagedProcessSpec, Kn as PromptInputPart, Ln as PreviewLinkWaitOptions, M as ConversationTurnOptions, N as ConversationTurnResult, Ua as ManagedProcessJobs, Wa as ManagedProcessOptions, Yi as SessionMessageAdmission, bi as SandboxStatus, ci as SandboxInfo, qa as ManagedProcessState, vt as ExecOptions, yr as SandboxConfig, yt as ExecResult } from "./types-
|
|
4
|
-
import { A as isBackendRegistryInteractionKind, C as BackendRegistryEntry, D as backendRegistryEntrySchema, E as backendRegistryCapabilitiesSchema, M as parseBackendRegistryResponseBody, O as backendRegistryInteractionKindSchema, S as BackendRegistryCapabilities, T as BackendRegistryResponse, d as HostedInstance, f as InstanceProfile, g as InstancesClient, i as Sandbox, j as parseBackendRegistryResponse, k as backendRegistryResponseSchema, m as InstanceRestartingError, p as InstanceRecord, u as EnsureInstanceOptions, w as BackendRegistryInteractionKind } from "./client-
|
|
5
|
-
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-
|
|
1
|
+
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-flgG5fbm.js";
|
|
2
|
+
import { B as LINE_APPLICATION_REQUEST_MAX_BYTES, D as LineSendReceipt, E as LineSendInput, G as LineApplicationView, H as LineApplicationRequest, K as parseLineApplicationRequest, L as lineInstanceKey, O as LineSenderVerification, P as LinesClient, R as profileChannelReference, U as LineApplicationResult, V as LineApplication, W as LineApplicationState, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, h as LineMemberInstance, k as LineSenderVerificationStart, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, q as parseLineApplicationResult, s as LineAttachment, t as Line, x as LineReminderPreferences, y as LineNumberInventory, z as LINE_APPLICATION_REPLY_MAX_CHARS } from "./lines-CBlVXTb_.js";
|
|
3
|
+
import { An as NetworkConfig, B as CreateSandboxOptions, Fn as PreviewLinkInfo, Ga as ManagedProcessRecord, Ha as ManagedProcessClient, In as PreviewLinkManager, Ka as ManagedProcessSpec, Kn as PromptInputPart, Ln as PreviewLinkWaitOptions, M as ConversationTurnOptions, N as ConversationTurnResult, Ua as ManagedProcessJobs, Wa as ManagedProcessOptions, Yi as SessionMessageAdmission, bi as SandboxStatus, ci as SandboxInfo, qa as ManagedProcessState, vt as ExecOptions, yr as SandboxConfig, yt as ExecResult } from "./types-7TNwywMg.js";
|
|
4
|
+
import { A as isBackendRegistryInteractionKind, C as BackendRegistryEntry, D as backendRegistryEntrySchema, E as backendRegistryCapabilitiesSchema, M as parseBackendRegistryResponseBody, O as backendRegistryInteractionKindSchema, S as BackendRegistryCapabilities, T as BackendRegistryResponse, d as HostedInstance, f as InstanceProfile, g as InstancesClient, i as Sandbox, j as parseBackendRegistryResponse, k as backendRegistryResponseSchema, m as InstanceRestartingError, p as InstanceRecord, u as EnsureInstanceOptions, w as BackendRegistryInteractionKind } from "./client-BSWUEYZV.js";
|
|
5
|
+
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-CybOpzWU.js";
|
|
6
6
|
|
|
7
7
|
//#region src/core.d.ts
|
|
8
8
|
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as ValidationError, h as TimeoutError, l as PartialFailureError, m as StateError, n as CapabilityError, p as ServerError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-D1JIX7Jm.js";
|
|
2
|
-
import { _ as backendRegistryInteractionKindSchema, b as parseBackendRegistryResponse, c as InstanceRestartingError, g as backendRegistryEntrySchema, h as backendRegistryCapabilitiesSchema, l as InstancesClient, n as Sandbox, s as HostedInstance, v as backendRegistryResponseSchema, x as parseBackendRegistryResponseBody, y as isBackendRegistryInteractionKind } from "./client-
|
|
3
|
-
import { o as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
2
|
+
import { _ as backendRegistryInteractionKindSchema, b as parseBackendRegistryResponse, c as InstanceRestartingError, g as backendRegistryEntrySchema, h as backendRegistryCapabilitiesSchema, l as InstancesClient, n as Sandbox, s as HostedInstance, v as backendRegistryResponseSchema, x as parseBackendRegistryResponseBody, y as isBackendRegistryInteractionKind } from "./client-DAndLVD6.js";
|
|
3
|
+
import { o as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-Do-2V95e.js";
|
|
4
4
|
import { LinesClient, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
5
5
|
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-C2SuT1zK.js";
|
|
6
6
|
//#region src/core.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as HttpClient, r as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { B as CreateSandboxOptions } from "./types-
|
|
1
|
+
import { n as HttpClient, r as SandboxInstance } from "./sandbox-flgG5fbm.js";
|
|
2
|
+
import { B as CreateSandboxOptions } from "./types-7TNwywMg.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tangle/abi.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { A as InteractiveStopCommand, B as SandboxInteractionConflict, C as InteractiveSessionHandleOptions, D as InteractiveSessionRef, E as InteractiveSessionInfo, F as InteractiveTerminalFrameLog, G as CONTROL_PLANE_MCP_SERVER_NAME, H as SandboxInteractionResult, I as InteractiveTerminalMetadata, J as SandboxMcpEndpoint, K as SANDBOX_MCP_SERVER_NAME, L as createInteractiveTerminalCapture, M as RespondToPermissionOptions, N as agentInteractiveSessionPromptRequestDigest, O as InteractiveSessionStartOptions, P as InteractiveTerminalCapture, R as createInteractiveTerminalSession, S as InteractiveSessionHandle, T as InteractiveSessionIncarnationId, U as BuildControlPlaneMcpConfigOptions, V as SandboxInteractionResolution, W as BuildSandboxMcpConfigOptions, X as buildControlPlaneMcpConfig, Y as SandboxMcpServerEntry, Z as buildSandboxMcpConfig, _ as SandboxSession, a as WorkspaceImagePublishRequestOptions, b as InteractivePromptCommand, c as TraceExportFormat, d as buildTraceExportPayload, f as exportTraceBundle, g as RawEvidenceExport, h as SandboxTaskSession, i as WorkspaceImagePublishInput, j as InterruptResult, k as InteractiveSessionStartResult, l as TraceExportResult, m as toOtelJson, o as WorkspaceImagePublishResult, p as otelTraceIdForTangleTrace, q as SandboxMcpConfig, r as SandboxInstance, s as WorkspaceImages, t as ForkAcknowledgement, u as TraceExportSink, v as AgentInteractiveTerminalSession, w as InteractiveSessionHost, x as InteractiveSessionControlClaim, y as InteractiveControlClaimRequest, z as SandboxInteractionCommandResult } from "./sandbox-
|
|
1
|
+
import { A as InteractiveStopCommand, B as SandboxInteractionConflict, C as InteractiveSessionHandleOptions, D as InteractiveSessionRef, E as InteractiveSessionInfo, F as InteractiveTerminalFrameLog, G as CONTROL_PLANE_MCP_SERVER_NAME, H as SandboxInteractionResult, I as InteractiveTerminalMetadata, J as SandboxMcpEndpoint, K as SANDBOX_MCP_SERVER_NAME, L as createInteractiveTerminalCapture, M as RespondToPermissionOptions, N as agentInteractiveSessionPromptRequestDigest, O as InteractiveSessionStartOptions, P as InteractiveTerminalCapture, R as createInteractiveTerminalSession, S as InteractiveSessionHandle, T as InteractiveSessionIncarnationId, U as BuildControlPlaneMcpConfigOptions, V as SandboxInteractionResolution, W as BuildSandboxMcpConfigOptions, X as buildControlPlaneMcpConfig, Y as SandboxMcpServerEntry, Z as buildSandboxMcpConfig, _ as SandboxSession, a as WorkspaceImagePublishRequestOptions, b as InteractivePromptCommand, c as TraceExportFormat, d as buildTraceExportPayload, f as exportTraceBundle, g as RawEvidenceExport, h as SandboxTaskSession, i as WorkspaceImagePublishInput, j as InterruptResult, k as InteractiveSessionStartResult, l as TraceExportResult, m as toOtelJson, o as WorkspaceImagePublishResult, p as otelTraceIdForTangleTrace, q as SandboxMcpConfig, r as SandboxInstance, s as WorkspaceImages, t as ForkAcknowledgement, u as TraceExportSink, v as AgentInteractiveTerminalSession, w as InteractiveSessionHost, x as InteractiveSessionControlClaim, y as InteractiveControlClaimRequest, z as SandboxInteractionCommandResult } from "./sandbox-flgG5fbm.js";
|
|
2
2
|
import { c as MintScopedTokenOptions, d as TERMINAL_WS_ECHO_SUBPROTOCOL, f as TerminalExitInfo, g as TerminalStreamAuthFormat, h as TerminalReadyInfo, i as TerminalStreamOptions, l as ScopedToken, m as TerminalOutputMessage, n as TerminalStreamError, o as TerminalStreamToken, p as TerminalInteractiveSessionIdentity, r as TerminalStreamHandlers, s as MintInteractiveSessionTokenOptions, t as TerminalStream, u as ScopedTokenScope } from "./terminal-stream-BUMu8Oae.js";
|
|
3
3
|
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as interactiveSessionIdentityDigest, f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as InteractiveSessionNotRunningError, m as InteractiveControlClaimOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimAcknowledgement, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as createInteractiveControlHolderId } from "./browser-interactive-control-controller-C-3MDol8.js";
|
|
4
4
|
import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-iYddZt8b.js";
|
|
5
|
-
import { A as LineThread, B as LINE_APPLICATION_REQUEST_MAX_BYTES, C as LineRespondAgent, D as LineSendReceipt, E as LineSendInput, G as LineApplicationView, H as LineApplicationRequest, I as SandboxLines, K as parseLineApplicationRequest, L as lineInstanceKey, M as LineVoice, N as LineVoiceOptions, O as LineSenderVerification, P as LinesClient, R as profileChannelReference, S as LineReplyGate, T as LineRole, U as LineApplicationResult, V as LineApplication, W as LineApplicationState, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineTransport, k as LineSenderVerificationStart, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, q as parseLineApplicationResult, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineRespondView, x as LineReminderPreferences, y as LineNumberInventory, z as LINE_APPLICATION_REPLY_MAX_CHARS } from "./lines-
|
|
6
|
-
import { $ as DownloadOptions, $i as SnapshotDeleteAcknowledgement, $n as PublicTemplateInfo, $r as SandboxFleetTraceEvent, $t as GPU_LEASE_PROVIDER_NAMES, A as CommitTaskSessionOptions, Aa as WriteFileOptions, Ai as SandboxTraceOptions, An as NetworkConfig, Ar as SandboxFleetArtifact, At as FileUsageOptions, B as CreateSandboxOptions, Ba as BackendType, Bi as SessionEventStreamOptions, Bn as ProcessListOptions, Br as SandboxFleetMachineMeteredUsage, Bt as FleetDispatchStreamOptions, C as BranchOptions, Ca as UpdateUserOptions, Ci as SandboxTerminalInfo, Cn as ListMessagesOptions, Cr as SandboxDeleteAcknowledgement, Ct as FileReadError, Da as WaitForOptions, Di as SandboxTraceBundle, Dn as MAX_EGRESS_DENIALS_LIMIT, Dr as SandboxEvent, Dt as FileTreeFile, Ea as UsageInfo, Ei as SandboxTerminals, En as ListSandboxOptions, Er as SandboxEnvironment, Et as FileSystem, F as CreateIntelligenceReportOptions, Fa as BatchEventDataMap, Fi as SecretsManager, Fn as PreviewLinkInfo, Fr as SandboxFleetDriverCapability, Ft as FleetAgentResult, G as DeleteMatchingSandboxesFilter, Ga as ManagedProcessRecord, Gi as SessionInfo, Gn as ProcessStatus, Gr as SandboxFleetOperationsSummary, Gt as FleetMachineId, H as CreateTaskSessionOptions, Ha as ManagedProcessClient, Hi as SessionExecutionStatus, Hn as ProcessManager, Hr as SandboxFleetMachineSpec, Ht as FleetDriveTurnRequest, I as CreateRequestOptions, Ia as BatchSidecarGroup, Ii as SendSessionMessageOptions, In as PreviewLinkManager, Ir as SandboxFleetDriverTimings, It as FleetAgentRunStatus, J as DeleteOptions, Ji as SessionMessage, Jn as PromptResult, Jr as SandboxFleetPolicy, Jt as FleetRunEvent, K as DeleteMatchingSandboxesOptions, Ka as ManagedProcessSpec, Ki as SessionInterruptOptions, Kn as PromptInputPart, Kr as SandboxFleetParent, Kt as FleetPromptDispatchOptions, L as CreateSandboxFleetOptions, La as BatchTaskUsage, Li as SendSessionMessageRequest, Ln as PreviewLinkWaitOptions, Lr as SandboxFleetInfo, Lt as FleetDispatchCancelResult, M as ConversationTurnOptions, Ma as WriteManyOptions, Mi as SearchMatch, Mn as NonHostAgentDriverConfig, Mr as SandboxFleetCostEstimate, Mt as FileWriteResult, N as ConversationTurnResult, Na as BatchBackendStats, Ni as SearchOptions, Nn as PermissionLevel, Nr as SandboxFleetDispatchFailureClass, Nt as FleetAgentId, Oa as WaitForRolloutOptions, Oi as SandboxTraceEvent, On as McpServerConfig, Or as SandboxFleetAgent, Ot as FileTreeOptions, P as CreateGpuLeaseOptions, Pa as BatchEvent, Pi as SecretInfo, Pn as PermissionsManager, Pr as SandboxFleetDispatchResponse, Pt as FleetAgentPlacement, Q as DispatchedSession, Qi as SessionStatus, Qn as ProvisionStep, Qr as SandboxFleetTraceBundle, Qt as ForkLookupOptions, Ra as PublicBatchRunRequest, Ri as SentSessionMessage, Rn as Process, Rr as SandboxFleetIntelligenceEnvelope, Rt as FleetDispatchResultBuffer, S as BatchTaskResult, Sa as TurnDriveResult, Si as SandboxTerminalCreateOptions, Sr as SandboxCreateReceipt, St as FileReadBatchResult, T as ChunkedUploadResult, Ta as UploadProgress, Ti as SandboxTerminalRequestOptions, Tn as ListSandboxFleetOptions, Tr as SandboxDeleteOutcome, Tt as FileRenameResult, U as DeleteMatchingSandboxOutcome, Ua as ManagedProcessJobs, Ui as SessionFailureReason, Un as ProcessSignal, Ur as SandboxFleetManifest, Ut as FleetExecDispatchOptions, V as CreateSessionOptions, Va as parseBackendType, Vi as SessionExecutionInfo, Vn as ProcessLogEntry, Vr as SandboxFleetMachineRecord, Vt as FleetDriveTurnOutcome, W as DeleteMatchingSandboxResult, Wa as ManagedProcessOptions, Wi as SessionForkOptions, Wn as ProcessSpawnOptions, Wr as SandboxFleetManifestMachine, X as DirectoryPermission, Xi as SessionMessageInputPart, Xn as ProvisionResult, Xr as SandboxFleetSpend, Xt as ForkCounts, Y as DevServerInfo, Yi as SessionMessageAdmission, Yn as ProvisionEvent, Yr as SandboxFleetProfileRef, Yt as FleetRunOptions, Z as DispatchPromptOptions, Zi as SessionResultOptions, Zn as ProvisionStatus, Zr as SandboxFleetToken, Zt as ForkIdempotency, _ as BatchBackend, _a as TeeAttestationResponse, _i as SandboxShape, _n as IntelligenceReport, _r as SSHCommandDescriptor, _t as ExactProcessSpawnOptions, ai as SandboxFleetWorkspaceRestoreResult, an as GitStatus, ar as ReconcileSandboxFleetsOptions, at as DriverType, b as BatchRunRequest, ba as TokenRefreshHandler, bi as SandboxStatus, bn as IntelligenceReportSubjectType, br as SandboxConnection, bt as FileInfo, c as AttachGpuLeaseOptions, ca as StorageConfig, ci as SandboxInfo, cn as GpuLeaseCommandResult, d as BackendConfig, da as TaskSessionCommitResult, di as SandboxPortPreviewLink, dn as GpuLeaseManager, dr as RolloutChildResult, dt as EffectiveBackendSource, ea as SnapshotDeleteOutcome, ei as SandboxFleetTraceExport, en as GitAuth, er as PublicTemplateVersionInfo, et as DownloadProgress, f as BackendInfo, fa as TaskSessionFileChange, fi as SandboxRemovalState, fn as GpuLeaseProviderName, fr as RolloutOptions, ft as EgressDenial, g as BackendStatus, ga as TeeAttestationReport, gi as SandboxRuntimeHealth, gn as InstalledTool, gr as RolloutTurnPart, gt as EventStreamOptions, h as BackendRuntimeConfigUpdate, ha as TeeAttestationOptions, hi as SandboxRuntimeCapabilities, hn as HostAgentRuntimeBackend, hr as RolloutStatus, ht as EnsureDevServerOptions, ia as SnapshotResult, ii as SandboxFleetWorkspaceReconcileResult, in as GitDiff, ir as ReapExpiredSandboxFleetsResult, it as DriverInfo, j as CompletedTurnResult, ja as WriteManyFile, ji as SandboxUser, jn as NetworkManager, jr as SandboxFleetArtifactSpec, jt as FileUsageResult, ka as WorkspaceOperationLookup, ki as SandboxTraceExport, kn as MkdirOptions, kr as SandboxFleetAgentSpec, kt as FileTreeResult, l as AttachSandboxFleetMachineOptions, la as SubscriptionInfo, li as SandboxIntelligenceEnvelope, ln as GpuLeaseExecOptions, lt as EffectiveBackend, m as BackendMcpServerStatus, ma as TaskSessionProfile, mi as SandboxResources, mn as HostAgentDriverConfig, mr as RolloutStartResult, mt as EgressPolicy, n as AccessPolicyRule, na as SnapshotInfo, ni as SandboxFleetUsage, nn as GitCommit, nr as PublishPublicTemplateVersionOptions, nt as DriveTurnOptions, oa as StartupDiagnostics, oi as SandboxFleetWorkspaceSnapshotResult, on as GpuLease, or as ReconcileSandboxFleetsResult, ot as DurablePlan, p as BackendManager, pa as TaskSessionInfo, pi as SandboxResourceUsage, pn as GpuLeaseStatus, pr as RolloutScorer, pt as EgressManager, q as DeleteMatchingSandboxesResult, qa as ManagedProcessState, qi as SessionListOptions, qn as PromptOptions, qr as SandboxFleetPlacement, qt as FleetPromptDispatchResult, r as AddUserOptions, ra as SnapshotOptions, ri as SandboxFleetWorkspace, rn as GitConfig, rr as ReapExpiredSandboxFleetsOptions, rt as DriverConfig, sa as StartupOperation, si as SandboxIdentity, sn as GpuLeaseBilling, sr as RenameOptions, st as DurablePlanDecisionResult, t as AcceleratorKind, ta as SnapshotIdempotency, ti as SandboxFleetTraceOptions, tn as GitBranch, tr as PublishPublicTemplateOptions, tt as DownloadResult, u as BackendCapabilities, ua as TaskSessionChanges, ui as SandboxPortBinding, un as GpuLeaseExecResult, ur as Rollout, ut as EffectiveBackendProfile, v as BatchResult, va as TeePublicKey, vi as SandboxShapePreset, vn as IntelligenceReportBudget, vr as SSHCredentials, vt as ExecOptions, w as ChunkedUploadOptions, wa as UploadOptions, wi as SandboxTerminalManager, wn as ListOptions, wr as SandboxDeleteOptions, wt as FileReadResult, x as BatchTask, xa as TokenUsage, xi as SandboxTerminalAttachOptions, xn as IntelligenceReportWindow, xr as SandboxCreateOutcome, xt as FileReadBatchOptions, y as BatchRunOptions, ya as TeePublicKeyResponse, yi as SandboxShapesInfo, yn as IntelligenceReportCompareTo, yr as SandboxConfig, yt as ExecResult, z as CreateSandboxFleetWithCoordinatorOptions, za as ALL_BACKEND_TYPES, zi as SessionBackendCredentials, zn as ProcessInfo, zr as SandboxFleetMachine, zt as FleetDispatchResultBufferOptions } from "./types-
|
|
7
|
-
import { A as isBackendRegistryInteractionKind, C as BackendRegistryEntry, D as backendRegistryEntrySchema, E as backendRegistryCapabilitiesSchema, M as parseBackendRegistryResponseBody, O as backendRegistryInteractionKindSchema, S as BackendRegistryCapabilities, T as BackendRegistryResponse, _ as SandboxFleet, a as Team, b as ParsedSSEEvent, c as SessionBroadcastEvent, d as HostedInstance, f as InstanceProfile, g as InstancesClient, h as InstanceStart, i as Sandbox, j as parseBackendRegistryResponse, k as backendRegistryResponseSchema, l as SessionBroadcastResult, m as InstanceRestartingError, n as IntelligenceClient, o as TeamInvitation, p as InstanceRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as EnsureInstanceOptions, v as SandboxFleetClient, w as BackendRegistryInteractionKind, x as parseSSEStream, y as ParseSSEStreamOptions } from "./client-
|
|
8
|
-
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, d as ResumeEnvRequiredError, f as SandboxError, g as StateError, h as ServerError, i as EgressProxyRecoveryError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxErrorJson, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-
|
|
9
|
-
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-
|
|
10
|
-
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-
|
|
11
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
12
|
-
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-
|
|
5
|
+
import { A as LineThread, B as LINE_APPLICATION_REQUEST_MAX_BYTES, C as LineRespondAgent, D as LineSendReceipt, E as LineSendInput, G as LineApplicationView, H as LineApplicationRequest, I as SandboxLines, K as parseLineApplicationRequest, L as lineInstanceKey, M as LineVoice, N as LineVoiceOptions, O as LineSenderVerification, P as LinesClient, R as profileChannelReference, S as LineReplyGate, T as LineRole, U as LineApplicationResult, V as LineApplication, W as LineApplicationState, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineTransport, k as LineSenderVerificationStart, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, q as parseLineApplicationResult, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineRespondView, x as LineReminderPreferences, y as LineNumberInventory, z as LINE_APPLICATION_REPLY_MAX_CHARS } from "./lines-CBlVXTb_.js";
|
|
6
|
+
import { $ as DownloadOptions, $i as SnapshotDeleteAcknowledgement, $n as PublicTemplateInfo, $r as SandboxFleetTraceEvent, $t as GPU_LEASE_PROVIDER_NAMES, A as CommitTaskSessionOptions, Aa as WriteFileOptions, Ai as SandboxTraceOptions, An as NetworkConfig, Ar as SandboxFleetArtifact, At as FileUsageOptions, B as CreateSandboxOptions, Ba as BackendType, Bi as SessionEventStreamOptions, Bn as ProcessListOptions, Br as SandboxFleetMachineMeteredUsage, Bt as FleetDispatchStreamOptions, C as BranchOptions, Ca as UpdateUserOptions, Ci as SandboxTerminalInfo, Cn as ListMessagesOptions, Cr as SandboxDeleteAcknowledgement, Ct as FileReadError, Da as WaitForOptions, Di as SandboxTraceBundle, Dn as MAX_EGRESS_DENIALS_LIMIT, Dr as SandboxEvent, Dt as FileTreeFile, Ea as UsageInfo, Ei as SandboxTerminals, En as ListSandboxOptions, Er as SandboxEnvironment, Et as FileSystem, F as CreateIntelligenceReportOptions, Fa as BatchEventDataMap, Fi as SecretsManager, Fn as PreviewLinkInfo, Fr as SandboxFleetDriverCapability, Ft as FleetAgentResult, G as DeleteMatchingSandboxesFilter, Ga as ManagedProcessRecord, Gi as SessionInfo, Gn as ProcessStatus, Gr as SandboxFleetOperationsSummary, Gt as FleetMachineId, H as CreateTaskSessionOptions, Ha as ManagedProcessClient, Hi as SessionExecutionStatus, Hn as ProcessManager, Hr as SandboxFleetMachineSpec, Ht as FleetDriveTurnRequest, I as CreateRequestOptions, Ia as BatchSidecarGroup, Ii as SendSessionMessageOptions, In as PreviewLinkManager, Ir as SandboxFleetDriverTimings, It as FleetAgentRunStatus, J as DeleteOptions, Ji as SessionMessage, Jn as PromptResult, Jr as SandboxFleetPolicy, Jt as FleetRunEvent, K as DeleteMatchingSandboxesOptions, Ka as ManagedProcessSpec, Ki as SessionInterruptOptions, Kn as PromptInputPart, Kr as SandboxFleetParent, Kt as FleetPromptDispatchOptions, L as CreateSandboxFleetOptions, La as BatchTaskUsage, Li as SendSessionMessageRequest, Ln as PreviewLinkWaitOptions, Lr as SandboxFleetInfo, Lt as FleetDispatchCancelResult, M as ConversationTurnOptions, Ma as WriteManyOptions, Mi as SearchMatch, Mn as NonHostAgentDriverConfig, Mr as SandboxFleetCostEstimate, Mt as FileWriteResult, N as ConversationTurnResult, Na as BatchBackendStats, Ni as SearchOptions, Nn as PermissionLevel, Nr as SandboxFleetDispatchFailureClass, Nt as FleetAgentId, Oa as WaitForRolloutOptions, Oi as SandboxTraceEvent, On as McpServerConfig, Or as SandboxFleetAgent, Ot as FileTreeOptions, P as CreateGpuLeaseOptions, Pa as BatchEvent, Pi as SecretInfo, Pn as PermissionsManager, Pr as SandboxFleetDispatchResponse, Pt as FleetAgentPlacement, Q as DispatchedSession, Qi as SessionStatus, Qn as ProvisionStep, Qr as SandboxFleetTraceBundle, Qt as ForkLookupOptions, Ra as PublicBatchRunRequest, Ri as SentSessionMessage, Rn as Process, Rr as SandboxFleetIntelligenceEnvelope, Rt as FleetDispatchResultBuffer, S as BatchTaskResult, Sa as TurnDriveResult, Si as SandboxTerminalCreateOptions, Sr as SandboxCreateReceipt, St as FileReadBatchResult, T as ChunkedUploadResult, Ta as UploadProgress, Ti as SandboxTerminalRequestOptions, Tn as ListSandboxFleetOptions, Tr as SandboxDeleteOutcome, Tt as FileRenameResult, U as DeleteMatchingSandboxOutcome, Ua as ManagedProcessJobs, Ui as SessionFailureReason, Un as ProcessSignal, Ur as SandboxFleetManifest, Ut as FleetExecDispatchOptions, V as CreateSessionOptions, Va as parseBackendType, Vi as SessionExecutionInfo, Vn as ProcessLogEntry, Vr as SandboxFleetMachineRecord, Vt as FleetDriveTurnOutcome, W as DeleteMatchingSandboxResult, Wa as ManagedProcessOptions, Wi as SessionForkOptions, Wn as ProcessSpawnOptions, Wr as SandboxFleetManifestMachine, X as DirectoryPermission, Xi as SessionMessageInputPart, Xn as ProvisionResult, Xr as SandboxFleetSpend, Xt as ForkCounts, Y as DevServerInfo, Yi as SessionMessageAdmission, Yn as ProvisionEvent, Yr as SandboxFleetProfileRef, Yt as FleetRunOptions, Z as DispatchPromptOptions, Zi as SessionResultOptions, Zn as ProvisionStatus, Zr as SandboxFleetToken, Zt as ForkIdempotency, _ as BatchBackend, _a as TeeAttestationResponse, _i as SandboxShape, _n as IntelligenceReport, _r as SSHCommandDescriptor, _t as ExactProcessSpawnOptions, ai as SandboxFleetWorkspaceRestoreResult, an as GitStatus, ar as ReconcileSandboxFleetsOptions, at as DriverType, b as BatchRunRequest, ba as TokenRefreshHandler, bi as SandboxStatus, bn as IntelligenceReportSubjectType, br as SandboxConnection, bt as FileInfo, c as AttachGpuLeaseOptions, ca as StorageConfig, ci as SandboxInfo, cn as GpuLeaseCommandResult, d as BackendConfig, da as TaskSessionCommitResult, di as SandboxPortPreviewLink, dn as GpuLeaseManager, dr as RolloutChildResult, dt as EffectiveBackendSource, ea as SnapshotDeleteOutcome, ei as SandboxFleetTraceExport, en as GitAuth, er as PublicTemplateVersionInfo, et as DownloadProgress, f as BackendInfo, fa as TaskSessionFileChange, fi as SandboxRemovalState, fn as GpuLeaseProviderName, fr as RolloutOptions, ft as EgressDenial, g as BackendStatus, ga as TeeAttestationReport, gi as SandboxRuntimeHealth, gn as InstalledTool, gr as RolloutTurnPart, gt as EventStreamOptions, h as BackendRuntimeConfigUpdate, ha as TeeAttestationOptions, hi as SandboxRuntimeCapabilities, hn as HostAgentRuntimeBackend, hr as RolloutStatus, ht as EnsureDevServerOptions, ia as SnapshotResult, ii as SandboxFleetWorkspaceReconcileResult, in as GitDiff, ir as ReapExpiredSandboxFleetsResult, it as DriverInfo, j as CompletedTurnResult, ja as WriteManyFile, ji as SandboxUser, jn as NetworkManager, jr as SandboxFleetArtifactSpec, jt as FileUsageResult, ka as WorkspaceOperationLookup, ki as SandboxTraceExport, kn as MkdirOptions, kr as SandboxFleetAgentSpec, kt as FileTreeResult, l as AttachSandboxFleetMachineOptions, la as SubscriptionInfo, li as SandboxIntelligenceEnvelope, ln as GpuLeaseExecOptions, lt as EffectiveBackend, m as BackendMcpServerStatus, ma as TaskSessionProfile, mi as SandboxResources, mn as HostAgentDriverConfig, mr as RolloutStartResult, mt as EgressPolicy, n as AccessPolicyRule, na as SnapshotInfo, ni as SandboxFleetUsage, nn as GitCommit, nr as PublishPublicTemplateVersionOptions, nt as DriveTurnOptions, oa as StartupDiagnostics, oi as SandboxFleetWorkspaceSnapshotResult, on as GpuLease, or as ReconcileSandboxFleetsResult, ot as DurablePlan, p as BackendManager, pa as TaskSessionInfo, pi as SandboxResourceUsage, pn as GpuLeaseStatus, pr as RolloutScorer, pt as EgressManager, q as DeleteMatchingSandboxesResult, qa as ManagedProcessState, qi as SessionListOptions, qn as PromptOptions, qr as SandboxFleetPlacement, qt as FleetPromptDispatchResult, r as AddUserOptions, ra as SnapshotOptions, ri as SandboxFleetWorkspace, rn as GitConfig, rr as ReapExpiredSandboxFleetsOptions, rt as DriverConfig, sa as StartupOperation, si as SandboxIdentity, sn as GpuLeaseBilling, sr as RenameOptions, st as DurablePlanDecisionResult, t as AcceleratorKind, ta as SnapshotIdempotency, ti as SandboxFleetTraceOptions, tn as GitBranch, tr as PublishPublicTemplateOptions, tt as DownloadResult, u as BackendCapabilities, ua as TaskSessionChanges, ui as SandboxPortBinding, un as GpuLeaseExecResult, ur as Rollout, ut as EffectiveBackendProfile, v as BatchResult, va as TeePublicKey, vi as SandboxShapePreset, vn as IntelligenceReportBudget, vr as SSHCredentials, vt as ExecOptions, w as ChunkedUploadOptions, wa as UploadOptions, wi as SandboxTerminalManager, wn as ListOptions, wr as SandboxDeleteOptions, wt as FileReadResult, x as BatchTask, xa as TokenUsage, xi as SandboxTerminalAttachOptions, xn as IntelligenceReportWindow, xr as SandboxCreateOutcome, xt as FileReadBatchOptions, y as BatchRunOptions, ya as TeePublicKeyResponse, yi as SandboxShapesInfo, yn as IntelligenceReportCompareTo, yr as SandboxConfig, yt as ExecResult, z as CreateSandboxFleetWithCoordinatorOptions, za as ALL_BACKEND_TYPES, zi as SessionBackendCredentials, zn as ProcessInfo, zr as SandboxFleetMachine, zt as FleetDispatchResultBufferOptions } from "./types-7TNwywMg.js";
|
|
7
|
+
import { A as isBackendRegistryInteractionKind, C as BackendRegistryEntry, D as backendRegistryEntrySchema, E as backendRegistryCapabilitiesSchema, M as parseBackendRegistryResponseBody, O as backendRegistryInteractionKindSchema, S as BackendRegistryCapabilities, T as BackendRegistryResponse, _ as SandboxFleet, a as Team, b as ParsedSSEEvent, c as SessionBroadcastEvent, d as HostedInstance, f as InstanceProfile, g as InstancesClient, h as InstanceStart, i as Sandbox, j as parseBackendRegistryResponse, k as backendRegistryResponseSchema, l as SessionBroadcastResult, m as InstanceRestartingError, n as IntelligenceClient, o as TeamInvitation, p as InstanceRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as EnsureInstanceOptions, v as SandboxFleetClient, w as BackendRegistryInteractionKind, x as parseSSEStream, y as ParseSSEStreamOptions } from "./client-BSWUEYZV.js";
|
|
8
|
+
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, d as ResumeEnvRequiredError, f as SandboxError, g as StateError, h as ServerError, i as EgressProxyRecoveryError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxErrorJson, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-CybOpzWU.js";
|
|
9
|
+
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-BCftzX-m.js";
|
|
10
|
+
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-C0SSGYYc.js";
|
|
11
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-xuBxUyRc.js";
|
|
12
|
+
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-CK2dUHe0.js";
|
|
13
13
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
14
14
|
import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
15
15
|
import { z } from "zod";
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { i as parseBackendType, r as backendTypeSchema, t as ALL_BACKEND_TYPES } from "./backend-types-C7b_Gpa0.js";
|
|
2
2
|
import { D as parseSSEStream, M as createAgentRunOutcomeTracker, N as deriveAgentResultOutcome, P as deriveAgentRunOutcome, a as TERMINAL_WS_ECHO_SUBPROTOCOL, i as TerminalStreamError, j as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController } from "./interactive-controller-f_ePJqoh.js";
|
|
3
3
|
import { a as FileWriteConflictError, c as NotFoundError, d as ResumeEnvRequiredError, f as SandboxError, g as ValidationError, h as TimeoutError, i as EgressProxyRecoveryError, l as PartialFailureError, m as StateError, n as CapabilityError, o as KeyBudgetExhaustedError, p as ServerError, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-D1JIX7Jm.js";
|
|
4
|
-
import { _ as backendRegistryInteractionKindSchema, a as splitInlineProfileSkills, b as parseBackendRegistryResponse, c as InstanceRestartingError, d as SandboxFleetClient, f as runtimeWorkspaceCwdSchema, g as backendRegistryEntrySchema, h as backendRegistryCapabilitiesSchema, i as splitInlineProfileFileMounts, l as InstancesClient, m as validateBatchRunRequest, n as Sandbox, o as validateDeferredProfileFileMounts, p as createBatchResultAccumulator, r as materializeProfileFileMounts, s as HostedInstance, t as IntelligenceClient, u as SandboxFleet, v as backendRegistryResponseSchema, x as parseBackendRegistryResponseBody, y as isBackendRegistryInteractionKind } from "./client-
|
|
4
|
+
import { _ as backendRegistryInteractionKindSchema, a as splitInlineProfileSkills, b as parseBackendRegistryResponse, c as InstanceRestartingError, d as SandboxFleetClient, f as runtimeWorkspaceCwdSchema, g as backendRegistryEntrySchema, h as backendRegistryCapabilitiesSchema, i as splitInlineProfileFileMounts, l as InstancesClient, m as validateBatchRunRequest, n as Sandbox, o as validateDeferredProfileFileMounts, p as createBatchResultAccumulator, r as materializeProfileFileMounts, s as HostedInstance, t as IntelligenceClient, u as SandboxFleet, v as backendRegistryResponseSchema, x as parseBackendRegistryResponseBody, y as isBackendRegistryInteractionKind } from "./client-DAndLVD6.js";
|
|
5
5
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
6
|
-
import { D as otelTraceIdForTangleTrace, E as exportTraceBundle, O as toOtelJson, T as buildTraceExportPayload, _ as collectAgentFinalMessageText, b as isToolBearingEvent, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as applySandboxEventText, h as createInteractiveTerminalSession, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-
|
|
6
|
+
import { D as otelTraceIdForTangleTrace, E as exportTraceBundle, O as toOtelJson, T as buildTraceExportPayload, _ as collectAgentFinalMessageText, b as isToolBearingEvent, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as applySandboxEventText, h as createInteractiveTerminalSession, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-Do-2V95e.js";
|
|
7
7
|
import { LinesClient, SandboxLines, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
8
8
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-B7QeBrFQ.js";
|
|
9
9
|
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-C2SuT1zK.js";
|
|
10
|
-
import { s as TangleSandboxClient } from "./tangle-
|
|
10
|
+
import { s as TangleSandboxClient } from "./tangle-BuamBAzx.js";
|
|
11
11
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
//#region src/confidential.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as CreateSandboxOptions, d as BackendConfig } from "./types-
|
|
1
|
+
import { B as CreateSandboxOptions, d as BackendConfig } from "./types-7TNwywMg.js";
|
|
2
2
|
|
|
3
3
|
//#region src/line-application.d.ts
|
|
4
4
|
/** Bounded callback request bytes after canonicalization, including JSON framing. */
|
package/dist/lines.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as LineThread, C as LineRespondAgent, D as LineSendReceipt, E as LineSendInput, F as LinesHttpClient, I as SandboxLines, L as lineInstanceKey, M as LineVoice, N as LineVoiceOptions, O as LineSenderVerification, P as LinesClient, R as profileChannelReference, S as LineReplyGate, T as LineRole, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineTransport, k as LineSenderVerificationStart, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineRespondView, x as LineReminderPreferences, y as LineNumberInventory } from "./lines-
|
|
1
|
+
import { A as LineThread, C as LineRespondAgent, D as LineSendReceipt, E as LineSendInput, F as LinesHttpClient, I as SandboxLines, L as lineInstanceKey, M as LineVoice, N as LineVoiceOptions, O as LineSenderVerification, P as LinesClient, R as profileChannelReference, S as LineReplyGate, T as LineRole, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineTransport, k as LineSenderVerificationStart, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineRespondView, x as LineReminderPreferences, y as LineNumberInventory } from "./lines-CBlVXTb_.js";
|
|
2
2
|
export { Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplicationAttachOptions, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, LineInstanceAttachOptions, LineInstanceCreate, LineLimits, LineMember, LineMemberInstance, LineMemberPatch, LineMemberSpec, LineMessage, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyGate, LineRespondAgent, LineRespondView, LineRole, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LineThread, LineTransport, LineVoice, LineVoiceOptions, LinesClient, LinesHttpClient, SandboxLines, lineInstanceKey, profileChannelReference };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-
|
|
1
|
+
import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-CJSdRlx0.js";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
4
|
import { join } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as listAgentPreviews, i as getAgentPreview, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "./preview-operations-
|
|
1
|
+
import { a as listAgentPreviews, i as getAgentPreview, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "./preview-operations-CbTiBE-a.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { Fn as PreviewLinkInfo, ht as EnsureDevServerOptions } from "./types-
|
|
3
|
-
import { i as Sandbox } from "./client-
|
|
1
|
+
import { r as SandboxInstance } from "./sandbox-flgG5fbm.js";
|
|
2
|
+
import { Fn as PreviewLinkInfo, ht as EnsureDevServerOptions } from "./types-7TNwywMg.js";
|
|
3
|
+
import { i as Sandbox } from "./client-BSWUEYZV.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/preview-operations.d.ts
|
|
6
6
|
type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { l as ScopedToken, t as TerminalStream } from "./terminal-stream-BUMu8Oae.js";
|
|
2
2
|
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-C-3MDol8.js";
|
|
3
3
|
import { t as BrowserInteractiveSessionController } from "./interactive-controller-iYddZt8b.js";
|
|
4
|
-
import { A as CommitTaskSessionOptions, Aa as WriteFileOptions, At as FileUsageOptions, Bi as SessionEventStreamOptions, Ci as SandboxTerminalInfo, Cn as ListMessagesOptions, Dr as SandboxEvent, Gi as SessionInfo, H as CreateTaskSessionOptions, Hi as SessionExecutionStatus, Ii as SendSessionMessageOptions, Ji as SessionMessage, Li as SendSessionMessageRequest, Mt as FileWriteResult, Ot as FileTreeOptions, Ri as SentSessionMessage, Si as SandboxTerminalCreateOptions, St as FileReadBatchResult, T as ChunkedUploadResult, Ta as UploadProgress, Ti as SandboxTerminalRequestOptions, Tt as FileRenameResult, V as CreateSessionOptions, Vi as SessionExecutionInfo, Yi as SessionMessageAdmission, da as TaskSessionCommitResult, gi as SandboxRuntimeHealth, jt as FileUsageResult, kt as FileTreeResult, pa as TaskSessionInfo, sr as RenameOptions, ua as TaskSessionChanges, ui as SandboxPortBinding, w as ChunkedUploadOptions, wi as SandboxTerminalManager, xt as FileReadBatchOptions } from "./types-
|
|
5
|
-
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-
|
|
6
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
4
|
+
import { A as CommitTaskSessionOptions, Aa as WriteFileOptions, At as FileUsageOptions, Bi as SessionEventStreamOptions, Ci as SandboxTerminalInfo, Cn as ListMessagesOptions, Dr as SandboxEvent, Gi as SessionInfo, H as CreateTaskSessionOptions, Hi as SessionExecutionStatus, Ii as SendSessionMessageOptions, Ji as SessionMessage, Li as SendSessionMessageRequest, Mt as FileWriteResult, Ot as FileTreeOptions, Ri as SentSessionMessage, Si as SandboxTerminalCreateOptions, St as FileReadBatchResult, T as ChunkedUploadResult, Ta as UploadProgress, Ti as SandboxTerminalRequestOptions, Tt as FileRenameResult, V as CreateSessionOptions, Vi as SessionExecutionInfo, Yi as SessionMessageAdmission, da as TaskSessionCommitResult, gi as SandboxRuntimeHealth, jt as FileUsageResult, kt as FileTreeResult, pa as TaskSessionInfo, sr as RenameOptions, ua as TaskSessionChanges, ui as SandboxPortBinding, w as ChunkedUploadOptions, wi as SandboxTerminalManager, xt as FileReadBatchOptions } from "./types-7TNwywMg.js";
|
|
5
|
+
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-CybOpzWU.js";
|
|
6
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-xuBxUyRc.js";
|
|
7
7
|
|
|
8
8
|
//#region src/lib/chunked-upload.d.ts
|
|
9
9
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
|
@@ -3,7 +3,7 @@ import { A as mergeRuntimeBackendConfig, C as SANDBOX_PROXY_REQUEST_MAX_BYTES, D
|
|
|
3
3
|
import { _ as parseErrorResponse, c as NotFoundError, f as SandboxError, g as ValidationError, h as TimeoutError, m as StateError, n as CapabilityError, p as ServerError, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError, v as parseResponseError, y as readResponseJson } from "./errors-D1JIX7Jm.js";
|
|
4
4
|
import { d as awaitWithAbort, f as combineAbortSignals, g as interactiveSessionStatusResponseSchema, h as interactiveSessionControlValidationResponseSchema, l as createInteractiveControlHolderId, m as interactiveSessionControlReleaseResponseSchema, p as interactiveSessionControlClaimResponseSchema } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
5
5
|
import { SandboxLines } from "./lines.js";
|
|
6
|
-
import "./
|
|
6
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-CJSdRlx0.js";
|
|
7
7
|
import { AgentExactRunControlRefSchema, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentRunCancellationAcknowledgementSchema, AgentRunCancellationRequestSchema, InteractionAcknowledgementSchema, InteractionBindingSchema, InteractionRequestSchema, InteractionResponseCommandSchema, InteractionResponseSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionStatusMatchesRef, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentRunCancellationAcknowledgementMatchesRequest, canonicalCandidateDigest, exactAgentInteractiveSessionStart, sha256DigestSchema, terminalSessionUsable } from "@tangle-network/agent-interface";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { AgentInteractiveSessionControlClaimSchema as AgentInteractiveSessionControlClaimSchema$1, AgentInteractiveSessionPromptAcknowledgementSchema as AgentInteractiveSessionPromptAcknowledgementSchema$1, AgentInteractiveSessionRefSchema as AgentInteractiveSessionRefSchema$1, AgentInteractiveSessionStatusSchema, AgentInteractiveSessionStopAcknowledgementSchema as AgentInteractiveSessionStopAcknowledgementSchema$1 } from "@tangle-network/agent-interface/environment-interactive-control";
|
|
@@ -479,6 +479,7 @@ function parseSandboxRuntimeCapabilities(raw) {
|
|
|
479
479
|
if (record.schema !== 1) invalidCapabilities(`schema version ${JSON.stringify(record.schema)} — this SDK understands 1`);
|
|
480
480
|
if (typeof record.agentInterface !== "string" || typeof record.sidecarVersion !== "string" || typeof record.image !== "string") invalidCapabilities("a document missing its identity fields");
|
|
481
481
|
if (record.cliAuthReferences !== void 0 && typeof record.cliAuthReferences !== "boolean") invalidCapabilities("a non-boolean 'cliAuthReferences' flag");
|
|
482
|
+
if (record.claudeTokenContinuations !== void 0 && typeof record.claudeTokenContinuations !== "boolean") invalidCapabilities("a non-boolean 'claudeTokenContinuations' flag");
|
|
482
483
|
const nativeVersion = record.nativeSessionCaptureVersion;
|
|
483
484
|
const nativeHarnesses = record.nativeSessionCaptureHarnesses;
|
|
484
485
|
if (nativeVersion !== void 0 && (typeof nativeVersion !== "number" || !Number.isSafeInteger(nativeVersion) || nativeVersion < 1)) invalidCapabilities("a malformed 'nativeSessionCaptureVersion'");
|
|
@@ -512,6 +513,7 @@ function parseSandboxRuntimeCapabilities(raw) {
|
|
|
512
513
|
return {
|
|
513
514
|
schema: 1,
|
|
514
515
|
...typeof record.cliAuthReferences === "boolean" ? { cliAuthReferences: record.cliAuthReferences } : {},
|
|
516
|
+
...typeof record.claudeTokenContinuations === "boolean" ? { claudeTokenContinuations: record.claudeTokenContinuations } : {},
|
|
515
517
|
...typeof nativeVersion === "number" ? { nativeSessionCaptureVersion: nativeVersion } : {},
|
|
516
518
|
...Array.isArray(nativeHarnesses) ? { nativeSessionCaptureHarnesses: nativeHarnesses.map((harness) => backendTypeSchema.parse(harness)) } : {},
|
|
517
519
|
agentInterface: record.agentInterface,
|
|
@@ -4619,6 +4621,25 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4619
4621
|
* }
|
|
4620
4622
|
* ```
|
|
4621
4623
|
*/
|
|
4624
|
+
/** Grant one owner-authorized stored token for a native continuation; never accepts or returns its value. */
|
|
4625
|
+
async grantNativeCredential(grant, options) {
|
|
4626
|
+
const cliAuth = cliAuthReferenceSchema.parse(grant.cliAuth);
|
|
4627
|
+
if (grant.harness !== "claude-code" || cliAuth.format !== "token") throw new ValidationError("Native credential continuation requires a Claude token reference");
|
|
4628
|
+
const response = await this.client.fetch(`/v1/sandboxes/${encodeURIComponent(this.id)}/native-credentials`, {
|
|
4629
|
+
method: "POST",
|
|
4630
|
+
headers: { "Content-Type": "application/json" },
|
|
4631
|
+
body: JSON.stringify({
|
|
4632
|
+
harness: grant.harness,
|
|
4633
|
+
cliAuth
|
|
4634
|
+
}),
|
|
4635
|
+
...options?.signal ? { signal: options.signal } : {}
|
|
4636
|
+
});
|
|
4637
|
+
if (!response.ok) throw new StateError("Native credential grant was not confirmed", "unconfirmed");
|
|
4638
|
+
const value = await readResponseJson(response);
|
|
4639
|
+
if (!value || typeof value !== "object" || !("installed" in value) || value.installed !== true || !("harness" in value) || value.harness !== grant.harness || !("cliAuth" in value)) throw new StateError("Native credential grant receipt is invalid", "unconfirmed");
|
|
4640
|
+
const confirmed = cliAuthReferenceSchema.safeParse(value.cliAuth);
|
|
4641
|
+
if (!confirmed.success || confirmed.data.account !== cliAuth.account || confirmed.data.secretEnv !== cliAuth.secretEnv || confirmed.data.format !== cliAuth.format) throw new StateError("Native credential grant receipt names another reference", "unconfirmed");
|
|
4642
|
+
}
|
|
4622
4643
|
async capabilities() {
|
|
4623
4644
|
await this.ensureRunning();
|
|
4624
4645
|
const response = await this.runtimeFetch("/capabilities", { method: "GET" });
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { t as CliAuthReference } from "./cli-auth-bundle-Dchr0WkF.js";
|
|
1
2
|
import { a as TerminalStreamReconnectAuthority, c as MintScopedTokenOptions, h as TerminalReadyInfo, l as ScopedToken, r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-BUMu8Oae.js";
|
|
2
3
|
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-C-3MDol8.js";
|
|
3
4
|
import { r as InteractiveAttachRequest } from "./interactive-controller-iYddZt8b.js";
|
|
4
|
-
import { I as SandboxLines } from "./lines-
|
|
5
|
-
import { $i as SnapshotDeleteAcknowledgement, A as CommitTaskSessionOptions, Aa as WriteFileOptions, Ai as SandboxTraceOptions, Bi as SessionEventStreamOptions, C as BranchOptions, Cn as ListMessagesOptions, Cr as SandboxDeleteAcknowledgement, D as CodeExecutionResult, Da as WaitForOptions, Di as SandboxTraceBundle, Dr as SandboxEvent, E as CodeExecutionOptions, Ei as SandboxTerminals, Et as FileSystem, Gi as SessionInfo, H as CreateTaskSessionOptions, Hn as ProcessManager, Ii as SendSessionMessageOptions, In as PreviewLinkManager, Ji as SessionMessage, Jn as PromptResult, Ki as SessionInterruptOptions, Kn as PromptInputPart, Li as SendSessionMessageRequest, M as ConversationTurnOptions, Ma as WriteManyOptions, Mi as SearchMatch, Mt as FileWriteResult, N as ConversationTurnResult, Ni as SearchOptions, O as CodeLanguage, Oa as WaitForRolloutOptions, Pn as PermissionsManager, Q as DispatchedSession, Qr as SandboxFleetTraceBundle, Qt as ForkLookupOptions, Ri as SentSessionMessage, Sa as TurnDriveResult, Sn as JsonValue, Sr as SandboxCreateReceipt, V as CreateSessionOptions, Vi as SessionExecutionInfo, Wi as SessionForkOptions, Xn as ProvisionResult, Xt as ForkCounts, Yi as SessionMessageAdmission, Yn as ProvisionEvent, Z as DispatchPromptOptions, Zi as SessionResultOptions, Zt as ForkIdempotency, _a as TeeAttestationResponse, _i as SandboxShape, _n as IntelligenceReport, _r as SSHCommandDescriptor, an as GitStatus, bi as SandboxStatus, br as SandboxConnection, ci as SandboxInfo, cr as RestoreSnapshotOptions, d as BackendConfig, da as TaskSessionCommitResult, dn as GpuLeaseManager, fr as RolloutOptions, gi as SandboxRuntimeHealth, gn as InstalledTool, gt as EventStreamOptions, ha as TeeAttestationOptions, hi as SandboxRuntimeCapabilities, ia as SnapshotResult, in as GitDiff, it as DriverInfo, j as CompletedTurnResult, ja as WriteManyFile, jn as NetworkManager, ka as WorkspaceOperationLookup, lr as ResumeOptions, mr as RolloutStartResult, na as SnapshotInfo, nn as GitCommit, nt as DriveTurnOptions, oa as StartupDiagnostics, on as GpuLease, ot as DurablePlan, p as BackendManager, pa as TaskSessionInfo, pi as SandboxResourceUsage, pt as EgressManager, qi as SessionListOptions, qn as PromptOptions, ra as SnapshotOptions, st as DurablePlanDecisionResult, tn as GitBranch, ua as TaskSessionChanges, ui as SandboxPortBinding, ur as Rollout, vn as IntelligenceReportBudget, vr as SSHCredentials, vt as ExecOptions, wr as SandboxDeleteOptions, xi as SandboxTerminalAttachOptions, xn as IntelligenceReportWindow, ya as TeePublicKeyResponse, yn as IntelligenceReportCompareTo, yt as ExecResult } from "./types-
|
|
5
|
+
import { I as SandboxLines } from "./lines-CBlVXTb_.js";
|
|
6
|
+
import { $i as SnapshotDeleteAcknowledgement, A as CommitTaskSessionOptions, Aa as WriteFileOptions, Ai as SandboxTraceOptions, Bi as SessionEventStreamOptions, C as BranchOptions, Cn as ListMessagesOptions, Cr as SandboxDeleteAcknowledgement, D as CodeExecutionResult, Da as WaitForOptions, Di as SandboxTraceBundle, Dr as SandboxEvent, E as CodeExecutionOptions, Ei as SandboxTerminals, Et as FileSystem, Gi as SessionInfo, H as CreateTaskSessionOptions, Hn as ProcessManager, Ii as SendSessionMessageOptions, In as PreviewLinkManager, Ji as SessionMessage, Jn as PromptResult, Ki as SessionInterruptOptions, Kn as PromptInputPart, Li as SendSessionMessageRequest, M as ConversationTurnOptions, Ma as WriteManyOptions, Mi as SearchMatch, Mt as FileWriteResult, N as ConversationTurnResult, Ni as SearchOptions, O as CodeLanguage, Oa as WaitForRolloutOptions, Pn as PermissionsManager, Q as DispatchedSession, Qr as SandboxFleetTraceBundle, Qt as ForkLookupOptions, Ri as SentSessionMessage, Sa as TurnDriveResult, Sn as JsonValue, Sr as SandboxCreateReceipt, V as CreateSessionOptions, Vi as SessionExecutionInfo, Wi as SessionForkOptions, Xn as ProvisionResult, Xt as ForkCounts, Yi as SessionMessageAdmission, Yn as ProvisionEvent, Z as DispatchPromptOptions, Zi as SessionResultOptions, Zt as ForkIdempotency, _a as TeeAttestationResponse, _i as SandboxShape, _n as IntelligenceReport, _r as SSHCommandDescriptor, an as GitStatus, bi as SandboxStatus, br as SandboxConnection, ci as SandboxInfo, cr as RestoreSnapshotOptions, d as BackendConfig, da as TaskSessionCommitResult, dn as GpuLeaseManager, fr as RolloutOptions, gi as SandboxRuntimeHealth, gn as InstalledTool, gt as EventStreamOptions, ha as TeeAttestationOptions, hi as SandboxRuntimeCapabilities, ia as SnapshotResult, in as GitDiff, it as DriverInfo, j as CompletedTurnResult, ja as WriteManyFile, jn as NetworkManager, ka as WorkspaceOperationLookup, lr as ResumeOptions, mr as RolloutStartResult, na as SnapshotInfo, nn as GitCommit, nt as DriveTurnOptions, oa as StartupDiagnostics, on as GpuLease, ot as DurablePlan, p as BackendManager, pa as TaskSessionInfo, pi as SandboxResourceUsage, pt as EgressManager, qi as SessionListOptions, qn as PromptOptions, ra as SnapshotOptions, st as DurablePlanDecisionResult, tn as GitBranch, ua as TaskSessionChanges, ui as SandboxPortBinding, ur as Rollout, vn as IntelligenceReportBudget, vr as SSHCredentials, vt as ExecOptions, wr as SandboxDeleteOptions, xi as SandboxTerminalAttachOptions, xn as IntelligenceReportWindow, ya as TeePublicKeyResponse, yn as IntelligenceReportCompareTo, yt as ExecResult } from "./types-7TNwywMg.js";
|
|
6
7
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimAcknowledgement, AgentInteractiveSessionControlClaimRequest, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStopAcknowledgement, AgentInteractiveSessionStopCommand, AgentInteractiveTerminalSession, AgentInteractiveTerminalSession as AgentInteractiveTerminalSession$1, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand, TerminalOutputEvent, TerminalReplayWindow, agentInteractiveSessionPromptRequestDigest } from "@tangle-network/agent-interface";
|
|
7
8
|
import { z } from "zod";
|
|
8
9
|
|
|
@@ -1324,6 +1325,13 @@ declare class SandboxInstance {
|
|
|
1324
1325
|
* }
|
|
1325
1326
|
* ```
|
|
1326
1327
|
*/
|
|
1328
|
+
/** Grant one owner-authorized stored token for a native continuation; never accepts or returns its value. */
|
|
1329
|
+
grantNativeCredential(grant: {
|
|
1330
|
+
harness: "claude-code";
|
|
1331
|
+
cliAuth: CliAuthReference;
|
|
1332
|
+
}, options?: {
|
|
1333
|
+
signal?: AbortSignal;
|
|
1334
|
+
}): Promise<void>;
|
|
1327
1335
|
capabilities(): Promise<SandboxRuntimeCapabilities | null>;
|
|
1328
1336
|
/**
|
|
1329
1337
|
* Git capability object for repository operations.
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-
|
|
1
|
+
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-CK2dUHe0.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JobQuoteDetails, JsonResponseParamTypes, OperatorChallenge, OperatorSession, OperatorSessionError, OperatorSessionToken, QuoteDomain, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, SignMessage, SignedQuote, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-BuamBAzx.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { y as readResponseJson } from "./errors-D1JIX7Jm.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-Do-2V95e.js";
|
|
3
3
|
import { _ as rotlBH, a as anumber, b as rotlSL, d as createXOFer, g as u32, h as toBytes$1, l as createHasher, m as swap32IfBE, n as abytes, o as aoutput, r as aexists, s as clean, t as Hash, v as rotlBL, x as split, y as rotlSH } from "./utils-ChcSLv53.js";
|
|
4
4
|
//#region src/tangle/abi.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { t as CliAuthReference } from "./cli-auth-bundle-Dchr0WkF.js";
|
|
1
2
|
import { r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-BUMu8Oae.js";
|
|
2
|
-
import { t as CliAuthReference } from "./cli-auth-bundle-CTia4WWs.js";
|
|
3
3
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
4
4
|
import { AgentExactRunControlRef, AgentProfile, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileValidationResult, AgentRuntimeAttachments, HarnessType, ReasoningEffort, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -3205,6 +3205,8 @@ interface SandboxResourceUsage {
|
|
|
3205
3205
|
interface SandboxRuntimeCapabilities {
|
|
3206
3206
|
/** Named native subscription references supported by the deployed Sidecar. */
|
|
3207
3207
|
cliAuthReferences?: boolean;
|
|
3208
|
+
/** Owner-authorized token changes retain the exact Claude session HOME without overlapping adapters. */
|
|
3209
|
+
claudeTokenContinuations?: boolean;
|
|
3208
3210
|
/** Native raw evidence wire version compiled into the serving Sidecar. */
|
|
3209
3211
|
nativeSessionCaptureVersion?: number;
|
|
3210
3212
|
/** Dispatch providers covered by the serving Sidecar capture boundary. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.9",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -148,12 +148,12 @@
|
|
|
148
148
|
"vitest": "^4.1.11",
|
|
149
149
|
"ws": "^8.20.0",
|
|
150
150
|
"yjs": "13.6.30",
|
|
151
|
-
"@
|
|
151
|
+
"@repo/shared": "0.0.0",
|
|
152
152
|
"@tangle-network/agent-profile-materialize": "0.20.6",
|
|
153
153
|
"@tangle-network/runtime-contracts": "0.11.1",
|
|
154
|
-
"@tangle-network/
|
|
155
|
-
"@
|
|
156
|
-
"@
|
|
154
|
+
"@tangle-network/sdk": "3.3.37",
|
|
155
|
+
"@tangle-network/cli-agent-registry": "0.4.19",
|
|
156
|
+
"@products/sandbox-test-utils": "0.0.0",
|
|
157
157
|
"@tangle-network/sse-core": "0.0.0"
|
|
158
158
|
},
|
|
159
159
|
"scripts": {
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { t as getSpec } from "./specs-CnqSWFNT-i2wJxPoD.js";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
//#region ../../../packages/cli-agent-registry/dist/cli-auth-bundle.mjs
|
|
4
|
-
const DEFAULT_MODE = 384;
|
|
5
|
-
const AUTH_BUNDLE_PATHS = Object.freeze({
|
|
6
|
-
codex: ".codex/auth.json",
|
|
7
|
-
"claude-code": ".claude/.credentials.json"
|
|
8
|
-
});
|
|
9
|
-
/** Convert a native credential JSON bundle without reading host credentials. */
|
|
10
|
-
function materializeCliAuthBundle(backendType, rawBundle) {
|
|
11
|
-
if (backendType !== "codex" && backendType !== "claude-code") throw new Error("CLI auth bundle is not supported for the selected backend");
|
|
12
|
-
if (typeof rawBundle !== "string") throw new Error("CLI auth bundle must be a JSON object");
|
|
13
|
-
let value;
|
|
14
|
-
try {
|
|
15
|
-
value = JSON.parse(rawBundle);
|
|
16
|
-
} catch {
|
|
17
|
-
throw new Error("CLI auth bundle must be a JSON object");
|
|
18
|
-
}
|
|
19
|
-
if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error("CLI auth bundle must be a JSON object");
|
|
20
|
-
return [{
|
|
21
|
-
path: AUTH_BUNDLE_PATHS[backendType],
|
|
22
|
-
content: rawBundle,
|
|
23
|
-
mode: DEFAULT_MODE
|
|
24
|
-
}];
|
|
25
|
-
}
|
|
26
|
-
const cliAuthReferenceSchema = z.object({
|
|
27
|
-
account: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9@._+-]{0,127}$/),
|
|
28
|
-
secretEnv: z.string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}$/),
|
|
29
|
-
format: z.enum([
|
|
30
|
-
"token",
|
|
31
|
-
"bundle",
|
|
32
|
-
"files"
|
|
33
|
-
])
|
|
34
|
-
}).strict();
|
|
35
|
-
z.array(z.object({
|
|
36
|
-
path: z.string().min(1).max(4096).refine((value) => !value.startsWith("/") && !/^[A-Za-z]:/.test(value) && !/[\\\0]/.test(value) && value.split("/").every((part) => part !== "" && part !== "." && part !== "..")),
|
|
37
|
-
content: z.string().max(1024 * 1024),
|
|
38
|
-
mode: z.number().int().min(0).max(448).refine((mode) => (mode & 63) === 0).optional()
|
|
39
|
-
}).strict()).min(1).max(128);
|
|
40
|
-
function assertCliAuthReferenceSupported(backendType, model) {
|
|
41
|
-
if (model.cliAuth === void 0) return void 0;
|
|
42
|
-
const parsedReference = cliAuthReferenceSchema.safeParse(model.cliAuth);
|
|
43
|
-
if (!parsedReference.success) throw new Error("Invalid native authentication reference");
|
|
44
|
-
const reference = parsedReference.data;
|
|
45
|
-
if (model.authMode === "api-key" || model.apiKey !== void 0 || model.apiKeyEnv !== void 0 || model.baseUrl !== void 0 || model.authFiles !== void 0) throw new Error("cliAuth cannot be combined with API credentials, baseUrl, or inline authFiles");
|
|
46
|
-
const spec = getSpec(backendType);
|
|
47
|
-
if (!spec?.hasCliAuth) throw new Error(`Native CLI authentication is unsupported by ${backendType}`);
|
|
48
|
-
if (reference.format === "token" && !spec.envVars.oauthToken) throw new Error(`Native subscription tokens are unsupported by ${backendType}`);
|
|
49
|
-
if (reference.format === "bundle" && backendType !== "codex" && backendType !== "claude-code") throw new Error(`Native credential bundles are unsupported by ${backendType}`);
|
|
50
|
-
return reference;
|
|
51
|
-
}
|
|
52
|
-
//#endregion
|
|
53
|
-
export { materializeCliAuthBundle as i, assertCliAuthReferenceSupported as n, cliAuthReferenceSchema as r, AUTH_BUNDLE_PATHS as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|