@tangle-network/sandbox 0.9.2 → 0.9.3-develop.20260627002527.3cd562b
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 +2 -2
- package/dist/agent/index.js +1026 -1
- package/dist/auth/index.js +273 -1
- package/dist/{client-D3FqPlde.d.ts → client-BBb2p7y5.d.ts} +1 -1
- package/dist/client-CjqJUa22.js +2193 -0
- package/dist/collaboration/index.js +2 -1
- package/dist/collaboration-BxlfZ2Uh.js +201 -1
- package/dist/core.d.ts +2 -2
- package/dist/core.js +4 -1
- package/dist/errors-DZsfJUuc.js +262 -1
- package/dist/{index-Dy1fHLYz.d.ts → index-BY1_6xI7.d.ts} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1180 -1
- package/dist/intelligence/index.js +225 -1
- package/dist/openai/index.js +1760 -1
- package/dist/{sandbox-B55j2q9K.d.ts → sandbox-BQQ2jhV3.d.ts} +14 -26
- package/dist/sandbox-FcVsLeUJ.js +4500 -0
- package/dist/session-gateway/index.js +667 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +2 -1
- package/dist/tangle-DvdKAK94.js +831 -0
- package/package.json +4 -4
- package/dist/client-BBZ7YLmq.js +0 -1
- package/dist/sandbox-joKtQ5y3.js +0 -1
- package/dist/tangle-DM0o66lW.js +0 -1
|
@@ -4254,25 +4254,8 @@ interface InteractiveSessionInfo {
|
|
|
4254
4254
|
}
|
|
4255
4255
|
/** Decision passed to `respondToPermission`. */
|
|
4256
4256
|
interface RespondToPermissionOptions {
|
|
4257
|
-
/** The human's decision for the awaiting permission
|
|
4257
|
+
/** The human's decision for the awaiting permission interaction. */
|
|
4258
4258
|
response: "allow" | "deny";
|
|
4259
|
-
/**
|
|
4260
|
-
* Optional audit metadata recorded alongside the decision (e.g. the
|
|
4261
|
-
* reviewer's identity or a reason string). Opaque to the sandbox.
|
|
4262
|
-
*/
|
|
4263
|
-
metadata?: Record<string, unknown>;
|
|
4264
|
-
}
|
|
4265
|
-
/** Result of `respondToPermission`. Mirrors the sidecar route contract. */
|
|
4266
|
-
interface PermissionResponseResult {
|
|
4267
|
-
/** The decision was persisted for audit. Always true on success. */
|
|
4268
|
-
recorded: true;
|
|
4269
|
-
/**
|
|
4270
|
-
* True iff a live ACP `request_permission` was awaiting this decision and
|
|
4271
|
-
* it was forwarded to the running agent. `false` means record-only — the
|
|
4272
|
-
* request already resolved (e.g. timed out to the allowlist fallback) or
|
|
4273
|
-
* the backend does not surface live permission requests.
|
|
4274
|
-
*/
|
|
4275
|
-
forwarded: boolean;
|
|
4276
4259
|
}
|
|
4277
4260
|
/** Result of `interrupt`. */
|
|
4278
4261
|
interface InterruptResult {
|
|
@@ -4329,7 +4312,7 @@ interface SandboxSessionHost extends InteractiveSessionHost {
|
|
|
4329
4312
|
_sessionEvents(id: string, opts?: SessionEventStreamOptions): AsyncGenerator<SandboxEvent>;
|
|
4330
4313
|
_sessionResult(id: string): Promise<PromptResult>;
|
|
4331
4314
|
_sessionCancel(id: string): Promise<void>;
|
|
4332
|
-
_respondToPermission(id: string, permissionID: string, options: RespondToPermissionOptions): Promise<
|
|
4315
|
+
_respondToPermission(id: string, permissionID: string, options: RespondToPermissionOptions): Promise<void>;
|
|
4333
4316
|
_interrupt(id: string): Promise<InterruptResult>;
|
|
4334
4317
|
_answerQuestion(id: string, answers: Record<string, string[]>): Promise<void>;
|
|
4335
4318
|
}
|
|
@@ -4398,11 +4381,11 @@ declare class SandboxSession {
|
|
|
4398
4381
|
*/
|
|
4399
4382
|
interactive(): InteractiveSessionHandle;
|
|
4400
4383
|
/**
|
|
4401
|
-
* Resolve a pending permission
|
|
4402
|
-
* `allow`/`deny` to
|
|
4403
|
-
*
|
|
4384
|
+
* Resolve a pending permission interaction the agent raised mid-turn,
|
|
4385
|
+
* forwarding `allow`/`deny` to the blocked agent through the unified
|
|
4386
|
+
* interaction channel. Throws if no matching permission is outstanding.
|
|
4404
4387
|
*/
|
|
4405
|
-
respondToPermission(permissionID: string, options: RespondToPermissionOptions): Promise<
|
|
4388
|
+
respondToPermission(permissionID: string, options: RespondToPermissionOptions): Promise<void>;
|
|
4406
4389
|
/**
|
|
4407
4390
|
* Interrupt the session's current execution without deleting it. Returns
|
|
4408
4391
|
* `{ cancelled: false }` when nothing was running — the no-op is reported
|
|
@@ -5516,11 +5499,16 @@ declare class SandboxInstance {
|
|
|
5516
5499
|
/** @internal — invoked by InteractiveSessionHandle.stop(). */
|
|
5517
5500
|
_stopInteractive(id: string): Promise<void>;
|
|
5518
5501
|
/** @internal — invoked by SandboxSession.respondToPermission(). */
|
|
5519
|
-
_respondToPermission(id: string, permissionID: string, options: RespondToPermissionOptions): Promise<
|
|
5502
|
+
_respondToPermission(id: string, permissionID: string, options: RespondToPermissionOptions): Promise<void>;
|
|
5520
5503
|
/** @internal — invoked by SandboxSession.interrupt(). */
|
|
5521
5504
|
_interrupt(id: string): Promise<InterruptResult>;
|
|
5522
|
-
/**
|
|
5505
|
+
/**
|
|
5506
|
+
* @internal — invoked by SandboxSession.answer(). Resolves the session's
|
|
5507
|
+
* outstanding question interaction and posts the answer through the
|
|
5508
|
+
* interaction response route. The positional answer arrays map onto the
|
|
5509
|
+
* question's `answerSpec` fields in order.
|
|
5510
|
+
*/
|
|
5523
5511
|
_answerQuestion(id: string, answers: Record<string, string[]>): Promise<void>;
|
|
5524
5512
|
}
|
|
5525
5513
|
//#endregion
|
|
5526
|
-
export {
|
|
5514
|
+
export { CreateSandboxFleetOptions as $, SandboxFleetTraceBundle as $n, WriteManyFile as $r, NetworkConfig as $t, AttachSandboxFleetMachineOptions as A, SSHCredentials as An, SnapshotInfo as Ar, ForkResult as At, BatchTask as B, SandboxFleetDriverCapability as Bn, TeeAttestationOptions as Br, InstalledTool as Bt, SandboxMcpEndpoint as C, PublishPublicTemplateVersionOptions as Cn, SecretInfo as Cr, FleetDispatchStreamOptions as Ct, AcceleratorKind as D, ReconcileSandboxFleetsResult as Dn, SessionListOptions as Dr, FleetPromptDispatchOptions as Dt, buildSandboxMcpConfig as E, ReconcileSandboxFleetsOptions as En, SessionInfo as Er, FleetMachineId as Et, BackendStatus as F, SandboxFleetArtifact as Fn, StartupOperation as Fr, GitDiff as Ft, CodeExecutionOptions as G, SandboxFleetMachineMeteredUsage as Gn, TokenRefreshHandler as Gr, IntelligenceReportWindow as Gt, CheckpointInfo as H, SandboxFleetInfo as Hn, TeeAttestationResponse as Hr, IntelligenceReportBudget as Ht, BackendType as I, SandboxFleetArtifactSpec as In, StorageConfig as Ir, GitStatus as It, CodeResult as J, SandboxFleetManifest as Jn, UpdateUserOptions as Jr, ListSandboxFleetOptions as Jt, CodeExecutionResult as K, SandboxFleetMachineRecord as Kn, ToolsConfig as Kr, ListMessagesOptions as Kt, BatchEvent as L, SandboxFleetCostEstimate as Ln, SubscriptionInfo as Lr, GpuType as Lt, BackendConfig as M, SandboxConnection as Mn, SnapshotResult as Mr, GitBranch as Mt, BackendInfo as N, SandboxEnvironment as Nn, SshKeysManager as Nr, GitCommit as Nt, AccessPolicyRule as O, RunCodeOptions as On, SessionMessage as Or, FleetPromptDispatchResult as Ot, BackendManager as P, SandboxEvent as Pn, StartupDiagnostics as Pr, GitConfig as Pt, CreateRequestOptions as Q, SandboxFleetToken as Qn, WaitForOptions as Qr, MkdirOptions as Qt, BatchOptions as R, SandboxFleetDispatchFailureClass as Rn, TaskOptions as Rr, HostAgentDriverConfig as Rt, SandboxMcpConfig as S, PublishPublicTemplateOptions as Sn, SearchOptions as Sr, FleetDispatchResultBufferOptions as St, buildControlPlaneMcpConfig as T, ReapExpiredSandboxFleetsResult as Tn, SessionEventStreamOptions as Tr, FleetExecDispatchResult as Tt, CheckpointOptions as U, SandboxFleetIntelligenceEnvelope as Un, TeePublicKey as Ur, IntelligenceReportCompareTo as Ut, BatchTaskResult as V, SandboxFleetDriverTimings as Vn, TeeAttestationReport as Vr, IntelligenceReport as Vt, CheckpointResult as W, SandboxFleetMachine as Wn, TeePublicKeyResponse as Wr, IntelligenceReportSubjectType as Wt, CompletedTurnResult as X, SandboxFleetOperationsSummary as Xn, UploadProgress as Xr, McpServerConfig as Xt, CodeResultPart as Y, SandboxFleetManifestMachine as Yn, UploadOptions as Yr, ListSandboxOptions as Yt, CreateIntelligenceReportOptions as Z, SandboxFleetPolicy as Zn, UsageInfo as Zr, MintScopedTokenOptions as Zt, StartInteractiveOptions as _, defineInlineResource as _i, ProvisionResult as _n, SandboxTraceOptions as _r, ExecResult as _t, TraceExportSink as a, AgentProfileFileMount as ai, PreviewLinkManager as an, SandboxFleetWorkspaceReconcileResult as ar, DispatchPromptOptions as at, CONTROL_PLANE_MCP_SERVER_NAME as b, PublicTemplateInfo as bn, ScopedTokenScope as br, FleetDispatchCancelResult as bt, otelTraceIdForTangleTrace as c, AgentProfilePermissionValue as ci, ProcessLogEntry as cn, SandboxInfo as cr, DownloadProgress as ct, InteractiveAuthFile as d, AgentProfileResources as di, ProcessSpawnOptions as dn, SandboxResourceUsage as dr, DriverInfo as dt, WriteManyOptions as ei, NetworkManager as en, SandboxFleetTraceEvent as er, CreateSandboxFleetTokenOptions as et, InteractiveSessionHandle as f, AgentProfileValidationIssue as fi, ProcessStatus as fn, SandboxResources as fr, DriverType as ft, RespondToPermissionOptions as g, defineGitHubResource as gi, ProvisionEvent as gn, SandboxTraceExport as gr, ExecOptions as gt, InterruptResult as h, defineAgentProfile as hi, PromptResult as hn, SandboxTraceEvent as hr, EventStreamOptions as ht, TraceExportResult as i, AgentProfileConnection as ii, PreviewLinkInfo as in, SandboxFleetWorkspace as ir, DirectoryPermission as it, BackendCapabilities as j, SandboxClientConfig as jn, SnapshotOptions as jr, GitAuth as jt, AddUserOptions as k, SSHCommandDescriptor as kn, SessionStatus as kr, ForkOptions as kt, toOtelJson as l, AgentProfilePrompt as li, ProcessManager as ln, SandboxIntelligenceEnvelope as lr, DriveTurnOptions as lt, InteractiveSessionInfo as m, AgentSubagentProfile as mi, PromptOptions as mn, SandboxTraceBundle as mr, EgressPolicy as mt, SandboxInstance as n, AgentProfileCapabilities as ni, PermissionLevel as nn, SandboxFleetTraceOptions as nr, CreateSandboxOptions as nt, buildTraceExportPayload as o, AgentProfileMcpServer as oi, Process as on, SandboxFleetWorkspaceRestoreResult as or, DispatchedSession as ot, InteractiveSessionHost as p, AgentProfileValidationResult as pi, PromptInputPart as pn, SandboxStatus as pr, EgressManager as pt, CodeLanguage as q, SandboxFleetMachineSpec as qn, TurnDriveResult as qr, ListOptions as qt, TraceExportFormat as r, AgentProfileConfidential as ri, PermissionsManager as rn, SandboxFleetUsage as rr, DeleteOptions as rt, exportTraceBundle as s, AgentProfileModelHints as si, ProcessInfo as sn, SandboxFleetWorkspaceSnapshotResult as sr, DownloadOptions as st, HttpClient as t, AgentProfile as ti, NonHostAgentDriverConfig as tn, SandboxFleetTraceExport as tr, CreateSandboxFleetWithCoordinatorOptions as tt, SandboxSession as u, AgentProfileResourceRef as ui, ProcessSignal as un, SandboxPermissionsConfig as ur, DriverConfig as ut, BuildControlPlaneMcpConfigOptions as v, mergeAgentProfiles as vi, ProvisionStatus as vn, SandboxUser as vr, FileInfo as vt, SandboxMcpServerEntry as w, ReapExpiredSandboxFleetsOptions as wn, SecretsManager as wr, FleetExecDispatchOptions as wt, SANDBOX_MCP_SERVER_NAME as x, PublicTemplateVersionInfo as xn, SearchMatch as xr, FleetDispatchResultBuffer as xt, BuildSandboxMcpConfigOptions as y, ProvisionStep as yn, ScopedToken as yr, FileSystem as yt, BatchResult as z, SandboxFleetDispatchResponse as zn, TaskResult as zr, HostAgentRuntimeBackend as zt };
|