@tangle-network/sandbox 0.30.0 → 0.30.2-develop.20260820100122.dc85046
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +3 -3
- package/dist/agent/index.js +3 -3
- package/dist/agent-run-outcome-TwIC-Ccd.d.ts +27 -0
- package/dist/{client-DyFI5GnE.d.ts → client-1OK1sjCh.d.ts} +19 -8
- package/dist/{client-BnhE_gUq.js → client-CCKEVUaD.js} +12 -2
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-ldDRk8Jh.d.ts → index-DAxioMfr.d.ts} +2 -2
- package/dist/index.d.ts +6 -5
- package/dist/index.js +5 -5
- package/dist/openai/index.d.ts +24 -2
- package/dist/openai/index.js +147 -67
- package/dist/{runtime-api-CK-4S7oA.js → runtime-api-TVLbV10b.js} +388 -2
- package/dist/runtime.d.ts +3 -2
- package/dist/runtime.js +2 -2
- package/dist/{sandbox-B49ZGQv7.d.ts → sandbox-Caev7isY.d.ts} +6 -8
- package/dist/{sandbox-BwIaQcE7.js → sandbox-DM-VD8ja.js} +207 -326
- package/dist/session-gateway/index.d.ts +56 -2
- package/dist/session-gateway/index.js +25 -3
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-CGzEfYFL.js → tangle-lzUyvhKp.js} +1 -1
- package/dist/{types-Qn3x7R8O.d.ts → types-D_ykdqn6.d.ts} +11 -7
- package/package.json +4 -3
package/dist/runtime.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $r as SandboxTerminalRequestOptions, Bi as TaskSessionInfo, C as ChunkedUploadResult, Hr as SandboxPortBinding, Kn as RenameOptions, L as CreateSessionOptions, Li as TaskSessionChanges, O as CommitTaskSessionOptions, Qi as UploadProgress, Qr as SandboxTerminalManager, R as CreateTaskSessionOptions, Ri as TaskSessionCommitResult, S as ChunkedUploadOptions, Si as SessionMessage, St as FileWriteResult, Xr as SandboxTerminalCreateOptions, Zr as SandboxTerminalInfo, bt as FileUsageOptions, dt as FileReadBatchOptions, fi as SendSessionMessageOptions, ft as FileReadBatchResult, ht as FileRenameResult, mi as SentSessionMessage, pi as SendSessionMessageRequest, qr as SandboxRuntimeHealth, ra as WriteFileOptions, sn as ListMessagesOptions, vt as FileTreeOptions, xt as FileUsageResult, yi as SessionInfo, yt as FileTreeResult } from "./types-D_ykdqn6.js";
|
|
2
2
|
import { a as NetworkError, c as QuotaError, d as SandboxFailureDetail, f as ServerError, h as ValidationError, i as FileWriteConflictError, l as SandboxError, m as TimeoutError, n as CapabilityError, o as NotFoundError, p as StateError, s as PartialFailureError, t as AuthError, u as SandboxErrorJson } from "./errors-Bdy5jXzc.js";
|
|
3
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-TwIC-Ccd.js";
|
|
3
4
|
|
|
4
5
|
//#region src/lib/chunked-upload.d.ts
|
|
5
6
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
|
@@ -103,4 +104,4 @@ declare class SandboxRuntimeClient extends SandboxRuntimeApi {
|
|
|
103
104
|
}
|
|
104
105
|
declare function createSandboxRuntimeClient(config: SandboxRuntimeClientConfig): SandboxRuntimeClient;
|
|
105
106
|
//#endregion
|
|
106
|
-
export { AuthError, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type ChunkedUploadTransport, type FileReadBatchOptions, type FileReadBatchResult, type FileRenameResult, type FileTreeOptions, type FileTreeResult, FileWriteConflictError, type FileWriteResult, type ListMessagesOptions, NetworkError, NotFoundError, PartialFailureError, QuotaError, type RenameOptions, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, SandboxRuntimeClient, type SandboxRuntimeClientConfig, type SandboxRuntimeHealth, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, ServerError, type SessionMessage, StateError, TimeoutError, type UploadProgress, ValidationError, type WriteFileOptions, createSandboxRuntimeClient, uploadChunked };
|
|
107
|
+
export { type AgentRunOutcome, type AgentRunOutcomeTracker, AuthError, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type ChunkedUploadTransport, type FileReadBatchOptions, type FileReadBatchResult, type FileRenameResult, type FileTreeOptions, type FileTreeResult, FileWriteConflictError, type FileWriteResult, type ListMessagesOptions, NetworkError, NotFoundError, PartialFailureError, QuotaError, type RenameOptions, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, SandboxRuntimeClient, type SandboxRuntimeClientConfig, type SandboxRuntimeHealth, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, ServerError, type SessionMessage, StateError, TimeoutError, type UploadProgress, ValidationError, type WriteFileOptions, createAgentRunOutcomeTracker, createSandboxRuntimeClient, deriveAgentResultOutcome, deriveAgentRunOutcome, uploadChunked };
|
package/dist/runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as uploadChunked, c as combineAbortSignals, t as SandboxRuntimeApi } from "./runtime-api-
|
|
1
|
+
import { a as uploadChunked, c as combineAbortSignals, g as deriveAgentRunOutcome, h as deriveAgentResultOutcome, m as createAgentRunOutcomeTracker, t as SandboxRuntimeApi } from "./runtime-api-TVLbV10b.js";
|
|
2
2
|
import { a as NetworkError, c as QuotaError, d as StateError, f as TimeoutError, i as FileWriteConflictError, l as SandboxError, n as CapabilityError, o as NotFoundError, p as ValidationError, s as PartialFailureError, t as AuthError, u as ServerError } from "./errors-C6kn-3zt.js";
|
|
3
3
|
//#region src/runtime-client.ts
|
|
4
4
|
const DEFAULT_RUNTIME_TIMEOUT_MS = 3e4;
|
|
@@ -80,4 +80,4 @@ function createSandboxRuntimeClient(config) {
|
|
|
80
80
|
return new SandboxRuntimeClient(config);
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
|
-
export { AuthError, CapabilityError, FileWriteConflictError, NetworkError, NotFoundError, PartialFailureError, QuotaError, SandboxError, SandboxRuntimeClient, ServerError, StateError, TimeoutError, ValidationError, createSandboxRuntimeClient, uploadChunked };
|
|
83
|
+
export { AuthError, CapabilityError, FileWriteConflictError, NetworkError, NotFoundError, PartialFailureError, QuotaError, SandboxError, SandboxRuntimeClient, ServerError, StateError, TimeoutError, ValidationError, createAgentRunOutcomeTracker, createSandboxRuntimeClient, deriveAgentResultOutcome, deriveAgentRunOutcome, uploadChunked };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $n as RolloutStartResult, Ai as SnapshotOptions, Ar as SandboxFleetTraceBundle, Bi as TaskSessionInfo, Br as SandboxInfo, Bt as GitCommit, Dn as ProcessManager, E as CodeLanguage, Ei as SnapshotDeleteAcknowledgement, Fn as ProvisionResult, Ft as ForkIdempotency, H as DispatchPromptOptions, Hi as TeeAttestationOptions, Hr as SandboxPortBinding, Ht as GitDiff, It as ForkLookupOptions, J as DriverInfo, Jn as ResumeOptions, Jr as SandboxStatus, K as DriveTurnOptions, Ki as TeePublicKeyResponse, Kr as SandboxRuntimeCapabilities, L as CreateSessionOptions, Li as TaskSessionChanges, Mn as PromptOptions, Ni as StartupDiagnostics, Nn as PromptResult, O as CommitTaskSessionOptions, Pn as ProvisionEvent, Pt as ForkCounts, R as CreateTaskSessionOptions, Ri as TaskSessionCommitResult, Si as SessionMessage, St as FileWriteResult, T as CodeExecutionResult, U as DispatchedSession, Ut as GitStatus, Wi as TeeAttestationResponse, Wr as SandboxResourceUsage, Wt as GpuLease, X as DurablePlan, Yi as TurnDriveResult, Yn as Rollout, Yr as SandboxTerminalAttachOptions, Yt as GpuLeaseManager, Z as DurablePlanDecisionResult, Zn as RolloutOptions, _a as TerminalStream, aa as WriteManyOptions, an as IntelligenceReportWindow, ar as SandboxConnection, ba as TerminalStreamHandlers, bi as SessionInterruptOptions, ci as SearchMatch, cr as SandboxDeleteAcknowledgement, ct as ExecOptions, d as BackendConfig, dr as SandboxEvent, ea as WaitForOptions, ei as SandboxTerminals, en as InstalledTool, fa as BackendType, fi as SendSessionMessageOptions, gi as SessionEventStreamOptions, gn as NetworkManager, gt as FileSystem, ia as WriteManyFile, ii as SandboxTraceOptions, ji as SnapshotResult, jn as PromptInputPart, k as CompletedTurnResult, ki as SnapshotInfo, li as SearchOptions, lt as ExecResult, mi as SentSessionMessage, na as WorkspaceOperationLookup, nn as IntelligenceReportBudget, nr as SSHCommandDescriptor, oi as ScopedToken, on as JsonValue, ot as EventStreamOptions, p as BackendManager, pi as SendSessionMessageRequest, pn as MintScopedTokenOptions, qn as RestoreSnapshotOptions, qr as SandboxRuntimeHealth, ra as WriteFileOptions, rn as IntelligenceReportCompareTo, rr as SSHCredentials, rt as EgressManager, sn as ListMessagesOptions, sr as SandboxCreateReceipt, ta as WaitForRolloutOptions, ti as SandboxTraceBundle, tn as IntelligenceReport, vi as SessionForkOptions, w as CodeExecutionOptions, wi as SessionResultOptions, x as BranchOptions, xi as SessionListOptions, xn as PreviewLinkManager, yi as SessionInfo, yn as PermissionsManager, zt as GitBranch } from "./types-D_ykdqn6.js";
|
|
2
2
|
import { AgentProfile, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand } from "@tangle-network/agent-interface";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
@@ -969,15 +969,13 @@ declare class SandboxInstance {
|
|
|
969
969
|
* Stream events from an agent prompt.
|
|
970
970
|
* Use this for real-time updates during agent execution.
|
|
971
971
|
*
|
|
972
|
-
* Guarantees
|
|
973
|
-
* ends with
|
|
974
|
-
* error
|
|
975
|
-
*
|
|
976
|
-
* never a thrown generator. Caller-initiated cancellation (aborting
|
|
977
|
-
* `options.signal`) ends the stream silently with no synthetic terminal.
|
|
972
|
+
* Guarantees terminal completion on every non-cancelled path. A clean run
|
|
973
|
+
* emits a `result` summary and ends with `done`. A failure is an in-band
|
|
974
|
+
* `error` followed by `done`, never a thrown generator. Caller cancellation
|
|
975
|
+
* ends the stream silently with no synthetic terminal.
|
|
978
976
|
*
|
|
979
977
|
* Automatically reconnects via the runtime event replay endpoint if the
|
|
980
|
-
* SSE stream drops before a terminal event (`
|
|
978
|
+
* SSE stream drops before a terminal event (`done` or `error`) is
|
|
981
979
|
* received. Reconnection is transparent — replayed events that were
|
|
982
980
|
* already yielded (based on event ID tracking) are deduplicated.
|
|
983
981
|
*/
|