@tangle-network/sandbox 0.60.78-develop.20261026113612.87ff5e5 → 0.60.78-develop.20261026135138.8f00ca5
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 +5 -4
- package/dist/abort-signal-BKVZNJul.js +46 -0
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +4 -4
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +2 -2
- package/dist/{agent-run-outcome-Cp8hzV98.d.ts → agent-run-outcome-B5CzWxw4.d.ts} +1 -1
- package/dist/{api-request-D8Mni27A.js → api-request-D1UVNo16.js} +1 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{browser-interactive-control-controller-k1KkqDGF.js → browser-interactive-control-controller-CLHNi8rG.js} +2 -46
- package/dist/{browser-interactive-control-controller-CH7CLpmc.d.ts → browser-interactive-control-controller-SI9hV6r5.d.ts} +1 -1
- package/dist/{chunked-upload-file-CbbWlCFt.js → chunked-upload-file-CLwAeLrM.js} +1 -1
- package/dist/{cli-auth-bundle-DlQs_26j.js → cli-auth-bundle-Bq-5b0FT.js} +7 -7
- package/dist/{client-D5GLp93x.js → client-E6qmM8wZ.js} +9 -8
- package/dist/{client-aBXGR6bc.d.ts → client-XWxiuhwy.d.ts} +5 -5
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/{core-VOzQz1mc.js → core-KP6tmonl.js} +2 -2
- package/dist/core.d.ts +6 -6
- package/dist/core.js +4 -4
- package/dist/{direct-http2--35cHOv5.js → direct-http2-Pyj3Rvr1.js} +1 -1
- package/dist/{index-EebEqYqj.d.ts → index-nXob5TkM.d.ts} +14 -14
- package/dist/index.d.ts +11 -11
- package/dist/index.js +9 -8
- package/dist/intelligence/index.js +1 -1
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-ThIeP_oZ.js → interactive-controller-D5tWSSI1.js} +19 -237
- package/dist/{interactive-controller-Mh7Ud5DQ.d.ts → interactive-controller-FgmcS8_Y.d.ts} +3 -3
- package/dist/lib/prepared-evidence.js +1 -1
- package/dist/lib/prepared-process.js +1 -1
- package/dist/{lines-BTIFNxRO.d.ts → lines-BoVYnUCM.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{local-cli-auth-Dxti_D10.js → local-cli-auth-BdufYsAM.js} +1 -1
- package/dist/{mcp-local-ClJ5TD-m.js → mcp-local-Gz1Uygqk.js} +1 -1
- package/dist/{preview-D6tTCcmv.d.ts → preview-BBzfwVTy.d.ts} +3 -3
- package/dist/{public-templates-sZe-0Qvi.d.ts → public-templates-B6_uwnRZ.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/{raw-evidence-archive-iDPF8eF_.js → raw-evidence-archive-D60Yg1-5.js} +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +4 -4
- package/dist/{sandbox-Ksajmtq4.js → sandbox-BQhQSXF6.js} +37 -45
- package/dist/{secp256k1-CoRKQn1k.js → secp256k1-DxHlUI6v.js} +1 -1
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/session-gateway/index.d.ts +132 -508
- package/dist/session-gateway/index.js +694 -946
- package/dist/sidecar-proxy-error-B2Hxt41g.js +24 -0
- package/dist/sse-parser-CUfurwcm.js +227 -0
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-Cmr8JcO3.js → tangle-DUKeaoj9.js} +3 -3
- package/dist/{terminal-stream-types-yAt76vk7.d.ts → terminal-stream-types-DuzvL1ge.d.ts} +13 -9
- package/dist/{types-DUNlmyED.d.ts → types-CkLWX7i5.d.ts} +10 -11
- package/package.json +4 -4
- /package/dist/{chunked-upload-CbtLVV6-.js → chunked-upload-l6b9AWFA.js} +0 -0
- /package/dist/{cli-auth-bundle-Can3oLKY.d.ts → cli-auth-bundle-CeNOYFje.d.ts} +0 -0
- /package/dist/{collaboration-Ox7K-TN6.js → collaboration-BwLNv6sy.js} +0 -0
- /package/dist/{index-B8xo7y26.d.ts → index-C0RkLba5.d.ts} +0 -0
- /package/dist/{index-mz8_2rr2.d.ts → index-DaIF4c9p.d.ts} +0 -0
- /package/dist/{keep-alive-fetch-C92u8Kce.js → keep-alive-fetch-Bi-zvHpN.js} +0 -0
- /package/dist/{lines-DgRXUg5y.js → lines-D_HDAcVt.js} +0 -0
- /package/dist/{prepared-evidence-Di89Tatw.js → prepared-evidence-DUmJSegi.js} +0 -0
- /package/dist/{prepared-process-DKgEUodb.js → prepared-process-Dlk_9JVJ.js} +0 -0
- /package/dist/{preview-operations-BL7YCkes.js → preview-operations-eTUlPen5.js} +0 -0
- /package/dist/{response-rewrap-Bsj87BIq.js → response-rewrap-BKkJ5hnn.js} +0 -0
- /package/dist/{utils-C86i6t3C.js → utils-DB8DnUCU.js} +0 -0
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ export SANDBOX_BASE_URL=https://sandbox.tangle.tools
|
|
|
27
27
|
| Direct Tangle chain operations | `@tangle-network/sandbox/tangle` |
|
|
28
28
|
| Server-side token issuance and validation | `@tangle-network/sandbox/auth` |
|
|
29
29
|
| Collaborative document clients and file bridging | `@tangle-network/sandbox/collaboration` |
|
|
30
|
-
| Browser
|
|
30
|
+
| Browser session event streaming from the cell edge, with replay | `@tangle-network/sandbox/session-gateway` |
|
|
31
31
|
| OpenAI-compatible request and event translation | `@tangle-network/sandbox/openai` |
|
|
32
32
|
| Multiple managed Agents, framework tool packs, and the local MCP bridge | `@tangle-network/sandbox/agent` |
|
|
33
33
|
| Browser-safe trace reads from Tangle Intelligence | `@tangle-network/sandbox/intelligence` |
|
|
@@ -68,8 +68,9 @@ const runtime = createSandboxRuntimeClient({
|
|
|
68
68
|
});
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
Use `scope: "session"`
|
|
72
|
-
`SessionGatewayClient
|
|
71
|
+
Use `scope: "session-runtime"`, `access: "read-only"` and the authorized runtime
|
|
72
|
+
session ID for `SessionGatewayClient`. Give it `scoped.runtimeUrl`, `scoped.token`
|
|
73
|
+
and `runtimeSessionId` to stream events and resume after a drop. Use `scope: "read-only"` for
|
|
73
74
|
runtime reads that need no workspace or terminal mutation. The server must
|
|
74
75
|
authorize every sandbox and session identifier before minting.
|
|
75
76
|
|
|
@@ -622,7 +623,7 @@ Keep the returned `executionId` with the session ID whenever another caller can
|
|
|
622
623
|
`session.result({ executionId })` replays only that run, and `session.interrupt({ executionId })` cancels only that run, so neither operation can move to a newer turn between lookup and action.
|
|
623
624
|
`prompt()` also returns the execution ID that actually produced its result, including an idempotent replay that resolves to an earlier execution than the caller requested.
|
|
624
625
|
Use session events with an event ID when the consumer must replay a dropped stream.
|
|
625
|
-
Use the `/session-gateway` entrypoint for browser
|
|
626
|
+
Use the `/session-gateway` entrypoint for a browser's session event stream: it reattaches after a drop and resumes the running turn after the last event it delivered.
|
|
626
627
|
A dispatched run that dies before producing output reports its cause on `session.status()`: `failureReason.message` carries the runtime's own error, such as a backend binary that could not be spawned or an agent profile that could not be materialized.
|
|
627
628
|
|
|
628
629
|
## Fleets
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//#region src/lib/abort-signal.ts
|
|
2
|
+
function combineAbortSignals(signals) {
|
|
3
|
+
return AbortSignal.any(signals);
|
|
4
|
+
}
|
|
5
|
+
function awaitWithAbort(work, signal) {
|
|
6
|
+
if (!signal) return work;
|
|
7
|
+
signal.throwIfAborted();
|
|
8
|
+
return new Promise((resolve, reject) => {
|
|
9
|
+
let settled = false;
|
|
10
|
+
const onAbort = () => {
|
|
11
|
+
if (settled) return;
|
|
12
|
+
settled = true;
|
|
13
|
+
signal.removeEventListener("abort", onAbort);
|
|
14
|
+
reject(signal.reason ?? new DOMException("The request was aborted", "AbortError"));
|
|
15
|
+
};
|
|
16
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
17
|
+
work.then((value) => {
|
|
18
|
+
if (settled) return;
|
|
19
|
+
settled = true;
|
|
20
|
+
signal.removeEventListener("abort", onAbort);
|
|
21
|
+
resolve(value);
|
|
22
|
+
}, (cause) => {
|
|
23
|
+
if (settled) return;
|
|
24
|
+
settled = true;
|
|
25
|
+
signal.removeEventListener("abort", onAbort);
|
|
26
|
+
reject(cause);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
const delayUntilAborted = (ms, signal) => new Promise((resolve, reject) => {
|
|
31
|
+
if (signal?.aborted) {
|
|
32
|
+
reject(signal.reason ?? /* @__PURE__ */ new Error("aborted"));
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const timer = setTimeout(() => {
|
|
36
|
+
signal?.removeEventListener("abort", onAbort);
|
|
37
|
+
resolve();
|
|
38
|
+
}, ms);
|
|
39
|
+
function onAbort() {
|
|
40
|
+
clearTimeout(timer);
|
|
41
|
+
reject(signal?.reason ?? /* @__PURE__ */ new Error("aborted"));
|
|
42
|
+
}
|
|
43
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
export { combineAbortSignals as n, delayUntilAborted as r, awaitWithAbort as t };
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-
|
|
2
|
-
import { Co as BackendType, Di as CodeResultPart, Ei as CodeExecutionResult, Ha as CodeLanguage, Ti as CodeExecutionOptions, bn as SandboxFleetParent, xa as BackendConfig, xt as SessionListOptions, yt as SessionInfo } from "../types-
|
|
3
|
-
import { t as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-nXob5TkM.js";
|
|
2
|
+
import { Co as BackendType, Di as CodeResultPart, Ei as CodeExecutionResult, Ha as CodeLanguage, Ti as CodeExecutionOptions, bn as SandboxFleetParent, xa as BackendConfig, xt as SessionListOptions, yt as SessionInfo } from "../types-CkLWX7i5.js";
|
|
3
|
+
import { t as Sandbox } from "../client-XWxiuhwy.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-BBzfwVTy.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-
|
|
2
|
-
import {
|
|
1
|
+
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-Gz1Uygqk.js";
|
|
2
|
+
import { E as assertCurrentBackendType } from "../interactive-controller-D5tWSSI1.js";
|
|
3
3
|
import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-Bs5G7JdV.js";
|
|
4
|
-
import { t as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
4
|
+
import { t as Sandbox } from "../client-E6qmM8wZ.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-BQhQSXF6.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-BBzfwVTy.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-eTUlPen5.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-Gz1Uygqk.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 { Ji as AgentQuestionRequest, Xi as AgentToolInvocation, Yi as AgentRunStatus, fa as SandboxEvent, na as DurablePlanSnapshot, qi as AgentApprovalRequirement } from "./types-
|
|
1
|
+
import { Ji as AgentQuestionRequest, Xi as AgentToolInvocation, Yi as AgentRunStatus, fa as SandboxEvent, na as DurablePlanSnapshot, qi as AgentApprovalRequirement } from "./types-CkLWX7i5.js";
|
|
2
2
|
import { InteractionRequest } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as rewrapResponse } from "./response-rewrap-
|
|
1
|
+
import { t as rewrapResponse } from "./response-rewrap-BKkJ5hnn.js";
|
|
2
2
|
//#region src/lib/api-request.mjs
|
|
3
3
|
function withRequestContextHeaders(response, path, method, body = response.body) {
|
|
4
4
|
const headers = new Headers(response.headers);
|
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-CeNOYFje.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-DaIF4c9p.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-Bq-5b0FT.js";
|
|
2
2
|
//#region src/auth/tokens.ts
|
|
3
3
|
const textEncoder = new TextEncoder();
|
|
4
4
|
const textDecoder = new TextDecoder();
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as awaitWithAbort } from "./abort-signal-BKVZNJul.js";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import { AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStatusSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionControlClaimRequestDigest } from "@tangle-network/agent-interface/environment-interactive-control";
|
|
3
4
|
//#region ../../../packages/runtime-contracts/dist/interactive-session-control-http.js
|
|
@@ -30,51 +31,6 @@ const interactiveSessionControlValidationResponseSchema = z.object({
|
|
|
30
31
|
data: z.object({ valid: z.literal(true) }).strict()
|
|
31
32
|
}).strict();
|
|
32
33
|
//#endregion
|
|
33
|
-
//#region src/lib/abort-signal.ts
|
|
34
|
-
function combineAbortSignals(signals) {
|
|
35
|
-
return AbortSignal.any(signals);
|
|
36
|
-
}
|
|
37
|
-
function awaitWithAbort(work, signal) {
|
|
38
|
-
if (!signal) return work;
|
|
39
|
-
signal.throwIfAborted();
|
|
40
|
-
return new Promise((resolve, reject) => {
|
|
41
|
-
let settled = false;
|
|
42
|
-
const onAbort = () => {
|
|
43
|
-
if (settled) return;
|
|
44
|
-
settled = true;
|
|
45
|
-
signal.removeEventListener("abort", onAbort);
|
|
46
|
-
reject(signal.reason ?? new DOMException("The request was aborted", "AbortError"));
|
|
47
|
-
};
|
|
48
|
-
signal.addEventListener("abort", onAbort, { once: true });
|
|
49
|
-
work.then((value) => {
|
|
50
|
-
if (settled) return;
|
|
51
|
-
settled = true;
|
|
52
|
-
signal.removeEventListener("abort", onAbort);
|
|
53
|
-
resolve(value);
|
|
54
|
-
}, (cause) => {
|
|
55
|
-
if (settled) return;
|
|
56
|
-
settled = true;
|
|
57
|
-
signal.removeEventListener("abort", onAbort);
|
|
58
|
-
reject(cause);
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
const delayUntilAborted = (ms, signal) => new Promise((resolve, reject) => {
|
|
63
|
-
if (signal?.aborted) {
|
|
64
|
-
reject(signal.reason ?? /* @__PURE__ */ new Error("aborted"));
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
const timer = setTimeout(() => {
|
|
68
|
-
signal?.removeEventListener("abort", onAbort);
|
|
69
|
-
resolve();
|
|
70
|
-
}, ms);
|
|
71
|
-
function onAbort() {
|
|
72
|
-
clearTimeout(timer);
|
|
73
|
-
reject(signal?.reason ?? /* @__PURE__ */ new Error("aborted"));
|
|
74
|
-
}
|
|
75
|
-
signal?.addEventListener("abort", onAbort, { once: true });
|
|
76
|
-
});
|
|
77
|
-
//#endregion
|
|
78
34
|
//#region src/interactive-control-controller.ts
|
|
79
35
|
/** A status response that cannot admit a terminal control claim. */
|
|
80
36
|
var InteractiveSessionNotRunningError = class extends Error {
|
|
@@ -333,4 +289,4 @@ function browserInteractiveControlHolderId(environmentId, sessionId, incarnation
|
|
|
333
289
|
}
|
|
334
290
|
}
|
|
335
291
|
//#endregion
|
|
336
|
-
export {
|
|
292
|
+
export { INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS as a, assertInteractiveSessionRef as c, interactiveSessionControlClaimResponseSchema as d, interactiveSessionControlReleaseResponseSchema as f, createBrowserInteractiveSessionControlTransport as i, createInteractiveControlHolderId as l, interactiveSessionStatusResponseSchema as m, browserInteractiveControlHolderId as n, InteractiveSessionControlController as o, interactiveSessionControlValidationResponseSchema as p, browserInteractiveTerminalEndpoint as r, InteractiveSessionNotRunningError as s, BrowserInteractiveSessionControlController as t, interactiveSessionIdentityDigest as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as TerminalStreamHandlers } from "./terminal-stream-types-
|
|
1
|
+
import { i as TerminalStreamHandlers } from "./terminal-stream-types-DuzvL1ge.js";
|
|
2
2
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaimAcknowledgement, AgentInteractiveSessionStatus } from "@tangle-network/agent-interface";
|
|
3
3
|
import { AgentInteractiveSessionControlClaim as AgentInteractiveSessionControlClaim$1, AgentInteractiveSessionControlClaimRequest as AgentInteractiveSessionControlClaimRequest$1, AgentInteractiveSessionRef as AgentInteractiveSessionRef$1 } from "@tangle-network/agent-interface/environment-interactive-control";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { k as FILE_UPLOAD_SESSION_MAX_BYTES } from "./errors-Bs5G7JdV.js";
|
|
2
|
-
import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-
|
|
2
|
+
import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-l6b9AWFA.js";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { open } from "node:fs/promises";
|
|
5
5
|
//#region src/lib/chunked-upload-file.ts
|
|
@@ -2,21 +2,21 @@ import { n as BACKEND_TYPE } from "./backend-types-CLvdSX8V.js";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { agentProfileJsonSchema, agentProfileSchema as agentProfileSchema$1 } from "@tangle-network/agent-interface";
|
|
4
4
|
import "@tangle-network/agent-interface/harness-capabilities";
|
|
5
|
-
//#region ../../../packages/cli-agent-registry/dist/native-session-contracts-
|
|
5
|
+
//#region ../../../packages/cli-agent-registry/dist/native-session-contracts-Du5ipP6N.mjs
|
|
6
6
|
/** The CLI version infra/nix ships for each registered harness. */
|
|
7
7
|
const HARNESS_CLI_VERSIONS = {
|
|
8
8
|
"claude-code": "2.1.310",
|
|
9
9
|
codex: "0.164.0",
|
|
10
|
-
opencode: "1.19.
|
|
10
|
+
opencode: "1.19.4",
|
|
11
11
|
pi: "1.4.0",
|
|
12
12
|
"kimi-code": "1.49.0",
|
|
13
|
-
"factory-droids": "0.
|
|
14
|
-
amp: "0.0.
|
|
13
|
+
"factory-droids": "0.249.0",
|
|
14
|
+
amp: "0.0.1793018833-gf8cdfa",
|
|
15
15
|
prime: "0.7.2",
|
|
16
|
-
hermes: "0.22.
|
|
16
|
+
hermes: "0.22.5",
|
|
17
17
|
forge: "2.14.0",
|
|
18
18
|
openclaw: "2026.7.1-2",
|
|
19
|
-
acp: "claude-agent-acp 0.
|
|
19
|
+
acp: "claude-agent-acp 0.97.0; codex-acp 0.16.0; gemini-cli 0.65.0"
|
|
20
20
|
};
|
|
21
21
|
const CLAUDE_PROJECTS = {
|
|
22
22
|
root: ".claude/projects",
|
|
@@ -1040,7 +1040,7 @@ const NATIVE_SESSION_CONTRACTS = {
|
|
|
1040
1040
|
HARNESSES["kimi-code"].session.defect.reason, HARNESSES["factory-droids"].session.defect.reason, HARNESSES["amp"].session.defect.reason, HARNESSES["prime"].session.defect.reason, HARNESSES["hermes"].session.defect.reason, HARNESSES["forge"].session.defect.reason, HARNESSES["openclaw"].session.defect.reason, HARNESSES["acp"].session.defect.reason;
|
|
1041
1041
|
HARNESSES["nanoclaw"].session.defect.reason, HARNESSES["cursor"].session.defect.reason;
|
|
1042
1042
|
//#endregion
|
|
1043
|
-
//#region ../../../packages/cli-agent-registry/dist/specs-
|
|
1043
|
+
//#region ../../../packages/cli-agent-registry/dist/specs-cHtqkuQl.mjs
|
|
1044
1044
|
z.globalRegistry.add(agentProfileSchema$1, {
|
|
1045
1045
|
id: "AgentProfile",
|
|
1046
1046
|
...agentProfileJsonSchema
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-CLvdSX8V.js";
|
|
2
|
-
import {
|
|
2
|
+
import { D as foldModelRoutingFields, E as assertCurrentBackendType, M as withProfileHarness, N as withoutCreateOnlyModelFields, S as encodePromptForWire, T as applyRequestedModel, k as normalizeRuntimeBackendConfig, o as requestInteractiveSessionToken } from "./interactive-controller-D5tWSSI1.js";
|
|
3
3
|
import { E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, c as CompliancePlacementError, f as GpuProviderNotConfiguredError, g as NotFoundError, h as NetworkError, i as readResponseJson, m as NON_RETRYABLE_CREATE_QUOTA_REASONS, n as parseErrorResponse, r as parseResponseError, x as SandboxError, y as QuotaError } from "./errors-Bs5G7JdV.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as fetchSandboxApi } from "./api-request-
|
|
6
|
-
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-
|
|
7
|
-
import { A as normalizeSandboxCreateReceipt, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, T as splitInlineProfileFileMounts, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, o as exportTraceBundle } from "./sandbox-
|
|
8
|
-
import { t as
|
|
4
|
+
import { n as combineAbortSignals } from "./abort-signal-BKVZNJul.js";
|
|
5
|
+
import { t as fetchSandboxApi } from "./api-request-D1UVNo16.js";
|
|
6
|
+
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-Bi-zvHpN.js";
|
|
7
|
+
import { A as normalizeSandboxCreateReceipt, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, T as splitInlineProfileFileMounts, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, o as exportTraceBundle } from "./sandbox-BQhQSXF6.js";
|
|
8
|
+
import { t as parseSSEStream } from "./sse-parser-CUfurwcm.js";
|
|
9
|
+
import { t as LinesClient } from "./lines-D_HDAcVt.js";
|
|
9
10
|
import { PublicTemplatesClient } from "./public-templates.js";
|
|
10
11
|
import { z } from "zod";
|
|
11
12
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
@@ -1316,11 +1317,11 @@ function isLocalSandboxEndpoint(baseUrl) {
|
|
|
1316
1317
|
}
|
|
1317
1318
|
}
|
|
1318
1319
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
1319
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
1320
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-BdufYsAM.js");
|
|
1320
1321
|
return discoverLocalCliAuthFiles(backendType);
|
|
1321
1322
|
}
|
|
1322
1323
|
async function loadLocalCliAuthExpectation(backendType) {
|
|
1323
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
1324
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-BdufYsAM.js");
|
|
1324
1325
|
return describe(backendType);
|
|
1325
1326
|
}
|
|
1326
1327
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-
|
|
2
|
-
import { I as SandboxError, c as MintInteractiveSessionTokenOptions, u as ScopedToken } from "./terminal-stream-types-
|
|
3
|
-
import { $n as TeeAttestationReport, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Bt as FleetDispatchCancelResult, En as SandboxFleetTraceBundle, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Gt as FleetExecDispatchResult, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, Ia as GpuLeaseProviderName, Ii as SdkTimingHook, It as FleetAgentId, Jt as FleetPromptDispatchResult, Ki as BatchRunOptions, Kt as FleetMachineId, M as UsageInfo, Mi as ManagedProcessSpec, Mn as SandboxFleetWorkspaceReconcileResult, Mt as AttachSandboxFleetMachineOptions, Nn as SandboxFleetWorkspaceRestoreResult, Nt as CreateSandboxFleetOptions, Oi as ManagedProcessJobs, Pi as HttpClient, Pn as SandboxFleetWorkspaceSnapshotResult, Pt as CreateSandboxFleetTokenOptions, Qt as ReapExpiredSandboxFleetsOptions, Rt as FleetAgentResult, Sn as SandboxFleetPolicy, T as SshKeysManager, Tn as SandboxFleetToken, Ut as FleetDispatchStreamOptions, Vt as FleetDispatchResultBuffer, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Yt as FleetRunEvent, Z as TokenRefreshHandler, Zi as CreateIntelligenceReportOptions, Zt as ListSandboxFleetOptions, _n as SandboxFleetManifest, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportBudget, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, bn as SandboxFleetParent, ca as IntelligenceReportWindow, cn as SandboxFleetDispatchResponse, cr as SandboxShapesInfo, da as PromptResult, dn as SandboxFleetInfo, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, fa as SandboxEvent, fo as BatchResult, fr as SandboxShapePreset, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, hn as SandboxFleetMachineRecord, ho as PublicBatchRunRequest, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReport, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, la as PromptInputPart, ln as SandboxFleetDriverCapability, nn as SandboxFleetAgent, nt as ConversationTurnResult, oa as IntelligenceReportCompareTo, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, or as SandboxConfig, pn as SandboxFleetMachine, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, sr as SandboxResources, ti as ExecResult, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, ua as PromptOptions, vo as BatchEvent, w as SecretsManager, wn as SandboxFleetSpend, xa as BackendConfig, ya as TurnBackendConfig, yn as SandboxFleetOperationsSummary, zn as SandboxInfo } from "./types-
|
|
4
|
-
import { t as LinesClient } from "./lines-
|
|
5
|
-
import { a as PublicTemplatesClient } from "./public-templates-
|
|
1
|
+
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-nXob5TkM.js";
|
|
2
|
+
import { I as SandboxError, c as MintInteractiveSessionTokenOptions, u as ScopedToken } from "./terminal-stream-types-DuzvL1ge.js";
|
|
3
|
+
import { $n as TeeAttestationReport, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Bt as FleetDispatchCancelResult, En as SandboxFleetTraceBundle, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Gt as FleetExecDispatchResult, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, Ia as GpuLeaseProviderName, Ii as SdkTimingHook, It as FleetAgentId, Jt as FleetPromptDispatchResult, Ki as BatchRunOptions, Kt as FleetMachineId, M as UsageInfo, Mi as ManagedProcessSpec, Mn as SandboxFleetWorkspaceReconcileResult, Mt as AttachSandboxFleetMachineOptions, Nn as SandboxFleetWorkspaceRestoreResult, Nt as CreateSandboxFleetOptions, Oi as ManagedProcessJobs, Pi as HttpClient, Pn as SandboxFleetWorkspaceSnapshotResult, Pt as CreateSandboxFleetTokenOptions, Qt as ReapExpiredSandboxFleetsOptions, Rt as FleetAgentResult, Sn as SandboxFleetPolicy, T as SshKeysManager, Tn as SandboxFleetToken, Ut as FleetDispatchStreamOptions, Vt as FleetDispatchResultBuffer, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Yt as FleetRunEvent, Z as TokenRefreshHandler, Zi as CreateIntelligenceReportOptions, Zt as ListSandboxFleetOptions, _n as SandboxFleetManifest, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportBudget, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, bn as SandboxFleetParent, ca as IntelligenceReportWindow, cn as SandboxFleetDispatchResponse, cr as SandboxShapesInfo, da as PromptResult, dn as SandboxFleetInfo, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, fa as SandboxEvent, fo as BatchResult, fr as SandboxShapePreset, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, hn as SandboxFleetMachineRecord, ho as PublicBatchRunRequest, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReport, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, la as PromptInputPart, ln as SandboxFleetDriverCapability, nn as SandboxFleetAgent, nt as ConversationTurnResult, oa as IntelligenceReportCompareTo, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, or as SandboxConfig, pn as SandboxFleetMachine, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, sr as SandboxResources, ti as ExecResult, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, ua as PromptOptions, vo as BatchEvent, w as SecretsManager, wn as SandboxFleetSpend, xa as BackendConfig, ya as TurnBackendConfig, yn as SandboxFleetOperationsSummary, zn as SandboxInfo } from "./types-CkLWX7i5.js";
|
|
4
|
+
import { t as LinesClient } from "./lines-BoVYnUCM.js";
|
|
5
|
+
import { a as PublicTemplatesClient } from "./public-templates-B6_uwnRZ.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
8
8
|
import { AgentInteractiveSessionRef, AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities as AgentProfileCapabilities$1, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSeat, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult as AgentProfileValidationResult$1, AgentRunCancellationAcknowledgement as AgentRunCancellationAcknowledgement$1, AgentRunCancellationRequest as AgentRunCancellationRequest$1, AgentRuntimeAttachments, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset as SandboxSizePreset$1 } from "@tangle-network/agent-interface";
|
|
@@ -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-C0RkLba5.js";
|
|
2
2
|
export { CollaborationBootstrapRequest, CollaborationBootstrapResponse, CollaborationClient, CollaborationClientConfig, CollaborationDocumentAdapter, CollaborationDocumentChange, CollaborationDocumentRef, CollaborationFileBridge, CollaborationFileBridgeOptions, CollaborationFileEvent, CollaborationPermissions, CollaborationTokenRefreshRequest, CollaborationTokenRefreshResponse, CollaborationTransportConfig, SaveCollaborationSnapshotRequest, SaveCollaborationSnapshotResponse, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-
|
|
1
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-BwLNv6sy.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as ValidationError, s as CapabilityError, x as SandboxError } from "./errors-Bs5G7JdV.js";
|
|
2
|
-
import {
|
|
3
|
-
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-
|
|
2
|
+
import { t as awaitWithAbort } from "./abort-signal-BKVZNJul.js";
|
|
3
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-Bq-5b0FT.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { agentProfileSchema, canonicalAgentProfileDigest } from "@tangle-network/agent-interface";
|
|
6
6
|
//#region src/failure-kind.ts
|
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-
|
|
2
|
-
import { A as NetworkError, B as StateError, E as FileWriteConflictError, I as SandboxError, L as SandboxErrorJson, M as PartialFailureError, N as ProfileFileMountPathError, P as QuotaError, R as SandboxFailureDetail, S as CapabilityError, U as TimeoutError, W as ValidationError, b as AuthError, j as NotFoundError, z as ServerError } from "./terminal-stream-types-
|
|
3
|
-
import { Ai as ManagedProcessRecord, Ba as WorkspaceImagePublishInput, Ct as SessionMessageAdmission, H as PreviewLinkInfo, Ja as SandboxEnvRecoveryView, Mi as ManagedProcessSpec, Ni as ManagedProcessState, Oi as ManagedProcessJobs, U as PreviewLinkManager, Va as WorkspaceImagePublishResult, W as PreviewLinkWaitOptions, _r as NetworkConfig, ar as CreateSandboxOptions, ei as ExecOptions, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, la as PromptInputPart, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecovery, ti as ExecResult, tt as ConversationTurnOptions, zn as SandboxInfo } from "./types-
|
|
4
|
-
import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-
|
|
5
|
-
import { At as SeatOwnerTransport, Bt as InstanceRecord, Cn as backendRegistryInteractionKindSchema, Dn as parseBackendRegistryResponseBody, Dt as SandboxSeatCredentials, En as parseBackendRegistryResponse, Et as SandboxResolvedSeat, Ft as gatewaySeatTransport, Gt as sandboxFailureKind, It as ManagedProcessClient, Lt as EnsureInstanceOptions, Mt as SeatSelectionError, Nt as SeatSelectionRequest, Ot as SandboxSeatSelectionInput, Pt as createSelectSeat, Rt as HostedInstance, Sn as backendRegistryEntrySchema, Tn as isBackendRegistryInteractionKind, Tt as CreateSelectSeatOptions, Ut as InstancesClient, Vt as InstanceRestartingError, Wt as SandboxFailureKind, _n as BackendRegistryCapabilities, bn as BackendRegistryResponse, jt as SeatResolutionObservation, kt as SeatOwnerReply, t as Sandbox, vn as BackendRegistryEntry, wn as backendRegistryResponseSchema, wt as ISOLATED_CREATION_ATTESTATION_VERSION, xn as backendRegistryCapabilitiesSchema, yn as BackendRegistryInteractionKind, zt as InstanceProfile } from "./client-
|
|
6
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
1
|
+
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-nXob5TkM.js";
|
|
2
|
+
import { A as NetworkError, B as StateError, E as FileWriteConflictError, I as SandboxError, L as SandboxErrorJson, M as PartialFailureError, N as ProfileFileMountPathError, P as QuotaError, R as SandboxFailureDetail, S as CapabilityError, U as TimeoutError, W as ValidationError, b as AuthError, j as NotFoundError, z as ServerError } from "./terminal-stream-types-DuzvL1ge.js";
|
|
3
|
+
import { Ai as ManagedProcessRecord, Ba as WorkspaceImagePublishInput, Ct as SessionMessageAdmission, H as PreviewLinkInfo, Ja as SandboxEnvRecoveryView, Mi as ManagedProcessSpec, Ni as ManagedProcessState, Oi as ManagedProcessJobs, U as PreviewLinkManager, Va as WorkspaceImagePublishResult, W as PreviewLinkWaitOptions, _r as NetworkConfig, ar as CreateSandboxOptions, ei as ExecOptions, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, la as PromptInputPart, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecovery, ti as ExecResult, tt as ConversationTurnOptions, zn as SandboxInfo } from "./types-CkLWX7i5.js";
|
|
4
|
+
import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-BoVYnUCM.js";
|
|
5
|
+
import { At as SeatOwnerTransport, Bt as InstanceRecord, Cn as backendRegistryInteractionKindSchema, Dn as parseBackendRegistryResponseBody, Dt as SandboxSeatCredentials, En as parseBackendRegistryResponse, Et as SandboxResolvedSeat, Ft as gatewaySeatTransport, Gt as sandboxFailureKind, It as ManagedProcessClient, Lt as EnsureInstanceOptions, Mt as SeatSelectionError, Nt as SeatSelectionRequest, Ot as SandboxSeatSelectionInput, Pt as createSelectSeat, Rt as HostedInstance, Sn as backendRegistryEntrySchema, Tn as isBackendRegistryInteractionKind, Tt as CreateSelectSeatOptions, Ut as InstancesClient, Vt as InstanceRestartingError, Wt as SandboxFailureKind, _n as BackendRegistryCapabilities, bn as BackendRegistryResponse, jt as SeatResolutionObservation, kt as SeatOwnerReply, t as Sandbox, vn as BackendRegistryEntry, wn as backendRegistryResponseSchema, wt as ISOLATED_CREATION_ATTESTATION_VERSION, xn as backendRegistryCapabilitiesSchema, yn as BackendRegistryInteractionKind, zt as InstanceProfile } from "./client-XWxiuhwy.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-B6_uwnRZ.js";
|
|
7
7
|
export { AuthError, BackendRegistryCapabilities, BackendRegistryEntry, BackendRegistryInteractionKind, BackendRegistryResponse, CapabilityError, ConversationTurnOptions, ConversationTurnResult, CreateSandboxOptions, CreateSelectSeatOptions, EnsureInstanceOptions, ExecOptions, ExecResult, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceProfile, InstanceRecord, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, Line, LineAgentRolePolicy, LineApplication, LineApplicationAttachOptions, LineApplicationRequest, LineApplicationResult, LineApplicationState, LineApplicationView, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineMember, LineMemberInstance, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LinesClient, ManagedProcessClient, ManagedProcessJobs, ManagedProcessOptions, ManagedProcessRecord, ManagedProcessResumeOptions, ManagedProcessSpec, ManagedProcessState, NetworkConfig, NetworkError, NotFoundError, PartialFailureError, PreviewLinkInfo, PreviewLinkManager, PreviewLinkWaitOptions, ProfileFileDeliveryReport, ProfileFileMountPathError, PromptInputPart, PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient, QuotaError, Sandbox, SandboxConfig, SandboxEnvRecovery, SandboxEnvRecoveryView, SandboxError, SandboxErrorJson, SandboxFailureDetail, SandboxFailureKind, SandboxInfo, SandboxInstance, SandboxResolvedSeat, SandboxSeatCredentials, SandboxSeatSelectionInput, SandboxStatus, SeatOwnerReply, SeatOwnerTransport, SeatResolutionObservation, SeatSelectionError, SeatSelectionRequest, ServerError, SessionMessageAdmission, StateError, TimeoutError, ValidationError, WorkspaceImagePublishInput, WorkspaceImagePublishRequestOptions, WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
|
package/dist/core.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-Bs5G7JdV.js";
|
|
2
|
-
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-
|
|
3
|
-
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
4
|
-
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-
|
|
2
|
+
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-E6qmM8wZ.js";
|
|
3
|
+
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-BQhQSXF6.js";
|
|
4
|
+
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-D_HDAcVt.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
|
-
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-
|
|
6
|
+
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-KP6tmonl.js";
|
|
7
7
|
export { AuthError, CapabilityError, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, Sandbox, SandboxError, SandboxInstance, SeatSelectionError, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I as SandboxError, K as SandboxCreateReceipt, g as TerminalReadyInfo, i as TerminalStreamHandlers, l as MintScopedTokenOptions, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-
|
|
2
|
-
import { $a as RawEvidenceBoxDirectoryExport, $i as DurablePlanDecisionOptions, $r as SearchOptions, Ba as WorkspaceImagePublishInput, Bi as ForkLookupOptions, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ca as BackendManager, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ei as CodeExecutionResult, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, Fi as JsonValue, G as GitBranch, Ha as CodeLanguage, Hi as RolloutOptions, In as SSHCommandDescriptor, J as GitStatus, Ja as SandboxEnvRecoveryView, K as GitCommit, Li as BranchOptions, Ln as SSHCredentials, Lr as FileSystem, N as WaitForOptions, Pi as HttpClient, Q as CommitTaskSessionOptions, Qi as DurablePlan, Qn as TeeAttestationOptions, Qr as SearchMatch, Ri as ForkCounts, Rn as SandboxConnection, S as StopOptions, St as SessionMessage, Ti as CodeExecutionOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ui as RolloutStartResult, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Va as WorkspaceImagePublishResult, Vi as Rollout, Wi as WaitForRolloutOptions, Wn as SandboxTerminalAttachOptions, Xn as StartupDiagnostics, Xr as WriteManyFile, Yn as SandboxTerminals, Yr as WriteFileOptions, Zr as WriteManyOptions, _ as SnapshotInfo, _a as SandboxTraceOptions, aa as IntelligenceReportBudget, ar as CreateSandboxOptions, at as DispatchPromptOptions, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as IntelligenceReportWindow, ct as ListMessagesOptions, d as SandboxOperationKind, da as PromptResult, dr as SandboxShape, dt as SendSessionMessageRequest, ea as DurablePlanDecisionResult, ei as ExecOptions, eo as RawEvidenceBoxExportOptions, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fa as SandboxEvent, fi as DriverInfo, ft as SentSessionMessage, gr as EgressManager, ht as SessionExecutionInfo, ia as IntelligenceReport, it as CreateTaskSessionOptions, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, la as PromptInputPart, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, ma as SandboxTraceBundle, mi as GpuLease, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, no as RawEvidenceExportOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, oa as IntelligenceReportCompareTo, ot as DispatchedSession, pr as SandboxResourceUsage, q as GitDiff, qa as SandboxEnvRecovery, ra as EventStreamOptions, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, so as InteractionResolutionAcknowledgement, st as DriveTurnOptions, ti as ExecResult, to as RawEvidenceDirectoryExport, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptOptions, ut as SendSessionMessageOptions, v as SnapshotOptions, vr as NetworkManager, vt as SessionForkOptions, x as SnapshotResult, xa as BackendConfig, xt as SessionListOptions, y as SnapshotProvenance, ya as TurnBackendConfig, yi as GpuLeaseManager, yt as SessionInfo, z as ProcessManager, zi as ForkIdempotency, zn as SandboxInfo } from "./types-
|
|
3
|
-
import { t as CliAuthReference } from "./cli-auth-bundle-
|
|
4
|
-
import { n as SandboxLines } from "./lines-
|
|
5
|
-
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-
|
|
6
|
-
import { r as InteractiveAttachRequest } from "./interactive-controller-
|
|
1
|
+
import { I as SandboxError, K as SandboxCreateReceipt, g as TerminalReadyInfo, i as TerminalStreamHandlers, l as MintScopedTokenOptions, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-DuzvL1ge.js";
|
|
2
|
+
import { $a as RawEvidenceBoxDirectoryExport, $i as DurablePlanDecisionOptions, $r as SearchOptions, Ba as WorkspaceImagePublishInput, Bi as ForkLookupOptions, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ca as BackendManager, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ei as CodeExecutionResult, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, Fi as JsonValue, G as GitBranch, Ha as CodeLanguage, Hi as RolloutOptions, In as SSHCommandDescriptor, J as GitStatus, Ja as SandboxEnvRecoveryView, K as GitCommit, Li as BranchOptions, Ln as SSHCredentials, Lr as FileSystem, N as WaitForOptions, Pi as HttpClient, Q as CommitTaskSessionOptions, Qi as DurablePlan, Qn as TeeAttestationOptions, Qr as SearchMatch, Ri as ForkCounts, Rn as SandboxConnection, S as StopOptions, St as SessionMessage, Ti as CodeExecutionOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ui as RolloutStartResult, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Va as WorkspaceImagePublishResult, Vi as Rollout, Wi as WaitForRolloutOptions, Wn as SandboxTerminalAttachOptions, Xn as StartupDiagnostics, Xr as WriteManyFile, Yn as SandboxTerminals, Yr as WriteFileOptions, Zr as WriteManyOptions, _ as SnapshotInfo, _a as SandboxTraceOptions, aa as IntelligenceReportBudget, ar as CreateSandboxOptions, at as DispatchPromptOptions, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as IntelligenceReportWindow, ct as ListMessagesOptions, d as SandboxOperationKind, da as PromptResult, dr as SandboxShape, dt as SendSessionMessageRequest, ea as DurablePlanDecisionResult, ei as ExecOptions, eo as RawEvidenceBoxExportOptions, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fa as SandboxEvent, fi as DriverInfo, ft as SentSessionMessage, gr as EgressManager, ht as SessionExecutionInfo, ia as IntelligenceReport, it as CreateTaskSessionOptions, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, la as PromptInputPart, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, ma as SandboxTraceBundle, mi as GpuLease, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, no as RawEvidenceExportOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, oa as IntelligenceReportCompareTo, ot as DispatchedSession, pr as SandboxResourceUsage, q as GitDiff, qa as SandboxEnvRecovery, ra as EventStreamOptions, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, so as InteractionResolutionAcknowledgement, st as DriveTurnOptions, ti as ExecResult, to as RawEvidenceDirectoryExport, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptOptions, ut as SendSessionMessageOptions, v as SnapshotOptions, vr as NetworkManager, vt as SessionForkOptions, x as SnapshotResult, xa as BackendConfig, xt as SessionListOptions, y as SnapshotProvenance, ya as TurnBackendConfig, yi as GpuLeaseManager, yt as SessionInfo, z as ProcessManager, zi as ForkIdempotency, zn as SandboxInfo } from "./types-CkLWX7i5.js";
|
|
3
|
+
import { t as CliAuthReference } from "./cli-auth-bundle-CeNOYFje.js";
|
|
4
|
+
import { n as SandboxLines } from "./lines-BoVYnUCM.js";
|
|
5
|
+
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-SI9hV6r5.js";
|
|
6
|
+
import { r as InteractiveAttachRequest } from "./interactive-controller-FgmcS8_Y.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import * as Agent from "@tangle-network/agent-interface";
|
|
9
9
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimRequest, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStopAcknowledgement, AgentInteractiveSessionStopCommand, AgentInteractiveTerminalSession, AgentInteractiveTerminalSession as AgentInteractiveTerminalSession$1, AgentProfile, AgentProfileFileMount, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand, TerminalOutputEvent, TerminalReplayWindow, agentInteractiveSessionPromptRequestDigest } from "@tangle-network/agent-interface";
|
|
@@ -1446,14 +1446,14 @@ declare abstract class SandboxSessionAdmissionCapabilities extends SandboxProfil
|
|
|
1446
1446
|
/**
|
|
1447
1447
|
* List messages for a session, including in-flight assistant content
|
|
1448
1448
|
* the agent is still streaming. Each entry's `metadata` carries the
|
|
1449
|
-
*
|
|
1450
|
-
* `completed/interrupted` booleans
|
|
1451
|
-
*
|
|
1449
|
+
* turn state — `status: "streaming" | "completed" | "interrupted"` and
|
|
1450
|
+
* the `completed/interrupted` booleans. See `SessionMessage` for the
|
|
1451
|
+
* full contract.
|
|
1452
1452
|
*
|
|
1453
1453
|
* Polling this is the right way to detect "did the sidecar die mid-
|
|
1454
|
-
* turn?" — a SIGKILL
|
|
1455
|
-
*
|
|
1456
|
-
*
|
|
1454
|
+
* turn?" — after a SIGKILL the restarted sidecar reports the turn
|
|
1455
|
+
* `interrupted` with `interruptReason: "runtime_restart"`, keeping the
|
|
1456
|
+
* parts it streamed.
|
|
1457
1457
|
*/
|
|
1458
1458
|
messages(opts: ListMessagesOptions): Promise<SessionMessage[]>;
|
|
1459
1459
|
/** @internal — invoked by SandboxSession.sendMessage(). */
|
|
@@ -1546,8 +1546,8 @@ declare abstract class SandboxInteractiveCapabilities extends SandboxPromptCapab
|
|
|
1546
1546
|
/**
|
|
1547
1547
|
* Mint a scoped, time-bounded JWT for browser access (Issue #913 Gap 1).
|
|
1548
1548
|
* Authority is the caller's `TANGLE_API_KEY` (sk-tan-*); signing secrets
|
|
1549
|
-
* stay server-side.
|
|
1550
|
-
*
|
|
1549
|
+
* stay server-side. Native session streams use read-only session-runtime;
|
|
1550
|
+
* session/project retain legacy gateway semantics.
|
|
1551
1551
|
*/
|
|
1552
1552
|
mintScopedToken(opts: MintScopedTokenOptions): Promise<ScopedToken>;
|
|
1553
1553
|
/** @internal — delegated to the native interactive operations module. */
|